content
stringlengths
1
15.9M
\section{Introduction}\label{sec:Intro} Integrated Light (IL) spectroscopy of globular clusters (GCs) provides valuable clues about the assembly histories of distant galaxies and their GC systems. An IL spectrum comes from an entire stellar population---integrated chemical abundances therefore represent flux-weighted averages from the individual stars observed in the IL spectrum. Despite the potential difficulties in modeling the underlying stellar populations, there are certain elements, spectral features, and/or wavelength regions that provide robust IL abundances (see, e.g., \citealt{SchiavonHB,Sakari2013}). Low and medium resolution ($R \lesssim 5000$) IL spectroscopy provides ages, metallicities, and abundances of the elements with the strongest spectral features (e.g., C, N, Mg; \citealt{Caldwell2011,Schiavon2013}), while higher resolution spectroscopy provides higher precision abundances of a wider variety of elements (including neutron capture elements such as Ba and Eu in the optical; \citealt{McWB,Colucci2009,Colucci2012,Sakari2015}). IL spectral observations have identified, among other things, possible metallicity bimodalities (\citealt{Perrett2002}, though \citealt{Caldwell2011} find no bimodality) and metallicity gradients (e.g., \citealt{Caldwell2011}) in M31's GC population, chemically-peculiar GCs in M31's outer halo that may have been accreted \citep{Sakari2015}, $\alpha$-deficiencies in distant GCs that are associated with dwarf galaxies \citep{Puzia2008}, and enhanced [$\alpha$/Fe] ratios in metal-rich GCs associated with the early type galaxy NGC~5128 \citep{Colucci2013}. IL spectroscopy has also provided insight into the nature of GCs themselves, through comparisons with Milky Way GCs \citep{Schiavon2012}, detections of anomalous abundances indicative of multiple populations (e.g. \citealt{Colucci2009,Colucci2014}, \citealt{Sakari2015}) and abundance correlations with cluster mass \citep{Schiavon2013}. Though previous IL observations have typically been at optical wavelengths ($\sim 3000-9000$ \AA), high resolution, infrared (IR) IL spectroscopy is now possible thanks to recent advances in infrared (IR) spectroscopy. In particular, the Apache Point Observatory Galactic Evolution Experiment (APOGEE) provides multi-object, high-resolution ($R=22,500$) spectroscopy with coverage in the $H$-band (from $1.51$ to $1.69\;\mu$m); this wavelength coverage has some significant advantages for IL spectroscopy. \begin{enumerate} \item {\it Insensitivity to hot stars.} IL spectra are composed of light from all the stars in a stellar population, including dwarfs and giants, hot and cool stars, etc. At blue wavelengths, contributions from hot horizontal branch (HB) stars complicate analyses (e.g. \citealt{SchiavonHB,Sakari2014}). Similarly, optical spectra are more sensitive to turnoff stars, and therefore require estimates of GC age. IR spectra are likely to be sensitive only to the brightest red giant branch (RGB) and asymptotic giant branch (AGB) stars, simplifying IL analyses. \item {\it Additional spectral lines.} The $H$-band offers different spectral lines than the optical. In particular, strong molecular lines of CN, CO, and OH enable determinations of C, N, and O abundances \citep{Smith2013}. There are CN indices in the optical, though they are in the blue and may be too weak in metal-poor clusters \citep{Schiavon2013}. The $H$-band also offers complementary lines to the optical, including additional Mg, Al, Si, Ca, and Ti lines. Stronger Al and Si lines can also be utilized in the IR than in the optical. \item {\it Opportunities to probe multiple populations in GCs.} The well-established chemical variations in Milky Way (MW) GCs (e.g., in Na/O and Mg/Al; \citealt{Carretta2009}) have been inferred to exist in extragalactic GCs because of their IL abundance ratios, notably high [Na/Fe] \citep{Colucci2014,Sakari2015}. The $H$-band offers detectable lines from elements that should vary within (at least some) GCs, including C, N, O, Mg, and Al. The ability to detect [O/Fe] and directly probe the Na/O anticorrelation makes the IR particularly valuable for extragalactic GC studies. \end{enumerate} \noindent However, IR IL spectroscopy also suffers from some disadvantages, compared to the optical. \begin{enumerate} \item {\it Line blending.} In metal-rich clusters molecular features dominate the $H$-band; as a result, abundances derived from lines in the $H$-band are sensitive to the abundances of C, N, and O. This blending is especially significant in spectra whose lines are already blended as a result of the cluster velocity dispersion. \item {\it Weak lines at low metallicity.} Many of the strong features in IL spectra become weaker in the more metal poor GCs, and may disappear entirely. For the most metal-poor clusters, $H$-band IL spectroscopy may therefore not provide abundances for as many elements as the more metal-rich GCs. \item {\it Sensitivity to evolved stars.} As stated above, the $H$-band is most sensitive to the brightest cluster RGB and AGB stars. The abundances are therefore sensitive to how the evolved AGB stars are modeled (in terms of the isochrones, the model atmospheres, the relative numbers of AGB stars, and stochastic sampling). \item {\it Lack of iron lines.} The high-resolution IL analyses of unresolved GCs that were developed by \citet{McWB}, \citet{Colucci2009,Colucci2011a,Colucci2014}, and \citet{Sakari2013,Sakari2015} rely on \ion{Fe}{1} lines to determine the parameters of the underlying stellar population (specifically the age and metallicity of an appropriate isochrone). However, there are few sufficiently strong Fe lines in the $H$-band (especially at low metallicities), and any detectable Fe lines may be blended with other features. \end{enumerate} \noindent Though IR IL spectroscopy may not be as informative as optical IL spectroscopy on its own, it offers valuable complementary information to the optical, {\it provided that IL analysis techniques are viable in the $H$-band.} For highly reddened objects the IR might also provide the only viable spectra for abundance analyses. This paper presents the first IR, IL detailed abundance analyses of GCs, utilizing targets in M31. The IR abundances are compared to those derived from optical lines (similar to the individual stellar analysis of \citealt{Smith2013}). The targets cover a wide range in metallicity and have all had previous high-resolution, detailed IL abundances analyses in the optical. These $H$-band IL spectra were observed during an ancillary program of the APOGEE survey, as described in Section \ref{sec:Observations}. The analysis techniques are introduced in Section \ref{sec:Analysis}; $H$-band abundances for 25 clusters are then presented (Section \ref{sec:Abunds}), along with new optical abundances for five GCs (Appendix \ref{appendix:OpticalAbunds}). The comparisons are discussed in detail in Section \ref{sec:Discussion}---particular emphasis is placed on the feasibility of future high-resolution IR IL analyses. \section{Observations and Data Reduction}\label{sec:Observations} The data presented in this paper are a subset of a larger sample of M31 GCs. The subset of GCs in this paper were targets in previous high-resolution, optical spectroscopic analyses and therefore have reference abundances for comparisons with the $H$-band. The high-resolution optical abundances from \citet{Colucci2009,Colucci2014} are supplemented with new results for five GCs, as described in Appendix \ref{appendix:OpticalAbunds}. \begin{table} \centering \begin{center} \caption{Target list.\label{table:Targets}\label{table:Velocities}} \newcolumntype{d}[1]{D{,}{\pm}{#1}} \newcolumntype{e}[1]{D{.}{.}{#1}} \begin{tabular}{@{}lccccccccd{3}@{}} \hline Cluster & RA & Dec & $R_{\rm{proj}}$ & $V$ & $H$ & Observing & \# of & S/N$^{c}$ & \multicolumn{1}{c}{$v_{\rm{helio}}$} \\ & \multicolumn{2}{c}{(J2000)} & (kpc) & & & Epoch$^{a}$ & Visits$^{b}$ & & \multicolumn{1}{c}{km s$^{-1}$} \\ \hline B006-G058 & 00:40:26.5 & $+$41:27:26.7 & 6.43 & 15.46 & 12.74 & 11, 13 & 10 & 24.94 & -251.2,0.5 \\ B012-G064 & 00:40:32.5 & $+$41:21:44.2 & 5.78 & 15.04 & 12.79 & 11, 13 & 10 & 22.70 & -361.6,0.5 \\ B034-G096$^{d}$& 00:41:28.1 & $+$40:53:49.6 & 6.05 & 15.47 & 12.61 & 11 & 7 & 23.65 & -554.4,0.5 \\ B045-G108 & 00:41:43.1 & $+$41:34:20.0 & 4.90 & 15.83 & 13.00 & 11, 13 & 10 & 17.02 & -423.3,0.8 \\ B048-G110$^{e}$ & 00:41:45.5 & $+$41:13:30.6 & 2.59 & 16.51 & 13.38 & 11, 13& 10 & 7.99 & -228.9,1.0 \\ B063-G124 & 00:42:00.9 & $+$41:29:09.5 & 3.49 & 15.73 & 12.22 & 11 & 3 & 34.34 & -306.2,0.5 \\ B088-G150 & 00:42:21.1 & $+$41:32:14.3 & 3.79 & 15.00 & 12.34 & 11 & 7 & 29.28 & -489.6,1.0 \\ B110-G172$^{e}$ & 00:42:33.1 & $+$41:03:28.4 & 2.93 & 15.28 & 12.35 & 11 & 7 & 29.26 & -236.7,0.4 \\ B163-G217 & 00:43:17.0 & $+$41:27:44.9 & 3.00 & 15.04 & 11.84 & 11 & 7 & 46.43 & -166.4,0.3 \\ B171-G222$^{d,f}$ & 00:43:25.0 & $+$41:15:37.1 & 1.77 & 15.28 & 12.24 & 11 & 10 & 24.03 & -276.3,0.6 \\ B182-G233$^{d}$ & 00:43:36.7 & $+$41:08:12.2 & 2.88 & 15.43 & 12.52 & 11, 13 & 6 & 22.82 & -358.3,0.5 \\ B193-G244 & 00:43:45.5 & $+$41:36:57.5 & 5.41 & 15.33 & 12.23 & 11 & 11 & 32.22 & -66.1,0.3 \\ B225-G280$^{d}$ & 00:44:29.8 & $+$41:21:36.6 & 4.67 & 14.15 & 11.23 & 11 & 11 & 65.72 & -162.5,0.3 \\ B232-G286$^{d}$ & 00:44:40.5 & $+$41:15:01.4 & 4.97 & 15.65 & 13.35 & 11, 13 & 10 & 10.98 & -196.1,1.0 \\ B235-G297$^{d}$ & 00:44:57.9 & $+$41:29:23.7 & 6.46 & 16.27 & 13.39 & 11, 13 & 10 & 10.69 & -94.4,1.0 \\ B240-G302$^{d}$ & 00:45:25.2 & $+$41:06:23.8 & 7.24 & 15.18 & 12.89 & 11, 13 & 10 & 17.64 & -54.4,0.9 \\ B311-G033$^{d}$ & 00:39:33.8 & $+$49:31:14.4 & 13.11 & 15.45 & 12.85 & 11, 13 & 10 & 17.66 & -502.8,1.0 \\ B312-G035$^{d}$ & 00:39:40.1 & $+$40:57:02.3 & 9.02 & 15.52 & 12.85 & 11, 13 & 10 & 13.58 & -177.7,0.9 \\ B381-G315$^{d}$ & 00:46:06.6 & $+$41:20:58.9 & 8.72 & 15.76 & 13.14 & 11, 13 & 10 & 10.13 & -82.9,1.0 \\ B383-G318$^{d}$ & 00:46:12.0 & $+$41:19:43.2 & 8.92 & 15.30 & 12.84 & 11, 13 & 10 & 16.09 & -233.6,0.8 \\ B384-G319$^{d}$ & 00:46:21.9 & $+$40:17:00.0 & 16.42 & 15.75 & 13.00 & 11, 13 & 10 & 19.98 & -364.5,0.8 \\ B386-G322 & 00:46:27.0 & $+$42:01:52.8 & 14.08 & 15.64 & 12.95 & 11 & 6 & 23.07 & -399.8,0.8 \\ B403-G348 & 00:49:17.0 & $+$41:35:08.2 & 17.34 & 16.22 & 13.47 & 11 & 6 & 16.09 & -269.3,0.8 \\ B405-G351 & 00:49:39.8 & $+$41:35:29.7 & 18.28 & 15.20 & 12.76 & 11 & 6 & 21.26 & -165.5,0.6 \\ B472-D064 & 00:43:48.4 & $+$41:26:53.0 & 3.67 & 15.19 & 12.69 & 11, 13 & 6 & 24.52 & -120.6,0.7 \\ \hline \end{tabular}\\ \end{center} \medskip \raggedright {\bf References:} Positions, projected distances from the center of M31, and magnitudes are from the Revised Bologna Catalog \citep{RBCref}.\\ {\bf Notes: } $^{a}$ Clusters were observed in 2011 and/or 2013.\\ $^{b}$ Each visit is 66.6 minutes of integration.\\ $^{c}$ S/N ratios are per pixel, and represent the median value across the entire spectral range. There are approximately 2.06 pixels per resolution element in the blue, 2.27 in the green, and 2.66 in the red.\\ $^{d}$ Some visits were affected by superpersistence (see text). The superpersistence regions are masked out, leading to lower S/N in the $1.51-1.62\;\mu$m region; some abundances are derived with unmasked spectra, and have been flagged in subsequent tables. \\ $^{e}$ All visits were affected by superpersistence.\\ $^{f}$ A background galactic component was subtracted during data reduction.\\ \end{table} \subsection{Target Selection and Observations}\label{subsec:Observations} M31 GCs were observed as part of an ancillary project in the APOGEE survey (see \citealt{Zasowski2013}). Confirmed GCs were selected from the optical sample of \citet{Caldwell2009}; altogether, $\sim250$ GCs were observed by APOGEE, all with $H<15$ mag. Of the larger sample, only twenty five are utilized for this paper's comparison with optical abundances---these twenty five are some of the brightest targets. Table \ref{table:Targets} shows that all targets in this paper have $H<13.5$ mag. $H$-band spectra ($1.51$ to $1.69\;\mu$m) of the target clusters were obtained with the moderately-high resolution ($R=22,500$; \citealt{Wilson2010,Wilson2012}) APOGEE spectrograph, on the 2.5 m Telescope at Apache Point Observatory \citep{Gunn2006}. APOGEE is a multi-object spectrograph, with 300 fibers placed on a variety of science and calibration targets (including the sky). The dispersed spectra are fed to three detectors, providing ``blue,'' ``green,'' and ``red'' coverage within the $H$-band. The details of the observations can be found in \citet{Majewski2015} and \citet{Zasowski2013}, including descriptions of the plates and fibers that were utilized for the observations. These GCs were observed in the same manner as individual APOGEE stellar targets, i.e., a single fiber was allocated for each cluster. The fiber diameter of 2$\arcsec$ is large enough to cover most of the clusters past their half-light radii \citep{RBCref}. Several of the targets in the larger sample are close to the center of M31 and are affected by light from M31's unresolved field stars. Based on examination of the flux and S/N of background fibers, the background subtraction is estimated to only be important for targets within $9\arcmin$ of the center of M31 (i.e., outside $9\arcmin$ there is no detectable background signal). Only one cluster in this sample, B171, had a background component subtracted. For B171 and the other GCs within 9$\arcmin$ that are not included in this analysis, separate fibers were placed on background regions adjacent to the clusters. Because the fiber collision distance of 72$\arcsec$ prohibited simultaneous GC and background observations, two 3$^{\circ}$ SDSS plates were used to observe these clusters \citep{Zasowski2013}: one plate contained the GC fibers, while another had the background fibers displaced from the target centers by $\sim$ 10$\arcsec$. These background fibers were placed on smooth galactic components, based on the M31 near-IR maps from the 2 Micron All-Sky Survey \citep{Skrutskie2006}. Clusters without dedicated background fibers were observed with both plates. The first pair of SDSS GC plates was observed during 2011; one received three visits (where one visit = 66.6 minutes) while another received four. In 2013 one to two more visits were obtained (see Table \ref{table:Velocities}). A significant number of GCs were observed in both the 2011 and 2013 campaigns. Table \ref{table:Velocities} also shows the signal-to-noise (S/N) ratios of the final spectra: all range from 10-65 per pixel. \subsection{Data Reduction}\label{subsec:DataReduction} The APOGEE data reduction pipeline \citep{Nidever2015} provides reduced and flux-calibrated single-epoch spectra (so-called ``visits''), with estimates of the noise and bad-pixel masks. Unlike most of the optical range, $H$-band spectra are affected by the presence of strong sky lines in both emission and absorption. The APOGEE data reduction pipeline flags these regions via bits set in the bad-pixel mask. The sensitivity to the previously accumulated signal in some regions of the APOGEE detectors (superpersistence; \citealt{Nidever2015}) makes some spectral ranges in certain fibers almost useless for analysis, especially for targets with low S/N (though note that even if a fiber was located in the superpersistence area, the red part of its spectrum is unaffected by this effect and is viable for further analysis). Fortunately, the main APOGEE pipeline flags out such regions as well. The combined spectrum of an individual target comes from a weighted average of all available visits in 2011 and 2013. A visit's weight is calculated individually in each pixel as a product of the inverse variance multiplied by the inverted mask. The latter is a binary mask, where any non-zero pixels in the original bad-pixel mask (from the data reduction pipeline) have been set to zero, and any original pixels with no error bits have been set to one. Including this weight during the combination rejects all of the bad or problematic pixels from being included in the final spectrum. In particular, this will mask out regions affected by superpersistence. With regular APOGEE targets, the individual, weighted visits for a given GC are then combined into a single, higher S/N spectrum, based on the radial velocity estimated for each individual visit. While this works well for typical, relatively bright APOGEE targets, most of the M31 GCs have mediocre to poor S/N (as low as S/N$\sim 10$; see Table \ref{table:Velocities}) and the radial velocity estimation is bypassed. Instead the radial velocities are assumed to be constant between visits, and multi-epoch spectra are aligned using barycentric correction information only. The pipeline therefore delivers the combined spectra, the associated errors, and the combined inverted mask. As described in Section \ref{subsec:Observations}, special ``background fibers'' were reserved for clusters within $9\arcmin$ of the center of M31 (only B171 in this paper's sample). The background fibers were treated as regular objects, and were reduced and combined using the method described above. The galactic background light comes from an unresolved stellar population, and it is therefore assumed that any sharp spectral features are caused by noise or sky features; in order to avoid adding noise during the subtraction the background spectra were smoothed by a Gaussian kernel with FWHM~=~220~km~s$^{-1}$ to reproduce a mostly featureless background. The smoothed background was then subtracted from B171's spectrum.\footnote{Note that for the optical B171 spectrum (Appendix \ref{appendix:OpticalAbunds}) a separate background subtraction was not performed. Sky fibers were located 10$\arcsec$ from the central fiber, providing simultaneous sky observations. These sky fibers likely contained a background component as well.} Samples of the final spectra are shown in Figure \ref{fig:SampleSpectra}, for GCs with a range of metallicities. The region around the strong \ion{Mg}{1} lines and a CO bandhead is shown. Note that the features are barely detectable at B088's metallicity and velocity dispersion. \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.75,trim=0 0.75in 0in 0.0in]{GCsHband.eps} \caption{Sample $H$-band spectra of M31 GCs, spanning a range in metallicity ($H$-band [Fe/H] ratios are listed; see Section \ref{subsec:Fe}). Median S/N ratios (per pixel) are also given. The region around the strong \ion{Mg}{1} lines and a CO bandhead is shown. Note that the line depths also depend on the velocity dispersion of the cluster.\label{fig:SampleSpectra}} \end{center} \end{figure} \subsection{Radial Velocities and Line Broadening}\label{subsec:Velocities} The spectra for the metal-rich ($[\rm{Fe/H}] \gtrsim -1.2$) GCs were shifted to the rest frame through cross-correlations with a spectrum of Arcturus \citep{Hinkle2003} using the Image Reduction and Analysis Facility program (IRAF)\footnote{IRAF is distributed by the National Optical Astronomy Observatory, which is operated by the Association of Universities for Research in Astronomy, Inc., under cooperative agreement with the National Science Foundation.} task {\it fxcor}. For metal-poor GCs with low S/N and very few detectable lines this technique did not work---in this latter case, lines were identified and offsets were calculated manually. The final, heliocentric velocities are shown in Table \ref{table:Velocities}, and are in excellent agreement with \citet{Colucci2014} and \citet{Caldwell2011}. Using spectrum syntheses to measure line strengths (see Section \ref{subsec:Synpop}) requires modeling the line broadening due to (primarily) the GC velocity dispersion and the instrumental resolution. Although there are well-constrained velocity dispersions available from optical spectroscopy, the line broadening values in the IR were determined by fitting the strong \ion{Si}{1} lines at 15960 and 16095~\AA. These lines were utilized instead of full spectrum fitting in an attempt to minimize degeneracies between assumed initial abundances and line broadening. The precise broadening is more uncertain for the metal-poor GCs and/or GCs with lower S/N: high S/N, metal-rich targets can have line broadening uncertainties around $\sim1$ km s$^{-1}$, while lower S/N, metal-poor GCs can have uncertainties of $\sim 2-3$ km s$^{-1}$. The abundance errors reflect uncertainties in fitting the full line profiles, and therefore account for small uncertainties in the derived broadening values. Figure \ref{fig:Velocities} shows a comparison between the line broadening derived from the $H$-band (with the instrumental broadening removed) and the velocity dispersion from the optical, demonstrating that the two are in agreement. Note that the precise value for the velocity dispersion will depend upon the area of the cluster covered by the spectrograph slit or fiber. The optical values in Figure \ref{fig:Velocities} were obtained from spectra with a slit size of $1.\arcsec7 \times 7\arcsec$ \citep{Colucci2014} or a $3\arcsec$ fiber (Appendix \ref{appendix:OpticalAbunds}), while the APOGEE fibers have $2\arcsec$ diameters. \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.75]{R.eps} \caption{A comparison of $H$-band line broadening (with instrumental broadening removed) and optical velocity dispersion. The dashed line shows perfect agreement. The points are sized according to S/N ratios, where the larger symbols have higher S/N, and are colored according to [Fe/H].\label{fig:Velocities}} \end{center} \end{figure} \section{Analysis Methods}\label{sec:Analysis} $H$-band spectra exhibit strong molecular features as well as numerous atomic lines, particularly in metal-rich targets---this means that nearly every spectral feature is a blend of lines from multiple elements. In addition, IL spectral features are broadened by the GC velocity dispersion, exacerbating the blending problems. As a result, standard equivalent width analyses of individual features may not be suitable for abundance analyses of $H$-band IL spectra (see the discussions in \citealt{Sakari2013} and \citealt{Colucci2014}). This paper therefore presents abundances that were derived from spectrum syntheses of the regions around each line of interest, utilizing a recent modification to the 2014 version of the line analysis code \texttt{MOOG} \citep{Sneden}. \subsection{{\it synpop}: Spectrum Syntheses for Stellar Populations}\label{subsec:Synpop} \texttt{MOOG} \citep{Sneden} is a Local Thermodynamic Equilibrium (LTE) line analysis code that has been widely used for individual stellar analyses, both in the optical and the IR. \texttt{MOOG}'s spectrum synthesis routine {\it synth} requires a model atmosphere and a line list; with this input, it then synthesizes a spectrum over the desired wavelength range, and abundances can be altered until the synthetic spectrum matches the observed one. \texttt{MOOG}'s {\it synpop} routine works the same way, but for an entire stellar population: given a list of model atmospheres (see Section \ref{subsec:ModelAtms}) and a line list (Section \ref{subsec:LineList}), it produces a synthetic IL spectrum, weighted by the flux and number of stars assigned to each atmosphere. The {\it synpop} routine is therefore nearly identical to the synthesis version of the code {\tt ILABUNDS} \citep{McWB,Sakari2013}; however, {\it synpop} is now a supported part of {\tt MOOG}, runs off current releases, and is publicly available.\footnote{\url{http://www.as.utexas.edu/~chris/moog.html}} This analysis utilizes the 2014 release of {\tt MOOG}. As with the {\it synth} routine, {\it synpop} provides residual fits to identify the syntheses that best match the observed spectra. \subsection{Isochrones and Model Atmospheres}\label{subsec:ModelAtms} Since IL spectra contain contributions from all the stars in a stellar population, isochrones are used to model the underlying stellar populations in each GC. The BaSTI isochrones \citep{BaSTIref,ODFNEWref,Cordier2007} are utilized because they extend through the evolved horizontal branch (HB) and AGB phases; these are the same isochrones utilized for the comparison optical values. The ages and metallicities determined from the optical spectra (\citealt{Colucci2014}, Appendix \ref{appendix:OpticalAbunds}) are adopted---these values were found by minimizing trends in \ion{Fe}{1} abundance with line wavelength, reduced equivalent width, and excitation potential (see \citealt{McWB}), and agree reasonably well with the values derived from Lick indices \citep{Caldwell2011}. This procedure may not be suitable for $H$-band spectra; however, the $H$-band spectral lines are not as sensitive to cluster age (see Section \ref{subsec:FeDiscussion}). The standard horizontal branch morphologies from the BaSTI isochrones are adopted, along with extended AGBs---the effects of these choices are discussed in \citet{Colucci2009,Colucci2012,Colucci2014} and \citet{Sakari2014}. Once an appropriate isochrone has been identified, the isochrones are populated with stars to match the observed total magnitude for each GC, assuming a \citet{Kroupa2002} initial mass function (IMF). The stars are binned along the isochrones, with each box containing 3.5\% of the total flux. (Note that in the optical the box size has only a negligible effect on the abundances; \citealt{Sakari2014}.) Microturbulent velocities are assigned to each box based on an empirically-motivated calibration with surface gravity \citep{McWB}; this relation produces similar microturbulent velocities as the standard APOGEE relation \citep{ASPCAPref}, except at very high and low surface gravities. Each box is then assigned a Kurucz model atmosphere\footnote{\url{http://kurucz.harvard.edu/grids.html}} \citep{KuruczModelAtmRef} with the average effective temperature, surface gravity, and microturbulence of the stars in that box. All atmospheres are chosen to be $\alpha$-enhanced, since optical integrated [$\alpha$/Fe] ratios are enhanced. This collection of model atmospheres is then fed as input to {\tt MOOG}, along with a line list. \subsection{Line List}\label{subsec:LineList} The line list adopted for this study includes both atomic and molecular species. The line list version adopted, linelist.20150714, is an updated version of what was used for DR12 results \citep{Shetrone2015} and is the version adopted in DR13. \citep{Shetrone2015} noted a number of problems with the DR12 line list that have been corrected in the ``linelist.20150714'' version adopted here and documented in Holtzman et al. (in prep). A short summary of how the line list was generated including the differences with the DR12 version are detailed below. The molecular line list is a compilation of literature sources including transitions of CO, OH, CN, C2, H2, and SiH. The CN line list was updated using a compilation from C. Sneden (private communication). All molecular data are adopted without change, with the exception of a few obvious typographical corrections. The atomic line list was compiled from a number of literature sources and includes theoretical, astrophysical, and laboratory oscillator strength values. A few new lines were added from NIST\footnote{\url{http://physics.nist.gov/PhysRefData/ASD/lines_form.html}} and other literature publication since the DR12 line list was created, including hyperfine splitting components for Al and Co. To calculate the astrophysical $gf$ values {\tt Turbospectrum} was utilized \citep{Turbo98,Plez2012} to generate synthetic spectra with varying oscillator strengths and damping values in order to fit the solar and Arcturus spectra. For lines with laboratory oscillator strengths, the astrophysical $\log(gf)$ values were not allowed to vary beyond twice the error quoted by the source. One change from the methodology described in \citet{Shetrone2015} is that a different weighting scheme was used between the solar and Arcturus solutions. The astrophysical solutions were weighted according to line depth in Arcturus and in the Sun, which usually gives more weight to the Arcturus solution since the lines are generally stronger in the cooler, low surface gravity star, Arcturus, despite it being more metal-poor. Another difference from the methodology adopted in DR13 was the proper use of the center-of-disk spectral synthesis of the solar center-of-disk atlas using a microturbulence of 0.7 km s$^{-1}$. \subsection{Abundance Determinations}\label{subsec:AbundDeterminations} As described in Section \ref{subsec:Synpop}, the IR abundances are determined via spectrum syntheses; the best-fitting abundances were derived iteratively, following \citet{Smith2013}. The procedure adopted for this analysis is as follows. \begin{enumerate} \item Adopt the best-fitting isochrones and model atmospheres from the optical (see Section \ref{subsec:ModelAtms}). \item Begin with standard abundance ratios for typical MW field stars at the same [Fe/H], e.g., $[\alpha/{\rm Fe}]=+0.4$ \citep{Venn2004}. Determine line broadening parameters (see Section \ref{subsec:Velocities}). \item Determine initial values for the infrared C, N, O, and Fe abundances based on syntheses of the lines in \citet{Smith2013}. The fits are done by eye over a $\sim 40$\AA \hspace{0.025in} region, guided by the output residual fits in {\tt MOOG}. \item Iterate on the C, N, O, and Fe abundances until the values do not change. Adjust the isochrone [Fe/H], if needed, and reiterate on C, N, O, and Fe. \item Find the abundances of the other elements. \end{enumerate} Final [Fe/H] and [X/Fe] abundance ratios are calculated relative to the \citet{Asplund2009} solar abundances. All [X/Fe] ratios are calculated with the $H$-band [\ion{Fe}{1}/H] abundance (since there are no detectable \ion{Fe}{2} lines in the $H$-band). \subsubsection{Strong Lines}\label{subsubsec:Strong} \citet{McWilliam1995b} showed that abundances derived from the strongest spectral lines are very sensitive to the treatment of the stellar atmosphere, particularly the outer layers---they estimated that lines with reduced equivalent widths (REW)\footnote{$\rm{REW}~=~\log(\rm{EW}/\lambda)$, where EW is the equivalent width of a spectral line and $\lambda$ is its wavelength; both are typically expressed in \AA, and REW is dimensionless.} in the range $\rm{REW}~>~-4.7$ should be removed from abundance analyses, particularly when the \ion{Fe}{1} lines are utilized to determine atmospheric parameters (or, in the case of IL analyses, the proper single stellar population parameters: age and metallicity). In the optical, lines with EWs larger than $\sim100$ to 150~m\AA \hspace{0.025in} must be removed. In the $H$-band, the REWs are smaller for lines of the same EW, and $H$-band analyses can safely utilize lines with strengths up to 300-320 m\AA. In some cases, when only strong lines are available for a given element, the REW limit was pushed up to $-4.5$; these lines may introduce offsets of $\sim0.1$ dex \citep{McWilliam1995b}, and these abundances have been flagged in all tables and figures. Similarly, some of the optical abundances were derived with strong lines, and those clusters are also flagged in all plots. \subsubsection{Abundance Errors}\label{subsubsec:Errors} The random error in the abundance from each spectral line was estimated from the range of abundances that can fit the line profile, based on by-eye estimates and {\tt MOOG}'s output residuals. Line profiles may not be perfectly fit due to, e.g., S/N, uncertain continuum placement, telluric features, emission lines, the adopted line broadening, etc. Individual line abundance uncertainties range from 0.05 to 0.25 dex, are are primarily driven by S/N. The uncertainty in a GC's mean abundance for a given element is determined by dividing the individual error by $\sqrt{N}$, where $N$ is the number of lines for that element. Potential systematic errors are more difficult to ascertain. Generally, the largest systematic uncertainties in IL analyses are due to uncertainties in modeling the underlying stellar populations, particularly the age of the population, the HB morphology, and the distribution of the brightest RGB and AGB stars (including the AGB/RGB star ratio). \citet{Sakari2014} present a detailed systematic error analysis for optical spectral lines, but those quantitative estimates may not apply to these IR lines. For instance, age and HB morphology can have strong effects in the optical (also see \citealt{Colucci2014}) but the effect in the $H$-band seems to be negligible (see Section \ref{subsec:FeDiscussion}). The treatment of the brightest RGB and AGB stars is likely to have the largest effect in the $H$-band. Section \ref{subsec:AGBratio} demonstrates that the relative number of AGB stars, relative to RGB stars, is not likely to have a significant effect on the IL ratios; however, the choice of AGB models may affect some abundance ratios by as much as 0.2 dex \citep{Sakari2014}. Stochastic sampling of the upper RGB and AGB may also be significant---this will be examined in a separate paper. Systematic errors can also arise between analyses as a result of different models, assumptions, and techniques. Ultimately, systematic errors in the individual errors could be as high as 0.2 dex, though the errors in [X/Fe] ratios are likely to be smaller. However, the methodology, isochrones, model atmospheres, and solar abundances are the same between the high resolution optical and infrared analyses, which should reduce model-dependent systematic errors. \section{Chemical Abundances}\label{sec:Abunds} In this section the $H$-band abundances are compared to a) the high-resolution optical abundances from \citet{Colucci2009,Colucci2014} and Appendix \ref{appendix:OpticalAbunds} and b) the Lick index optical abundances from \citet{Schiavon2012,Schiavon2013}. \subsection{Iron}\label{subsec:Fe} Iron is a crucial element for chemical abundance analyses, since it is typically used to represent the GC metallicity. Table \ref{table:Fe} shows the $H$-band \ion{Fe}{1} abundances, along with the random errors and the number of measured lines. The clusters have been ordered from low to high [Fe/H]. Note that there are fewer measurable \ion{Fe}{1} lines (2-13) in the $H$-band compared to the optical (which has 20-60, depending on metallicity and wavelength range). The $H$-band \ion{Fe}{1} lines are those quoted in \citet{Smith2013}, along with several additional high excitation potential (EP) lines which were utilized for metal-poor stars by \citet{Lamb2015}. Note that there are no useful \ion{Fe}{2} lines in the $H$-band. As mentioned in Section \ref{subsec:AbundDeterminations}, the $H$-band \ion{Fe}{1} abundances are mildly dependent on the adopted CNO abundances as a result of blending with CN and CO lines, particularly for the metal-rich targets. \begin{table} \centering \begin{center} \caption{Mean $H$-band abundances and random errors: Fe, C, N, and O.\vspace{0.1in} \label{table:Fe}\label{table:CNO}} \newcolumntype{d}[1]{D{,}{\pm}{#1}} \newcolumntype{e}[1]{D{.}{.}{#1}} \begin{tabular}{@{}ld{3}cd{3}cd{3}cd{3}c@{}} \hline & \multicolumn{1}{c}{[Fe I/H]} & $N$ & \multicolumn{1}{c}{[C/Fe]$^{a}$} & $N$ & \multicolumn{1}{c}{[N/Fe]$^{a}$} & $N$ & \multicolumn{1}{c}{[O/Fe]$^{a}$} & $N$\\ \hline B232 & -1.81,0.11 & 3 & -0.20,0.20 & 1 & 1.20,0.20 & 1 & 0.22,0.25 & 1 \\ B088 & -1.73,0.07 & 6 & -0.38,0.07 & 5 & 1.31,0.18 & 2 & 0.15,0.08 & 4 \\ B311 & -1.70,0.13 & 2 & -0.03,0.09 & 4 & 1.13,0.14 & 2 & 0.35,0.14 & 2 \\ B012 & -1.60,0.10 & 5 & -0.54,0.15 & 5 & 0.93,0.10 & 2 & 0.07,0.10 & 4 \\ B240 & -1.48,0.10 & 9 & -0.36,0.10 & 4 & 1.03,0.11 & 3 & 0.31,0.14 & 2 \\ B405 & -1.26,0.07 & 9 & -0.46,0.08 & 5 & 0.93,0.11 & 4 & 0.35,0.09 & 2 \\ B472 & -1.20,0.07 & 8 & -0.41,0.08 & 4 & 1.34,0.09 & 4 & 0.26,0.12 & 3 \\ B386 & -1.07,0.14 & 4 & -0.37,0.04 & 4 & 1.16,0.10 & 4 & 0.46,0.03 & 3 \\ B312 & -1.06,0.06 & 4 & -0.48,0.13 & 3 & 1.02,0.19 & 2 & 0.35,0.14 & 2 \\ B063 & -1.05,0.09 & 12& -0.27,0.09 & 5 & 1.30,0.14 & 8 & 0.42,0.07 & 5 \\ B381 & -1.03,0.13 & 5 & -0.28,0.11 & 2 & 1.32,0.14 & 2 & 0.32,0.10 & 1 \\ B182 & -0.95,0.06 & 6 & -0.54,0.08 & 5 & 1.09,0.05 & 2 & 0.11,0.05 & 3 \\ B045 & -0.88,0.07 & 11& -0.41,0.07 & 5 & 0.90,0.10 & 4 & 0.33,0.12 & 5 \\ B048$^{b}$& -0.78,0.13 & 2 & -0.17,0.10 & 1 & 1.08,0.12 & 3 & 0.53,0.10 & 1 \\ B235 & -0.77,0.06 & 8 & -0.13,0.10 & 4 & 1.21,0.10 & 4 & 0.57,0.08 & 3 \\ B383 & -0.72,0.04 & 6 & -0.18,0.11 & 3 & 1.25,0.10 & 3 & 0.47,0.77 & 4 \\ B403 & -0.72,0.09 & 9 & -0.31,0.08 & 4 & 1.06,0.07 & 8 & 0.44,0.11 & 4 \\ B006 & -0.69,0.05 & 7 & -0.32,0.05 & 5 & 1.35,0.04 & 6 & 0.32,0.04 & 5 \\ B225 & -0.64,0.05 & 10& -0.21,0.05 & 4 & 1.09,0.07 & 5 & 0.39,0.09 & 4 \\ B034 & -0.60,0.10 & 5 & -0.24,0.09 & 5 & 1.11,0.07 & 7 & 0.45,0.08 & 4 \\ B110$^{b}$& -0.57,0.09 & 3 & -0.32,0.07 & 4 & 1.09,0.12 & 6 & 0.33,0.09 & 2 \\ B384 & -0.56,0.04 & 11& -0.26,0.07 & 5 & 1.11,0.07 & 6 & 0.42,0.05 & 4 \\ B171 & -0.52,0.03 & 8 & -0.28,0.05 & 4 & 1.24,0.04 & 8 & 0.36,0.04 & 5 \\ B163 & -0.42,0.09 & 12& -0.24,0.05 & 5 & 0.94,0.12 & 5 & 0.35,0.08 & 4 \\ B193 & -0.18,0.09 & 13& -0.10,0.05 & 4 & 1.10,0.09 & 7 & 0.45,0.06 & 4 \\ & & & & & & & & \\ \hline \end{tabular}\\ \end{center} \medskip \raggedright $^{a}$ CNO abundances are determined from the CO, CN, and OH molecular lines in \citet{Smith2013}, assuming $^{12}$C/$^{13}\rm{C} = 6$ (see the text).\\ $^{b}$ Cluster's spectral range is limited due to superpersistence; see Section \ref{subsec:DataReduction}. \end{table} Figure \ref{fig:FeComp} compares the $H$-band [\ion{Fe}{1}/H] abundances with the high resolution, optical [\ion{Fe}{1}/H] ratios from \citet{Colucci2014} and Appendix \ref{appendix:OpticalAbunds}. Figure \ref{fig:FeCompA} compares the values to each other, while Figure \ref{fig:FeCompB} shows the differences versus $H$-band [Fe/H]. Though the $H$-band values are generally slightly higher than the optical (by 0.05 dex on average), all agree within the $1\sigma$ errors and there is no trend with [Fe/H]. A small offset between IR and optical [\ion{Fe}{1}/H] may be expected due to NLTE effects (e.g., \citealt{KraftIvans2003}). Strong NLTE effects may plague the optical \ion{Fe}{1} lines, especially in the brightest AGB stars (e.g., \citealt{Lapenna2015}), which would then affect the combined, integrated \ion{Fe}{1} lines. NLTE corrections to the \ion{Fe}{1} lines in the $H$-band are expected to be smaller than for those in the optical \citep{GarciaHernandez2015}, which could naturally lead to slight offsets between the optical and IR. \ion{Fe}{2} is expected to be a more reliable Fe indicator; however, in the optical there are fewer \ion{Fe}{2} lines (1-16 for these GCs; \citealt{Colucci2014}), they are often weaker, most are located further in the blue, and they are more sensitive to systematic uncertainties in the underlying stellar population \citep{Sakari2014}. For these reasons, the $H$-band \ion{Fe}{1} abundances are not always in agreement with the optical \ion{Fe}{2}, although the {\it average} offset is very small. The small offset between optical and $H$-band [\ion{Fe}{1}/H] suggests that the NLTE offsets are likely to be small. The $H$-band therefore provides robust, integrated [\ion{Fe}{1}/H] ratios down to at least $[\rm{Fe/H}] \sim -1.8$, depending on S/N and GC velocity dispersion. \begin{figure}[h!] \begin{center} \centering \subfigure[]{\includegraphics[scale=0.55,trim=1.25in 0in 0.25in 0.0in]{CompFevsFe.eps}\label{fig:FeCompA}} \subfigure[]{\includegraphics[scale=0.55,trim=0.5in 0in 1.25in 0.0in]{FeDiffFevsFe.eps}\label{fig:FeCompB}} \caption{Comparisons of the $H$-band [\ion{Fe}{1}/H] abundances with the optical, high-resolution abundances from Appendix \ref{appendix:OpticalAbunds} and \citet{Colucci2009,Colucci2014}. The error bars represent $1\sigma$ random errors, while the dashed lines show perfect agreement. {\it Left: } The two values plotted against each other. {\it Right: } The difference in [\ion{Fe}{1}/H] (optical $-$ IR) as a function of $H$-band [Fe/H]. The solid red line shows the average offset between the optical and $H$-band, which is also quoted in the upper left corner.\label{fig:FeComp}} \end{center} \end{figure} \clearpage \subsection{Light Elements: Carbon, Nitrogen, and Oxygen}\label{subsec:CNO} Carbon, nitrogen, and oxygen are crucial elements for GC studies. In the $H$-band, C, N, and O abundances can be determined from syntheses of CO, CN, and OH molecular lines (see \citealt{Smith2013}) with an assumed $^{12}$C/$^{13}$C ratio. In these IL spectra the S/N is not sufficient and/or the blending is too severe to measure a precise $^{12}$C/$^{13}$C ratio (though in some cases it is evident that $^{12}$C/$^{13}\rm{C} < 20$). For all clusters, $^{12}$C/$^{13}\rm{C} = 6$ is adopted to represent the approximate value for stars at the tip of the RGB (e.g., \citealt{Gratton2000}). Since most of the molecular features are not strongly dependent on the precise $^{12}$C/$^{13}$C ratio and the $H$-band IL spectrum is dominated by tip of the RGB stars, this assumption should not have a strong effect on these IL abundances (see Figure \ref{fig:C12C13}). The final [C/Fe], [N/Fe], and [O/Fe] ratios are listed in Table \ref{table:CNO}, while sample syntheses of N-sensitive CN features are shown in Figure \ref{fig:CNsynth}. Figure \ref{fig:LightComp} shows a comparison between the $H$-band and optical [C/Fe] and [N/Fe] ratios, as a function of [Fe/H]. Reliable C, N, and O abundances can be difficult to obtain in the optical, particularly in IL spectra. C and N can be determined from CN and C$_{2}$ features in the blue (e.g., \citealt{Worthey1994,TripiccoBell1995,Schiavon2007}), but the exact abundances rely on an assumed O abundance \citep{GravesSchiavon2008}. O can be determined via the forbidden lines at 6300 and 6363 \AA, but this requires high resolution, high S/N spectra of low velocity dispersion GCs because the lines are weak. The comparison optical values are therefore from the Lick index analyses of \citet{Schiavon2012,Schiavon2013}, and are only available for metal-rich GCs ($[\rm{Fe/H}] \gtrsim -1$). These [C/Fe] and [N/Fe] ratios are determined from the C$_{2}$4668 and CN$_{1}$ and CN$_{2}$ ($\sim 4140-4180$~\AA) Lick indices, assuming a fixed $[\rm{O/Fe}] = 0.3$ for all GCs. Figure \ref{fig:LightComp} demonstrates that, in general, the $H$-band [C/Fe] ratios are lower than the optical values by 0.2 dex, on average, while the [N/Fe] ratios are significantly higher (by 0.5 dex on average, when the three GCs in agreement are removed). The [N/Fe] ratios agree for the massive, metal-rich GCs B193, B163, and B225, though the [C/Fe] ratios are still slightly offset for the latter two. Note that the $H$-band abundances agree with the expected abundances for tip of the RGB stars, which have dredged up products from CNO cycling \citep{Gratton2000}. For the GCs with strong disagreement (i.e., all targets except the most metal-rich GCs), the optical Lick index CNO values do not fit the IR features. To demonstrate this, syntheses of a CO bandhead in B171, B006, and B045 are shown in Figure \ref{fig:CO}, with the optimal $H$-band CNO abundances and the Lick index C, N, and (assumed) O abundances. The 16183 \AA \hspace{0.025in} CO bandhead is primarily sensitive to C; the syntheses in Figure \ref{fig:CO} suggest that the Lick C abundances are too high to fit the $H$-band features, particularly for the more metal-poor GCs in the sample. This disagreement between the optical and the $H$-band is significant, and will be addressed in Section \ref{subsubsec:CNspread}. \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.6,trim=1.5in 0.in 0in 0.0in]{C12C13.eps} \caption{Sample syntheses of a C-sensitive CO feature in the most metal-rich GC, B193, demonstrating the small effects of the assumed $^{12}$C$/^{13}$C ratio (the effects of varying $^{12}$C$/^{13}$C are likely to be even smaller in more metal-poor GCs). The grey areas show regions that were masked out in the data reduction pipeline (see Section \ref{subsec:DataReduction}). Three $^{12}$C$/^{13}$C ratios are shown: 6, 10, and 30. Though the lower $^{12}$C$/^{13}$C is slightly preferred, the differences are quite small.\label{fig:C12C13}} \end{center} \end{figure} \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.75,trim=0.0 0.5in 0in 0.0in]{CN.eps} \caption{Sample syntheses of CN features in two GCs, B193 and B045; these features are used to determine [N/Fe]. The solid lines show the best-fit syntheses, while the dashed lines show $\pm1\sigma$ uncertainties in [N/Fe] of 0.20 dex in both cases.\label{fig:CNsynth}} \end{center} \end{figure} \begin{figure}[h!] \begin{center} \centering \subfigure{\includegraphics[scale=0.55,trim=1.25in 0in 0.25in 0.0in]{FeDiffCvsC.eps}\label{fig:CComp}} \subfigure{\includegraphics[scale=0.55,trim=0.5in 0in 1.25in 0.0in]{FeDiffNvsN.eps}\label{fig:NComp}} \caption{Comparisons of the $H$-band [C/Fe] (left) and [N/Fe] (right) ratios with the optical values from \citet{Schiavon2012,Schiavon2013}, as a function of $H$-band [Fe/H]. The differences are given as optical$-$ $H$-band. The error bars represent $1\sigma$ random errors, the dashed line shows perfect agreement, and the solid red line shows the average offset (which is quoted in each panel).\label{fig:LightComp}} \end{center} \end{figure} \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.7]{CO.eps} \caption{Syntheses of the 16183 \AA \hspace{0.025in} CO bandhead, which is primarily sensitive to [C/Fe], in B171, B006, and B045. The grey area shows a region that was masked out in the data reduction pipeline (see Section \ref{subsec:DataReduction}). The black points show the data and the solid red lines show the best-fitting syntheses from this analysis. The dashed blue lines show syntheses with the optical Lick index [Fe/H], [C/Fe], [N/Fe], and (assumed) [O/Fe] ratios.\label{fig:CO}} \end{center} \end{figure} \clearpage \subsection{Light Elements: Sodium, Magnesium, and Aluminum}\label{subsec:LightVary} The ``light'' elements Na, Mg, and Al are also important for GC studies because their abundances are known to vary between stars within GCs (e.g., \citealt{Carretta2009}). The $H$-band offers complementary lines to the optical, with varying line strengths and EPs. While robust optical Na abundances can be derived from the 5682/5688 and 6154/6160 \AA \hspace{0.025in} doublets (and possibly the NaD lines for metal-poor GCs) there is only one detectable weak doublet in the $H$-band, which comes from a higher EP transition and is not detectable in the most metal-poor GCs. Mg has several medium strength and strong lines in the optical; the $H$-band offers 2-6 more. As mentioned in Section \ref{subsec:AbundDeterminations}, stronger lines can be utilized in the IR, making the strong $H$-band Mg lines useful for GCs over a wide range of metallicities. Optical Al is primarily determined from the weak 6696/6698~\AA \hspace{0.025in} lines, which are not detectable in the lowest metallicity GCs (though there are additional lines in the blue and red). The $H$-band offers 2 strong and 1 moderately-strong Al lines which can be detected even in low-metallicity GCs (note that these strong \ion{Al}{1} lines have hyperfine structure components that must be included to properly reproduce the strengths of the lines). The strongest \ion{Al}{1} line becomes prohibitively strong at moderate metallicity ($[\rm{Fe/H}]~\sim~-1.2$), while for the highest metallicity clusters all three Al lines are too strong. For clusters with only strong lines the REW limit was pushed up to $-4.5$; as discussed in Section \ref{subsubsec:Strong}, this may introduce systematic uncertainties of $\sim 0.1$ dex. The $H$-band Na, Mg, and Al abundances are shown in Table \ref{table:LightVary}, while Figure \ref{fig:LightVaryComp} shows the optical vs. $H$-band comparisons. There are few GCs with $H$-band and optical [Na/Fe] abundances (because the $H$-band lines are weak and difficult to detect). For the four GCs with both optical and $H$-band [Na/Fe] ratios, the agreement is decent. The $H$-band also provides a [Na/Fe] abundance for B193, which was not available in the optical. Conversely, the weakness of the optical 6696/6698~\AA \hspace{0.025in} lines means that there are only a few GCs with optical [Al/Fe] ratios. For those ten GCs in common, the agreement between the optical and $H$-band is generally good, though the errors are large and there is a large scatter. The $H$-band [Al/Fe] abundances are generally lower than the optical, with one exception: B045's [Al/Fe] does not agree with the optical value within its $1\sigma$ errors; its $H$-band value is $\sim 0.2$ dex higher than its optical value. Figure \ref{fig:MgComp} shows that though the Mg abundances have a large scatter in the optical $-$ $H$-band difference, this scatter is within the errors. One cluster, B193, has a larger optical [Mg/Fe] by $\sim 0.2$ dex---however, this cluster's optical Mg abundance was derived with a single strong line (at 5528 \AA); it is thus possible that the optical [Mg/Fe] is systematically offset by $>0.1$ dex (see the discussion in Section \ref{subsubsec:Strong} and \citealt{McWilliam1995b}). Systematically higher [Mg/Fe] ratios are also seen for the other metal-rich GCs whose Mg abundances were derived with the same strong line. Figure \ref{fig:MgLRComp} compares these $H$-band Mg abundances to the lower resolution Lick index values from \citet{Schiavon2013}, for metal-rich clusters only---the Mg abundances agree within $1\sigma$ errors. One cluster, B403, has an optical, Lick index [Mg/Fe] that is much higher than its $H$-band value, by $\sim 0.4$ dex---however, this cluster's [Fe/H] is also in disagreement by $>0.2$ dex, so this offset in [Mg/Fe] is not likely to be significant. Three clusters (B088, B240, and B235) have lower optical, high-resolution Mg abundances (by $0.2-0.4$ dex) than in the $H$-band. For all three cases, both optical and $H$-band abundances are derived from 3-4 lines, each of which give consistent results. B235's $H$-band [Mg/Fe] agrees with the lower-resolution Lick index results from \citet{Schiavon2013}; the other two were not included in that paper because they are too metal-poor. B088 is offset by $4\sigma$ according to the errors quoted in \citet{Colucci2014}---however, these quoted optical errors are quite small (0.02 dex due to age uncertainties), suggesting that their stated error is too small. Even if a larger error of 0.1 dex is adopted for the optical, B088 is still offset by $>2\sigma$. This discrepancy will be investigated in Section \ref{subsubsec:MgAlspread}. \begin{table} \centering \begin{center} \caption{Mean $H$-band abundances and random errors: Na, Mg, Al, Si, Ca, and Ti.\label{table:LightVary}\label{table:Alpha}} \newcolumntype{d}[1]{D{,}{\pm}{#1}} \begin{tabular}{@{}ld{3}cd{3}cd{3}cd{3}cd{3}cd{3}c@{}} \hline & \multicolumn{1}{c}{[Na/Fe]} & $N$ & \multicolumn{1}{c}{[Mg/Fe]} & $N$ & \multicolumn{1}{c}{[Al/Fe]} & $N$ & \multicolumn{1}{c}{[Si/Fe]} & $N$ & \multicolumn{1}{c}{[Ca/Fe]} & $N$ & \multicolumn{1}{c}{[Ti/Fe]} & $N$ \\ \hline B232 & \multicolumn{1}{c}{$-$} & & -0.01,0.10 & 1 & \multicolumn{1}{c}{$-$} & & 0.47,0.10 & 1 & \multicolumn{1}{c}{$-$} & & \multicolumn{1}{c}{$-$} & \\ B088 & \multicolumn{1}{c}{$-$} & & 0.03,0.10 & 3 & 0.51,0.20 & 1 & 0.38,0.09 & 3 & 0.31,0.20 & 1 & \multicolumn{1}{c}{$-$} & \\ B311 & \multicolumn{1}{c}{$-$} & & -0.04,0.14 & 2 & \multicolumn{1}{c}{$-$} & & 0.21,0.10 & 3 & 0.38,0.40 & 1 & \multicolumn{1}{c}{$-$} & \\ B012 & \multicolumn{1}{c}{$-$} & & -0.14,0.18 & 2 & 0.38,0.15 & 1& 0.43,0.11 & 2 & \multicolumn{1}{c}{$-$} & & \multicolumn{1}{c}{$-$} &\\ B240 & \multicolumn{1}{c}{$-$} & & 0.20,0.07 & 4 & 0.41,0.15 & 2& 0.22,0.06 & 4 & \multicolumn{1}{c}{$-$} & & \multicolumn{1}{c}{$-$} & \\ B405 & \multicolumn{1}{c}{$-$} & & 0.07,0.12 & 3 & 0.35,0.20 & 1& 0.35,0.08 & 3 & \multicolumn{1}{c}{$-$} & & \multicolumn{1}{c}{$-$} & \\ B472 & \multicolumn{1}{c}{$-$} & & 0.14,0.10 & 4 & 0.49,0.20 & 1$^{a}$& 0.14,0.16 & 5 & 0.32,0.14 & 2 & \multicolumn{1}{c}{$-$} & \\ B386 & \multicolumn{1}{c}{$-$} & & 0.06,0.10 & 1 & 0.46,0.08 & 1& 0.46,0.08 & 3 & 0.26,0.20 & 1 & 0.36,0.10 & 1 \\ B312 & \multicolumn{1}{c}{$-$} & & -0.05,0.20 & 1 & 0.35,0.14 & 2& 0.52,0.07 & 3 & \multicolumn{1}{c}{$-$} & & \multicolumn{1}{c}{$-$} &\\ B063 & \multicolumn{1}{c}{$-$} & & 0.34,0.08 & 3 & 0.29,0.20 & 1& 0.36,0.08 & 3 & 0.49,0.10 & 1 & 0.24,0.08 & 3 \\ B381 & \multicolumn{1}{c}{$-$} & & 0.22,0.10 & 1 & 0.47,0.15 & 1& 0.41,0.05 & 4 & 0.22,0.10 & 3 & \multicolumn{1}{c}{$-$} & \\ B182 & \multicolumn{1}{c}{$-$} & & 0.19,0.05 & 2 & 0.19,0.11 & 2& 0.46,0.08 & 3 & 0.44,0.07 & 2 & 0.34,0.20 & 1 \\ B045 & \multicolumn{1}{c}{$-$} & & 0.22,0.15 & 2 & 0.32,0.15 & 1& 0.43,0.06 & 2 & 0.20,0.13 & 2 & 0.27,0.14 & 2 \\ B048 & \multicolumn{1}{c}{$-$} & & \multicolumn{1}{c}{$-$} & & \multicolumn{1}{c}{$-$} & & 0.48,0.10 & 2 & 0.32,0.07 & 2 & \multicolumn{1}{c}{$-$} & \\ B235 & \multicolumn{1}{c}{$-$} & & 0.27,0.13 & 2 & 0.39,0.20 & 1& 0.40,0.05 & 4 & 0.37,0.07 & 2 & \multicolumn{1}{c}{$-$} & \\ B383 & \multicolumn{1}{c}{$-$} & & 0.22,0.09 & 2 & 0.22,0.14 & 2& 0.35,0.06 & 4 & 0.34,0.07 & 2 & \multicolumn{1}{c}{$-$} & \\ B403 & 0.32,0.20 & 1 & 0.05,0.13 & 2 & \multicolumn{1}{c}{$-$} & & 0.42,0.10 & 1 & 0.22,0.06 & 2 & \multicolumn{1}{c}{$-$} & \\ B006 & 0.39,0.14 & 2 & 0.43,0.05 & 2 & 0.43,0.15 & 1$^{a}$& 0.37,0.14 & 5 & 0.31,0.07 & 2 & 0.43,0.07 & 2 \\ B225 & \multicolumn{1}{c}{$-$} & & 0.24,0.14 & 2 & 0.64,0.14 & 2& 0.32,0.06 & 3 & 0.34,0.06 & 3 & 0.39,0.15 & 1 \\ B034 & \multicolumn{1}{c}{$-$} & & 0.30,0.10 & 1 & 0.40,0.20 & 1& 0.35,0.10 & 3 & 0.30,0.07 & 2 & 0.35,0.11 & 2 \\ B110 & \multicolumn{1}{c}{$-$} & & 0.23,0.11 & 2 & 0.32,0.14 & 1& 0.31,0.08 & 2 & 0.28,0.07 & 2 & \multicolumn{1}{c}{$-$} & \\ B384 & \multicolumn{1}{c}{$-$} & & 0.26,0.13 & 2 & 0.16,0.09 & 1& 0.32,0.09 & 4 & 0.23,0.08 & 4 & 0.31,0.11 & 2 \\ B171 & 0.57,0.20 & 1 & 0.37,0.10 & 1 & \multicolumn{1}{c}{$-$} & & 0.27,0.08 & 5 & 0.30,0.07 & 2 & 0.35,0.10 & 2 \\ B163 & 0.57,0.10 & 1 & 0.22,0.10 & 1 & 0.56,0.05 & 2$^{a}$& 0.19,0.09 & 3 & 0.27,0.05 & 2 & 0.22,0.10 & 1 \\ B193 & 0.64,0.05 & 2 & 0.19,0.10 & 1 & 0.39,0.20 & 1$^{a}$ & 0.27,0.10 & 3 & 0.34,0.15 & 2 & 0.36,0.08 & 3 \\ & & & & & & & & & & & & \\ \hline \end{tabular}\\ \end{center} \medskip \raggedright $^{a}$ This $H$-band abundance was derived from at least one strong line with $-4.7 < \rm{REW} -4.5$, which may lead to systematic uncertainties of $\sim 0.1$ dex \citep{McWilliam1995b}. \end{table} \begin{figure}[h!] \begin{center} \centering \subfigure[]{\includegraphics[scale=0.55,trim=1.25in 0in 0.05in 0.0in]{FeDiffNavsNa.eps}\label{fig:NaComp}} \subfigure[]{\includegraphics[scale=0.55,trim=0.5in 0in 1.25in 0.0in]{FeDiffAlvsAl.eps}\label{fig:AlComp}} \subfigure[]{\includegraphics[scale=0.55,trim=1.25in 0in 0.05in 0.0in]{FeDiffMgvsMg.eps}\label{fig:MgComp}} \subfigure[]{\includegraphics[scale=0.55,trim=0.5in 0in 1.25in 0.0in]{FeDiffMgvsMgLR.eps}\label{fig:MgLRComp}} \caption{Comparisons of the $H$-band [Na/Fe] (top left), [Al/Fe] (top right), and [Mg/Fe] (bottom left) with the optical values from \citet{Colucci2014} and Appendix \ref{appendix:OpticalAbunds}, as a function of $H$-band [Fe/H]. The bottom right shows a comparison of $H$-band [Mg/Fe] with the Lick index [Mg/Fe] from \citet{Schiavon2013}. Differences are optical $-$ $H$-band. The error bars represent $1\sigma$ random errors, the dashed lines show perfect agreement, the solid red lines show the average offsets, and the quoted values list the average offsets. Clusters whose optical abundances are derived from very strong lines are shown with blue squares, while clusters whose infrared abundances are derived from strong lines are shown with orange pentagons. \label{fig:LightVaryComp}} \end{center} \end{figure} \clearpage \subsection{Alpha Elements: Silicon, Calcium, and Titanium}\label{subsec:Alpha} The $\alpha$-elements Si, Ca, and Ti mainly form in massive stars and are expelled into the interstellar medium by core-collapse supernovae (which also produce iron). (Mg is also an $\alpha$-element; however, because it can vary between stars within a single GC, it is discussed in Section \ref{subsec:LightVary} with O, Na, and Al.) Type Ia supernovae from lower mass stars also produce copious amounts of iron but very little $\alpha$-elements. The ratio of [$\alpha$/Fe] therefore probes contributions from Type II vs. Ia supernovae, and is valuable for galactic chemical evolution studies. Because chemical evolution in dwarf galaxies proceeds differently than in massive galaxies, the chemical abundances of dwarf galaxy stars and clusters diverges with increasing metallicity (see, e.g., \citealt{Tolstoy2009}). The [$\alpha$/Fe] ratios can therefore be used for chemical tagging of GCs (e.g., \citealt{Hogg2016}), and are essential for IL spectroscopy of extragalactic GCs (e.g., \citealt{Colucci2012,Colucci2014,Sakari2015}). Again, the $H$-band provides complementary lines to the optical. The optical has numerous silicon lines, but they are often weak and difficult to detect in metal-poor GCs. There are 3 strong \ion{Si}{1} lines in the $H$-band, and 6 more moderately strong lines---note that the strongest \ion{Si}{1} lines at 15960 and 16095 \AA \hspace{0.025in} become too strong ($\rm{REW}\gtrsim -4.7$) at high metallicity ($[\rm{Fe/H}] \gtrsim -0.7$). The optical has many detectable \ion{Ca}{1} lines of varying strength---furthermore, these lines are also largely insensitive to uncertainties in the underlying stellar populations (e.g., the distribution of stars in temperature-$\log g$ space; \citealt{Sakari2014}). In the $H$-band there are three \ion{Ca}{1} lines at high EP, though 2 are extremely blended, leading to large random errors. \ion{Ti}{1} and \ion{Ti}{2} lines are readily available in the optical, but both suffer from potential systematic uncertainties. The \ion{Ti}{1} lines may be affected by NLTE effects \citep{Bergemann2011} and are strongly affected by uncertainties in the underlying stellar populations \citep{Sakari2014}. The \ion{Ti}{2} lines are also affected by uncertainties in the stellar populations, and many of the lines are located further in the blue (where the S/N is often lower and where contributions from hotter stars may have a larger effect). The $H$-band offers a handful of moderate strength \ion{Ti}{1} lines---though they are often blended with other features, these lines may be less affected by uncertainties in the underlying stellar populations. The abundances of the $\alpha$-elements are listed in Table \ref{table:Alpha} and are compared with the optical abundances in Figure \ref{fig:AlphaComp}. Figure \ref{fig:SiComp} compares [Si/Fe]. The uncertainties in the optical Si abundances can be quite large because the lines are often weak. There are three GCs whose [Si/Fe] ratios do not agree between the optical and the $H$-band within $1\sigma$ errors: B403, B381, and B240, all of which have optical [Si/Fe] ratios that are $>0.5$ dex. The stronger $H$-band Si lines may produce higher-precision Si abundances compared to the weaker optical Si lines. Calcium is an element which can be difficult to detect in the $H$-band, particularly in the most metal-poor GCs. The four available lines are from high EP transitions which are clumped together in a region at $\sim 16150$ \AA \hspace{0.025in} that is superpersistence in some visits (see Table \ref{table:Targets}). The optical abundances, however, are well-constrained from measurements of $2-13$ lines. When $H$-band Ca lines can be detected, Figure \ref{fig:CaComp} shows that the agreement between the optical and the $H$-band is generally good, with the exception of B034 and B235, whose $H$-band [Ca/Fe] ratios are $>1\sigma$ higher than the optical values. The $H$-band \ion{Ti}{1} lines are very weak and blended in these spectra. Table \ref{table:Alpha} shows that Ti is not detectable in the most metal-poor clusters and is difficult to detect in GCs with high velocity dispersions. For the GCs with measurements in both the $H$-band and the optical, the $H$-band [\ion{Ti}{1}/\ion{Fe}{1}] ratios are generally higher than the optical values, as seen in Figure \ref{fig:TiComp}. B006, B034, and B193 are not in agreement---however, all GCs show agreement between $H$-band [\ion{Ti}{1}/\ion{Fe}{1}] and optical [\ion{Ti}{2}/\ion{Fe}{2}] (Figure \ref{fig:TiIIComp}). This suggests that the optical \ion{Ti}{1} lines are systematically affected in some way that the IR lines are not---again, this could indicate that the $H$-band lines are less affected by NLTE effects (e.g., \citealt{GarciaHernandez2015}). \vspace{0.1in} \begin{figure}[h!] \begin{center} \centering \subfigure[]{\includegraphics[scale=0.55,trim=1.25in 0.25in 0.05in 0.5in]{FeDiffSivsSi.eps}\label{fig:SiComp}} \subfigure[]{\includegraphics[scale=0.55,trim=0.5in 0.25in 1.25in 0.5in]{FeDiffCavsCa.eps}\label{fig:CaComp}} \subfigure[]{\includegraphics[scale=0.55,trim=1.25in 0.25in 0.05in 0.15in]{FeDiffTivsTi.eps}\label{fig:TiComp}} \subfigure[]{\includegraphics[scale=0.55,trim=0.5in 0.25in 1.25in 0.15in]{FeDiffTivsTiII.eps}\label{fig:TiIIComp}} \vspace{-0.1in} \caption{Comparisons of the $H$-band [Si/Fe] (top left), [Ca/Fe] (top right), and [Ti/Fe] (bottom) ratios with the optical values from \citet{Colucci2014} and Appendix \ref{appendix:OpticalAbunds}, as a function of $H$-band [Fe/H]. The bottom left plot shows $\Delta$[\ion{Ti}{1}/Fe] while the bottom right plot shows the difference between optical [\ion{Ti}{2}/Fe] and $H$-band [\ion{Ti}{1}/Fe]. Differences are optical $-$ $H$-band. The error bars represent $1\sigma$ random errors, the dashed lines show perfect agreement, the solid red lines show the average offsets, and the quoted values list the average offsets.\label{fig:AlphaComp}} \end{center} \end{figure} \clearpage \subsection{Potassium}\label{subsec:K} The $H$-band offers two moderate EP (2.67 eV) \ion{K}{1} lines at 15163 and 15168 \AA. These lines lie on the blue edge of APOGEE's spectral range, and they are not easily detectable in most of the targets with low S/N. K {\it is} detectable in only a handful of the GCs, as shown in Table \ref{table:K}. There are no optical, IL K abundances to compare with, but [K/Fe] can be compared to the $\alpha$-elements. Potassium is not an $\alpha$-element, yet abundance analyses of stars in the MW indicate that the chemical evolution of [K/Fe] is similar to the evolution in [$\alpha$/Fe] (see, e.g., \citealt{Zhang2006}). The [K/Fe] ratios are compared to the optical [Ca/Fe] ratios in Figure \ref{fig:KComp}; the agreement is generally quite good. The optical [Ca/Fe] ratios are chosen for this comparison in lieu of Mg, Si, or Ti because they have the lowest random and systematic errors and therefore likely to best represent the cluster [$\alpha$/Fe] \citep{Sakari2014}. K is therefore another viable element for abundance analyses of extragalactic targets. The spectral lines are not easy to detect in spectra of this quality, but the detections and errors would be vastly improved with higher S/N. \begin{table} \centering \begin{center} \caption{Potassium abundances.\label{table:K}} \newcolumntype{d}[1]{D{,}{\pm}{#1}} \begin{tabular}{@{}ld{3}c} \hline & \multicolumn{1}{c}{[K/Fe]} & N \\ \hline B472 & 0.29,0.20 & 1 \\ B063 & 0.44,0.10 & 1 \\ B045 & 0.27,0.10 & 1 \\ B006 & 0.28,0.10 & 1 \\ B225 & 0.39,0.07 & 2\\ B171 & 0.42,0.15 & 1 \\ B163 & 0.27,0.08 & 2 \\ B193 & 0.29,0.10 & 2 \\ & & \\ \hline \end{tabular}\\ \end{center} \medskip \end{table} \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.55]{FeDiffKvsCa.eps} \caption{Comparisons of the $H$-band [K/Fe] ratios to the optical [Ca/Fe] ratios, as a function of $H$-band [Fe/H]. The error bars represent $1\sigma$ random errors, the dashed line shows perfect agreement, the solid red line shows the average offset, and the quoted value is the average offset.\label{fig:KComp}} \end{center} \end{figure} \clearpage \section{Discussion}\label{sec:Discussion} The abundance results from Section \ref{sec:Abunds} can be summarized as follows. \begin{description} \item[Iron: ] All clusters show good agreement between optical and $H$-band [Fe/H] ratios, most within 0.1 dex. However, this is when the optical age and metallicity from the optical are adopted (though note that the isochrone [Fe/H] is refined if the $H$-band abundance differs enough from the optical). It may be difficult to identify a viable isochrone from the $H$-band alone, as discussed in Section \ref{subsec:FeDiscussion}.\\ \item[CNO: ] The $H$-band [C/Fe] ratios are systematically lower than the optical Lick index values, while (with three metal-rich exceptions) the $H$-band [N/Fe] values are higher. This discrepancy is explored further in Section \ref{subsec:MultiPopDiscussion}.\\ \item[Other elements: ] With the exception of a few outliers in each case, the $H$-band Na, Mg, Al, Si, and Ca abundances agree well with the optical values. The $H$-band Ti abundance is in excellent agreement with the optical \ion{Ti}{2} abundance, suggesting that the $H$-band \ion{Ti}{1} lines are not as sensitive to NLTE effects as optical lines. The outliers could be due to issues with specific lines (as a result of, e.g., S/N or atomic data) or could reflect problems with the models of the underlying populations (though see Sections \ref{subsec:FeDiscussion} and \ref{subsec:AGBratio}). The higher precision Si and Al abundances and new O and K abundances enable the multiple populations in these M31 GCs to be probed in new ways, as discussed in Section \ref{subsec:MultiPopDiscussion}. For elements that are not suspected to vary between stars in GCs, the general agreement between optical and $H$-band for all elements demonstrates the validity of the $H$-band for abundance analyses of unresolved targets (see Section \ref{subsec:ChemEvol}).\\ \end{description} \vspace{-0.5in} \subsection{Determining Isochrone Parameters in the Infrared}\label{subsec:FeDiscussion} High-resolution optical analyses (e.g., \citealt{McWB,Colucci2009,Colucci2011a,Colucci2014,Sakari2013,Sakari2015}) utilize \ion{Fe}{1} lines to constrain the appropriate age and metallicity of the stellar populations, by minimizing trends in iron abundance with line wavelength, REW, and EP. Improperly modeled atmospheres will cause lines with different properties to have systematically offset abundances---e.g., populations with too few hot stars will require larger Fe abundances to match the strengths of the highest EP lines. This technique relies on a large sample of \ion{Fe}{1} lines with a range of wavelengths, REWs, and EPs. Even in the optical, where a large selection of \ion{Fe}{1} lines is readily available, the line-to-line scatter prohibits better precision in cluster ages than $\sim1-5$ Gyr \citep{Colucci2014}. Section \ref{subsec:Fe} demonstrates that the $H$-band offers only a few detectable, moderately blended \ion{Fe}{1} lines ($\sim2-13$, depending on metallicity, S/N, and cluster velocity dispersion). The severe blending with nearby lines, especially molecular features, at this resolution renders equivalent width analyses extremely difficult. Furthermore, these \ion{Fe}{1} lines are primarily from high EP transitions, with most having ${\rm EP} > 5$ eV; only two have ${\rm EP} < 5$~eV, and those lines are not detectable in all GCs. The $H$-band \ion{Fe}{1} lines have a variety of strengths, but only the strongest lines are detectable in the most metal-poor, high velocity dispersion GCs. This limits the usefulness of the $H$-band for determining GC age without the aid of optical data. Note that while there are other, better techniques for determining GC age (e.g., isochrone fitting of partially resolved GCs, \citealt{Mackey2013}; or fitting age-sensitive features in the optical, \citealt{Caldwell2009,Caldwell2011}) this section is only concerned with whether the $H$-band spectra alone are sufficient for identifying an appropriate isochrone (and therefore for performing a detailed chemical abundance analysis). Figure \ref{fig:B006Trendsa} shows that for B006 ($[\rm{Fe/H}]~=~-0.69$) the $H$-band \ion{Fe}{1} lines agree well with the optical lines, and add more range to the wavelength and EP plots. On their own, however, the $H$-band lines do not provide a sufficient range in REW or EP to flatten the slopes and constrain GC age. This is demonstrated in Figure \ref{fig:B006Trendsb}, where a younger age of 5 Gyr is adopted. The optical lines indicate that 5 Gyr is not likely to be an appropriate age for B006. The $H$-band lines by themselves, on the other hand, cannot be used to rule out an age of 5 Gyr. The situation becomes even worse for clusters with low S/N and/or low [Fe/H], in which fewer \ion{Fe}{1} lines are detectable. Minimizing trends in the $H$-band \ion{Fe}{1} abundances is therefore not a viable way to constrain the cluster age. \begin{figure}[h!] \begin{center} \centering \subfigure[Age: 12 Gyr]{\includegraphics[scale=0.4,trim=0in 0.25in 0.0in 0.25in,clip]{B006Trends.eps}\label{fig:B006Trendsa}} \subfigure[Age: 5 Gyr]{\includegraphics[scale=0.4,trim=0in 0.25in 0.0in 0.25in,clip]{B006Trendsb.eps}\label{fig:B006Trendsb}} \caption{The trends in \ion{Fe}{1} abundance with wavelength, REW, and EP, for the cluster B006. {\it Top:} Abundances with the assumed optimal age of 12 Gyr. {\it Bottom: } Abundances with a younger age of 5 Gyr. The optical lines (from Appendix \ref{appendix:OpticalAbunds}) are shown with black circles, while the IR lines are shown as red stars. The dashed red line shows the average \ion{Fe}{1} abundance, while the solid blue line shows the linear least squares fit to the points. The slopes are listed in each panel. For the 12 Gyr case, the $H$-band lines maintain the flat slopes from the optical, while adding range in wavelength and EP. The slopes from the optical points in the 5 Gyr case indicate that the age is inappropriate for B006; however, the $H$-band points do not have the parameter range necessary to constrain the cluster age.\vspace{-0.25in}} \end{center} \end{figure} However, even with the younger age of 5 Gyr, the $H$-band abundances still converge on roughly the same metallicity ($[\rm{Fe/H}]~=~-0.66$), suggesting that the $H$-band is less sensitive to cluster age than the optical (at least for GCs older than $\sim3$ Gyr). This can be understood simply by considering the relative contributions from various sub-populations in the $H$-band. Figure \ref{fig:HbandIsos} shows sample isochrones for a GC with $[\rm{Fe/H}]~=~-0.6$ at ages of 13 Gyr and 3 Gyr. Figure~\ref{fig:EWfrac} then shows the fractional contribution from each box to the strength of an \ion{Fe}{1} line (at 15207~\AA). These two figures illustrate that the $H$-band continuum level {\it and} \ion{Fe}{1} line strength are dominated by the tip of the RGB and AGB stars. The turnoff stars have very little effect on the \ion{Fe}{1} line, suggesting that cluster age will be less important for determining [Fe/H] in the $H$-band (though note, however, that the RGB is slightly offset in the 3 Gyr case, and that the younger isochrone's AGB has a greater effect on the \ion{Fe}{1} line). \begin{figure}[h!] \begin{center} \centering \subfigure[]{\includegraphics[scale=0.5]{HbandIsos.eps}\label{fig:HbandIsos}} \subfigure[]{\includegraphics[scale=0.5]{EWfrac.eps}\label{fig:EWfrac}} \caption{Age effects in the $H$-band. {\it Left: } BaSTI isochrones at $[\rm{Fe/H}] = -0.6$ for ages of 13 Gyr (solid line) and 3 Gyr (dashed line). The H-R Diagram boxes are shown on top of the isochrones (see Section \ref{subsec:ModelAtms}). The half-light $H$-band levels are shown with dotted lines, and are well above the HB stars. {\it Right: } The contributions to the strength of an \ion{Fe}{1} line (at 15207 \AA) from the two isochrones with different ages, per H-R Diagram box. Both examples illustrate that the $H$-band IL is dominated by the brightest RGB and AGB stars.\label{fig:Age}} \end{center} \end{figure} To test the effects of GC age on the abundances of the other elements, $H$-band abundances were determined for synthetic metal-rich ($[\rm{Fe/H}]~=~-0.5$) and metal-poor ($[\rm{Fe/H}]~=~-1.7$) clusters, each with ages of 13 and 3 Gyr. The total abundance differences for the two clusters are provided in Table \ref{table:Age}. The differences in relative [X/Fe] ratios are all $\lesssim 0.1$ dex. Figure \ref{fig:COAge} then shows syntheses of a CO bandhead in B171 (starting at 16183 \AA), where the [C/Fe] from the old population is adopted. Lowering the age has slightly weakened the CO features---bringing the line strengths into agreement requires increasing [C/H] by 0.15 dex for the younger isochrone. A similar increase in [Fe/H] (by 0.1 dex) means that $\Delta[\rm{C/Fe}] = 0.05$ for the 3 Gyr case. The effect of having a younger age by 10 Gyr is therefore not significant for the abundances determined in this analysis, at least for clusters older than $\sim 3$ Gyr.\footnote{Though it is not shown here, the effects of adopting a blue horizontal branch are similarly negligible.} To summarize, $H$-band IL spectra do not have enough \ion{Fe}{1} lines to constrain GC age in the same way as the optical. However, for GCs older than $\sim 3$ Gyr, the precise age has a much smaller impact on $H$-band abundances than on optical abundances. As long as an appropriate isochrone metallicity is selected, an age that is off by as much as 10 Gyr will only lead to negligible abundance offsets in old GCs. \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.8]{CO_youngandold.eps}\label{fig:COyoungandold} \caption{Syntheses of a CO bandhead in a GC with $[\rm{Fe/H}] = -0.5$, utilizing two different isochrones, an old 13 Gyr one (the solid black line) and a younger 3 Gyr one (the dashed blue line). The younger isochrone requires a larger C abundance to reproduce the strength of this feature, but a corresponding increase in [Fe/H] means that the relative [C/Fe] ratio changes by only 0.05 dex.\label{fig:COAge}} \end{center} \end{figure} \begin{table} \centering \begin{center} \caption{Abundance offsets when the stellar ages are lowered from 13 Gyr to 3 Gyr.\label{table:Age}} \newcolumntype{d}[1]{D{.}{.}{#1} } \begin{tabular}{@{}ld{3}d{3}d{3}d{3}d{3}d{3}d{3}d{3}d{3}d{3}@{}} \hline & & \multicolumn{9}{l}{$\Delta[\rm{X/Fe}]$} \\ & \multicolumn{1}{c}{$\Delta[\rm{Fe/H}]$} & \multicolumn{1}{c}{C} & \multicolumn{1}{c}{N} & \multicolumn{1}{c}{O} & \multicolumn{1}{c}{Na} & \multicolumn{1}{c}{Mg} & \multicolumn{1}{c}{Al} & \multicolumn{1}{c}{Si} & \multicolumn{1}{c}{Ca} & \multicolumn{1}{c}{Ti}\\ \hline MR & 0.10 & 0.05 & 0.0 & 0.10 & 0.0 & 0.0 & 0.05 & -0.05 & 0.05 & 0.05\\ MP & 0.0 & 0.0 & 0.05 & 0.0 & \multicolumn{1}{c}{$-$} & 0.05 & <0.05 & 0.0 & <0.05 & \multicolumn{1}{c}{$-$} \\ && & & & \\ \hline \end{tabular}\\ \end{center} \medskip \raggedright .\\ \end{table} \vspace{-0.3in} \subsection{Signatures of Multiple Populations}\label{subsec:MultiPopDiscussion} All bona fide, classical MW GCs are known to host significant star-to-star abundance variations. All GCs have stars which exhibit a Na/O anticorrelation, while some massive, metal-poor GCs also show Mg/Al anticorrelations (e.g., \citealt{Carretta2009}). Some GCs have significant CN variations (such as 47~Tuc; \citealt{Briley2004}). A few of the most massive GCs host spreads in heavy neutron-capture elements such as Ba and Eu (e.g., M15; \citealt{Sneden1997}), while an even smaller number host Fe variations (e.g., \citealt{Carretta2010}). As \citet{Colucci2014} have pointed out, interpreting the integrated abundances of GCs in terms of abundance variations within the clusters is non-trivial. The correlations are observed between individual stars in a given cluster, while IL abundances represent a flux-weighted average from a single cluster. However, deviations from the ``primordial'' abundances are inferred to exist in distant, partially resolved M31 GCs based on, e.g., enhanced integrated [Na/Fe], deficient integrated [Mg/Fe], and/or abundance correlations with cluster mass \citep{Colucci2014,Sakari2015,Schiavon2013}. These $H$-band abundances offer the chance to study new elements, like O, and to probe lines in a wavelength regime that is dominated by different stars than the optical. This section explores what can be learned about multiple populations in distant GCs from a combination of optical and $H$-band IL spectroscopy, focusing on CN variations (Section \ref{subsubsec:CNspread}), the Na/O anticorrelation (Section \ref{subsubsec:NaOspread}), the Mg/Al anticorrelation (Section \ref{subsubsec:MgAlspread}), and Fe spreads (Section \ref{subsubsec:Fespread}). \subsubsection{CN}\label{subsubsec:CNspread} This section examines the possibility that the disagreements between the $H$-band and optical, Lick index CN abundances could be due to the presence of strong star-to-star CN variations within the GC. In particular, the different wavelength regimes may be sensitive to different stellar sub-populations because the $H$-band is only sensitive to the tip of the RGB stars while the optical is more sensitive to hot stars. \paragraph{Variations up the RGB} In addition to the variations that occur between the multiple GC populations, surface C and N abundances (and $^{12}$C/$^{13}$C ratios) also vary up as a star evolves up the RGB (see, e.g., \citealt{Gratton2000}). The IR is predominantly sensitive to the evolved tip of the RGB stars, while the bluer, optical Lick indices may be more sensitive to the less-evolved RGB stars which have ``normal'' (i.e., pre-dredge up) C and N abundances. To test this, synthetic clusters were created with [C/Fe], [N/Fe], and $^{12}\rm{C}/^{13}\rm{C}$ variations along the upper RGB, one metal-rich ($[\rm{Fe/H}]~=~-0.5$), the other metal-poor ($[\rm{Fe/H}]~=~-1.7$). The variations from \citet{Gratton2000} are adopted: initial values of $[\rm{C/Fe}] = 0$, $[\rm{N/Fe}] = 0$, and $^{12}\rm{C}/^{13}\rm{C} = 40$ are adopted for all lower RGB stars; above the RGB bump the $^{12}\rm{C}/^{13}\rm{C}$ is a step function down to 5, while [C/Fe] and [N/Fe] linearly change along the RGB to final values of -0.5 and 1.0, respectively. All of the evolved HB and AGB stars are assumed to have the same values as the tip of the RGB stars. Note that these values are for more {\it metal-poor} field stars---metal-rich stars are expected to show smaller variations. However, this exercise provides a good test of the most extreme changes that could occur. These composite synthetic spectra are then treated as the observed spectra, and best-fitting integrated abundances are determined from the composite spectrum. The derived [C/Fe], [N/Fe], and $^{12}\rm{C}/^{13}\rm{C}$ ratios are shown in Table \ref{table:RGBvariations}, and match the abundances that were input for the tip of the RGB, HB, and AGB stars. This demonstrates that the $H$-band integrated [C/Fe], [N/Fe], and $^{12}\rm{C}/^{13}\rm{C}$ ratios are largely insensitive to the variations up the RGB and reflect the abundances of the most evolved RGB stars. \begin{table} \centering \begin{center} \caption{Integrated abundances when [C/Fe], [N/Fe] and $^{12}$C/$^{13}$C variations up the RGB are adopted.\label{table:RGBvariations}} \newcolumntype{d}[1]{D{.}{.}{#1} } \begin{tabular}{@{}lcd{6}d{7}@{}} \hline && \multicolumn{1}{c}{$[\rm{Fe/H}] = -0.5$} & \multicolumn{1}{c}{$[\rm{Fe/H}] = -1.7$} \\ \hline $\Delta[\rm{C/Fe}]$ && -0.50 & -0.50^{a} \\ $\Delta[\rm{N/Fe}]$ && 1.0 & 0.95 \\ $^{12}\rm{C}/^{13}\rm{C}$ && \multicolumn{1}{c}{$5-6$} & \multicolumn{1}{c}{$-$} \\ && & \\ \hline \end{tabular}\\ \end{center} \medskip \raggedright $^{a}$ Note that some of the CO features are undetectable in the spectra of the most metal-poor clusters.\\ \end{table} If the optical IL features are more sensitive to the less-evolved stars, they should have higher [C/Fe] and lower [N/Fe] ratios, {\it but the total amount of $[(\rm{C}+\rm{N})/\rm{Fe}]$ should remain the same}, since the abundance changes occur as C is converted into N. Note that this comparison assumes that the optical C and N are sensitive to the same stellar populations, which may not be true given the wavelength separation between the C$_{2}$ and CN indices. Figure \ref{fig:CN} compares the $[(\rm{C}+\rm{N})/\rm{Fe}]$ ratios, which are not equal between the optical and IR. This suggests that the offsets cannot {\it only} be due to the optical Lick ratios probing stars further down the main sequence. Other systematic possibilities are that the Lick C and N abundances are not tracing the same populations or that there are other unknown systematic offsets between the optical and $H$-band. \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.55,trim=0.5in 0in 1.25in 0.0in]{FeDiffCNvsCN.eps} \caption{$\Delta$[(C+N)/Fe] (optical $-$ $H$-band) as a function of $H$-band [Fe/H]. The dashed line shows perfect agreement.}\label{fig:CN} \end{center} \end{figure} \paragraph{Varying sensitivities to multiple populations between the $H$-band and optical} Another possibility is that the optical and $H$-band have different sensitivities to the multiple populations within the GCs. C, N, and O variations {\it are} observed between stars in Galactic GCs. For instance, 47~Tuc exhibits a strong bimodality in CN-weak and CN-strong stars that persists through the main sequence (e.g., \citealt{Briley2004}), and all MW GCs show variations in O (typically seen as a Na/O anticorrelation; e.g., \citealt{Carretta2009}). As with the variations up the RGB, the effects of multiple CN populations can be examined by creating a synthetic population with multiple populations and deriving a single IL abundance. The clusters are assumed to have C, N, O, and Na variations---none of these elements are expected to significantly change the temperature of the RGB \citep{Vandenberg2012}, so the same isochrones are used for each population. Note that variations up the RGB were not included within each sub-population. Figure \ref{fig:CIR} shows the syntheses of GCs with multiple populations. In both the optical and the $H$-band, the IL values fall in between the range from the ``primordial'' and ``extreme'' populations. The best-fitting values from the optical and $H$-band are identical, suggesting that the optical vs. $H$-band offset is likely not due to varying sensitivity to GC multiple populations. \begin{figure}[h!] \begin{center} \centering \subfigure[]{\includegraphics[scale=0.55,trim=1.25in 0in 0.05in 0.0in]{C4668TwoPops.eps}\label{fig:C4668TwoPops}} \subfigure{\includegraphics[scale=0.55,trim=0.5in 0in 1.25in 0.0in]{MultiplePops.eps}\label{fig:CIR}} \caption{Syntheses of C-sensitive features in a metal-rich cluster ($[\rm{Fe/H}] = -0.5$) with multiple populations. {\it Left: } The 4668 \AA \hspace{0.025in} feature at a Lick index resolution of 5 \AA. {\it Right: } The 16183 \AA \hspace{0.025in} bandhead with B171's line broadening. The blue lines show syntheses with abundances typical of a GC's ``primordial'' population, while the green lines show syntheses with the abundances typical of the ``extreme'' population (enhanced N, lower C). The black line shows syntheses with a population composed of 60\% extreme, 40\% primordial.\label{fig:CMultiPops}} \end{center} \end{figure} \paragraph{Trends with cluster mass} In their Lick index analysis of MW GCs, \citet{Schiavon2013} detected a metallicity-dependent trend of increasing [N/Fe] with increasing cluster mass. They interpreted this as a signature of multiple populations, where more massive GCs are able to form a larger fraction of ``second generation'' stars. Trends with mass are also be investigated with the $H$-band abundances. Figure \ref{fig:MassDiffN} shows [N/Fe] versus cluster mass, utilizing the cluster masses from \citet{Schiavon2013}. The clusters are grouped by metallicity, as in Schiavon et al. No convincing trend is seen in any of the metallicity groups. This is unsurprising given that the $H$-band is dominated by tip of the RGB stars: all the tip of the RGB stars have enhanced [N/Fe] because of normal stellar evolutionary processes, and the $H$-band [N/Fe] ratios therefore should not depend on cluster mass. Note, however, that the mass range of these GCs is not as large as the Schiavon et al. sample, and these results may change if more GCs are included. \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.55]{MassDiffNvs0.eps} \caption{[N/Fe] versus cluster mass. The points are grouped according to GC metallicity. The metal-poor (MP) GCs have $[\rm{Fe/H}] < -1.2$, the metal-rich (MR) ones have $[\rm{Fe/H}] > -0.8$, and the intermediate-metallicity (Int) ones fall in between. There is no convincing trend with mass in any of the subgroups, though the mass range is not very large.\vspace{-0.25in}}\label{fig:MassDiffN} \end{center} \end{figure} \subsubsection{Na/O}\label{subsubsec:NaOspread} The Na/O anticorrelation is well-established within MW GCs \citep{Carretta2009}. Extragalactic GCs have been inferred to host Na/O anticorrelations since many have high integrated [Na/Fe] \citep{Colucci2014,Sakari2015}. Figure \ref{fig:CompNaO} shows optical [Na/Fe] vs. $H$-band [O/Fe] (except for B193, whose $H$-band [Na/Fe] is used in lieu of an optical value). There is no clear anticorrelation; however, in IL an anticorrelation would not be expected. All the clusters lie within the range of individual MW GC stars (see \citealt{Carretta2009}) in the region represented by the ``intermediate'' populations (see the descriptions in \citealt{Carretta2009HB}). Only one GC, B012, falls in the region of the ``extreme'' population. \vspace{-0.25in} \paragraph{Trends with metallicity and mass} Figures \ref{fig:NaOFe} and \ref{fig:NaOMass} show the $H$-band IL [Na/O] ratios versus [Fe/H] and cluster mass (from \citealt{Schiavon2013}). Note that not all of the GCs have [Na/Fe] abundances, particularly two of the most massive GCs, B088 and B225. There have been some hints that the extent of the Na/O anticorrelation may change with metallicity (e.g., Figure 5 in \citealt{Carretta2009}); however \citet{Carretta2010a} argue that [Fe/H] most strongly correlates with the fraction of ``extreme'' stars (i.e., those that are the most enhanced in Na and deficient in O). The extent of the Na/O anticorrelation is also expected to vary with cluster mass, since the relative numbers of stars in various populations may depend on mass (e.g., \citealt{Carretta2009HB,Carretta2010a,Schiavon2013}). Figure \ref{fig:NaOFe} shows no obvious trend with metallicity, though Figure \ref{fig:NaOMass} hints at a possible trend with GC mass. Again, the clusters are grouped by metallicity; the metal-rich GCs appear to have the strongest correlation of [Na/O] with mass. This abundance trend follows the trend found by \citet{Colucci2014}, which showed an increasing integrated [Na/Fe] with absolute magnitude and velocity dispersion (as expected since their Na abundances were utilized for this comparison). Figure \ref{fig:OMass} then examines the trend in integrated [O/Fe]. The trend is weak for the metal-rich clusters, but may be stronger for the handful of metal-poor clusters. \begin{figure}[h!] \begin{center} \centering \subfigure[]{\includegraphics[scale=0.55,trim=1.25in 0.25in 0.05in 0.50in]{CompOvsNa.eps}\label{fig:CompNaO}} \subfigure[]{\includegraphics[scale=0.55,trim=0.5in 0.25in 1.25in 0.50in]{FeDiffOvsNa.eps}\label{fig:NaOFe}} \subfigure[]{\includegraphics[scale=0.55,trim=1.25in 0.25in 0.05in 0.15in]{MassDiffOvsNa.eps}\label{fig:NaOMass}} \subfigure[]{\includegraphics[scale=0.55,trim=0.5in 0.25in 1.25in 0.15in]{MassDiffOvs0.eps}\label{fig:OMass}} \caption{{\it Top Left: } Optical [Na/Fe] vs. $H$-band [O/Fe]. The magenta diamond shows B193, whose $H$-band [Na/Fe] is utilized in lieu of an optical abundance. {\it Top Right:} [Na/O] (with optical Na and $H$-band O) vs. cluster [Fe/H]. The dashed line shows equal [Na/Fe] and [O/Fe]. {\it Bottom Left: } [Na/O] vs. cluster mass (from \citealt{Schiavon2013}. The clusters are grouped by metallicity: metal-poor (MP) GCs have $[\rm{Fe/H}] < -1.2$. The dashed lines show fits to each metallicity group, with coefficients of determination shown. {\it Bottom Right: } [O/Fe] vs. cluster mass.\vspace{-0.25in}\label{fig:NaO}} \end{center} \end{figure} \vspace{-0.25in} \subsubsection{Mg/Al}\label{subsubsec:MgAlspread} Mg/Al anticorrelations have been observed in the optical within the most massive, metal-poor ($[\rm{Fe/H}] \lesssim -1.2$) Galactic GCs (e.g., \citealt{Carretta2009}) and in the IR for several additional clusters \citep{Meszaros2015}. Figure \ref{fig:CompMgAl} shows $H$-band [Al/Fe] vs. [Mg/Fe]; the orange pentagons show the GCs whose [Al/Fe] was determined from strong lines ($-4.7<$REW$<-4.5$) while the cyan diamonds show clusters whose optical [Al/Fe] ratios are used (since they do not have $H$-band Al abundances). There is no clear anticorrelation in the IL ratios. \vspace{-0.5in} \paragraph{Trends with metallicity and mass} Figure \ref{fig:MgAlFe} then compares [Mg/Al] versus $H$-band [Fe/H]. No trends are seen in any of the sub-groups, though if optical [Mg/Fe] ratios are used, B088 creates a slight trend at the metal-poor end. The [Mg/Al] ratio is then plotted against cluster mass in Figure \ref{fig:MgAlMass}, again grouped into metallicity bins (since the presence of the Mg/Al anticorrelation may be metallicity-dependent; \citealt{Carretta2009}). Note that \citet{Colucci2014} found a positive trend in [Mg/Fe] and [Al/Fe] with mass in metal-rich GCs, but a negative trend in massive metal-poor GCs. With $H$-band Al and Mg, no significant trends in [Mg/Al] are seen in the metal-rich population; although there is a correlation in the metal-poor population, this is due to only five GCs, one of which is B088, whose optical and $H$-band Mg abundances are very discrepant. More metal-poor clusters are needed to assess whether or not such a trend with mass exists. \begin{figure}[h!] \begin{center} \centering \subfigure[]{\includegraphics[scale=0.55,trim=1.25in 0.25in 0.05in 0.3in]{CompAlvsMg.eps}\label{fig:CompMgAl}} \subfigure[]{\includegraphics[scale=0.55,trim=0.5in 0.25in 1.25in 0.3in]{FeDiffAlvsMgIR.eps}\label{fig:MgAlFe}} \subfigure[]{\includegraphics[scale=0.55,trim=0.0in 0.25in 0in 0.15in]{MassDiffAlvsMgIR.eps}\label{fig:MgAlMass}} \caption{{\it Top Left: } $H$-band [Al/Fe] vs. [Mg/Fe]. The cyan diamonds show B171 and B403, whose optical [Al/Fe] abundances are utilized in lieu of $H$-band values. Again, the orange pentagons show clusters whose [Al/Fe] ratios are determined from strong lines. {\it Top Right:} [Al/Mg] vs. cluster $H$-band [Fe/H]. The dashed line shows perfect agreement. {\it Bottom: } [Al/Mg] vs. cluster mass. Metallicity bins and fits are as in Figure \ref{fig:NaOMass}. In panels $b$ and $c$, B088 is shown with a blue star.\label{fig:MgAl}} \end{center} \end{figure} \vspace{-0.35in} \paragraph{The case of B088} Recall that B088's [Mg/Fe] shows significant disagreement between the optical and the $H$-band. \citet{Colucci2014} find a very low optical $[\rm{Mg/Fe}] = -0.48\pm 0.02$, while the $H$-band value from this paper is higher by $4\sigma$. B088 is a massive ($\log M = 6.25$; \citealt{Schiavon2013}), metal poor ($[\rm{Fe/H}] = -1.71$) GC, and may therefore host a significant Mg/Al anticorrelation---for instance, the more metal-poor, similarly massive Milky Way GC M15 has known Mg/Al variations and a low, optical IL [Mg/Fe] \citep{Sakari2013}. One way to create an offset in abundance between the optical and the $H$-band might be to introduce a temperature spread on the RGB and examine spectral lines with varying sensitivities to the two populations. One way to create a temperature split on the RGB is varying [Mg/Fe] \citep{Vandenberg2012}. To test if Mg variations can explain the disagreement between the optical and the IR, two synthetic populations were created. The ``primordial'' (P) population has $[\rm{O/Fe}]=[\rm{Mg/Fe}] = +0.4$, while the ``extreme'' (E) population has $[\rm{O/Fe}]=-0.2$ and $[\rm{Mg/Fe}] = -0.6$. The cluster is assumed to have 50\% of each population---this assumption is unrealistic given the small numbers of ``extreme'' stars found in most GCs, but again, this should test the maximal offsets that could occur. Isochrones with $\alpha$-element enhancement are utilized for the P population, while solar-scaled ones are selected for the E population. Figure \ref{fig:MgMultiPops} shows that the synthesis with hypothetical multiple populations falls in between those for the E and P populations alone. Most importantly, when the synthetic, multiple-population spectra are analyzed as single spectra, the $H$-band and the optical converge on the same value for the two lines, $[\rm{Mg/Fe}]~=~-0.01$. This indicates that the disagreement between the optical and the $H$-band is likely {\it not} due to different sensitivities to the multiple populations, {\it if the only variations are in O, Na, Mg, and Al.} \begin{figure}[h!] \begin{center} \centering \subfigure{\includegraphics[scale=0.55,trim=1.25in 0in 0.05in 0.0in]{MgOp.eps}\label{fig:MgOp}} \subfigure{\includegraphics[scale=0.55,trim=0.5in 0in 1.25in 0.0in]{MgIR.eps}\label{fig:MgIR}} \caption{Syntheses of \ion{Mg}{1} lines in a B088-like cluster, with $[\rm{Fe/H}] = -1.84$. {\it Left: } The optical 5528 \AA \hspace{0.025in} line. {\it Right:} The infrared 15740 and 15748 \AA \hspace{0.025in} spectral lines. The blue lines show syntheses with abundances typical of a GC's ``primordial'' population, while the green lines show syntheses with the abundances typical of the ``extreme'' population. The black line shows syntheses with a population composed of 50\% of each.\label{fig:MgMultiPops}} \end{center} \end{figure} \vspace{-0.4in} \subsubsection{Possible Fe Spreads?}\label{subsubsec:Fespread} Another way to introduce temperature shifts on the RGB is by invoking a metallicity spread within the cluster. Indeed, B088's {\it Hubble Space Telescope} color-magnitude diagram \citep{Perina2009} hints at the possibility of a metallicity spread on the RGB, while its high ellipticity ($\epsilon = 0.28$; \citealt{Barmby2007}) suggests that it is not a typical GC. Again, synthetic populations were created to test this effect, one with $[\rm{Fe/H}] = -1.31$ and the other with $[\rm{Fe/H}] = -2.14$; the two sub-populations were assumed to have equal numbers of stars. Treating the synthetic composite spectrum as an observed spectrum, the $H$-band lines that were detectable in B088 (all from high EP transitions) converge on an integrated $[\rm{Fe/H}]~=~-1.55$. Utilizing the optical EWs from \citet{Colucci2014}, the optical values converge on an average $[\rm{Fe/H}] = -1.6$. Even with an [Fe/H] spread introduced, the average IL [Fe/H] ratios are approximately the same between the optical and the $H$-band, and fall between the two ``real'' values, in agreement with the values derived for B088. However, there is an important caveat here: the introduction of a metallicity spread has changed the slopes with REW and (to a lesser extent) EP in the optical, and this may affect the derived GC age. Without altering the GC age, however, introducing an Fe spread could lead to an offset in \ion{Mg}{1} between the optical and the IR. Comparisons between the 5528 \AA \hspace{0.025in} and IR 15740, 15748, and 15764 \AA \hspace{0.025in} lines suggest that an offset of $\Delta[\rm{Mg/Fe}]~\sim~0.2$ dex can be created just from invoking a metallicity spread. Thus, offsets between the optical and IR {\it may} probe the existence of Fe spreads within GCs, {\it provided that temperature sensitive lines are utilized.} More detailed test of this phenomenon are needed to verify if this is an accurate test of Fe spreads within GCs. \vspace{-0.25in} \subsection{The AGB/RGB ratio}\label{subsec:AGBratio} Though the $H$-band light is dominated by tip of the RGB stars, AGB stars are also a major contributor to the IL. Among other things, the models of the underlying stellar populations that are utilized in this paper rely on a) the assumption of an IMF to populate the isochrones and b) prescriptions for how the AGB is modeled and how long stars will remain on the AGB. Recently, APOGEE $H$-band abundances of Galactic GC giant stars combined with ground-based photometry suggest that the ratio of AGB to RGB stars may be higher in the $H$-band than previously determined from the optical (\citealt{GarciaHernandez2015}, Meszaros et al., {\it in prep.}; however, possible selection effects are very difficult to evaluate). AGB stars are likely to have a strong effect on an $H$-band IL spectrum, and may be a source of systematic errors in the integrated abundances. To test the effect of a high AGB/RGB ratio in the $H$-band, the number of AGB stars was manually increased in a GC with $[\rm{Fe/H}] = -0.5$, and the effects on the derived abundances were determined. In general, when the number of AGB stars increases, the IL spectral lines become stronger---this means that lower abundances are needed to fit the observed spectra. However, for reasonable AGB/RGB ratios, these offsets are $\lesssim 0.05$ dex. Significant abundance differences ($\sim 0.1$ dex) are not evident until the AGB/RGB ratio becomes fairly high ($\sim 50$\%)---even then, the offsets in differential [X/Fe] ratios are lower than 0.1 dex. It therefore seems that the AGB/RGB ratio is not likely to significantly affect the derived IL abundances. Stochastic sampling of the AGB and RGB may have a larger effect on the $H$-band abundances, even in these massive clusters; this will be explored in a future paper. \subsection{The Chemical Evolution of M31's GCs}\label{subsec:ChemEvol} In most GCs, Si, Ca, Ti, and Fe are not expected to vary between stars within the GC, and their integrated abundances should reflect the abundances of a GC's birth environment. $H$-band Si, Ca, Ti, and Fe can therefore be used for chemical tagging and chemical evolution studies, as in the optical (e.g., \citealt{Colucci2012,Colucci2013,Colucci2014,Sakari2015}). Figure \ref{fig:aFe} shows $H$-band integrated [$\alpha$/Fe] vs. [Fe/H] for the M31 GCs, where $\alpha$ is an average of Si, Ca, and Ti (or one or two of the elements if all three are not available). Also shown are MW field stars, from \citet{Venn2004} and \citet{Reddy2006}. M31 field stars are not shown because the field stars are too faint for high quality analyses; however, the M31 field stars are expected to follow the MW field stars, especially in this metallicity range. As expected from optical analyses, the M31 GCs do generally track the MW field stars. As in the optical, B193's [$\alpha$/Fe] is slightly higher than MW field stars at the same $[\rm{Fe/H}]\sim -0.2$ (see \citealt{Colucci2014}); this indicates that B193 may have formed in an environment that experienced rapid chemical enrichment. However, high precision Ca and Ti abundances can be obtained from the optical along with abundances of a wider variety of elements---is the optical therefore the preferred wavelength regime for IL analyses, or does the $H$-band offer any significant advantages over the optical? Section \ref{subsec:FeDiscussion} demonstrated that $H$-band abundances are less sensitive to GC age (and HB morphology) than the optical. In situations when GC age is poorly constrained, systematic uncertainties may be lower in the $H$-band. Furthermore, GCs that are heavily obscured and reddened by dust will be much easier to observe in the IR than in the optical. It is also worth noting that there are additional spectral lines in the $J$ and $K$ bands. Expanded IR IL spectroscopy with more wavelength coverage would increase the number of observed elements and the precision in a single abundance. \begin{figure}[h!] \begin{center} \centering \includegraphics[scale=0.55]{aFe.eps} \caption{[$\alpha$/Fe] vs. [Fe/H] in the M31 GCs (black circles) and MW field stars (grey points; from the sources in \citealt{Venn2004}, with supplements from \citealt{Reddy2006}).\label{fig:aFe}} \end{center} \end{figure} \section{Conclusions}\label{sec:Conclusion} This paper has presented an $H$-band integrated light spectroscopic analysis of 25 bright GCs that are associated with M31. The target GCs span a wide range in metallicity (from $[\rm{Fe/H}] = -1.8$ to $-0.2$), a moderate range in total mass (from $\log \rm{mass} \sim 5.4$ to $\sim 6.5$), and a small range in age (from $\sim 6.5$ to $14$ Gyr). All the GCs were previously targeted for high-resolution optical spectroscopy, enabling a comparison between $H$-band and optical abundances. The primary results from this study are as follows. \begin{enumerate} \item The $H$-band offers a wide variety of spectral lines that complement the optical. In addition to the handful of additional \ion{Fe}{1} lines, the $H$-band offers intermediate and strong \ion{Mg}{1}, \ion{Al}{1}, and \ion{Si}{1} lines and weaker Na, Ca, Ti, and K lines. Molecular CO, CN, and OH features allow determinations of C, N, and O abundances. $^{12}$C/$^{13}$C ratios cannot be well constrained in these spectra, but could be measurable in higher quality spectra from metal-rich targets. \item The \ion{Fe}{1} lines in the $H$-band provide Fe abundances that are in excellent agreement with the optical abundances. Although there is a small offset ($\sim 0.05$) between the optical and $H$-band [\ion{Fe}{1}/H] ratios, this may reflect different NLTE corrections between the optical and IR (e.g., \citealt{GarciaHernandez2015}). Despite the small offset, the $H$-band lines agree with the optical trends in Fe abundance with line wavelength, reduced equivalent width, and excitation potential. However, the parameter ranges are smaller amongst the $H$-band lines, and it may not be possible to constrain the GC age without complementary optical data (photometric or spectroscopic). However, the $H$-band abundances ratios are relatively insensitive to GC age, at least for GCs older than $\sim 3$ Gyr. \item The $H$-band [C/Fe] and [N/Fe] abundances reflect typical tip of the RGB stellar abundances. However, they are systematically offset from the C and N abundances derived from the optical 4668 \AA \hspace{0.025in} Lick index. \item With a few exceptions, the abundances of Na, Mg, Al, Si, and Ca are in excellent agreement between the optical and the $H$-band. The $H$-band \ion{Ti}{1} abundances agree well with the optical \ion{Ti}{2} abundances, suggesting that the $H$-band lines may be less sensitive to NLTE effects than the optical ones. \item The $H$-band offers new [O/Fe] and [K/Fe] abundances that are not available in the optical. The K abundances trace Ca, as predicted from stars in the MW. \item With the detailed $H$-band abundances, multiple populations in extragalactic GCs can be explored in new detail. The integrated [Na/O] ratio is found to roughly correlate with cluster mass, suggesting that the relative numbers of ``second generation'' stars may increase with cluster mass. No convincing similar trend was found for [Mg/Al]. \item As expected for GCs associated with a massive spiral galaxy, the $H$-band [$\alpha$/Fe] ratios track MW field stars, demonstrating that $H$-band IL spectroscopy can be utilized for chemical tagging analyses of unresolved targets. \end{enumerate} Thus, $H$-band integrated light spectroscopy will be a valuable tool for studying more distant, unresolved stellar populations, particularly those that are highly reddened. \acknowledgements The authors thank the anonymous referee for suggestions that improved the manuscript. The authors also thank Chris Sneden for developing the {\it synpop} version of {\tt MOOG}, Andrew McWilliam for discussions regarding integrated light analyses, and Masen Lamb for discussions regarding IR syntheses. C.M.S. acknowledges funding from the Kenilworth Foundation. D.B. acknowledges support from grant RSF 14-50-00043. CAP is thankful to the Spanish MINECO for funding through grant AYA2014-56359-P. T.C.B. acknowledges partial support for this work from grants PHY08-22648; Physics Frontier Center/Joint Institute or Nuclear Astrophysics (JINA), and PHY 14-30152; Physics Frontier Center/JINA Center for the Evolution of the Elements (JINA-CEE), awarded by the US National Science Foundation. D.A.G.H. was funded by the Ram\'{o}n y Cajal fellowship number RYC-2013-14182 and he acknowledges support provided by the Spanish Ministry of Economy and Competitiveness (MINECO) under grant and AYA-2014-58082-P. J.S. acknowledges partial support from NSF grant AST-1514763 and the Packard Foundation. \clearpage \footnotesize{
\section{Introduction} The study of two-hadron interactions with lattice QCD requires operators that create and annihilate the two-hadron system with the desired quantum numbers. Systems of two hadrons with zero spin have been extensively studied and the corresponding scattering matrices for interactions of two pseudoscalars ($P$) were extracted, for example $\pi\pi$, $K\pi$, .... The simulations of two-hadron systems where one or both hadrons carry non-zero spin are scarce, and those mostly focused on the partial-wave $L=0$. An example of a study that aimed also at higher partial waves considered nucleon-nucleon scattering \cite{Berkowitz:2015eaa}. There is a great need for lattice results on further channels or higher partial waves where one or both hadrons carry spin. We have in mind channels that involve the nucleon $N$ or/and vectors $V=J/\psi,~\Upsilon_b,~D^*,B^*,...$ which are (almost) stable under strong interactions. The $PN$ or $VN$ scattering is crucial for ab-initio study of baryon resonances and pentaquark candidates, $PV$ is essential for mesonic resonances and tetraquark candidates, while $NN$ to grasp two-nucleon interaction and deuterium\footnote{ The operators below can be straightforwardly generalized also to channels which involve scattering of particles with $J^P=0^+,~1^+, ~\tfrac{1}{2}^-$. Most of these hadrons decay strongly in Nature. }. We consider the most common simulations that are done in a box of size $L$ with periodic boundary conditions in space. The momenta $p$ of non-interacting single hadrons are multiples of $2\pi/L$ in this case. We focus on the system with total momentum zero where parity is a good quantum number. This has a practical advantage since fixing the parity gives a strong handle on which channels and partial waves can contribute as eigenstates in a given study. On the lattice the continuum symmetry is reduced to a discrete symmetry and one extracts the eigenstates that transform according to the chosen irreducible representation (irrep) $\Gamma$ of the discrete group $O^{(2)}_h$. Only the states with desired parity contribute to a given irrep when the total momentum is zero, while both even and odd partial waves contribute to a given irrep when the total momentum is not zero. In this paper we present the general expressions to construct operators for scattering of particles with spin using three methods. The corresponding proofs of the correct transformation properties are given. Then the explicit expressions $H^{(1)}(p)H^{(2)}(-p)$ for $PV$, $PN$, $VN$ and $NN$ are presented for lowest two relative momenta $|p|=0,~2\pi/L$. The reason to introduce two-hadron operators in a lattice simulation is to extract the eigenstates and their energies in a desired scattering channel. These energies render the scattering phase shift via the well-known L\"uscher method \cite{Luscher:1990ux}, which was originally derived for the two spin-less particles. The relation has been generalized to the scattering of two particles with arbitrary spin \cite{Briceno:2014oea,Luu:2011ep,Gockeler:2012yj,Bernard:2012bi,Briceno:2013lba} and the most general case is considered in \cite{Briceno:2014oea}. This can be directly applied to extract the scattering matrix from the energies obtained using the operators presented in this work. The three methods to construct operators complement each other and it is verified that all three methods lead to consistent results. The projection method is a general mathematical tool which leads to one or several operators $O_{\Gamma,r,n}$ that transform according to given irrep $\Gamma$ and row $r$. It is a ``bottom-up'' method, working entirely with lattice operators. But it gives little guidance on which continuum quantum numbers of total $J$, spin $S$, orbital momentum $L$ or single-particle helicities $\lambda_{1,2}$ will be related with a given operator. This is remedied with the helicity and partial-wave ``top-down'' methods where first the operators with good continuum quantum numbers $(J,P,\lambda_{1,2})$ or $(J,L,S)$ are constructed and then subduced to the irreps $\Gamma$ of the discrete group. The hope is that the results indicate which linear combinations $O_{\Gamma,r,n}$ of various $n$ enhance couplings to the states with desired continuum quantum numbers. An analogous strategy for single-hadron states was proposed by the Hadron Spectrum Collaboration in \cite{Dudek:2010wm}. We do not prove whether two particle operators also retain a ``memory'' of their construction origin. Future simulations analogous to the single-hadron case \cite{Dudek:2010wm} will be necessary to explore how well that may be realized in practice. Certain aspects of constructing the lattice operators for scattering of particles with spin were already presented before: partial-wave method in \cite{Berkowitz:2015eaa,Wallace:2015pxa}, projection method for example in \cite{Gockeler:2012yj}, helicity states for single-hadrons in \cite{Thomas:2011rh} and some considerations for two hadrons in \cite{Dudek:2012gj,Wallace:2015pxa}. The study \cite{Moore:2006ng} combines single particle irreps to two-particle operators. For this one needs the values of all corresponding Clebsch-Gordan coefficients to embed the product irreps of the single particle operators in the irreps of the two-particle frame (see Sect. \ref{sec:single_particle_irreps}). Despite all previous work, various practical aspects and proofs are lacking to build a two-hadron operator related to desired continuum quantum numbers in a given irrep. Here we devise two-hadron helicity operators, verify their consistency with other two methods and provide related proofs. We also argue how simple non-canonical single-hadron operators can be used as building blocks for that purpose. The paper is organized as follows. The single-hadron operators that are employed to build two-hadron operators are considered in Section \ref{sec:single_hadron}. The required transformations properties of two-hadron operators are given in Section \ref{sec:two_hadron}. The general expressions for two-hadron operators with three methods are presented in Section \ref{sec:three_methods}, while the proofs of correct transformation properties are given in Appendix \ref{sec:proofs}. The explicit operators for lowest two relative momenta are collected in Sections \ref{sec:results} and \ref{sec:HH}. The necessary technicalities are delegated to Appendix \ref{sec:technicalities}. \section{Single-hadron operators and their transformations}\label{sec:single_hadron} The single-hadron operators $H(p)$ need to have certain transformation properties under rotations $R$ and inversion $I$ in order to build two-hadron operators $H^{(1)}(p)H^{(2)}(-p)$ with desired transformation properties. The states and creation operators $H^\dagger_{m_s}(p)$ with spin $s$ transform as \begin{align} \label{1} &R|p,s,m_s\rangle=\sum_{m_s'} D_{m_s'm_s}^s(R)|Rp,s,m_s'\rangle\;, \qquad I |p,s,m_s\rangle=(-1)^P |-p,s,m_s\rangle\\ &RH^\dagger_{m_s}(p)R^{-1}=\sum_{m_s'} D_{m_s'm_s}^s(R) H_{m_s'}^\dagger (Rp)\;,\qquad I H^\dagger_{m_s}(p)I = (-1)^P H^\dagger_{m_s}(-p)\,.\nonumber \end{align} For a particle at rest $m_s$ is a good quantum number of the spin-component $S_z$. The $m_s$ is generally not a good quantum number for $H_{m_s}(p\not = 0)$; in this case it denotes the eigenvalue of $S_z$ for the corresponding field $H_{m_s}(0)$, which has good $m_s$. The transformations of annihilation operators $H_{m_s}(p)$ are obtained by the hermitian conjugation \begin{equation} \label{2} RH_{m_s}(p)R^{-1}= \sum_{m_s'} D_{m_sm_s'}^s(R^{-1}) H_{m_s'} (Rp)\;,\qquad I H_{m_s}(p)I = (-1)^P H_{m_s}(-p)\;,~ \end{equation} where the following properties of the Wigner D-matrix and R are used throughout this work \begin{equation}\label{3} D(R)=D^\dagger(R^\dagger)\;,\qquad R^\dagger=R^{-1}\;, \qquad D(R_1R_2)=D(R_1)D(R_2)\;. \end{equation} We employ the conventional definition of $D$ used in \cite{Jacob:1959at,pdg14} and discussed in Appendix \ref{sec:wignerD}. Note that the $z$-component of spin $m_s$ is a good quantum number for a particle at rest. The pseudoscalar fields $P$ ($J^P=0^-$), vector fields $V$ ($J^P=1^-$) and nucleon fields $N$ ($J^P=\tfrac{1}{2}^+$) are considered, together with their mutual two-hadron scattering channels later on. One can choose the simplest annihilation operators that transform according to (\ref{2}), for example \begin{align} \label{6} & P(p)=\sum_x \bar q(x) \gamma_5 q(x) e^{ipx}\\ & V_{m_s=\pm 1}(p)=\frac{\mp V_x(p)+iV_y(p)}{\sqrt{2}},\ \ V_{m_s=0}(p)=V_z(p),\quad V_i(p)=\sum_x \bar q(x) \gamma_i q(x) e^{ipx}, \ i=x,y,z\nonumber\\ & N_{m_s=1/2}(p)= {\cal N}_{\mu=1}(p)\;, \ {\cal N}_{m_s=-1/2}(p)= {\cal N}_{\mu=2}(p)\;, \ \ {\cal N}_\mu(p)\!=\!\sum_x \epsilon_{abc} [q^{aT}(x) C \gamma_5 q^b (x)] ~q^c_{\mu}(x)~e^{ipx}, \nonumber \end{align} where $p$ and $x$ are three-vectors and the time index is omitted. The ${\cal N}_{1,2}$ are the upper two components of Dirac four-spinor ${\cal N}_{\mu=1,..,4}$ in the Dirac basis. The relations for the vector states $|V_{m_s= 1}\rangle=(- |V_x\rangle-i|V_y\rangle)/\sqrt{2}$ versus annihilation operators $V_{m_s= 1}=(- V_x+iV_y)/\sqrt{2}$ are discussed in Appendix \ref{sec:vectors}. The operators $P$, $N_{1/2,-1/2}$ and $V_{i=x,y,z}$ like (\ref{6}) will be basic building blocks of our two-hadron operators. Since all two-hadron operators will entail transformations of annihilation fields $H=P,V,N$, we present them explicitly \begin{align} \label{7} & RP(p)R^{-1}=P(Rp),\quad IP(p)I=-P(-p)\\ &R V_i(p)R^{-1}= T^{s=1}_{ji}(R)^* V_{j}(Rp)=\exp(-i \vec n \vec J \omega)_{ji}V_{j}(Rp),\quad IV_i(p)I=-V_i(-p)\quad i,j=x,y,z\nonumber \\ & R N_{m_s}(p) R^{-1}= D_{m_s'm_s}^s(R)^* N_{m_s'}(Rp)=[\exp(-\tfrac{i}{2} \vec n \vec \sigma \omega)]^*_{m_s'm_s} N_{m_s'}(Rp) ,\quad I N_{m_s}(p) I=N_{m_s}(-p) \nonumber \end{align} with $m_{s,s'}=\pm 1/2$ and $(J_k)_{ij}=-i\epsilon_{ijk}$ rendering real $T^{s=1}$. The fields transform as basis-vectors, which is contrasted to the transformation of components in Appendix \ref{sec:components}. The transformations of $V_i(p)$ in (\ref{7}) can be used to verify the transformations (\ref{2}) of the fields $V_{ m_s}(p)$ defined in (\ref{6}). Note that canonical hadron fields $H_{m_s}^{(c)}(p)\equiv L(p) H_{m_s}(0)$ also transform under rotations as given in (\ref{2})\footnote{See for example Eq. (2.5.23) of Weinberg \cite{weinberg:qft} with $W({\cal R},p)={\cal R}$. }, but those would be less practical to implement. The canonical fields are obtained from the rest fields $H_{m_s}(0)$ (which have good $m_s$) with the boost $L(p)$ from $0$ to $p$. The boost of $V_{m_s=1}(0)$ to $p_x\propto e_x$ would render $V_{m_s=1}^{(c)}(p_x)=[-\gamma V_x(p_x)+iV_y(p_x)]/\sqrt{2}$ which depends on $\gamma=(1-v^2)^{1/2}$. The boost of $N_{1/2}(0)={\cal N}_1(0)$ to $p_x$ would render $N_{1/2}^{(c)}(p_x)\propto {\cal N}_1(0)+\tfrac{p_x}{m+E}{\cal N}_4$, which contains also lower components and depends on the mass $m$. We will employ the simpler fields $V$ and $N$ (\ref{6}) that have all the required transformation properties (\ref{2},\ref{7}) to prove the correct transformations of the two-hadron operators in Appendix \ref{sec:proofs}. The fields (\ref{6}) agree with the canonical fields for $p=0$. \section{Transformation properties of two-hadron operators}\label{sec:two_hadron} We consider only two-hadron states with total momentum zero $P_{tot}=0$ that have good parity $P$. These also have good total spin $J$ and its $z$-component $m_J$ in continuum, where the annihilation operators have to transform as (\ref{2}) \begin{equation} \label{4} RO^{J,m_J}(P_{tot}\!=\!0)R^{-1}= \sum_{m_J'} D_{m_Jm_J'}^J(R^{-1}) O^{J,m_J'} (0)\,\; R\in O^{(2)}, \;\; I O^{J,m_J}(0)I = (-1)^P O^{J,m_J}(0)~. \end{equation} Such continuum-like operators will present an intermediate step below and the only relevant rotations will be those contained in the discrete group. On the cubic lattice the continuum rotation group is reduced to the cubic group $R\in O$ with 24 elements for integer $J$. These are given in terms of the rotation angle $-\pi\leq \omega <\pi$ around vector $\vec n$ in positive direction and we use the ordering $i=1,..,24$ listed in Table A.1 of \cite{Bernard:2008ax}. The double-cover group $O^2$ has the same 24 elements, and additional 24 elements ($i=25,..48$)\footnote{Our ordering and range of $\omega$ for $O^2$ differs from Table A.3 in \cite{Bernard:2008ax}.} with the same $\vec n$ and angle $\pi\leq \omega <3\pi$ where $\omega_{i+24}=\omega_i+2\pi$. The number of symmetry elements gets doubled to $\tilde R=\{R,IR\}\in O^{(2)}_h$ when inversion is a group element. The representations (\ref{4}) with given $J$ and $m_J$ are reducible under $O^{(2)}_{h}$, so we seek the states/operators that transform according to the corresponding irreducible representation (irrep) $\Gamma$ and row $r$ \begin{align} \label{5} &R|\Gamma,r\rangle = \sum_{r'} T^{\Gamma}_{r',r}(R)|\Gamma,r'\rangle \quad R\in O^{(2)},\qquad I|\Gamma,r\rangle =(-1)^P |\Gamma,r\rangle\;,\nonumber \\ &RO_{\Gamma,r}R^{-1} = \sum_{r'} T^{\Gamma}_{r,r'}(R^{-1})O_{\Gamma,r'} \quad R\in O^{(2)} ,\qquad IO_{\Gamma,r}I =(-1)^P O_{\Gamma,r}\;. \end{align} The systems with integer $J$ transform according to irreps $\Gamma=A_{1,2}^\pm,~E^\pm,~T_{1,2}^\pm$, while systems with half-integer $J$ according to $\Gamma=G_{1,2}^\pm~,H^\pm$ as summarized in Table \ref{tab:irreps}. The upper index stands for parity and the number of rows $r=1,..,$dim$_{\Gamma}$ is equal to the dimensionality of irrep $\Gamma$. We employ the same conventions for rows in all irreps as in \cite{Bernard:2008ax}\footnote{Those are partly discussed in our Appendix \ref{sec:rows}}. The explicit representations $T^{\Gamma}_{r,r'}(R)$ for $R\in O^{(2)}$ are given in Appendix A of \cite{Bernard:2008ax}\footnote{In \cite{Bernard:2008ax} the $T^{\Gamma}_{r',r}$ are denoted by $(R_i)_{\alpha\beta}$. }. \begin{table}[h!] \begin{center} \begin{tabular}{c|c} J & $\Gamma$ (dim$_\Gamma$) \\ \hline $0$ & $A_{1}(1)$ \\ $\frac{1}{2}$ & $G_{1}(2)$ \\ $1$ & $T_{1}(3)$ \\ $\frac{3}{2}$ & $H(4)$ \\ $2$ & $E (2) \oplus T_{2}(3)$ \\ $\frac{5}{2}$ & $ H(4) \oplus G_{2}(2)$ \\ $3$& $A_{2}(1) \oplus T_{1} (3)\oplus T_{2}(3)$ \end{tabular} \end{center} \caption{ Continuum spins $J$, corresponding lattice irreps $\Gamma$ and their dimension dim$_\Gamma$ for group $O^{(2)}$. \label{tab:irreps} } \end{table} As indicated above, here we consider only two-hadron states with total momentum zero. Both even and odd partial waves contribute to a given irrep when total momentum is not zero. Working with operators that mix parity is no problem in principle and has already been considered for, e.g., pseudoscalar-pseudoscalar scattering. It leads to more eigenstates in the given irreducible representation and one has to apply further assumptions and tools to extract the scattering phase shift. Note that in both cases, exact or mixed parity, the lattice irreps may still couple to a tower of higher partial waves. The phase shifts for $\ell\leq 2$ in the parity mixed case have been successfully extracted, for example, via the parameterization of the S-matrix by the Hadron Spectrum Collaboration in \cite{Wilson:2014cna,Moir:2016srx}. \section{Two-hadron operators in three methods}\label{sec:three_methods} Here we present two-hadron operators with total momentum zero that transform according to (\ref{5}). They will be constructed by three methods, where continuum-like operators (\ref{4}) will appear as an intermediate step in two of the methods. Their correct transformation properties (\ref{4},\ref{5}) are proven in Appendix \ref{sec:proofs}. \subsection{Projection method} This is a well-known mathematical method, where a projector to the desired irrep $\Gamma$ and row $r$ is used on an arbitrary operator (see for example Section 4.19 of \cite{Dawber:symmetries}) \begin{align} \label{O_P} & ||p|,\Gamma,r,n\rangle=\sum_{\tilde R\in O^{(2)}_h} T^\Gamma _{r,r}(\tilde R)^*~\tilde R ~[|2,-p,s_2\rangle^{a}|1,p,s_1\rangle^{a}] \nonumber\\ & O_{|p|,\Gamma,r,n}=\sum_{\tilde R\in O^{(2)}_h} T^\Gamma _{r,r}(\tilde R)~\tilde RH^{(1),a}(p)H^{(2),a}(-p)\tilde R^{-1}~,\qquad n=1,..,n_{max}\;. \end{align} The $H^{a}$ are arbitrary single hadron lattice operators of desired $|p|$ and any $p$ and $m_s$, for example operators (\ref{6}) or their linear combinations; the other index $(1)$ and $(2)$ denotes the particle type. We have taken $H^a$ with all possible combinations of direction $p$ and polarizations of both particles $m_{s1}$ and $m_{s2}$ (for vectors we chose $V_x$, $V_y$ and $V_z$ as $H^a$). For fixed $|p|$, $\Gamma$ and $r$ one can get one or more linearly independent operators $O_{|p|,\Gamma,r,n}$ which are indicated by $n$. As an illustration we present two-linearly independent $PV$ operators $$O_{|p|=1,T_1^+,r=3,n=1}\propto \!\!\!\sum_{p=\pm e_z}\!\! \text{P}(p) V_z(-p) \;,\ \ O_{|p|=1,T_1^+,r=3,n=2}\propto \!\!\!\!\!\!\sum_{p=\pm e_x,\pm e_y} \!\!\!\!\!\!\! \text{P}(p) V_z(-p)\;,\quad n_{max}=2\;,$$ while others are listed in the Section \ref{sec:results} and Appendix \ref{sec:HH}. The $\tilde R\in O^{(2)}_h $ in (\ref{O_P}) is the operator symbolising rotations $R$ possibly combined with inversions ($R$ is reserved in this article for rotations only) and one uses in practice \begin{equation} \tilde RH^{(1)}H^{(2)}\tilde R^{-1}= \tilde RH^{(1)}\tilde R^{-1} ~\tilde RH^{(2)}\tilde R^{-1},\qquad \tilde R\in O^{(2)}_h \end{equation} where the action of rotation $R$ or inversion $I$ on all $H=P,V,N$ are given in (\ref{2},\,\ref{7}). The representation matrices $T^{\Gamma}(\tilde R)$ for all elements $\tilde R$ are listed for all irreps in Appendix A of \cite{Bernard:2008ax}. The proof of correct transformation is shown for completeness in Appendix \ref{sec:proofs}. The projection method is very general, but it does not offer physics intuition what $O_{|p|,\Gamma,r,n}$ with different $n$ represent in terms of the continuum quantum numbers. This will be remedied with the next two methods, that indicate which linear combinations of $O_{n}$ correspond in the continuum to certain partial waves or helicity quantum numbers. \subsection{Helicity method} The states with good helicity in the continuum scattering have been thoroughly discussed by Jacob and Wick \cite{Jacob:1959at}. They have been considered for one-hadron states on the lattice by the Hadron-Spectrum collaboration \cite{Thomas:2011rh}, but they have not been widely used for two-hadron scattering on the lattice yet. The $m_s$ is a good quantum number for particles with $p=0$ or $p_z\propto e_z$ since $L_z=0$ and $S_z=J_z$, while it is generally not a good quantum number for arbitrary $p\not =0$. Here $L_z$, $S_z$ and $J_z$ denote components of the orbital, spin and total angular momentum, respectively. The advantage of the helicity $h$ \begin{equation} \label{h} h\equiv \frac{S\cdotp p}{|p|} \end{equation} is that it is a good quantum number for arbitrary $p$, where $S$ and $p$ are three-vectors. To obtain a helicity state, one starts from a state with momentum $p_z\propto e_z$ and $|p_z|=|p|$ that has good $m_s$. This state is rotated from $p_z$ to desired direction of $p$ with $R_0^p$, \begin{equation} \label{13} |p,s,\lambda\rangle^{h}\equiv R_0^p|p_z,s,m_s\rangle\,,\qquad H_{\lambda}^{h}(p)\equiv R_0^p ~H_{m_s=\lambda}(p_z) ~(R_0^p)^{-1},\qquad p_z\propto e_z,\quad |p_z|=p~. \end{equation} The upper index $h$ indicates that the polarisation index ($\lambda$) stands for the helicity of the particle (not $m_s)$. Different choices of $R_0^p$ are possible, which lead to different phases in the definition of $|p,s,\lambda\rangle^{h}$. We do not restrict to a specific choice of $R_0^p$ since our resulting two-particle operator will be independent of this (except for the overall phase of operator, which is irrelevant). Simple examples of $H_{p_z,m_s=\lambda}$ can be read-off from (\ref{6}) and the action of $R_0^p$ on them is given by (\ref{7}). The arbitrary rotation $R$ rotates the momentum $p$ and the spin $S$ in the same way, so the helicity $h\propto S\cdotp p$ of the state remains the same and only the direction of the momentum changes \cite{Jacob:1959at,Thomas:2011rh} \begin{equation} \label{12} R|p,s,\lambda\rangle^{h}= e^{-i\varphi(R)} |Rp,s,\lambda\rangle^{h}, \qquad RH_{\lambda}^{h}(p) R^{-1}= e^{i\varphi(R)} H_{\lambda}^{h}(Rp)~, \end{equation} where only the phase $\varphi(R)$ depends on $R$. \subsubsection{Construction of two-hadron helicity operators} The starting point is a two-particle state composed of $|p,s_1,\lambda_1\rangle^{h}$ and $|\!-\!p,s_2,\lambda_2\rangle^{h}$, where $p$ can be chosen as arbitrary momentum in a given shell $|p|$, and $\lambda_{1,2}$ are chosen helicities. The two-particle helicity state and the annihilation operator with the correct transformation properties under rotation (\ref{4}) are \begin{eqnarray} \label{O_helicity_noP} ||p|,J,m_J,\lambda_1,\lambda_2,\lambda\rangle^{h}&=& \sum_{R\in O^{(2)}} D^J_{\lambda,m_J}(R^{-1}) R\,[|p,s_1,\lambda_1\rangle^{h}| \!-\!p,s_2,\lambda_2\rangle^{h}]\nonumber\\ O^{|p|,J,m_J,\lambda_1,\lambda_2,\lambda}&=& \sum_{R\in O^{(2)}} D^J_{m_J,\lambda}(R) ~RH_{\lambda_1}^{(1),h}(p) H_{\lambda_2}^{(2),h}(-p)R^{-1} \end{eqnarray} with the proof for operators given in Appendix \ref{sec:proofs}. Note that the labels on the left-hand side should just indicate the origin of construction; they would correspond to the continuum quantum numbers if $R$ was summed over the continuum rotation group. The main difference with respect to the continuum case \cite{Jacob:1959at} is the discrete sum over the elements of the discrete group $R\in O$ for integer $J$ and $R\in O^{2}$ for half-integer $J$. Appendix \ref{sec:wignerD} provides $D$-matrices \footnote{One has to use the same rotation in $D$ and in the transformation of fields. The additional rotation of $2\pi$ that is present in half of the $O^2$ elements renders factors $(-1)^J$ from $D^J(R)$ and $(-1)^{s_1}(-1)^{s_2}$ from the transformations of the both fields in (\ref{O_helicity_noP}). } for $R$ in $O$ and double-cover $O^2$. The helicity of the two-particle state is $\lambda=\lambda_1-\lambda_2$ for all cases we consider\footnote{In the continuum this follows from the continuum integration over Euler angle $\gamma$ \cite{Jacob:1959at}. }. Note that the operator (\ref{O_helicity_noP}) is a sum of states with fixed $\lambda_{1,2}$ since the helicity of each particle is conserved with rotation (\ref{12}), \begin{equation} O^{|p|,J,m_J,\lambda_1,\lambda_2,\lambda}= \sum_{R\in O^{(2)}} D^J_{m_J,\lambda}(R) ~e^{i\Phi(R)}~H_{\lambda_1}^{(1),h}(Rp) H_{\lambda_2}^{(2),h}(-Rp)~. \end{equation} The phase $\Phi(R)$ depends also on the choice of $R_0$ through the definition of the helicity state (\ref{13}). We do not explicitly determine $\Phi(R)$, but rather directly employ expressions (\ref{O_helicity_noP}) and (\ref{O_helicity}) to get explicit results for the interpolators in Section \ref{sec:results}. The final helicity operator with desired parity $P=\pm 1$ is obtained from (\ref{O_helicity_noP}) by parity projection $\tfrac{1}{2}({\cal O}+P I {\cal O} I)$ \begin{align} \label{O_helicity} O^{|p|,J,m_J,P,\lambda_1,\lambda_2,\lambda}= \frac{1}{2}\!\!\sum_{R\in O^{(2)}} D^J_{m_J,\lambda}(R) ~&RR_0^p~ [H^{(1)}_{m_{s_1}=\lambda_1}(p_z) H^{(2)}_{m_{s_2}=-\lambda_2}(-p_z)\\ &\ +PIH^{(1)}_{m_{s_1}=\lambda_1}(p_z) H^{(2)}_{m_{s_2}=-\lambda_2}(-p_z)I]~(R_0^p)^{-1}R^{-1}~,\nonumber \end{align} where we have expressed $H^{h}$ (\ref{13}) with fields $H_{m_s}(p_z)$ (\ref{6}) that have good $m_s$. The actions of inversion $I$ and the rotation $R$ on the fields $H_{m_s}$ are given in (\ref{7}). One chooses particular $p$ with given $|p|$ and performs rotation $R_0^p$ from $p_z$ to $p$. There are several possible choices of $R_0^p$, but they lead only to different overall phases for the whole operator (\ref{O_helicity}), which is irrelevant\footnote{The $p$ is the same for all terms (\ref{O_helicity}), so the phase related to the choices of $R_0^p$ is the same in all terms.}. The operators for $|p|=1$ (in units of $2\pi/L$) will be explicitly presented in Section \ref{sec:results}. We take the simplest choice $p=p_z=(0,0,1)$ and $R_0^p=\mathbf{1}$ in (\ref{O_helicity})\footnote{Such a choice is not available for some shells, for example $|p|^2=2$. In this case one chooses some $p$ available in the shell and evaluates (\ref{O_helicity}). } \begin{align} \label{O_helicity_p1} O^{|p|=1,J,m_J,P,\lambda_1,\lambda_2,\lambda}\!\!= \frac{1}{2}\!\!\sum_{R\in O^{(2)}} D^J_{m_J,\lambda}&(R) ~R[H^{(1)}_{m_{s1}=\lambda_1}(p_z) H^{(2)}_{m_{s_2}=-\lambda_2}(-p_z)\\ & \ +PIH^{(1)}_{m_{s1}=\lambda_1}(p_z) H^{(2)}_{m_{s_2}=-\lambda_2}(-p_z)I]~R^{-1}~.\nonumber \end{align} As an illustration we present two $PV$ operators with the same $J^P$ , $$O^{|p|=1,J=1,m_J=0,P=+,\lambda_V=0}\propto \!\!\!\sum_{p=\pm e_z} \text{P}(p) V_z(-p) ~,\ \ O^{|p|=1,J=1,m_J=0,P=+,\lambda_V=1}\propto \!\!\!\!\sum_{p=\pm e_x,\pm e_y} \!\!\!\!\text{P}(p) V_z(-p)~. $$ \subsubsection{ Subduction to irreducible representations }\label{sec:subduction} The operators (\ref{O_helicity}) would correspond to the irreducible representations only for the continuum rotation group $R\in SO(3)$ in which case $J$ indicates the continuum quantum number. These operators (\ref{O_helicity}) represent reducible representation under the reduced discrete group $O^{(2)}$. In simulations one needs to employ operators, which transform according to irreducible representations $\Gamma$ and row $r$ of $G=O^{(2)}$. Those are obtained from the continuum-like operators $O^{J,m_J}$ by the subduction \cite{Dudek:2010wm,Edwards:2011jj} \begin{equation} \label{14} O_{|p|,\Gamma,r}^{[J,P,\lambda_1,\lambda_2,\lambda]}=\sum_{m_J} {\cal S}^{J,m_J}_{\Gamma,r} O^{|p|,J,m_J,P,\lambda_1,\lambda_2,\lambda}\;. \end{equation} The subduction coefficients ${\cal S}$ are real and are given in Appendices of \cite{Dudek:2010wm} and \cite{Edwards:2011jj} for all irreps. For the $T_{1,2}$ irreps our convention for rows is different and the corresponding coefficients ${\cal S}$ are listed in Appendix \ref{sec:rows}. This strategy, to start from operators with continuum spin $O^{J,m_J}$ and subduce them to irreps $O^{[J]}_{\Gamma,r}$, was proposed by the Hadron Spectrum Collaboration in \cite{Dudek:2010wm}. It was then extensively employed for single hadrons by the same collaboration\footnote{This collaboration employed operators for two spin-less particles, which were obtained by combining $O_{\Gamma_1,r_1}\times O_{\Gamma_2,r_2}\to O_{\Gamma,r}$ using corresponding Clebsch-Gordan coefficients \cite{Dudek:2012gj}. }. The subduced operators $O^{[J]}_{\Gamma,r}$ were found to ``carry the memory'' of the spin $J$, where they were subduced from and dominantly couple to the lattice eigenstates with this spin. Whether that expectation holds for two-particle operators combining spin and angular momentum is unclear; if the behaviour is like for the single-particle operators one may expect that the subduced operators $O_{|p|,\Gamma,r}^{[J,P,\lambda_1,\lambda_2,\lambda]}$ will dominantly represent eigenstates with continuum quantum numbers $J,\lambda_1,\lambda_2,\lambda$. \subsection{Partial-wave method} Often one is interested in the scattering of two hadrons in a given partial wave $L$. The orbital angular momentum $L$ and total spin $S$ are not separately conserved, so several $(L,S)$ combinations can render the same $J$, $m_J$ and $P$, which are good quantum numbers. Nevertheless, the $L$ and $S$ are valuable physics quantities to label continuum annihilation field operator \begin{equation} \label{O_LS} O^{|p|,J,m_J,L,S}=\sum_{m_L,m_S,m_{s1},m_{s2}} C^{Jm_J}_{Lm_L,Sm_S}C^{Sm_S}_{s_1m_{s1},s_2m_{s2}} \sum_{R\in O} Y^*_{Lm_L}(\widehat{Rp}) H^{(1)}_{m_{s1}}(Rp)H^{(2)}_{m_{s2}}(-Rp)~. \end{equation} The operator has parity $P=P_1P_2(-1)^L$ and its correct transformation property under rotation (\ref{4}) is demonstrated in Appendix \ref{sec:proofs}. The operator was considered for nucleon-nucleon scattering already in \cite{Berkowitz:2015eaa}, where the proof was not presented (this reference uses $Y_{Lm_L}$ where we have $Y_{Lm_L}^*$). The $C$ are Clebsch-Gordan coefficients, $p$ is an arbitrary momentum with desired $|p|$, $Y_{Lm_L}(\widehat{Rp})$ is a spherical harmonic for direction $(\theta,\phi)$ given by the normalized vector $\widehat{Rp}$. Simple choices of one-particle annihilation operators $H$ are listed in (\ref{6}). The sum is over $R\in O$ for integer as well as half-integer $J$, since rotations for angle $\omega$ and $\omega+2\pi$ have the same effect on $p$. Here is an example of two $PV$ operators with the same $J$ and $S$ \begin{align} O^{|p|=1,J=1,m_J=0,L=0,S=1}&\propto \!\!\!\!\!\!\sum_{p=\pm e_x,\pm e_y, \pm e_z}\!\!\!\!\!\!\! \text{P}(p) V_z(-p) \;,\nonumber\\ O^{|p|=1,J=1,m_J=0, L=2,S=1}&\propto \!\!\! \sum_{p=\pm e_x,\pm e_y } \!\!\!\!\!\!\text{P}(p) V_z(-p) - 2 \!\! \sum_{p=\pm e_z } \!\text{P}(p) V_z(-p)\;. \nonumber \end{align} The operators (\ref{O_LS}) that are labeled by the continuum $J$ are reducible under reduced group $O^{(2)}$, as discussed in section \ref{sec:subduction}. The operators that transform according to irrep $\Gamma$ and row $r$ of $G=O^{(2)}$ are obtained from $O^{J,m_J}$ by the subduction \cite{Dudek:2010wm} \begin{equation} \label{15} O_{|p|,\Gamma,r}^{[J,L,S]}=\sum_{m_J} {\cal S}^{J,m_J}_{\Gamma,r} O^{|p|,J,m_J,L,S}\;, \end{equation} where ${\cal S}$ are the same subduction coefficients as in (\ref{14}). One expects that the subduced operators $O_{|p|,\Gamma,r}^{[J,L,S]}$ carry the memory of continuum $J,L,S$ and dominantly couple to eigenstates with these quantum numbers. This depends on how close one is to the physical limit and whether there may be an actual physical transition\footnote{For example $L=0$ and $L=2$ mix in continuum in the $PV$ and $NN$ channel with $S=1$ and $J^P=1^+$.} between states of different $(L,S)$ in the given chanel $J^P$. If this transition is small, one can hope that operators (\ref{15}) would be valuable handles for certain lower values of $J$ and $L$, which are of most practical importance. Certain higher $L^\prime>L$ inevitably lead to the same operators (or their linear combinations), and $O_{\Gamma}^{[J,L,S]}$ could provide an effective handle on the low partial wave $L$ particularly if the corresponding higher partial waves $L^\prime$ are negligible (as illustrated in Section \ref{sec:higherL}). \subsection{Relation between partial-wave and helicity operators} Operators calculated in partial-wave method (\ref{O_LS}) are linear combinations of operators calculated by helicity method (\ref{O_helicity}) \begin{equation} \label{O_rel} O^{|p|,J,m_J,S,L} = \sqrt{\frac{2L+1}{4 \pi}} \sum_{\lambda = -S}^{S} \sum_{\lambda_{1},\lambda_{2}} \sum_{\lambda^{'}} D_{\lambda^{'},\lambda }^{J}(R_0^p) C^{J\lambda}_{L0,S \lambda} C_{s_1\lambda_1,s_2\;-\lambda_2}^{S\lambda}~ O^{|p|,J,m_J,\lambda^{'},\lambda_1,\lambda_2} \end{equation} where the proof of the relation is presented in the Appendix \ref{sec:relation}. For $|p|=1$, we take the reference momentum $p=R_0^pp_z$ along the z-direction, so $R_0^p$ and $D^{J}(R_0^p)$ are identity matrices. \subsection{Method combining single particle irreducible representations}\label{sec:single_particle_irreps} Let us mention also a fourth method, which is not applied here. This approach \cite{Moore:2006ng} combines single particle irreps $\Gamma_{1,2}$ (for the cubic group at $p=0$ or for the little groups at $p\not = 0$) to two-particle operators in irrep $\Gamma$: $\Gamma_1\otimes \Gamma_2 \to \Gamma$. One hopes that this way one may profit from the optimized single particle operators for given $\Gamma_{1,2}$, as for example in the $PP$ study \cite{Wilson:2014cna}. One needs the values of all corresponding Clebsch-Gordan coefficients to embed the product irreps of the single particle operators in the irreps of the two-particle frame. The method has been, for example, used in $PP$ scattering \cite{Wilson:2014cna} where the Clebsch-Gordan coefficients are known \cite{Dudek:2012gj}. The reference \cite{Moore:2006ng} provides which Clebsch-Gordan coefficients are non-zero for scattering of particles with spin. This approach does not relate the resulting operators to continuum quantum numbers like $L$ or $S$. Nevertheless, it might turn out to be particularly valuable for constructing two-hadron operators with non-zero total momenta. \section{Operators with momenta $|p|=0,1$}\label{sec:results} The explicit expressions for annihilation operators $H^{(1)}(p)H^{(2)}(-p)$ for $PV$, $PN$, $VN$ and $NN$ scattering in three methods are collected here and in Appendix \ref{sec:HH}. We restrict to lowest two momenta $|p|=0,1$ (in units of $2\pi/L$) for the individual hadrons on the lattice of size $L$ with periodic boundary conditions in space. Operators from the projection method $O_{|p|,\Gamma,r,n}$ will be given first, where $n=1,..,n_{max}$ indicate all linearly independent combinations for given $\Gamma$ and $r$. Then operators from helicity method $O_{|p|,\Gamma,r}^{[J,P,\lambda_1,\lambda_2,\lambda]}$ and partial-wave method $O_{|p|,\Gamma,r}^{[J,L,S]}$ will be expressed as linear combinations of known operators $O_{|p|,\Gamma,r,n}$ obtained by the projection method. This indicates which linear combinations have to be employed in a simulation to enhance a coupling to the state with continuum quantum numbers $J,P,\lambda_1,\lambda_2$ or $J,L,S$. This coupling is expected to be favourable when the studied system is approaching the physical limit, if certain higher partial waves are suppressed and if the physical mixing of different $(L,S)$ in given $J^P$ channel is small. In both, helicity and partial wave, methods we consider $J\leq 2$ for integer and $J\leq 5/2$ for half-integer $J$. The helicity operator will not be given for $|p|=0$ as helicity $h$ (\ref{h}) is intended for non-zero momentum. This operator satisfies \begin{equation} \label{16} O_{\Gamma,r}^{[J,P, \lambda_1 ,\lambda_2,\lambda=\lambda_1-\lambda_2]}\propto O_{\Gamma,r}^{[J,P, -\lambda_1 ,-\lambda_2,-\lambda]} \end{equation} since $h$ (\ref{h}) reverses sign if $p\to -p$ and $S\to S$, while $p\to -p$ only multiplies the operator by $\pm 1$ depending on parity. The $m_J$ will appear as an index in helicity and partial-wave operators in cases when only one $m_J$ is present in subduction to given irrep and row (\ref{14},\ref{15}). The vector fields are expressed in the $V_{x,y,z}$ basis (\ref{6}), which are most straightforward for implementation. The normalization of each operator is arbitrary. For brevity, only the first row $r=1$ is displayed, which should suffice for an actual simulation. Other rows and $|p|$ can be obtained from the general expressions for $O$ above. We verified that all partial-wave and helicity operators are related by (\ref{O_rel}). Also, we confirmed that the number of linearly independent operators in each irrep agrees with the fourth method \cite{Moore:2006ng} in Section \ref{sec:single_particle_irreps}, as elaborated for the $PV$ case below. The number of operators based in this method can be deduced based on Table I (for $p=0$) and Table III (for $|p|=1$) of \cite{Moore:2006ng}. Before listing the operators, let us point out again the key expressions that have been used to derive them. The operators from projection method are obtained using (\ref{O_P}) with representations $T^{\Gamma}(\tilde R)$ listed in Appendix A of \cite{Bernard:2008ax}. The helicity operator (\ref{O_helicity_p1}) for $|p|=1$ is subduced to irreps by (\ref{14}), while the partial-wave operator (\ref{O_LS}) comes from the subduction with (\ref{15}). The simple examples of the fields $H_{m_s}$ are collected in (\ref{6}) with their transformations in (\ref{2},\ref{7}) and Wigner-D functions in (\ref{wignerD}). \subsection{$PV$ operators} \subsubsection{$|p|=0$} \begin{eqnarray} && T_1^+:\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad ~ \\ &&O_{T_1^+,r=1}= \text{P}(0) V_x(0) \nonumber\\ && O_{T_1^+,r=1}^{[J=1,L=0,S=1 ]}= O_{T_1^+,r=1} \nonumber \eea Operators for other irreps are equal to $0$. \subsubsection{$|p|=1$}\label{sec:higherL} \begin{eqnarray} && A_1^-:\label{A1m}\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\\ && O_{A_1^-,r=1}= \text{P}(e_x) V_x(-e_x)-\text{P}(-e_x) V_x(e_x)+\text{P}(e_y) V_y(-e_y) -\text{P}(-e_y) V_y(e_y) \nnnza + \text{P}(e_z) V_z(-e_z)-\text{P}(-e_z) V_z(e_z) \nonumber \\ && O_{A_1^-,r=1}^{[J=0,m_{J}=0 ,P=-, \lambda_V=0,\lambda_P=0]}=O_{A_1^-,r=1}^{[J=0,m_{J}=0,L=1,S=1 ]}= O_{A_1^-,r=1} \nonumber \eea \begin{eqnarray} && T_1^+: \qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\label{T1p}\\ && O_{T_1^+,r=1,n=1}=\text{P}(e_x) V_x(-e_x)+\text{P}(-e_x) V_x(e_x) \nonumber \\ && O_{T_1^+,r=1,n=2}=\text{P}(e_y) V_x(-e_y)+\text{P}(-e_y) V_x(e_y)+\text{P}(e_z) V_x(-e_z)+\text{P}(-e_z) V_x(e_z) \nonumber \\ && O_{T_1^+,r=1}^{[J=1,P=+, \lambda_{V}= \pm 1,\lambda_P=0]}= O_{T_1^+,r=1,n=2} \nonumber\\ && O_{T_1^+,r=1}^{[J=1,P=+, \lambda_{V}=0 ,\lambda_P=0]}= O_{T_1^+,r=1,n=1} \nonumber \\ &&O_{T_1^+,r=1}^{[J=1,L=0,S=1 ]}= O_{T_1^+,r=1,n=1} + O_{T_1^+,r=1,n=2} \nonumber \\ && O_{T_1^+,r=1}^{[J=1,L=2, S=1] }= -2 ~ O_{T_1^+,r=1,n=1} + O_{T_1^+,r=1,n=2} \nonumber \eea \begin{eqnarray} && T_1^-: \qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\\ && O_{T_1^-,r=1}=-\text{P}(e_y) V_z(-e_y)+\text{P}(-e_y) V_z(e_y)+\text{P}(e_z) V_y(-e_z)-\text{P}(-e_z) V_y(e_z) \nonumber \\ && O_{T_1^-,r=1}^{[J=1,P=-, \lambda_{V}= \pm 1,\lambda_P=0]}=O_{T_1^-,r=1}^{[J=1,L=1,S=1] }= O_{T_1^-,r=1} \nonumber \eea \begin{eqnarray} && T_2^+:\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad \\ && O_{T_2^+,r=1}=\text{P}(e_y) V_x(-e_y)+\text{P}(-e_y) V_x(e_y)-\text{P}(e_z) V_x(-e_z)-\text{P}(-e_z) V_x(e_z) \nonumber \\ && O_{T_2^+,r=1}^{[J=2,P=+, \lambda_{V}= \pm 1,\lambda_P=0]}=O_{T_2^+,r=1}^{[J=2,L=2,S=1]}= O_{T_2^+,r=1} \nonumber \eea \begin{eqnarray} && T_2^-: \label{T2m} \qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\\ && O_{T_2^-,r=1}=\text{P}(e_y) V_z(-e_y)-\text{P}(-e_y) V_z(e_y)+\text{P}(e_z) V_y(-e_z)-\text{P}(-e_z) V_y(e_z) \nonumber \\ && O_{T_2^-,r=1}^{[J=2,P=-, \lambda_{V}= \pm 1,\lambda_P=0]}=O_{T_2^-,r=1}^{[J=2,L=1,S=1]}=O_{T_2^-,r=1}^{[J=2,L=3,S=1]}=O_{T_2^-,r=1} \nonumber \eea \begin{eqnarray} && E^-: \qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\\ && O_{E^-,r=1}=\text{P}(e_x) V_x(-e_x)-\text{P}(-e_x) V_x(e_x)+\text{P}(e_y) V_y(-e_y)-\text{P}(-e_y) V_y(e_y) \nonumber \\ && \qquad \qquad - 2 \text{P}(e_z) V_z(-e_z)+2 \text{P}(-e_z) V_z(e_z) \nonumber \\ && O_{E^-,r=1}^{[J=2,P=-, \lambda_{V}= 0,\lambda_P=0]}=O_{E^-,r=1}^{[J=2,L=1,S=1]}= O_{E^-,r=1}^{[J=2,L=3,S=1]}=O_{E^-,r=1} \nonumber\\ &&\nonumber\\ && O_{A_1^+}= O_{A_2^+}= O_{A_2^-}= O_{E^+}=0 \;. \eea There is only one independent operator with $|p|\leq 1$ for each irrep (and given row), except for $T_1^+$. The result confirms, for example, that $O_{A_1^-,r=1}^{[J=0,P=-, \lambda_V=0]}=O_{A_1^-,r=1}$ (\ref{A1m}) relates to a channel with negative parity and zero-helicity vector. Or that $O_{T_2^-,r=1}^{[J=2,L=1,S=1]}=O_{T_2^-,r=1}$ (\ref{T2m}) gives information on the channel with $J=2$, $L=1$ and $S=1$. Of course, certain states with higher $J$ and $L$ inevitably contribute to the same discrete irrep along the lines of Table \ref{tab:irreps}. For example states with $J=2$, $L=3$, $S=1$ also contribute to the same irrep $T_2^-$ and the operators $O_{T_2^-,r=1}^{[J=2,L=1,S=1]}=O_{T_2^-,r=1}^{[J=2,L=3,S=1]}$ can not distinguish between $L=1$ and $L=3$. The irrep $T_1^+$ presents an interesting case where there are two independent interpolators $n=1,2$ at $|p|=1$. The result (\ref{T1p}) indicates that $O_{T_1^+,n=1}$ is relevant for $\lambda_V=0$, while $O_{T_1^+,n=2}$ is relevant for $|\lambda_V|=1$. The expressions (\ref{T1p}) also indicate which linear combinations of $O_{T_1^+,n}$ need to be employed to study $L=0$ or $L=2$ partial waves. Note that both partial waves contribute to the same $J^P=1^+$ channel even in the continuum $PV$ scattering with $S=1$. Specific higher $J\geq 3$ and $L\geq 4$ lead to the same $T_1^+$ operators (or their linear combinations). In the limit when partial waves $L\geq 4$ are negligible, we expect that $O_{T_1^+}^{[J=1,L=0,S=1 ]}$ and $O_{T_1^+}^{[J=1,L=2,S=1 ]}$ are valuable handles on lowest partial waves $L=0$ and $2$, respectively. This is expected to work better when the physical transition $(L=0,S=1)\leftrightarrow (L=2,S=1)$ in this channel is small, which is realized, for example, in the heavy-light meson observables due to the heavy quark symmetry\footnote{One $Q\bar q$ state with $J^P=1^+$ decays only via $L=0$ in the $m_Q\to \infty$ limit \cite{Isgur:1991wq}, and $O_{T_1^+}^{[J=1,L=0,S=1 ]}$ was used to consider $D_1(2430)\to D^*\pi$ in \cite{Mohler:2012na}. The other $J^P=1^+$ state decays only via $L=2$ and is narrow.}. The correct number of independent interpolators for $|p| = 1$ can be verified as follows. The total number can be obtained by counting different $P(p)V_i(-p)$, which span a basis with $6\cdot 3=18$ terms ($6$ for directions of $p$ and $3$ for polarization of $V$). This agrees with the number $5\cdot 3+2+1=18$ of interpolators above in all rows ($5$ for number of independent $O_{T_{1,2},r=1}$ and $3$ for number of rows in $T_{1,2}$). The number of $P(1)V(-1)$ interpolators for each irrep also agrees with the fourth method \cite{Moore:2006ng}, discussed in Section \ref{sec:single_particle_irreps}. The Table I in \cite{Moore:2006ng} indicates that $P(1)$ is in irrep $A_2$ of group $Dic_4$, while $V(-1)$ can be in $E_2$ or $A_1$ of $Dic_4$. The $P(1)V(-1)$ are combined to $A_2\otimes (E_2\oplus A_1)=(T_1^+\oplus T_1^-\oplus T_2^+\oplus T_2^-)\oplus (T_1^+\oplus A_1^-\oplus E^-)$ according to Table III in \cite{Moore:2006ng}. This agrees with our interpolators above, so $T_1^+$ indeed appears twice. \subsection{$PN$, $VN$ and $NN$ operators} The explicit expressions for $|p|=0,1$ and all irreps are presented in Appendix \ref{sec:HH}. Several linearly independent operators $O_{\Gamma,r,n}$ typically arise for $VN$ and $NN$ in most of irreps. The number of linearly independent operators in a given irrep is the same as the number of different $(L,S)$ combinations that can contribute to given $J^P$ in the continuum limit (this applies for $J\leq 3/2$ which are contained in a single irrep according to Table \ref{tab:irreps}). The partial-wave and helicity operators indicate which linear combinations of $O_{\Gamma,n}$ are most relevant to study scattering with given $(J,L,S)$ or given $(J,P,\lambda_1,\lambda_2)$. \section{Conclusions} We consider three different methods to construct two-hadron interpolators where one or both hadrons carry spin. The focus is on the case with total-momentum zero where parity $P$ is a good quantum number. The correct transformation properties are proven for all three methods. The projection method is a general mathematical tool which leads to one or several operators $O_{\Gamma,r,n}$ that transform according to given irrep $\Gamma$ and row $r$, but it does not give much insight on the underlying continuum quantum numbers. The partial-wave and the helicity methods indicate which linear combinations $O_{\Gamma,r,n}$ of various $n$ have to be employed in order to hopefully enhance couplings to the states with desired continuum quantum numbers. The partial-wave method renders operators $O_{\Gamma,r}^{[J,L,S]}$ with enhanced couplings to two-hadron states in partial wave $L$, total spin $S$ and total angular momentum $J$. The helicity method provides operators $O_{\Gamma,r}^{[J,P,\lambda_1,\lambda_2]}$ where each hadron has good helicity $\lambda_{1,2}$. The quality of these enhancements depends on how close one is to the physical limit, the smallness of the disregarded higher partial waves, and on the magnitude of the physical transitions between various $(L,S)$ for a given $J^P$. Explicit expressions for $PV$, $PN$, $VN$ and $NN$ operators with lowest two relative momenta are provided in all irreducible representations. We verified that all three methods lead to consistent results, where partial-wave and helicity methods are particularly helpful for physics interpretation. The operators shall be valuable to simulate the scattering of particles with spin in desired channels using quantum field theory on the lattice. \vspace{1cm} {\bf Acknowledgments} We want to thank kindly R. Brice\~no, J. Dudek, R. Edwards, A. Nicholson, M. Padmanath and A. Walker-Loud for valuable discussions. We are especially grateful to M. Padmanath for insightful discussions on the construction of $PN$ interpolators. This work is supported in part by the Slovenian Research Agency ARRS, and by the Austrian Science Found project FWF:I1313-N27. S.P. acknowledges support from U.S. Department of Energy Contract No. DE-AC05-06OR23177, under which Jefferson Science Associates, LLC, manages and operates Jefferson Laboratory.
\section{Introduction} Contemporary Cloud Computing architectures are layered. Basically, a \textit{Cloud infrastructure} executes a set of \textit{virtual machines} which are connected by (nowadays virtualized) \textit{networks}. On these VMs, \textit{computing platforms} provide abstractions and a unified management of \textit{cloud applications}, offering many benefits, e.g., scalability, on-demand provisioning and portability. Futher layered cloud models can be found within the NIST Cloud Computing Reference Architecture \cite{NISTCCRA}, as well as the Intercloud Architecture Framework (ICAF) \cite{DNL13}. Clouds are managed in a highly automated fashion by a number of common tools, e.g., PaaS platforms, deployment managers, identity and access managers, as well as network controllers. Furthermore, many applications are federated over multiple Clouds, adding to the architecture complexity. The "Intercloud" is trending: a globally integrated Cloud of Clouds sharing APIs, protocols, and data formats. A proposal to use existing standards and common mechanisms to achieve the "Intercloud Root" was made by Bernstein, et al. in \cite{BLSDM09}. Our previous work includes the definition of the ICAF in \cite{DNL13}, adressing Intercloud issues, as well as defining models and architecture patterns for federated access control within Intercloud environments in \cite{DNL14}. A future Intercloud could incorporate tightly integrated Cloud platforms such as OpenStack\footnote{https://www.openstack.org} and the VMWare Software-Defined Data Center\footnote{http://www.vmware.com/software-defined-datacenter/}. While these tools provide integrated Cloud management, they fail to deliver open and standardized APIs, protocols, and data formats, and their components are difficult to replace. Furthermore, Intercloud scenarios require cross-cloud (e.g., public-private) interoperability, compatibility, and interchangeability which is currently challenging to implement. Thus, Application Service Providers (ASPs) as well as their customers are constricted in their deployment of well-integrated Cloud solutions, and the Intercloud awaits its implementation in practice. The \textbf{CYCLONE} project (\textbf{C}omplete and D\textbf{y}namic Multi-\textbf{clo}ud Applicatio\textbf{n} Manag\textbf{e}ment) aims to enhance end-to-end cloud security and facilitates the deployment, management, and use of complex, multi-cloud applications. The project improves existing production-quality tools to offer a software stack based on open standards and APIs. Concrete project tasks are: Network-IaaS integration, common federated authentication, Intercloud brokering and matchmaking, as well as providing PaaS functionality to ASPs (e.g., VM coordination and automated placement). This publication presents the CYCLONE stakeholders and their requirements, a description of the CYCLONE architecture, as well as an evaluation in form of a practical deployment within the bioinformatics sector. \section{Stakeholders and Requirements} \label{ch:requirements} There are four main \textbf{CYCLONE stakeholders}: \textit{(1) cloud application service providers} will use CYCLONE components to offer diverse functionality to \textit{(2) cloud developers} and \textit{(3) cloud operators} to enable them to easily implement, deploy, and manage cloud applications for \textit{(4) cloud application end-users}. Nine main requirements for CYCLONE components' functionality are described in the remainder of this chapter, which are pertinent to complex, federated, multi-cloud applications. \textbf{Federated identity (R1):} Multi-cloud environment security requires a common authentication system where Cloud application end-users can log in to applications using a federated identity. \textbf{End-to-end encryption (R2):} Common HTTP intermediaries, such as reverse proxies and load balancers, often act as TLS server connection ends, accessing HTTP/TLS plaintext. There has to be an end-to-end encryption (i.e., user agent to origin server) of sensitive HTTP entity bodies. \textbf{Distributed logging (R3):} Managing multi-cloud applications effectively requires consolidating all event logs of the involved software, i.e., a distributed logging system. \textbf{Deployment description (R4):} There has to be a method of describing Cloud application deployments, at best supporting scripting, multi-cloud deployment and orchestration, as well as custom application lifecycle hooks. \textbf{Management APIs (R5)} Any IaaS solution should provide an easy to use, comprehensible, and rich set of management APIs (R5) for computing, storage, and network. \textbf{VM marketplace (R6)} To allow collaboration between end-users, VM appliance creators and Cloud administrators, the IaaS solution should incorporate a comprehensible VM marketplace. \textbf{Network service management platform (R7):} As cloud applications have limited network control and visibility, it is challenging to achieve service delivery automation, resource management, and on-demand network connectivity. To implement advanced network services, there has to be a network service management platform, integrated into the employed IaaS offering. \textbf{Brokering (R8):} In order to support Cloud application developers in finding suitable services in the vast Intercloud, there has to be a service formalization, a service vocabulary, and a brokering component. It should adapt to dynamically changing Intercloud services' properties. \textbf{Matchmaking (R9):} There should be automated matchmaking of Intercloud services properties to cloud operator requirements in order to guide service assessment and selection. \section{Related Work} \label{ch:related-work} This chapter briefly presents the work related to CYCLONE, divided into areas pertinent to different CYCLONE components - in the order of the cloud stack, from infrastructure to application. \textbf{IaaS platforms.} The most prominent IaaS ecosystem is Amazon EC2, a proprietary public Cloud platform. Two strong open source contenders are OpenStack and OpenNebula \cite{milojivcic2011opennebula}. However, they encompass a multitude of components whose set-up requires Cloud operators to follow extensive installation guides. \textbf{Configuration Management.} The most commonly used configuration management tools are Chef\footnote{www.chef.io} and Puppet\footnote{puppetlabs.com}, both Ruby-based. They require the installation of a server and client agents. Juju\footnote{https://jujucharms.com/} is a notable tool for deploying and managing Cloud services, featuring a high level application model. \textbf{Distributed logging.} The most widely deployed distributed logging system is \texttt{syslog}, standardized in \cite{rfc5424}. Syslog is often used for lower-level logging, e.g., logging of network daemon output. State-of-the art higher-level application logging includes Logging-as-a-Service offerings, such as Loggly\footnote{https://www.loggly.com/} and Papertrail\footnote{https://papertrailapp.com/}, as well as open source stacks, such as the ELK-stack\footnote{https://www.elastic.co/products}, which consists of Elasticsearch (persistence), Logstash (logging middleware) and Kibana (logging dashboard). \textbf{Software-defined-Networking} Software Defined Networking (SDN) enables dedicated SDN controller software to take all network decisions and has recently gained acceptance\cite{SDN}. SDN eases data centre (DC) network management and enables new networking capabilities, e.g., centralized control, decoupling of network planes, exposing network APIs, and more. While SDN was initially proposed for core networks, IaaS providers are adopting it to allow holistic infrastructure management (IT+Network). The most relevant open source SDN solutions are OpenDayLight\footnote{http://www.opendaylight.org/} (ODL), RYU\footnote{http://osrg.github.io/ryu/}, and ONOS\footnote{http://onosproject.org/}. ODL is a popular solution supporting many network technologies. Some Cloud research projects, e.g., COSIGN\footnote{http://www.fp7-cosign.eu/} and BEACON\footnote{http://www.beacon-project.eu/}, are using it as intra-DC network management system. Yet, it is heavily influenced by vendors, had significant changes, lacks clear documentation, and has a very large codebase. RYU is an open source project initiated by NTT. It is easy to start and well documented. There is limited support of different network devices as RYU focuses on OpenFlow\footnote{https://www.opennetworking.org/sdn-resources/openflow/} (OF). Also, as OF does not support distributed DCs, Cloud federation scenarios are not supported. ONOS, created by ON.lab, is an open source SDN controller focusing on network performance, scalability, and multilayer designs. Despite being first released in December 2014, it seems to be a promising SDN platform. All major vendors have commercial SDN solutions: Juniper OpenContrail, Cisco Application Centric Infrastructure, HP SDN VAN controller, Brocade SDN controller (formerly Vyatta), as well as the VMware NSX platform. \textbf{End-to-end encryption.} There are different technologies for securing HTTP entity bodies end-to-end, notably Secure/Multipurpose Internet Mail Extensions (S/MIME) \cite{rfc5751}, XML Encryption \cite{XMLENC} and Signature \cite{XMLDSIG}, HTTPSec \cite{HTTPSEC}, as well as Secure HTTP (S-HTTP) \cite{rfc2660}. In one of our previous publications we analyze them, show the severe deficiencies of these technologies in Cloud environments and create a novel end-to-end HTTP-based encryption protocol, the Trusted Cloud Transfer Protocol (TCTP) \cite{S13d}. \textbf{Federated Identity.} There are a number of existing federated identity patterns which can be considered state-of-the-art: One of the most comprehensible is the "Claims Based Identity \& Access Control"\footnote{http://claimsid.codeplex.com/} which uses SAML for transmitting security claims between participating parties. Another more recent approach to federated identity is OpenID Connect\footnote{http://openid.net/connect/} which defines a "simple identity layer" based on OAuth 2.0\footnote{http://oauth.net/2/} and JSON Web Token\footnote{http://jwt.io/}. OpenID Connect is notable for its wide industry adoption, e.g., by Google, Microsoft, and Salesforce, as well as its ongoing adoption by the GSMA to be used worldwide by mobile network operators. \textbf{Complex Application Descriptions.} CYCLONE performed an analysis of contemporary application models, i.e., SlipStream, CIMI~\cite{cimi}, TOSCA~\cite{tosca}, OCCI~\cite{occi} and Compose YML~\cite{docker-yaml}. The model used by SlipStream already supports full multi-cloud application deployments and triggers. The DMTF CIMI model promises the best overall interoperability within the CYCLONE target area. Therefore, CYCLONE will extend it and use it for describing complex, federated, multi-cloud applications. The rationale can be found in \cite{deliverable_6_1}. \begin{figure*} \centering \includegraphics[width=28cm, trim=0.65cm 28.3cm 3.7cm 2.45cm]{graphics/usecase.pdf} \caption{The Bioinformatics Use Case} \label{fig_sim} \end{figure*} \textbf{Service Matchmaking and Brokering.} There are interface description languages, such as WSDL \cite{WSDL}, as well as service description languages from the Semantic Web, e.g., OWL-S \cite{MPMB+05}, SAWSDL\cite{SAWSDL}, WSMO \cite{WSMO}, and Linked-USDL \cite{PCL14}. Most of the semantic approaches were abandoned, possibly due to missing industry adoption, e.g., OWL-S (2006), SAWSDL (2007), and WSMO (2008). In our previous work \cite{SK14} we have revealed unresolved challenges while building a Cloud service repository for regular Internet users: business pertinence, tooling simplicity, information reuse, and Cloud service modeling challenges. To adress these issues, we are building the Open Service Compendium (OSC), an open, wiki-like information system featuring a textual DSL, business-pertinent vocabulary, and a brokering component, presented in depth in \cite{SZKK15}. In our survey \cite{zilci2015survey}, we observe that service matchmaking approaches from the academia have different problem definitions since they consider different service descriptions. Most of the related work addresses only numeric QoS parameters in a complex manner. However, important service selection criteria which are not numeric are not addressed e.g. list typed properties. In the CYCLONE architecture, we consider that service requesters specify the Clouds to use in advance, however the exact deployment actions are triggered in the background. Following the Grozev taxonomy \cite{grozev2014inter}, CYCLONE can be classified as a combination of trigger action and directly managed, while keeping the user's control of the Cloud distribution. \section{CYCLONE Architecture and Components} \label{ch:architecture} The CYCLONE architecture comprises platform, infrastructure, networking, and multi-cloud management software and is presented in Figure \ref{fig_components}. \begin{figure}[h] \centering \includegraphics[width=\columnwidth, trim=0.35cm 28.3cm 17cm 2.45cm]{graphics/architecture.pdf} \caption{The CYCLONE components} \label{fig_components} \end{figure} It is comprised of components for the \textbf{Cloud stack} (OpenNaaS, StratusLab, and SlipStream), as well as for overall \textbf{multi-cloud management} responsibilities (Identity Federation, Distributed Logging, and the Open Service Compendium). \textbf{OpenNaaS} is a software-defined network controller for the IaaS interconnections. It provides scheduled, dynamic, and flexible network connectivity services with short provisioning times, thus reducing management complexity and bridging the Cloud to end-to-end network services, both intra- and inter-Cloud. \textbf{StratusLab} provides infrastructure management APIs, comparable to OpenStack and Amazon EC2. It is easy to set up and features a substantially simplified architecture while being suitable for HPC workflows, as it is based on OpenNebula. Apart from compute, storage and network features, it can also be federated with other StratusLab installations. It uses OpenNaaS to manage the routers connecting the StratusLab VM hosts, offering network services to deployed VMs. As it is published as open source, it can be easily extended and integrated with other CYCLONE components. \textbf{SlipStream} is an open source Cloud application manager. It is used within CYCLONE to deploy Cloud applications onto one or more IaaS Cloud infrastructures and to manage the Cloud resources allocated to the running Cloud applications. SlipStream combines its deployment engine with an "App Store", "Cloud Service Catalog", dashboard, and monitoring to provide a complete engineering PaaS supporting DevOps processes. SlipStream supports most public IaaS services and IaaS Cloud distributions, including StratusLab. In the interest of interoperability, SlipStream is gradually moving from its own RESTful API to the standardized CIMI API. The \textbf{CYCLONE Identity Federation} is based on Keycloak\footnote{http://keycloak.jboss.org/}, an open source SSO and IDM solution for browser apps and RESTful services. It is built on top of the OAuth 2.0, Open ID Connect, JSON Web Token (JWT) and SAML 2.0 specifications. CYCLONE end-users can use their own identity provider, e.g., EduGAIN, Shibboleth, Facebook, and Google, to log in to CYCLONE services. This also includes, for example, the login of Cloud developers into SlipStream and of Cloud operators into the distributed logging. The \textbf{CYCLONE Distributed Logging} unifies the log messages of the Cloud stack and multi-cloud management components and offers end-users easy browsing through their logs. It is build upon the ELK logging stack. The \textbf{Open Service Compendium} describes IaaS solutions which are available for application deployment. It presents Cloud operators the properties of different offerings, as well as a comparison of deployment options and their costs. We strive for SlipStream integration in order to raise the manageability of complex multi-cloud applications. \section{Bioinformatics Use Case and evaluation} \label{ch:use-case} The first deployment of the CYCLONE architecture will be in a bioinformatics use case as shown in Figure \ref{fig_sim}, which is described in this section, along with the CYCLONE requirements which are achieved. Cloud application users from a set of French laboratories use a \textbf{portal (R6)} to select specific Cloud applications for self-service deployment. This portal uses the SlipStream REST interface in order to deploy them on a StratusLab Cloud hosted by CNRS LAL. SlipStream utilizes a rich \textbf{deployment description (R4)} and consumes the StratusLab \textbf{VM management APIs (R5)}. Some of the applications are TCTP-enabled to achieve \textbf{end-to-end encryption (R2)}. The OpenNaaS \textbf{CYCLONE network management platform (R7)} configures Openflow-based routers used within the infrastructure at CNRS LAL. Applications and most components integrate with the CYCLONE federation provider allowing CNRS end-users to utilize their RENATER (EduGAIN) accounts for \textbf{federated identity (R1)}. All relevant components log their output to the CYCLONE \textbf{distributed logging (R3)}. Cloud Developers can use the Open Service Compendium for service \textbf{brokering (R8)} and \textbf{matchmaking (R9)}, possibly integrated with SlipStream. \section{Conclusion} \label{ch:conclusion} This publication introduced the challenges, stakeholders and requirements of cloud application deployment and management in multi-cloud and multi-provider environments. To meet stakeholder requirements and associated challenges we introduce the CYCLONE architecture and demonstrate its benefits within the practical use case of bioinformatics applications. Through the integration and extension of specifically selected tools, we hope to create a simple, capable, and holistic Cloud management solution. In the future, we will further maturate our architecture and tooling to tackle open engineering challenges and further use cases. This should create an alternative to the complex and monolithic Cloud stacks prevalent today. Moreover, we plan to design test cases and document quantitative results to compare our approach to other Cloud stacks especially in the multi-cloud context. \section*{Acknowledgment} This work is supported by the CYCLONE Horizon 2020 Innovation Action CYCLONE \footnote{cyclone-project.eu}, funded by the European Commission under grant number 644925. \IEEEtriggeratref{11} \bibliographystyle{IEEEtran}
\section{Introduction} We all have an intuitive notion of what time and space are. In our experience, time flows and we see objects occupying a place in space. The physics of these scales of space and time that we experience are described by Newton's laws. The fundamental workings of amazing technologies, such as computers and mobile phones, are all based on these classical laws.\footnote{For example, a computer relies on classical information theory and stores information in binary bits so that, even though an understanding beyond Newtonian physics is required to manipulate certain components of the technology that are used to carry out the classical information tasks, the computer is fundamentally based on classical concepts.} Interestingly, at different space and time scales, reality seems very different and it is not in harmony with our experience. On the one hand, physical laws are governed by GR at large spatial scales, while on the other hand, QM rules the microscopic world. These theories have been extensively demonstrated by experiments. The state of systems, such as atoms and electrons, is governed by the wave-function, according to which quantum systems can occupy different positions at the same time.\footnote{This is just one of many possible interpretations of the physical meaning of the wave-function.} Another property of quantum systems is that multipartite systems can be in entangled states in which measurements in one system immediately affect the state of the other systems. A question of great interest in the field of QM is at which point physical systems lose their quantum properties and start behaving classically. Typically, systems consisting of a large amount of particles behave classically. However, in the case that such particles are at very low temperatures, they can exhibit quantum behaviour. This is the case of Bose-Einstein condensates (BECs): they consist of around $10^6$ atoms cooled down to the nano-Kelvin regime. Excitingly, we are now entering a new era in which we are starting to develop technologies based on the physics of the microscopic world. Quantum technologies, including quantum communication and quantum metrology, have become popular because they enable us to achieve tasks that are not possible in a classical context. The last decades have seen accelerated development of these technologies, including the control of systems for which Haroche and Wineland were awarded the 2012 Nobel Prize in Physics. Let us now discuss physics at large length scales. In GR, space and time form part of a more general structure that is four-dimensional and is called spacetime. Contrary to our experience, where space and time are absolute notions, spacetime is relative. Einstein taught us that the notion of spacetime could help us understand gravity as the curvature of spacetime produced by the presence of energy. GR also predicts the existence of Gravitational Waves (GWs). These are spacetime distortions produced by certain accelerated energy distributions, such as supernova explosions or moving black holes. After almost one hundred years since they were first predicted, GWs were finally observed for the first time this year by the Laser Interferometer Gravitational-Wave Observatory (LIGO) in a milestone moment in physics \cite{PhysRevLett.116.061102}. However, we are still lacking experiments that help us understand GR at small lengths or large energies where quantum effects become relevant. Our understanding of the interface of these two fundamental theories is incomplete and the inability to unify them remains one of the biggest unsolved problems in physics. Understanding GR at small length scales where quantum effects become relevant is a highly non-trivial endeavour that suffers from a lack of experimental guidance. An alternative approach is to study quantum effects at large scales where experiments promise to be within reach in the near future. For example, one could study whether entanglement is affected by general relativistic effects such as time dilation in a gravitational field. Indeed, quantum experimental techniques have developed quickly in the last decades and are now reaching relativistic regimes. This is illustrated, for example, by quantum teleportation being successfully implemented across 143\,km in the Canary islands, and long-range quantum experiments are under way to distribute entanglement across thousands of kilometres between Earth and satellite-based stations. At these regimes relativistic effects kick in. For example, the Global Positioning System (GPS), a system of satellites used for time dissemination and navigation, requires relativistic corrections to determine time and positions accurately. However, we know very little about how gravity and motion affect quantum properties, such as quantum coherence and entanglement, that are used in quantum technologies. Relativistic regimes are being reached not only by space-based experiments but also through boundary conditions moving at relativistic speeds in superconducting circuits. These systems have been used to demonstrate relativistic quantum field effects in flat spacetime such as the Dynamical Casimir Effect (DCE). Furthermore, extremely high precision in quantum experiments has also enabled experimentalists to reach relativistic regimes by, for example, being able to prove time dilation at distances as small as a few cm where previous experiments assumed spacetime to be flat. By being able to measure space and time more precisely using quantum systems, we will soon be able to probe new regimes where new physics might emerge. In order to predict the results of quantum experiments at relativistic regimes we require a consistent theoretical framework. Fortunately, we do have a theory that enables the study of the overlap of these theories at low energies. This is QFTCS and describes the behaviour of quantum fields in a classical curved spacetime. Predictions of the theory include Hawking radiation and particle creation by an expanding universe. There are also analogous effects such as the Unruh and DCE generated from QFT in flat spacetime with accelerating reference frames. Although the latter flat spacetime effect was demonstrated in 2011 using superconducting circuits \cite{Wilson2011}, QFTCS still awaits experimental demonstration despite most paradigmatic predictions of the theory being over three-decades old. Due to obvious difficulties in demonstrating Hawking radiation and particle creation by an expanding Universe, several groups have been working in analogue demonstrations of these effects. In analogue gravity, researchers find ways of reproducing the basic features of the theory in systems such as BECs, water waves, non-linear optical waveguides and superconducting circuits. These experiments cannot strictly falsify QFTCS since they are based on analogue effects, instead they are probing the mathematics of the theory and can only find potential clues to the breakdown of the physical theory. However, new proposals using QFTCS have identified \textit{real} spacetime effects on quantum fields that could, in principle, be within experimental reach. As well enabling a number of experiments in the overlap of quantum theory and GR, this will ultimately also lead to the development of technologies that are compatible with spacetime while exploiting both quantum and relativistic effects. These technologies have so far been suggested to be, in principle, implementable in BECs, superconducting circuits and free space quantum communication experiments. For example, recent results have suggested that the phononic field of a BEC is particularly well-suited to measure spacetime effects. Although BECs can be as small as one micrometer, they can be cooled down to a few nano-Kelvin where they not only exhibit fascinating quantum behaviour but are also, surprisingly sensitivity to very weak spacetime changes. This new observation enables the possibility of developing a microscopic device capable of probing spacetime effects directly. Technology of this kind would open a new window promising to provide deeper insights about our Universe through gravity. A principle aim is to use these effects on a BEC to develop a GW detector capable of detecting spacetime distortions produced by merging neutron stars and black holes as well as rotating neutron stars and pulsars. This would offer a much cheaper and practical GW detector than the current state of the art. Multiple GW detectors could then be used by various experimental groups, allowing for improved validation of the signal through simultaneous measurements, as well as superior positioning of the source of the signal. The main aim of these relativistic quantum technologies is to develop new designs that not only exploit quantum properties but also take advantage of, or incorporate, spacetime effects. These new devices are being actively investigated in the research field of relativistic quantum information and metrology. In this field, research groups try to develop quantum technologies that are compatible with relativity, and some ideas for using relativistic effects to improve quantum technologies, such as quantum measurement technologies \cite{Ahmadi:Bruschi:2014:v2}, have surfaced. The application of relativity in the development of new technologies has remained less explored than its quantum counterpart, but these new proposals illustrate the potential benefits that can be gained from utilising relativity. The rest of this work is organized as follows. In Section \ref{sec:QMExpsRelativiticRegimes} we review quantum experiments that are approaching regimes in which relativistic effects due to gravity will become relevant. In general, these experiments are designed and described using non-relativistic QM. However, in Section \ref{sec:QFTCS} we discuss the motivation for moving to a QFTCS framework to describe such experiments. We also discuss other motivations for working with QFTCS, such has how this creates new possibilities in technology and how it could shed new light on answering fundamental questions relevant to quantum gravity. The theoretical work that has illustrated the need for using QFTCS is then reviewed in more detail in Sections \ref{sec:corrections}-\ref{sec:RQTechnology}. Specifically, in Section \ref{sec:corrections} we review recent works in QFTCS that have shown how the performance of certain quantum information protocols can be affected by relativistic effects, requiring corrections to be made to the predicted outcomes of the experiments. The measurement of such effects would also represent an observation of QFTCS and, in the same section, we additionally review proposals that have been purposely designed to illustrate these effects using current technology rather than relying on future experiments designed to advance quantum technology. Section \ref{sec:RQTechnology} then reviews recent proposals based on QFTCS that demonstrate how a new type of technology could be developed that exploit the relativistic effects, in contrast to current quantum technologies that would see the effects as a hindrance to their design. As well as providing greater performance than their non-relativistic counterparts, the implementation of such devices would also provide an observation of QFTCS effects and offer further insight into the interplay of quantum physics and GR. Finally, in Section \ref{sec:Summary}, we conclude this review and discuss future prospects. While this is not an exhaustive review of theoretical and experimental works related to relativistic effects on quantum properties, we hope that it provides an overview of the current status of this exciting field, and that it may inspire new research. \section{Quantum Experiments Approaching Relativistic Gravity Regimes} \label{sec:QMExpsRelativiticRegimes} In this section we review quantum experiments that are approaching regimes where quantum properties will be modified by relativistic effects of gravity. Generically, these quantum experiments are approaching such regimes because they involve large distances and implement high precision techniques. Studying relativistic effects however is not, in general, the principal motivation behind the development of most of these quantum experiments. Instead the experiments are primarily designed to advance quantum technology and its applications, such as the quantum internet, navigation, geophysics and GW astronomy. Otherwise they have been designed to advance our understanding of fundamental physics, such as a modifications to quantum theory at large scales, or the quantization of gravity. In the following subsections we review the following types of quantum experiments that are approaching relativistic gravity regimes: large-scale experiments that are designed to advance quantum communications; experiments using ultra-precise quantum clocks; quantum technologies that are being used in gravitational metrology; quantum experiments that can detect GWs; quantum experiments that are specifically searching for deviations from GR; experimental proposals designed to search for quantum gravity using massive quantum systems; and quantum experiments that have exhibited the DCE, which is an analogue of effects due to curved spacetime. \subsection{Long-range Quantum Communication Experiments} \label{sec:LongRange} A primary goal of quantum technology is to develop a global quantum communications network and, ultimately, a quantum internet, which would provide an exponential speed-up in distributed computation and be impenetrable to hackers. To achieve this goal it is likely that quantum systems will need to operate over large distances such as that of the Earth to satellites. These are length scales where the relativistic nature of the Earth's gravitational field already needs to be taken into account in classical technologies such as GPS signalling. Therefore, one would naturally expect that relativistic effects on quantum properties of long-range quantum communications experiments will also need to be considered. Indeed, in Section \ref{sec:corrections}, we review theoretical works which demonstrate that these effects could be crucial to the workings of such experimental setups. An important step in the realisation of a global quantum communications network was made in 2011 when the group led by Anton Zeilinger distributed entanglement across a 144\,km free-space link between Canary islands La Palma and Tenerife \cite{Ma2012,Herbst17112015}. This set the record for the distance achieved for quantum entanglement and teleportation, and provided the benchmark for an efficient quantum repeater, which could be placed at the heart of a global quantum-communication network. In collaboration with the Chinese Academy of Sciences (CAS), the group is now planning to demonstrate satellite-based quantum teleportation, which is anticipated to take place later this year. Quantum transmission is also being investigated between the Earth and a satellite. In particular, in 2015 a single photon exchange was performed from a medium Earth orbit satellite to the ground station at the Matera Laser Ranging Observatory \cite{PhysRevLett.115.040502,Dequal:Vallone:2016}. In this setup, a single photon source in orbit was simulated by emitting a train of laser pulses with average photon number per pulse close to one, which were then reflected back at the single photon level from the satellite. The repetition rate of the laser pulses was 100\,MHz and the satellite was at more than 7000 km of slant distance. As well as providing a further step towards a global communication network, this experiment also opens up the potential for fundamental tests of Quantum Mechanics with moving frames, and \cite{Dequal:Vallone:2016}. Furthermore, with an upgrade of the detector on ground, the group claim that it would be possible to achieve quantum communication for up to 23000 km \cite{Dequal:Vallone:2016}. In 2015 the group also demonstrated interference at the single photon level along satellite-ground channels in a step towards observing the gravitational phase shift between a superposition of two photon wave packets in a large distance quantum optics experiment in space \cite{PhysRevLett.116.253601}. Many other groups are working on quantum communication between Earth and satellite links. For example, the Institute for Quantum Optics and Quantum Information (IQOQI) in Austria is planning on performing quantum optics experiments, such as a Bell-type experiment with an entangled pair of photons, using an optical ground station (OGS) and the International Space Station (ISS) \cite{Scheidl2013}; the quantum information processing group (QIV) at the Max Planck Institute for the Science of Light (MPL) is investigating quantum communication experiments between the Teide Observatory on Tenerife and the Alphasat I-XL satellite at around a separation of 36000\,km \cite{Elser2015}; the Centre for Quantum Technologies (CQT) group at the National University of Singapore, together with the Satellite Research Centre at Singapore's Nanyang Technological University, is investigating a Small Photon-Entangling Quantum System (SPEQS) that will be set into orbit on a type of small satellite known as a CubeSat and be used as a testbed for technology for future quantum communication networks \cite{Chandrasekara2015,Bedington2015,PhysRevApplied.5.054022}; the National Institute of Information and Communications Technology (NICIT) in Japan is studying a microsatellite mission called SOCRATES with a goal to experiment with Quantum Key Distribution (QKD) techniques using a Small Optical Transponder (SOTA) on board a small satellite and an optical ground station located at NICT \cite{Takenaka2011}; the Institute for Quantum Computing (IQC) at the University of Waterloo, in collaboration with industry partners, have proposed a microsatellite mission Quantum Encryption and Science Satellite (QEYSSat) to demonstrate the generation of encryption keys through the creation of quantum links between ground and space, and to conduct fundamental science investigations of long-distance quantum entanglement \cite{Jennewein2014}; and the Chinese Academy of Sciences (CAS) is investing heavily in projects on long-distance satellite and ground quantum communications \cite{PanJianwei547}, for example, see \cite{Yin:13}. \subsection{Quantum Clocks} \label{sec:QMClocks} The previous section reviewed quantum experiments that operate over large enough distances such that effects from the gravitational field of the Earth start to play a role. However, with increasing precision of an experiment, the length scales over which one must consider general relativistic effects will significantly reduce. This was dramatically demonstrated in the optical atomic clock experiment performed by the group of David Wineland where the time dilation due to the Earth's gravitational field was observed over a change of height of just 33\,cm \cite{Chou1630}. This was achieved by comparing the frequencies of two $\mathrm{Al}^{+}$ clocks at two sample height differences. However, although these type of aluminium-based clocks demonstrate remarkable accuracy, they are currently not the most accurate time keepers. Instead optical lattice clocks currently hold this mantle with a $^{87}\mathrm{Sr}$ optical lattice clock showing a total uncertainty of $2.1 \times 10^{-18}$ in fractional frequency units \cite{Nicholson2015}. This would correspond to a measurable gravitational time dilation for a height change of just 2\,cm on the Earth \cite{Nicholson2015}. In addition to time dilation due to the Earth's gravitational field, the aluminium-based atomic clock was also used in a separate experiment to simulate the twin paradox and to observe time dilation for relative speeds of less than 10\,$\mathrm{ms}^{-1}$. For this experiment the two ion clocks were placed in different labs, spaced 75\,m apart and connected via a stabilized optical fibre. One atom, the one corresponding to the travelling twin, was then set into an oscillating motion around its equilibrium position. Time dilation for this motion leads to a fractional frequency shift for the moving clock, which was found to be in agreement with that expected from relativity. It is remarkable that general relativistic effects can be seen at such small length scales where one would naturally expect spacetime to appear completely flat, illustrating the power and precision of current technology. Furthermore, these length scales are expected to reduce in the near-term with future major developments such as the utilisation of quantum correlations and implementations in space. In the former case, entanglement could be used to enable quantum clocks operating close to the Heisenberg limit \cite{PhysRevLett.112.190403}, the ultimate fundamental bound imposed by QM, whereas, in the latter case, space-based operations would significantly reduce noise, allowing for new applications in fundamental physics, geophysics, astronomy and navigation. The results from these experiments can so far be explained by modelling the clocks as classical point-like, time-keeping systems in a relativistic gravitational field. However, in Section \ref{sec:corrections} it is argued that, as the precision continues to improve, and as quantum correlations such as entanglement begin to be utilized, relativistic effects will start to influence the quantum properties of quantum clocks such that the results of experiments cannot be solely explained using this semiclassical approach. As well as modifying the precision of quantum clocks, this would also enable such clocks to be used as probes to study relativistic effects on quantum properties. In principle, the most appropriate and accurate theory for describing these quantum clock experiments that operate in relativistic regimes is QFTCS rather than non-relativistic QM since time is absolute in the Schr\"{o}dinger equation, which is a notion that is incompatible with the concept of time dilation. \subsection{Gravitational Metrology Using Quantum Systems} \label{sec:GMetrology} In the last few decades quantum technology, specifically atom-interferometry, has transformed the field of gravitational metrology. In particular, atom interferometers have found major applications in precise measurements of gravitational acceleration \cite{Kasevich1992,Peters1999,A.PetersK.Y.Chung2001}, gravity gradients \cite{PhysRevLett.81.971,PhysRevA.65.033608} and as gyroscopes \cite{PhysRevLett.78.2046,Gustavson2000}. These experiments all utilize the wave nature of atoms by sending them through an interferometer and measuring the difference in phase induced by different gravitational potentials, an effect that was first demonstrated with neutrons in the Colella-Overhauser-Werner (COW) experiment in 1975 \cite{PhysRevLett.34.1472}. For example, in a trend-setting experiment by Guglielmo Tino (LENS) \cite{PhysRevLett.114.013001}, the change in the gravity gradient (known as the `curvature') of the gravitational field induced by test masses arranged around the experimental setup was measured using three atomic interferometers in parallel. The experiment used cold $^{87}$Rb atoms and relied on the combination of three vertical Mach-Zehnder interferometers implemented via Raman beams. Three clouds of cold atoms with a temperature of $\sim 4\,\mathrm{\mu K}$ were prepared in a superposition of the $\mathrm{F}=1$ and $\mathrm{F}=2$ states using counter-propagating Raman beams. The three clouds were then launched to different heights such that each trajectory corresponded to an interferometer with a different length. They obtained a gravity curvature of $\approx 1.4\times10^{-5}$ s$^{-2}$m$^{-1}$ for the arranged test masses, which are well-characterized tungsten weights with a total mass of about 519\,kg, and this agreed with a Monte-Carlo simulation to an accuracy on the per mill level. Another example is the large scale Matter-Wave laser Interferometer Gravitation Antenna (MIGA), which consists of several spatially separated atom interferometers horizontally aligned and interrogated by a common laser field inside a 200-meter-long optical cavity. This detector is currently being built in a low-noise underground laboratory in France \cite{refId0,R.Geiger2015} and is designed to provide measurements of sub Hertz variations of the gravitational strain tensor. Such light-pulse atom interferometers have demonstrated great potential as highly accurate quantum sensors, and recently a representation-free description of such devices was achieved that should allow future studies to consider arbitrary trajectories and varying orientations of the interferometer setup in non-inertial frames of reference \cite{Kleinert20151}. Note that these atom interferometer experiments are testing for the effects of gravity on quantum properties of the system, namely quantum coherenc . To date only effects that are fully accountable using Newtonian gravity have been observed. However, major advances in the precision of these devices are expected in the future with, for example, the exploitation of highly entangled states. There are also plans to use atom interferometers in space since certain ground-based systematic effects will be suppressed, allowing for improved sensitivity of the devices by orders of magnitude \cite{Tino2007159,Sorrentino2011}. With these advances, effects from GR could become observable and would then need to be accounted for in their operation. In the next Section, however, we review proposals that are specifically designed to observe and test GR effects using quantum systems based on atom interferometry. \subsection{Testing General Relativity With Quantum Systems} \label{sec:TestingGR} Atom interferometry is now starting to reach a precision such that it could, in principle, be used to test GR \cite{Jentsch2004,PhysRevD.73.022001,PhysRevLett.98.111102,PhysRevD.78.042003}. Measurable effects of GR could include non-linear effects; velocity dependent forces; the equivalence principle; the Lense-Thirring effect; and GWs, the latter of which will be discussed in the following section. In \cite{PhysRevD.73.022001,PhysRevLett.98.111102}, atom interferometry tests of GR were motivated by comparing certain GR and non-relativistic effects to determine if, in principle, the former could be distinguishable from the latter. Light-pulse atom interferometry was promoted to a relativistic setting with both the atoms and the light treated relativistically and all coordinate dependencies removed. In particular, a semiclassical description was used where the free propagation of the atoms and the light was treated classically such that, in analogy with non-relativistic calculations, the propagation phase is proportional to the classical (but now GR) action, whereas the atom-light interaction is interpreted using non-relativistic QM but described in a covariant manner. The atom interferometry was assumed to be placed in a Schwarzschild metric created by the Earth with a post-Newtonian expansion of the metric utilized since the Earth's gravitational field is weak. This post-Newtonian expansion was parameterized such that any effects beyond GR could be investigated. Relativistic effects that were studied include non-linear terms, gravity from the atom's kinetic energy, and the falling of light. The non-linear and velocity dependent effects were found to be measurable with an effective strength of $10^{-15}g$, and it was argued that such small accelerations could still be observable by implementing particular setups such that these relativistic effects can be isolated from the total phase shift. For example, magnetic shielding, a rotation servo to null the Earth's rotation rate, strategically placed masses, and multiple atom interferometers in different configurations could be employed. Furthermore, with advancements such as using entangled states and increasing the length of atom interferometers, it was argued that it would be possible to improve the precision by several orders of magnitude and exceed that of present astrophysical tests of GWs. In \cite{PhysRevLett.98.111102}, other metrics were also assumed, such as those created by a rotating planet and the expansion of the Universe, to determine if additional effects could be measurable (e.g.\ the Lense-Thirring effect, which was also discussed in \cite{Jentsch2004}). Using atom interferometry to test GR would, in principle, demonstrate relativistic effects on quantum properties since they utilize quantum coherence. However, atom interferometers could also be used to illustrate how GR affects quantum properties in a rather different setting: in \cite{Zych2011} an atom interferometer experiment was proposed where time dilation induced by different gravitational potentials in the two arms of the experiment should, in theory, lead to a loss in visibility of the quantum interference pattern for the two paths. What makes this experiment unlike standard atom interferometer setups exploring gravity is that an intrinsic time-evolving degree of freedom of the matter-wave is used as a clock \cite{Zych2011,Sinha2011}, making time a `which path' witness. There must, therefore, be a loss in the contrast of quantum interference due to Bohr's complementarity principle, leading to an interesting interplay between spatial and temporal degrees of freedom in the interference process. A proof-of-principle experiment was carried out for this type of proposal last year \cite{Margalit1205}. This experiment consisted of a $^{87}\mathrm{Rb}$ BEC where the $\mathrm{mF} = 1$ and $\mathrm{mF} = 2$ sublevels of the $\mathrm{F} = 2$ hyperfine state were used for the clock. This clock ticks too slowly to observe time dilation and instead a vertical magnetic-field gradient is used to simulate a gravitational field by driving the clocks out of phase. As anticipated, when the clocks are made to tick at different rates, there is a loss in the visibility of the interference pattern. To test GR, however, certain hurdles will need to be overcome \cite{Arndt1168}. Once this is achieved it would allow for experiments that are able to explore certain aspects of the interplay of GR and QM, such as the differing roles of time in the two theories, and if gravity has any role in the transference from the quantum to the classical world \cite{Pikovski2015}. An optical version of this type of experiment has also been proposed where a single photon is used rather than an atom, and the function of the `clock' is given by the photon's position along the interferometer's arm \cite{Zych2012}. Then, if the difference in the time dilations is comparable with the photon's coherence time, there would also be a loss in the visibility of the quantum interference brought about by the different paths. An advantage that this scheme has over using an atom interferometer is that even the measurement of the gravitationally induced phase shift would be of relevance since Newtonian gravity should not couple to a strictly massless system. Note that all of these proposals use a framework of non-relativistic QM evolving via the Schr\"{o}dinger equation but with time, space, and any external gravitational fields displaying properties of GR. For example, an atom would be described as a quantum system that evolves via the Schr\"{o}dinger equation (and is not considered to be an excitation of a quantum field) but with the temporal variable that enters into the Schr\"{o}dinger equation undergoing time dilation due to an external non-uniform gravitational field. This fundamentally differs to the proposals that are outlined in Sections \ref{sec:corrections}-\ref{sec:RQTechnology} which use the framework of QFTCS and can consider extended rather than point-like systems. Although tests that can distinguish GR from Newtonian gravity have not so far been carried out with atom interferometers, these devices have been used to test the Equivalence Principle (EP) \cite{Fray2009,PhysRevA.88.043615,PhysRevLett.112.203002,PhysRevLett.115.013004}. These have so far been laboratory-based investigations but space missions with significantly improved precision have also been proposed. For example, the STE-QUEST satellite mission, although not not ultimately selected by the European Space Agency (ESA), was designed to test for the universality of free fall of matter waves by comparing the trajectory of two Bose-Einstein condensates of $^{85}\mathrm{Rb}$ and $^{87}\mathrm{Rb}$ \cite{Altschul2015501}; and the QTEST (Quantum Test of the Equivalence principle and Space Time) mission has been designed for the International Space Station (ISS) and will use two rubidium isotope gases with a precision that is two orders of magnitude superior to the current limit on EP violations, and six orders of magnitude better than similar quantum experiments demonstrated in laboratories \cite{1367-2630-18-2-025018}. \subsection{Gravitational Wave Detectors Using Quantum Systems} \label{sec:GWDetectors} GWs were finally discovered by LIGO earlier this year after decades of experimental work carried out by more than a thousand scientists and engineers \cite{PhysRevLett.116.061102}. The GWs were detected in the interference pattern created by a laser interferometer that used a power-recycled Michelson interferometer with Gires-Tournois etalon arms of 4\,km length. The device is currently sensitive enough to be able to detect a change in the distance between the solar system and the nearest star to just the thickness of a human hair. However, plans are currently under way to upgrade the device to further improve the precision. This will be made possible by, for example, exploiting quantum properties such as squeezing the laser light \cite{AasiJ.2013,Oelker:14}. In this case a quantum system would be used to probe purely relativistic effects with breathtaking accuracy. Apart from LIGO there are many other schemes designed to measure GWs. Typically these either employ large optical interferometers similar to LIGO, or follow the pioneering experiments of Weber by utilising large metal (Weber) bars \cite{PhysRevLett.18.498}. In the past few years there have also been proposals to use atom interferometers for the detection of GWs For example, very recently the group of P. Bouyer has suggested using a chain of atom interferometer based gradiometers for the detection of GWs with frequencies between 0.3 - 3\,Hz \cite{PhysRevD.93.021101}. This particular regime has so far been inaccessible to earth-based GW detectors due to the influence of fluctuations in the terrestrial gravitational field, the so-called Newtonian noise (NN). The suggested experiment overcomes this noise by utilising an array of atom interferometers in an appropriate configuration such that the noise can be rejected and the GW signal can be extracted by averaging over several realizations of the NN. The separation chosen between the individual atom interferometers determines the Newtonian noise rejection efficiency. For a baseline length of 16.3\,km, 80 gradiometers, and separations of $\delta = 200$\,m, they predict an optimum sensitivity of $3\times 10^{-23} /\sqrt{\mathrm{Hz}}$ for a frequency of 2\,Hz. There have also been proposals to use atom interferometers in space for detecting GWs \cite{PhysRevLett.110.171102,2015arXiv150106797H}. For example, the proposal in \cite{2015arXiv150106797H} positions two light-pulse atom interferometers in separated spacecrafts with the relative acceleration measured using a Mach-Zehnder type configuration. The interferometers are operated with local lasers, which are phase-stabilized to a third laser beam linking the two spacecrafts. With separations of two spacecrafts on the order of $10^6$\,m, a passing GW would then affect the laser beam linking the two spacecrafts to a measurable level by creating a relative phase-shift between the two light pulse atom-interferometers. In addition to atom interferometers, theoretical and experimental progress has also been made in developing superconducting microwave cavities for the detection of GWs. The Microwave Apparatus for Gravitational Waves Observation (MAGO) is based on the concept that a GW could induce an energy transfer between two levels of an electromagnetic resonator \cite{MAGO2005}, where the two levels are obtained in this case by coupling two identical high frequency spherical superconducting cavities. The whole setup is only of the order of a metre long and works in the frequency range $10^3$-$10^4$\,Hz, offering a relatively cheap proposal to investigate the high frequency ($f \gtrsim 4 \times 10^3$\,Hz) GW spectrum. \subsection{Massive Quantum Systems} \label{sec:Massive} The previous sections reviewed quantum experiments that involve macroscopic distances such that relativistic effects from the Earth's gravitational field on quantum properties are becoming detectable. For example, in Section \ref{sec:LongRange} we discussed proposals to distribute entanglement between Earth and satellite based stations and, in Section \ref{sec:QMClocks}, we reviewed how quantum clocks are reaching a precision such that relativistic effects could, in principle, be detected over macroscopic distances of the order of centimeters. With further developments, these experiments will effectively be able to probe low-energy consequences of quantum gravity where matter is quantized but the gravitational field in which they move is, to a very good approximation, described by GR. This regime is expected to be well-described by QTFCS and so, if observed effects are not in agreement with this theory's predictions, then this would challenge our current perceptions of gravity at the quantum scale. So far we've only been able to test how Newtonian gravity affects quantum systems, and this has been in agreement with our expectations \cite{PhysRevLett.34.1472,Peters1999}. This approach to investigating quantum gravity in the lab is in contrast to that where one would attempt to probe microscopic (Planck length) effects of gravity by, for example, sending elementary quantum particles to Planck scale energies. Instead, rather than taking gravity to microscopic regimes where the quantum world dominates, the experiments reviewed in the previous sections are bringing quantum systems to our macroscopic world where gravity dominates. In these experiments, quantum systems are brought to length scales where the effects from Earth's gravitational field are enhanced.\footnote{Even the quantum clock experiments of Section \ref{sec:QMClocks} are working at macroscopic scales but the length scales (cms) are much smaller than those of the experiments in Section \ref{sec:LongRange} due to their precision.} However, another way to enhance gravitational effects is to increase the rest mass of the quantum system. One could then, in principle, measure the gravitational field generated by a quantum system in the lab. In particular, this would enable an experiment to measure the gravitational field that is generated by a quantum system in a spatial superposition. From a quantum gravity point of view this should create a superposition of gravitational fields so that a nearby quantum system would be put into a superposition of motions \cite{DeWitt2011}. Measuring this system would, therefore, inform us about a quantum theory of gravity. In particular, it could rule out theories in which gravity is predicted to be fundamentally classical and not quantum, since, in this case, the second quantum system would not be placed into a superposition of motions. The notion that gravity is fundamentally classical, or emergent, has been growing in popularity in recent years with proponents pointing to the fact that the quantization procedure that has been successfully applied to the other forces cannot be straightforwardly applied to GR. Furthermore, it is argued that, perhaps because gravity is not really a force according to GR but instead a manifestation of the curvature of spacetime, or perhaps because it is inherently non-linear in contrast to quantum theory and electromagnetism, no theory of quantum gravity exists in nature. Such a fundamental view of gravity where matter is quantized but gravity remains classical cannot be described by QFTCS since this theory neglects the gravitational field generated by a quantum system. Instead the most natural option would be to extend QFTCS so that the gravitational field depends on the expectation value of the energy-momentum tensor of the quantum state. That is, QFTCS would be extended with the semiclassical Einstein equations, which is a theory of semiclassical gravity that is usually considered to be a possible effective theory of quantum gravity at low-energies rather than a fundamental description of gravity. Since the classical gravitational field depends on the wavefunction of a quantum system in this theory, by taking on a more fundamental nature, the theory would require the wavefunction to be interpreted as a real object and the classical gravitational field to be non-continuous \cite{DeWitt2011}. It is also potentially inconsistent with observation within a certain interpretation of quantum theory \cite{PhysRevLett.47.979} and plagued by superluminal signalling \cite{Pearle1996}, although this might be avoided if it can be combined with a mechanism of gravitationally induced collapse of the wavefunction \cite{Kibble1981,Pearle1996}. By measuring the gravitational field of a quantum system in a spatial superposition one should be able to rule out this semiclassical theory of gravity as a fundamental description of gravity interacting with the quantum world. Unfortunately, performing this experiment is extremely challenging since, on the one hand, the gravitational field of small masses is difficult to detect and, on the other hand, the larger the mass of the system the more difficult it is to prepare in a spatial superposition. However, there has been significant experimental progress on both sides of this problem in recent years, particularity with increasing the mass of systems in a superposition of states. The current mass record for an object placed in a spatial quantum superposition over distances comparable to its size is 10,000\,AMU, which was demonstrated in macromolecule interferometry \cite{C3CP51500A,Cotter2015}. There has also been considerable interest in recent years in whether the use of levitated quantum nano-mechanical oscillators could significantly improve this mass record \cite{PhysRevLett.107.020405,PhysRevA.84.052121,Bateman2013,2016arXiv160301553P}. Quantum objects with masses as large as $10^{11}$ and $10^{13}$ AMU have been prepared but so far the delocalizations achieved have been much smaller than their size \cite{OConnell2010,Teufel2011,Chan2011,RevModPhys.86.1391}. However, proposals exist to significantly extend the delocalization of such systems. For example, in \cite{2016arXiv160301553P} it is argued that, in principle, a micron-sized superconducting sphere of mass $10^{13}$ AMU could be prepared in a spatial superposition of the order of half a micrometer. A principle aim of all these experiments investigating massive quantum systems is to determine if QM can be taken to macroscopic scales or whether it breaks down at some point due to, for example, a fundamental objective modification that results in a non-unitary evolution of the system and an effective collapse of the wavefunction. In fact it has been suggested that such a process could be required for gravity to be reconciled with QM \cite{FeynmanLecturesGravity,Karolyhazy1966,PhysRevA.40.1165,Penrose1996}, with motivation coming from, for instance, the non-linearity of GR or the potential granularity of spacetime. In particular, QFTCS with the semiclassical Einstein equations, and its non-relativistic counterpart the Schr\"{o}dinger-Newton equation, have inspired gravitationally induced collapse mechanisms \cite{DIOSI1984199,Penrose1996,Penrose1988,Penrose2014}. More quantum gravity-like scenarios have also been suggested, such as predictions that the wavefunction cannot be sustained in a superposition if the gravitational self-energy of the difference between the states is greater than the Planck energy \cite{Penrose1996}, or if gravitational fluctuations from granularity of spacetime or the cosmic micro-wave background may be responsible \cite{PhysRevLett.111.021302}. Furthermore, low-energy QM in the presence of the Earth's gravitational field, but with no additional extensions, has been considered, with an inherent decoherence process originating from time dilation \cite{Pikovski2015}. It is possible that micro-mechanical devices could also help with the other side of the experimental challenge: measuring the gravitational field of very small masses \cite{2015arXiv150705733B,Jonas2016}. In particular, in \cite{Jonas2016} a proof-of-principle experiment was outlined where a micro-mechanical device is resonantly driven by the gravitational field generated by a nearby oscillating source mass of just a few grams. This source mass would be around three orders of magnitude smaller than what has been measured so far. However, although this would represent substantial progress, there is still some way to go before the mass scale begins to close in on what can be put into a superposition. Therefore, a top-down approach has been taken and the initial objective of this mechanical setup is to measure Newton's constant $G$.\footnote{A levitation version of this experiment using two cold superconducting spheres moving along parallel magnetic waveguides has also been considered in \cite{2016arXiv160301553P}} This constant currently has the greatest uncertainty of all the fundamental constants with different groups obtaining values that are outside each other's error bars. A revolutionary new way of measuring $G$ may, therefore, provide information on why the measurements differ so wildly and enable better characterization of the systematic errors in these measurements. Although the objective of this experimental approach is to measure effects that can be accounted for by, at first classical, and eventually quantum, Newtonian gravity, the incredible precision of these setups, and their expected rapid progress, potentially opens up the possibility to measure \textit{relativistic} effects of gravity. So far GR has only been tested with astronomical source masses, such as the Earth and far-away stars and galaxies, whose motion we have no control over. However, laboratory based experiments would provide completely new tests of GR since they would offer control over the motion and properties of the source mass. By further using quantum systems as test masses, one might then be able to measure relativistic effects on certain quantum properties in a highly controlled setting. \subsection{Quantum Experiments Probing the Dynamical Casimir Effect} \label{sec:DCE} If the boundary conditions, dispersion law, or background of a quantum field are quickly varied in time such that the system is unable to adiabatically follow the instantaneous ground state, then correlated pairs of excitations are created out of the vacuum state. This is the DCE \cite{MooreDCE,Fulling393}, which is a clear relativistic effect and is typically described in terms of the production of photons from the electromagnetic vacuum between two mirrors when one of the mirrors undergoes a rapid acceleration. This effect has received numerous theoretical studies since its incarnation but it has only recently received experimental tests This is principally because, in its typical formulation, the rate of photon production is only non-negligible when the acceleration is extremely large, which makes the use of massive mirrors particularly challenging \cite{PhysRevLett.96.200402,refId0}. However, the DCE is not just restricted to this setup of moving mirrors, and this has led to a number of alternative experimental proposals. In 2011, the DCE was observed for the first time by modulating the electrical properties of a cavity \cite{Wilson2011}. The system consisted of a coplanar waveguide (CPW) terminated by a superconducting quantum interference device (SQUID), and the boundary conditions were rapidly changed by modulating the inductance of the SQUID. The changing inductance can be described as a change in the electrical length of the transmission line and provides the same time-dependent boundary condition as the idealized moving mirror \cite{Fulling393,PhysRevLett.77.615}. The effective boundary can be changed rapidly enough in this case such that photon production from the vacuum is experimentally detectable. In the same year, the DCE was also demonstrated using a Josephson metamaterial consisting of an array of 250 SQUIDs embedded in a microwave cavity \cite{Lahteenmaki12032013,2014arXiv1401.7875L}. In this setup the background in which the field propagates was quickly changed in time by periodically changing the index of refraction, resulting in the generation of quantum-correlated photons from the vacuum. This experiment and that of \cite{Wilson2011} have demonstrated the potential power of utilising relativistic effects in quantum information tasks, which is discussed further in Section \ref{sec:RQTechnology}. However, in order to use these effects for quantum computing, more complex states need to be generated \cite{2015arXiv151205561L}. Recently, a step towards this has been performed by generating coherence as well as squeezing correlations in tripartite states by double parametric pumping of a superconducting microwave cavity in the ground state \cite{2015arXiv151205561L}. Furthermore, in \cite{Bruschi2016} continuous variable Gaussian cluster states where considered to be generated by simulating relativistic motion in superconducting circuits. Proposals for simulating the DCE in other systems have also considered. In particular, an acoustic analogue of the DCE was investigated in a BEC but the temperature was too high to observe quantum effects \cite{PhysRevLett.109.220401}. As well as paving the way for quantum information tasks based on the DCE and similar processes, these experiments have also demonstrated the potential of SQUIDs and BECs for simulating effects of curved spacetime on quantum properties since the equivalence principle links accelerations and gravity. Proposals for experiments that simulate QFTCS effects in this way are discussed further in Section \ref{sec:corrections}. \section{Quantum Field Theory in Curved Spacetime} \label{sec:QFTCS} In this section we briefly review QFTCS and introduce the motivating factors behind using this framework to analyse experiments that are approaching relativistic regimes, such as those reviewed in Section \ref{sec:QMExpsRelativiticRegimes}. \subsection{Background} Quantum Field Theory (QFT) is currently our best attempt at merging special relativity and quantum physics into a coherent framework, and QFTCS represents the first step in extending this highly successful theory to curved spacetime \cite{Birrell:Davies:1984}. In QFTCS, matter obeys QFT but the spacetime in which the quantum field of matter propagates is classical and is not affected by it. That is, spacetime is taken to obey the rules of GR but with its curvature pre-assumed and not influenced by quantum matter, whereas matter obeys QFT but is influenced by the curvature of the classical spacetime. This theory is expected to offer an effective description of the interplay of quantum physics and GR at low-energies i.e.\ below the Planck scale, and is therefore a limiting case of quantum gravity. Predictions of this theory, such as the Hawking effect \cite{Hawking:1974,Hawking1975} and particle creation from an expanding Universe \cite{PhysRev.183.1057,PhysRevD.3.346}, are among the most dazzling and challenging of modern physics, and in the past few decades an overwhelming amount of research has been dedicated to understanding how to demonstrate these predictions. This has principally included astrophysical and cosmological studies but there has recently been a growing interest in complementing these studies with laboratory based setups. As yet there have been no direct measurements of QFTCS but quantum experiments operating at relativistic gravity regimes offer hope that such tests could be realized in the near future. \subsection{Motivation} The quantum experiments that were reviewed in Section \ref{sec:QMExpsRelativiticRegimes}, with the exception of those in Section \ref{sec:DCE}, are all based on non-relativistic QM. That is, their dynamics are described by the Schr\"{o}dinger equation, which is inherently non-relativistic. However, as these experiments approach relativistic regimes, it will be appropriate to describe these systems in terms of QFT and, as relativistic gravity becomes relevant, in terms of QFTCS. Experimental signatures of QFTCS will then enable us to learn about the effects of gravity and motion on quantum resources, such as entanglement, at low-energies. From this we can also formulate predictions about how the performance and precision of future technologies will be modified by relativistic effects. Such effects will need to be corrected for or new methods must be found to minimize them. Recently there have been a number of theoretical studies that have analysed how the notion of relativistic gravity can affect the performance of certain quantum technologies. In particular, corrections due to relativistic effects have been analysed using QFTCS for quantum technological systems that involve long-range quantum communication protocols, quantum teleportation, and quantum clocks. Section \ref{sec:corrections} reviews these recent theoretical studies. \subsection{QFTCS in Experiments and Technology} Observing influences of QFTCS effects on quantum technologies would provide the first measurements of QFTCS and would thus give credence to effects such as Hawking radiation. As well as providing corrections to existing non-relativistic protocol designs, our improved understanding of these effects could also open up the possibility for developing new technologies that are not only compatible with the notion of spacetime but also directly exploit relativistic effects to improve their capabilities. Examples of such \textit{relativistic} quantum technologies have been developed by applying Quantum Information Theory (QIT) techniques to QFTCS. These proposed technological devices include an accelerometer; a device that can measure gravitational properties of the Earth; and a GW detector. Section \ref{sec:RQTechnology} is dedicated to reviewing these proposed relativistic quantum devices. These new spacetime probes could also be used to explore the overlap of quantum physics and GR, potentially providing experimental insights into quantum gravity. A significant advantage that these experiments offer over astrophysical and cosmology searches for signatures of quantum gravity is that they would be based in a laboratory, providing a controlled setting and repeatability. Observations of QFTCS effects in these laboratory-based experiments would also offer direct tests of QFTCS in contrast to any astrophysical or cosmological studies as well as analogue gravity experiments where only analogue effects can be seen \cite{PhysRevLett.46.1351}. On the other hand, any violation of QFTCS would offer a tantalising signature of the need for a radically new approach to quantum gravity. \section{Relativistic Effects of Gravity on Quantum Properties} \label{sec:corrections} In this section we review recent studies that have utilized a QFTCS framework to show that the performance of a range of existing quantum technologies will be modified by relativistic effects of gravity. Such quantum technologies include long-distance quantum communication protocols that use and don't use entanglement, as well as quantum clocks. These are all reviewed in Sections \ref{sec:GAffectsEntanglement}-\ref{sec:GAffectsQMClocks}. \subsection{Gravity and Motion Affect Entanglement} \label{sec:GAffectsEntanglement} In \cite{PhysRevD.85.061701}, a quantum information experiment was theorized that involves the entanglement of two scalar quantum fields. Each scalar field is placed in a cavity and the full system is initially prepared in the maximally entangled Bell state $|\psi\rangle = (|0\rangle |0\rangle + |1\rangle_k |1\rangle_k) / \sqrt{2}$ where $|0\rangle$ denotes the vacuum and $|1\rangle_k$ denotes the one-particle state of mode $k$. After the experiment is prepared, one of the cavities undergoes a non-uniform acceleration for a certain period of time, and this period of non-uniform acceleration was found to cause the entanglement between the cavities to degrade. The origin of this loss in entanglement is in fact the same physical mechanism as the particle generation in the dynamical Casimir and Unruh-Hawking radiation effects. That is, it is a purely QFTCS effect. This theoretical experiment illustrates how quantum information protocols that involve entanglement, such as quantum teleportation, can be affected by non-uniform accelerations\footnote{For uniform accelerations see e.g.\ \cite{PhysRevLett.91.180404,Adesso2012}} and, in principle, from the equivalence principle, by changing gravitational fields. Scenarios of this type are, therefore, relevant to the types of experiments reviewed in Section \ref{sec:LongRange} where the quantum communication and teleportation protocols take place over large distances where the gravitational field of the Earth is non-constant. It is also relevant to the type of experiments discussed in Section \ref{sec:GMetrology} that are proposed to measure gravitational effects using entangled systems. Although presently unobservable in these quantum technology experiments, as they become more precise, and as the distances involved increase, this degradation in entanglement will become more relevant to their operation. However, these quantum experiments are not designed to look for such effects. Instead they are devised to advance quantum technology. Therefore, it is possible that, if experiments are purposely designed such that these QFTCS effects are enhanced, degradation in entanglement could be observed for non-uniform accelerations or gravitational fields using current technology. Such an experiment was proposed in \cite{Bruschi:Sabin:2014} where it was shown that, by entangling the phononic modes of two BECs that are placed in two separate satellites, the entanglement would be degraded to an observable degree if one of the satellites subsequently moved to a new orbit. An illustration of this experiment is presented in Figure \ref{DishwahserTabletsLabel}. The reason that this effect is predicted to be currently observable using BECs and not, for example, with a cavity of light, is that the speed of propagation of phonons of BECs is considerably smaller than that of light \cite{Bruschi:Sabin:2014} The effects of relativistic motion on quantum teleportation can also be simulated in the laboratory using experiments based on superconducting resonators with tunable boundary conditions \cite{PhysRevLett.110.113602}. The superconducting experiments reviewed in Section \ref{sec:DCE} proved the relation between a single SQUID and a relativistically moving mirror. To simulate a relativistically moving cavity, one instead has to use two SQUIDS \cite{PhysRevLett.110.113602}. The experimental platform implemented in this case consists of arrays of hundreds of SQUIDs, and the refractive index for the microwave photons can be controlled externally by bias magnetic fields applied to the SQUID loops. Therefore, with appropriate sample design, the effective spacetime metric of the photonic excitations can be modulated either locally (below the wavelength size) or globally. By simulating accelerations of a quantum field cavity, and thus gravitational fields, it was shown that the relativistic effects on a quantum teleportation protocol would be sizeable for realistic experimental parameters. \begin{figure}[t!] \centering \includegraphics[width=0.3\textwidth]{Figure1} \label{DishwahserTabletsLabel} \vspace{0.25cm} \caption{\small Experiment proposed in \cite{Bruschi:Sabin:2014}. Two BECs inside separate satellites are entangled while both are in the same circular LEO orbit. One of them then undergoes an acceleration for a finite time in order to change to a different circular orbit, which translates in a change of gravitational field felt by the satellite during this process. The entanglement between the BECs is found to be degraded to an observable level.} \end{figure} \subsection{Gravity and Motion Affect Quantum Communication Protocols} \label{sec:GAffectsCommunication} Experiments and proposals were reviewed in Section \ref{sec:LongRange} that send pulses of light from the Earth to a satellite in a quantum communication protocol that could one day be used for a global quantum communications network. Treating this protocol within a QFTCS framework, it has been shown that the photons, which are never monochromatic in practice and so are modelled as peaked wavepackets, are red-shifted and thus lose energy as they travel through the Earth's non-uniform gravitational field \cite{Bruschi:Ralph:2014}. The satellite will, therefore, receive a wavepacket with a different frequency distribution to the one prepared and sent from the Earth. That is, as illustrated in Figure \ref{Communication}, the quantum communication scheme will differ from one performed in flat spacetime. In \cite{PhysRevD.93.065008}, these relativistic effects were also taken into account in a scheme for near-Earth orbit satellite-based quantum clock synchronization \subsection{Gravity and Motion Affect the Precision of Quantum Clocks} \label{sec:GAffectsQMClocks} As reviewed in Section \ref{sec:QMClocks}, clocks that are based on the optical transitions of ions or neutral atoms in optical lattices are achieving unprecedented levels of precision and accuracy. Current designs of quantum clocks are formulated within the framework of non-relativistic QM, and the measured relativistic effects such as time dilation can be explained by treating the clocks as point-like classical systems. However, according to QFTCS, as clocks that exploit quantum properties, such as entanglement, become more precise then relativistic effects on quantum properties will need to be taken into account, and such modifications cannot, in practice, be accounted for by purely classical or non-relativistic quantum frameworks. This was illustrated in \cite{Lindkvist2015}, which considered a quantum field description of a quantum clock. In this case a single mode of a scalar quantum field constrained to a cavity was used to model a clock, with the phase of the mode used as the pointer of the clock.\footnote{A more rigorous description of such a QFT clock is expected soon where the measurement readout of time will be taken into account.} This fundamental model is both necessarily quantum and relativistic. That is, all quantities are compatible with Lorentz invariance and the notions of probability. Furthermore, its motion through spacetime can be properly described. For example, for uniform acceleration it was found that the rate of the cavity clock would be modified. This is due to the fact that, unlike previous studies which assumed the clock to be point-like, in this approach the clock has a length and different points in the cavity experience different proper times. This effect can be understood classically. However, for changes in acceleration there is an additional phase shift due to mode-mixing and particle creation, which affects the precision of the clock and is a purely QFTCS effect. Using the equivalence principle it was argued that the precision of the clock should also be affected by non-uniform gravitational fields. Since in realistic settings a gravitational field is never stationary due to local effects such as seismic activity, this loss in precision would have to be accounted for in an ultra-precise quantum clock. In \cite{Lindkvist2015} it was shown that these results could, in principle, be simulated in the laboratory using superconducting quantum circuits. Furthermore, by implementing two clocks with superconducting circuits, one would also be able to simulate the twin paradox scenario with velocities as large as a few percent of the speed of light \cite{PhysRevA.90.052113}. Such velocities would allow one to investigate QFTCS effects, and theoretical results indicate that the time dilation in the paradox is altered due to quantum particle creation and for different cavity lengths \cite{PhysRevA.90.052113}. \begin{figure}[t!] \begin{center} \resizebox*{7cm}{!}{\includegraphics{Figure2}}\hspace{5pt} \caption{\small A quantum communication protocol performed between the Earth and a satellite. Here Alice, located on Earth, prepares and sends photons to Bob who is located on a satellite. The photon that is created by Alice has certain characteristics, such as peak frequency and bandwidth, that change once the photon is received by Bob since he at a different gravitational potential to Alice. Figure taken from \cite{Bruschi:Ralph:2014}. } \label{Communication} \end{center} \end{figure} \section{Using Quantum Properties to Measure Relativistic Effects \\ of Gravity} \label{sec:RQTechnology} The previous section considered how relativistic effects of gravity can modify current quantum technologies such that their performance is degraded, requiring corrections to be made to their predicted outcomes. In this section we instead look at the potential benefits of the relativistic effects. An immediate possibility is to exploit the observations of relativistic effects on quantum properties to measure certain aspects of spacetime. This notion has culminated in the creation of a new research field, relativistic quantum metrology, which investigates how devices based on QFTCS can be used to study the relativistic nature of spacetime and how these new quantum devices can enhance measurements of certain properties of spacetime. \subsection{Relativistic Quantum Metrology} \label{sec:RQMetrology} In quantum metrology, quantum properties are exploited to achieve greater statistical precision than purely classical strategies when determining a parameter of the system that is not an observable \cite{Braunstein:Caves:1994}. Examples of such parameters include temperature, time, acceleration, and coupling strengths. As with any measurement strategy, we can divide the process into the following phases: input of the initial state, evolution through a channel, and measurement of the output state. The parameter to be estimated typically controls the evolution of the input state and is encoded in the output state. One then looks for the most optimal measurement strategy achievable such that the error in the estimation process is minimized. In classical physics, the error of a measurement can, in general, scale at most as $1/\sqrt{M N}$ on average, where $N$ is the number of input probes used in each estimation process, and $M$ is the number of times this estimation process is repeated. This scaling is just a consequence of the central limit theorem. However, it has been shown that the `quantumness' of physical states and resources, such as entanglement, can be exploited in order to achieve what is known as the quantum or Heisenberg scaling $1/ (\sqrt{M} N)$ where $N$ is, for example, the number of entangled input probes used in each estimation process, and $M$ is again the number of times this process is repeated \cite{PhysRevLett.77.2352}. There is, therefore, an enhancement by a factor of $\sqrt{N}$ in the quantum case, and the overall scaling is a consequence of the Heisenberg uncertainty relation. This improved scaling can become extremely advantageous when the available number of input probes is high, and provides a signature of genuine quantum effects. Quantum metrology is being investigated in advanced technological proposals aimed at ultra-precise measurements of gravity such as the gravitational potential and the detection of GWs \cite{Jaekel1990,Schnabel2010,Oelker:14}. These systems have been designed using non-relativistic QM and thus utilize non-relativistic quantum properties. However, recently quantum metrology has been applied to the field of QFTCS to create a new line of research `relativistic quantum metrology' that investigates measuring spacetime quantities such as relative distances, proper times and gravitational field strengths by exploiting relativistic effects on quantum systems \cite{PhysRevLett.105.151301, 2011arXiv1108.5220D,PhysRevA.88.052112,Ahmadi:Bruschi:2014:v2,PhysRevA.89.042336}. Excitingly, this has lead to the development of novel `relativistic' quantum devices that, in certain cases, appear to improve upon the precision of their non-relativistic counterparts \cite{Ahmadi:Bruschi:2014:v2,Sabin2014}. Proposed relativistic quantum devices include an accelerometer \cite{Ahmadi:Bruschi:2014:v2}; a GW detector \cite{Sabin2014}; and a device that can measure Schwarzschild properties of the Earth \cite{Bruschi:Datta:2014,Kohlrus2015}, which are all reviewed in the following subsections. Other investigations include how two entangled atoms could be used to detect spacetime curvature through the Casimir-Polder interaction \cite{2016arXiv160507350T}, how entanglement can enhance the precision of the detection of the Unruh effect using accelerated probes \cite{Wang2014,Tian2015,2016arXiv160301122T}, and how the expansion rate of the universe in the Robertson-Walker metric for Dirac fields can be estimated \cite{Wang2015390}. \subsubsection{Measuring Schwarzschild Properties of the Earth} \label{sec:Schwarzschild} Using relativistic quantum metrology techniques, it has been demonstrated that the effects of gravity on propagating wavepackets can be utilized to measure the Schwarzschild radius of the Earth, the angular momentum of the Earth, or the relative distance between the Earth and a satellite \cite{Bruschi:Datta:2014,Kohlrus2015}. In this scheme a wavepacket of light is sent from the Earth to a satellite and the parameters of interest are estimated from comparing the wavepacket's final state to the state of a wavepacket that has not undergone the trajectory. This is made possible because, due to QFTCS effects, the background curvature becomes imprinted in the propagating photon or light pulse. The effects of spacetime on the photon can then be treated as a channel and one is able to employ a relativistic quantum metrology scheme to estimate the desired parameters. A lower bound is obtained on the error of the estimation that depends on the spacetime parameters, the number of times the processes is repeated, and on the squeezing that can be chosen for the initial state. Given the amount of interest in space-based quantum protocols, and the rate of development of the technologies \cite{Dequal:Vallone:2016}, it is conceivable that experiments of this kind will be feasible within the next decade. \subsubsection{An Accelerometer} \label{sec:Accelerometer} In a BEC, phonons propagate on an \textit{effective} metric created by the condensate \cite{Ahmadi:Bruschi:2014:v2}. However, as well as depending on BEC parameters such as condensate density and velocity flows, this effective metric also depends on the real spacetime metric \cite{Fagnocchi2010,Visser2010}. In fact it depends on the real metric in a conformal way such that, if the velocity flows are neglected, the phonons behave like unpolarized photons propagating in a relativistic field but at a highly reduced velocity. In \cite{Ahmadi:Bruschi:2014:v2} this was utilized to demonstrate that, by oscillating the BEC, phonons will be created in a dynamical Casimir-like process. However, unlike for a electromagnetic cavity, the frequencies of oscillations required to create measurable effects are very small, being that of typical phonon frequencies i.e.\ 10-1000\,Hz. By creating a squeezed state of the phonons, allowing the phonons to freely propagate for a period of time, and then measuring the final state, one is able to apply relativistic metrology techniques to obtain an estimate on the non-uniform motion of the cavity. This, therefore, enables the design of a BEC accelerometer, and plans are currently under way to also design a BEC gravimeter using similar principles. Intriguingly, by comparing the accuracy of this relativistic device to the state-of-the-art, an improvement by two orders of magnitude is observed , demonstrating the potential in exploiting relativistic effects on quantum properties. \subsubsection{A Gravitational Wave Detector} \label{sec:RGWDetector} The proposal for the accelerometer reviewed in the previous section used the fact that real spacetime distortions can create phonons of a BEC. From the equivalence principle, it should, in principle, also be possible to use this in the design of a quantum gravimeter and a GW detector. The latter was illustrated in \cite{Sabin2014} where it was shown that GWs will resonate with modes of the phononic field. Since phonons can have frequencies of order 10-1000\,$\mathrm{Hz}$ in BEC experiments, the GWs that could, in principle, be detected would be those with a similar frequency range. Such GWs are predicted to be generated by the merging of binary neutron stars and black holes systems, as well as potentially from continuous sources such as rotating neutron stars or pulsars. The frequency range of 10-1000\,$\mathrm{Hz}$ overlaps with that of LIGO, and initial calculations using relativistic quantum metrology suggest that the strain sensitivity could be at least, in principle, comparable to aLIGO. The detector proposed in \cite{Sabin2014} would also be considerably smaller, cheaper, and simpler to build than current laser interferometers that can detect GWs. Among other benefits, this would enable many experimental groups to employ GW detectors, allowing for better determination of true GW signals through near-simultaneous measurements and precise positioning of the source of the signals. Note that the GW detectors described in Section \ref{sec:GWDetectors} that are also based on BECs are designed using a fundamentally different concept to the GW detector described here, and work in a completely separate frequency regime. These are atom interferometers and make use of non-relativistic QM and phase estimation techniques applied to the condensate atoms such that one can, in principle, detect GWs with frequencies between $10^{-5}$ to $10^{-2}$\,Hz with strain sensitivities of the order of $10^{-18}$\,$\mathrm{Hz}^{-1/2}$. In contrast, the GW detector described here uses state discrimination techniques applied to the phononic excitations of the BEC in a QFTCS description, which, in principle, should allow for strain sensitivities of the order of $10^{-27}$\,$\mathrm{Hz}^{-1/2}$ \cite{Sabin2014}. Furthermore, whereas the frequency range of the GWs detected by the atom interferometers correspond to waves generated by small mass binary systems, the GW detector described here could, theoretically, detect GWs in the kHz regime, which would deepen our understanding of neutron stars by gathering the information necessary to describe their equation of state. This information would further our understanding of the origins, evolution and extent of our universe since it would enable cosmologists to compute distances that are key in the study of the cosmological constant and of dark matter. \section{Conclusion} \label{sec:Summary} Quantum experiments have undergone extraordinary developments in recent years. These experiments are constantly probing and pushing science into new and unknown territories, such as investigating entanglement over terrestrial distances and superpositions over macroscopically sized objects. Excitingly, the constant progress provided by the successful accomplishments of these experiments implies that they are rapidly approaching a regime in fundamental physics that has yet to be explored. This is the regime in which general relativistic effects of gravity will begin to influence quantum properties such as entanglement. The fact that quantum experiments are starting to approach such a regime is most clearly illustrated by the experiments that are attempting to prepare an entangled state between an Earth based station and a satellite for proof-of-principle experiments of a global quantum communications network. Here distances are being used where GR already has to be taken into account in classical technology such as GPS. In this article we have reviewed the current types of quantum experiments that are beginning to approach this relativistic regime, and have emphasized that the most appropriate theory for describing such experiments will be QFTCS. As reviewed in Section \ref{sec:corrections}, recent work that has applied QFTCS to QIT has shown that relativistic effects of gravity can have a detrimental impact on the performance of such quantum devices, requiring corrections to be made in the predicted outcomes of quantum experiments. However, as discussed in Section \ref{sec:RQTechnology}, rather than just having a negative impact, these relativistic effects can also be exploited to design quantum devices that can directly measure spacetime effects. One such promising quantum device is a GW detector that is built from a BEC and operates in the high frequency regime where one expects to see binary black hole and neutron star mergers as well as, in principle, rotating neutron stars and pulsars. Amazingly, this would mean that relativistic effects could be seen in an object the size of just micrometers. As reviewed in Section \ref{sec:RQMetrology}, this GW detector is just one example of how QFTCS can be utilized to develop new microscopic quantum devices capable of probing spacetime. Technology of this kind could, in principle, provide deeper insights into our Universe through gravitational interaction. In summary, we expect to soon be embarking upon a new revolution in physics where we will observe the interplay of the quantum world and GR for the first time. Rather than investigating GR at small distances, which would require huge advancements in technology, this interplay would involve classical GR affecting quantum properties in a laboratory setting. The effects must be predictions of a limiting case of quantum gravity, and QFTCS is currently our best attempt at this. Observing predictions of QFTCS could, therefore, provide guidance for theories of quantum gravity and the microscopic structure of spacetime. \section*{Acknowledgements} We would like to acknowledge Advances in Physics:\hspace{1mm}X, for which an invited review was written that forms a major part of this manuscript. D.E.B. also wishes to acknowledge hospitality from the University of Vienna. \section*{Funding} This project has been supported by EPSRC grants EP/M003019/1 and EP/K023624/1, and by the European Commission grant QuILMI - Quantum Integrated Light Matter Interface (No. 295293). D.E.B., I.F. and R.H. would also like to acknowledge the John Templeton Foundation grant `Leaps in cosmology: gravitational wave detection with quantum systems' (No. 58745). \printbibliography \end{document}
\section{Introduction} \label{intro} Time-resolved (TR) and angle-resolved photoemission (PE) spectroscopy has established as a powerful experimental technique to monitor the femtosecond dynamics of electronic excitations in solid state physics. Applications cover the ultrafast dynamics in image potential states,\cite{GHHRS.1995,FW.1995,EBCFGH.2004,VMR.2004,GNEWW.2015} electron relaxation in metals,\cite{FSTB.1992,PO.1997,SAEMMCG.2004,LLBSGW.2004} semiconductors~\cite{WKFR.2004,SS.2009,Netal.2014,WZR.2015} and more recently topological insulators,~\cite{RGKCH.2014,SYACFKS.2012,WHSSGLJG.2012,CRCZGBBKGP.2012,NOHFMEAABEC.2014,BVLNL.2014} charge transfer processes at solid state interfaces~\cite{GWLMGH.1998,VZ.1999,MYTZ.2008,ZYM.2009,VMT.2011} and in adsorbate on surfaces~\cite{HBSW.1997,Setal.2002,ZGW.2002,OLP.2004,MSMYLBAMK.2008,TY.2005,Aetal.2003}, and the formation and dynamics of excitons.~\cite{WKFR.2004,SS.2009,Z.2015,SRSW.1980,VBBT.2009,DWMRWS.2014} The theoretical description of excitons constitutes the main focus of the present work. \begin{figure}[tbp] \includegraphics*[width=.46\textwidth]{2ppe.pdf} \caption{Schematic description of a TR and angle resolved PE experiment.} \label{expfig} \end{figure} In TR-PE experiments on semiconductors or insulators a {\em pump} pulse excites electrons from the valence band to the conduction band. During the action of the pump the system coherently oscillates between the ground state and the dipole-allowed excited states giving rise to a finite polarization and hence to the emission of electromagnetic waves. Due to the Coulomb attraction between the conduction electrons and the valence holes the excited states may contain bound electron-hole ({\em eh}) pairs or {\em excitons}. If so then the lowest frequency of the time-dependent polarization (or, equivalently, the onset of the photoabsorption spectrum) reduces by an amount given by the exciton binding energy. In this oscillatory regime the system is not in an eigenstate and we say that it contains {\em virtual} excitons.\cite{KKKG.2006} After the pump has died off electrons (holes) remain trapped in the conduction (valence) band and relax toward the conduction band minimum (valence band maximum) because of inelastic scattering, see Fig.~\ref{expfig} for a schematic illustration. The relaxation process typically occurs on a femtosecond timescale\cite{SM.2002,Betal.1995,BC.1997,sm.2015} and the resulting quasi-stationary state is an {\em eh} liquid containing {\em real} excitons, i.e., stationary bound {\em eh} pairs.\cite{KKKG.2006} In this regime we do not have a superposition of ground state and excited states but an {\em admixture} of them (hence the polarization vanishes). The photocurrent of a TR-PE experiment is generated by a {\em probe} pulse which impinges the system in this quasi-stationary state and causes the emission of electrons from the conduction band. Like virtual excitons have an effect on the photoabsorption spectrum so real excitons leave clear fingerprints on the TR-PE spectrum. The photoabsorption spectrum is proportional to the polarization which, in turn, can be calculated from the Fourier transform of the time-dependent electron density $n({\mathbf r},t)$. In the Green's function language $n({\mathbf r},t)$ is given by the off-diagonal (in the basis of Bloch states) {\em equal-time} lesser Green's function $G^{<}(t,t)$. The effects of virtual excitons are therefore encoded in this quantity. It is well known that virtual excitons emerge already when the equation of motion for $G^{<}(t,t)$ is solved at the Hartree-Fock (HF) level. To lowest order in the perturbing field the HF $G^{<}(t,t)$ can alternatively be obtained from the {\em equilibrium} density response function which solves the Bethe-Salpeter equation (BSE) with HF kernel.\cite{Fetterbook,SvLbook,ullrichbooh} In more refined state-of-the-art first-principles calculations the HF kernel is replaced by a Hartree plus screened exchange\cite{H.1965} (HSEX) kernel.\cite{s.1988,SMH.1982,ORR.2002,ARDSO.1998,BSB.1998,RL.1998,PPHS.2011,AGM.2011,PSMS.2015} The theory of excitons in photoabsorption spectra is today very well established. Conceptually different is the TR-PE spectrum since it is proportional to the probability of finding an electron with a certain momentum and energy. In the Green's function language this probability is given by the Fourier transform of the diagonal (in the basis of Bloch states) lesser Green's function $G^{<}(t-t')=G^{<}(t,t')$ (the dependence on the time-difference only is a consequence of the quasi-stationarity of the system). It could be tempting to calculate the quasi-stationary $G^{<}(t-t')$ in the HSEX approximation since the {\em equal-time} HSEX $G^{<}(t,t)$ contains the physics of virtual excitons. However, we anticipate that real excitons do not emerge from HSEX. In fact, at present there exist no first-principles diagrammatic approach to calculate the impact of real excitons on the TR-PE spectrum. The purpose of the present work is to fill this gap. The paper is organized as follows. In Section~\ref{picturesec} we briefly discuss a simple picture of the exciton problem in TR-PE spectroscopy. In Section~\ref{NEQphotocurrentsec} we derive a general formula of the TR photocurrent valid for arbitrary intensities and shapes of the probe field and involving a single time-integral of the lesser Green's function. The inadequacy of the HF, HSEX and GW approximations to $G^{<}(t-t')$ is illustrated in Section~\ref{failuresec}. In Section~\ref{diagtreatsec} we identify the relevant diagrams to calculate the dressed Green's function. We show that the (self-energy) vertex should satisfy a {\em nonequilibrium} Bethe-Salpeter equation (BSE) with a HSEX kernel evaluated at {\em excited} quasiparticle ({\em qp}) Green's functions. In Section~\ref{BSELsec} we generalize the solution of the nonequilibrium BSE of Ref.~\onlinecite{SRFHB.2011} to arbitrary momenta and show how to extract the lesser and greater component of the {\em eh} propagator. This part of the theory is also useful to calculate photoluminescence spectra.\cite{HGB.2000} From the lesser and greater {\em eh} propagators we construct the (self-energy) vertex and subsequently the spectral function, see Section~\ref{Sigma-G-sec}. Taking into account the quasi-stationarity of the system we finally obtain a simple and intuitive expression for the (dressed) lesser Green's function. The proposed treatment is benchmarked in a minimal model with only one valence band and one conduction band. For the case of a single {\em eh} pair the model can be solved analytically and our diagrammatic treatment is shown to be {\em exact}, see Section~\ref{analytic-solution-sec}. In Section~\ref{finite-t-sec} we consider a finite {\em eh} density, discuss possible scenarios and highight some universal features of the excitonic features. A summary of the method and the main conclusions are drawn in Section~\ref{conclusions-sec}. \section{A simple physical picture} \label{picturesec} Let us briefly illustrate a simple physical picture of TR-PE in systems with real excitons.\cite{Z.2015} After absorption of a pump photon the system makes a transition, from the ground state of energy $E_{g}$ to an excited state of energy $E$ characterized by one electron in the conduction band. Subsequently, the conduction electron absorbes a (probe) photon of energy $\omega_{0}$ and it is expelled as a photoelectron of momentum ${\mathbf k}$ and energy $\epsilon_{{\mathbf k}}>0$ (we set the continuum threshold to zero). Energy conservation and conservation of the momentum parallel to the surface imply that $\omega_{0}+E=E^{-}_{{\mathbf k}_{\parallel}}+\epsilon_{{\mathbf k}}$, where $E^{-}_{{\mathbf k}_{\parallel}}$ is the energy of the original system {\em without} a valence electron of momentum ${\mathbf k}_{\parallel}$ and energy $\epsilon_{v{\mathbf k}_{\parallel}}$. Approximating $E^{-}_{{\mathbf k}_{\parallel}}\simeq E_{g}-\epsilon_{v{\mathbf k}_{\parallel}}$ one finds the {\em momentum resolved} photocurrent \begin{equation} I({\mathbf k})\propto \delta(\omega_{0}+E-E_{g}+\epsilon_{v{\mathbf k}_{\parallel}}-\epsilon_{{\mathbf k}}), \label{heupc} \end{equation} from which it follows that the {\em energy-resolved} photocurrent {\em perpendicular} to the surface is \begin{equation} I(\epsilon)\propto \delta(\omega_{0}+E-E_{g}+\epsilon_{v0}-\epsilon). \end{equation} If the {\em eh} pair of the excited state does not bound then $E-E_{g}$ is no smaller than the optical gap $\Delta$ and the photocurrent is nonvanishing for $\epsilon>\omega_{0}+\Delta+\epsilon_{v0}$. If, on the other hand, the {\em eh} pair bounds then the lowest excited state splits off from the continuum by an amount equal to the exciton binding energy $b_{X}$ and the photocurrent is nonvanishing also at the discrete energy values $\epsilon=\omega_{0}+\Delta+\epsilon_{v0}-b_{X}$. Thus, the formation of an exciton manifests as a photocurrent peak below the onset of the continuum. Although this picture captures the qualitative aspects of the problem, it lacks of a quantitative description of the phenomenon. In reality, after the action of the pump pulse the system is not in a pure state characterized by a single {\em eh} pair but in an admixture of excited states with a certain distribution of {\em eh} pairs and the exciton binding energy depends on this distribution in a far from obvious manner. The above picture is also inadequate to determine the proportionality constant in Eq.~(\ref{heupc}), thus preventing a quantitative comparison with the experiment. The failure of the HF or HSEX (or any other {\em qp} for that matter) approximation is also evident. Due to Coulomb attraction with the valence hole the bare conduction electron splits into a conduction {\em qp} of roughly the same energy and a {\em qp} bound to the valence hole. In other words every bare electron, characterized by a well defined energy, is transformed into two {\em qp}'s of different energies. By construction a {\em qp} approximation assigns a single energy to every {\em qp} and it is therefore inadequate to study real excitons in TR-PE. A more technical discussion of this point can be found in Section~\ref{failuresec} while in Section~\ref{diagtreatsec} we propose a diagrammatic solution to the problem. Preliminarly, however, we derive a formula which relates the TR photocurrent to the lesser Green's function. \section{Nonequilibrium Photocurrent} \label{NEQphotocurrentsec} In this Section we derive and discuss the formula for the time-dependent photocurrent induced by a laser pulse impinging on a solid out of equilibrium. By definition the photocurrent of electrons with momentum ${\mathbf k}=({\mathbf k}_{\parallel},k_{\perp})$ is given by the rate of change of the occupation of the time-reversed low-energy electron-diffraction (LEED) state\cite{SKRL.1993,SDCZB.2008,BRPME.2015} with momentum ${\mathbf k}$, i.e., \begin{eqnarray} I({\mathbf k},t)&\equiv& \frac{d}{dt}\langle \hat{f}^{\dag}_{H{\mathbf k}}(t)\hat{f}_{H{\mathbf k}}(t)\rangle \nonumber\\ &=&-i\frac{d}{dt}G^{<}_{f\!f,{\mathbf k}}(t,t), \label{photocurr} \end{eqnarray} where $\hat{f}_{{\mathbf k}}$ annihilates an electron in the LEED state of momementum ${\mathbf k}$ and the subindex $H$ signifies that operators evolve according to the Heisenberg picture in the presence of the pump and probe fields. In the second line of Eq.~(\ref{photocurr}) appears the lesser component of the free-electron Green's function which is defined according to~\cite{SvLbook} \begin{equation} G_{f\!f,{\mathbf k}}(z,z')\equiv \frac{1}{i}\langle\mbox{$\mathcal{T}$}\left\{\hat{f}_{H{\mathbf k}}(z) \hat{f}^{\dag}_{H{\mathbf k}}(z')\right\}\rangle, \label{keldyshg} \end{equation} where $z$ and $z'$ are times on the Keldysh contour and $\mbox{$\mathcal{T}$}$ is the contour ordering operator. Denoting by $\epsilon_{f{\mathbf k}}=k^{2}/2>0$ the free-electron energy, the LEED states are linear combination of Bloch states with energy $\epsilon_{f{\mathbf k}}$.\cite{SDCZB.2008} We refer to Refs.~\onlinecite{CI.1999,SDCT.2004} for the description of an efficient numerical algorithm to calculate these states. We work in the dipole approximation (which is accurate for photon energies below 10 keV) and consider the vector potential of the probe field ${\mathbf A}(t)=\mbox{\boldmath $\eta$}\, a(t)$ parallel to some unit vector $\mbox{\boldmath $\eta$}$. As we are interested in the photocurrent generated by a pulse the function $a(t)$ vanishes for $t\to\pm\infty$. Let $D_{\nu{\mathbf k}}$ be the matrix element of $({\mathbf p}\cdot\mbox{\boldmath $\eta$})/c$ between a LEED state of momentum ${\mathbf k}=({\mathbf k}_{\parallel},k_{\perp})$ and a bound Bloch state (of energy below zero) with band-index $\nu$ and parallel momentum ${\mathbf k}_{\parallel}$ (parallel momentum is conserved). Neglecting the Coulomb interaction between LEED electrons and bound electrons in the solid, the equations of motion for $G_{f\!f,{\mathbf k}}$ read \begin{eqnarray} \left[i\frac{d}{dz}-\epsilon_{f{\mathbf k}}\right]\!G_{f\!f,{\mathbf k}}(z,z')- \sum_{\nu}D^{\ast}_{\nu{\mathbf k}}a(z)G_{\nu f,{\mathbf k}}(z,z') \nonumber\\ =\delta(z,z'), \label{eom1} \end{eqnarray} \begin{eqnarray} \left[-i\frac{d}{dz'}-\epsilon_{f{\mathbf k}}\right]\!G_{f\!f,{\mathbf k}}(z,z')- \sum_{\nu}D_{\nu{\mathbf k}}a(z')G_{f\nu,{\mathbf k}}(z,z') \nonumber\\=\delta(z,z'), \label{eom2} \end{eqnarray} where $G_{f\nu,{\mathbf k}}(z,z')$ and $G_{\nu f,{\mathbf k}}(z,z')$ are defined {\em mutatis mutandis} as in Eq.~(\ref{keldyshg}). Equations~(\ref{eom1}-\ref{eom2}) and all subsequent equations of motion have to be solved with Kubo-Martin-Schwinger boundary conditions.\cite{SvLbook} Setting $z=t_{-}$ and $z'=t_{+}$ and subtracting Eq.~(\ref{eom2}) from Eq.~(\ref{eom1}) we find \begin{equation} i\frac{d}{dt}G^{<}_{f\!f,{\mathbf k}}(t,t)=-2\,{\rm Re}\left[ \sum_{\nu}D_{\nu{\mathbf k}}a(t)G^{<}_{f\nu,{\mathbf k}}(t,t)\right]. \label{g<ff} \end{equation} We can express the right hand side of Eq.~(\ref{g<ff}) in terms of the Green's function $G_{\nu'\nu,{\mathbf k}_{\parallel}}(z,z')\equiv \frac{1}{i}\langle\mbox{$\mathcal{T}$}\left\{\hat{c}_{\nu {\mathbf k}_{\parallel}}(z) \hat{c}^{\dag}_{\nu' {\mathbf k}_{\parallel}}(z')\right\}\rangle$ with both indices in the bound Bloch sector. The equation of motion for $G_{f\nu,{\mathbf k}}$ reads \begin{equation} \left[i\frac{d}{dz}-\epsilon_{f{\mathbf k}}\right]G_{f\nu,{\mathbf k}}(z,z')- \sum_{\nu'}D^{\ast}_{\nu'{\mathbf k}}a(z)G_{\nu'\nu,{\mathbf k}_{\parallel}}(z,z')=0. \label{eom3} \end{equation} If we define the unperturbed (probe-free) Green's function as the solution of \begin{equation} \left[i\frac{d}{dz}-\epsilon_{f{\mathbf k}}\right]g_{f\!f,{\mathbf k}}(z,z')=\delta(z,z'), \nonumber \end{equation} then Eq.~(\ref{eom3}) can be solved for $G_{f\nu,{\mathbf k}}$ yielding \begin{equation} G_{f\nu,{\mathbf k}}(z,z')=\sum_{\nu'}\int \!\!d\bar{z}\,g_{f\!f,{\mathbf k}}(z,\bar{z})\, D^{\ast}_{\nu'{\mathbf k}}a(\bar{z})G_{\nu'\nu,{\mathbf k}_{\parallel}}(\bar{z},z'). \nonumber \end{equation} Substituting this result into Eq.~(\ref{g<ff}) we see that it is convenient to define the {\em embedding self-energy} \begin{equation} \Sigma_{\nu\n',{\mathbf k}}^{\rm emb}(z,z')\equiv D_{\nu{\mathbf k}}a(z)g_{f\!f,{\mathbf k}}(z,z')a(z')D^{\ast}_{\nu'{\mathbf k}}. \label{embse} \end{equation} The embedding self-energy accounts for the fact that electrons can escape from the solid.\cite{PUvLS.2015,SBP.2016,PUvLS.2016} A similar quantity is used in the context of quantum transport where the electrons of a molecular junction can move in and out of the junction by tunneling from and to the leads.\cite{MW.1992,JWM.1994,SA.2004} The complex absorbing potential in quantum mechanics can be seen as a time-local approximation to $\Sigma^{\rm emb}$. It is worth noticing that the embedding self-energy is independent of the electron-electron and electron-phonon interactions and it is completely determined by the matrix elements $D_{\nu{\mathbf k}}$ and by the pulse shape $a(t)$. Using the Langreth rules~\cite{SvLbook} and taking into account that $\Sigma_{\nu\n',{\mathbf k}}^{\rm emb,<}\propto g^{<}_{f\!f,{\mathbf k}}\propto f(\epsilon_{f{\mathbf k}})=0$ since there are no LEED electrons in the initial state (here $f(\epsilon)$ is the Fermi function), we can rewrite Eq.~(\ref{g<ff}) as \begin{equation} I({\mathbf k},t)=2\sum_{\nu\n'}\int \!\!d\bar{t}\;{\rm Re}\left[ \Sigma_{\nu\n',{\mathbf k}}^{\rm emb,R}(t,\bar{t})G_{\nu'\nu,{\mathbf k}_{\parallel}}^{<}(\bar{t},t) \right], \label{photocurr2} \end{equation} where \begin{equation} \Sigma_{\nu\n',{\mathbf k}}^{\rm emb,R}(t,\bar{t})=-i\theta(t-\bar{t}) D_{\nu{\mathbf k}}D^{\ast}_{\nu'{\mathbf k}} a(t)a(\bar{t})e^{-i\epsilon_{f{\mathbf k}}(t-\bar{t})}. \nonumber \end{equation} This is our formula for the {\em time-dependent photocurrent} and it constitues the main result of this Section. The formula is valid for systems in arbitrary nonequilibrium states and for any temporal shape and {\em intensity} of the probe field, the only approximation being that LEED electrons do not interact with bound electrons. We observe that Eq.~(\ref{photocurr2}) reduces to the formula derived in Ref.~\onlinecite{FKP.2009} provided that one approximates $\frac{d}{dt}\langle \hat{f}^{\dag}_{H{\mathbf k}}(t)\hat{f}_{H{\mathbf k}}(t)\rangle\simeq |{\mathbf k}| \langle\hat{f}^{\dag}_{H{\mathbf k}}(t)\hat{f}_{H{\mathbf k}}(t)\rangle$ and discards the effect of the probe field on $G_{\nu'\nu,{\mathbf k}_{\parallel}}$. A practical numerical advantage of Eq.~(\ref{photocurr2}) is that it contains a single time integral. To make contact with the discussion of the introductory Section we consider the special case of a system left in a stationary excited state after the action of the pump pulse\cite{note} and take a probe pulse sharply peaked at frequency $\omega_{0}$, i.e., $a(t)=\theta(t)\left(a_{0}e^{i\omega_{0} t}+c.c.\right)$. If we are interested in the photocurrent for $t\to\infty$ only the terms depending on the time-difference contribute to the embedding self-energy. If we further assume (as in the introductory Section) that electrons are expelled from the conduction band $\nu=c$ then we can limit the sum in Eq.~(\ref{photocurr2}) to $\nu=\nu'=c$ using \begin{eqnarray} \Sigma_{cc,{\mathbf k}}^{\rm emb,R}(t,\bar{t})\!\!&=&\!\!-i\theta(t-\bar{t}) |a_{0}D_{c{\mathbf k}}|^{2}e^{-i\epsilon_{f{\mathbf k}}(t-\bar{t})} \nonumber\\ \!\!&\times&\!\! (e^{i\omega_{0} (t-\bar{t})}+c.c.). \label{monosigma2} \end{eqnarray} To lowest order in the probe field $G_{cc,{\mathbf k}_{\parallel}}^{<}$ depends on the time difference only (the system is in a stationary state). Inserting Eq.~(\ref{monosigma2}) into Eq.~(\ref{photocurr2}) we then find \begin{eqnarray} I({\mathbf k},t)&=&-2|a_{0}D_{c{\mathbf k}}|^{2}\int\frac{d\omega}{2\pi}\,iG_{cc,{\mathbf k}_{\parallel}}^{<}(\omega) \nonumber\\ &\times& {\rm Re}\left[\int_{0}^{t} \!\!d\bar{t}\;\left(e^{-i\Omega_{-}(t-\bar{t})}+e^{-i\Omega_{+}(t-\bar{t})}\right)\right], \quad \nonumber \end{eqnarray} where we used that $iG_{cc,{\mathbf k}_{\parallel}}^{<}(\omega)$ is real and we defined $\Omega_{\pm}=\epsilon_{f{\mathbf k}}\pm\omega_{0}-\omega$. Performing the time integral and taking into account that $\lim_{t\rightarrow\infty}\frac{\sin\Omega t}{\Omega}=\pi\delta(\Omega)$, the long-time limit of the photocurrent is given by \begin{eqnarray} I({\mathbf k})\!\!&\equiv&\!\! \lim_{t\rightarrow\infty}I({\mathbf k},t) \nonumber\\ \!\!&=&\!\! -i|a_{0}D_{{\mathbf k}}|^{2}\!\left[ G_{cc,{\mathbf k}_{\parallel}}^{<}(\epsilon_{f{\mathbf k}}-\omega_{0})+G_{cc,{\mathbf k}_{\parallel}}^{<}(\epsilon_{f{\mathbf k}}+\omega_{0})\right]. \nonumber\\ \label{photocurr3} \end{eqnarray} Comparing this result with Eq.~(\ref{heupc}) we see that a proper selection of Feynman diagrams evaluated with an {\em excited} {\em qp} Green's function are required to capture excitonic features in the energy-resolved photocurrent. In fact, $G_{cc,{\mathbf k}_{\parallel}}^{<}(\omega)$ is nonvanishing at the removal energies of the {\em excited} solid. In the next two Sections we develop a diagrammatic treatment to tackle this problem. \section{Failure of quasi-particle and GW approximations} \label{failuresec} In order to avoid the numerically expensive implementation of the two-times Kadanoff-Baym equations\cite{SvLbook,KBbook,KB.2000,DvL.2007,MSSvL.2009,BB.2013,PvFVA.2009,SBP.2016,SB.2016} the lesser Green's function is usually calculated from the Generalized Kadanoff-Baym Ansatz\cite{lsv.1986,bonitz.book,anttibook,BSH.1999,HB.1996,M.2013,LPUvLS.2014} (GKBA) \begin{equation} G^{<}(t,t')=iG^{\rm R}(t,t')G^{<}(t',t')-iG^{<}(t,t)G^{\rm A}(t,t'), \end{equation} where $G^{\rm R}(t,t')=[G^{\rm A}(t',t)]^{\dag}$ is the retarded Green's function in some {\em qp} approximation, e.g., HF or HSEX. It is well established that the {\em equal-time} HSEX $G^{<}$ accurately describes virtual excitons in photoabsortion (the photoabsorption spectrum is proportional to $\int dt \,e^{i\omega t}G^{<}(t,t)$).\cite{AGM.2011} Real excitons, however, arise from the Fourier transform of $G^{<}(t,t')$ with respect to the {\em relative-time} $(t-t')$; therefore real excitons hide in $G^{\rm R}(t,t')$ and not in $G^{<}(t,t)$. In any {\em qp} approximation $G^{\rm R}(t,t')$ is a {\em single} oscillatory exponential with frequency given by the {\em qp} energy. Thus, the Fourier transform $G^{<}(\omega)$ is peaked {\em only} at the {\em qp} energy and does not contain information on the exciton peak. The very same approximation which accurately describes virtual excitons (in photoabsorption) fails to describe real excitons (in TR-PE). The situation does not improve at the GW level. In fact, in insulators and semiconductors the main effect of the GW self-energy is to renormalize the {\em qp} energies. Dynamical effects (due to the dependence on frequency) appear at very high energy and are associated to plasmonic excitations, not to excitons. Hence, the retarded Green's function in the GW approximation maintains a {\em qp} character. To make progress we must abandon the {\em qp} approximation and calculate $G^{\rm R}$ using a many-body self-energy $\Sigma$ with {\em vertex corrections}. We emphasize that $\Sigma$ is distinct from the embedding self-energy defined in Eq.~(\ref{embse}): the former is a functional of the Green's function and Coulomb interaction whereas the latter is an explicit functional of the probe pulse. Hence $\Sigma$ is nonvanishing even without a probe whereas $\Sigma^{\rm emb}$ is nonvanishing even without the Coulomb interaction. \section{Diagrammatic treatment} \label{diagtreatsec} To find the most relevant many-body self-energy diagrams we argue as follows. In a metal the plasmon peak in photoabsorption is captured by a two-particle Green's function $G_{2}$ evaluated from the Bethe-Salpeter equation (BSE) with Hartree kernel $K_{\rm H}=-\delta\Sigma_{\rm H}/\delta G$. However, in PE the plasmon peak does not emerge from a Green's function calculated with Hartree self-energy $\Sigma_{\rm H}$. Rather, the plasmon peak emerges from the GW self-energy $\Sigma_{\rm GW}\equiv -iv G_{2}G^{-1}$, where $v$ is the Coulomb interaction and $G_{2}$ is the two-particle Green's function which solves the BSE with kernel $K_{\rm H}$. By analogy we expect that real excitons emerge from a self-energy $\Sigma=-iv G_{2}G^{-1}$ where $G_{2}$ solves the BSE with kernel $K_{\rm HSEX}=-\delta\Sigma_{\rm HSEX}/\delta G$, $\Sigma_{\rm HSEX}$ being the HSEX self-energy. In fact, this $G_{2}$ contains the $T$-matrix diagrams in the particle-hole sector which we know to describe the physics of excitons in photoabsorption. The twist with respect to the plasmon case is that in PE plasmons are seen also in equilibrium whereas excitons are not. As we shall see this aspect is not related to the selection of self-energy diagrams but to the {\em qp} Green's function chosen to evaluate them. \begin{figure}[tbp] \includegraphics*[width=.46\textwidth]{exse+L.pdf} \caption{(a) Diagram for the self-energy. (b) Diagram for $L$. Wiggly lines denote the bare interaction $v$ and doubly wiggly lines denote the statically screened interaction $W$.} \label{sel} \end{figure} On the basis of this discussion we propose to calculate the Green's function appearing in Eq.~(\ref{photocurr2}) using the self-energy in Fig.~\ref{sel}~(a) where the two-particle correlation function \begin{equation} L(1,2;3,4)\equiv -G_{2}(1,2;3,4)+G(1;3)G(2;4) \nonumber \end{equation} is given in Fig.~\ref{sel}~(b) and is evaluated using {\em excited} {\em qp} Green's functions. The latter are calculated by performing numerical simulations of the dynamics of the system in the presence of the pump field. This can be done fully {\em ab initio} using, e.g., the Yambo code~\cite{MHGV.2009} which implements a one-time Kadanoff-Baym evolution for the electronic populations.\cite{lsv.1986,bonitz.book,anttibook,BSH.1999,HB.1996,M.2013} Previous studies on bulk silicon~\cite{sm.2015,sm2.2015,SDCMCM.2016} have shown that the polarization dies off a few femtoseconds after the pump pulse due to inelastic scattering and that the pumped electrons reach a Fermi-Dirac distribution $f(\epsilon)=1/(e^{\beta(\epsilon-\mu)}+1)$ with band-dependent temperature $1/\beta$ and chemical potential $\mu$. Electron-hole recombination and hence relaxation toward the ground state does instead occur on a picosecond time-scale. Thus, the solid is well described by an admixture of stationary excited states on the (femtosecond) time-scale of the probe pulse.\cite{PSMS.2015} It is the purpose of this Section to develop a first-principles approach to nonequilibrium PE in such regime. \subsection{Excited two-particle correlation function} \label{BSELsec} As the screened interaction $W$ in Fig.~\ref{sel}~(a) is static, the vertices $(1,3)$ and $(2,4)$ have the same time argument. It is therefore sufficient to evaluate \begin{equation} L_{\substack{{\mathbf x}_{1}{\mathbf x}_{3}\\ {\mathbf x}_{2}{\mathbf x}_{4}}}(z,z')\equiv L({\mathbf x}_{1}z,{\mathbf x}_{2}z';{\mathbf x}_{3}z,{\mathbf x}_{4}z'), \nonumber \end{equation} where ${\mathbf x}=({\mathbf r}\sigma)$ is a collective index for the position and spin coordinate whereas $z$ is a contour time. The Green's function lines in Fig.~\ref{sel}~(b) describe {\em qp} propagators in some admixture of stationary excited states \begin{equation} g_{{\mathbf x}_{1}{\mathbf x}_{4}}(z,z')=\sum_{j}\varphi_{i}({\mathbf x}_{1})\varphi_{j}^{\ast}({\mathbf x}_{4}) g_{j}(z,z'), \label{gexp} \end{equation} where $\varphi_{j}$ is the {\em qp} wavefunction and $j$ is a collective index for the band, spin and momentum. Expanding $L$ according to \begin{equation} L_{\substack{{\mathbf x}_{1}{\mathbf x}_{3}\\ {\mathbf x}_{2}{\mathbf x}_{4}}}(z,z') =\sum_{\substack{ij\\mn}} L_{\substack{ij\\mn}}(z,z')\varphi_{i}({\mathbf x}_{1}) \varphi_{j}^{\ast}({\mathbf x}_{3})\varphi_{m}({\mathbf x}_{2})\varphi_{n}^{\ast}({\mathbf x}_{4}), \label{Lexp} \end{equation} the BSE of Fig.~\ref{sel}(b) takes the form \begin{eqnarray} L_{\subalign{&ij\\& mn}}(z,z')=\delta_{in}\delta_{jm}\,g_{i}(z,z')g_{j}(z',z)+ i\sum_{pq}\int d\bar{z} \nonumber\\ \times g_{i}(z,\bar{z})g_{j}(\bar{z},z) K_{\subalign{&ij\\& qp}} L_{\subalign{&pq\\& mn}} (\bar{z},z'), \label{Lgeneralbasis} \end{eqnarray} where $K_{\subalign{&ij\\& qp}}\equiv W_{iqjp}-v_{iqpj}$. Here the four-index statically screened interaction is defined according to \begin{equation} W_{ijmn}=\!\!\int\! \!d{\mathbf x}_{1} d{\mathbf x}_{2}\,\varphi_{i}^{\ast}({\mathbf x}_{1}) \varphi_{j}^{\ast}({\mathbf x}_{2})\varphi_{m}({\mathbf x}_{2}) \varphi_{n}({\mathbf x}_{1})W({\mathbf x}_{1},{\mathbf x}_{2}). \label{4indx} \end{equation} The definition of the four-index bare interaction is analogous and is obtained by replacing $W$ with $v$ in Eq.~(\ref{4indx}). To take advantage of the conservation of momentum we write every label $i,j,\ldots$ in terms of a collective greek index that specifies band and spin, and a latin bold index that specifies the value of the momentum, e.g., $i=\alpha{\mathbf k}$, $j=\beta{\mathbf p}$, etc. Since we are describing electrons bound to the solid all momenta have vanishing component perpendicular to the surface. Momentum conservation implies that the sum of the momenta of the indices $(i,q)$ in $K_{\subalign{&ij\\& qp}}$ is the same as the sum of the momenta of the indices $(j,p)$. Therefore \begin{equation} K_{\subalign{&\mu{\mathbf k}+{\mathbf q},\nu{\mathbf k}\\& \alpha{\mathbf k}''+{\mathbf q}-{\mathbf q}'',\beta{\mathbf k}''+{\mathbf q}}} =\delta_{{\mathbf q}\blq''} K^{{\mathbf q}}_{\subalign{&\mu\nu{\mathbf k}\\ &\alpha\beta{\mathbf k}''}}, \label{newKtensor} \end{equation} which implicitly defines the tensor on the right hand side. For a tensor $K$ with the property in Eq.~(\ref{newKtensor}) the solution of Eq.~(\ref{Lgeneralbasis}) is a tensor $L$ with the same property. Thus the BSE reduces to \begin{eqnarray} L^{{\mathbf q}}_{\subalign{&\mu\nu{\mathbf k}\\&\rho\sigma{\mathbf k}'}}(z,z')= \delta_{\mu\sigma}\delta_{\nu\rho}\delta_{{\mathbf k}\blk'} g_{\mu{\mathbf k}+{\mathbf q}}(z,z')g_{\nu{\mathbf k}}(z',z) \nonumber\\+i\sum_{\alpha\beta{\mathbf k}''} \int\! d\bar{z}\, g_{\mu{\mathbf k}+{\mathbf q}}(z,\bar{z})g_{\nu{\mathbf k}}(\bar{z},z) K^{{\mathbf q}}_{\subalign{&\mu\nu{\mathbf k}\\ &\alpha\beta{\mathbf k}''}} L^{{\mathbf q}}_{\subalign{&\beta\alpha{\mathbf k}''\\&\rho\sigma{\mathbf k}'}}(\bar{z},z'). \quad \label{Lblochbasis} \end{eqnarray} Introducing the superindices $I=(\mu\nu{\mathbf k})$, $J=(\sigma\rho{\mathbf k}')$ etc. and using the convention that lower superindices have swapped band-spin indices, e.g. $A_{\substack{I\\J}}= A_{\substack{\mu\nu{\mathbf k}\\\rho\sigma{\mathbf k}'}}$, we can rewrite Eq.~(\ref{Lblochbasis}) in the following compact form \begin{equation} L^{{\mathbf q}}_{\substack{I\\J}}(z,z')=\delta_{\substack{I\\J}} \ell^{{\mathbf q}}_{I}(z,z')+i\sum_{M}\int\! d\bar{z}\, \ell^{{\mathbf q}}_{I}(z,\bar{z}) K^{{\mathbf q}}_{\substack{I\\ M}} L^{{\mathbf q}}_{\substack{M\\J}}(\bar{z},z'), \label{Lsuperbasis} \end{equation} where $\delta_{\substack{I\\J}}=\delta_{\substack{\mu\nu{\mathbf k}\\\rho\sigma{\mathbf k}'}}\equiv \delta_{\mu\sigma}\delta_{\nu\rho}\delta_{{\mathbf k}\blk'}$ and \begin{equation} \ell^{{\mathbf q}}_{I}(z,z')=\ell^{{\mathbf q}}_{\mu\nu{\mathbf k}}(z,z')\equiv g_{\mu{\mathbf k}+{\mathbf q}}(z,z')g_{\nu{\mathbf k}}(z',z) \nonumber \end{equation} is the free {\em eh} propagator. The Green's function $g$ is an excited {\em qp} Green's function and therefore the lesser and greater components are given by \begin{subequations} \begin{alignat}{2} &g^{<}_{\mu{\mathbf k}}(\omega)=2\pi i f_{\mu{\mathbf k}}\delta(\omega-\epsilon_{\mu{\mathbf k}}), \label{g0<}\\ &g^{>}_{\mu{\mathbf k}}(\omega)=-2\pi i \bar{f}_{\mu{\mathbf k}}\delta(\omega-\epsilon_{\mu{\mathbf k}}), \label{g0>} \end{alignat} \label{g0} \end{subequations} \vspace{-0.4cm} \noindent where $f_{\mu{\mathbf k}}$ is the {\em qp} occupation of level $\mu{\mathbf k}$ with energy $\epsilon_{\mu{\mathbf k}}$ whereas $\bar{f}_{\mu{\mathbf k}}=1-f_{\mu{\mathbf k}}$. Since the solid is in an admixture of excited states the occupations do not follow a thermal distribution. It is straightforward to extract the lesser/greater component of $\ell^{{\mathbf q}}$: \begin{eqnarray} \ell^{{\mathbf q},>}_{\mu\nu{\mathbf k}}(\omega)&=&\int\frac{d\omega'}{2\pi} g^{>}_{\mu{\mathbf k}+{\mathbf q}}(\omega+\omega')g^{<}_{\nu{\mathbf k}}(\omega') \nonumber\\ &=&2\pi\bar{f}_{\mu{\mathbf k}+{\mathbf q}}f_{\nu{\mathbf k}}\delta(\omega-\epsilon_{\mu{\mathbf k}+{\mathbf q}}+\epsilon_{\nu{\mathbf k}}),\quad \label{x>} \end{eqnarray} and similarly \begin{equation} \ell^{{\mathbf q},<}_{\mu\nu{\mathbf k}}(\omega)=2\pi f_{\mu{\mathbf k}+{\mathbf q}}\bar{f}_{\nu{\mathbf k}}\delta(\omega-\epsilon_{\mu{\mathbf k}+{\mathbf q}}+\epsilon_{\nu{\mathbf k}}). \label{x<} \end{equation} Therefore \begin{eqnarray} \ell^{{\mathbf q},\rm R/A}_{\mu\nu{\mathbf k}}(\omega)&=& i\int\frac{d\omega'}{2\pi}\frac{\ell^{{\mathbf q},>}_{\mu\nu{\mathbf k}}(\omega')-\ell^{{\mathbf q},<}_{\mu\nu{\mathbf k}}(\omega')} {\omega-\omega'\pm i\eta} \nonumber\\ &=&i\frac{f_{\nu{\mathbf k}}-f_{\mu{\mathbf k}+{\mathbf q}}}{\omega-\epsilon_{\mu{\mathbf k}+{\mathbf q}}+\epsilon_{\nu{\mathbf k}}\pm i\eta}. \label{xqra} \end{eqnarray} Again to keep the notation as light as possible we define \begin{equation} f_{I}^{{\mathbf q}}=f^{{\mathbf q}}_{\mu\nu{\mathbf k}}\equiv f_{\nu{\mathbf k}}-f_{\mu{\mathbf k}+{\mathbf q}}, \label{superocc} \end{equation} and \begin{equation} \omega^{{\mathbf q}}_{I}=\omega^{{\mathbf q}}_{\mu\nu{\mathbf k}}\equiv \epsilon_{\mu{\mathbf k}+{\mathbf q}}-\epsilon_{\nu{\mathbf k}}, \nonumber \end{equation} so that Eq.~(\ref{xqra}) takes the following compact form \begin{equation} \ell^{{\mathbf q},\rm R/A}_{I}=i\frac{f_{I}^{{\mathbf q}}}{\omega-\omega^{{\mathbf q}}_{I}\pm i\eta}. \label{xrasuperindex} \end{equation} We now proceed to the calculation of the various Keldysh components of $L$. \subsubsection{Retarded component} Extracting the retarded component of Eq.~(\ref{Lsuperbasis}), Fourier transforming and using Eq.~(\ref{xrasuperindex}) we get \begin{equation} (\omega-\omega^{{\mathbf q}}_{I})L^{{\mathbf q},\rm R}_{\substack{I\\J}}(\omega)=if_{I}^{{\mathbf q}}\delta_{\substack{I\\J}} -f_{I}^{{\mathbf q}}\sum_{M} K^{{\mathbf q}}_{\substack{I\\ M}} L^{{\mathbf q},\rm R}_{\substack{M\\J}}(\omega). \label{Lsuperbasisw2} \end{equation} Since $f_{I}^{{\mathbf q}}=0$ implies $L^{{\mathbf q},\rm R}_{\substack{I\\J}}=0$ we can solve Eq.~(\ref{Lsuperbasisw2}) in the subspace $\mbox{$\mathcal{S}$}^{{\mathbf q}}$ of superindices $I$ such that $f_{I}^{{\mathbf q}}\neq 0$, and restrict the sum over $M$ to this subspace. Notice that if $I\in \mbox{$\mathcal{S}$}^{{\mathbf q}}$ and $J\notin \mbox{$\mathcal{S}$}^{{\mathbf q}}$ then $\delta_{\substack{I\\J}}=0$ and therefore Eq.~(\ref{Lsuperbasisw2}) becomes a homogeneous system of equations. Consequently, $L^{{\mathbf q},\rm R}_{\substack{I\\J}}$ is nonvanishing only for $I,J\in\mbox{$\mathcal{S}$}^{{\mathbf q}}$. Let us split the superindices into two classes, one class with $f_{I}^{{\mathbf q}}>0$ and the other class with $f_{I}^{{\mathbf q}}<0$. We order all vectors and matrices in such a way that the first entries correspond to superindices in the first class. Defining the matrices $\tilde{L}^{{\mathbf q}}$ and $\tilde{K}^{{\mathbf q}}$ according to~\cite{SRFHB.2011} \begin{equation} L^{{\mathbf q},\rm R}_{\substack{I\\J}} \equiv\sqrt{|f_{I}^{{\mathbf q}}|}\,\tilde{L}^{{\mathbf q}}_{\substack{I\\J}} \sqrt{|f_{J}^{{\mathbf q}}|} \quad;\quad \tilde{K}^{{\mathbf q}}_{\substack{I\\J}}\equiv\sqrt{|f_{I}^{{\mathbf q}}|}\, K^{{\mathbf q}}_{\substack{I\\J}}\sqrt{|f_{J}^{{\mathbf q}}|}, \label{deflk} \end{equation} we can rewrite Eq.~(\ref{Lsuperbasisw2}) as follows \begin{equation} \left[(\omega-\omega^{{\mathbf q}})\sigma_{z}^{{\mathbf q}}+\tilde{K}^{{\mathbf q}}\right] \tilde{L}^{{\mathbf q}}=i\mathbbm{1}, \label{casida2} \end{equation} where $\mathbbm{1}$ is the identity matrix, $\omega^{{\mathbf q}}$ is the diagonal matrix with entries $\omega^{{\mathbf q}}_{I}$ and \begin{equation} (\sigma_{z}^{{\mathbf q}})_{\substack{I\\ J}}={\rm sign}(f^{{\mathbf q}}_{I})\delta_{\substack{I\\ J}}\;. \nonumber \end{equation} Since $\tilde{K}^{{\mathbf q}}$ is hermitian we see from Eq.~(\ref{casida2}) that $\tilde{L}^{{\mathbf q}}$ is anti-hermitian, i.e., $\tilde{L}^{{\mathbf q}}_{\substack{I\\ J}}=-\tilde{L}^{{\mathbf q}\ast}_{\substack{J\\ I}}$, as it should. Let us denote by $\Omega^{\lambda{\mathbf q}}$ the values of $\omega$ for which the matrix in the square brackets of Eq.~(\ref{casida2}) is singular and by $\tilde{Y}^{\lambda{\mathbf q}}$ the vector belonging to the null space of the singular matrix: \begin{equation} (\sigma_{z}^{{\mathbf q}}\omega^{{\mathbf q}}-\tilde{K}^{{\mathbf q}})\tilde{Y}^{\lambda{\mathbf q}} =\Omega^{\lambda{\mathbf q}}\sigma_{z}^{{\mathbf q}}\tilde{Y}^{\lambda{\mathbf q}}. \label{pseudoeigen} \end{equation} For systems in equilibrium $\omega^{{\mathbf q}}_{I}\lessgtr 0$ implies that $f^{{\mathbf q}}_{I}\gtrless 0$. This property guarantees that the $\Omega^{\lambda{\mathbf q}}$'s are all real and can be arranged in pairs with entries of opposite sign. The reality of the $\Omega^{\lambda{\mathbf q}}$'s is no longer guaranteed in stationary excited states (or in admixtures of them). However, if the pump is weak, as it is the case of 2PPE experiments,\cite{SBN.2004,Weinelt-book,UG.2007} then the {\em qp} occupations differ from their equilibrium values by a small amount and the $\Omega^{\lambda{\mathbf q}}$'s continue to be real (although they cannot be arranged in pairs any longer). Under the assumption of reality we can normalize the $\tilde{Y}$ vectors according to \begin{equation} \tilde{Y}^{\lambda{\mathbf q}\ast}_{I}(\sigma_{z}^{{\mathbf q}})_{\substack{I\\ J}} \tilde{Y}^{\lambda'{\mathbf q}}_{J}= [\tilde{Y}^{\lambda{\mathbf q}}]^{\dag}\sigma_{z}^{{\mathbf q}}\tilde{Y}^{\lambda'{\mathbf q}}= s_{\lambda}\delta_{\lambda\l'}, \label{normalization} \end{equation} where $s_{\lambda}$ can be either $1$ or $-1$. From Eq.~(\ref{pseudoeigen}) and from the normalization condition in Eq.~(\ref{normalization}) it is easy to show that the solution of Eq.~(\ref{Lsuperbasisw2}) with $I,J\in\mbox{$\mathcal{S}$}^{{\mathbf q}}$ can be written as \begin{equation} L^{{\mathbf q},\rm R}_{\substack{I\\J}}(\omega)=i \sum_{\lambda}Y^{\lambda{\mathbf q}}_{I}\frac{s_{\lambda}}{\omega-\Omega^{\lambda{\mathbf q}}+i\eta}Y^{\lambda{\mathbf q}\ast}_{J}, \label{spectralLR} \end{equation} where $Y^{\lambda{\mathbf q}}_{I}\equiv \sqrt{|f_{I}^{{\mathbf q}}|}\; \sum_{\lambda}\tilde{Y}^{\lambda{\mathbf q}}_{I}$. The advanced component can be obtained similarly and differs from Eq.~(\ref{spectralLR}) only for the sign of the infinitesimal imaginary part of the denominator. Notice that the matrices $L^{{\mathbf q},\rm R/A}$ are manifestly anti-hermitian for real $\omega\pm i\eta$, as it should. It is also easy to verify that in the noninteracting case Eq.~(\ref{spectralLR}) reduces to $\delta_{\substack{I\\J}}\ell^{{\mathbf q},\rm R/A}_{I}$ [see Eq.~(\ref{xrasuperindex})]. \subsubsection{Lesser and Greater component} Let us define the diagonal matrix $\ell_{\substack{I\\J}}=\delta_{\substack{I\\J}}\ell_{I}$. Extracting the greater/lesser component of Eq.~(\ref{Lsuperbasis}) and Fourier transforming one finds (omitting the dependence on frequency) \begin{equation} \left[\mathbbm{1}-i\ell^{{\mathbf q},\rm R}K^{{\mathbf q}}\right]L^{{\mathbf q},\lessgtr} =\ell^{{\mathbf q},\lessgtr}\left[\mathbbm{1}+iK^{{\mathbf q}}L^{{\mathbf q},\rm A}\right]. \label{L<>} \end{equation} We emphasize that this is an equation in the full space of superindices, i.e., matrix multiplication involves also superindices not belonging to $\mbox{$\mathcal{S}$}^{{\mathbf q}}$. With the help of Eq.~(\ref{Lsuperbasisw2}) we can solve for $L^{{\mathbf q},\lessgtr}$ and find \begin{equation} L^{{\mathbf q},\lessgtr}= (\mathbbm{1}+iL^{{\mathbf q},\rm R}K^{{\mathbf q}}) \ell^{{\mathbf q},\lessgtr}(\mathbbm{1}+iK^{{\mathbf q}}L^{{\mathbf q},\rm A}). \nonumber \end{equation} At difference with the retarded/advanced components, the lesser/greater components are nonvanishing also for indices $I,J\notin\mbox{$\mathcal{S}$}^{{\mathbf q}}$. For instance, the lesser two-particle correlator is given by \begin{eqnarray} L^{{\mathbf q},<}_{\substack{I\\J}}\!\!&=&\!\!\delta_{\substack{I\\J}} \ell^{{\mathbf q},<}_{I} ,\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\;\;\, I,J\notin\mbox{$\mathcal{S}$}^{{\mathbf q}} \nonumber \\ L^{{\mathbf q},<}_{\substack{I\\J}}\!\!&=&\!\!i \ell^{{\mathbf q},<}_{I} (K^{{\mathbf q}} L^{{\mathbf q},\rm A})_{\substack{I\\J}} ,\quad\quad\quad\quad\quad\quad\, I \notin\mbox{$\mathcal{S}$}^{{\mathbf q}},J\in\mbox{$\mathcal{S}$}^{{\mathbf q}} \nonumber \\ L^{{\mathbf q},<}_{\substack{I\\J}}\!\!&=&\!\!i (L^{{\mathbf q},\rm R} K^{{\mathbf q}})_{\substack{I\\J}} \ell^{{\mathbf q},<}_{J} ,\quad\quad\quad\quad\quad\quad\, I \in\mbox{$\mathcal{S}$}^{{\mathbf q}},J\notin\mbox{$\mathcal{S}$}^{{\mathbf q}} \nonumber \\ L^{{\mathbf q},<}_{\substack{I\\J}}\!\!&=&\!\!-\sum_{M\notin\mbox{$\mathcal{S}$}^{{\mathbf q}}} (L^{{\mathbf q},\rm R} K^{{\mathbf q}})_{\substack{I\\M}} \ell^{{\mathbf q},<}_{M}(K^{{\mathbf q}}L^{{\mathbf q},\rm A})_{\substack{M\\J}} \nonumber\\ \!\!&+&\!\!2\eta \sum_{\alpha\beta{\mathbf p}\in\mbox{$\mathcal{S}$}^{{\mathbf q}}} L^{{\mathbf q},\rm R}_{\substack{I\\\beta\alpha{\mathbf p}}} \frac{f_{\alpha{\mathbf p}+{\mathbf q}}\bar{f}_{\beta{\mathbf p}}}{(f^{{\mathbf q}}_{\alpha\beta{\mathbf p}})^{2}} L^{{\mathbf q},\rm A}_{\substack{\alpha\beta{\mathbf p}\\J}}, \quad\;\;\;\, I,J\in\mbox{$\mathcal{S}$}^{{\mathbf q}} \nonumber\\ \label{Lexact} \end{eqnarray} where in the second term of the last equality we used \begin{equation} \ell^{{\mathbf q},<}_{\alpha\beta{\mathbf p}}=2\eta\; \ell^{{\mathbf q},\rm R}_{\alpha\beta{\mathbf p}}\; \frac{f_{\alpha{\mathbf p}+{\mathbf q}}\bar{f}_{\beta{\mathbf p}}}{(f^{{\mathbf q}}_{\alpha\beta{\mathbf p}})^{2}} \;\ell^{{\mathbf q},\rm A}_{\alpha\beta{\mathbf p}}, \label{x<dec} \end{equation} as it follows from the explicit expressions in Eqs.~(\ref{x<}) and (\ref{xrasuperindex}) and from the identity $\eta/(\omega^{2}+\eta^{2})=\pi\delta(\omega)$. Although every term can be explicitly calculated we here make an approximation that is well justified in the physical regime we are working, i.e., the regime of weak pumps. In this regime the {\em qp} occupations $f_{\mu{\mathbf k}}$ are either close to zero or close to 1. If $I=(\mu\nu{\mathbf k})\notin\mbox{$\mathcal{S}$}^{{\mathbf q}}$ then [see Eq.~(\ref{superocc})] $f^{{\mathbf q}}_{I}=f_{\nu{\mathbf k}}-f_{\mu{\mathbf k}+{\mathbf q}}=0$ which implies that both $f_{\nu{\mathbf k}}$ and $f_{\mu{\mathbf k}+{\mathbf q}}$ are either close to zero or close to 1 and hence that both products $f_{\nu{\mathbf k}}\bar{f}_{\mu{\mathbf k}+{\mathbf q}}$ and $\bar{f}_{\nu{\mathbf k}}f_{\mu{\mathbf k}+{\mathbf q}}$ are close to zero. Taking into account Eqs.~(\ref{x>}) and (\ref{x<}) we then see that $\ell^{{\mathbf q},\lessgtr}_{I}$ is small for $I\notin\mbox{$\mathcal{S}$}^{{\mathbf q}}$. Approximating \begin{equation} \ell^{{\mathbf q},\lessgtr}_{I}\simeq 0\quad\quad{\rm for}\;I\notin\mbox{$\mathcal{S}$}^{{\mathbf q}}, \nonumber \end{equation} we can write for all $I$ and $J$ \begin{equation} L^{{\mathbf q},<}_{\substack{I\\J}}(\omega)=-2\eta \sum_{\alpha\beta{\mathbf p}\in\mbox{$\mathcal{S}$}^{{\mathbf q}}} L^{{\mathbf q},\rm R}_{\substack{I\\\beta\alpha{\mathbf p}}}(\omega) \frac{f_{\alpha{\mathbf p}+{\mathbf q}}\bar{f}_{\beta{\mathbf p}}}{(f^{{\mathbf q}}_{\alpha\beta{\mathbf p}})^{2}} L^{{\mathbf q},\rm A}_{\substack{\alpha\beta{\mathbf p}\\J}}(\omega). \label{L<>approx2} \end{equation} We now insert in Eq.~(\ref{L<>approx2}) the spectral decomposition for the retarded/advanced two-particle correlator, see Eq.~(\ref{spectralLR}). The resulting double sum over $\lambda,\lambda'$ can be split into a sum over $\lambda=\lambda'$ and a sum over $\lambda\neq\lambda'$. In the limit $\eta\to 0$ the latter is finite whereas the former yields a sum of $\delta$-functions. We can then restrict the sum to $\lambda=\lambda'$ and get \begin{equation} L^{{\mathbf q},<}_{\substack{I\\J}}(\omega)=2\pi\,\sum_{\lambda} F^{\lambda{\mathbf q}}\,Y^{\lambda{\mathbf q}}_{I}\, \delta(\omega-\Omega^{\lambda{\mathbf q}})\, Y^{\lambda{\mathbf q}\ast}_{J}\;\;, \label{L<approx4} \end{equation} where we have defined \begin{equation} F^{\lambda{\mathbf q}}\equiv \sum_{\alpha\beta{\mathbf p}\in\mbox{$\mathcal{S}$}^{{\mathbf q}}} Y^{\lambda{\mathbf q}\ast}_{\alpha\beta{\mathbf p}}\, \frac{f_{\alpha{\mathbf p}+{\mathbf q}}\bar{f}_{\beta{\mathbf p}}}{(f^{{\mathbf q}}_{\alpha\beta{\mathbf p}})^{2}} \,Y^{\lambda{\mathbf q}}_{\alpha\beta{\mathbf p}}, \nonumber \end{equation} and introduced the convention $Y^{\lambda{\mathbf q}}_{I}=0$ for $I\notin \mbox{$\mathcal{S}$}^{{\mathbf q}}$. A similar expression can be derived for the greater component \begin{equation} L^{{\mathbf q},>}_{\substack{I\\J}}(\omega)=2\pi\,\sum_{\lambda} \bar{F}^{\lambda{\mathbf q}}\,Y^{\lambda{\mathbf q}}_{I}\, \delta(\omega-\Omega^{\lambda{\mathbf q}})\, Y^{\lambda{\mathbf q}\ast}_{J}\;\;, \label{L>approx4} \end{equation} where we have defined \begin{equation} \bar{F}^{\lambda{\mathbf q}}\equiv \sum_{\alpha\beta{\mathbf p}\in\mbox{$\mathcal{S}$}^{{\mathbf q}}} Y^{\lambda{\mathbf q}\ast}_{\alpha\beta{\mathbf p}}\, \frac{\bar{f}_{\alpha{\mathbf p}+{\mathbf q}}f_{\beta{\mathbf p}}}{(f^{{\mathbf q}}_{\alpha\beta{\mathbf p}})^{2}} \,Y^{\lambda{\mathbf q}}_{\alpha\beta{\mathbf p}}. \nonumber \end{equation} We have verified that Eqs.~(\ref{L<approx4}) and (\ref{L>approx4}) reduce to $\ell^{{\mathbf q},\lessgtr}(\omega)$ in the noninteracting case and that in equilibrium we recover the fluctuation dissipation theorem. \subsection{Excited self-energy and Green's function} \label{Sigma-G-sec} Let us evaluate $\Sigma_{{\mathbf x}_{1}{\mathbf x}_{4}}(z,z')$ in Fig.~\ref{sel}~(a). Expanding the self-energy analogously to the Green's function [see Eq.~(\ref{gexp})], i.e., \begin{equation} \Sigma_{{\mathbf x}_{1}{\mathbf x}_{4}}(z,z')= \sum_{pq}\varphi_{p}({\mathbf x}_{1})\varphi_{q}^{\ast}({\mathbf x}_{4})\Sigma_{pq}(z,z'), \nonumber \end{equation} and taking into account the expansion of $L$ in Eq.~(\ref{Lexp}) as well as the definition of the four-index screened interaction in Eq.~(\ref{4indx}), it is a matter of simple algebra to find \begin{equation} \Sigma_{pq}(z,z')=-i^{2}\sum_{ijmnk}g_{k}(z,z')\,W_{\substack{pk\\ji}}\, L_{\substack{ij\\mn}}(z,z')W_{\substack{nm\\kq}}, \nonumber \end{equation} where $W_{\substack{pk\\ji}}\equiv W_{pjki}$ (in analogy with the definition of the kernel $K$ in Eq.~(\ref{Lgeneralbasis})). Extracting the lesser/greater component, Fourier transforming and using Eqs.~(\ref{g0}) we find \begin{subequations} \begin{alignat}{2} &\Sigma_{pq}^{<}(\omega)=i \sum_{ijmnk}f_{k}\,W_{\substack{pk\\ji}}\, L_{\substack{ij\\mn}}^{<}(\omega-\epsilon_{k})W_{\substack{nm\\kq}}, \nonumber \\ &\Sigma_{pq}^{>}(\omega)=-i \sum_{ijmnk}\bar{f}_{k}\,W_{\substack{pk\\ji}}\, L_{\substack{ij\\mn}}^{>}(\omega-\epsilon_{k})W_{\substack{nm\\kq}}. \nonumber \end{alignat} \end{subequations} We make explicit the dependence on the band-spin indices and momenta. Due to momentum conservation $\Sigma_{\mu{\mathbf p}\nu{\mathbf p}'}=\delta_{{\mathbf p}\blp'}\Sigma_{\mu\nu{\mathbf p}}$. After some algebra the lesser self-energy takes the form \begin{equation} \Sigma^{<}_{\mu\nu{\mathbf p}}(\omega)=i\!\!\sum_{IJ,\gamma{\mathbf q}}\!f_{\gamma{\mathbf p}-{\mathbf q}}W^{{\mathbf q}}_{\subalign{&\mu\gamma{\mathbf p}-{\mathbf q}\\&I}} L^{{\mathbf q},<}_{\subalign{&I\\&J}}(\omega-\epsilon_{\gamma{\mathbf p}-{\mathbf q}}) W^{{\mathbf q}}_{\subalign{&J\\&\gamma\nu{\mathbf p}-{\mathbf q}}} \label{se<1} \end{equation} with a similar expression for the greater self-energy. In Eq.~(\ref{se<1}) the sum is restricted to $I,J\in \mbox{$\mathcal{S}$}^{{\mathbf q}}$ due to the approximation in Eq.~(\ref{L<>approx2}), according to which $L^{{\mathbf q},<}_{\substack {I\\J}}$ vanishes if $I$ and/or $J$ do not belong to $\mbox{$\mathcal{S}$}^{{\mathbf q}}$. Inserting the expansion in Eq.~(\ref{L<approx4}) we get \begin{eqnarray} \Sigma^{<}_{\mu\nu{\mathbf p}}(\omega)\!\!&=&\!\!2\pi i\sum_{\lambda} \sum_{IJ,\gamma{\mathbf q}}f_{\gamma{\mathbf p}-{\mathbf q}} F^{\lambda{\mathbf q}}W^{{\mathbf q}}_{\subalign{&\mu\gamma{\mathbf p}-{\mathbf q}\\&I}}\, Y^{\lambda{\mathbf q}}_{I} \nonumber\\ \!\!&\times&\!\! \delta(\omega-\epsilon_{\gamma{\mathbf p}-{\mathbf q}}-\Omega^{\lambda{\mathbf q}})\, Y^{\lambda{\mathbf q}\ast}_{J}W^{{\mathbf q}}_{\subalign{&J\\&\gamma\nu{\mathbf p}-{\mathbf q}}}. \nonumber \end{eqnarray} Following similar steps the greater self-energy reads \begin{eqnarray} \Sigma^{>}_{\mu\nu{\mathbf p}}(\omega)\!\!&=&\!\!-2\pi i\sum_{\lambda} \sum_{IJ,\gamma{\mathbf q}}\bar{f}_{\gamma{\mathbf p}-{\mathbf q}}\bar{F}^{\lambda{\mathbf q}}\,W^{{\mathbf q}}_{\subalign{&\mu\gamma{\mathbf p}-{\mathbf q}\\&I}}\, Y^{\lambda{\mathbf q}}_{I} \nonumber\\ \!\!&\times&\!\! \delta(\omega-\epsilon_{\gamma{\mathbf p}-{\mathbf q}}-\Omega^{\lambda{\mathbf q}})\, Y^{\lambda{\mathbf q}\ast}_{J}W^{{\mathbf q}}_{\subalign{&J\\&\gamma\nu{\mathbf p}-{\mathbf q}}}, \nonumber \end{eqnarray} and hence the retarded/advanced self-energy follows from the Hilbert transform \begin{eqnarray} \Sigma^{\rm R/A}_{\mu\nu{\mathbf p}}(\omega) &=& \sum_{\lambda}\sum_{IJ,\gamma{\mathbf q}} W^{{\mathbf q}}_{\subalign{&\mu\gamma{\mathbf p}-{\mathbf q}\\&I}}\, Y^{\lambda{\mathbf q}}_{I} \nonumber\\ &\times& \frac{\bar{f}_{\gamma{\mathbf p}-{\mathbf q}}\bar{F}^{\lambda{\mathbf q}}+f_{\gamma{\mathbf p}-{\mathbf q}}F^{\lambda{\mathbf q}}} {\omega-\epsilon_{\gamma{\mathbf p}-{\mathbf q}}-\Omega^{\lambda{\mathbf q}}\pm i\eta}\,Y^{\lambda{\mathbf q}\ast}_{J} W^{{\mathbf q}}_{\subalign{&J\\&\gamma\nu{\mathbf p}-{\mathbf q}}}.\quad\;\; \label{mainsigma} \end{eqnarray} Equation~(\ref{mainsigma}) does not contain any empirical parameter; it provides the nonequilibrium self-energy in terms of quantities that can all be obtained {\em ab initio}. As the self-energy is diagonal in momentum space the dressed Green's function $G$ is diagonal too. Therefore, it is convenient to manipulate matrices with indices only in the band-spin sector. We define $(\Sigma_{{\mathbf k}})_{\alpha\beta}\equiv\Sigma_{\alpha\beta{\mathbf k}}$, $(\epsilon_{{\mathbf k}})_{\alpha\beta}\equiv\delta_{\alpha\beta}\epsilon_{\alpha{\mathbf k}}$, and $(G_{{\mathbf k}})_{\alpha\beta}\equiv G_{\alpha\beta{\mathbf k}}$. Then, the retarded Green's function can be calculated from \begin{equation} G^{\rm R/A}_{{\mathbf k}}(\omega)=\frac{1}{\omega-\epsilon_{{\mathbf k}}-\Sigma^{\rm R/A}_{{\mathbf k}}(\omega)}. \label{graexact} \end{equation} Experiments\cite{CRCZGBBKGP.2012,SYACFKS.2012,NOHFMEAABEC.2014,BVLNL.2014} and numerical simulations~\cite{sm.2015,SDCMCM.2016} indicate that the electron occupations in the quasi-stationary excited state follow a Fermi-Dirac distribution with temperatures $T_{\alpha}$ and chemical potentials $\mu_{\alpha}$ depending on the band-spin index $\alpha$. Of course $T_{\alpha}$ and $\mu_{\alpha}$ vary on a picosecond time-scale but they can be considered as constant on the time-scale of the probe pulse. From this evidence we infer that the recombination of electrons with different band-spin index $\alpha$ is severely suppressed and that the lesser Green's function fulfills the approximate fluctuation-dissipation relation \begin{equation} G^{<}_{\alpha\beta{\mathbf k}}(\omega)=-\delta_{\alpha\beta}f_{\alpha}(\omega)[G^{\rm R}_{\alpha\a{\mathbf k}}(\omega)-G^{\rm A}_{\alpha\a{\mathbf k}}(\omega)], \label{heuristic6} \end{equation} where $f_{\alpha}(\omega)=1/(e^{(\omega-\mu_{\alpha})/T_{\alpha}}+1)$. The $\alpha$-dependent temperature and chemical potential can be extracted by a best fitting of the electronic populations as obtained from, e.g., the one-time Kadanoff-Baym propagation.\cite{sm.2015} Using the Green's function of Eq.~(\ref{heuristic6}) in Eq.~(\ref{photocurr2}) the photocurrent follows. This concludes our first-principle diagrammatic approach to deal with excitonic features in TR-PE spectra. In the next Section we study excitonic features in a minimal model and assess the accuracy of the proposed theory. \section{Application to a Minimal Model} We consider a one-dimensional insulator of length $\mbox{$\mathcal{L}$}$ with one valence band and one conduction band separated by a direct gap of strength $\Delta$.\cite{YLU.2012} Since the formation of excitons is due to the attraction between a valence hole and a conduction electron we discard the Coulomb interaction between electrons in the same band. For simplicity we also discard spin. Thus, the Hamiltonian of the insulator reads \begin{eqnarray} \hat{H}_{\rm ins}&=&\sum_{k}(\epsilon_{vk}\hat{v}^{\dag}_{k}\hat{v}_{k} +\epsilon_{ck}\hat{c}^{\dag}_{k}\hat{c}_{k})- U(0)\frac{N_{v}}{\mbox{$\mathcal{L}$}}\sum_{k}\hat{c}^{\dag}_{k}\hat{c}_{k} \nonumber\\ &+& \frac{1}{\mbox{$\mathcal{L}$}}\sum_{k_{1}k_{2}q}U(q)\,\hat{v}^{\dag}_{k_{1}+q}\hat{c}^{\dag}_{k_{2}-q} \hat{c}_{k_{2}}\hat{v}_{k_{1}}, \label{minmodham} \end{eqnarray} where $\hat{v}_{k}$ ($\hat{c}_{k}$) annihilates an electron of momentum $k$ in the valence (conduction) band and $W(q)\equiv U(q)/\mbox{$\mathcal{L}$}$ is the statically screened interaction. The last term in the first row represents the interaction of a conduction electron with the positive background in the valence band, $N_{v}$ being the number of protons (which is also equal to the number of valence electrons in the ground state). For this model the ground state is obtained by filling all single-particle valence states with one electron. Hence the interaction between the valence background and the conduction electrons vanishes. \subsection{Analytic treatment for a single bound exciton} \label{analytic-solution-sec} \label{lessec} The insulator Hamiltonian commutes with the total number of conduction electrons $\hat{N}_{c}=\sum_{k}\hat{c}^{\dag}_{k}\hat{c}_{k}$ and with the total number of valence electrons $\hat{N}_{v}=\sum_{k}\hat{v}^{\dag}_{k}\hat{v}_{k}$. We consider the special case of a stationary excited state of vanishing total momentum with one electron in the conduction band (and hence with one hole in the valence band). Denoting by $|\Psi_{g}\rangle=\prod_{k}\hat{v}^{\dag}_{k}|0\rangle$ the ground state of energy $E_{g}$ we write this excited state as \begin{equation} |\Psi\rangle=\sum_{k}Y_{k}\hat{c}^{\dag}_{k}\hat{v}_{k}|\Psi_{g}\rangle= \sum_{k}Y_{k}|\Phi_{k}\rangle, \label{exexp} \end{equation} where we introduced the {\em eh} states $|\Phi_{k}\rangle\equiv\hat{c}^{\dag}_{k}\hat{v}_{k}|\Psi_{g}\rangle$. It is a matter of straightforward algebra to show that $\hat{H}_{\rm ins}|\Psi\rangle$ is again a linear combination of the $|\Phi_{k}\rangle$'s. The possible excited state energies $E=E_{g}+\Omega$ are found by solving the eigenvalue problem \begin{equation} (\omega_{k-q}-\Omega)Y_{k}=\frac{1}{\mbox{$\mathcal{L}$}}\sum_{q}U(q)Y_{k-q}, \label{bcs} \end{equation} with $\omega_{k}\equiv \epsilon_{ck}-\epsilon_{vk}>\Delta= \epsilon_{c0}-\epsilon_{v0}$. For a momentum independent interaction $U(q)=U>0$ the expansion coefficients have the form \begin{equation} Y_{k}=\frac{\sqrt{R}}{\omega_{k}-\Omega}, \label{ansatz} \end{equation} where the positive constant $R$ is fixed by the normalization $\sum_{k}|Y_{k}|^{2}=1$. Equation~(\ref{bcs}) has a continuum of solutions $\Omega=\Delta-b$ with $b<0$ and one split-off solution $\Omega_{X}=\Delta-b_{X}$ with binding energy $b_{X}>0$. The latter corresponds to a bound {\em eh} state or exciton. Notice that for any arbitrary small but finite $U$ the excitonic amplitude $Y_{k}\sim 1/\sqrt{\mbox{$\mathcal{L}$}}$ for $\mbox{$\mathcal{L}$}\to\infty$ whereas $b_{X}$ converges to a finite positive value. By definition, the lesser Green's function of the system in the exciton state $|\Psi\rangle=|\Psi_{X}\rangle$ is \begin{eqnarray} G_{cc,k}^{<}(t,t')\!\!&=&\!\!i\langle\Psi_{X}|\hat{c}^{\dag}_{kH}(t')\hat{c}_{kH}(t)|\Psi_{X}\rangle \nonumber\\ \!\!&=&\!\! i\langle\Psi_{X}|\hat{c}^{\dag}_{k}e^{-i(\hat{H}-E_{g}-\Omega_{X})(t'-t)} \hat{c}_{k}|\Psi_{X}\rangle. \nonumber \end{eqnarray} The only many-body states having a nonvanishing overlap with $\hat{c}_{k}|\Psi_{X}\rangle$ are the states $\hat{v}_{p}|\Psi_{g}\rangle$ which are also eigenstates $\hat{H}_{\rm ins}$ with eigenvalue $E_{g}-\epsilon_{vp}$. Inserting a completeness relation to the right of $\hat{c}^{\dag}_{k}$ and Fourier transforming we find the {\em exact} result \begin{equation} G_{cc,k}^{<}(\omega)=2\pi i|Y_{k}|^{2}\delta(\omega-\Omega_{X}+\epsilon_{vk}). \label{FexG<cc0} \end{equation} In the following we show that our diagrammatic approach yields precisely Eq.~(\ref{FexG<cc0}). Before, however, we observe that substitution of Eq.~(\ref{FexG<cc0}) into Eq.~(\ref{photocurr3}) leads to the photocurrent \begin{equation} I({\mathbf k})=2\pi|Y_{k}a_{0}D_{{\mathbf k}}|^{2} \delta(\omega_{0}+\Omega_{X}+\epsilon_{vk}-\epsilon_{f{\mathbf k}}), \label{pcmodelex} \end{equation} where, without any loss of generality, we took $\omega_{0}>0$ (in this case $G_{cc,k}^{<}(\epsilon_{f{\mathbf k}}+\omega_{0})$ does not contribute). Equation~(\ref{pcmodelex}) agrees with Eq.~(\ref{heupc}), as it should. To calculate the (dressed) excited lesser Green's function diagrammatically we need an excited {\em qp} Green's function $g$. Here we evaluate $g$ in the HF approximation. The excited noninteracting Green's function $g^{(0)}$ with one conduction electron and one valence hole in the lowest energy state reads \begin{subequations} \begin{alignat}{2} &g^{(0),<}_{vv,k}(\omega) = 2\pi i\,\bar{\delta}_{k0} \,\delta(\omega-\epsilon_{vk}), \\ &g^{(0),>}_{vv,k}(\omega) = -2\pi i\,\delta_{k0} \,\delta(\omega-\epsilon_{vk}), \\ &g^{(0),<}_{cc,k}(\omega) = 2\pi i\,\delta_{k0} \,\delta(\omega-\epsilon_{ck}+U(0)N_{v}/\mbox{$\mathcal{L}$}), \\ &g^{(0),>}_{cc,k}(\omega) = -2\pi i\,\bar{\delta}_{k0} \,\delta(\omega-\epsilon_{ck}+U(0)N_{v}/\mbox{$\mathcal{L}$}), \end{alignat} \label{gnoint} \end{subequations} \vspace{-0.2cm} \noindent and $g^{(0),\lessgtr}_{cv,k}=g^{(0),\lessgtr}_{vc,k}=0$. In Eqs.~(\ref{gnoint}) we defined $\bar{\delta}_{k0}=1-\delta_{k0}$. The HF potential contains only the Hartree part since the interaction preserves the band-spin index and $g^{(0)}$ is diagonal. Using Eqs.~(\ref{gnoint}) one finds \begin{equation} V_{{\rm HF},\alpha\a k}=\delta_{\alpha c}\frac{U(0)}{\mbox{$\mathcal{L}$}}N_{v} +\mbox{$\mathcal{O}$}(1/\mbox{$\mathcal{L}$}). \label{HFpot} \end{equation} Accordingly, the excited HF Green's function is \begin{subequations} \begin{alignat}{2} &g^{<}_{vv,k}(\omega)=2\pi i\,\bar{\delta}_{k0} \,\delta(\omega-\epsilon_{vk}), \label{HFg<vv}\\ &g^{>}_{vv,k}(\omega)=-2\pi i\,\delta_{k0} \,\delta(\omega-\epsilon_{v0}), \\ &g^{<}_{cc,k}(\omega)=2\pi i\,\delta_{k0} \,\delta(\omega-\epsilon_{c0}), \label{mathfrackg<} \\ &g^{>}_{cc,k}(\omega)=-2\pi i\,\bar{\delta}_{k0} \,\delta(\omega-\epsilon_{ck}). \label{HFg>cc} \end{alignat} \label{HFg} \end{subequations} \vspace{-0.4cm} \noindent We observe that if we used the HF $g^{<}_{cc,k}$ to evaluate the photocurrent in Eq.~(\ref{photocurr3}) we would find \begin{equation} I({\mathbf k})=2\pi|a_{0}D_{{\mathbf k}}|^{2}\delta_{k0}\delta(\omega_{0}+\epsilon_{c0}-\epsilon_{f{\mathbf k}}), \nonumber \end{equation} which coincides with the noninteracting limit of Eq.~(\ref{pcmodelex}), i.e., $Y_{k}=\delta_{k0}$ and $b_{X}=0$. As expected the HF approximation (and any other {\em qp} approximation) does not capture the exciton peak in the energy-resolved and angle-resolved photocurrent. \begin{figure}[t] \includegraphics*[width=.46\textwidth]{tmatrix.pdf} \caption{Self-energy diagrams for the model Hamiltonian of Eq.~(\ref{minmodham}).} \label{diagramsfig} \end{figure} For the model Hamiltonian in Eq.~(\ref{minmodham}) the self-energy diagrams of Fig.~\ref{sel}~(a) that contain a polarization insertion vanish. Thus, we only need to evaluate the self-energy diagrams in Fig.~\ref{diagramsfig}, with the exception of the first (Hartree) diagram. Since we are interested in $G_{cc}$ and since the self-energy has vanishing $cv$ and $vc$ components we only calculate the $cc$ component. For simplicity we also consider the case of vanishing momentum $k=0$ and a momentum independent interaction $U(q)=U$. We have $\Sigma_{cc,0}(z,z')\equiv \Sigma(z,z')-\Sigma_{\rm H}(z,z')$ where $\Sigma$ is the full series of Fig.~\ref{diagramsfig} and $\Sigma_{\rm H}$ is the first diagram of the series. Introducing the averaged {\em eh} propagator \begin{equation} \ell_{p}(z,z')=\frac{1}{\mbox{$\mathcal{L}$}}\sum_{q}g_{cc,q}(z,z')g_{vv,p+q}(z',z), \label{exprop} \end{equation} we can write the full series as \begin{equation} \Sigma(z,z')=-\frac{i}{\mbox{$\mathcal{L}$}}\sum_{p}T_{p}(z,z')g_{vv,p}(z,z'). \label{kelsigma} \end{equation} where we have defined the $T$-matrix \begin{equation} T_{p}(z,z')\equiv U\delta(z,z')+iU\int dz_{1}\,\ell_{p}(z,z_{1})T_{p}(z_{1},z'). \label{tmatk} \end{equation} To calculate the lesser and greater components of $\Sigma$ (which are necessary to calculate $G^{<}_{cc,0}$) we need the lesser and greater components of $T_{p}$. This can be achieved without going through the spectral decomposition of Section~\ref{BSELsec} since the system is in a pure (excited) state which is simple enough. The spectral decomposition will be used in the next Section where we consider the system in an admixtures of excited states. Using the Langreth rules in Eq.~(\ref{tmatk}) we get \begin{equation} T^{\lessgtr}_{p}(\omega)=i\frac{U^{2}}{|1-iU\ell^{\rm R}_{p}(\omega)|^{2}}\ell^{\lessgtr}_{p}(\omega). \label{tmat<>2} \end{equation} From the definition of the {\em eh} propagator in Eq.~(\ref{exprop}) and using the excited HF Green's functions in Eqs.~(\ref{HFg}) we find $\ell^{<}_{p}(\omega)=(2\pi/\mbox{$\mathcal{L}$})\delta_{p0}\,\delta(\omega-\Delta)$. Therefore $T^{<}_{p}(\omega)\propto \delta_{p0}$ and consequently the lesser self-energy \begin{equation} \Sigma^{<}(t,t')=-\frac{i}{\mbox{$\mathcal{L}$}}T^{<}_{0}(t,t')g^{<}_{vv,0}(t,t')=0. \nonumber \end{equation} Thus we only need to evaluate the greater self-energy. From Eq.~(\ref{kelsigma}) \begin{eqnarray} \Sigma^{>}(\omega)&=&-\frac{i}{\mbox{$\mathcal{L}$}}\sum_{p}\int\frac{d\omega'}{2\pi}T^{>}_{p}(\omega-\omega') \mathfrak{g}^{>}_{vv,p}(\omega') \nonumber\\ &=&-\frac{1}{\mbox{$\mathcal{L}$}}T^{>}_{0}(\omega-\epsilon_{v0}). \label{se>mm} \end{eqnarray} It is important to emphasize that if we had used a {\em ground state} $g$ then also $\Sigma^{>}=0$ since there would be no holes in the valence band and hence $g^{>}_{vv,p}=0$. The calculation of $T^{>}_{0}$ requires the explicit form of $\ell^{>}_{0}$ and $\ell^{\rm R}_{0}$. These follow from Eq.~(\ref{exprop}) \begin{equation} \ell^{>}_{0}(\omega)= \frac{2\pi}{\mbox{$\mathcal{L}$}}\sum_{q}\delta(\omega-\omega_{q}) +\mbox{$\mathcal{O}$}(1/\mbox{$\mathcal{L}$}), \label{x0>} \end{equation} and \begin{equation} \ell_{0}^{\rm R}(\omega)=\frac{1}{\mbox{$\mathcal{L}$}} \sum_{q}\frac{i}{\omega-\omega_{q}+i\eta} +\mbox{$\mathcal{O}$}(1/\mbox{$\mathcal{L}$}). \label{x0R} \end{equation} Substitution of these results into Eq.~(\ref{tmat<>2}) yields \begin{equation} T^{>}_{0}(\omega)=2i U \frac{y(\omega)}{(1-x(\omega))^{2}+y^{2}(\omega)}, \nonumber \end{equation} where we have defined $x(\omega)\equiv{\rm Re}[iU\ell_{0}^{\rm R}(\omega)]$ and $y(\omega)\equiv{\rm Im}[iU\ell_{0}^{\rm R}(\omega)]=(U/2)\ell^{>}_{0}(\omega)$. The quantity $y(\omega)$ vanishes for $\omega<\Delta$, see Eq.~(\ref{x0>}). However, this {\em does not imply} that $T_{0}^{>}(\omega)$ vanishes in the same region. In fact, \begin{equation} \lim_{y\rightarrow 0^{+}} \frac{y}{(1-x)^{2}+y^{2}}=\pi\delta(1-x), \nonumber \end{equation} and hence $T_{0}^{>}(\omega)$ is nonvanishing for $\omega<\Delta$ if in this frequency region $1-x(\omega)=0$. From Eq.~(\ref{x0R}) we have \begin{equation} 1-x(\omega)=1+\frac{U}{\mbox{$\mathcal{L}$}}\sum_{q}\frac{1}{\omega-\omega_{q}}=0. \nonumber \end{equation} This equation is identical to Eq.~(\ref{bcs}) after the renaming $\omega=\Omega$. Thus $1-x(\omega)=0$ has a continuum of solutions for $\omega>\Delta$ and one split-off solution at $\omega=\Omega_{X}<\Delta$. Therefore $T^{>}_{0}(\omega)$ can be conveniently rewritten as \begin{eqnarray} T^{>}_{0}(\omega)&=& \frac{2\pi i U}{\left|\partial x(\omega)/\partial\omega\right|_{\omega=\Omega_{X}}}\delta(\omega-\Omega_{X}) \nonumber\\ &+&2i U\,{\rm Reg} \left[\frac{y(\omega)}{(1-x(\omega))^{2}+y^{2}(\omega)}\right], \label{tmat>0final} \end{eqnarray} where ${\rm Reg}$ denotes the nonsingular part of the function. We can now evaluate $\Sigma^{>}$ from Eq.~(\ref{se>mm}) as well as the retarded self-energy \begin{equation} \Sigma^{\rm R}_{cc,0}(\omega)=-\frac{i}{\mbox{$\mathcal{L}$}}\int\frac{d\omega'}{2\pi}\frac{T^{>}_{0}(\omega'-\epsilon_{v0})}{\omega-\omega'+i\eta}. \label{sigR0} \end{equation} The Hartree part does not contribute to $\Sigma^{>}$ and it is therefore correctly removed in Eq.~(\ref{sigR0}). Using Eq.~(\ref{tmat>0final}) we find \begin{equation} \Sigma^{\rm R}_{cc,0}(\omega)=\frac{R_{X}}{\omega-\Omega_{X}-\epsilon_{v0}+i\eta}+ \Sigma_{\rm reg}^{\rm R}(\omega), \label{sigmacc0R} \end{equation} where \begin{equation} R_{X}=\frac{U/\mbox{$\mathcal{L}$}}{\left|\partial x(\omega)/\partial\omega\right|_{\omega=\Omega_{X}}}, \nonumber \end{equation} is the excitonic residue of the singular part whereas $\Sigma_{\rm reg}^{\rm R}$ is the regular (nonsingular) part. Both $R_{X}$ and $\Sigma_{\rm reg}^{\rm R}$ scale like $1/\mbox{$\mathcal{L}$}$ and are therefore infinitesimally small in the thermodynamic limit. Interestingly, $R_{X}$ is exactly the same constant that appears in the normalized excitonic amplitude of Eq.~(\ref{ansatz}). From the retarded self-energy the retarded Green's function follows \begin{equation} G^{\rm R}_{cc,0}(\omega)=\frac{1}{\omega-\epsilon_{c0}-\Sigma^{\rm R}_{cc,0}(\omega)}. \nonumber \end{equation} For $\omega\simeq \epsilon_{X}\equiv \Omega_{X}+\epsilon_{v0}=\epsilon_{c0}-b_{X}$ the self-energy is dominated by the first term in Eq.~(\ref{sigmacc0R}). Thus for frequencies in the neighborhood of $\epsilon_{X}$ we can write \begin{eqnarray} G^{\rm R}_{cc,0}(\omega\sim \epsilon_{X})&\simeq& \frac{1}{\epsilon_{X}-\epsilon_{c0}-\frac{R_{X}}{\omega-\epsilon_{X}+i\eta}} \nonumber\\ &=&\frac{R_{X}/b^{2}_{X}}{\omega-\epsilon_{X}+i\eta}+ \mbox{$\mathcal{O}$}(1/\mbox{$\mathcal{L}$}), \nonumber \end{eqnarray} where we took into account that $R_{X}\sim 1/\mbox{$\mathcal{L}$}$. In the same neighborhood the spectral function $A=i[G^{\rm R}_{cc,0}-G^{\rm A}_{cc,0}]$ reads \begin{eqnarray} A(\omega\simeq \epsilon_{X}) \simeq 2\pi Z_{X}\,\delta(\omega-\epsilon_{X}), \nonumber \end{eqnarray} where we have defined the {\em excitonic qp weight} as \begin{equation} Z_{X}\equiv \frac{R_{X}}{b_{X}^{2}}. \nonumber \end{equation} The physical meaning of $Z_{X}$ is the amount of spectral weight that a bare excited electron transfers to the electron in the bound {\em eh} pair. We further observe that $Z_{X}$ is precisely the excitonic amplitude $|Y_{0}|^{2}$, see Eq.~(\ref{ansatz}). To calculate the excited lesser Green's function we use Eq.~(\ref{heuristic6}), i.e., $G^{<}_{cc,0}(\omega)= if_{c}(\omega)A(\omega)$, where $f_{c}(\omega)$ is the Fermi function for the conduction band. To find the temperature $T_{c}$ and chemical potential $\mu_{c}$ we observe that the occupations of the excited state are $f_{ck}=\delta_{k0}$, see Eq.~(\ref{mathfrackg<}). Therefore $T_{c}=0$ and $\mu_{c}$ is just above $\epsilon_{c0}$. From the previous analysis we know that the spectral function has a $\delta$-like peak in $\omega=\epsilon_{X}<\epsilon_{c0}$ and it is otherwise smooth and nonvanishing for $\omega>\epsilon_{c0}$. More precisely the self-energy is responsible for moving the noninteracting spectral peaks to the right by an amount $\simeq 1/\mbox{$\mathcal{L}$}$. Therefore only the exciton peak is below $\mu_{c}$ and the excited lesser Green's function reads \begin{equation} G^{<}_{cc,0}(\omega)=2\pi iZ_{X}\delta(\omega-\epsilon_{X}). \nonumber \end{equation} Since $Z_{X}=|Y_{0}|^{2}$ our diagrammatic approach yields the exact result of Eq.~(\ref{FexG<cc0}). The analysis of this Section supports the validity of the proposed theoretical framework. In the next Section we consider stationary excited states with a smooth distribution of electrons in the conduction band and investigate the behavior of the exciton peak in different regimes. \subsection{Numerical results at finite {\em eh} density} \label{finite-t-sec} In this Section we study the PE problem for finite {\em eh} densities. From Eq.~(\ref{minmodham}) and the definition in Eq.~(\ref{newKtensor}) with $K\to W$ we see that \begin{eqnarray} W^{q}_{\subalign{&\mu\nu k\\& \alpha\beta k'}}&=& W^{q}_{\subalign{&\mu k+q\,\nu k\\& \alpha k'\,\beta k'+q}} \nonumber\\ &=& W_{\mu k+q,\alpha k',\nu k,,\beta k'+q} \nonumber\\ &=& \delta_{\mu\beta}\delta_{\alpha\nu}[\delta_{\mu c}\delta_{\alpha v}+\delta_{\mu v}\delta_{\alpha c}]U/\mbox{$\mathcal{L}$}. \end{eqnarray} Inserting this result into Eq.~(\ref{se<1}) and the analogous for the greater self-energy we obtain \begin{subequations} \begin{alignat}{2} &\Sigma^{<}_{p}(\omega)\equiv \Sigma^{<}_{cc,p}(\omega)= iU^{2}\sum_{q}f_{v p-q} L^{q,<}(\omega-\epsilon_{v p-q}), \nonumber\\ &\Sigma^{>}_{p}(\omega)\equiv \Sigma^{>}_{cc,p}(\omega)= -iU^{2}\sum_{q}\bar{f}_{v p-q}L^{q,>}(\omega-\epsilon_{v p-q}), \nonumber \end{alignat} \end{subequations} where we defined \begin{equation} L^{q,\lessgtr}(\omega)\equiv\frac{1}{\mbox{$\mathcal{L}$}^{2}}\sum_{p_{1}p_{2}} L^{q,\lessgtr}_{\subalign{&cvp_{1}\\&vcp_{2}}}(\omega). \label{Lq<tot} \end{equation} In the calculations we solve Eq.~(\ref{pseudoeigen}) for different interaction strengths $U$ and occupations $f_{\alpha p}$. We consider a valence band with energies in the interval $[-w/2,w/2]$ and dispersion $\epsilon_{vk}=(w/2)\!\cos k$ and a conduction band with energies in the interval $[w/2+\Delta,3w/2+\Delta]$ and dispersion $\epsilon_{ck}=-(w/2)\!\cos k +w +\Delta$; $w>0$ is the bandwidth of both bands. The insulator has a direct gap of strength $\Delta$ at $k=0$. The electron occupations $f_{\alpha k}$ in the excited state are Fermi-Dirac distributions with the same temperature $T$ and {\it different} chemical potentials $\mu_{\alpha}$ \begin{equation} f_{\alpha k}=\frac{1}{e^{(\epsilon_{\alpha k}-\mu_{\alpha})/T}+1}, \quad \alpha=v,c \,. \label{excpop} \end{equation} \begin{figure}[tbp] \includegraphics*[width=.46\textwidth]{LLess.pdf} \caption{Log-plot of $L^{q,<}$ (in arbitrary units) at $q=0$ according to Eq. (\ref{L<approx4}) (dashed black line) and Eq. (\ref{Lexact}) (solid red line). The inset shows the difference between the two curves.} \label{Lless} \end{figure} \begin{figure}[bp] \includegraphics*[width=.31\textwidth]{specD.pdf} \includegraphics*[width=.15\textwidth]{Zx2.pdf} \caption{Left panel: lesser Green's function $-iG^{<}_{cc , 0}(\omega)$ (in arbitrary units) for different densities of the conduction electrons $n_{c}$. Right panel: Dependence of the exciton weight $Z_{X}$ on $n_{c}$.} \label{specD} \end{figure} Let us start by assessing the accuracy of the two-particle correlation functions in Eqs. (\ref{L<approx4}) and (\ref{L>approx4}). In Fig. \ref{Lless} we compare the numerical outcome of $L^{q,<}$ in Eq. (\ref{Lq<tot}) obtained by using the approximation of Eq. (\ref{L<approx4}) and the exact result of Eq. (\ref{Lexact}). The system parameters are $\mathcal{L}=80$, $\Delta=w/4 =1 \, \mathrm{eV}$, $T=4000 \, \mathrm{K}$ , $\mu_{v}=2.35\, \mathrm{eV}$, $\mu_{c}=2.65\, \mathrm{eV}$, $U=2\, \mathrm{eV}$, $\eta=w/(4\mathcal{L})$. With these parameters the number of conduction electrons per unit cell is $n_{c}=\frac{1}{\mathcal{L}}\sum_{k}f_{ck}\approx 10^{-2}$ and the solution of Eq.~(\ref{pseudoeigen}) for $q=0$ yields an exciton state with binding energy $b_{X}\approx 0.42\, \mathrm{eV}$. The accuracy of our approximation is excellent in the entire frequency domain. In particular both the exciton structure at $\approx 0.56\,\mathrm{eV}$ and the continuum of {\em eh} excitations above $\Delta = 1\,\mathrm{eV}$ are well reproduced; the relative error never exceeds 0.5\% and reaches its maximum at the exciton energy. \begin{figure}[tbp] \includegraphics*[width=.4\textwidth]{specU.pdf} \includegraphics*[width=.4\textwidth]{specTemp.pdf} \caption{Lesser Green's function $-iG^{<}_{cc , 0}(\omega)$ (in arbitrary units) for different interaction strength $U$ (top panel) and temperatures $T$ (bottom panel).} \label{specU} \end{figure} According to Eq.~(\ref{photocurr3}) the energy resolved photocurrent perpendicular to the surface is proportional to $G^{<}_{cc , 0}(\epsilon-\omega_{0})$. In Fig. \ref{specD} (left panel) we show $G^{<}_{cc , 0}(\omega)$ for different carrier densities $n_{c}$. At very low density $n_{c}\lesssim 10^{-4}$ the system is essentially in equilibrium and the photocurrent is vanishingly small (not shown). At density $n_{c} \approx 10^{-3}$ a {\em qp} peak at $\omega \approx 3\, \mathrm{eV}$ appears. This corresponds to the removal energy of an excited electron from the bottom of the conduction band. This peak was absent for the singular occupation of the previous Section, i.e., $f_{ck}=\delta_{k0}$, since in that case $T=0$. At $n_{c} \approx 10^{-3}$ the exciton peak at $\epsilon_{X}=\epsilon_{c0}-b_{X} \approx 2.5\, \mathrm{eV}$ is still not visible because the exciton weight $Z_{X} = \int_{-\infty}^{\epsilon_{c0}} \frac{d\omega }{2\pi}A(\omega)$ is still too small. The dependence of $Z_{X}$ on the density of conduction electrons is shown in the right panel of Fig. \ref{specD} and it is by and large linear. At higher density both the {\em qp} peak and the exciton peak become more pronounced. However, the latter acquires an {\it asymmetric} shape and an intrinsic {\it broadening}. The broadening is not related to the lifetime of the exciton (which is infinite in our model) but origins from the fact that an electron with momentum $k$ participates to the formation of excitons of different total momentum. Of course the probability of finding an electron with $k=0$ in an exciton with total momentum $q$ decreases with increasing $|q|$ and hence with increasing the binding energy of the exciton. Thus the broadening is asymmetric and proportional to the exciton bandwith. In Fig. \ref{specU} we illustrate the evolution of $G^{<}_{cc , 0}(\omega)$ by varying the interaction strength $U$ (top panel) and the effective temperature $T$ (bottom panel) at fixed density $n_{c}=10^{-2}$. In the first case we clearly observe how the excitonic state develops. Starting from $U=0$ the exciton peak splits off from the {\em qp} peak and moves toward lower energies acquiring spectral weight and spreading over a finite energy window. If we lower the temperature at fixed $U$ the bottom panel indicates that the exciton peak shrinks and raises. However, the spectral weight $Z_{X}$ remains essentially constant (not shown). This suggests that the exciton peaks in TR-PE experiments should become more pronounced with increasing the delay between the pump and probe pulses since the excited electron liquid in the conduction band (initially very hot) has more time to cool down before getting probed. \begin{figure}[tbp] \includegraphics*[width=.46\textwidth]{specK.pdf} \caption{Lesser Green's function $-iG^{<}_{cc ,k}(\omega)$ (in arbitrary units) for different momenta $k$ of the conduction electron. The (red) curve in the background is the integrated quantity $-i \int dk \,G^{<}_{cc ,k}(\omega)$.} \label{specK} \end{figure} \begin{figure}[bp] \includegraphics*[width=.36\textwidth]{Spect.pdf} \caption{Momentum resolved and energy resolved excited spectral function $A_{k}(\omega)$ in arbitrary units. The dashed line corresponds to the exciton dispersion of the system in equilibrium. } \label{ExcDisp} \end{figure} We have also calculated $G^{<}_{cc , k}(\omega)$ for different momenta $k$ of the conduction electron. This quantity is relevant to address angle-resolved experiments. In Fig.~\ref{specK} we plot $-iG^{<}_{cc , k}(\omega)$ in the range $0<k<\pi/8$. For $k>\pi/8$ the lesser Green's function is strongly suppressed by the Fermi function $f_{c}(\omega)$, see Eq.~(\ref{heuristic6}). It is interesting to observe that the angle-resolved photocurrent gives, in principle, access to the dispersion of the {\em qp} bound in an exciton. In order to better appreciate this point we show in Fig.~\ref{ExcDisp} the spectral function $A_{k}(\omega) = i[G^{\rm R}_{cc,k}(\omega)-G^{\rm A}_{cc,k}(\omega)]$ for the same parameters of Fig.~\ref{specK}. From Eqs.~(\ref{mainsigma}) and (\ref{graexact}) we expect that the peaks in $A_{k}(\omega)$ occur at the bare energy $\epsilon_{ck}$ and at $\epsilon_{v k-q}+\Omega^{X q}$ where $\lambda=X$ labels the energy needed to excite an exciton of momentum $q$. In the quasi-stationary regime the residue $\bar{f}_{v k-q}\bar{F}^{\lambda q}+f_{v k-q}F^{\lambda q}$ of Eq.~(\ref{mainsigma}) is largest for $q\simeq k$ and hence the self-energy is dominated by the pole in $\epsilon_{v0}+\Omega^{X k}$. The superimposed dashed line in Fig.~\ref{ExcDisp} corresponds to the value of $\epsilon_{v0}+\Omega^{X k}$ as obtained from an {\em equilibrium} calculation. More precisely we have solved Eq.~(\ref{pseudoeigen}) with equilibrium occupations and then identified $\Omega^{X k}$ as the lowest (split-off) positive energy. If we write $\Omega^{X k}=\epsilon_{ck}-\epsilon_{v0}-b_{X,k}^{\mathrm{eq}}$ (where $\epsilon_{ck}-\epsilon_{v0}$ is the noninteracting excitation energy) then $\epsilon_{v0}+\Omega^{X k}=\epsilon_{ck}-b_{X,k}^{\mathrm{eq}}$. From Fig. \ref{ExcDisp} we see that $-iG^{<}_{cc , k}(\omega)$ is peaked in $\epsilon_{ck}$ and in the neighborhood of $\epsilon_{ck}-b_{X,q}^{\mathrm{eq}}$, thus confirming the physical picture that the bare conduction electron splits into a dressed conduction {\em qp} and into a bound {\em qp}. The discrepancy between the low-energy peak in $A_{k}(\omega)$ and the equilibrium calculation (dashed line) is due to the finite population of electrons in the conduction band. In general, the larger is $n_{c}$ and the more the bound {\em qp} dispersion differs from the one obtained by performing an equilibrium calculation. This points to the importance of solving the BSE with proper populations, as discussed in Section \ref{BSELsec}. It is worth noting that the bound {\em qp} dispersion depends on the band structure of the solid and can differ substantially from the one of Fig.~\ref{ExcDisp}. Nevertheless, our theory is not limited to the minimal model of Eq.~(\ref{minmodham}) and it can be applied to make predictions on real materials. \section{Summary and Conclusions} \label{conclusions-sec} We developed a first-principles many-body diagrammatic approach to address TR and angle-resolved PE experiments in insulators and semiconductors with a low-energy spectrum dominated by exciton states. The time-dependent photocurrent can be calculated from a single-time convolution of the nonequilibrium lesser Green's function and embedding self-energy. The latter is independent of the interaction and it is completely determined by the shape of the probe pulse and by the dipole matrix elements. The calculation of the lesser Green's function does, in general, require the solution of the two-time Kadanoff-Baym equations.\cite{SvLbook,KBbook,KB.2000,DvL.2007,MSSvL.2009,BB.2013,PvFVA.2009,SBP.2016,SB.2016} However, if we are interested in probing the excited system after the pumped electrons have reached a thermal distribution (in the conduction band) then a quasi-stationary picture applies. In this regime one can solve the simpler one-time Kadanoff-Baym equations for the populations and then use these populations as inputs for the many-body approach presented in this work. The take-home message is that excitonic features in TR-PE emerge provided that (1) the self-energy diagram contains the HSEX vertex and (2) {\em excited qp} Green's function are used to evaluate the self-energy diagrams. The proposed theoretical framework has been applied to a minimal model Hamiltonian. We demonstrated that if the system is in a pure state with just one exciton then the many-body solution for the lesser Green's function coincides with the exact solution. At finite temperatures we studied several features of the exciton peak. In addition to the intuitive red-shift with increasing the strength of the screened interaction we highlighted an asymmetric broadening which becomes more pronounced with increasing the density of electrons in the conduction band. We also showed that angle-resolved TR-PE spectroscopy can be used to calculate the bound {\em qp} dispersion and that this dispersion is in general different from the one obtained by solving the equilibrium BSE. The proposed many-body approach is not the only first-principle method to tackle TR-PE spectra. Another popular method is Time-Dependent Density Functional Theory (TDDFT) which has already been applied to finite systems\cite{DGBCWR.2013,LDGR.2016,WDGCR.2016} and, as it was recently shown, could be used for solids as well.\cite{BRPE.2016} However, in practical applications TDDFT is implemented with local functionals of time and space and the resulting spectrum is peaked at the Kohn-Sham single particle energies. This is not always satisfactory and the only remedy consists in developing ultra-nonlocal functionals as discussed in Ref.~\onlinecite{USvL.2014}. Our work clearly shows that local functionals cannot describe exciton peaks in TR-PE. Finally we wish to point out that a first-principle approach to TR-PE experiments is crucial for the correct physical interpretation of the behavior of the spectral features as the intensity and envelop of the pump field is varied. Our work represents a first step in this direction and paves the way toward a more general theory and numerical approach to access the far-from-relaxed regime of the system during and shortly after the action of the pump. \subsection*{Acknowledgements} We acknowledge financial support by the Futuro in Ricerca Grant No. RBFR12SW0J of the Italian Ministry of Education, University and Research MIUR. G.S. and E.P. also acknowledge EC funding through the RISE Co-ExAN (GA644076). D.S. and A.M. also acknowledge funding from the European Union project MaX Materials design at the eXascale H2020-EINFRA-2015-1, Grant Agreement No. 676598 and Nanoscience Foundries and Fine Analysis - Europe H2020-INFRAIA-2014-2015, Grant Agreement No. 654360.
\section{Introduction} Recent development in the theory of disease spreading on networks has lead to remarkable success: real time simulation and accurate predictions have become possible \cite{Colizza}. In these calculations the input information about the network of social contacts and the temporal behavior is taken from the pre-epidemic period, which may be misleading \cite{Butler} as people react to the process, e.g., by cutting (at least temporarily) friendly contacts and rewiring their network connections. This type of reaction is crucial from the point of view of spreading and it may lead to the emergence of new states and phases that are absent in single epidemic dynamics \cite{Gross}. Here we investigate the simultaneous effect of changing the nature of the relationships and the spreading process on a simple model. Contagion processes, such as spreading of diseases, rumours, or ideas, are affected by the type of relations between individuals in social networks. Most of research has been devoted to studying the dynamics of spreading processes, on networks with only positive types of interactions (i.e., friend, trust, or collaboration) \cite{Vespignani,SI, Castellano, Meloni,rumour, Guo}, while in real networks the relations can be negative (i.e, hostile or distrusting). Social networks with both types of relationships can be modelled as signed networks, in which edges are labeled with positive and negative signs \cite{signed, Lesk, Easley,signed2}. In social networks, the relationship between two persons can be affected by a third person. The relationships are balanced if two persons, who are friends, have the same attitude (friendly or unfriendly) toward a third one, otherwise in order to decrease tension, one of them must change his or her attitude or they have to stop their friendship. This concept was introduced for the first time by Heider in the framework of the balance theory \cite{Heider}. Heider considered triples and defined a triple as unbalanced if the product of its edge signs is negative. Cartwright and Harary worked out the mathematics of balance theory \cite{Harary}. They showed that a complete network is structurally balanced if either all the edge signs are positive, or the network can be divided into two clusters such that the signs of edges are positive within each cluster and edges between the clusters have negative signs. This definition corresponds to the fact that in a balanced state the product of edge signs of each cycle in the network is positive, i.e., there is no cycle with an odd number of negative edges \cite{Harary,Easley}. The presence of cycles with an odd number of negative edges is equivalent to the notion of frustration in spin glasses \cite{SpinGlass}. Recently, dynamical models have been introduced to describe the evolution of the network toward a balanced structure \cite{Galam, Macy, Marvel, active, cooperation}. It is assumed that if a network is not initially in a balanced structure, the system tends to increase the number of balanced triples by single flipping of the signs of edges and attempts to achieve in this way a balanced structure. Thus the rearrangement of positive and negative edges in signed networks aims at minimizing social tension or frustration in the network. Hence signed networks can be studied in the framework of energy landscapes with local minima \cite{Galam, Antal,landscape}. The configurations of complete graphs with the lowest possible energy are balanced states, in which all pair nodes in the network are friends, or the network is divided into two groups of mutual friends who are unfriendly toward each other. However, due to the local dynamics, the system may get stuck in local minima. These are the so-called jammed states, which prevent convergence to the balanced state \cite{Kulakowski}. If a dynamical process, which changes the state of nodes, runs on a signed network, the evolution of edge signs may be affected by the evolution of nodes. Recently much effort has been devoted to studying the co-evolution of edge signs and node states \cite{altafini1, altafini, belief, belief2, diffusion, diffusion2, Singh, Singh2}. For example, Shi \textit{et al.} studied the evolution of opinions over signed social networks \cite{belief}. They showed that relative strengths and structures of positive and negative relations have an essential effect on opinion convergence. Ehsani \textit{et al.} presented a model for diffusion process on signed networks \cite{diffusion2} and showed how balanced clusters can act as obstacles to diffusion process. Furthermore, Singh \textit{et al.} showed that the edge adaptation dynamics according to the Hebbian rule, in which strength of edges is evolved in accordance with the dynamical states of nodes, leads an initially unbalanced network to a structurally balanced state \cite{Singh}. In this paper, we study the interplay of sign evolution of edges and a disease spreading process on a signed network. We consider the susceptible-infected (SI) model, as the simplest epidemic model \cite{Vespignani,SI}, on a complete graph. The SI model, in which individuals can be in one of susceptible or infected states, represents pathogens, where there is no recovery from the disease and the ill persons remain infectious . In a standard network, i.e. a network with only positive type of edges, the SI model evolves to a trivial limiting state, in which all individuals are infected. However, in signed networks, disease propagation is affected by the edge types. In this context negative edges may mean simply aversion of getting into contact and the idea is that negative edges do not transmit the disease. The problem becomes nontrivial as there are two parallel dynamics: One for the spreading process and one for achieving structural balance. The main question is how should the relationships be among individuals in order to simultaneously minimize the social tension and disease propagation in a society? We introduce an energy function that describes interrelation between the structural balance and the spreading process. Our approach is based on analyzing the total energy-landscape of the model. We show that unfriendly interactions prevent the spreading of infection over whole network and the existence of these edges may result in several separated, disjunct infected clusters. In other words, the structure of the network may lead to a type of ``immunization.'' The paper is organized as follows. In Sec.~II, we define the SI epidemic model on a signed network with two types of connections and present a framework based on energy landscape enabling us to describe balanced configurations. In Sec.~III. we describe the Monte-Carlo method. The results of Monte-Carlo simulations and discussions are presented in Sec.~IV. The paper is concluded in Sec.~V. \section{The model} Let us consider a complete signed network with $n$ nodes. The nodes represent individuals whose relationships are ``friendly'' or ``unfriendly''. Each edge $(i,j)$, is labeled with a positive or negative sign, denoted by $J_{ij}=\pm 1$. A positive sign represents friendship and a negative sign shows aversion. A balanced structure is achieved if the sign of all triples of the network is positive, where sign of a triple $(i,j,k)$ is defined as $J_{ij} J_{jk} J_{ki} $. We assume that a disease spreads on the signed network following the SI model dynamics \cite{SI}. The state of each node $i$ is represented by $S_i$, which is $S_i=+1$ if the node is susceptible and is $S_i=-1$ if it is infected. Initially, a fraction of nodes, denoted by $\rho_0$ , is infected. In a signed network, transmission of disease through the edges depends on the friendly or unfriendly state of edges. For simplicity we assume that transmission through unfriendly edges is not possible. The evolution of the edge signs is governed by a generalized balance criterion, which considers not only the Heider condition but also the states of the nodes. Let us describe the co-evolution using the notion of an energy function for the system. A pair connection, i.e. an edge with two end nodes, can be in one of six possible configurations shown in Fig.~\ref{f1}, in which solid and dashed edges show friendly and unfriendly relationships, respectively, while filled and open circles correspond to the infected and susceptible states, respectively. Among these pair connections, only state $(e)$ is effective in spreading of disease. One can make 20 distinct triples based on these six different configurations for pair connections, as shown in Fig.\ref{f2}. A triple is called unbalanced if either has at least one pair connection of type $(e)$ or be structurally unbalanced according to Heider's rule. \begin{figure} \begin{center} \scalebox{0.3}{\includegraphics[angle=0]{pair_connec.eps}} \end{center} \caption{Six different configurations for state of an edge and its end nodes. Solid (dashed) edges represent friendly (unfriendly) relations and filled (open) circles show infected (susceptible) individuals. } \label{f1} \end{figure} \begin{figure} \begin{center} \scalebox{0.32}{\includegraphics[angle=0]{patterns.eps}} \end{center} \caption{Balanced and unbalanced distinct configurations of a triple. Triples, enclosed in the dashed loop, are unbalanced. } \label{f2} \end{figure} \begin{figure}[t] \begin{center} \scalebox{0.50}{\includegraphics[angle=0]{rules.eps}} \end{center} \caption{Different possible configurations for evolution of an edge and its end nodes in each update step. } \label{f1a} \end{figure} \begin{figure}[t] \begin{center} \scalebox{0.35}{\includegraphics[angle=0]{jamm_example.eps}} \end{center} \caption{A jammed state with the total energy $H=-0.2$ for a network of size $n=5$. Red dashed (blue solid) lines: unfriendly (friendly) edges. Red (empty) circles: infected (susceptible) nodes. } \label{f5ex} \end{figure} In accordance with Heider's balance theory, the balanced or unbalanced status of a triple $(i,j,k)$ is due to the energy contribution $H_s=-J_{ij}J_{jk}J_{ki}$, as $H_s=+1 (-1)$ represents that the triple has an unbalanced (a balanced) edge configuration. The total energy contribution of the network due to edge signs is defined as the sum of $H_s$ on all triples divided by the total number of triples. Similar to the Heider's structural balance theory, we define an energy contribution $H_p$ for each triple, such that $H_p=+1 (-1)$ determines that a triple is in a node unbalanced (balanced) configuration. That means if for a triple $H_p=+1$, the node states of the triple are not stable and disease tends to spread from an infected node to its friendly susceptible neighbors. This occurs if the triple has at least one pair connection of type $(e)$. By this definition, the energy contribution $H_p$ of a triple $(i,j,k)$ is given by \begin{eqnarray} \label{He} H_{p}=-\Big[&&(S_iS_j)^{\frac{3-J_{ij}}{2}}(S_jS_k)^{\frac{3-J_{jk}}{2}}+\nonumber\\ &&(S_jS_k)^{\frac{3-J_{jk}}{2}}(S_kS_i)^{\frac{3-J_{ki}}{2}}+ \nonumber \\ &&(S_kS_i)^{\frac{3-J_{ki}}{2}}(S_jS_i)^{\frac{3-J_{ji}}{2}}-1\Big]/2. \end{eqnarray} Therefore, a balanced or unbalanced state for nodes and edges of a triple is separately determined from $H_p$ and $H_s$ functions. For each triple, nodes (edges) are not in a balanced state if $H_p$ ($H_s$) energy function is equal to $+1$. Hence, if at least one of these functions is equal to $+1$, the triple is called unbalanced. We define the total energy $H$ of the network as sum of a combination of $H_p$ and $H_s$ over all signed triples, divided by the total number of triples. $H=-1$ represents a fully balanced configuration for the network, while $H>-1$ indicates the presence of unbalanced triples. By this definition the total energy $H$ is given by \begin{eqnarray} \label{Hamiltoni} H=-\frac{1}{\binom{n}{3}}\sum_{ijk} \Big[H_{p}(H_{s}-1)-(H_{s}+1)\Big]/2 \end{eqnarray} Initial configurations with different ratio of friendly to unfriendly edges can be chosen, which each one leads to a different steady state. An initially random configuration, in which all edges are unfriendly is structurally unbalanced with maximum energy $H=+1$. When the dynamics is started from this configuration, the system has the possibility to get trapped in all other configurations with $H<+1$. At first, we start the co-evolution from this configuration and a small fraction of nodes is initially infected. The node and edge states change in such a way to reduce the total energy of the system. We describe the configuration updating procedure in the next section. Using the Monte Carlo method and energy minimization, we obtain an energy minimum in which the network is balanced or near-balanced (jammed state). \section{Monte-Carlo Simulation} The rules that govern the evolution of an edge and its end nodes (a pair connection), are presented in Fig.~\ref{f1a}. Each of pair connections, shown in Fig.~\ref{f1}, can switch to any other ``possible'' one. The adaptation rules for pair connections can be summarized as follows: \begin{itemize} \item If end nodes are both susceptible or infected, the sign of the connecting edge changes. \item If one node is susceptible and the other is infected and the edge is friendly, the disease spreads with probability $\alpha$ and subsequently the sign of the edge may change. \item If one node is susceptible and the other is infected and the edge is friendly, the disease does not spread with probability $1-\alpha$. The sign of the edge may change. \item If one node is susceptible and the other is infected and the edge is unfriendly, nothing happens. \end{itemize} According to the above rules, if a pair connection of types $(a)-(d)$ is randomly chosen, the state of the end nodes remains unchanged and it is only possible to flip the sign of the connecting edge. The pair connection of type $(e)$ is evolved considering the SI disease spreading. That means with probability $\alpha$ the susceptible node gets infected and subsequently the sign of interaction may change. However, with probability $1-\alpha$, disease does not spread and the state of the end nodes remains unchanged, subsequently it is possible that the sign of the connecting edge is flipped to the unfriendly type. We start the evolution of the network from an initial state, in which a fraction $\rho_0$ of nodes is randomly infected. We also assume that all edges are initially unfriendly, i.e. $H_s=+1$ for all the triples. In every Monte Carlo step, a pair connection is randomly chosen and evolved to one of corresponding possible configurations, shown in Fig.~\ref{f1a}. When a pair connection is changed, the (balanced or unbalanced) state of the all triples, which share that pair connection, can also be changed. There is a ``global constraint'': In each step, we check the total energy from Eq.~\ref{Hamiltoni}. In the case that the total energy is less than the previous step, the new configuration is accepted. In the case that the energy doesn't change, the evolution is allowed with probability of $1/2$. The process continues until the network reaches either global minimum ($H=-1$), or a local minimum ($H>-1$), i.e. a jammed state. We observe that in our model a jammed state can appear in a network of size at least 5, while in the ``pure'' social balance problem it turns out that jammed states occur, when $n = 9$ and $n\geq11$ \cite{Antal}. For instance, Fig.~\ref{f5ex} shows a jammed state with total energy $H=-0.2$ for a network of size $n=5$. One can simply show that no change in node and/or edge states, according to Fig.~\ref{f1a}, can decrease the total energy of the configuration. \begin{figure}[t] \begin{center} \scalebox{0.3}{\includegraphics[angle=0]{Jammed-20.eps}} \end{center} \caption{Density of jammed states vs. infection probability $\alpha$ and fraction of initial infected individuals, $\rho_0$. } \label{f3} \end{figure} \begin{figure}[] \centering \subfigure[]{ \centering \includegraphics[width=0.2\textwidth]{a.eps} } \subfigure[]{ \centering \includegraphics[width=0.2\textwidth]{b.eps} } \subfigure[]{ \centering \includegraphics[width=0.2\textwidth]{c.eps} } \subfigure[]{ \centering \includegraphics[width=0.2\textwidth]{d.eps} } \caption{Balanced clusters of a graph with $n=20$. Configuration $(a)$, in which the system has reached the global minimum energy, corresponds to $\alpha=0.5$ and $\rho_0=0.25$. Each of configurations of $(b)-(d)$ shows a jammed state and corresponds to $(b)$ $\alpha=0.3$, $\rho_0=0.15$, $(c)$ $\alpha=0.7$, $\rho_0=0.15$, $(d)$ $\alpha=0.9$, $\rho_0=0.25$. Filled (open) circles represent infected (susceptible) nodes. Within clusters, all nodes are connected by solid (friendly) edges with a cluster-specific color.} \label{f4} \end{figure} \section{Results} Figure~\ref{f3} shows density of jammed states in terms of the fraction of initial infected nodes, $\rho_0$, and the probability of infection $\alpha$. As we can see, the jammed states exist on the interval $\rho_0 <0.2$ and $\alpha >0.8$. In other words, for the large values of $\rho_0 (> 0.8)$ and the low values of $\alpha (< 0.2)$, the system has a global minimum energy. In this case the network is divided into two groups: one of susceptible and another one of infected nodes, as shown in Fig.~\ref{f4}$(a)$. Within each group, the nodes are connected with only the friendly edges while the edges connecting the two groups are unfriendly. With decreasing of $\rho_0$, the density of jammed states increases and the system gets trapped in one of the local energy minima. In this case the network is split into more than two clusters, each of them being purely susceptible or infected. Fig~.\ref{f4}$(b)$ shows a pattern in which the network is split into two susceptible clusters and one infected one. Also, Figs~.\ref{f4}$(c)$ and \ref{f4}$(d)$ show a pattern for susceptible and infected clusters, emerging for large values of $\alpha$. In Fig~.\ref{f4}$(c)$, the density of initial infected nodes is small ($=0.15$) and therefore there exists an infected cluster of small size and two larger susceptible clusters, while Fig~.\ref{f4}$(d)$ shows clusters for a larger value of $\rho_0 (=0.25)$ and there are two susceptible clusters and one infected one. However, in the all areas of Fig~.\ref{f4}, due to the balance property, the network self-organizes into stable patterns with a coexistence between infected and healthy nodes, such that disease cannot spread anymore. We can also show the propagation of disease in each Monte Carlo time step. Let's consider a complete network with 40 nodes, in which 15 nodes are infected at the initial time, i.e. $\rho_0=0.375$. For different values of infection probability $\alpha$, Fig.~\ref{f5} shows the density of infected nodes in terms of time steps, averaging over 100 realizations. As we see the system achieves a frozen state, where the number of infected nodes remains unchanged and disease spreading is stopped. The number of infected nodes at a frozen (jammed) state, grows with increasing $\rho_0$ and $\alpha$ as shown in Fig.~\ref{f6}. However, even for large values of $\alpha$, the density of infected nodes is less than 1 and a fraction of nodes remains susceptible. In other words, in the stationary state a coexistence of infected and susceptible nodes occurs. \begin{figure}[t] \begin{center} \scalebox{0.38}{\includegraphics[angle=0]{time.eps}} \end{center} \caption{Time evolution of the density of infected nodes on a complete network of $n=40$ nodes, vs. $t$ for $\alpha=0.2,0.5,0.8$. The initial density of infected nodes is $\rho_0=0.375$. } \label{f5} \end{figure} \begin{figure}[t] \begin{center} \scalebox{0.38}{\includegraphics[angle=0]{initial-alpha-20.eps}} \end{center} \caption{The fraction of nodes, which have been infected during the coevolution, in a frozen (jammed) state vs. $\rho_0$ and $\alpha$ for a network of size $n=20$. } \label{f6} \end{figure} As we already mentioned, we assumed that the co-evolution process is initially started from an unbalanced configuration with $H=+1$, in which all edges are unfriendly. In this case, the system achieves the global minimum energy or gets stuck in some local minima (jammed states). However there are many other choices for the arrangement of friendly and unfriendly edges at the initial state. Clearly a network with a ratio of friendly to unfriendly edges and a fraction of infected nodes, is initially unbalanced (includes unbalanced triples) and tends to evolve to a stable configuration with a minimum of tension. The evolution from an initial configuration is done based on a ``global constraint'', i.e. the status of a randomly chosen edge and its end nodes change with considering the global state of the system. Let's assume a friendly edge with susceptible and infected end nodes (a pair connection of type $(e)$) is randomly chosen. This pair connection can be evolved such that disease spreads with a probability through this edge or the status of the edge changes to unfriendly. However any changing may cause that the other triples (that share this pair connection) become unbalanced. If that is the case, then the system does not allow this changing. Hence the final configuration might be a jammed state in which unbalanced triples still exit. In this case we observe that some friendly edges, connecting susceptible and infected clusters, emerge. Such a configuration is shown in Fig.~\ref{f7}. There are two clusters of susceptible and infected nodes. Within the clusters, nodes are connected with (blue) friendly edges. However, there are a number of friendly edges (shown in red color), connecting the susceptible and infected clusters. In spite of the existence of these friendly edges between susceptible and infected nodes, the disease doesn't spread further, which means a local coexistence of susceptible and infected nodes can occur. The local coexistence of susceptible and infected individuals, which is due to social relationships and the global balance, occurs sometimes in the real society. From epidemiological point of view, a disease can be transmitted locally from one individual to its neighbors independently of other people's status. However the situation is different if we consider social tension and global social responses to disease in real society, where people have friendly or unfriendly relationships. If a susceptible individual gets infected (disease locally spreads), her or his friends may change (to unfriend) their connections, which in turn may cause the tension and unbalanced relationships to increase. Hence, individuals from media or their friendly connections learn to use different precautions and the ways to decrease the chance of transmission. In other words, a pressure (in the form of awareness, advertisement or publicity) is imposed by the society to reduce globally the disease propagation. That means when the spreading problem is combined with the social balance the transmission probability is effectively influenced by the global status of the system. That means when the spreading problem is combined with the social balance the transmission probability is effectively influenced by the global status of the system. \begin{figure}[t] \begin{center} \scalebox{0.24}{\includegraphics[angle=0]{dif_ini.eps}} \end{center} \caption{Connection of susceptible and infected nodes in a graph with $n=20$, where the system has been evolved from an arbitrary initial configuration. The nodes are connecting with blue friendly edges within each susceptible (infected) cluster, while red friendly edges connect the susceptible cluster to the infected cluster. For the sake of clarity, we do not show the dashed (unfriendly) edges between clusters. } \label{f7} \end{figure} \begin{figure}[t] \begin{center} \scalebox{0.38}{\includegraphics[angle=0]{initial-friend.eps}} \end{center} \caption{The fraction of nodes which become infected at the steady state vs. the ratio of initial $(t = 0)$ friendly to unfriendly connections, for network size $n=20$. } \label{f8} \end{figure} Figure~\ref{f8} also reflects a ``global protection'' against disease. If dynamics is initially started with a high friendly to unfriendly ratio, a small fraction of individuals will become infected at the steady state. This initial configuration has many unbalanced triples with at least a pair connection of type (e). To avoid disease spreading, some friendly contacts may change to unfriendly, which on the other hand may increase the social conflict. Hence the group of individuals with friendly connections (globally) oppose against disease, since if one gets infected it will increase the danger of contagion to other friends. This protection might be interpreted as a type of ``immunization'' strategy which is due to social relationships. \section{Conclusion} We have extended Heider's balance theory to describe co-evolution of a signed network structure and a disease spreading process on the network. We have considered a complete signed network and defined unbalanced configurations for the triples, where the nodes are in a susceptible or infected state and the edges can be friendly or unfriendly. We have introduced an energy function, which enables to define a dynamics for the edges and nodes of the network. The energy of the system is written as a combination of two terms related to the evolution of the edges and nodes. A configuration with the global minimum energy is called balanced. In this case, there are two clusters of susceptible and infected nodes; within the clusters nodes are connected by friendly edges, while two clusters are linked to each other only by unfriendly edges. This arrangement of edges prevents the disease from spreading from infected to susceptible nodes. ‌‌‌‌We have used the Monte-Carlo method and showed that with starting from an unbalanced configuration, in which all edges are unfriendly, the network may get stuck in one of its local energy minima (jammed states). In this case, more than two clusters of susceptible and infected nodes appear. Moreover, we observed that if the system is evolved from an unbalanced configuration with a random arrangement of friendly and unfriendly connections, it will achieve a jammed state in which some friendly edges emerge between susceptible and infected clusters and a local coexistence of susceptible and infected nodes occurs in the final, frozen state. The local coexistence, which is due to social relationships and the global balance, reflects a social protection against disease and might be interpreted as a type of ``immunization'' strategy. In this work we considered a complete network, in which all nodes are connected to each other. However more realistic networks are not complete and have inhomogeneities in the degree distribution, small-world property and modular structure. The study of co-evolution between disease spreading and social balance, including network properties, is a challenge for future work. \begin{acknowledgments} JK acknowledges support from H2020 FETPROACT-GSS CIMPLEX Grant No. 641191. \end{acknowledgments}
\section{Introduction} Blazars are the most violent class of active galactic nuclei. Their emission is known to be nonthermal-dominated, covering the entire electromagnetic spectrum from radio up to TeV $\gamma$-rays, with strong variability on all time scales \citep[e.g.,][]{Aharonian07}. Blazar spectral energy distributions (SEDs) are characterized by two broad, non-thermal components. The low-energy component, from radio to optical-UV, is generally agreed to be synchrotron radiation of ultrarelativistic electrons. The origin of the high-energy component, from X-rays to $\gamma$-rays, is still under debate. The leptonic model argues that the high-energy component is due to the inverse Compton scattering of either the low-energy synchrotron emission \citep[SSC, e.g.][]{Marscher85,Maraschi92} or external photon fields \citep[EC, e.g.,][]{Dermer92,Sikora94}, while the hadronic model suggests that the high-energy emission is dominated by synchrotron emission of ultrarelativistic protons and the cascading secondary particles resulting from photo-pion and photo-pair production processes \citep[e.g.,][]{Mannheim92,Mucke01}. It is of high importance to many aspects of high energy astrophysics to distinguish these two models, because it will put strong constraints on the blazar jet power, the physics of the central black hole, the origin of ultra-high-energy (UHE) cosmic rays and very-high-energy (VHE, i.e., TeV -- PeV) neutrinos. However, both models are generally able to produce reasonable fits to snap-shot SEDs of blazars \citep[e.g.,][]{Boettcher13}. Thus, additional diagnostics are necessary. An obvious choice would be through the identification of blazars as the sources of VHE neutrinos, which are the ``smoking gun'' of hadronic interactions \citep[e.g.,][]{Halzen97,Kistler14,Diltz15,Petropoulou15}. IceCube has reported detection of astrophysical VHE neutrinos, and there are hints that the origin of these neutrinos could be spatially connected to blazars \citep[e.g.,][]{Aartsen13,Kadler16}. However, in view of the low angular resolution of IceCube, so far the sources of these neutrinos are still unknown. An alternative is the study of light curves. The development of time-dependent leptonic models has been quite fruitful \citep[e.g.,][]{Joshi11,Diltz14,Weidinger15,Asano15}. Although one-zone leptonic models sometimes have difficulty in explaining the frequently seen symmetric light curves, some multi-zone leptonic models that explicitly include the light travel time effects (LTTEs) have successfully resolved that issue \citep[e.g.,][]{Chen14}. On the other hand, due to the more complicated cascading processes, hadronic models are generally stationary and/or single-zone \citep[e.g.,][]{Mastichiadis95,Cerruti15,Yan15}. Another possible discriminant is that leptonic and hadronic models require very distinct magnetic field conditions. Radio to optical polarization measurements have been a standard probe of the jet magnetic field. In particular, recent observations of $\gamma$-ray flares with optical polarization angle (PA) swings and substantial polarization degree (PD) variations indicate the active role of the magnetic field during flares \citep[e.g.,][]{Marscher08,Abdo10,Blinov15}. Several models have been put forward to explain these phenomena \citep[e.g.,][]{Larionov13,Marscher14,ZHC15}, and a first-principle magnetohydrodynamics (MHD) based model is also under development \citep{ZHC16}. For the high energy emission, \cite{ZHC13} have shown that by combining the infrared/optical and the X-ray/$\gamma$-ray polarization signatures, it would be possible to distinguish the two models. Several X-ray and $\gamma$-ray polarimeters are currently proposed and/or under development \citep[e.g.,][]{Hunter14}. However, despite remarkable progress that has been made to improve these high-energy polarimeters, they commonly suffer from limited sensitivity. If the high-energy polarization signatures vary as rapidly as the low-energy (optical) polarization, it will be difficult for these polarimeters to measure, as they will integrate over episodes of vastly different PAs. This prompted us to investigate the time-dependent high-energy polarization signatures of lepto-hadronic blazar models in more detail. In this paper, we present a newly developed 3D multi-zone time-dependent hadronic model code, 3DHad. This new code is based on the one-zone time-dependent Fokker-Planck (FP) based lepto-hadronic code of \cite{Diltz15}, but generalized to 3D multi-zone. By coupling with the 3D polarization-dependent ray-tracing routines of the 3DPol code developed by \cite{ZHC14}, we will derive the time-dependent radiation and polarization signatures across the whole blazar SED, including all LTTEs. Hence, we can study the general phenomenology of the light curves and time-dependent polarization signatures. Hadronic models generally require very high jet powers and magnetic fields. Therefore, we will put physical constraints on the allowed parameter space by estimating the available jet power and magnetic field in the case of a Blandford-Znajek \citep{BZ77} powered jet. With the above consideration, we will predict detailed time-dependent polarization signatures from proton-synchrotron dominated hadronic models based on various jet conditions and flaring mechanisms. These results can be compared with multiwavelength light curves and future high-energy polarization measurements, putting stringent constraints on the blazar jet conditions in a hadronic model. We will describe our code setup and physical considerations in Section \ref{code}, sketch our model setup in Section \ref{model}, present case studies in Sections \ref{result1} and \ref{result2}, and discuss the results in Section \ref{discussion}. \section{3DHad and Physical Considerations \label{code}} In this section, we will first introduce 3DHad and its main features, and how it is coupled with 3DPol. Then we will justify the physical considerations for the hadronic model and put constraints on the parameter space. Finally, for code verification purposes, we will compare 3DHad with the one-zone hadronic code developed by \cite{Diltz15}, and illustrate the similarities and differences. \subsection{Code Features} 3DHad is a time-dependent multi-zone nonthermal electron and proton evolution code based on FP equations. The code is written in a module-oriented style in FORTRAN 95, fully parallelized by MPI. This code can directly take inputs of each zone, including geometry, magnetic field information, particle evolution, etc., either from inhomogeneous blazar model parameters, or from first principle simulations such as MHD and particle-in-cell (PIC) simulations. Based on the inputs, each zone will solve FP equations for the evolution of electron and proton energy distributions. In this first application that we present here, we will not consider any particle transfer between the zones, hence the FP equations in each zone are independent. We apply an implicit Euler method to solve the FP equations numerically. The solutions of FP equations in each zone are based on the work by \cite{Diltz15}. The general form of the FP equation is \begin{equation} \frac{\partial n(\gamma,t)}{\partial t} = \frac{\partial}{\partial \gamma} (K\gamma^2 \frac{\partial n(\gamma,t)}{\partial \gamma}) - \frac{\partial}{\partial \gamma}((\dot{\gamma}+ 2K\gamma)n(\gamma,t))-\frac{n(\gamma,t)}{t_{esc}}+n_{inj}(\gamma,t) \label{fpeq} \end{equation} where $K=1/(2t_{acc})$. The underlying assumption in Eq. \ref{fpeq} is that the particle evolution is governed by four processes, a fast first-order Fermi acceleration process characterized by $n_{inj}(\gamma,t)$, a second-order Fermi acceleration process characterized by a mass-independent acceleration time scale $t_{acc}$, the synchrotron cooling on $\dot{\gamma}$, and particle escape parameterized by an energy-independent escape time scale $t_{esc}$. In a steady, quiescent state, nonthermal particles are continuously injected into each zone with a power-law distribution in energy, \begin{equation} n_{inj}(\gamma,t)=n_0\times\gamma^{-p},~\gamma_{min}<\gamma<\gamma_{max} \end{equation} which represents a rapid particle acceleration mechanism, such as diffusive shock acceleration and magnetic reconnection \citep{Guo16} on time scales much shorter than the time resolution of our simulation. In addition to this process, the emission region may contain microscopic turbulence, which will mediate stochastic second-order Fermi acceleration. We take $t_{acc}=1/\alpha$ as the stochastic acceleration time scale, where $\alpha=\frac{d\gamma}{dt}/\gamma$ is the stochastic acceleration rate. The exact form of $\alpha$ depends on the turbulent acceleration model and the turbulence parameters. A detailed treatment of these aspects is beyond the scope of this paper. Here we simply take $t_{acc}$ to be independent of particle energy. In general, the Compton cooling rates in hadronic models are negligible compared to synchrotron losses due to the large magnetic fields \citep[e.g.,][]{Boettcher13}, especially in the parameter space that we will employ here. Finally, since we do not consider particle transport between zones in this first application, we simply use an energy-independent escape time scale $t_{esc}$ to mimic the process that particles leave a particular zone and no longer contribute to the emission there. While the original one-zone hadronic code in \cite{Diltz15} is very comprehensive, including all details of pion production, $\gamma$-$\gamma$ interactions, explicit muon and pion evolution, etc., in this paper, we will restrict the parameters to a regime in which the proton energy losses and radiative outputs are strongly dominated by proton synchrotron emission, thus neglecting photo-pion and photo-pair production processes, and following only the electron and proton evolution. In this way, the photon transfer between each zone will not affect the particle evolution. The parameter restrictions inherent in this assumption will be detailed in the next section. 3DHad solves the FP equations for the particle distributions in each zone at each time step; in order to calculate the resulting emission, the derived time-dependent particle distributions will be fed into 3DPol \citep{ZHC14}, which has been upgraded to include synchrotron emission (and their polarization signatures) from heavier particles, such as protons. 3DPol can calculate the time-dependent radiation and polarization signatures based on the particle and magnetic field inputs. Since in the parameter regime adopted here, Compton scattering is negligible, radiation transfer between zones will not affect the particle evolution. Hence, the radiation transfer problem is reduced to a ray-tracing method. The gyroradius of a proton is given by \begin{equation} r_g=\frac{\gamma_p m_pc^2}{eB} \sim 3\times 10^6 \frac{\gamma_p}{B (G)}~cm \end{equation} For a magnetic field of $B \sim 10$~G, and the most energetic protons around $\gamma\sim10^9$, this yields a gyroradius of the order of $\sim 10^{14}$~cm, which is smaller than our spatial resolution in the emission region. Therefore, we can assume that all particles will radiate in their corresponding zones, and calculate the individual Stokes parameters in each zone. By adding up the ones that arrive at the observer at the same time, we naturally include all LTTEs. The execution of the combined 3DHad and 3DPol is efficient. For the runs that we will show in this paper, they take about 20 minutes on 500 CPUs on LANL clusters. Therefore, the code has the potential to do larger runs for more detailed physical modeling, e.g., with physical conditions derived from MHD simulations. \subsection{Physical Constraints and Assumptions \label{physics}} Hadronic blazar models usually require high magnetic fields and nonthermal particle energies close to the upper limits that blazars can plausibly provide based on our current understanding of accretion and jet formation processes \citep[e.g.,][]{Boettcher13,Cerruti15,Zdziarski15}. Here we estimate the resulting limits and put constraints on the hadronic model parameter space. We employ the conservation of magnetic flux in the jet to estimate the available magnetic field in the emission region, and the Eddington luminosity to constrain the total particle energy. The magnetic flux from the Blandford-Znajek mechanism is given by \begin{equation} \Phi_h \sim 1.4\times 10^{33}\frac{1}{f_{\Omega}(a)}L_{46}M_9 ~ G\, cm^2 \end{equation} where $f_{\Omega}(a)=a/(1+\sqrt{1-a^2})$ and $a$ is the dimensionless spin parameter of the black hole, $L_{46}$ is the magnetic jet luminosity in units of $10^{46}~erg\,s^{-1}$, and $M_9$ is the black hole mass in units of $10^9$ solar masses. Assuming conservation of the poloidal magnetic flux along the jet, and that the poloidal component is comparable to the toroidal component, the magnetic flux in the emission region is approximated by $B\,\pi R^2$, where $R = 10^{16} \, R_{16}$~cm is the radius of the emission region. Given a bright blazar ($L_{46} \sim 100$) and a large central black hole mass ($M_9 \sim 1$), we find the first constraint, \begin{equation} B\times R^2 \lesssim 10^{33}~G\,cm^2 \label{constraint1} \end{equation} or $B \lesssim 10 \, R_{16}^{-2}$~G. Assuming bulk motion of the blazar emission region with a Lorentz factor $\Gamma \gg 1$, the kinetic luminosity in protons is evaluated by \begin{equation} L_p \sim \pi R^2 \Gamma^2 c\, u_p \end{equation} where $u_p=m_p c^2 \int_1^{\infty} d\gamma n_p (\gamma) \gamma$ is the proton energy density in the rest frame of the emission region, and $n_p(\gamma)$ is the proton spectral number density in that frame. We expect that the total proton kinetic luminosity should not exceed the Eddington luminosity, which is given by \begin{equation} L_{\rm Edd} = 4\pi GMm_pc/\sigma_T \sim 1.2\times 10^{47} M_9~erg\,s^{-1} \end{equation} With a bulk Lorentz factor $\Gamma$ of a few tens, and using the same black hole mass as in Eq. \ref{constraint1}, we obtain the second constraint, \begin{equation} u_p \times R^2 \lesssim 10^{33}~erg \, cm^{-1} \label{constraint2} \end{equation} In spite of significant uncertainties in constraints on physical conditions in blazars, Eqs. \ref{constraint1} and \ref{constraint2} allow us to put some stringent constraints on parameters to be used for our models. For instance, hadronic models typically require magnetic fields exceeding $10~G$ \citep[e.g.,][]{Boettcher13,Cerruti15}. Hence by Eq. \ref{constraint1}, the size of the emission region in the comoving frame should generally be smaller than $10^{16}~cm$, which can be translated to a flare duration of $\sim 10~h$ in the observer's frame, assuming a typical Lorentz factor $\Gamma \sim 20$. Therefore, flares that last several days, in particular in the low-energy bands such as optical, where the LTTEs generally dominate, are unlikely to be of hadronic origin, unless some general physical conditions are varying on longer time scales. We will demonstrate this point in Sections \ref{result1} and \ref{result2}. \begin{figure}[ht] \centering \includegraphics[width=\linewidth]{LossRate.eps} \caption{Synchrotron and pion-production loss rates of a power law proton distribution with cut-offs $\gamma_{min} = 1.0$, $\gamma_{max} = 10^{8}$, spectral index $p_p = 2.2$ in an emission region of size $R = 10^{16}~cm$ and magnetic field of $B = 50~G$. Synchrotron losses generally dominate over pion-production losses for ultrarelativistic protons. \label{assumption2}} \end{figure} For this preliminary study, we will make some additional assumptions in order to avoid more complicated radiation-feedback calculations, so that only the electron and proton evolution are important. The assumptions are: \begin{enumerate} \item Proton and electron energy losses are dominated by synchrotron cooling; \item $\gamma\gamma$ opacity and pair-production are negligible; \end{enumerate} This restricts the parameter space in which our model is applicable, as detailed in the following. For assumption 1, we need to make sure that the synchrotron cooling for protons should be faster than the pion-production cooling rate. The synchrotron loss rate for protons is given by \begin{equation} \dot \gamma_{p,syn} = -\frac{c \sigma_{T} B^{2}}{6 \pi m_{e} c^{2}} \ (\frac{m_{e}}{m_{p}})^{3} \gamma_{p}^{2} \end{equation} and the pion production loss rate is given by \citep{Aharonian00} \begin{equation} \dot \gamma_{p,p\gamma} = -c \langle \sigma_{p\gamma} f \rangle n_{ph} (\epsilon^{*}) \epsilon^{*} \gamma_{p} \end{equation} where $\langle \sigma_{p\gamma} f \rangle \sim 10^{-28}~cm^{2}$ represents the elasticity-weighted $p\gamma$ interaction cross section, $\epsilon^{*} = 5.9 \times 10^{-8}~E_{19}^{-1}$ represents the energy of target photons interacting with protons of energy $E = 10^{19} E_{19}$~eV at the $\Delta$ resonance, and $n_{ph} (\epsilon)$ represents the target photon field for photo-pion production in units of photon energy normalized with respect to the rest mass of the electron, $\epsilon = h\nu/m_{e}c^{2}$. For a typical set of parameters of a hadronic blazar model, the two energy loss rates are plotted in Fig. \ref{assumption2}. By comparing the two rates, we find that synchrotron losses dominate for protons with Lorentz factors \begin{equation} \gamma_{p} > \frac{6 \pi m_{e} c^{2} \langle \sigma_{p\gamma} f \rangle n_{ph} (\epsilon^{*}) \epsilon^{*}}{\sigma_{T} B^{2}} \ (\frac{m_{p}}{m_{e}})^{3} \end{equation} Assuming that the relevant section of the target synchrotron photon spectrum in the comoving frame is in the form of a power-law, $n_{ph} (\epsilon) = n_{ph}^{0} \epsilon^{-\alpha}$, the above constraint can be written as \begin{equation} \gamma_{p} > \frac{6 \pi m_{e} c^{2} \langle \sigma_{p\gamma} f \rangle n_{ph}^{0} (\epsilon^{*})^{1 - \alpha}}{\sigma_{T} B^{2}} \ (\frac{m_{p}}{m_{e}})^{3} \end{equation} For the highest energy protons typically used in the lepto-hadronic modeling of FSRQs, $\gamma_{p, max} \sim 10^{8}$, the most efficient target photons for pion production have energies of $\epsilon^{*} = 590/\gamma_{p} \sim 6.0 \times 10^{-6}$. This is generally in the optical and UV bands, which is dominated by electron synchrotron emission. Using the delta approximation for the synchrotron power of electrons \citep{Boettcher12} and assuming a steady state electron distribution in the form of a power law, the constraint can then be rewritten in terms of the model parameters, \begin{equation} (10^{-17}B(G)\gamma_p)^{\frac{p_e-3}{2}}R(cm)n_{0,e}(cm^{-3})<10^{22} \end{equation} where $n_{0,e}$ is the normalization factor of the electron distribution, $p_e$ is the electron power-law index, $R$ is the radius of the emission region, and $\gamma_p$ is the proton Lorentz factor. As we can see, for a soft electron spectrum, $p_e\gtrsim 3$, given the physical constraints of Eqs. \ref{constraint1} and \ref{constraint2}, the above equation generally holds for all proton energies that significantly contribute to the radiative output. For hard electron spectrum, $p_e\lesssim 3$, the low-energy protons may be subject to dominant pion-production losses. However, the total radiative output of these low-energy protons will be negligible compared to the output by ultrarelativistic protons ($\gamma_p \gtrsim 10^7$) and can therefore be safely neglected. Assumption 2 requires that the $\gamma\gamma$ optical depth satisfies $\tau_{\gamma \gamma} (\epsilon_{1}) < 1$. This implies a minimum Doppler factor of \begin{equation} \delta_{D} > \sqrt[6]{\frac{\sigma_{T} d_{L}^{2} f_{\epsilon^{obs}}^{pk} (1 + z)^{2} \epsilon_{1}^{obs}}{4 m_{e} c^{4} t_{v}}} \label{deltaconstraint1} \end{equation} \citep{Dondi95}, where $d_{L}$ represents the luminosity distance of the source, $\epsilon_{1}^{obs}$ represents the highest observed energy of $\gamma$-ray photons, $f_{\epsilon^{obs}}^{pk}$ represents the observed flux of target photons and $t_{v}$ represents the variability time scale. The energy of the observed target photons in terms of the observed $\gamma$-ray photon energy is given by $\epsilon^{obs} = 2 \delta_{D}^{2}/[(1+z)^{2} \epsilon_{1}^{obs}]$. The observed flux at energy $\epsilon$ can be written in terms of the synchrotron photon field in the comoving frame of the jet, \begin{equation} f_{\epsilon} = \epsilon F_{\epsilon} = \frac{\delta_{D}^{4} m_{e} c^{2} V_{b} \epsilon^{2} \ n_{ph}(\epsilon)}{4 \pi d_{L}^{2} t_{lc}} \end{equation} where $t_{lc}$ is the light crossing time scale and $V_{b}$ represents the comoving volume of the emission region. High energy $\gamma$-rays of blazars typically peak around $\epsilon_{1}^{obs} \sim 1000$. The characteristic energy of target photons for pair-production in an FSRQ, such as 3C 279, is then $\epsilon^{obs} = 2 \delta_{D}^{2}/[(1+z)^{2} \epsilon_{1}^{obs}] \sim 0.33$, which is in the hard X-ray band. This suggests that proton synchrotron emission represents the primary target photon field for pair-production. Assuming the target photon field is in the form of a power law, the constraint of Eq. (\ref{deltaconstraint1}) can be rewritten as \begin{equation} \delta_{D} > \frac{1}{6}\sigma_{T} n_{ph}^{0}R \epsilon^{1 - \alpha} (1 + z) \end{equation} Again we apply the delta approximation for the synchrotron power of protons \citep{Boettcher12} and assuming a steady state proton distribution in the form of a power law, the constraint can then be rewritten in terms of the hadronic model parameters, \begin{equation} \frac{\delta_{D}}{1+z} \gtrsim 10^{-51}(10^{-17})^{p_{p} - 2} R^2 B^{p_p} n_{0,p}\gamma_{p, max}^{p_{p}-1} \end{equation} where $R$ is in units of cm, $B$ in units of G, and $n_{0, p}$ in units of cm$^{-3}$. With the physical constraint in Eq. \ref{constraint2} and a typical Doppler factor of $\sim 20$, the above constraint is satisfied for all parameter combinations employed in this study. Additionally, as it has been shown in many hadronic fittings \citep[e.g.,][]{Boettcher13,Cerruti15}, Compton scattering generally does not make a substantial contribution due to the large magnetic field, hence we will also neglect this effect here. \subsection{Comparison with One-zone Code \label{compare}} In order to verify the validity of our multi-zone hadronic radiation transfer approach, we compare the results of the one-zone code of \cite{Diltz15} to the results obtained with 3DHad+3DPol. We consider two sets of parameters for the quiescent state, Set 1 and 2, as listed in Table \ref{quiescent}. These parameters refer to the pre-flare equilibrium state, where all cells are characterized by the same set of parameters. The difference between these two parameter sets is that Set 1 has particle evolution time scales generally larger than the light crossing time scale, while in Set 2 the light crossing time scale is generally the longest relevant time scale. Both parameter sets obey the constraints derived above. In order to examine the flare features, we change the proton injection density rate for the entire emission region after equilibrium has been achieved: for Set 1, we choose $\dot{u}_{p,inj}= 1.2\times 10^{-2} erg\,s^{-1}cm^{-3}$; for Set 2, $\dot{u}_{p,inj}= 1.5\times 10^{-5} erg\,s^{-1}cm^{-3}$. Since the particle evolution time scales are longer than the light crossing time scale in Set 1, we expect that the light curves from the one-zone code and 3DHad+3DPol should appear similar. For Set 2, however, since 3DHad+3DPol explicitly includes the LTTEs, we expect that the light curve will appear more symmetric in time than calculated with the one-zone code, which does not include LTTEs. Fig. \ref{comparison} presents the results. While minor differences probably due to the different geometry and the formulas are noticeable, the results generally meet our expectation. As a result, we conclude that 3DHad+3DPol is in agreement with the corresponding one-zone model for an appropriate choice of geometry. \begin{table}[ht] \scriptsize \centering \begin{tabular}{|l|c|c|}\hline Parameters & Set 1 & Set 2 \\ \hline Bulk Lorentz factor $\Gamma$ & $20.0$ & $20.0$ \\ \hline Orientation of LOS $\theta_{obs}$ $(^{\circ})$ & $90$ & $90$ \\ \hline Radius of the emission region $R$ $(10^{16}cm)$ & $1.0$ & $9.0$ \\ \hline Height of the emission region $Z$ $(10^{16}cm)$ & $1.33$ & $12.0$ \\ \hline Acceleration time scale $t_{acc}$ $(10^6 s)$ & $8.2$ & $2.9$ \\ \hline Escaping time scale $t_{esc}$ $(10^6 s)$ & $2.0$ & $1.5$ \\ \hline Background injection electron density rate $\dot{u}_{e,inj}$ $(erg\,s^{-1}cm^{-3})$ & $2.8\times 10^{-7}$ & $3.9\times 10^{-10}$ \\ \hline Background injection electron minimum energy $\gamma_{e,min}$ & $100$ & $80$ \\ \hline Background injection electron maximum energy $\gamma_{e,max}$ & $10000$ & $3500$ \\ \hline Background injection electron spectral index $p_e$ & $2.8$ & $2.8$ \\ \hline Background injection proton density rate $\dot{u}_{p,inj}$ $(erg\,s^{-1}cm^{-3})$ & $3\times 10^{-3}$ & $1.9\times 10^{-6}$ \\ \hline Background injection proton minimum energy $\gamma_{p,min}$ & $1$ & $1$ \\ \hline Background injection proton maximum energy $\gamma_{p,max}$ & $5\times 10^8$ & $3\times 10^8$ \\ \hline Background injection proton spectral index $p_p$ & $2.2$ & $2.2$ \\ \hline Helical magnetic field $B$ $(G)$ & $50.0$ & $80.0$ \\ \hline Magnetic pitch angle $\theta_B$ $(^{\circ})$ & $45$ & $45$ \\ \hline \end{tabular} \caption{Summary of model parameters in the quiescent state. Except for the Lorentz factor, which is in the observer's frame, all parameters are in the comoving frame of the emission region. The time resolution is always identical to the typical light crossing time of a zone. Due to the small size of the emission region in parameter Set 1, it is computationally expensive to obtain high time resolution. The resulting light curves and polarization signatures, however, due to the implicit Euler method employed to solve the Fokker-Planck equations, we still obtain stable solutions for relatively large time steps (Figs. \ref{case1a} to \ref{case1d}). \label{quiescent}} \end{table} \begin{figure}[ht] \centering \includegraphics[width=\linewidth]{Comparison.eps} \caption{Comparison of 3DHad and the one-zone hadronic code of \cite{Diltz15}. Left: Quiescent SEDs. Black curves show the 3DHad total SED (thick solid), as well as the electron synchrotron (dashed) and the proton synchrotron (dotted) individual contributions. Red lines show the one-zone code total (thick dashed-dotted), electron (short dashed), proton (short dotted). Right: Light curves. Black solid lines show the 3DHad output, while red dashed-dotted lines show the output of the one-zone code. Upper panel: parameter Set 1 with additional proton injection as described in Section \ref{compare}. Lower panel: parameter Set 2 with additional proton injection. \label{comparison}} \end{figure} \section{Model Setup \label{model}} The purpose of this paper is to study the general radiation and polarization signatures of hadronic blazar models. To show the most generic features of such models, we employ a simple model setup with the least physical assumptions. We assume that a cylindrical emission region travels relativistically in a straight trajectory along the jet, when it encounters a flat stationary disturbance, resulting in a flare. While we are observing blazars at a small observing angle $\theta^{\ast}_{obs}$ along the jet in the observer's frame, due to relativistic aberration, the observing angle $\theta_{obs}$ is much larger in the comoving frame of the emission region. Specifically, if $\theta^{\ast}_{obs} = 1/\Gamma$, where $\Gamma$ is the Lorentz factor of the emission region in the observer's frame, then $\theta_{obs} = 90^{\circ}$ for $\Gamma \gg 1$. As observations frequently suggest $\theta^{\ast}_{obs} \sim 1/\Gamma$, we will choose $\theta_{obs} = 90^{\circ}$. In this case, the Doppler factor is $\delta \equiv ( \Gamma [1 - \beta_{\Gamma} \cos\theta_{obs}^{\ast}] )^{-1} = \Gamma$. In the comoving frame, the emission region is pervaded by a helical magnetic field. For this preliminary study, we will not add any turbulent field component. While a turbulent magnetic field is likely to dominate the polarization fluctuations occurring mostly in the quiescent state \citep{Marscher14}, during major flares the polarization signatures appear more systematic, indicating a deterministic process \citep[e.g.,][]{Abdo10,Blinov15,Kiehlmann16}. \cite{ZHC15} have explicitly demonstrated that in such cases, the addition of a turbulent field component indeed yields better fit to the observational data, but the general trends of radiation and polarization signatures are similar to a purely helical field. The disturbance will propagate through the emission region in the comoving frame. The zones affected by the disturbance will have different physical conditions from the initial state. After the disturbance moves out of a given zone, the zone will revert to its initial conditions. We point out that while the physical conditions such as the stochastic acceleration and the nonthermal particle injection can reasonably return to the quiescent state after the passage of the disturbance, this is not necessarily the case for the magnetic field strength and topology. However, the polarization signatures are frequently observed to quickly return to the initial values even after major variations such as PA swings \citep[e.g.,][]{Abdo10,Morozova14,Blinov15,Blinov16}, indicating the restoration of the magnetic field. \cite{ZHC16} have shown that this restoration is only possible when there is substantial magnetic energy compared to the plasma kinetic energy in the emission region. In most hadronic models, the magnetic energy is comparable to or stronger than the kinetic energy \citep[e.g.,][]{Boettcher13}. In particular, the parameter sets we will use in the following satisfy this condition. Due to the LTTEs and the chosen $\theta_{obs}$, although the disturbance is flat, the observed ``flaring region'' will appear different. Fig. \ref{LTTE} shows a sketch of our model, especially, the shapes of the flaring regions when the disturbance propagates through various locations in the emission region. The flaring region is composed of an ``active region'' with a slanted, ellipsoidal shape due to LTTEs, and an ``evolving region'' which is due to the slow evolution of protons. The zones outside the flaring region are termed as the ``quiescent region''. The impact of the LTTEs on the polarization signatures has been discussed in detail in \cite{ZHC14,ZHC15}. The parameter Sets 1 and 2 described in the previous section characterize the quiescent states for the following studies. We choose the same size of the disturbance in all the following case studies, which is $0.25$ times the length of the cylindrical emission region, so that the disturbance propagation time scale in a specific zone is $t_{\rm dp}=0.25 t_{\rm lc}$. We consider four scenarios in the active region that give rise to flares due to the disturbance: \begin{enumerate}[a.] \item Magnetic energy dissipation, where the magnetic field strength will decrease and its topology will change, along with additional particle injection; \item Magnetic compression, where the magnetic field strength will increase and change its topology; \item Enhanced particle injection for both electrons and protons; \item Enhanced stochastic acceleration, where the stochastic acceleration time scale becomes shorter. \end{enumerate} The flaring parameters for these scenarios are listed in Table \ref{flare}. Since the flaring mechanisms are so different, in order to facilitate direct comparison, we choose the flaring parameters so that they result in approximately equal amplitudes of $\gamma$-ray flares. Also, we define similar epochs in the $\gamma$-ray light curves, approximately at the quiescent state, before the flare peak, at the peak of the flare, and after the peak. We point out that the low-energy (electron-synchrotron) light curves can look very different from the $\gamma$-ray light curves due to the drastically different radiative cooling time scales of protons and electrons. \begin{figure}[ht] \centering \includegraphics[width=\linewidth]{LTTE.eps} \caption{Sketch of the model and LTTEs. Left: a disturbance propagates through the emission region pervaded by a helical magnetic field in its comoving frame. Red, green, and blue colors denote the location of the disturbance at approximately entering ($t_1$), leaving the emission region ($t_2$), and some time after leaving the emission region ($t_3$). Right: the corresponding flaring region at the $t_1$ to $t_3$ at equal photon-arrival times at the observer. Dashed shaded regions are the active region; the region between the dashed shaded region and the dotted shape is the evolving region. \label{LTTE}} \end{figure} \begin{table} \scriptsize \centering \begin{tabular}{|l|c|c|c|c|c|c|}\hline Parameters & Case 1a & Case 2a & Case 1b & Case 1c & Case 2c & Case 1d \\ \hline $t_{acc,d}$ $(10^6 s)$ & -- & -- & -- & -- & -- & $0.51$ \\ \hline $\dot{u}_{e,inj,d}$ $(erg\,s^{-1}cm^{-3})$ & $3.0\times 10^{-6}$ & $4.1\times 10^{-9}$ & -- & $1.6\times 10^{-6}$ & $2.2\times 10^{-9}$ & -- \\ \hline $\dot{u}_{p,inj,d}$ $(erg\,s^{-1}cm^{-3})$ & $5.5\times 10^{-2}$ & $9.8\times 10^{-6}$ & -- & $5.5\times 10^{-2}$ & $9.6\times 10^{-6}$ & -- \\ \hline $B_d$ $(G)$ & $36.6$ & $58.6$ & $136.6$ & -- & -- & -- \\ \hline $\theta_{B_d}$ $(^{\circ})$ & $75$ & $75$ & $75$ & -- & -- & -- \\ \hline \end{tabular} \caption{Summary of the model parameters at the disturbance. Only the parameters that are varied in the case studies are listed here. All parameters have the same meaning as in Table \ref{quiescent}, except for the subscript $d$ which denotes the parameters at the disturbance. \label{flare}} \end{table} \section{Synchrotron Cooling and LTTEs \label{result1}} In this section, we will study Scenario a, magnetic energy dissipation to illustrate the effect of the relation between synchrotron cooling time scales and LTTEs. \cite{Guo16} have performed comprehensive PIC simulations to show that both electrons and protons can be effectively accelerated during magnetic reconnection events. As the detailed simulation of a reconnection event is beyond the scope of this paper, we simply assume that the particle injection is enhanced and the magnetic field is weakened in the disturbance, and keep the particle injection index the same as in the quiescent state. We have not included any thermal radiation contributions to the multiwavelength emission, such as the big blue bump typically seen in the flat spectrum radio quasars, or the host galaxy. In this way, the difference in the time-dependent radiation and polarization signatures mostly originates from the intrinsic hadronic physics. Proton synchrotron cooling is much slower than that for electrons. Due to the strong magentic field, the electron cooling time scale ($t_{\rm ec}$) is generally shorter than the light crossing time scale ($t_{\rm lc}$). Moreover, as is shown in Eq. \ref{constraint1}, the size of the emission region in the hadronic model has an upper limit due to the magnetic-flux constraint. Thus in most applicable situations, the proton cooling time scale ($t_{\rm pc}$) is comparable to or longer than $t_{\rm lc}$. In the following, we will demonstrate that this time scale relation, $t_{\rm ec} < t_{\rm lc} \lesssim t_{\rm pc}$, which is largely intrinsic to the hadronic model without any strong parameter dependence, is governing the general shape of the light curves and polarization signatures. \subsection{Case 1a} This case refers to a small emission region (baseline parameter set 1) with magnetic energy dissipation (flaring scenario a) and is illustrated in Figure \ref{case1a}. Since we do not vary the power-law index for the enhanced particle injection, the SEDs (Fig. \ref{case1a} upper left) generally keep the same spectral indices during flares. In the quiescent state, the PD vs photon energy (Fig. \ref{case1a} upper right) displays minor fluctuations across the entire spectrum. However, during the flare, we notice considerable spectral PD variations. These are shown in more detail in the time evolution of radiation and polarization signatures (middle and bottom panels of Fig. \ref{case1a}). Before we move to the emission evolution, we first take a look at the particle evolution. Fig. \ref{particle} presents the electron (upper left) and proton (upper right) spectral evolution for Case 1a. In the electron evolution, owing to the short $t_{\rm ec}$, after the disturbance leaves a certain zone, most electrons only take about a disturbance propagation time scale $t_{\rm dp}$ to revert to the pre-flare equilibrium. However, the lowest-energy electrons have longer synchrotron cooling timescales, thus they take longer (up to $\sim 4 t_{\rm dp}=1 t_{\rm lc}$) to revert to the quiescent state. Therefore, the evolving region for the electrons is comparable to the active region, except for the lowest-energy electrons where it is moderately larger. The proton evolution appears very different. In view of the much longer cooling time scale $t_{\rm pc}$, after about $20 t_{\rm dp}$, the proton synchrotron contribution from the evolving region no longer dominates the active region, and it takes about $60 t_{\rm dp}$ (i.e., about $15 t_{\rm lc}$) to evolve back to a state close to the quiescent equilibrium. Hence for protons the evolving region overwhelms the active region. These features are clearly reflected in light curves and polarization variations. For the low-energy component, since the evolving region for electrons is relatively small, the LTTEs will be dominating. Thus the flaring region on the right side of the sketch in Fig. \ref{LTTE} is generally similar to that on the left side. Therefore, the light curves from radio to UV appear generally symmetric in time (Fig. \ref{case1a} middle left). However, due to the slightly longer $t_{\rm ec}$ for the lowest-energy electrons, which are responsible for the radio emission, the radio peaks a little bit later than the optical and UV. Unlike the light curves, which only depend on the luminosity, the polarization signatures are also affected by the PD and PA in each zone. As the magnetic field structure varies from the active region to the evolving and the quiescent region, even in the PD and PA of the optical and UV bands we find a small degree of asymmetry in time. We notice that both the optical and UV bands exhibit a PA swing and significant PD variations (Fig. \ref{case1a} middle and lower right). This is consistent with the results of \cite{ZHC14,ZHC15}, where these effects are discussed in detail. The proton evolving region dominates the high-energy emission. All light curves peak considerably later than the low-energy light curves; in particular, we find long cooling tails in the high-energy light curves, which strongly extend the flare duration (Fig. \ref{case1a} lower left). In the polarization signatures, we only find small changes in both PD and PA (Fig. \ref{case1a} middle and lower right), due to the strong contamination from the evolving region, which has the same magnetic topology as the quiescent region. Specifically, at the beginning of the flare, as the evolving region is very small, the PD shows a relatively large drop. After that the evolving region becomes dominant, hence the polarization gradually recovers its initial state. When the active region has completely moved out, approximately at the same time when the low-energy flare stops, the high-energy polarization signatures appear largely identical to the quiescent state. \subsection{Case 2a} The major difference of Case 2a (baseline parameter set 2) compared to Case 1a lies in the longer light crossing time, $t_{\rm lc}$. Again we examine the particle evolution (Fig. \ref{particle} lower panel). When the disturbance moves out of a certain zone, most electrons revert to the quiescent equilibrium immediately, except for the electrons responsible for the radio emission, which take up to about $0.5 t_{\rm dp}$ to recover. Thus, the evolving region is generally smaller than the active region. For protons, after the disturbance leaves, they continue to make a substantial contribution to the high-energy emission for $\sim 3 t_{\rm dp}=0.75 t_{\rm dp}$, although it takes $\sim 7 t_{\rm dp}$ to fully recover to equilibrium. Hence, the evolving region is moderately larger than the active region. Consequently, in the low-energy component, all light curves and polarization signatures appear symmetric in time without any noticeable delay (Fig. \ref{case2a} middle left); additionally, all bands display PA swings, although the radio polarization slightly diverges from the others (Fig. \ref{case2a} middle and lower right). In the high-energy component, the light curves appear generally symmetric in time, though they still peak later and the flares last longer than in the low-energy light curves (Fig. \ref{case2a} lower left). Nevertheless, the polarization contamination from the evolving region is still significant, thus there is no PA swing in the high-energy bands (Fig. \ref{case2a} middle and lower right). We notice that unlike the light curves, the high-energy polarization signatures are still synchronized with the low-energy flares and polarization variations: they all end approximately when the active region moves out. To summarize this section, we find that the combined effects of synchrotron cooling and LTTEs will result in some interesting features in the hadronic models. First, the polarization signatures in the high-energy component are nearly identical from X-rays to $\gamma$-rays. Therefore, X-ray and $\gamma$-ray polarimeters may both be able to measure hadronic signatures in the high-energy polarization. Additionally, in the quiescent state, if the electrons and protons reside in the same emission region, the high-energy polarization signatures should be generally identical to the low-energy component. Moreover, the low-energy light curves and polarization variations are generally symmetric in time, but the high-energy signatures are generally asymmetric. Also the high-energy flares generally peak later and last longer than the low-energy flares. The low-energy flares and polarization variations, as well as the high-energy polarization variations, are generally synchronized. Finally, while the low-energy polarization signatures may vary rapidly during flares, high-energy polarization signatures appear generally stable. \begin{figure}[ht] \centering \vspace{-2cm} \includegraphics[width=\linewidth]{Case1a.eps} \caption{Case 1a. Upper left: snap-shot SEDs approximately in the quiescent state (black solid, A), shortly before the flare peak (red dashed, B), at the flare peak (blue dotted, C), and after the flare peak (magenta dashed-dotted, D). Thin curves show the individual contributions from electron synchrotron and proton synchrotron. Upper right: snap-shot polarization degree vs photon energy. Curves are chosen at the same epochs as the SEDs. Middle and lower left: multiwavelength light curves chosen at radio (30 to 300 GHz, navy short-dashed), optical (1.8 to 3.2 eV, thick orange solid), UV (3.3 to 6.2 eV, olive short-dotted), X-ray (60 to 200 keV, purple dotted), MeV $\gamma$-ray (5 to 200 MeV, AdEPT, pink dashed-dotted), and GeV $\gamma$-ray (20 MeV to 300 GeV, {\it Fermi}-LAT, thick violet dashed) bands. Due to the large bandwidth of the GeV light curve, it collects a much higher total luminosity than the keV and MeV bands. Hence we manually boost those two bands by a fixed number to allow us to show them in the same figure. Middle and lower right: multiwavelength PD and PA vs time. Bands are chosen the same as light curves. \label{case1a}} \end{figure} \begin{figure}[ht] \centering \includegraphics[width=\linewidth]{Case2a.eps} \caption{Case 2a. Due to the larger emission region, the flare duration is longer. Otherwise, panels and line styles are the same as in Fig. \ref{case1a}. \label{case2a}} \end{figure} \begin{figure}[ht] \centering \includegraphics[width=\linewidth]{ParticleSpectra.eps} \caption{Particle spectra for Case 1a and 2a. Left: electron spectra at various epochs. Right: proton spectra at various epochs. Upper: particle spectra for Case 1a. Lower: particle spectra for Case 2a. The particle spectra are chosen at various epochs in units of light crossing time scales ($t_{\rm lc}$) in both cases, approximately at the quiescent state (0), in the middle of the disturbance (0.125), as the disturbance leaves the zone (0.25), and at later times. \label{particle}} \end{figure} \section{Case Study of Alternative Flaring Scenarios \label{result2}} In this section, we will present more case studies to further test the hadronic features listed in the previous section, and examine how the different flaring mechanisms may affect the radiation and polarization signatures. We notice that the radio emission from blazars is generally dominated by the large-scale jets instead of the local emission region, therefore, we will not show the radio signatures in the following. Moreover, the optical and UV bands appear identical; the same applies to the keV, MeV, and GeV bands. Thus in the following we will only take the optical and {\it Fermi}-LAT GeV band as representative for the low- and high-energy components, respectively, and term the GeV band simply as ``$\gamma$-ray''. \subsection{Scenario b} We first look at Case 1b, compression of the magnetic field. In the presence of a strong magnetic field, most electrons are efficiently synchrotron cooled. This means that the electron synchrotron is already at maximal radiative efficiency. Consequently, the enhanced magnetic field will not boost the low-energy synchrotron flux, so that no flare is observed in the optical band (Fig. \ref{case1b} middle left). However, the active region possesses a dominant toroidal magnetic field topology, leading to a considerable drop in the PD (Fig. \ref{case1b} middle right). Nevertheless, the active region does not provide additional emission, thus the enhanced toroidal magnetic field alone is unable to trigger a PA swing (Fig. \ref{case1b} lower right). On the other hand, the high-energy synchrotron component exhibits some interesting features. Due to the enhanced magnetic field in the active region, the proton cooling becomes faster, giving rise to higher flux. Additionally, after the disturbance moves out a certain zone, the proton spectrum has a lower normalization than in the quiescent state. Hence the evolving region actually provides less emission than the quiescent region, leading to a minor contamination in the emission signatures. This is clearly shown at the end of the flare (Fig. \ref{case1b} lower left), where the $\gamma$-ray light curve drops below the initial value. Also in the PD vs photon energy, we find a rapidly increasing PD tail at the highest energy, due to the exponential cooling cut-off in the proton spectrum (Fig. \ref{case1b} upper right). In this way, the radiation and polarization signatures during the flare are dominated by the active region. Therefore, the $\gamma$-ray light curve becomes generally symmetric in time, and there are significant and generally time-symmetric PD changes and a PA swing during the flare (Fig. \ref{case1b} middle, lower right). In conclusion, the special properties in this scenario include an orphan $\gamma$-ray flare, and major polarization variations in both low- and high-energy components. In particular, there may be a $\gamma$-ray PA swing. Nonetheless, we want to emphasize that in the hadronic model, the magnetic field is very strong, and in most cases carries energy comparable to or even stronger than the plasma kinetic energy. In order to adequately compress the magnetic field, strong shocks are necessary, which are unlikely to happen in such a highly magnetized environment \citep{Komissarov11}. As a result, we suggest that this scenario is unlikely in practice. For the parameter Set 2, the magnetic energy is much stronger than the kinetic energy, further prohibiting this scenario. Thus we will not discuss Case 2b. \begin{figure}[ht] \centering \includegraphics[width=\linewidth]{Case1b.eps} \caption{Case 1b. Compared to Fig. \ref{case1a}, we removed the radio, UV, keV and MeV bands, and termed the GeV band as $\gamma$-ray. Otherwise, panels and line styles are the same as in Fig. \ref{case1a}. \label{case1b}} \end{figure} \subsection{Scenario c} This is the case of enhanced particle injection at the disturbance without changing the magnetic field. Hence, the synchrotron cooling rates remain unchanged. The polarization variations in the optical band generally arise from the active region as it energizes up different parts of the emission region during its propagation (Fig. \ref{case1c} middle and lower right). This has been discussed in detail in \cite{ZHC14}. On the other hand, owing to the large evolving region of the proton population, the high-energy polarization signatures again appear asymmetric in time and exhibit smaller variations than the low-energy ones. Compared to Case 1a, since the magnetic field topology is unchanged, we find an increase in the PD instead (Fig. \ref{case1c} middle and lower right). For Case 2c, LTTEs dominate. As a result, both the $\gamma$-ray light curve and the PA variability appear generally symmetric in time (Fig. \ref{case2c} lower). However, we can still see in the PD that the large evolving region will substantially contaminate the PD from the active region, giving rise to an asymmetric time variation (Fig. \ref{case2c} middle right). In conclusion, Scenario c (enhanced particle injection) results in similar features as Scenario a (particle energization by magnetic energy dissipation). \begin{figure}[ht] \centering \includegraphics[width=\linewidth]{Case1c.eps} \caption{Case 1c. Panels and line styles are the same as in Fig. \ref{case1a}. \label{case1c}} \end{figure} \begin{figure}[ht] \centering \includegraphics[width=\linewidth]{Case2c.eps} \caption{Case 2c. Compared to Fig. \ref{case2a}, we removed the radio, UV, keV and MeV bands, and termed the GeV band as $\gamma$-ray. Otherwise, panels and line styles are the same as in Fig. \ref{case2a}. \label{case2c}} \end{figure} \subsection{Scenario d} We finally consider Scenario d, enhanced stochastic acceleration. We assume that the stochastic acceleration parameterized by $t_{acc}$, which represents the wave-particle interaction with plasma waves in the turbulence, is enhanced due to the action of a shock. In view of the very fast synchrotron cooling of electrons, even the shortened acceleration time scale is still too long to have a significant impact on the electron distribution. Hence we observe featureless radiation and polarization signatures in the low-energy component (Fig. \ref{case1d} middle, lower right). In the high-energy component, the enhanced acceleration boost the protons to higher energy, so that the SED becomes harder above a few GeV (Fig. \ref{case1d} upper left). However, since the total particle injection rate is kept unchanged, no major change is detected at lower energies. Otherwise, the high-energy signatures are similar to Case 1c. The same applies to Case 2c, hence we will not discuss it in detail here. We conclude that enhanced stochastic acceleration will result in a mild orphan $\gamma$-ray flare, similar to Case 1b. The differences are: phenomenologically, both low- and high-energy polarization signatures are stable in time, and there is no orphan flare in the X-ray band; physically, stochastic acceleration is due to magneto-hydrodynamic turbulence in the emission region, whose characteristics are likely to be altered by a passing shock. Therefore, we suggest that this case is more plausible than Scenario b. \begin{figure}[ht] \centering \includegraphics[width=\linewidth]{Case1d.eps} \caption{Case 1d. Panels and line styles are the same as in Fig. \ref{case1a}. \label{case1d}} \end{figure} \section{Discussions and Conclusion \label{discussion}} In this paper, we have presented the first 3D multi-zone time-dependent lepto-hadronic blazar code, 3DHad, describing a lepto-hadronic model in a parameter regime in which the high-energy emission is dominated by proton synchrotron radiation. By coupling with the 3DPol code, we are able to derive the time-dependent flux and polarization signatures of this lepto-hadronic blazar emission model, including all LTTEs. Our work thus makes the first attempt to study the time-dependent lepto-hadronic multi-wavelength polarization signatures of blazar emission. We have explicitly calculated the physical constraints for the hadronic model. Based on our estimates, if the Blandford-Znajek mechanism is responsible for powering the jet and providing the the magnetic field in the jet, the hadronic emission region cannot be very large due to the limited magnetic flux that the central black hole can provide. Therefore, the largest variability time scale in the observer's frame is unlikely to exceed a few days. Also, the high particle energy necessary for the lepto-hadronic scenario requires extreme jet powers. These constraints would also suggest that UHE extragalactic neutrinos are unlikely to be attributed to blazars, as photo-pion production is negligible. If the lepto-hadronic polarization signatures derived here are indeed detected in future observations, the required extremely efficient particle acceleration, strong magnetic field, and high jet power will seriously challenge our current understanding of AGN jet formation. We have demonstrated that the general time-dependent signatures of our proton-synchrotron dominated lepto-hadronic blazar model is dominated by the intrinsic time scale relations, namely, $t_{\rm ec} < t_{\rm lc} \lesssim t_{\rm pc}$. Through detailed parameter studies, we have identified the following time-dependent signatures of this model: \begin{enumerate} \item The time-dependent low-energy radiation signatures are generally symmetric in time, while the high-energy signatures are generally asymmetric; \item The high-energy flares generally peak later and last longer than the low-energy flares; \item An orphan flare in the high-energy component is possible; \item The polarization signatures at various wavelengths within the high-energy component are generally similar; \item In the quiescent state, if the low- and high-energy components are co-spatial, they share similar polarization degrees and angles. \item While the low-energy polarization signatures may vary rapidly during flares, high-energy polarization signatures appear generally stable. \item The time-dependent low-energy signatures and the high-energy polarization variations are generally synchronized with the disturbance propagation and the LTTEs. The high-energy flares, on the other hand, can last much longer due to the slow proton cooling. \end{enumerate} We suggest that these features can be tested with simultaneous multiwavelength observations, including future high-energy polarimetry. We notice that the polarization signatures possess a strong dependence on the magnetic field evolution. Although we have demonstrated in Section \ref{model} that our assumptions on the magnetic field evolution are reasonable, our test cases are most likely an over-simplification of any actual physical scenario. However, our code can be easily coupled with first principle simulations, such as MHD, to constrain the magnetic field evolution, so that our polarization signatures in both low- and high-energy components are physically self-consistent. \acknowledgments{HZ is supported by the LANL/LDRD program and by DoE/Office of Fusion Energy Science through CMSO. MB acknowledges support by the South African Research Chairs Initiative (SARChI) of the Department of Science and Technology and the National Research Foundation \footnote{Any opinion, finding and conclusion or recommendation expressed in this material is that of the authors and the NRF does not accept any liability in this regard.} of South Africa. Simulations were conducted on LANL's Institutional Computing machines.}
\section{Introduction} \label{S1} Over the past two decades, the dramatic increase in coherence and brightness of large-scale X-ray sources, such as third generation synchrotrons and free-electron-lasers, has paved the way for X-ray phase contrast imaging \cite{Nugent2010coherent}. Classical X-ray radiography is limited to measuring the attenuation experienced by radiation traversing the probed object. Writing the refractive index in the X-ray physics notation $n = 1-\delta+\Text{i} \beta$ with $0\leq \beta,\delta\ll 1$, this amounts to imaging $\beta$. Phase contrast techniques additionally probe the real-valued decrement $\delta$ of $n$, which induces phase shifts in the transmitted X-ray wave field. This enables imaging of biological cells and other micro-scale light-element specimen, for which $\beta\ll \delta$ holds in the hard X-ray regime \cite{Wilkins1996,Paganin1998,Cloetens1999,Mayo2002quantitative}. Owing to the small wavelength of X-rays, nano-scale spatial resolutions can be achieved as has been demonstrated down to 20 nanometers \cite{Bartels2015}. Moreover, phase contrast imaging can be combined with tomography, capable of resolving the refractive index of an unknown object in 3D \cite{Jonas2004TwoMeasUniquePhaseRetr,Bartels2012,Kostenko2013_AllAtOncePCTWithTV,Krenkel2014BCAandCTF,Ruhlandt2016_RadonPCICommute,MaretzkeEtAl2016OptExpr}. Unfortunately, the refractive phase shifts of the X-ray field cannot be observed directly by common CCD detectors due to their physical limitation to measuring wave intensities, i.e.\ the squared modulus of the wave field. In propagation-based phase contrast imaging, also known as \emph{inline holography}, the required phase-sensitivity is achieved simply by free-space propagation without any optical elements: if the detector is placed in some finite distance down-stream of the sample, the imprinted phase shifts in the object's exit plane ($z=0$ in \cref{figure1}(b)) are partially encoded into measurable intensities by \emph{diffraction}, i.e.\ self-interference of the wave field. We assume that the diffraction pattern or \emph{hologram} is recorded in the optical near-field of the sample so that propagation is described by the Fresnel propagator \cite{PaganinXRay}. In particular, we do not consider the corresponding far-field setup (coherent diffactive imaging, see e.g.\ \cite{Quiney2010CDIReview,Miao2015XrayCDIReview}), where the data is given by Fourier magnitudes. In this work, we are thus concerned with the reconstruction of the (generally complex-valued) wave-field perturbation $h$ induced by the object from measured near-field intensities $I$. As this implicitly amounts to recovering the lost phase information in the data, i.e.\ to solving a \emph{phase retrieval} problem, the question immediately arises whether the image recovery is actually \emph{unique} and \emph{stable}. Indeed, it is commonly argued \cite{Jonas2004TwoMeasUniquePhaseRetr,Nugent2007TwoPlanesPhaseVortex,Burvall2011TwoPlanes} that diffraction patterns from at least two different sample-detector distances are required for a unique reconstruction of the imprinted phase shifts and attenuation. Assuming a \emph{support constraint}, however, i.e.\ under the often physically reasonable assumption that the image $h$ is non-zero only in compact subdomain of the field of view, we could show uniqueness of the reconstruction from a \emph{single} hologram in \cite{Maretzke2015IP} - even if $h$ is complex-valued (see also \cite{klibanov:14} for a uniqueness result for the Helmholtz equation with real-valued $n$ from phaseless near-field data in an interval of frequencies). In \cite{MaretzkeEtAl2016OptExpr}, such a reconstruction of a compactly supported complex image is demonstrated for simulated and experimental data, which turns out to be feasible, yet susceptible to low-frequency artifacts. Support constraints have also been found to stabilize image reconstruction in simpler settings where the probed object can be assumed to be completely non-absorbing \cite{Giewekemeyer2011CellSketch,Bartels2012}. These observations call for a better understanding of the \emph{stability} of the considered near-field phase retrieval problem, which is the goal of this paper. We do so within a linearization of the relation between image $h$ and the resulting intensity data $I$, valid for sufficiently ``small'' $h$, i.e.\ for weakly interacting objects similarly as in a recent stability analysis of domain reconstructions in phaseless inverse scattering \cite{AmmariEtAl2016_StabAnalysisLinInvScat}. The linearization is known as \emph{contrast transfer function} model \cite{Guigay1977CTF,Turner2004FormulaWeakAbsSlowlyVarPhase} and frequently applied in X-ray phase contrast imaging \cite{Cloetens1999,Gureyev2004CTF,HoffmannEtAl2011_CTFCriticality,LangerEtAl2012_PCT_CTF,Krenkel2014BCAandCTF}. In this work, we analyze the arising linear forward operator $T$ under the assumption that $h$ has compact support. We prove that the associated inverse problem is not only unique but even \emph{well-posed} in the sense that the recovered image $h$ depends continuously on the measured data $Th$, i.e.\ finite data errors lead to bounded deviations in the recovered $h$. This result, which is quite surprising for an inverse problem with remote measurements, is achieved by relating the setting to a reconstruction from incomplete Fourier data. By the same technique we also derive explicit \emph{stability estimates}, bounding the reconstruction error that results from a given data noise level in terms of the dimensionless Fresnel number. In general, we find that the stability constant decays exponentially with the Fresnel number $\mathfrak{f}}%{\tilde N_{\textup{F}}$ and thus hardly gives any useful stability bounds for many experimental X-ray phase contrast setups. However, we establish much more favorable $\mathcal{O}(\mathfrak{f}}%{\tilde N_{\textup{F}}^{-1})$- and even $\mathcal{O}(\mathfrak{f}}%{\tilde N_{\textup{F}}^{-1/2})$-decay rates in two relevant situations: The first assumes proportionality of the real and the imaginary part of the image $h$, which occurs e.g.\ for single-material and non-absorbing samples. The second situation concerns general objects, but two measurements at different distances. It is well-known that the forward operators in these cases are Fourier multipliers with so-called contrast transfer functions (CTF), and the zeros of the CTFs are responsible for general ill-posedness of the inverse problem. Our analysis exploits the regularizing effect on these zeros of the smoothness in Fourier space that results from the assumed support constraints. The remainder of this paper is organized as follows: in \secref{S2}, the mathematical model of X-ray phase contrast imaging is introduced and the considered inverse reconstruction problems, corresponding to different constraints and measurement setups, are motivated. Our principal stability results are stated in \secref{SS:StabResults}. \secref{S3}, \secref{S4} and \secref{S5} contain the analysis for each of the inverse problems, including the proofs of the main results. In \secref{S6}, we discuss implications of our findings and possible extensions. \vspace{1em} \section{Imaging problems and main results} \label{S2} \subsection{Physical model} \label{SS2.1} An exemplary experimental setup for X-ray phase contrast imaging on a third generation synchrotron source (GINIX setup \cite{Salditt2015GINIX} at P10-beamline, DESY) is shown in \cref{figure1}(a). We describe this imaging system by a standard wave-optical model as schematically visualized in \cref{figure1}(b) \cite{Pogany1997noninterferometric,Cloetens1999Diss}: an unknown sample is illuminated by an incident plane electromagnetic wave $\Psi_{\textup i}(\ensuremath{\boldsymbol{x}}, z) = \exp(\Text{i} k z)$, where $\ensuremath{\boldsymbol{x}} \in \mathbb{R}^2$ and $z\in \mathbb{R}$ denote the lateral- and axial coordinates, respectively. By scattering interaction, object information is encoded as a perturbation of the wave field $\Psi = \Psi_{\textup i} + \Psi_{\textup s}$ within the exit plane $z =0$ of the probed sample. A detector measures the resulting near-field diffraction pattern (or hologram), given by the intensity $I(\ensuremath{\boldsymbol{x}}) = |\Psi(\ensuremath{\boldsymbol{x}},d)|^2$ of the propagated wave fronts in some plane at finite distance $d>0$ behind the object. The phase of the complex-valued field $\Psi$ cannot be observed directly, yet \emph{diffraction} partially encodes phase variations in the exit plane $z= 0$ into measurable intensities $I$ at the detector. \begin{figure}[hbt!] \centering \includegraphics[width=.8\textwidth]{figure1.pdf} \caption{Setup of propagation-based X-ray phase contrast imaging (inline holography).\\ (a) Sketch of an experimental realization \cite{MaretzkeEtAl2016OptExpr} (GINIX \cite{Salditt2015GINIX} at P10-beamline, DESY) \\ (b) Physical model \cite{Maretzke2015IP}: incident plane waves are scattered by an unknown sample, imprinting a phase- and absorption image $h =-\Text{i} \phi - \mu$ upon the transmitted wave fronts $\Psi(\cdot,0)$. The resulting near-field diffraction pattern (hologram) $I= |\Psi(\cdot, d)|^2 $ is recorded at some distance $z = d$ behind the object. (plotted experimental data: hologram $I$ and reconstructed image $h$ of \emph{d.\ radiodurans} bacteria). \label{figure1}} \end{figure} In general, the above physical model is governed by the Helmholtz equation $\Delta \Psi + n^2 k^2 \Psi = 0$ in $\mathbb{R}^3$, where the object gives rise to a spatially varying refractive index $n = 1 - \delta + \Text{i} \beta$. In the hard X-ray regime of very large wavenumbers $k$, typical samples such as biological cells are often sufficiently thin and weakly interacting for the scattering to be well-approximated by geometrical optics \cite{PaganinXRay,Jonas2004TwoMeasUniquePhaseRetr}. Within this approximation, the wave fronts $\Psi_z:= \Psi(\cdot, z)$ in the exit plane are given by \begin{equation} \Psi_{0} = \exp(h) \MTEXT{with} h = -\Text{i} \phi - \mu =- \Text{i} k \int_{\mathbb{R}} \big( \delta - \Text{i} \beta \big) \Text{d} z \label{eq:2.1-1} \end{equation} Accordingly, the perturbed wave yields line integrals over $\delta$ and $ \beta$ along the incident $z$-direction, corresponding to a \emph{projection image} of the sample in the form of phase shifts $\phi$ and attenuation $\mu$. In particular, \eqref{eq:2.1-1} implies that the imprinted image $h$ satisfies a \emph{support constraint} $\textup{supp}(h) \subset \Omega$ whenever the object is laterally finite, i.e.\ if $\delta(\ensuremath{\boldsymbol{x}},z) = \beta(\ensuremath{\boldsymbol{x}},z) = 0$ for all $z \in \mathbb{R}, \ensuremath{\boldsymbol{x}} \in \Omega $ outside some bounded domain $\Omega \subset \mathbb{R}^2$. If $|\ensuremath{\boldsymbol{\xi}}|\ll k$ for all relevant spatial frequencies $\ensuremath{\boldsymbol{\xi}}$ of $h$, the total wave field will be of the form $\Psi(\ensuremath{\boldsymbol{x}},z)=\Text{e}^{\Text{i} kz}\tilde{\Psi}(\ensuremath{\boldsymbol{x}},z)$ with a slowly varying envelope $\tilde{\Psi}$ such that $\Text{e}^{-\Text{i} kz} (\partial_z^2+k^2)\Psi \approx 2\Text{i} k \partial_z \tilde \Psi$ by neglecting $\partial_z^2\tilde\Psi$. This yields the one-way-, Schr\"odinger- or paraxial approximation \ 2k\Text{i}\partial_z\tilde{\Psi}+\Delta_{\ensuremath{\boldsymbol{x}}}\tilde{\Psi}\approx 0\qquad \ to the Helmholtz equation. Within this commonly used model, the free-space propagation of the wave fronts to the detector is described by the \emph{Fresnel propagator} \cite{PaganinXRay}: \begin{eqnarray} \mathcal{D} ( \Psi_0 ) &:=& \exp(-\Text{i} kd)\Psi_d = \mathcal{F}^{-1}\left( m_{\tNF}}%{m_{\textup{F}} \cdot \mathcal{F}(\Psi_0) \right) \qquad m_{\tNF}}%{m_{\textup{F}}(\ensuremath{\boldsymbol{\xi}} ) := \exp \left( \frac{ -\Text{i} |\ensuremath{\boldsymbol{\xi}}|^2 }{2\mathfrak{f}}%{\tilde N_{\textup{F}}} \right) \label{eq:FresnelProp} \end{eqnarray} Here, $\mathcal{F}$ is the Fourier transform and \begin{equation}\label{eq:defi_Fresnel} \mathfrak{f}}%{\tilde N_{\textup{F}} := \frac{kb^2}{d}\qquad \mbox{or}\qquad \lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF := \frac{\mathfrak{f}}%{\tilde N_{\textup{F}}}{2\pi} \end{equation} denote the dimensionless \emph{Fresnel number} of the setup. $b$ is a physical length that corresponds to length 1 in dimensionless coordinates and will be chosen as the support diameter of the image $h$, see \cref{figure1}(b). Usually $\lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF$ is referred to as Fresnel number, but this convention would lead to an abundance of $2\pi$ factors in our computations. Therefore, we will mostly use $\mathfrak{f}}%{\tilde N_{\textup{F}}$ with the notation \eqref{eq:defi_Fresnel} chosen in analogy to Planck's constant. $\mathfrak{f}}%{\tilde N_{\textup{F}}$ governs the impact of diffraction in the imaging setup, where smaller values correspond to stronger diffractive distortion of the propagating wave field. Typical values in experimental X-ray phase contrast setups are in the range $10 \leq \lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF \leq 1000$. By combination of \eref{eq:2.1-1} and \eref{eq:FresnelProp}, we find that the unknown object image $h$ is related to the observable intensity data $I = |\Psi_d|^2$ by the nonlinear forward operator \begin{equation} I = F(h) := \big| \mathcal{D}\big( \exp(h) \big) \big|^2 \MTEXT{with} h = -\Text{i}\phi- \mu \label{eq:fwModelNL} \end{equation} We note that similar models apply to imaging with \emph{electrons} \cite{Erickson1971_CTF_TEM,Wade1992_CTF_TEM,Lichte2007_ElectronHolography} owing to the mathematical equivalence of the time-independent Schr\"odinger equation and the Helmholtz equation. \vspace{.5em} \subsection{Weak object limit and principal inverse problem} \label{SS2.2} By \eqref{eq:fwModelNL}, the image $h$ is in general complex-valued, whereas the intensity data $I$ is real-valued. This suggests that the data is insufficient for unique and stable recovery of $h$ \cite{Nugent2007TwoPlanesPhaseVortex,Burvall2011TwoPlanes}. We analyze this question of ill-posedness within the commonly used \emph{weak-object-approximation} \cite{Pogany1997noninterferometric,Cloetens1999,Paganin2002simultaneous,Gureyev2004CTF}: in the case of weak absorption $\mu \ll 1$ and slowly varying phase shifts $\phi$, nonlinear terms in $h$ can be neglected in \eref{eq:fwModelNL} \cite{Turner2004FormulaWeakAbsSlowlyVarPhase}, giving \begin{eqnarray} F(h) = 1 + Th + \mathcal{O}(h^2) \MTEXT{with} Th &:= 2\Re\big(\mathcal{D}(h) \big). \label{eq:fwModel1 \end{eqnarray} Here, $\Re$ denotes the pointwise real-part and we have used that $\mathcal{D}(1) = 1$. Note that $\mathcal{D}$ is unitary on $L^2(\mathbb{R}^m)$, so $T$ defines a bounded $\mathbb{R}$-linear operator on $L^2(\mathbb{R}^m)$. Rather than by \eqref{eq:fwModel1}, $T$ is more commonly written in terms of the phase shifts $\phi$ and absorption $\mu$ via sinusoidal \emph{contrast transfer functions} (CTF) \cite{Guigay1977CTF}: \begin{equation} T (-\Text{i}\phi- \mu) = 2 \mathcal{F}^{-1} \left( \sin \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\mathfrak{f}}%{\tilde N_{\textup{F}}} \right) \mathcal{F}( \phi ) - \cos \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\mathfrak{f}}%{\tilde N_{\textup{F}}} \right) \mathcal{F}( \mu) \right). \label{eq:fwModelCTF} \end{equation} Although the physical model of \secref{SS2.1} leads to two-dimensional images $h$ and holograms $I$, we will study the operator $T$ in a more general $\mathbb{R}^m$-setting. This might allow application of our results to situations described by (quasi-) 1D-models and to \emph{phase contrast tomography}, which can be interpreted as a \emph{3D}-imaging modality \cite{Kostenko2013_AllAtOncePCTWithTV,Ruhlandt2016_RadonPCICommute}. As physically motivated in \secref{SS2.1}, we impose support constraints by assuming \begin{equation} h \in L^2_\Omega := \{ h \in L^2(\mathbb{R}^m): h|_{\mathbb{R}^m \setminus \Omega} = 0 \} \MTEXT{for some} \Omega \subset \mathbb{R}^m. \end{equation} Moreover, we denote by $\norm{h} := (\int_{\mathbb{R}^m} |h|^2 \; \Text{d}\ensuremath{\boldsymbol{x}} )^{1/2}$ the standard $L^2$-norm in $\mathbb{R}^m$. The principal image reconstruction problem of this work then reads as follows: \vspace{.5em} \begin{MyIP}[Phase contrast imaging of weak objects]\label{ip1} For a given support $\Omega \subset \mathbb{R}^m$, recover a complex-valued image $h \in L^2_\Omega$ from noisy intensity data \begin{equation*} I^{\ensuremath{\boldsymbol{\epsilon}}} = 1 + T h + \ensuremath{\boldsymbol{\epsilon}} \MTEXT{with} \norm{\ensuremath{\boldsymbol{\epsilon}}} \leq \epsilon. \end{equation*} \end{MyIP} \vspace{.5em} \subsection{Homogeneous and non-absorbing objects} \label{SS:HomObj} It is often legitimate to assume that the object is \emph{homogeneous} in the sense that phase shifts $\phi$ and attenuation $\mu$ are proportional, i.e.\ \begin{equation} h = - \mu - \Text{i} \phi = -\Text{i} \Text{e}^{-\Text{i} \alpha} \varphi \label{eq:SingleMat} \end{equation} for some $\alpha \in [0;\pi)$ and a \emph{real-valued} function $\varphi \in L^2(\mathbb{R}^m)$. Note that this includes the special case $\alpha = 0$ which corresponds to $\mu = 0$ and thus to a purely phase shifting, i.e.\ non-absorbing object, providing an excellent model for hard X-ray imaging of light-element samples. By plugging \eqref{eq:SingleMat} into \eqref{eq:fwModelCTF} and rearranging by trigonometric identities, we obtain a forward operator incorporating the \emph{homogeneity constraint}: \begin{equation} \begin{array}{rl} S_{\alpha} : L^2(\mathbb{R}^m ) &\!\!\!\!\to L^2 (\mathbb{R}^m),\\ \varphi &\!\!\!\!\mapsto T (-\Text{i} \Text{e}^{-\Text{i} \alpha} \varphi) = 2 \mathcal{F}^{-1} \left( s_\alpha \cdot \mathcal{F} (\varphi) \right) \end{array}\qquad s_\alpha(\ensuremath{\boldsymbol{\xi}} ) := \sin \left( \frac{ |\ensuremath{\boldsymbol{\xi}}|^2 }{2\mathfrak{f}}%{\tilde N_{\textup{F}}} + \alpha \right)\label{eq:fwModel2} \end{equation} Accordingly, the forward model reduces to a multiplication with the contrast transfer function $s_\alpha$ (CTF) in Fourier space \cite{Guigay1977CTF,Turner2004FormulaWeakAbsSlowlyVarPhase}. This makes the inversion of $S_{\alpha}$ significantly easier than that of $T$, which is why we state it as a second inverse problem: \vspace{.5em} \begin{MyIP}[Phase contrast imaging of weak homogeneous objects]\label{ip2} For given $\Omega \subset \mathbb{R}^m$, recover a real-valued image $\varphi \in L^2_\Omega$ from noisy intensity data \begin{equation*} I^{\ensuremath{\boldsymbol{\epsilon}}} = 1 + S_{\alpha} \varphi + \ensuremath{\boldsymbol{\epsilon}} \MTEXT{with} \norm{\ensuremath{\boldsymbol{\epsilon}}} \leq \epsilon. \end{equation*} \end{MyIP} \vspace{.5em} \subsection{Stability estimates} \label{SS:StabResults} The statement of \cref{ip1,ip2} immediately raises the question whether these are uniquely solvable and whether the solution is \emph{stable} with respect to noise $\ensuremath{\boldsymbol{\epsilon}}$. In order to illustrate the significance of this problem, we first recall some well-known facts on the derived inverse problems without assuming a support constraint, i.e.\ for $\Omega = \mathbb{R}^m$: as the null-space $\mathcal{N}(T) = \{\Text{i} \mathcal{D}^{-1}(f): f \in L^2(\mathbb{R}^m)\text{ real-valued}\}$ of the forward map $T: L^2(\mathbb{R}^m) \to L^2(\mathbb{R}^m)$ is huge, \cref{ip1} is heavily non-unique in this setting. The operator $S_{\alpha}$, on the other hand, is indeed injective so that \cref{ip2} is uniquely solvable. However, the inversion of $S_{\alpha}$ is \emph{ill-posed} since noise in Fourier-frequencies near the zeros of the CTF $s_\alpha$ is amplified by arbitrary factors in the reconstruction To our great surprise, imposing a support constraint with bounded $\Omega$ does not only rule out non-uniqueness (as proven in \cite{Maretzke2015IP}), but even turns \cref{ip1} into a \emph{well-posed} problem: every admissible image $h \in L^2_\Omega$ gives rise to finite \emph{contrast} $\norm{Th} \geq C_{\textup{IP1}} \norm{h}$ in the observable data with some lower bound $C_{\textup{IP1}} > 0$: \vspace{.5em} \begin{theorem}[Well-posedness and stability estimate for \cref{ip1}] \label{thm:IP1StabRes} Let the support-domain $\Omega$ be given by a stripe of width $1$, without loss of generality \ $\Omega := [-1/2; 1/2] \times \mathbb{R}^{m-1}$. Then there exists a constant $C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}) > 0$ such that \begin{equation} \norm{T h} \geq C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}) \norm{h} \MTEXT{for all} h \in L^2_\Omega, \label{eq:IP1StabRes-1} \end{equation} i.e.\ \cref{ip1} is well-posed. The stability constant satisfies the estimate \begin{equation} C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}})\geq (2\pi \mathfrak{f}}%{\tilde N_{\textup{F}})^{\frac 1 4} \bigg( 1 - \frac{3}{8 \mathfrak{f}}%{\tilde N_{\textup{F}} } + \mathcal{O}\Big(\mathfrak{f}}%{\tilde N_{\textup{F}} ^{-2} \Big) \bigg) \exp\left(-\mathfrak{f}}%{\tilde N_{\textup{F}} / 8 \right). \label{eq:IP1StabRes-2} \end{equation} \end{theorem} \vspace{.5em} \cref{thm:IP1StabRes} is proven in \secref{S3} along with a characterization of the least stable modes, i.e.\ of the images $h$ that induce least contrast under $T$. Notably, \eqref{eq:IP1StabRes-1} implies $\norm{h} \leq C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}})^{-1} \norm{Th}$, ensuring finite amplification of data errors $\leq C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}})^{-1} \norm{\ensuremath{\boldsymbol{\epsilon}}}$ upon inversion of $T$ and thus \emph{stability} of the reconstruction of $h$ from $I^{\ensuremath{\boldsymbol{\epsilon}}}$. By \eqref{eq:IP1StabRes-2}, however, the constant $C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}})$ decays (nearly) exponentially with increasing $\mathfrak{f}}%{\tilde N_{\textup{F}}$ so that \cref{thm:IP1StabRes} hardly guarantees stability in any practical sense for Fresnel numbers $\lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF \geq 100$. Fortunately, the stability estimate can be improved to algebraic decay with $\mathfrak{f}}%{\tilde N_{\textup{F}}$ in the case of \cref{ip2}, as shown in \secref{S4}: \vspace{.5em} \begin{theorem}[Well-posedness and stability estimate for \cref{ip2}] \label{thm:IP2StabRes} Let the support-domain $\Omega := \{ \ensuremath{\boldsymbol{x}} \in \mathbb{R} ^m : |\ensuremath{\boldsymbol{x}} | \leq \frac 1 2\} $ be a ball of diameter $1$. Then the stability constant $C_{\textup{IP2}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}, \alpha):= \inf_{\varphi\in L^2_\Omega, \norm{\varphi} = 1} \norm{S_\alpha \varphi}$ of \cref{ip2} is bounded by \begin{equation} C_{\textup{IP2}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}, \alpha) \geq \max \left\{ \min \left\{ c_{1} , c_{2} \mathfrak{f}}%{\tilde N_{\textup{F}}^{-1} \right\}, \min \left\{ c_{3} \alpha , c_{4} \mathfrak{f}}%{\tilde N_{\textup{F}}^{-\frac 1 2} \right\} \right\} \label{eq:IP2StabRes-2} \end{equation} for some constants $c_j > 0$ that depend only on the dimension $m$. In particular, $C_{\textup{IP2}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}, \alpha)=\mathcal{O}(\mathfrak{f}}%{\tilde N_{\textup{F}}^{-1})$ for $\alpha=0$ and $C_{\textup{IP2}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}, \alpha)=\mathcal{O}(\mathfrak{f}}%{\tilde N_{\textup{F}}^{-1/2})$ for $\alpha>0$ as $\mathfrak{f}}%{\tilde N_{\textup{F}}\to\infty$. \end{theorem} \vspace{.5em} We recall that the physical lengthscale $b$ underlying to the Fresnel number $\mathfrak{f}}%{\tilde N_{\textup{F}}$ in \cref{thm:IP1StabRes,thm:IP2StabRes} is the diameter of the support-domain $\Omega$ as the latter is taken to be unit length. Accordingly, the resulting stability constants $C_{\textup{IP1}}, C_{\textup{IP2}}$ are much smaller than $1$ for typical values $10 \leq \lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF \leq 1000$. Moreover, we emphasize that the stated results for \cref{ip1,ip2} are both for reconstructions from a \emph{single} diffraction pattern. Image recovery from \emph{two} holograms recorded at different distances is treated in \secref{S5} as a corollary of the stability analysis of \cref{ip2}. \vspace{1em} \section{Stability analysis of \cref{ip1}} \label{S3} \subsection{Principal approach} \label{SS3.1} We start our analysis with \cref{ip1}, corresponding to the recovery of general complex-valued images from a single hologram without homogeneity constraint. In order to understand its mathematical structure, it is instructive to rewrite the forward operator $T$ in the form \begin{equation} \begin{aligned} T h &= 2 \Re \big( \mathcal{D}( h ) \big) = \mathcal{D}(h) + \closure{\mathcal{D}(h)} = \mathcal{D}(h) + \mathcal{F}^{-1} \big( m_{\tNF}}%{m_{\textup{F}}^{-1} \cdot \mathcal{F}(\closure h ) \big) \\ &= \mathcal{D}(h) + \mathcal{D}^{-1} ( \closure h) \MTEXT{for} h \in L^2(\mathbb{R}^m). \end{aligned}\label{eq:3.1-1} \end{equation} Here, the overbar denotes complex conjugation and we have used that the Fresnel propagation factor $m_{\tNF}}%{m_{\textup{F}}$ is unitary. According to \eqref{eq:3.1-1}, the linearized contrast $Th$ in the intensity data is given by a superposition of the propagated image $\mathcal{D}(h)$ and the \emph{back-propagated twin-image} $\mathcal{D}^{-1}(\closure h)$. Since $\mathcal{D}$ is unitary, reconstructing $h$ from one of these components \emph{alone} would be straightforward. Solving \cref{ip1} thus amounts to disentangling image and twin-image. In order to separate these components, we propagate the near-field hologram $Th$ by application of $\mathcal{D}$. By \eqref{eq:3.1-1}, this yields \begin{equation} \mathcal{D} T h = \mathcal{D}^2( h) + \closure h. \label{eq:3.1-2} \end{equation} Accordingly, we recover the sharp twin-image $\closure h$ up to perturbations originating from the doubly propagated image $\mathcal{D}^2(h)$. This is the principle of \emph{Gabor holography} \cite{Gabor1948_Holography}, which can be used as a \emph{qualitative} image reconstruction technique \cite{PaganinXRay} as illustrated in \cref{figure2}. Here, we follow this approach in a converse manner: rather than contenting ourselves with the perturbed twin-image $\closure h$, we exploit a \emph{support constraint} \begin{equation} \textup{supp}(h) = \closure{\{ \ensuremath{\boldsymbol{x}} \in \mathbb{R}^m: h(\ensuremath{\boldsymbol{x}}) \neq 0 \}} \subset \Omega \end{equation} by restricting \eqref{eq:3.1-2} to the complement of $\Omega$. This yields \begin{equation} \mathcal{D} T h|_{\comp \Omega} = \mathcal{D}^2( h)|_{\comp \Omega} + \closure h |_{\comp \Omega} = \mathcal{D}^2( h)|_{\comp \Omega} \MTEXT{for any} h \in L^2_\Omega. \label{eq:3.1-3} \end{equation} By the proposed propagation-and-restriction procedure, the twin-image is thus completely eliminated from the data as sketched in \cref{figure2}. Note that the map $Th \mapsto \mathcal{D}(Th)|_{\comp \Omega} = \mathcal{D}^2( h)|_{\comp \Omega}$ is norm-decreasing in $L^2(\mathbb{R}^m)$. Hence, \eqref{eq:3.1-3} implies that the solution of \cref{ip1} is at most as ill-posed as the reconstruction from incomplete Fresnel data $\mathcal{D}^2( h)|_{\comp \Omega}$. This reduction to a data completion problem is the principal idea of our stability analysis for Inverse Problem \ref{ip1}. \begin{figure} \centering \includegraphics[width=\textwidth]{./figure2.pdf} \caption{Illustration of the principal idea for the stability analysis of \cref{ip1}. By applying the Fresnel propagator $\mathcal{D}$ to data $Th$, the \emph{twin-image} $\closure h$ becomes sharp (\emph{Gabor holography}, see logo in central panel). By restricting to the complement $\Omega^{\textup c}$ of the support-domain $ \Omega \supset \textup{supp}(h)$, $\closure h$ is eliminated and incomplete Fresnel data $\mathcal{D}^2(h)|_{\Omega^{\textup c}}$ is obtained (right panel). Images show real parts of numerically computed fields from a hologram (left panel) recorded at GINIX \cite{Salditt2015GINIX}, P10-beamline, DESY. \label{figure2}} \end{figure} \vspace{.5em} \subsection{Reduction to Fourier completion problem} \label{SS3.2} In order to gain a simpler expression for the reduced data $\mathcal{D}^2( h)|_{\comp \Omega}$ obtained in \secref{SS3.1}, we use an alternate form of the Fresnel propagator $\mathcal{D}$. By application of the convolution theorem to \eqref{eq:FresnelProp}, the following representation can be obtained (see e.g.\ \cite{PaganinXRay}): \begin{equation} \mathcal{D}(h)(\ensuremath{\boldsymbol{x}}) = \Text{e}^{-\Text{i} m \pi /4} \mathfrak{f}}%{\tilde N_{\textup{F}} ^{\frac m 2 } n_{\tNF}}%{n_{\textup{F}}(\ensuremath{\boldsymbol{x}}) \cdot \mathcal{F} (n_{\tNF}}%{n_{\textup{F}} \cdot h)(\mathfrak{f}}%{\tilde N_{\textup{F}} \ensuremath{\boldsymbol{x}} ), \;\; n_{\tNF}}%{n_{\textup{F}}(\ensuremath{\boldsymbol{x}}) := \exp\left( \frac{\Text{i}}{2} \mathfrak{f}}%{\tilde N_{\textup{F}} |\ensuremath{\boldsymbol{x}}|^2 \right) \label{eq:FresnelPropAltForm} \end{equation} for all $\ensuremath{\boldsymbol{x}} \in \mathbb{R}^m$. \eqref{eq:FresnelPropAltForm} reveals that - up to pointwise multiplications with the unitary factor $n_{\tNF}}%{n_{\textup{F}}$ and rescaling - $\mathcal{D}$ may be written as a Fourier transform. Combined with the approach outlined in \secref{SS3.1}, this allows to identify stability of \cref{ip1} with the reconstruction of a function from \emph{incomplete Fourier data}: \vspace{.5em} \begin{theorem}[Reduction to Fourier data completion problem] \label{thm:IP1FourCompRed} Within the setting of \cref{ip1}, let $\Omega_{\tNF}}%{\Omega_{\textup{F}} := \{ (\mathfrak{f}}%{\tilde N_{\textup{F}}/2) \ensuremath{\boldsymbol{x}} : \ensuremath{\boldsymbol{x}} \in \Omega\}$ for arbitrary $\Omega \subset \mathbb{R}^m$. Then \begin{equation} \norm{ T h } \geq \bnorm{ \mathcal{F} ( n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot h )|_{ \comp \Omega_{\tNF}}%{\Omega_{\textup{F}}} } \MTEXT{for all} h \in L^2_\Omega \label{eq:IP1FourCompRed-1} \end{equation} where $n_{\tNF}}%{n_{\textup{F}}^{1/2}(\ensuremath{\boldsymbol{x}}) = \exp\left( \Text{i} \mathfrak{f}}%{\tilde N_{\textup{F}} |\ensuremath{\boldsymbol{x}}|^2 / 4\right)$. In particular, we have the relative stability estimate \begin{equation} C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}) = \inf_{h\in L^2_\Omega, \norm{h} = 1 } \norm{Th} \geq \inf_{h\in L^2_\Omega, \norm{h} = 1 } \norm{ \mathcal{F} ( h )|_{ \comp \Omega_{\tNF}}%{\Omega_{\textup{F}}} } \label{eq:IP1FourCompRed-2} \end{equation} \end{theorem} \vspace{.5em} \begin{proof} $\mathcal{D}$ is unitary and the restriction to $\comp \Omega \subset \mathbb{R}^m$ defines an orthogonal projection in $L^2(\mathbb{R}^m)$. Hence, \eqref{eq:3.1-3} implies the estimate \begin{equation} \norm{Th } = \norm{ \mathcal{D} T h } \geq \norm{ \mathcal{D} T h|_{\comp \Omega} } = \norm{\mathcal{D}^2( h)|_{\comp \Omega}} \MTEXT{for any} h \in L^2_\Omega. \label{eq:IP1FourCompRed-proof-1} \end{equation} By \eqref{eq:FresnelProp}, $\mathcal{D}^2$ is again a Fresnel propagator, yet to the Fresnel number $\mathfrak{f}}%{\tilde N_{\textup{F}}/2$. Accordingly, employing the alternative form \eqref{eq:FresnelPropAltForm} and exploiting that $|\Text{e}^{-\Text{i} m \pi /4}n_{\tNF}}%{n_{\textup{F}}^{1/2}|\equiv 1$ gives \begin{equation} \norm{\mathcal{D}^2( h)|_{\comp \Omega}} = \left( \tfrac{1}{2} \mathfrak{f}}%{\tilde N_{\textup{F}} \right)^{\frac m 2 } \norm{ \mathcal{F} (n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot h)\big( \tfrac{1}{2} \mathfrak{f}}%{\tilde N_{\textup{F}} \cdot \big)|_{\comp \Omega} }. \label{eq:IP1FourCompRed-proof-2} \end{equation} Introducing new coordinates $\ensuremath{\boldsymbol{\xi}} := (\mathfrak{f}}%{\tilde N_{\textup{F}}/2) \ensuremath{\boldsymbol{x}}$ and using that $\comp \Omega_{\tNF}}%{\Omega_{\textup{F}} = (\mathfrak{f}}%{\tilde N_{\textup{F}}/2) \cdot \comp \Omega$ holds by definition, this expression can be simplified to \begin{equation} \begin{aligned} \norm{\mathcal{D}^2( h)|_{\comp \Omega}}^2 &=\left( \tfrac{1}{2} \mathfrak{f}}%{\tilde N_{\textup{F}} \right)^{m} \int_{\comp \Omega} \big|\mathcal{F} (n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot h)( \tfrac{1}{2} \mathfrak{f}}%{\tilde N_{\textup{F}} \ensuremath{\boldsymbol{x}})|^2 \; \Text{d}\ensuremath{\boldsymbol{x}} \\ &= \int_{\comp \Omega_{\tNF}}%{\Omega_{\textup{F}}} \big|\mathcal{F} (n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot h) (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} = \norm{\mathcal{F}( n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot h )|_{\comp \Omega_{\tNF}}%{\Omega_{\textup{F}}}}^2. \label{eq:IP1FourCompRed-proof-3} \end{aligned} \end{equation} Combining \eqref{eq:IP1FourCompRed-proof-1} and \eqref{eq:IP1FourCompRed-proof-3} yields the first assertion \eqref{eq:IP1FourCompRed-1}. The second estimate \eqref{eq:IP1FourCompRed-2} then follows from the fact that the map $h \mapsto n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot h$ is isometric and bijective on $L^2_\Omega$. \end{proof} \vspace{.5em} \cref{thm:IP1FourCompRed} states that the solution of \cref{ip1} is \emph{at least as stable} as the reconstruction of an $L^2$-function $f$ with support in ${\Omega} \subset \mathbb{R}^m$ from incomplete Fourier measurements $\mathcal{F}(f)|_{{\comp \Omega_{\tNF}}%{\Omega_{\textup{F}}}}$. For compact $\Omega$, the latter Fourier completion problem can be shown to be unique and even \emph{well-posed} by employing an uncertainty principle for the 1D-Fourier transform derived by Nazarov \cite{Nazarov1993CompactFTBound} (see \cite{HavinJoericke1994UncertPrinc} for an English proof and \cite{Jaming2007_NazarovND} for its multidimensional generalization). Rather than following this approach for general support shapes, however, we will restrict to the special case of rectangular support-domains $\Omega$. This will enable a more explicit characterization of the dependence of $C_{\textup{IP1}}$ on the Fresnel number $\mathfrak{f}}%{\tilde N_{\textup{F}}$ via \cref{thm:IP1FourCompRed} as well as additional insights concerning the nature of the least stable modes of the forward operator $T$. \vspace{.5em} \subsection{Stability result for stripe-shaped supports} \label{SS3.3} In the following, we restrict to the simple case of a stripe-shaped support-domain $\Omega \subset \mathbb{R}^m$ as considered in \cref{thm:IP1StabRes}. Note that the forward operator $T$ is rotationally- and translationally invariant as is the Fresnel propagator $\mathcal{D}$. Hence, it is sufficient to consider domains of the form $\Omega := [-b/2 ; b/2] \times \mathbb{R}^{m-1}$. Moreover, $b$ can be set to $1$ which means that we define the Fresnel number $\mathfrak{f}}%{\tilde N_{\textup{F}}$ with respect to the support diameter. Accordingly, we may indeed restrict to the special case $ \Omega := [-1/2 ; 1/2] \times \mathbb{R}^{m-1}$ as done in \cref{thm:IP1StabRes} without loss of generality. Now we can employ the characterization of the stability constant in \cref{thm:IP1FourCompRed} for this special domain. We define $I := [-1/2 ; 1/2]$ and $I_{\tNF}}%{I_{\textup{F}} := [-\mathfrak{f}}%{\tilde N_{\textup{F}}/4 ; \mathfrak{f}}%{\tilde N_{\textup{F}}/4]$ for notational convenience. Recall that the $m$-dimensional Fourier transform $\mathcal{F}^{(m)}$ is a tensor product of one-dimensional Fourier transforms $\mathcal{F}^{(1)}$ applied along the different coordinate dimensions, i.e.\ $\mathcal{F}^{(m)}=\mathcal{F}^{(1)}\otimes \cdots\otimes\mathcal{F}^{(1)}$. Owing to the cartesian product structure of $\Omega = I \times \mathbb{R}^{m-1}$ and $\comp \Omega_{\tNF}}%{\Omega_{\textup{F}} = \comp{I_{\tNF}}%{I_{\textup{F}}} \times \mathbb{R}^{m-1}$, the restricted Fourier transforms \begin{equation} \mathcal{F}^{(m)}_{\Omega,\comp\Omega_{\tNF}}%{\Omega_{\textup{F}}}\,:\,L^2_{\Omega}\to L^2_{\comp\Omega_{\tNF}}%{\Omega_{\textup{F}}};\; h \mapsto (\mathcal{F}^{(m)}h)|_{\comp\Omega_{\tNF}}%{\Omega_{\textup{F}}},\qquad \mathcal{F}^{(1)}_{I,\compI_{\tNF}}%{I_{\textup{F}}}\,:\, L^2_I\to L^2_{\compI_{\tNF}}%{I_{\textup{F}}};\; h \mapsto (\mathcal{F}^{(1)}h)|_{\compI_{\tNF}}%{I_{\textup{F}}}, \label{eq:IP1DefFF} \end{equation} are likewise related by $\mathcal{F}^{(m)}_{\Omega,\comp\Omega_{\tNF}}%{\Omega_{\textup{F}}} = \mathcal{F}^{(1)}_{I,\comp{I_{\tNF}}%{I_{\textup{F}}}}\otimes \mathcal{F}^{(1)}\otimes \cdots \otimes \mathcal{F}^{(1)}$. Applying this relation to the stability estimate in \eqref{eq:IP1FourCompRed-2} and exploiting unitarity of the Fourier transform yields \begin{eqnarray} C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}) &=& \inf_{h\in L^2_\Omega, \norm{h} = 1 } \bnorm{ \mathcal{F}^{(m)}_{\Omega,\comp \Omega_{\tNF}}%{\Omega_{\textup{F}}} h} = \inf_{h\in L^2_I, \norm{h} = 1 } \bnorm{\mathcal{F}^{(1)}_{I,\comp{I_{\tNF}}%{I_{\textup{F}}} }h }\nonumber\\ &=& \bigg(1 - \sup_{h\in L^2_I, \norm{h} = 1 } \big \| \mathcal{F}^{(1)} ( h ) |_{ I_{\tNF}}%{I_{\textup{F}} } \big\|^2 \bigg)^{1/2} . \label{eq:CIP1_PrincSingVal} \end{eqnarray} We thus need to estimate the norm of the 1D-operator $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}: L^2_I \to L^2_{I_{\tNF}}%{I_{\textup{F}}};\, h \mapsto \mathcal{F}^{(1)}(h)|_{I_{\tNF}}%{I_{\textup{F}}}$. This is achieved by explicit computation of the operator $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$ ($\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast$: adjoint of $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$), which turns out to be part of a well-studied family of compact and self-adjoint integral operators. Their eigenfunctions are known as prolate spheroidal wave functions, and the eigenpairs have been studied for example in \cite{Slepian1983FourierCompactSpectrum,Slepian1965_CpctFTSVD}. By applying these known results we obtain the following theorem: \vspace{.5em} \begin{theorem}[Spectral characterization of $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$] \label{thm:SVDFF} Let $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$ defined by \textup{\eqref{eq:IP1DefFF}}. Then \begin{eqnarray} \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}(f)\left(\frac x 2 \right) = \int_{1}^{1} \frac{ \sin \left( c (x-y) \right) }{ \pi (x-y) } f\left(\frac y 2 \right) \; \Text{d} y \MTEXT{with} c := \mathfrak{f}}%{\tilde N_{\textup{F}} / 8. \label{eq:IP1ProlateOP} \end{eqnarray} for all $h \in L^2_I$ and $x \in [-1;1]$, and $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$ is compact. The eigenvalues $\{ \lambda_{c,j} \}_{j \in \mathbb{N}_0} \subset \mathbb{R}_+$ and associated eigenfunctions $\{ \psi_{c,j} \}_{j \in \mathbb{N}_0} \subset L^2_I$ of $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$ thus coincide with those in \textup{\cite{Slepian1983FourierCompactSpectrum,Slepian1965_CpctFTSVD}}. In particular, all eigenvalues $\lambda_{c,0} > \lambda_{c,1} > \ldots$ have multiplicity one, and the $\psi_{c,j}$ may be chosen to form an orthonormal basis of $L^2_I$. Moreover, $\lambda_{c,0} < 1$ holds true and, for fixed $j \in \mathbb{N}_0$ and $\mathfrak{f}}%{\tilde N_{\textup{F}}\to \infty$, $\lambda_{c,j}$ has the asymptotic expansion \begin{equation} 1 - \lambda_{c,j} = \frac{ (2\pi)^{\frac 1 2} \mathfrak{f}}%{\tilde N_{\textup{F}} ^{j + \frac 1 2 }}{j!} \left( 1 - \frac{6j^2 -2j + 3 }{4 \mathfrak{f}}%{\tilde N_{\textup{F}}} + \mathcal{O} \left( \frac 1 {\mathfrak{f}}%{\tilde N_{\textup{F}}^2 } \right)\right) \exp(-\mathfrak{f}}%{\tilde N_{\textup{F}} /4 ). \label{eq:IP1EVProlateAsymp-1} \end{equation} \end{theorem} \vspace{.5em} \begin{proof} The restriction to the interval $I_{\tNF}}%{I_{\textup{F}} = [-\mathfrak{f}}%{\tilde N_{\textup{F}}/4 ; \mathfrak{f}}%{\tilde N_{\textup{F}}/4]$ can be written in the form of a multiplication with its indicator function $\boldsymbol 1 _ {I_{\tNF}}%{I_{\textup{F}}}$. By the convolution theorem, we thus obtain for all $h \in L^2_I $, $x \in [-1; 1]$ \vspace{.5em} \begin{eqnarray*} \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}} (h)\left(\frac x 2 \right) &=& \mathcal{F}^{-1} \left( \boldsymbol 1 _ {I_{\tNF}}%{I_{\textup{F}}} \cdot \mathcal{F}( h ) \right) \left(\frac x 2 \right) = (2\pi)^{- \frac 1 2} \mathcal{F}^{-1}\big(\boldsymbol 1 _ {I_{\tNF}}%{I_{\textup{F}}} \big) \ast h \left(\frac x 2 \right) \nonumber \\ &=& \frac 1 { 2 \pi } \int_{-1/2}^{1/2} \frac{ 2 \sin \big( \frac{\mathfrak{f}}%{\tilde N_{\textup{F}}} 4 (\frac x 2 -y) \big) }{\frac 1 2 x-y } f(y) \; \Text{d} y = \int_{1}^{1} \frac{ \sin \left( c (x-y) \right) }{ \pi (x-y) } f\left(\frac y 2 \right) \; \Text{d} y. \end{eqnarray*} The spectral characterization of the resulting integral operators in \cite{Slepian1983FourierCompactSpectrum,Slepian1965_CpctFTSVD} directly yields the claimed properties of the eigensystem $\{ (\lambda_{c,j}, \psi_{c,j}) \}_{j \in \mathbb{N}_0}$ of $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$. In particular, the asymptotic expansion \eqref{eq:IP1EVProlateAsymp-1} is an analogue of the formula \cite[eq.\ (2)]{Slepian1983FourierCompactSpectrum}. Since $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$ is a restriction of the Fourier transform, we have $\norm{\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}} \leq \norm{\mathcal{F}} =1$. Hence, the principal eigenvalue of $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$ must satisfy $\lambda_{c,0} \leq 1$. If $\lambda_{c,0} =1$ then \begin{equation*} \norm{\mathcal{F}(\psi_{c,0})|_{\comp{I_{\tNF}}%{I_{\textup{F}}} } }^2 = \norm{\mathcal{F}(\psi_{c,0}) }^2 - \norm{\mathcal{F}(\psi_{c,0})|_{ I_{\tNF}}%{I_{\textup{F}} } }^2 = \norm{\psi_{c,0}}^2- \lambda_{c,0} \norm{\psi_{c,0}}^2 = 0, \end{equation*} i.e.\ $\mathcal{F}(\psi_{c,0})$ would have to vanish outside the interval $I_{\tNF}}%{I_{\textup{F}}$. However, as $\psi_{c,0} $ is compactly supported, $\mathcal{F}(\psi_{c,0})$ is an entire function and thus vanishes identically if $\mathcal{F}(\psi_{c,0})|_{\comp{I_{\tNF}}%{I_{\textup{F}}}} = 0$. This is impossible since $\psi_{c,0} $ is an eigenfunction. Hence, $\lambda_{c,0} < 1$ must hold true. \end{proof} \vspace{.5em} We emphasize the nontrivial dependence of both the eigenvalues $\lambda_{c,j}$ and the eigenfunctions $\psi_{c,j}$ on the parameter $c = \mathfrak{f}}%{\tilde N_{\textup{F}}/8$. For convenience, however, we will suppress the subscript $c$ in the following. \cref{thm:SVDFF} constitutes the final ingredient which is needed to prove the sought stability result for \cref{ip1}: \vspace{.5em} \begin{proof}[Proof of \cref{thm:IP1StabRes}] According to the characterization of the stability constant in \eqref{eq:CIP1_PrincSingVal}, $C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}) $ can be expressed in terms of the operator norm of $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$. Since $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$ is compact with principal eigenvalue $\lambda_0 < 1 $ and orthonormal eigenfunctions $\{\psi_j\}_{j\in \mathbb{N}_0}$ as characterized in \cref{thm:SVDFF}, we have \begin{equation*} \norm{\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}}^2 = \norm{\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}} = \sup_{j \in \mathbb{N}_0} \norm{ \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}} \psi_j } = \sup_{j \in \mathbb{N}_0} \lambda_j = \lambda_0 \end{equation*} By \eqref{eq:CIP1_PrincSingVal}, this implies $C_{\textup{IP1}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}})^2 = 1 - \lambda_0 > 0$ , i.e.\ \emph{well-posedness} of \cref{ip1}. Setting $j = 0$ in \eqref{eq:IP1EVProlateAsymp-1} yields the asymptotic characterization \eqref{eq:IP1StabRes-2}. \end{proof} \vspace{.5em} \subsection{Characterization of the least stable modes} \label{SS3.4} So far, we have not exploited the full potential of the reduction to a Fourier data completion problem in \cref{thm:IP1FourCompRed} yet: only the characterization of the stability constant \eqref{eq:IP1FourCompRed-2}, i.e.\ of the \emph{worst-case-stability}, has been used in the proof of \cref{thm:IP1StabRes}. Notably however, the more general estimate \eqref{eq:IP1FourCompRed-1} even bounds the contrast $\norm{Th}$ attained by \emph{individual images} $h$ with respect to the corresponding incomplete Fourier data $ \mathcal{F}(n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot h) | _{\comp \Omega_{\tNF}}%{\Omega_{\textup{F}} } $. This enables a precise prediction of the reconstruction stability for different image modes in \cref{ip1} beyond the universal lower bound proven in \cref{thm:IP1StabRes}. In order to avoid notational difficulties in the argument, we do the analysis for a box-shaped support-domain $\Omega := [-1/2; 1/2]^m = I^m$. Owing to the simple Cartesian geometry, the results obtained for a stripe support are easily generalized to this case, including a characterization of the stability of individual modes. We define $m$-dimensional prolate spheroidal wave functions as the tensor product \begin{equation} \psi_{\ensuremath{\boldsymbol{j}}}(\ensuremath{\boldsymbol{x}}) := (\psi_{j_1} \otimes \ldots \otimes \psi_{j_m})(\ensuremath{\boldsymbol{x}}) := \prod_{j = 1}^m \psi_j(x_j) \MTEXT{for} \ensuremath{\boldsymbol{j}} = (j_1, \ldots, j_m) \in \mathbb{N}_0^m. \label{eq:IP1MDProlate} \end{equation} Moreover, let $\ip{f}{g} := \int_\Omega f(\ensuremath{\boldsymbol{x}}) \closure{ g(\ensuremath{\boldsymbol{x}})}\; \Text{d} \ensuremath{\boldsymbol{x}}$ for $h_1, h_2\in L^2_\Omega$ denote usual $L^2$-inner product. With this notation, we obtain the following modal stability estimates: \vspace{.5em} \begin{theorem}[Stability of individual modes in \cref{ip1}] \label{thm:LeastStableModes} Let $ \Omega = I^m$ and let $\{(\lambda_j,\psi_j)\}_{j\in \mathbb{N}_0}$ denote the eigenvalue decomposition of $\mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$ in \cref{thm:SVDFF}. Moreover, define $\phi_{\ensuremath{\boldsymbol{j}}} := n_{\tNF}}%{n_{\textup{F}}^{-1/2} \cdot \psi_{\ensuremath{\boldsymbol{j}}}$ for all multi-indices $ \ensuremath{\boldsymbol{j}} \in \mathbb{N}_0^m$. Then $\{\phi_{\ensuremath{\boldsymbol{j}}}\}_{\ensuremath{\boldsymbol{j}} \in \mathbb{N}_0^m}$ is an orthonormal basis of $L^2_\Omega$, and with $c_{\textup{IP1}, \ensuremath{\boldsymbol{j}}} := (1- \prod_{l=1}^m \lambda_{j_l})^{1/2}$ we have \begin{equation} \norm{Th}^2 \geq \sum_{\ensuremath{\boldsymbol{j}} \in \mathbb{N}_0^m} c_{\textup{IP1}, \ensuremath{\boldsymbol{j}}}^2 |\ip{h}{\phi_{\ensuremath{\boldsymbol{j}}}}|^2 \MTEXT{for any} h = \sum_{\ensuremath{\boldsymbol{j}} \in \mathbb{N}_0^m} \ip{h}{\phi_{\ensuremath{\boldsymbol{j}}}} \phi_{\ensuremath{\boldsymbol{j}}} \in L^2_\Omega. \label{eq:LeastStableModes-1} \end{equation} \end{theorem} \vspace{.5em} \begin{proof} As $\{\psi_{j}\}_{j\in \mathbb{N}_0}$ is an orthonormal basis of $L^2_I$, the tensor products $\psi_{\ensuremath{\boldsymbol{j}}} = \psi_{j_1} \otimes \ldots \otimes \psi_{j_m} $ form an orthonormal basis of $L^2_\Omega$ with $\Omega = I^m$. Since $n_{\tNF}}%{n_{\textup{F}}^{-1/2}$ is unitary, the same is true for $\{\phi_{\ensuremath{\boldsymbol{j}}}\}_{\ensuremath{\boldsymbol{j}} \in \mathbb{N}_0^m}$ so that any $h \in L^2_\Omega$ can be written as $ h = \sum_{\ensuremath{\boldsymbol{j}} \in \mathbb{N}_0^m} a_{\ensuremath{\boldsymbol{j}}} \phi_{\ensuremath{\boldsymbol{j}}}$ with $a_{\ensuremath{\boldsymbol{j}}} := \ip{h}{\phi_{\ensuremath{\boldsymbol{j}}}}$. By the tensor product structure of $\psi_{\ensuremath{\boldsymbol{j}}}$ and $\mathcal{F}^{(m)}$, we further have \begin{align*} \mathcal{F}^{(m)} ( n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot \phi_{\ensuremath{\boldsymbol{j}}} )|_{\Omega_{\tNF}}%{\Omega_{\textup{F}}} &= \mathcal{F}^{(m)}( \psi_{\ensuremath{\boldsymbol{j}}} )|_{I_{\tNF}}%{I_{\textup{F}}^m} = (\mathcal{F}^{(1)} \psi_{j_1} )|_{I_{\tNF}}%{I_{\textup{F}}} \otimes \ldots \otimes (\mathcal{F}^{(1)} \psi_{j_m} )|_{I_{\tNF}}%{I_{\textup{F}}} \\ &= \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}\psi_{j_1} \otimes \ldots \otimes \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}\psi_{j_m} \end{align*} for all $\ensuremath{\boldsymbol{j}} = (j_1, \ldots, j_m) \in \mathbb{N}_0$. As the $\psi_{l}$ are eigenfunctions of the 1D-map $ \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}$ to the eigenvalues $\lambda_l$ (see \cref{thm:SVDFF}), the above relation implies \begin{eqnarray} &&\left\langle \mathcal{F} ( n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot \phi_{\ensuremath{\boldsymbol{j}}})|_{ \Omega_{\tNF}}%{\Omega_{\textup{F}}}, \mathcal{F} ( n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot \phi_{\ensuremath{\boldsymbol{k}}} )|_{\Omega_{\tNF}}%{\Omega_{\textup{F}}} \right\rangle \label{eq:LeastStableModes-proof2}\\ &=& \prod_{l=1}^m \left\langle \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}^\ast \mathcal{F}_{\tNF}}%{\mathcal{F}_{\textup{F}}(\psi_{j_l} ), \psi_{k_l} \right\rangle = \prod_{l=1}^m \lambda_{j_l} \left\langle \psi_{j_l}, \psi_{k_l}\right\rangle = \delta_{\ensuremath{\boldsymbol{j}}\ensuremath{\boldsymbol{k}}} \prod_{l=1}^m \lambda_{j_l} = \delta_{\ensuremath{\boldsymbol{j}}\ensuremath{\boldsymbol{k}}} ( 1- c_{\textup{IP1}, \ensuremath{\boldsymbol{j}}}^2) \nonumbe \end{eqnarray} for all $ \ensuremath{\boldsymbol{j}}, \ensuremath{\boldsymbol{k}} \in \mathbb{N}_0^m$ where $\delta_{\ensuremath{\boldsymbol{j}}\ensuremath{\boldsymbol{k}}} \in \{0,1\}$ is the multidimensional Kronecker-symbol. Using the principal bound \eqref{eq:IP1FourCompRed-1} from \cref{thm:IP1FourCompRed}, unitarity of $\mathcal{F}$ and \eqref{eq:LeastStableModes-proof2} finally gives \begin{align*} \norm{Th}^2 &\geq \norm{ \mathcal{F} ( n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot h )|_{\comp \Omega_{\tNF}}%{\Omega_{\textup{F}}} }^2 = \norm{h}^2 - \norm{ \mathcal{F} ( n_{\tNF}}%{n_{\textup{F}}^{1/2} \cdot h)|_{ \Omega_{\tNF}}%{\Omega_{\textup{F}}} }^2 \\ &= \sum_{\ensuremath{\boldsymbol{j}} \in \mathbb{N}_0^m} |a_{\ensuremath{\boldsymbol{j}}}|^2 \!-\!\!\! \sum_{\ensuremath{\boldsymbol{j}}, \ensuremath{\boldsymbol{k}} \in \mathbb{N}_0^m} \! a_{\ensuremath{\boldsymbol{j}}} \cc{a_{\ensuremath{\boldsymbol{k}}} } \bigg\langle \mathcal{F} ( n_{\tNF}}%{n_{\textup{F}}^{1/2} \!\cdot\! \phi_{\ensuremath{\boldsymbol{j}}})|_{ \Omega_{\tNF}}%{\Omega_{\textup{F}}}, \mathcal{F} ( n_{\tNF}}%{n_{\textup{F}}^{1/2} \!\cdot\! \phi_{\ensuremath{\boldsymbol{k}}} )|_{\Omega_{\tNF}}%{\Omega_{\textup{F}}} \bigg\rangle = \sum_{\ensuremath{\boldsymbol{j}} \in \mathbb{N}_0^m} c_{\textup{IP1}, \ensuremath{\boldsymbol{j}}}^2 |a_{\ensuremath{\boldsymbol{j}}}|^2. \end{align*} \end{proof} \vspace{.5em} In \cref{thm:LeastStableModes} we obtain \emph{individual} stability constants $ c_{\textup{IP1}, \ensuremath{\boldsymbol{j}}}$ such that each of the constructed orthonormal basis modes $\phi_{\ensuremath{\boldsymbol{j}}}$ attains data contrast $\norm{T \phi_{\ensuremath{\boldsymbol{j}}} } \geq c_{\textup{IP1}, \ensuremath{\boldsymbol{j}}}$. As the sequence of eigenvalues $\{\lambda_j\}_{k \in \mathbb{N}_0}$ in \cref{thm:SVDFF} is strictly decreasing, it is readily seen that stability \emph{increases} with the multi-index $\ensuremath{\boldsymbol{j}}$, i.e.\ \begin{equation} c_{\textup{IP1}, \ensuremath{\boldsymbol{k}}} > c_{\textup{IP1}, \ensuremath{\boldsymbol{j}}} \MTEXT{if} \ensuremath{\boldsymbol{k}} \neq \ensuremath{\boldsymbol{j}}, \; k_l \geq j_l \MTEXT{for all} l = 1,\ldots,m. \end{equation} According to \cref{thm:LeastStableModes}, the least stable modes are thus exactly the basis functions $\phi_{\ensuremath{\boldsymbol{j}}}$ of (componentwise) small multi-index $\ensuremath{\boldsymbol{j}}$, which are given by prolate spheroidal wave functions $\psi_ {\ensuremath{\boldsymbol{j}}} = \psi_{j_1} \otimes \ldots \otimes \psi_{j_m}$, modulated by the Fresnel factor $n_{\tNF}}%{n_{\textup{F}}^{-1/2}$. Details on the shape of the $\psi_ {j}$ in turn are readily available, see e.g.\ \cite{Slepian1983FourierCompactSpectrum}. In particular, the index $j$ can be interpreted as a \emph{frequency} since $\psi_j$ is smooth and real-valued with exactly $j$ zeros and $j+1$ extrema within the interval $(-1 /2 ; 1/2)$. By extending this observation to the $\phi_{\ensuremath{\boldsymbol{j}}}$ we deduce the nature of the least stable modes in \cref{ip1}: \vspace{.5em} \begin{corollary}[Least stable modes in \cref{ip1}]\label{cor:LeastStableModes} The least stable modes in \cref{ip1} for $\Omega = [-1 /2; 1/2]^m$ are \emph{low-frequency} prolate spheroidal wave functions modulated by the Fresnel-factor $n_{\tNF}}%{n_{\textup{F}}^{-1/2}(\ensuremath{\boldsymbol{x}}) = \exp(-\Text{i}\mathfrak{f}}%{\tilde N_{\textup{F}}|\ensuremath{\boldsymbol{x}}|^2/4)$. \end{corollary} \vspace{.5em} \subsection{Numerical Validation} \label{SS3.5} We return to the starting point of our stability analysis, namely the reduction to a Fourier data completion problem via the principal estimate \eqref{eq:IP1FourCompRed-1}. The question whether or not the derived stability bounds in \cref{thm:IP1StabRes} and \cref{thm:LeastStableModes} are \emph{optimal} (or at least close to) crucially depends on the sharpness of this inequality. In the following we investigate this remaining issue numerically. To this end, we approximate the stability bound $C_{\textup{IP1}}( \Omega,\mathfrak{f}}%{\tilde N_{\textup{F}})$ by computing the smallest singular value of a discretized forward operator $T$ in $m = 1$ dimensions. The Fresnel propagator is approximated by fast Fourier transforms on a 1D-grid of $512^2$ equidistant points, where the central 512 grid points form the supporting interval $\Omega = [-1/2; 1/2]$. We compute the smallest singular value of $T$ via a power method for Fresnel numbers $\lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF \in [1; 10]$. These numerical results for the complete, yet discretized forward operator, are compared to the asymptotic stability bound \eqref{eq:IP1StabRes-2} in \cref{thm:IP1StabRes}, neglecting the $\mathcal{O}(\mathfrak{f}}%{\tilde N_{\textup{F}}^{-2})$-contributions. The different predictions for the stability constant $C_{\textup{IP1}}( \Omega,\mathfrak{f}}%{\tilde N_{\textup{F}})$ are plotted in \cref{figure4}(a). \begin{figure} \centering \includegraphics[width=\textwidth]{./figure3.pdf} \caption{Numerical validation of the stability analysis for \cref{ip1}. \\ (a) Comparison of the analytical bound \eqref{eq:IP1StabRes-2} for the stability constant $C_{\textup{IP1}}$ (red-dashed line) to numerical computations of the smallest singular value of $T$ (blue-solid). \\ (b) Numerically computed least stable singular mode $\phi_0$ for $\lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF = \mathfrak{f}}%{\tilde N_{\textup{F}}/(2\pi) = 10$. The plotted modulation with $n_{\tNF}}%{n_{\textup{F}}^{1/2}$ reveals a unimodal structure as predicted by \cref{thm:LeastStableModes}. \label{figure4}} \end{figure} The semilogarithmic plot shows excellent agreement between the analytical bound \eqref{eq:IP1StabRes-2} and the numerical approximation in the asymptotic limit $\mathfrak{f}}%{\tilde N_{\textup{F}} \to \infty$. This indicates that our stability analysis, based on the potentially lossy estimate \eqref{eq:IP1FourCompRed-1}, is surprisingly sharp. Accordingly, one might expect that also the corresponding least stable modes $\phi_{\ensuremath{\boldsymbol{j}}}$ are well-characterized by \cref{thm:LeastStableModes}. This is supported by the simulation results: \cref{figure4}(b) exemplarily plots the numerically computed mode $\phi_0$ to the minimum singular value of $T$ for $\lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF = \mathfrak{f}}%{\tilde N_{\textup{F}}/(2\pi) = 10$. According to \cref{thm:IP1StabRes}, the plotted product with the factor $n_{\tNF}}%{n_{\textup{F}}^{1/2}$ should yield the zeroth order prolate spheroidal wave function $\psi_0$. This is confirmed by the smooth unimodal profiles obtained in \cref{figure4}(b). \vspace{1em} \section{Stability analysis of \cref{ip2}} \label{S4} The aim of this section is to prove \cref{thm:IP2StabRes}, establishing \emph{algebraic} rates of the stability constant $C_{\textup{IP2}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}) \gtrsim \mathfrak{f}}%{\tilde N_{\textup{F}}^{-1}$ under a homogeneity constraint for the imaged object. \vspace{.5em} \subsection{Preparations and Fourier domain splitting} \label{SS4.1} Throughout this section, let $\varphi \in L^2(\mathbb{R}^m)$ and let $\hat \varphi := \mathcal{F}(\varphi)$ denote its Fourier transform. Recall from definition \eqref{eq:fwModel2} that the operator $S_{\alpha}$ denotes multiplication with $2s_\alpha(\ensuremath{\boldsymbol{\xi}}) = 2\sin \left( |\ensuremath{\boldsymbol{\xi}}|^2/(2\mathfrak{f}}%{\tilde N_{\textup{F}}) + \alpha \right)$ in the Fourier domain, and hence \begin{equation} \norm{S_{\alpha}\varphi} = \norm{\mathcal{F} S_{\alpha}\varphi} = 2 \norm{ s_\alpha \cdot \hat \varphi }. \label{eq:IP2Contrast} \end{equation} According to \eqref{eq:IP2Contrast}, the images $\varphi$ attaining low contrast, i.e.\ small $\norm{S_{\alpha}\varphi}$, are exactly those for which $\hat \varphi$ is concentrated about the zero-manifolds of the CTF $s_\alpha$. As signals $\hat \varphi \in L^2(\mathbb{R}^m)$ may be arbitrarily sharply peaked about these manifolds of zero contrast, \cref{ip2} is ill-posed for general images $\varphi \in L^2(\mathbb{R}^m)$. \begin{figure} \centering \includegraphics[width=\textwidth]{./figure4.pdf} \caption{Illustration of the principal argument for stability of \cref{ip2}: the black-dashed line plots the radially symmetric contrast transfer function $s_\alpha$ for $\alpha = 0$. Blue and red solid lines show examples of Fourier space signals of objects $\varphi$ and their images under the forward operator $S_{\alpha}$, respectively. \\ (a) General images $\varphi \in L^2(\mathbb{R}^m)$: $\mathcal{F}(\varphi)$ may be arbitrarily peaked at the zeros of $s_\alpha$ \\ (b) Support constraint $\varphi \in L^2_\Omega$: $\mathcal{F}(\varphi)$ is smooth and has finitely sharp peaks, which ensures minimum data contrast $\norm{\mathcal{F} (S_{\alpha}\varphi)} \geq C_{\textup{IP2}} \norm{\mathcal{F} (\varphi)}$ \label{figure5}} \end{figure} Now, we additionally assume a support constraint $\varphi \in L^2_\Omega$ for $\Omega := \closure { B(0,R) }$. Why does this constraint ensure well-posedness in the light of the problematic CTF-zeros? The explanation lies in the well-known fact that a compact support in real-space implies $\mathscr{C}^\infty$-smoothness (indeed analyticity) of the Fourier transform with norm-bounds on the derivatives in terms of the support size $R$. Owing to this regularity, $\hat \varphi$ may not be arbitrarily concentrated about the zero-manifolds of $s_\alpha$, which enables stability as illustrated in \cref{figure5}. The following lemma quantifies the smoothness of $\hat \varphi$ in a suitable form for the subsequent analysis: \vspace{.5em} \begin{lemma} \label{lem:CpctSuppDer2Bound} Let $g \in L^2_\Omega$ with support in $\Omega = \overline{B(0, R)}$ and Fourier transform $\hat g := \mathcal{F}( g)$. Let $\Delta$ be the Laplacian on $\mathbb{R}^m$. Then we have for any measurable set $B \subset \mathbb{R}^m$ \begin{equation} \int_{B} - \Delta |\hat g|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \leq 2 R^2 \norm{g} ^2. \label{eq:CpctSuppDer2Bound} \end{equation} \end{lemma} \vspace{.5em} \begin{proof} The compact support of $g$ implies infinite smoothness of $\hat g = \mathcal{F}( g)$. Using the identity $-\Delta \mathcal{F}(g) = \mathcal{F}(|\ensuremath{\boldsymbol{x}}|^2 g)$ and Cauchy-Schwarz's inequality we obtain \begin{eqnarray*} \int_{B} - \Delta |\hat g|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} &=& -2 \int_B \Big(|\nabla \hat g|^2 + \; \Re \big( \overline{\hat g} \cdot \Delta \hat g \big) \Big) \; \Text{d}\ensuremath{\boldsymbol{\xi}} \leq 2 \left | \int_B \overline{\hat g} \cdot \mathcal{F}(|\ensuremath{\boldsymbol{x}}|^2 g) \; \Text{d}\ensuremath{\boldsymbol{\xi}} \right| \\ &\leq& 2\norm{\hat g|_B} \norm{\mathcal{F}(|\ensuremath{\boldsymbol{x}}|^2 g)|_B} \leq 2\norm{ \hat g} \norm{\mathcal{F}(|\ensuremath{\boldsymbol{x}}|^2 g)} \leq 2\norm{g} \norm{|\ensuremath{\boldsymbol{x}}|^2 g}. \end{eqnarray*} As $ g$ vanishes outside $\overline{B(0, R)}$, we further have $\norm{|\ensuremath{\boldsymbol{x}}|^2 g} \leq R ^2 \norm{ g}$. \end{proof} \vspace{.5em} \noindent Note that Lemma \ref{lem:CpctSuppDer2Bound} can be interpreted as an \emph{uncertainty principle}: a bound for the derivative $-\Delta |\mathcal{F}(g)|^2$, limiting the sharpness of features in Fourier space, arises from the confinement $\textup{supp}( g) \subset \overline{B(0, R)}$ of the corresponding real-space signal $g$. For a quantitative analyis, we decompose the norm on the right-hand side of \eqref{eq:IP2Contrast} into stable bulk integrals and potentially unstable parts about the CTF-zeros by cutting out the subdomain $D_{\varepsilon} := \{ \ensuremath{\boldsymbol{\xi}} \in \mathbb{R}^m : |s_\alpha(\ensuremath{\boldsymbol{\xi}})| \geq \sin(\varepsilon) \}$ for some $ 0 < \varepsilon \leq \pi/6$: \begin{equation} \norm{ s_\alpha \cdot \hat \varphi }^2 = \underbrace{ \int_{D_{\varepsilon} } s_\alpha ( \ensuremath{\boldsymbol{\xi}} )^2 |\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d} \xi }_{ =: J_{\varepsilon} } + \sum_{j = 0}^\infty \underbrace{ \int_{B_j} s_\alpha ( \ensuremath{\boldsymbol{\xi}} )^2 |\hat \varphi(\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d} \xi }_{=: J_j} \label{eq:IP2StabDecomp} \end{equation} Here, the $B_j$ denote the annular connected components of $ \mathbb{R}^m \setminus D_{\varepsilon}$ about the $j$-th zero-manifold of $s_\alpha$ at radius $\xi_j := ( 2\mathfrak{f}}%{\tilde N_{\textup{F}})^{\frac 1 2} (j\pi - \alpha)^{\frac 1 2 } $, i.e.\ \begin{equation} \begin{aligned} B_j &= \{ \ensuremath{\boldsymbol{\xi}} \in \mathbb{R}^m : |\ensuremath{\boldsymbol{\xi}}| \in (b_{j-}; \; b_{j+})\}, &&b_{j\pm} := (\xi_j^2 \pm 2\mathfrak{f}}%{\tilde N_{\textup{F}} \varepsilon )^{\frac 1 2} \MTEXT{for} j \in \mathbb{N} \\ B_0 &= \{ \ensuremath{\boldsymbol{\xi}} \in \mathbb{R}^m : |\ensuremath{\boldsymbol{\xi}}| < b_0 \}, &&b_0 := (2\mathfrak{f}}%{\tilde N_{\textup{F}})^{\frac 1 2} \max( \varepsilon - \alpha, 0)^{\frac 1 2}. \end{aligned} \label{eq:IP2DefBj} \end{equation} Note that the constructed Fourier domain splitting is disjoint, i.e.\ $\mathbb{R}^m = ( \bigsqcup_{j=0}^\infty B_j ) \sqcup D_\varepsilon$. From the definition of the domain $D_{\varepsilon}$, it immediately follows that \begin{equation} J_\varepsilon \geq \sin(\varepsilon) \norm{\hat \varphi|_{D_\varepsilon}}. \label{eq:IP2CTFBulkBound} \end{equation} Hence, what remains to be done is to derive bounds for the sub-integrals $J_j$ around the zero-manifolds of $s_\alpha$ and to choose $\varepsilon$ to balance the contributions in \eqref{eq:IP2StabDecomp} . \vspace{.5em} \subsection{Estimate for the central CTF-minimum} \label{SS4.2} We first consider the ball-shaped domain $B_0$, i.e.\ the low frequency part of the Fourier domain splitting. Note that $B_0$ does not contain a zero of $s_\alpha$ if $\alpha > 0$ but still a (possibly small) local minimum of $s_\alpha^2$ at $\ensuremath{\boldsymbol{\xi}} = 0$. Since $B_0 = \emptyset$ for $\alpha \geq \varepsilon$, we may restrict to the case $ \alpha < \varepsilon$. By \eqref{eq:IP2DefBj} and the assumption $\varepsilon\leq \pi/6$, we have $|\ensuremath{\boldsymbol{\xi}}|^2/(2\mathfrak{f}}%{\tilde N_{\textup{F}}) + \alpha \in [0;\pi/6)$ and hence $s_\alpha(\ensuremath{\boldsymbol{\xi}})^2 \geq C_0 (|\ensuremath{\boldsymbol{\xi}}|^2/(2\mathfrak{f}}%{\tilde N_{\textup{F}}) + \alpha)^2$ for all $\ensuremath{\boldsymbol{\xi}} \in B_0$ with $C_0:= \sin(\pi/6)^2/(\pi/6)^2$. This implies \begin{equation} \begin{aligned} J_0 &= \int_{B_0} s_\alpha(\ensuremath{\boldsymbol{\xi}})^2 |\hat \varphi ( \ensuremath{\boldsymbol{\xi}}) |^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \geq C_{0 } \int_{B_0} \left( \frac{ |\ensuremath{\boldsymbol{\xi}}|^4 }{4\mathfrak{f}}%{\tilde N_{\textup{F}}^2} + \frac{ \alpha |\ensuremath{\boldsymbol{\xi}}|^2 }{\mathfrak{f}}%{\tilde N_{\textup{F}}} + \alpha^2 \right) |\hat \varphi ( \ensuremath{\boldsymbol{\xi}}) |^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \end{aligned} \label{eq:IP2Order2Zero1} \end{equation} From \eqref{eq:IP2Order2Zero1}, it can be seen that $J_0$ is bounded from below by $\alpha^2 \norm{\hat \varphi|_{B_0}}^2$ and thus indeed stable if $\alpha \neq 0$. However, since $\alpha$ is typically (almost) zero in hard X-ray imaging, we have to resort to the integral summands that involve powers of $|\ensuremath{\boldsymbol{\xi}}|^2$ in order to achieve robust estimates. These integrands have a zero at $\ensuremath{\boldsymbol{\xi}} = 0 \in B_0$, which is why smoothness of $|\hat \varphi |^2$ has to be exploited to obtain reasonable estimates. This is achieved by the following lemma: \vspace{.5em} \begin{lemma} \label{lem:IntegralDer2Bound} Let $D:= \{ \ensuremath{\boldsymbol{x}} \in \mathbb{R}^m: |\ensuremath{\boldsymbol{x}}| \leq a\}$ be a closed concentric ball of radius $a$ in $\mathbb{R}^m$. Let $g,w \in \mathscr{C}^2( D)$ where $w$ is radially symmetric, i.e.\ $w(\ensuremath{\boldsymbol{x}}) = w_0(|\ensuremath{\boldsymbol{x}}|) $ for all $ \ensuremath{\boldsymbol{x}} \in D$ and some function $w_0: [0;a] \to \mathbb{R}$. Then \begin{eqnarray*} \int_{D} \Delta w\cdot g \; \Text{d}\ensuremath{\boldsymbol{x}} &=& \frac{mw_0'(a)}{a} \int_{D} g \; \Text{d}\ensuremath{\boldsymbol{x}} + \int_{D} \left( \frac{w_0'(a)}{2a} (a^2 - |\ensuremath{\boldsymbol{x}}|^2) - (w_0(a)- w) \right) \Delta g \; \Text{d}\ensuremath{\boldsymbol{x}}. \end{eqnarray*} \end{lemma} \vspace{.5em} \begin{proof} By Green's second identity we have \begin{equation} \begin{aligned} \int_{D} \Delta w \cdot g \; \Text{d}\ensuremath{\boldsymbol{x}} &= \int_{D} w \cdot \Delta g \; \Text{d}\ensuremath{\boldsymbol{x}} + \int_{\partial D} \left( g \frac{\partial w}{\partial \ensuremath{\boldsymbol{n}}} - w \frac{\partial g}{\partial \ensuremath{\boldsymbol{n}}} \right) \; \Text{d} S(x) \\ &= \int_{D} w \cdot \Delta g \; \Text{d}\ensuremath{\boldsymbol{x}} + w_0'(a) \int_{\partial D} g \; \Text{d} S(x) - w_0(a) \int_{\partial D} \frac{\partial g}{\partial \ensuremath{\boldsymbol{n}}} \; \Text{d} S(x). \end{aligned} \label{eq:IntegralDer2Bound-1} \end{equation} Here, $\partial / ( \partial \ensuremath{\boldsymbol{n}} )$ denotes the derivative along the unit normal vector pointing to the outside of $\partial D$. The boundary terms can be eliminated via the relations \begin{eqnarray*} \int_{\partial D} \frac{\partial g}{\partial \ensuremath{\boldsymbol{n}}} \; \Text{d} S(x) &=& \int_{D} \Delta g \; \Text{d}\ensuremath{\boldsymbol{x}} \\ \int_{\partial D} g \; \Text{d} S(x) &=& \frac 1 {2a} \int_{\partial D} g \frac{\partial (|\ensuremath{\boldsymbol{x}}|^2) }{\partial \ensuremath{\boldsymbol{n}}} \; \Text{d} S(x) \\ &=& \frac 1 {2a} \left( \int_{\partial D} |\ensuremath{\boldsymbol{x}}|^2 \frac{\partial g}{\partial \ensuremath{\boldsymbol{n}}} \; \Text{d} S(x) + 2m\int_{D} g \; \Text{d}\ensuremath{\boldsymbol{x}} - \int_{D} |\ensuremath{\boldsymbol{x}}|^2 \Delta g \; \Text{d}\ensuremath{\boldsymbol{x}} \right) \\ &=& \frac 1 {2a} \left( 2m \int_{D} g \; \Text{d}\ensuremath{\boldsymbol{x}} + \int_{D} (a^2 - |\ensuremath{\boldsymbol{x}}|^2) \Delta g \; \Text{d}\ensuremath{\boldsymbol{x}} \right), \end{eqnarray*} which again follow from Green's second identity. Plugging this into \eqref{eq:IntegralDer2Bound-1} yields the claimed identity. \end{proof} \vspace{.5em} As the functions $\ensuremath{\boldsymbol{\xi}} \mapsto |\ensuremath{\boldsymbol{\xi}}|^2$ and $\ensuremath{\boldsymbol{\xi}} \mapsto |\ensuremath{\boldsymbol{\xi}}|^4$ are radially symmetric and since $B_0$ is a concentric ball of radius $b_0$, we find that \cref{lem:IntegralDer2Bound} can be applied to the integrals in \eqref{eq:IP2Order2Zero1}. This yields the following estimate for the considered low-frequency subdomain: \vspace{.5em} \begin{lemma \label{lem:IP2CTFCentralBound} Let $\alpha < \varepsilon \leq \pi/6$ and $B_0^{-} := \{\ensuremath{\boldsymbol{\xi}} \in B_0: \Delta | \hat \varphi |^2 (\ensuremath{\boldsymbol{\xi}}) \leq 0\}$. Then \begin{equation} \label{eq:IP2CTFCentralBound} \begin{aligned} J_0 &\geq C_0 \Big( \left( \tfrac{m}{m+4} (\varepsilon-\alpha)^2 + \tfrac{2m}{m+2} \alpha (\varepsilon -\alpha) + \alpha^2 \right) \norm{\hat \varphi|_{B_0}}^2 \\ &\;\;\;\;\;\;\;\;\; + \mathfrak{f}}%{\tilde N_{\textup{F}} \left( \tfrac{2}{3(m+4)}\left( \varepsilon - \alpha \right) ^3 + \tfrac{1}{m+2} \alpha \left( \varepsilon - \alpha \right)^2 \right) \int_{B_0^-} \Delta | \hat \varphi|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \Big). \end{aligned} \end{equation} \end{lemma} \vspace{.5em} \begin{proof} For the functions $w_1(\ensuremath{\boldsymbol{\xi}}) := |\ensuremath{\boldsymbol{\xi}}|^6 / ( 6(m+4))$ and $w_2(\ensuremath{\boldsymbol{\xi}}) := |\ensuremath{\boldsymbol{\xi}}|^4 / ( 4(m+2))$, we have that $\Delta w_1 (\ensuremath{\boldsymbol{\xi}}) = |\ensuremath{\boldsymbol{\xi}}|^4$ and $\Delta w_2 (\ensuremath{\boldsymbol{\xi}}) = |\ensuremath{\boldsymbol{\xi}}|^2$ for all $\ensuremath{\boldsymbol{\xi}} \in \mathbb{R}^m$. Accordingly, the integral in \eqref{eq:IP2Order2Zero1} matches the setting of \cref{lem:IntegralDer2Bound}. An application gives \begin{eqnarray*} \lefteqn{\int_{B_0} |\ensuremath{\boldsymbol{\xi}}|^4 |\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} = \int_{B_0} \Delta w _1(\ensuremath{\boldsymbol{\xi}}) |\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}}} \\ \qquad&=& \frac{m b_0^4 }{m+4} \int_{B_0} |\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} + \frac{1 }{ m+4} \int_{B_0} \left( \frac{b_0^4} 2 (b_0^2 - |\ensuremath{\boldsymbol{\xi}}|^2) - \frac{1} 6 (b_0^6 - |\ensuremath{\boldsymbol{\xi}}|^6) \right) \Delta|\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \\ &\geq& \frac{m b_0^4 }{m+4} \int_{B_0} |\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} + \frac{b_0^6 }{ 3( m+4)} \int_{B_0^{-}} \Delta|\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2. \; \Text{d}\ensuremath{\boldsymbol{\xi}} \end{eqnarray*} Here, the integral over $\Delta |\hat \varphi|^2 $ has been bounded from below by the integral within the sub-domain $B_0^{-} = \{\ensuremath{\boldsymbol{x}} \in B_0 : \Delta |\hat \varphi|^2(\ensuremath{\boldsymbol{x}}) \leq 0 \}$ multiplied by the maximum of the non-negative factor $(b_0^4/2) (b_0^2 - |\ensuremath{\boldsymbol{\xi}}|^2) - \frac{1} 6 (b_0^6 - |\ensuremath{\boldsymbol{\xi}}|^6)$. Analogously we obtain \begin{eqnarray*} \lefteqn{\int_{B_0} |\ensuremath{\boldsymbol{\xi}}|^2 |\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} = \int_{B_0} \Delta w _2(\ensuremath{\boldsymbol{\xi}}) |\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} }\\ &=& \frac{m b_0^2 }{m+2} \int_{B_0} |\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} + \frac{1 }{ m+2} \int_{B_0} \left( \frac{b_0^2} 2 (b_0^2 - |\ensuremath{\boldsymbol{\xi}}|^2) - \frac{1} 4 (b_0^2 - |\ensuremath{\boldsymbol{\xi}}|^2) \right) \Delta|\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \\ &\geq& \frac{m b_0^2 }{m+2} \int_{B_0} |\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} + \frac{b_0^4 }{ 4( m+2)} \int_{B_0^{-}} \Delta|\hat \varphi (\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \end{eqnarray*} Inserting these relations into \eqref{eq:IP2Order2Zero1} yields \begin{eqnarray*} J_0 &\geq& C_{0} \int_{B_0} \left( \frac{ |\ensuremath{\boldsymbol{\xi}}|^4 }{4\mathfrak{f}}%{\tilde N_{\textup{F}}^2} + \frac{ \alpha |\ensuremath{\boldsymbol{\xi}}|^2 }{\mathfrak{f}}%{\tilde N_{\textup{F}}} + \alpha^2 \right) |\hat \varphi ( \ensuremath{\boldsymbol{\xi}}) |^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \\ &\geq& C_{0} \left(\frac{m b_0^4 }{4\mathfrak{f}}%{\tilde N_{\textup{F}}^2(m+4)} + \frac{m \alpha b_0^2}{\mathfrak{f}}%{\tilde N_{\textup{F}}( m+2)} + \alpha^2 \right) \int_{B_0} |\hat \varphi ( \ensuremath{\boldsymbol{\xi}}) |^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \\ &+& C_{0}\left(\frac{ b_0^6 }{12 \mathfrak{f}}%{\tilde N_{\textup{F}}^2 (m+4)}+ \frac{ b_0^4 \alpha }{4\mathfrak{f}}%{\tilde N_{\textup{F}}(m+2)} \right) \int_{B_0^{-}} \Delta |\hat \varphi ( \ensuremath{\boldsymbol{\xi}}) |^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}}. \end{eqnarray*} Re-substituting $b_0 = (2\mathfrak{f}}%{\tilde N_{\textup{F}})^{\frac 1 2 } (\epsilon - \alpha )^{ \frac 1 2 }$ into this estimate gives the assertion. \end{proof} \vspace{.5em} \subsection{Estimate for the first order CTF-zeros} \label{SS4.3} Before we can derive a global stability estimate from \eqref{eq:IP2CTFCentralBound}, we have to consider the remaining integrals $J_j$, $j \geq 1$ in the Fourier domain splitting \eqref{eq:IP2StabDecomp}. The integration domains $B_j$ are annular shells around the first order zero-manifolds $Z_j = \{ \ensuremath{\boldsymbol{\xi}} \in \mathbb{R}^m: |\ensuremath{\boldsymbol{\xi}}| = \xi_j\}$, $j\in \mathbb{N}$ of the CTF $s_\alpha$. According to \eqref{eq:IP2DefBj}, we have $|\ensuremath{\boldsymbol{\xi}}|^2/(2\mathfrak{f}}%{\tilde N_{\textup{F}}) + \alpha - j\pi \in (-\varepsilon; \varepsilon)$ for all $\ensuremath{\boldsymbol{\xi}} \in B_j$ and thus \begin{equation} s_\alpha(\ensuremath{\boldsymbol{\xi}})^2 = \sin\left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2}{2\mathfrak{f}}%{\tilde N_{\textup{F}}} \!+\! \alpha \!+\! j \pi \right)^2 \geq \frac{\sin(\varepsilon)^2 }{\varepsilon^2} \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2}{2\mathfrak{f}}%{\tilde N_{\textup{F}}} \!+\! \alpha \!+\! j \pi \right)^2 \stackrel{\varepsilon \leq \frac \pi 6}\geq \frac{C_0}{ 4 \mathfrak{f}}%{\tilde N_{\textup{F}}^2} \left( |\ensuremath{\boldsymbol{\xi}}|^2 - \xi_j^2 \right)^2. \end{equation} Using that $(|\ensuremath{\boldsymbol{\xi}}|^2 - \xi_j^2)^2 = (|\ensuremath{\boldsymbol{\xi}}| + \xi_j)^2 (|\ensuremath{\boldsymbol{\xi}}| - \xi_j)^2 \geq (b_{j-} + \xi_j)^2 (|\ensuremath{\boldsymbol{\xi}}| - \xi_j)^2 $, this yields \begin{equation} J_j = \int_{B_j} s_\alpha(\ensuremath{\boldsymbol{\xi}})^2 |\hat \varphi ( \ensuremath{\boldsymbol{\xi}}) |^2\Text{d}\ensuremath{\boldsymbol{\xi}} \geq \frac{ C_0 (b_{j-}\! +\! \xi_j)^2 }{4 \mathfrak{f}}%{\tilde N_{\textup{F}}^2} \tilde{J}_j,\quad \tilde{J}_j:= \int_{B_j} \left( |\ensuremath{\boldsymbol{\xi}}| - \xi_j \right)^2 |\hat \varphi ( \ensuremath{\boldsymbol{\xi}}) |^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}}. \label{eq:IP2Order1Zero1} \end{equation} for $j \in \mathbb{N}$. Accordingly, we have to estimate polynomially weighted integrals, similar to the preceding section, yet within the shell-shaped domains $B_j$ instead of a concentric ball. We achieve this by introducing polar coordinates and applying \cref{lem:IntegralDer2Bound} to the resulting one-dimensional radial integrals: \vspace{.5em} \begin{lemma}[Stability estimate for the first order CTF-zeros] \label{lem:IP2CTF1stOrderBound} Let $0 < \varepsilon \leq \pi/6$ and $j \in \mathbb{N}$ . Then there exists a measurable subset $B_j^{-} \subset B_j$ and a constant $0 < C_1 \leq 1/4$, which depends only on $m$, such that \begin{equation} J_j \geq C_0 \left( C_1\varepsilon^2 \norm{\hat \varphi|_{B_j}}^2 + \frac{\varepsilon^4 \mathfrak{f}}%{\tilde N_{\textup{F}}}{ 32 ( j \pi - \alpha) } \int_{B_j^{-}} \Delta |\hat \varphi|^2(\ensuremath{\boldsymbol{\xi}}) \; \Text{d}\ensuremath{\boldsymbol{\xi}} \right). \label{eq:IP2CTF1stOrderBound} \end{equation} \end{lemma} \vspace{.5em} \begin{proof} Let $j\in \mathbb{N}$ arbitrary. In order to make \cref{lem:IntegralDer2Bound} applicable to the present setting, we rewrite the integral $\tilde J_j$ in \eqref{eq:IP2Order1Zero1} by introducing polar coordinates $\ensuremath{\boldsymbol{\xi}} = \xi \ensuremath{\boldsymbol{\theta}}$, $\xi \geq 0$, $\ensuremath{\boldsymbol{\theta}} \in \mathbb{S}^{m-1}$ ($\mathbb{S}^{m-1}$: unit sphere in $\mathbb{R}^m$). With the notation in \eqref{eq:IP2DefBj}, this yields \vspace{-.6em} \begin{equation} \tilde J_j = \int_{b_{j-}}^{b_{j+}} (\xi - \xi _j)^2 \xi^{m-1} \varphi_{\textup{rad}}(\xi)\,\Text{d}\xi,\qquad \varphi_{\textup{rad}}(\xi):= \int_{\mathbb{S}^{m-1}} |\hat \varphi ( \xi \ensuremath{\boldsymbol{\theta}} ) |^2 \; \Text{d} \theta . \end{equation} Setting $a_j := b_{j+}- \xi_j$, $\eta := \xi - \xi_j$, $\varphi_{j}(\xi-\xi_j):= \xi ^{(m-1)/2} \varphi_{\textup{rad}}(\xi)$, we obtain the bound \begin{equation} \begin{aligned} \tilde J_j &= \int_{\xi_j - a_j}^{\xi_j + a_j} (\xi - \xi _j)^2 \xi^{\frac{m-1} 2} \varphi_{j}(\xi-\xi_j) \,\Text{d}\xi + \int^{\xi_j - a_j}_{b_{j-}} (\xi - \xi _j)^2\xi^{m-1} \varphi_{\textup{rad}}(\xi) \; \Text{d}\xi \\ &\geq (\xi_j-a_j)^{\frac{m-1} 2} \int_{-a_j}^{a_j} \eta^2 \varphi_j(\eta) \; \Text{d}\eta + a_j^2 \int^{\xi_j - a_j}_{b_{j-}} \xi^{m-1} \varphi_{\textup{rad}}(\xi) \; \Text{d}\xi. \end{aligned} \label{eq:IP2Order1Zero1-1} \end{equation} The first integral on the right hand side of \eqref{eq:IP2Order1Zero1-1} matches the setting of \cref{lem:IntegralDer2Bound} in $m=1$ dimensions with weight function $w(\eta):= \eta^4/12$. This yields \begin{equation} \begin{aligned} \int_{-a_j}^{a_j} \eta^2 \varphi_j(\eta) \; \Text{d}\eta &= \frac{a_j^2} 3 \int_{-a_j}^{a_j} \varphi_j(\eta) \; \Text{d}\eta + \int_{-a_j}^{a_j} \left( \tfrac{a_j^2 (a_j^2 - \eta^2)} 6 - \tfrac{a_j^4 - \eta^4}{12} \right)\varphi_j''(\eta) \; \Text{d}\eta \\ &\geq \frac{a_j^2} 3 \int_{-a_j}^{a_j} \varphi_j(\eta) \; \Text{d}\eta + \frac{a_j^4}{12} \int_{I^-_j} \varphi_j''(\eta) \; \Text{d}\eta, \end{aligned} \label{eq:IP2Order1Zero1-2} \end{equation} where we have set $I_j^{-}:=\{ \eta\in [-a_j; a_j] : \varphi_j''(\eta) \leq 0\}$ and used that $0\leq (a_j^2/6) (a_j^2 - \eta^2) - (a_j^4 - \eta^4) / 12 \leq a_j^4/12$. Setting $B_j^{-} := \{ \ensuremath{\boldsymbol{\xi}} \in B_j : |\ensuremath{\boldsymbol{\xi}}| \in I_j^- + \xi_j \}$ and re-substituting $\varphi_{\textup{rad}}$ and $|\hat \varphi|^2$ for $\varphi_j$, we estimate the second integral in \eqref{eq:IP2Order1Zero1-2} by \begin{align} \label{eq:IP2Order1Zero1-3} \lefteqn{\underbrace{(\xi_j-a_j)^{\frac{m-1} 2}}_{\leq \xi^{(m-1)/2} \text{ for } \xi \in I_j^{-}+ \xi_j} \int_{I_j^- } \underbrace{ \varphi_j''(\eta)}_{\leq 0} \; \Text{d}\eta \geq \int_{I_j^- + \xi_j} \xi^{\frac{m-1} 2} \partial_{\xi}^2 \left( \xi^{\frac{m-1} 2} \varphi_{\textup{rad}}(\xi) \right) \; \Text{d}\xi} \\ &= \int_{I_j^- + \xi_j} \xi^{m-1} \int_{\mathbb{S}^{m-1}} \bigg( \partial_{\xi}^2 + \frac{m-1}{\xi} \partial_\xi + \frac{(m-1)(m-3)}{4\xi^2}\bigg) |\hat \varphi(\xi \ensuremath{\boldsymbol{\theta}})|^2 \; \Text{d} \theta \; \Text{d}\xi \nonumber \\ &= \int_{B_j^{-}} \!\left( \Delta + \frac{(m-1)(m-3)}{4|\ensuremath{\boldsymbol{\xi}}|^2} \right) |\hat \varphi|^2(\xi \ensuremath{\boldsymbol{\theta}}) \; \Text{d}\ensuremath{\boldsymbol{\xi}} \nonumber \\ &\geq \int_{B_j^{-}} \!\!\Delta |\hat \varphi|^2(\ensuremath{\boldsymbol{\xi}}) \; \Text{d}\ensuremath{\boldsymbol{\xi}} - \frac{\delta_{m2}}{4 b_{j-}^2 } \int_{B_j^-} \! |\hat \varphi|^2 (\ensuremath{\boldsymbol{\xi}}) \; \Text{d}\ensuremath{\boldsymbol{\xi}}. \nonumber \end{align} Here we have identified the radial part of the Laplacian in polar coordinates and implicitly added the angular part, which does not contribute to the $\mathbb{S}^{m-1}$-integrals. The inequality in the last line follows from the fact that $(m-1)(m-3)/(4|\ensuremath{\boldsymbol{\xi}}|^2)$ is negative only for $m=2$, in which case it is bounded by the given term ($\delta_{ij}$: Kronecker-Delta). Re-substituting $|\hat \varphi|^2$ in the remaining integrals in \eqref{eq:IP2Order1Zero1-1} and \eqref{eq:IP2Order1Zero1-2} gives \begin{align} &\;\;\;\;\; (\xi_j-a_j)^{\frac{m-1} 2} \frac{a_j^2} 3 \int_{-a_j}^{a_j} \varphi_j(\eta) \; \Text{d}\eta + a_j^2 \int^{\xi_j - a_j}_{b_{j-}} \xi^{m-1} \varphi_{\textup{rad}}(\xi) \; \Text{d}\xi \label{eq:IP2Order1Zero1-4} \\ &\geq \left( \tfrac{\xi_j-a_j}{\xi_j+a_j} \right) ^{\frac{m-1} 2} \frac{a_j^2} 3 \int_{\xi_j-a_j}^{\xi_j+a_j} \xi^{m-1} \varphi_{\textup{rad}}(\xi) \; \Text{d}\xi + a_j^2 \int^{\xi_j - a_j}_{b_{j-}} \xi^{m-1} \varphi_{\textup{rad}}(\xi) \; \Text{d}\ensuremath{\boldsymbol{\xi}} \nonumber \\ &\geq \left( \tfrac{\xi_j-a_j}{\xi_j+a_j} \right) ^{\frac{m-1} 2} \frac{a_j^2} 3 \int_{b_{j-}}^{b_{j+}} \! \xi^{m-1}\! \int_{\mathbb{S}^{m-1}} \! |\hat \varphi|^2(\xi\ensuremath{\boldsymbol{\theta}}) \; \Text{d} \theta \; \Text{d}\ensuremath{\boldsymbol{\xi}} =\left( \tfrac{\xi_j-a_j}{\xi_j+a_j} \right) ^{\frac{m-1} 2} \frac{a_j^2} 3 \norm{\hat \varphi|_{B_j}}^2. \nonumber \end{align} Combining the estimates \eqref{eq:IP2Order1Zero1-1}, \eqref{eq:IP2Order1Zero1-2}, \eqref{eq:IP2Order1Zero1-3} and \eqref{eq:IP2Order1Zero1-4}, we thus obtain for all $j \in \mathbb{N}$ \begin{eqnarray} \tilde J_j \geq \underbrace{\frac{a_j^2} 3 \left( \left( \frac{\xi_j-a_j}{\xi_j+a_j} \right) ^{\frac{m-1} 2} - \frac{a_j^2}{16 b_{j-}^2 } \right)}_{=:\lambda} \norm{\hat \varphi|_{B_j}}^2 + \underbrace{\frac{a_j^4}{12}}_{=:\mu} \int_{B_j^{-}} \Delta |\hat \varphi|^2(\ensuremath{\boldsymbol{\xi}}) \; \Text{d}\ensuremath{\boldsymbol{\xi}} \label{eq:IP2Order1Zero1-5} \end{eqnarray} What remains to be done is to derive uniform bounds for the constants in \eqref{eq:IP2Order1Zero1-5} within the assumed parameter range $j \in \mathbb{N}$, $\alpha \leq \pi /2$ and $0 < \varepsilon \leq \pi/6$. First, we have $\xi_j^2 = 2\mathfrak{f}}%{\tilde N_{\textup{F}} ( \pi j - \alpha) \geq \pi \mathfrak{f}}%{\tilde N_{\textup{F}}$ and hence by Taylor-expansion of the square-root \begin{equation} a_j = (\xi_j^2 + 2\mathfrak{f}}%{\tilde N_{\textup{F}}\varepsilon)^{\frac 1 2} -\xi_j \in \frac{\varepsilon \mathfrak{f}}%{\tilde N_{\textup{F}} }{\xi_j} \cdot \left[1 - \frac{\varepsilon \mathfrak{f}}%{\tilde N_{\textup{F}}}{2 \xi_j^2 } ; 1 \right] \subset \frac{\varepsilon \mathfrak{f}}%{\tilde N_{\textup{F}}}{ \xi_j} \cdot \left[ 1- \frac{\varepsilon}{2\pi} ; 1 \right] \subset \frac{\varepsilon \mathfrak{f}}%{\tilde N_{\textup{F}}}{ \xi_j} \cdot \left[ \frac{11 }{12}; 1 \right] . \label{eq:IP2Order2ZeroAux3-1} \end{equation} Using \eqref{eq:IP2Order2ZeroAux3-1} along with $b_{j-}^2 = \xi^2_j - 2\mathfrak{f}}%{\tilde N_{\textup{F}} \varepsilon \stackrel{\varepsilon\leq \pi /6}\geq \xi_j^2 - \pi \mathfrak{f}}%{\tilde N_{\textup{F}} / 3 \stackrel{\xi_j^2 \geq \pi \mathfrak{f}}%{\tilde N_{\textup{F}}}\geq 2\pi \mathfrak{f}}%{\tilde N_{\textup{F}} / 3$ furthermore gives \begin{subequations} \label{eq:IP2Order2ZeroAux3-2} \begin{align} \frac{a_j^2}{16 b_{j-}^2} \stackrel{\text{\eqref{eq:IP2Order2ZeroAux3-1}}}\leq \frac{\varepsilon ^2 \mathfrak{f}}%{\tilde N_{\textup{F}}^2}{16\xi_j^2 (\xi_j^2 - 2\mathfrak{f}}%{\tilde N_{\textup{F}} \varepsilon)} \leq \frac{3 \varepsilon^2 }{32\pi^2 } \leq \frac{1}{384} \\ \left( \frac{\xi_j-a_j}{\xi_j+a_j} \right)^{\frac 1 2 } \geq 1 - \frac { a_j }{\xi_j} \stackrel{\text{\eqref{eq:IP2Order2ZeroAux3-1}}}\geq 1 - \frac { \varepsilon \mathfrak{f}}%{\tilde N_{\textup{F}} }{\xi_j^2} \geq 1 - \frac { \varepsilon }{\pi} \geq \frac 5 6 \end{align} \end{subequations} Combining \eqref{eq:IP2Order2ZeroAux3-1} and \eqref{eq:IP2Order2ZeroAux3-2} gives $ \lambda \geq (4/3) C_1 \varepsilon^2 \mathfrak{f}}%{\tilde N_{\textup{F}}^2 / \xi_j^2 $ with $C_1 := (121/576) ((5/6)^{m-1} - \delta_{m2}/384)$ and $\mu \leq \varepsilon^4 \mathfrak{f}}%{\tilde N_{\textup{F}}^4 / ( 12 \xi_j^4)$. Substituting these bounds into \eqref{eq:IP2Order1Zero1-5}, we obtain \begin{equation} \tilde J_j \geq \frac{4\mathfrak{f}}%{\tilde N_{\textup{F}}^2}{ 3 \xi_j^2} \left( C_1 \norm{\hat \varphi|_{B_j}}^2 + \frac{\varepsilon^4 \mathfrak{f}}%{\tilde N_{\textup{F}}^2}{ 16 \xi_j^2} \int_{B_j^{-}} \Delta |\hat \varphi|^2(\ensuremath{\boldsymbol{\xi}}) \; \Text{d}\ensuremath{\boldsymbol{\xi}} \right). \label{eq:IP2Order1Zero1-6} \end{equation} Now the assertion follows by inserting \eqref{eq:IP2Order1Zero1-5} into \eqref{eq:IP2Order1Zero1}, using that $\mathfrak{f}}%{\tilde N_{\textup{F}} / \xi_j^2 = 1/ (2(j \pi - \alpha))$ and $(\xi_j + b_{j-})^2 > 3\xi_j^2$ according to the estimate $b_{j-}^2 \geq 2\xi_j^2/3$. \end{proof} \vspace{.5em} \subsection{Global stability results} \label{SS4.4} With the bounds for different subdomains of the Fourier space obtained in \cref{lem:IP2CTFCentralBound,lem:IP2CTF1stOrderBound}, we are now in a position to prove a global stability result for \cref{ip2}. For $\varepsilon > \alpha$, an application of the estimates \eqref{eq:IP2CTFBulkBound}, \eqref{eq:IP2CTFCentralBound} and \eqref{eq:IP2CTF1stOrderBound} to the sub-integrals in \eqref{eq:IP2StabDecomp} and \cref{lem:CpctSuppDer2Bound} with $\Omega = \closure{B(0,1/2)}$ yields \begin{equation}\label{eq:IP2StabGlobal} \begin{aligned} \norm{ s_\alpha \cdot \hat \varphi }^2 &\geq C_0 \left( \zeta(\varepsilon, \alpha) \norm{ \varphi}^2 + \mathfrak{f}}%{\tilde N_{\textup{F}} \eta(\varepsilon, \alpha) \int_{B^-} \Delta | \hat \varphi|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \right) \\ &\geq C_0 \left( \zeta(\varepsilon, \alpha) - \tfrac{\mathfrak{f}}%{\tilde N_{\textup{F}}} 2 \eta(\varepsilon, \alpha) \right) \norm{\varphi}^2 \end{aligned} \end{equation} Here, we have used that $\norm{\hat\varphi|_{D_\varepsilon}}^2 + \sum_{j=0}^\infty \norm{\hat\varphi|_{B_j}}^2 = \norm{\hat \varphi}^2 = \norm{\varphi}$ by the disjoint Fourier domain splitting in \secref{SS4.1} and defined $B^-:= \bigcup_{j=0}^\infty B_j^-$ as well as \begin{subequations} \begin{equation} \begin{aligned} \zeta(\varepsilon, \alpha) &:= \min \left\{ \tfrac{m}{m+4} (\varepsilon-\alpha)^2 + \tfrac{2m}{m+2} \alpha (\varepsilon -\alpha) + \alpha^2 , C_1 \varepsilon^2 \right\}, \\ \eta(\varepsilon, \alpha) &:= \max\left\{ \tfrac{2}{3(m+4)} \left( \varepsilon - \alpha \right) ^3 + \tfrac{1}{m+2} \alpha \left( \varepsilon - \alpha \right)^2 , \tfrac{1}{ 32 ( \pi - \alpha) } \varepsilon^4 \right\} \end{aligned} \;\;\text{ for }\;\; \varepsilon > \alpha. \label{eq:IP2StabConstants-1} \end{equation} Note that the bounding constant $\sin(\varepsilon)$ for the integral $J_{\varepsilon}$ does not appear in $\zeta(\varepsilon, \alpha)$ as $\sin(\varepsilon) \geq C_1 \varepsilon^2$ holds true within the entire parameter range $0\leq \varepsilon \leq \pi / 6$. In the case $\varepsilon \leq \alpha$, the subdomains $B_0^- \subset B_0 = \emptyset$ are empty so that contributions from the sub-integral $J_0$ can be suppressed in the estimate \eqref{eq:IP2StabGlobal}. Hence, we may set \begin{equation} \zeta(\varepsilon,\alpha) := C_1 \varepsilon^2, \quad \eta(\varepsilon, \alpha) := \frac{\varepsilon^4 }{ 32 ( \pi - \alpha) } \;\;\text{ for }\;\; \varepsilon \leq \alpha. \label{eq:IP2StabConstants-2} \end{equation} \end{subequations} Since $\eta(\varepsilon, \alpha)$ is of higher-order in $\varepsilon$ than $\zeta(\varepsilon, \alpha)$ according to \eqref{eq:IP2StabConstants-1} and \eqref{eq:IP2StabConstants-2}, it is possible to find an optimal value $\varepsilon = \varepsilon_{\textup{opt}}(\alpha, \mathfrak{f}}%{\tilde N_{\textup{F}})$ such that the constant on the right-hand side of \eqref{eq:IP2StabGlobal} is maximal and in particular positive. This idea leads to the sought estimates for the stability constant $C_{\textup{IP2}}(\Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}, \alpha)$ in \cref{thm:IP2StabRes}: \vspace{.5em} \begin{proof}[Proof of \cref{thm:IP2StabRes}.] We first study the regime $\varepsilon \geq \alpha$, as is necessary in particular if $\alpha = 0$. Since \begin{eqnarray*} \lefteqn{\tfrac{m}{m+4} (\varepsilon-\alpha)^2 + \tfrac{2m}{m+2} \alpha (\varepsilon -\alpha) + \alpha^2 }\\ & =& \tfrac{m}{m+4} \varepsilon^2 + (\tfrac{2m}{m+2}-\tfrac{2m}{m+4})\alpha(\varepsilon - \alpha) + (\tfrac{m}{m+4} - \tfrac{2m}{m+2} + 1) \alpha^2 \geq \tfrac{m}{m+4} \varepsilon^2, \end{eqnarray*} \eqref{eq:IP2StabConstants-1} yields the bound \begin{equation} \label{eq:IP2StabRes-Proof-1} \zeta(\varepsilon, \alpha) \geq \zeta_0 \varepsilon^2, \quad \zeta_0:= \min\{ C_1, \tfrac{m}{m+4} \}. \end{equation} To bound $\eta$ in \eqref{eq:IP2StabConstants-1} we observe that $\alpha \left( \varepsilon - \alpha \right)^2\leq 4 \varepsilon^3 / 27$ for $0 \leq \alpha < \varepsilon$ to obtain \[ \tfrac{2}{3(m+4)} \left( \varepsilon - \alpha \right) ^3 + \tfrac{1}{m+2}\alpha \left( \varepsilon - \alpha \right)^2 \leq (\tfrac{2}{3(m+4)}+\tfrac{4}{27(m+2)}) \varepsilon^3 \leq (\tfrac{2}{15}+\tfrac{4}{81})\varepsilon^3 < \tfrac{1}{5}\varepsilon^3. \] As $\tfrac{\varepsilon }{ 32(\pi - \alpha)}<\tfrac{1}{5}$ for $0\leq \alpha\leq\varepsilon\leq \tfrac{\pi}{6}$ this implies by \eqref{eq:IP2StabConstants-1} \begin{equation} \eta(\varepsilon, \alpha) \leq \tfrac{1}{5}\varepsilon^3.\label{eq:IP2StabRes-Proof-2} \end{equation} A comparison with \eqref{eq:IP2StabConstants-2} shows that the estimates \eqref{eq:IP2StabRes-Proof-1} and \eqref{eq:IP2StabRes-Proof-2} remain valid for $\varepsilon < \alpha$ and thus hold for all $0 \leq \varepsilon \leq \pi / 6$. Now we apply the derived bounds on $\zeta(\varepsilon, \alpha)$ and $\eta(\varepsilon, \alpha)$ in \eqref{eq:IP2StabGlobal} to estimate the stability constant of \cref{ip2}: \begin{align}\label{eq:IP2StabRes-Proof-3} C_{\textup{IP2}} ( \Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}, \alpha )^2 &= \inf_{\varphi \in L^2_\Omega, \, \norm{\varphi} = 1} \norm{S\varphi}^2 \stackrel{\eqref{eq:IP2Contrast}}= \inf_{\varphi \in L^2_\Omega, \, \norm{\varphi} = 1} 4 \norm{s_\alpha \cdot \hat \varphi }^2\nonumber\\ &\geq \sup_{0\leq\varepsilon\leq \pi/6} 4 C_0 \varepsilon^2 \left( \zeta_0 - \tfrac{1}{10} \mathfrak{f}}%{\tilde N_{\textup{F}} \varepsilon \right) = \begin{cases} \frac{1600C_0\zeta_0^3}{27 \mathfrak{f}}%{\tilde N_{\textup{F}}^2}&\text{if } \mathfrak{f}}%{\tilde N_{\textup{F}} \geq \frac{40\zeta_0}{ \pi} \\ \frac{\pi^2 C_0 }{9} ( \zeta_0 - \frac{\pi}{60} \mathfrak{f}}%{\tilde N_{\textup{F}} ) &\text{if }\mathfrak{f}}%{\tilde N_{\textup{F}} < \frac{40\zeta_0}{ \pi} \end{cases} \\ &\geq \min \left\{ c_1^2, c_2^2 \mathfrak{f}}%{\tilde N_{\textup{F}}^{-2} \right\}\nonumber \end{align} The supremum is attained at $\varepsilon = \varepsilon_{\textup{opt}} := \min\{ \pi /6, \, 20 \zeta_0 /(3\mathfrak{f}}%{\tilde N_{\textup{F}}) \} $, and we have defined $c_1:= (\pi^2C_0\zeta_0 / 27)^{1/2}$ and $c_2 :=( 1600C_0\zeta_0^3/ 27)^{1 / 2}$. It remains to show improved bounds for $\alpha>0$ and large $\mathfrak{f}}%{\tilde N_{\textup{F}}$. Here we choose $0 \leq \varepsilon \leq \alpha/3$ to satisfy $\varepsilon\leq \pi/6$ for all $\alpha\in (0,\pi/2]$. Moreover, we make use of the simplified expressions for $\zeta$ and $\eta$ in \eqref{eq:IP2StabConstants-2}, that apply in this parameter range. Inserting \eqref{eq:IP2StabConstants-2} into \eqref{eq:IP2StabGlobal} and using that $\pi - \alpha \geq \pi /2$ gives \begin{equation} \begin{aligned} 4\norm{ s_\alpha \cdot \hat \varphi }^2 &\geq \sup_{0<\varepsilon\leq \alpha/3} 4C_0 \varepsilon^2 \left( C_1 - \tfrac{1}{64(\pi - \alpha)} \mathfrak{f}}%{\tilde N_{\textup{F}} \varepsilon^2 \right) \geq \sup_{0<\varepsilon\leq \alpha/3} 4C_0 \varepsilon^2 \left( C_1 - \tfrac 1 {32\pi} \mathfrak{f}}%{\tilde N_{\textup{F}} \varepsilon^2 \right) \\ &= \begin{cases} \frac{ 32 \pi C_0 C_1^2}{ \mathfrak{f}}%{\tilde N_{\textup{F}}}&\text{if }\mathfrak{f}}%{\tilde N_{\textup{F}} \geq \frac{144 \pi C_1}{ \alpha^2 } \\ \frac{ 4C_0 \alpha^2 }{9} (C_1 - \frac{ \alpha^2 \mathfrak{f}}%{\tilde N_{\textup{F}}}{288 \pi}) &\text{if }\mathfrak{f}}%{\tilde N_{\textup{F}} < \frac{144 \pi C_1}{ \alpha^2 } \end{cases} \\ &\geq \min \left\{ c_3^2 \alpha^2, c_4^2 \mathfrak{f}}%{\tilde N_{\textup{F}}^{-1} \right\} \end{aligned} \label{eq:IP2StabRes-Proof-4} \end{equation} for all $\varphi\in L^2_{\Omega}$ with $\|\varphi\|=1$ Here, the constants are chosen as $c_3:= (2C_0C_1/9) ^{1/2}$ and $c_4:= (32\pi C_0)^{1/2} C_1$ and the supremum is attained at $\varepsilon_{\textup{opt}} = \min \{ \alpha/3 , \, (16 \pi C_1 / \mathfrak{f}}%{\tilde N_{\textup{F}} )^{1/2} \} $. Combining \eqref{eq:IP2StabRes-Proof-3} and \eqref{eq:IP2StabRes-Proof-4} yields the claimed stability estimate \eqref{eq:IP2StabRes-2}. \end{proof} \vspace{.5em} \subsection{Optimality} \label{SS4.5} As opposed to the analysis of \cref{ip1}, the bounds on the stability constant $C_{\textup{IP2}}$ derived in this section can be expected to be highly non-optimal: the principal derivative-bound \eqref{eq:CpctSuppDer2Bound} is clearly not sharp and various additional estimates have been made in \cref{lem:IP2CTFCentralBound}, \cref{lem:IP2CTF1stOrderBound} and in the proof of \cref{thm:IP2StabRes} just to simplify the arising terms. Accordingly, the obtained numerical values for the constants $c_j$ in \eqref{eq:IP2StabRes-2} can be expected to be \emph{overly pessimistic}. Sharper characterizations may be achieved by numerically computing the minimal singular value of the forward operator $S$ by a similar approach as in \secref{SS3.5}. Independently of such numerical refinements, it is of interest whether the achieved analytical bounds $C_{\textup{IP2}} ( \Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}, \alpha ) \gtrsim \mathfrak{f}}%{\tilde N_{\textup{F}}^{-\nu}$ are at least of \emph{optimal order} $\nu$ in the Fresnel number $\mathfrak{f}}%{\tilde N_{\textup{F}}$ for $\mathfrak{f}}%{\tilde N_{\textup{F}} \to \infty$. A positive answer is given by the following theorem: \vspace{.5em} \begin{theorem}[Order-optimality of the stability bounds for \cref{ip2}] \label{thm:IP2Optimality} Within the setting of \cref{thm:IP2StabRes}, let $c'_1, c'_2, \nu > 0$ be constants such that \begin{equation} C_{\textup{IP2}} ( \Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}, 0 ) \geq \min\left\{ c_1', c_2' \mathfrak{f}}%{\tilde N_{\textup{F}}^{-\nu} \right\} \MTEXT{for all} \mathfrak{f}}%{\tilde N_{\textup{F}} >0. \label{eq:IP2Optimality} \end{equation} Then $\nu \geq 1$, i.e.\ the bound \eqref{eq:IP2StabRes-2} is of optimal asymptotic order in $\mathfrak{f}}%{\tilde N_{\textup{F}}$ for $\alpha = 0$. \end{theorem} \vspace{.5em} \begin{proof} Assume $\nu < 1$. Let $\alpha = 0$ and $\varphi \in L^2_\Omega \cap \mathscr{C}^2(\mathbb{R}^m)$ with $\norm{\varphi} = 1$. Then we have by the definition of the forward operator in \eqref{eq:fwModel2} \begin{eqnarray} \norm{S_0\varphi} &=& 2 \norm{s_\alpha \cdot \mathcal{F}(\varphi)} = 2 \left( \int_{\mathbb{R}^m} \sin \left( \tfrac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\mathfrak{f}}%{\tilde N_{\textup{F}}} \right) ^2 |\mathcal{F}(\varphi)(\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \right)^{1/2} \nonumber \\ &\stackrel{\sin(x)^2 \leq x^2}\leq& \frac{1}{\mathfrak{f}}%{\tilde N_{\textup{F}}} \left( \int _{\mathbb{R}^m} |\ensuremath{\boldsymbol{\xi}}|^2 |\mathcal{F}(\varphi)(\ensuremath{\boldsymbol{\xi}})|^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \right)^{1/2 } = \mathfrak{f}}%{\tilde N_{\textup{F}}^{-1} \norm{\Delta \varphi }. \label{eq:IP2Optimality-proof1} \end{eqnarray} Note that $\norm{\Delta \varphi}\neq 0$ by the maximum principle since $\Omega$ is bounded. Now let $\mathfrak{f}}%{\tilde N_{\textup{F}} > \max\{ (c'_1/c'_2)^{-1/\nu}, (2 \pi c_2' / \norm{\Delta \varphi })^{1/(1-\nu)} \}$. Then \eqref{eq:IP2Optimality} and \eqref{eq:IP2Optimality-proof1} imply \begin{eqnarray*} C_{\textup{IP2}} ( \Omega,\mathfrak{f}}%{\tilde N_{\textup{F}}, 0 ) &\stackrel{c_2'\mathfrak{f}}%{\tilde N_{\textup{F}}^{-\nu} < c_1'}=& c_2' \mathfrak{f}}%{\tilde N_{\textup{F}}^{-\nu} = \frac{2 \pi c_2' \mathfrak{f}}%{\tilde N_{\textup{F}}^{1-\nu}}{\norm{\Delta \varphi }} \mathfrak{f}}%{\tilde N_{\textup{F}}^{-1} \norm{\Delta \varphi } \stackrel{\eqref{eq:IP2Optimality-proof1}}\geq \frac{2 \pi c_2' \mathfrak{f}}%{\tilde N_{\textup{F}}^{1-\nu}}{\norm{\Delta \varphi }} \norm{S_0\varphi} > \norm{S_0\varphi}. \end{eqnarray*} Since $\norm{\varphi} = 1$, this contradicts the definition of the stability constant $C_{\textup{IP2}}$. Hence, $\nu \geq 1$ must hold by contradiction. \end{proof} \vspace{.5em} Intuitively, the upper bound $-\nu \leq -1$ for the achievable order in \cref{thm:IP2Optimality} is related to the \emph{second} order zero of the CTF $s_\alpha$ at $\ensuremath{\boldsymbol{\xi}} = 0$ for $\alpha = 0$, which allows to bound $|s_{\alpha}|$ by a quadratic function. In the case $\alpha > 0$, this zero no longer exists which enables higher order behavior $C_{\textup{IP2}} \gtrsim \mathfrak{f}}%{\tilde N_{\textup{F}}^{-1/2}$ as shown in \cref{thm:IP2StabRes}. As the CTF still has \emph{first order} zero manifolds, we conjecture that this rate is likewise of optimal order. However, simple arguments as in the proof of \cref{thm:IP2Optimality} suffer from technical difficulties arising from the spherical geometry and the $\mathfrak{f}}%{\tilde N_{\textup{F}}$-dependence of the first order zero-manifolds. A treatment of the case $\alpha > 0$ is therefore omitted here. \vspace{1em} \section{Image reconstruction from two measurements} \label{S5} By axial translation of the object in \cref{figure1}(a), holograms $I_1,I_2$ may be recorded for different sample-detector distances and thus at different Fresnel numbers $\tNFa 1 \neq \tNFa 2$. It is often stated \cite{Cloetens1999,Jonas2004TwoMeasUniquePhaseRetr,Burvall2011TwoPlanes,Krenkel2014BCAandCTF} that the acquired additional data permits a more stable phase retrieval in this setting - in particular if phase shifts $\phi$ and attenuation $\mu$ are to be recovered as independent parameters. Within the weak object approximation (see \secref{SS2.2}), this setting amounts to reconstructing $h = - \mu - \Text{i} \phi$ from measurements $(T_1 h , T_2 h)$, where $T_j$ denotes the linearized forward operator in \eqref{eq:fwModel1} to the Fresnel number $\mathfrak{f}}%{\tilde N_{\textup{F}} = \tNFa j$. Adopting the CTF-formulation in \eqref{eq:fwModelCTF}, the two-hologram setting is modeled by the forward map \begin{align}\label{eq:fwModel3} \begin{array}{ll} S^{(2)}: L^2 (\mathbb{R}^m)^2 \!\! &\to L^2 (\mathbb{R}^m)^2, \\ [1ex] \qquad \qquad \;\; \left(\begin{smallmatrix} \phi \\ \mu \end{smallmatrix}\right) \!\! &\mapsto 2\mathcal{F}^{-1} \big( \boldsymbol S \cdot \mathcal{F} \left(\begin{smallmatrix} \phi \\ \mu \end{smallmatrix}\right) \big), \end{array} \quad \boldsymbol S(\ensuremath{\boldsymbol{\xi}}):=\begin{pmatrix} \sin \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa 1 } \right) & - \cos \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa 1 } \right) \\ \sin \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa 2 } \right) & - \cos \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa 2 }\right) \end{pmatrix} \end{align} Here, the matrix-vector-product is to be understood as a point-wise product of the vector- and matrix-valued function values and the (inverse) Fourier transforms $\mathcal{F}, \mathcal{F}^{-1}$ are meant component-wise. Furthermore, we denote by $\norm{f } := ( \norm{f_1}^2 + \norm{f_2}^2 )^{1/2}$ for $f = (f_1, f_2) \in L^2(\mathbb{R}^m)^2$ the usual norm on $L^2(\mathbb{R}^m)^2$. With the forward model defined in \eqref{eq:fwModel3}, image recovery from two diffraction patterns may then be stated as: \vspace{.5em} \begin{MyIP}[Phase contrast imaging from two measurements]\label{ip3} For given support $\Omega \subset \mathbb{R}^m$, recover the images $\phi, \mu \in L^2_\Omega$ from two noisy holograms \begin{equation*} \begin{pmatrix} I^{\ensuremath{\boldsymbol{\epsilon}}}_1 -1 \\ I^{\ensuremath{\boldsymbol{\epsilon}}}_2-1 \end{pmatrix} = S^{(2)} \begin{pmatrix} \phi \\ \mu \end{pmatrix} + \ensuremath{\boldsymbol{\epsilon}} \MTEXT{with} \norm{\ensuremath{\boldsymbol{\epsilon}}} \leq \epsilon. \end{equation*} \end{MyIP} \vspace{.5em} As the same amount of object information is to be recovered from a larger data set, it is evident that \cref{ip3} cannot be more ill-posed or ill-conditioned than \cref{ip1}. In order to gain deeper insight, it is illustrative to write down an explicit inverse of the forward operator $S^{(2)}$ defined in \eqref{eq:fwModel3} by point-wise inversion of the contrast-transfer-matrix $\boldsymbol S$ as done in \cite{Gureyev2004CTF}: setting $\tNFa{-}:= (\tNFa 1^{-1} - \tNFa 2^{-1} )^{-1}$ this yields for any $(\phi, \mu) \in L^2 (\mathbb{R}^m )$ \begin{align} \begin{pmatrix} \phi \\ \mu \end{pmatrix} &= \mathcal{F}^{-1} \Bigg( \frac{1}{2 \sin\big(\frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa{-}}\big)} \begin{pmatrix} \cos \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa 2 }\right) & - \cos \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa 1 } \right) \\ \sin \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa 2 } \right) & - \sin \left( \frac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa 1 } \right) \end{pmatrix} \mathcal{F} S^{(2)} \begin{pmatrix} \phi \\ \mu \end{pmatrix} \Bigg). \label{eq:IP3-2} \end{align} All of the operations on the right-hand side of in \eqref{eq:IP3-2} are bounded except for the point-wise division by the factor $2 \sin\big(|\ensuremath{\boldsymbol{\xi}}|^2 / (2\tNFa{-}) \big)$. According to \eqref{eq:fwModel2}, we find that the latter operation exactly corresponds to solving \cref{ip2} for a pure phase object (i.e.\ $\alpha = 0$) at an effective Fresnel number of $\mathfrak{f}}%{\tilde N_{\textup{F}} = \tNFa{-}$. In particular, this implies that the solution of \cref{ip3} is unique but ill-posed without a support constraint, i.e.\ for general $\phi, \mu \in L^2(\mathbb{R}^m)$. By a more rigorous analysis of the analogy to \cref{ip2}, we obtain stability estimates: \vspace{.5em} \begin{theorem}[Stability estimate for \cref{ip3}] \label{thm:IP3StabRes} Let $S_0$ denote the forward operator of \cref{ip2} for $\alpha = 0$ and $\mathfrak{f}}%{\tilde N_{\textup{F}} = \tNFa{-} := (\tNFa 1^{-1} - \tNFa 2^{-1} )^{-1}$. Then \begin{align} \big \| S^{(2)} \left(\begin{smallmatrix} \phi \\ \mu \end{smallmatrix}\right) \big\| \geq 2^{-\frac 1 2} \norm{ S_0 \left( \phi + \Text{i}\mu \right)} \MTEXT{for all real-valued} \phi, \mu \in L^2 (\mathbb{R}^m) \label{eq:IP3StabRes-1} \end{align} In particular, for any support-domain $\Omega \subset \mathbb{R}^m$, we have the relative stability estimate \begin{align} \big \| S^{(2)}\left( \begin{smallmatrix} \phi \\ \mu \end{smallmatrix} \right) \big \| \geq 2^{-\frac 1 2} C_{\textup{IP2}}(\Omega, \tNFa -, 0) \norm{\left( \begin{smallmatrix} \phi \\ \mu \end{smallmatrix} \right) } \MTEXT{for all real-valued} \phi, \mu \in L^2_\Omega. \label{eq:IP3StabRes-2} \end{align} \end{theorem} \vspace{.5em} \begin{proof} Let $\phi, \mu \in L^2 (\mathbb{R}^m)$ be real-valued. Setting $\ensuremath{\boldsymbol{\hat h}} := (\mathcal{F}(\phi), \mathcal{F}(\mu))$ and exploiting that $\mathcal{F}$ is unitary, we obtain by \eqref{eq:fwModel3} \begin{equation*} \big \| S^{(2)} \left(\begin{smallmatrix} \phi \\ \mu \end{smallmatrix}\right) \big \|^2 = 4 \big \| \boldsymbol S \ensuremath{\boldsymbol{\hat h}} \big \|^2 = 4 \int_{\mathbb{R}^m} | \boldsymbol S(\ensuremath{\boldsymbol{\xi}}) \ensuremath{\boldsymbol{\hat h}}(\ensuremath{\boldsymbol{\xi}}) |^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}}. \label{eq:IP3-3} \end{equation*} The integrand $| \boldsymbol S(\ensuremath{\boldsymbol{\xi}}) \ensuremath{\boldsymbol{\hat h}}(\ensuremath{\boldsymbol{\xi}}) |^2$ is bounded from below by $\sigma_0^2(\ensuremath{\boldsymbol{\xi}})|\ensuremath{\boldsymbol{\hat h}}(\ensuremath{\boldsymbol{\xi}}) |^2$ with the smallest singular value $\sigma_0(\ensuremath{\boldsymbol{\xi}})$ of the 2-by-2 matrix $\boldsymbol S(\ensuremath{\boldsymbol{\xi}})$. Direct computation shows \begin{equation*} \sigma_0^2(\ensuremath{\boldsymbol{\xi}}) = 1 - \left| \cos\left( \tfrac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa{-}} \right) \right| \geq \frac 1 2 \sin\left( \tfrac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa{-}} \right)^2 \MTEXT{for all} \ensuremath{\boldsymbol{\xi}} \in \mathbb{R}^m. \label{eq:IP3-4} \end{equation*} By inserting this result into the previous equation and comparing to \eqref{eq:fwModel2}, we obtain \begin{align*} \big \| S^{(2)} \left(\begin{smallmatrix} \phi \\ \mu \end{smallmatrix}\right) \big \|^2 &\geq 2 \int_{\mathbb{R}^m} \sin\left( \tfrac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa{-}} \right)^2 | \ensuremath{\boldsymbol{\hat h}}(\ensuremath{\boldsymbol{\xi}}) |^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} \nonumber \\ &= 2 \int_{\mathbb{R}^m} \sin\left( \tfrac{|\ensuremath{\boldsymbol{\xi}}|^2 }{2\tNFa{-}} \right)^2 | \mathcal{F}(\phi)(\ensuremath{\boldsymbol{\xi}}) + \Text{i} \mathcal{F}(\mu)(\ensuremath{\boldsymbol{\xi}}) |^2 \; \Text{d}\ensuremath{\boldsymbol{\xi}} = \frac 1 2 \norm{S_0(\phi + \Text{i} \mu)}^2. \end{align*} This proves \eqref{eq:IP3StabRes-1}. The second inequality \eqref{eq:IP3StabRes-2} follows by bounding the right-hand side of \eqref{eq:IP3StabRes-1} with the stability constant of \cref{ip2}. \end{proof} \vspace{.5em} We emphasize that \cref{thm:IP3StabRes} does not only relate the worst case stability of \cref{ip2,ip3} but \eqref{eq:IP3StabRes-1} identifies the contrast attained by individual modes under the forward operators $S_0$ and $S^{(2)}$. Specifically, whenever $\norm{S_0(\phi + \Text{i} \mu)}$ is large, the mode $(\phi, \mu)^{\textup T}$ also attains high contrast under the forward map $S^{(2)}$ of \cref{ip3}. It should furthermore be noted that the derived stability estimates are in terms of the \emph{difference Fresnel number} $\tNFa{-}^{-1} = \tNFa 1^{-1} - \tNFa 2^{-1} $. Hence, if the two holograms are recorded at similar Fresnel numbers $\tNFa 1 \approx \tNFa 2$, i.e.\ for only slightly varied setup parameters, $\tNFa{-}$ is very large so that the stability bounds in \cref{thm:IP3StabRes} will hardly be better than for the \emph{single} measurement case. This is quite intuitive as the second measurement provides only little additional information in such a setting. \vspace{1em} \section{Discussion and conclusions} \label{S6} In this paper we have studied the stability of phase retrieval in propagation-based phase contrast imaging within the linear contrast-transfer-function model (CTF) \cite{Guigay1977CTF,Turner2004FormulaWeakAbsSlowlyVarPhase}, valid for weakly interacting objects. While the image reconstruction problem is generally ill-posed and even severely non-unique if both phase-shifts $\phi$ and attenuation $\mu$ are to be recovered from a single (phaseless) intensity measurement (\cref{ip1}), we could show \emph{well-posedness} under a support constraint: if the image $h = -\mu - \Text{i} \phi$ is known to be supported in a bounded domain $\Omega \subset \mathbb{R}^m$, then the attained contrast $\norm{Th} \geq C_{\textup{IP1}}(\Omega, \mathfrak{f}}%{\tilde N_{\textup{F}}) \norm{h}$ is bounded from below by a positive stability constant $C_{\textup{IP1}}(\Omega, \mathfrak{f}}%{\tilde N_{\textup{F}}) > 0$ according to \cref{thm:IP1StabRes}. Numerical simulations (see \secref{SS3.5}) suggest that the proven lower bound $C_{\textup{IP1}}(\Omega, \mathfrak{f}}%{\tilde N_{\textup{F}}) \gtrsim \mathfrak{f}}%{\tilde N_{\textup{F}}^{1/4} \exp(-\mathfrak{f}}%{\tilde N_{\textup{F}} / 8)$ is quite sharp. Accordingly, $C_{\textup{IP1}}$ unfortunately decays nearly exponentially with the Fresnel number $\mathfrak{f}}%{\tilde N_{\textup{F}}$ of the imaging setup (computed w.r.t.\ the support diameter!), which translates into partly ridiculously small values within the typical range $10 \leq \lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF \leq 10^3$ in X-ray phase contrast experiments. For instance, the estimate \eqref{eq:IP1StabRes-2} gives $C_{\textup{IP1}}(\Omega,2\pi\cdot 100) \leq 10^{-33}$ at a Fresnel number $\lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF = 100$. In other words: although well-posed, the inversion of the forward operator $T$ is typically \emph{heavily ill-conditioned}, admitting amplification of data errors by bounded, yet \emph{huge} factors $C_{\textup{IP1}}^{-1}$ in the image reconstruction. It is thus not surprising that the independent recovery of both $\phi$ and $\mu$ from a single hologram is typically severely corrupted by artifacts in practice, see e.g.\ \cite{Ruhlandt2014,MaretzkeMasters}, and commonly considered as not feasible \cite{Jonas2004TwoMeasUniquePhaseRetr,Nugent2007TwoPlanesPhaseVortex,Burvall2011TwoPlanes}. On the other hand, such a reconstruction has been successfully demonstrated in \cite{MaretzkeEtAl2016OptExpr} up to slight low-frequency artifacts. In view of the present work, the key ingredient to this demonstration can be identified as the comparably small Fresnel number $\lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF \approx 14$ of the support in the considered setup. By the characterization of the least stable modes in \cref{thm:LeastStableModes}, this corresponds to a minimum contrast \begin{equation} \norm{T \phi_{(0,0)} } \geq 10^{-4} \norm{\phi_{(0,0)} } \MTEXT{and} \norm{T \phi_{(0,1)} } \geq 7\cdot 10^{-4} \norm{\phi_{(0,1)} } \end{equation} for the least and second least stable image modes $\phi_{(0,0)} $ and $\phi_{(0,1)} $. The reconstruction of these low-frequency image components is thus feasible in principle, yet numerically cumbersome, which explains the residual artifacts in the reconstruction. Higher-order image modes attain contrast in the order of the data noise level or above and may thus be recovered with reasonable accuracy. Our stability estimates thus predict that the joint recovery of phase shifts $\phi$ and absorption $\mu$ is feasible if and only if $\lower0.9ex\hbox{$\mathchar'26$}\mkern-8mu \tNF \lesssim 10$, i.e.\ in the \emph{deeply holographic regime} - in excellent agreement with numerical reconstructions. According to the improved stability estimate for the settings of \cref{ip2,ip3} (see \cref{thm:IP2StabRes,thm:IP3StabRes}) image recovery can be performed without additional regularization provided a sufficiently strong support constraint. This is consistent with the observed high performance of iterative projection algorithms in phase retrieval (see \cite{BCL:02,Marchesini2007EvalPhaseRetrAlg,fienup:13 and references therein, mostly for the far-field case and e.g.\ \cite{Giewekemeyer2011CellSketch,Bartels2012} for near-field phase contrast), which make use of support constraints. Let us discuss some possible extensions of our results. First of all we have assumed that diffraction patterns can be measured in a whole detector plane, whereas real-world X-ray detectors necessarily cover only a finite area. If intensities are measured only in a bounded subdomain, the singular values of the forward operator $T$ will eventually decay exponentially since $T$ can be written as an integral operator with an analytic (though highly oscillitory) kernel. On the other hand, Fresnel propagation is mathematically equivalent to time-evolution within the free Schr\"odinger equation (if the $z$-coordinate in \Fref{figure1}(b) is identified with time). Localization properties of the latter model suggest that the finiteness of the detection domain has little influence if it is chosen sufficiently large - in agreement with experimental and numerical experience. A better understanding and analysis of the impact of a finite field of view will be an interesting goal for future research. Further possible extensions include a treatment of the nonlinear imaging model \eqref{eq:fwModelNL}, non-plane wave illumination and partial coherence. Moreover, in \emph{region-of-interest} imaging of extended objects, support constraints do not hold true so that stability needs to be established by other means. Finally, we emphasize that - although seemingly specific to the considered imaging setup - our analysis treats a fairly general physical problem: the reconstruction of a (compactly supported) perturbation to a plane wave from intensities of the propagated field under the paraxial Helmholtz equation or - equivalently - within time-dependent Schr\"odinger dynamics. The results may thus be relevant for several related wave-optical and quantum-mechanical inverse problems. \vspace{1em} \section*{Acknowledgements} We thank Tim Salditt, Aike Ruhlandt and Martin Kren-kel from the Institute for X-ray Physics at the University of G\"ottingen for enlightening discussions on phase contrast setups, a priori constraints and stability of image reconstruction, as well as for providing the experimental data used in Figures \ref{figure1} and \ref{figure2} for visualization of the theory in this work. \small \bibliographystyle{siam}
\section{Introduction} \label{sect:intro} Blazars are active galactic nuclei (AGN) with relativistic jets closely aligned with our line of sight according to the radio-loud AGN unification \citep{Urry95}. As a result, the Doppler-boosted relativistic jet emission dominates their non-thermal spectrum from the radio \citep{Blandford79} through optical \citep{Whiting01} to the $\gamma$-rays \citep{Ackermann11}. Phenomenological relations between optical flaring and radio properties in blazars have been investigated spanning a duration of more than four decades \citep[e.g.,][]{Hac72,Pom76,Babadzhanyants84,Tor94}. However, the physics of the inter-relating properties across the electromagnetic spectrum remains enigmatic. Recent studies found a significant positive correlation between the optical nuclear luminosity and the radio flux density of the compact core in quasars, indicating that both the radio and optical emissions originate from the innermost part of the relativistically beamed pc-scale jets \citep{Ars10}. Correlations between the optical and $\gamma$-ray variability have also been found in blazars \citep{Hovatta14,Cohen14}, supporting the single-zone leptonic models in which the optical seed synchrotron photons are up-scattered by relativistic electrons to $\gamma$-ray energy bands via the inverse Compton process. As for possible correlations between $\gamma$-ray flares and the emergence of new superluminal VLBI components, \citet{Jor01} found a correspondence between these events in about half of the cases in their blazar sample, suggesting that the $\gamma$-ray emission is closely related to the relativistic jet. The physical mechanism producing the $\gamma$-ray flares is either synchrotron self-Compton or external Compton scattering of photons by relativistic electrons in the pc-scale regions of the jet. The location of the seed photon sources however may span two orders of magnitude in distance from the black hole, from the broad-line region (BLR, $\sim$0.1~pc), the molecular torus ($\sim$1$-$few pc), or the radio core ($\sim$10~pc) \citep{Dotson15}. CGRaBS J0809+5341 (J0809+5341, hereafter) is a flat-spectrum radio quasar \citep[a blazar;][]{Massaro09} at high redshift, $z = 2.133$ \citep{Healey08}. Recently it showed a bright flare in unfiltered optical observations \citep{Shumkov14,Balanutsa14}. The observations were made with the MASTER-Tunka auto-detection system on the nights of 2014 April 13 and April 19. The absolute magnitude of the flaring source was extremely high, $M=-30.0$ on April 13 and $M=-30.5$ on April 19, making it (during the short flaring period) possibly the brightest among all known quasars. In the subsequent observation on 2014 May 2, the source became significantly fainter, but it was still about 3 magnitudes brighter than in its quiescent state \citep{Wiersema14}. The source has recently been detected at high energies in the decaying part after the 2014 optical flare as well. It has been detected with the {\em Fermi} Large Area Telescope (LAT) \citep{Fermi15}; this observation indicated variability in the high-energy bands. It remained undetected during the first 2 years of {\em Fermi} operations but became active and continuously detected in the last year \citep{Paliya15}. In the same study, the source was also tracked in the X-rays with the {\em Nuclear Spectroscopic Telescope Array (NuSTAR)} and {\em Swift} satellites. The strong optical flare and the recent high $\gamma$-ray state in J0809+5341 would be expected to cause a radio flux density outburst with the emergence of a new jet component \citep[e.g.,][]{Jor01,Mar08,Mar10,Ori13}. High-resolution VLBI imaging observations are essential to confirm this. Motivated by the discovery of the prominent optical flare, we have carried out a short exploratory VLBI observation of J0809+5341 with the European VLBI Network (EVN), with the aim of searching for possible structural changes and radio flux density variation associated with the event. The experiment was conducted on 2014 November 18, seven months after the optical flare. Then, we continued monitoring the source with the KaVA, a VLBI array combining the Korean VLBI Network (KVN) and the Japanese VLBI Exploration of Radio Astrometry (VERA) array, at frequencies of 22 and 43 GHz. The dual-frequency KaVA observations of J0809+5341 were conducted at three epochs (2015 February 25/26, 2015 April 2/3, and 2015 June 3/4), in order to trace possible structural variations, flux density variability, and the change of radio spectral index with time. Here we report on the results of our VLBI observations of J0809+5341. The paper is organized as follows: Section \ref{sect:obs} describes the EVN and KaVA observations and the data analysis. Section \ref{sect:res} presents the results which are then discussed in Section \ref{sect:disc}. A summary of the current study is then presented in Section \ref{sect:sum}. \section{Observations and data reduction} \label{sect:obs} \subsection{EVN observation and data reduction} \label{subsect:evn} \begin{figure*} \centering \includegraphics[width=0.4\textwidth]{fig1a.ps} \includegraphics[width=0.4\textwidth]{fig1b.ps} \caption{Left: The $(u,v)$-covergae of our initial e-EVN observations of J0809+5341 at 5~GHz. Right: An example of the $(u,v)$-coverage of KaVA observations of J0809+5341 at 22~GHz. The $u$ and $v$ components of the baseline vectors projected onto the plane perpendicular to the line of sight are expressed in the units of million wavelengths. As can be seen, the EVN and the KaVA observations have sampled similar spatial frequencies, but the distribution of the baselines is different. } \label{fig:uvcov} \end{figure*} The observation of J0809+5341 was carried out with the EVN in electronic VLBI (e-VLBI) mode \citep{Szo08} at 5 GHz on 2014 November 18. Eight antennas participated in this experiment: Effelsberg (Germany), Jodrell Bank Mk2 (United Kingdom), Noto (Italy), Onsala (Sweden), Yebes (Spain), Toru\'n (Poland), Sheshan (China), and the Westerbork Synthesis Radio Telescope (WSRT, the Netherlands). The data observed at the telescopes were transmitted via wide-band optical fibre networks in real time to the EVN software correlator \citep[SFXC;][]{Kei15} at the Joint Institute for VLBI in Europe (JIVE), Dwingeloo, the Netherlands. The data were recorded in eight intermediate frequency channels (IFs) in both left and right circular polarizations at a maximum recording rate of 1024~Mbit~s$^{-1}$. The total bandwidth was 128 MHz. The observation was conducted in phase-reference mode \citep{BC95}. The telescopes nodded between the target and a nearby calibrator, J0809+5218, $1\fdg37$ away from the target. The target--reference duty cycle was 7 min long, with 4 min spent on J0809+5341. The total observing time was 2 h, and the effective on-target integration time was 1.2 h. The post-correlated data were imported into the NRAO Astronomical Image Processing System ({\sc AIPS}), to calibrate the amplitudes and the fringe phases \citep{Diamond95}. After performing fringe-fitting \citep{Schwab83} for the phase-reference calibrator, the data were exported to the Caltech {\sc Difmap} package \citep{Shepherd94} for imaging and calibrating the residual phase errors. We performed a traditional hybrid mapping procedure consisting of several iterations of {\sc Clean}ing \citep{Hogbom74}, phase and amplitude self-calibration. The brightness distribution model of J0809+5218 was then used as input for a repeated fringe fitting in {\sc AIPS}, to account for the small residual phase errors caused by the non-pointlike structure of the calibrator. The derived gain solutions obtained for the calibrator were interpolated and applied to the target, J0809+5341. Then the visibility data were exported to {\sc Difmap} for imaging. As the target J0809+5341 itself was bright enough for fringe fitting, we repeated the procedure without using the complex gains from the phase-reference calibrator. For a comparison, the resulting image (shown in Fig.~\ref{fig:evn}) was similar to that obtained from the phase-referencing data reduction. The flux density uncertainty assumed as 10\% for the EVN originates from the errors of amplitude calibration based on the antenna gain curves and system temperature measurements. \begin{figure*} \centering \includegraphics[width=0.9\textwidth]{fig2.eps} \vspace{5mm} \caption{Left: naturally weighted 5-GHz EVN image of J0809+5341. The image parameters (the lowest positive and negative contour level corresponding to the $\sim3 \sigma$ image noise, the peak brightness, and the restoring beam size and major axis position angle) are given in Table~\ref{tab:obs}. The positive contour levels increase by a factor of 2. Right: visibility amplitude versus projected baseline length. The visibilities with close {\it $(u,v)$} distances are binned together for illustration puproses only. The plot shows the weighted mean amplitudes and standard deviations. The solid curve indicates the best-fit circular Gaussian model. } \label{fig:evn} \end{figure*} \subsection{KaVA observations and data reduction} The KVN \citep{Kim04} comprises of three radio telescopes of 21 m diameter, located at Seoul, Ulsan, and Jeju Island. The network is dedicated to high radio frequency (22, 43, 86, and 129~GHz) observations \citep{Han13}. The VERA array \citep{Kob03} consists of four telescopes of 20 m diameter located at Mizusawa, Iriki, Ogasawara, and Ishigaki-jima in Japan. It is dedicated to high-precision VLBI astrometric measurements. VERA antennas have been installed with dual-beam and 22/43~GHz receiver systems for efficient phase-reference VLBI observations. The combination of KVN and VERA yields a new, powerful VLBI facility called KaVA (KVN and VERA array). KaVA thus consists of seven radio telescopes with the longest and shortest interferometric baselines of 2270 km and 305 km, respectively. The array is remarkable for its evenly distributed $(u,v)$ spacings (Fig.~\ref{fig:uvcov}). The imaging capability of KaVA for extended radio structures in bright AGN has been demonstrated by \citet{Nii14}. \begin{figure*} \centering \includegraphics[width=1.0\textwidth]{fig3.eps} \caption{Naturally weighted KaVA images of J0809+5341 at 22~GHz (top) and 43~GHz (bottom). The observing epochs and image parameters (the lowest positive and negative contour level corresponding to the $\sim3 \sigma$ image noise, the peak brightness, and the restoring beam size and major axis position angle) are presented in Table~\ref{tab:obs}. The positive contour levels increase by a factor of 2. The ellipse in the bottom-left corner indicates the restoring beam.} \label{fig:KaVA} \end{figure*} Our KaVA observations of J0809+5341 were made at two frequencies, 22 and 43~GHz. Since the aim of the project was to detect changes in the putative jet structure, the observations were scheduled in three sessions separated by about 5 and 8 weeks: 2015 February 25/26, 2015 April 2/3, and 2015 June 3/4. All seven KaVA antennas participated in these experiments. Occasionally, for periods of time, the measured system temperatures at certain individual antennas significantly exceeded the nominal values. Affected data were omitted from the subsequent analysis. The KaVA data were recorded in 16 IFs in left-hand circular polarization with two-bit quantization, at a rate of 1024~Mbit~s$^{-1}$. The total bandwidth was 256~MHz. The observing time at each frequency on each date was 4~h. Apart from five 4-min scans on a bright calibrator (4C\,39.25) which were used for fringe finding, the remaining time was spent on J0809+5341. The effective observing time spent on the target was nearly 3.7~h at both frequencies in each session. The data at the VERA and the KVN telescopes were recorded on magnetic tapes and disks, respectively. After completing the experiments, the tapes and disks were shipped from the stations to the Korea--Japan Correlation Center (KJCC) located in Daejeon, Korea \citep{Lee14,2015JKAS...48..125L}, where the correlation was performed. The correlated interferometric visibility data were imported into {\sc AIPS} where the amplitudes and phases were calibrated. The data reduction followed the standard procedure described in Section~\ref{subsect:evn} \citep[see also][]{Lee15} with direct fringe-fitting to the J0809+5341 data. An amplitude calibration uncertainty of 15\% is assumed for KaVA \citep[e.g.,][]{Nii14}. The imaging with {\sc Clean} and phase self-calibration cycles was performed in {\sc Difmap}. One iteration of amplitude and phase self-calibration was done to improve the dynamic range of the image, but no more amplitude self-calibration step was performed, to avoid the inclusion of a scaling error of the visibility amplitude. \section{Results} \label{sect:res} \subsection{The VLBI structure} \label{size} Figure~\ref{fig:evn} shows the 5-GHz EVN image of J0809+5341, characterized by a single compact component, apparently the radio ``core''. It is conventionally interpreted as the inner section of the synchrotron-emitting jet that becomes optically thick at the given observing frequency \citep{Blandford79}. This image resulted from fringe-fitting to the J0809+5341 data. The position of the emission peak in the phase-referenced image (not reproduced here) is right ascension $08^{\rm h} 09^{\rm m} 41\fs7330$ and declination $+53\degree 41\arcmin 25\farcs093$ (J2000), which is in good agreement with that derived from the analysis of the data from the VLBI calibrator database \footnote{Data from http://astrogeo.org maintained by L. Petrov, solution rfc\_2014d}. \begin{table*} \tbl{Parameters of the VLBI images.}{% \begin{tabular}{ccccccccc} \hline Epoch & Array & $\nu$ & Restoring beam FWHM & Lowest contours & Peak brightness & Figure \\ & & (GHz) & (major axis $\times$ minor axis, PA) & (mJy beam$^{-1}$) & (Jy beam$^{-1}$) \\ \hline 2014 Nov 18 & EVN & 5.0 & 4.65 mas$\times$1.37 mas, $23\fdg3$ & 0.3 & 0.158 & \ref{fig:evn} \\ 2015 Feb 25 & KaVA & 21.8 & 1.27 mas$\times$0.93 mas, $-41\fdg4$ & 1.2 & 0.154 & \ref{fig:KaVA}a \\ 2015 Feb 26 & KaVA & 43.5 & 1.43 mas$\times$0.69 mas, $18\fdg7$ & 0.7 & 0.114 & \ref{fig:KaVA}b \\ 2015 Apr 02 & KaVA & 21.8 & 1.34 mas$\times$0.75 mas, $-53\fdg7$ & 0.7 & 0.154 & \ref{fig:KaVA}c \\ 2015 Apr 03 & KaVA & 43.5 & 0.80 mas$\times$0.57 mas, $-1\fdg1$ & 0.8 & 0.134 & \ref{fig:KaVA}d \\ 2015 Jun 03 & KaVA & 21.8 & 1.36 mas$\times$1.11 mas, $-33\fdg5$ & 0.7 & 0.171 & \ref{fig:KaVA}e \\ 2015 Jun 04 & KaVA & 43.5 & 0.86 mas$\times$0.70 mas, $13\fdg1$ & 0.9 & 0.126 & \ref{fig:KaVA}f \\ \hline \end{tabular}}\label{tab:obs} \begin{tabnote} \end{tabnote} \end{table*} Figure~\ref{fig:KaVA} shows the 22 and 43 GHz emission structure observed with KaVA at three epochs. The images are made with natural weighting. The highest resolution is 0.57~mas at 43~GHz and 0.75~mas at 22~GHz, corresponding to a projected linear size of 4.7~pc and 6.2~pc, respectively\footnote{We assume a flat cosmological model with $H_{\rm 0}$=70~km~s$^{-1}$~Mpc$^{-1}$, $\Omega_{\rm m}$=0.3, and $\Omega_{\Lambda}=$0.7, which gives a scaling parameter of 8.3~pc\,mas$^{-1}$.}. The image parameters are listed in Table~\ref{tab:obs}. The source does not show any obvious extended radio structure on these scales down to the brightness level of $0.3$~mJy\,beam$^{-1}$. For a simple characterization of the brightness distribution of the compact ``core'', we fitted circular Gaussian model components to the self-calibrated VLBI visibility data in {\sc Difmap}. The results of the model fitting are presented in Table~\ref{tab:mf}. The fit to the 5 GHz EVN data gave a $159 \pm 16$~mJy flux density and $0.31 \pm 0.06$~mas de-convolved angular size (full width at half-maximum, FWHM). The error in the core size was estimated by using Monte Carlo simulations and allowing for a 10\% variation in the visibility amplitudes. The right panel of Fig.~\ref{fig:evn} shows the visibility amplitudes as a function of the projected baseline length, demonstrating that the source is slightly resolved. The 0.31-mas diameter circular Gaussian model fitted in {\sc Difmap} using all individual visibility data points is also indicated as solid line, as well as a point source model with 159~mJy flux density shown as dashed line. The fitted core size from the KaVA data ranges from 0.06 to 0.10~mas (Table~\ref{tab:mf}). While the resolution of the EVN and KaVA observations are similar (cf. Fig.\ref{fig:uvcov}), the core size derived from the KaVA data is about three times smaller than that from the EVN data. This is not surprising as at the 4--8 times higher observing frequencies, as the KaVA is getting emission from the inner-most region of the jet, and the core size is expected to scale with $\nu^{-1}$ \citep{Blandford79}. We therefore note that the highest frequency KaVA data may actually be consistent with a point source and the fitted sizes are upper limits. Following the same procedure, we also analyzed the archival 5 GHz VLBA data from the VIPS project \citep{Helmboldt07}, and 2.3/8.4 GHz data from the VLBA Calibrator Survey \citep[VCS1,][]{Beasley02}. The fitted model parameters are listed together with those derived from our EVN and KaVA observations in Table~\ref{tab:mf}. \begin{table*} \tbl{The results of circular Gaussian model fitting to VLBI data of J0809+5341 and the source physical parameters derived.}{% \begin{tabular}{ccccccc} \hline Epoch & $\nu$ & $S$ & $\theta$ & $T_{\rm b}$ & $\delta$ & Reference \\ & (GHz) & (mJy) & (mas) & ($10^{11}$~K) & & \\ \hline 1994 Aug 12 & 2.3 & 171$\pm$17 & 1.17$\pm$0.06 & 0.9$\pm$0.1 & 1.8$\pm$0.2 & \citet{Beasley02} \\ 1994 Aug 12 & 8.4 & 143$\pm$14 & 0.24$\pm$0.02 & 1.3$\pm$0.2 & 2.6$\pm$0.3 & \citet{Beasley02} \\ 2006 May 31 & 4.8 & 184$\pm$18 & 0.24$\pm$0.03 & 5.3$\pm$1.4 & 10.6$\pm$2.4 & \citet{Helmboldt07} \\ 2014 Nov 18 & 5.0 & 159$\pm$16 & 0.31$\pm$0.07 & 2.5$\pm$0.6 & 5.0$\pm$1.1 & this paper \\ 2015 Feb 25 & 21.8 & 154$\pm$23 & 0.06$\pm$0.01 & 1.2$\pm$0.3 & 2.4$\pm$0.5 & this paper \\ 2015 Feb 26 & 43.5 & 116$\pm$17 & 0.10$\pm$0.02 & $>$0.20$\pm$0.05 & $>$0.4$\pm$0.1 & this paper \\ 2015 Apr 02 & 21.8 & 155$\pm$23 & 0.07$\pm$0.02 & 2.2$\pm$0.7 & 4.4$\pm$1.4 & this paper \\ 2015 Apr 03 & 43.5 & 135$\pm$20 & 0.07$\pm$0.03 & $>$0.6$\pm$0.3 & $>$1.2$\pm$0.6 & this paper \\ 2015 Jun 03 & 21.8 & 170$\pm$25 & 0.10$\pm$0.02 & 1.3$\pm$0.3 & 2.6$\pm$0.7 & this paper \\ 2015 Jun 04 & 43.5 & 127$\pm$19 & 0.09$\pm$0.03 & $>$0.3$\pm$0.1 & $>$0.6$\pm$0.2 & this paper \\ \hline \end{tabular}}\label{tab:mf} \begin{tabnote} \end{tabnote} \end{table*} \subsection{Flux density variability and radio spectrum} \label{variability} The modelfits to the VLBI data (Table~\ref{tab:mf}) do not exclude the variability of the compact radio component. However, these flux densities are measured at one (2.3 and 8.4~GHz), two (5~GHz) or three (22 and 43~GHz) epochs only, and the assumed 10-15\% amplitude calibration uncertainties make the different values consistent with each other within the uncertainties. The historical total flux density measurements of J0809+5341, collected in the NASA/IPAC Extragalactic Database\footnote{http://ned.ipac.caltech.edu/} (NED) hint at variability. The single-dish Green Bank observation at 1.4~GHz made by \citet{WB92} yields a 180~mJy flux density, while at 5~GHz in 1987 October, it was 197~mJy \citep{BWE91,GC91}. The integrated 1.4~GHz flux density in the U.S. National Radio Astronomy Observatory (NRAO) VLA Sky Survey \cite[[NVSS, ][]{Condon98} is $140.4 \pm 4.2$~mJy. This made use of the most compact D-array configuration of the VLA (providing an angular resolution of 45\arcsec). The flux density measured by the B-array configuration in the VLA Faint Images of the Radio Sky at Twenty-Centimeters (FIRST) survey \citep{Becker95} is $131.7 \pm 0.2$~mJy. The difference between the VLA interferometer and Green Bank single-dish measurements is $\sim$40~mJy (nearly 30\%). This could in principle be a resolution effect, but the source is known to be compact on arcsec scales and below, as is obvious from, among others, our own EVN and KaVA observations. Thus the flux density difference cannot be attributed to arcmin-scale extended emission, but rather the time variability of the compact component. We note that J0809+5341 appears as an unresolved optical object in the Sloan Digital Sky Survey \citep[SDSS,][]{Aba09} image on arcsec scale. J0809+5341 is being monitored at 15~GHz with the Owens Valley Radio Observatory (OVRO) 40-m radio telescope\footnote{http://www.astro.caltech.edu/ovroblazars/} as part of a large blazar sample \citep{Richards11}. Figure~\ref{fig:lc} shows the OVRO light curve of J0809+5341 covering a period of more than 8 years, from 2008 to 2016. For more details on the OVRO blazar monitoring program and data reduction, we refer to \citet{Richards11}. According to Fig.~\ref{fig:lc}, J0809+5341 is highly variable with flux densities ranging from $\sim$120 to 360~mJy. The light curve is characterized by a number of subsequent flares. The large flares last for about 2 years. Each large flare appears to show a double peak with a separation of several months. Starting from 2013 February, the source went into a flaring phase. The prominent optical flare discovered in 2014 April \citep{Shumkov14,Balanutsa14} coincides with the peak of radio emission, but since the source has reached similar brightness at two other occasions during the 8-yr monitoring period, this might be just coincidental. Overall, the source J0809+5341 shows a flat radio spectrum with a spectral index $\alpha=0.04$ ($S \propto \nu^\alpha$, where $\nu$ is the frequency and $S$ is the flux density), as derived from the non-simultaneous data with the inhomogeneous resolutions available in NED. We can also use our nearly simultaneous 22 and 43 GHz KaVA data to estimate the spectral index of the compact core. That results in $\alpha_{43}^{22} = -0.4 \pm 0.2$ in the first and third epochs, and $\alpha_{43}^{22} = -0.2 \pm 0.1$ in the second epoch. \begin{figure} \centering \includegraphics[width=0.5\textwidth]{fig4.eps} \vspace{5mm} \caption{The radio light curve of J0809+5341 observed in the OVRO monitoring programme \citep{Richards11} at 15~GHz, from 2008 to 2016 (circles). The date of the major optical flare in 2014 is indicated with a dashed vertical line. Our VLBI ``core'' flux density data points are plotted with different symbols: 5-GHz EVN (up triangle), 22-GHz KaVA (square) and 43-GHz KaVA (right triangle). } \label{fig:lc} \end{figure} \section{Discussion} \label{sect:disc} \subsection{Source variability} As was described in Sect.~\ref{variability}, the source has a flat radio spectrum and shows strong variability in the radio. This is consistent with the blazar classification of J0809+5341. Following \citet{Ars10}, we calculated the radio-loudness parameter $R$, defined as the ratio of the radio flux density at 5~GHz to the nuclear optical flux density at 4400~\AA{} \citep{Kel89}. For a source at $z = 2.133$, the above bands used for calculating $R$ correspond to 1.6~GHz and 13800~\AA{} in the observer's frame. J0809+5341 shows a practically flat radio spectrum, allowing us to assume a 1.6~GHz flux density of 160~mJy in the quiescent state, and 320~mJy at the flare peak. In the flaring state, the MASTER OT observatory detected the unfiltered R-band magnitude of 16.2 \citep{Shumkov14,Balanutsa14}. Compared to the historical R-band data, it is 3.4 mag lower. When converting to flux density at 13800~\AA, it corresponds to about 4.5~mJy. Then, the radio-loudness of J0809+5341 is $R = 70$ during the 2014 optical flare. As a comparison, $R = 1800$ is estimated during quiescence, reinforcing the classification of the object as a radio-loud quasar. Optical flaring of blazars have been studied for over five decades \citep[e.g.,][]{GK65,Pol79,AS80}, and correlations between optical and radio flares have been detected in some cases, e.g., in the prominent radio AGN AO~0235+164 and 3C~345 \citep{BD80,Babadzhanyants84}. Long-term multi-band monitoring of a sample of blazars shows a tight correlation between the radio and optical luminosities \citep{Ars10,Wie15}. At the moment, it is not clear yet whether a similar correlation exists for J0809+5341, but we note that the major optical flare in 2014 took place at the same time when the 15 GHz radio flux density reached its the peak in April (Fig.~\ref{fig:lc}). Our VLBI observations were performed several months later, when the total radio flux density had already dropped considerably. The VLBI flux densities at various frequencies and epochs reported in this paper show a good consistency with the total flux density of the 15 GHz OVRO light curve (Fig.~\ref{fig:lc}), indicating that the total flux density is dominated by the compact VLBI core, and the core has a flat radio spectrum during this relatively quiet stage. Recently, \citet{Paliya15} reported the first detection of J0809+5341 in the X-ray and $\gamma$-ray bands. This increase in high-energy emission is coincidental and likely associated with the giant optical flare. As mentioned earlier, the seed photon sources for inverse Compton scattering may originate in the BLR, the molecular torus, or the radio core. \citet{Paliya15} found that the $\gamma$-ray properties are consistent with an emission region outside of the BLR. In this case the flaring radio emission is expected to be completely synchrotron self-absorbed, and the observed maximum in radio flux density is likely a chance coincidence. When the shocked ejecta travel along the jet, we expect to see an increase of radio emission as it becomes transparent, first at the highest frequencies, as predicted by the shock-in-jet model \citep{MG85,Val92}. The fact that there has been no increase at 43~GHz in our monitoring implies that the flaring radio emission was either very short-lived, or the shocked ejecta has not propagated yet to the optically thin region. Alternatively, the optical flare and the radio outburst, as well as the increase in the high-energy flux are physically related. Most blazar outbursts are known to occur at pc-scale distances from the central engine, around the radio core region \citep[see e.g.][for a review]{Mar13}. This can be confirmed by long-term monitoring observations with dense time sampling, from radio to $\gamma$-rays, supplemented with high-resolution VLBI monitoring in the radio. Such programmes are being undertaken for some of the most prominent blazars \citep[e.g.,][]{Mar08,Mar10,Agudo11a,Agudo11b,Ori13,Jor13} but not for J0809+5341. However, it is also possible that no new jet component was associated with the flare of J0809+5341, as, e.g., found for the blazar Mrk 421 by \citet{PE05}. This would suggest that the jet rapidly loses its kinetic energy and does not reach the region that can be imaged with the resolution offered by VLBI. \subsection{The brightness temperature and the implications for the Doppler-boosting factor} Based on the VLBI-measured flux density and source size presented in Sect.~\ref{size}, we calculated the apparent brightness temperature of J0809+5341 using the following equation \citep{K&O88}: \begin{equation} T_{\rm b} = 1.22 \times 10^{12} \frac{S_{\rm core}}{\nu^2 \theta^2} (1+z) , \end{equation} where $T_{\rm b}$ is the brightness temperature in Kelvin, $S_{\rm core}$ [Jy] is the flux density of the ``core'' at the observing frequency $\nu$ [GHz], $\theta$ [mas] is the FWHM size of the best-fit circular Gaussian model. The redshift is $z= 2.133$ \citep{Healey08}. The calculated brightness temperatures for the different VLBI experiments are listed in Table~\ref{tab:mf}. The brightness temperatures are in the range of $(0.2 - 5.3) \times 10^{11}$\,K. These values are typical for most other radio-loud quasars observed with VLBI at around $z = 3$ \citep{Gurvits92,Gurvits94,Frey97,Par99}. The $T_{\rm b}$ values at 43~GHz appear consistently smaller than those measured at lower frequencies (Table~\ref{tab:mf}). This phenomenon has also been found in previous high-frequency VLBI surveys \citep{Lee08}. The difference derived from the statistical investigation of large samples is not simply due to source variability or other observing effects. A possible reason might be related to non-zero gradients in the physical conditions in the jet flow, and high-frequency (43- and 86-GHz) VLBI observations probe the optically thin region where $T_{\rm b}$ is intrinsically lower \citep{Lee08}. On the other hand, as we pointed out in Sect. 3.1, the core is not completely resolved, and in our case the fitted component size represents an upper limit at the highest frequencies. This means that the calculated $T_{\rm b}$ values at 43~GHz are in fact lower limits. Therefore we cannot independently confirm the decrease of $T_{\rm b}$ with frequency for J0809+5341. The brightness temperature of blazars is amplified by the Doppler boosting effect as the approaching jets are oriented close to the line of sight. Usually, the equipartition brightness temperature $T_{\rm b,eq} \simeq 5 \times 10^{10}$\,K \citep{Readhead94} is considered to be a reasonable estimate of the intrinsic value $T_{\rm b,int}$. The Doppler boosting factor is thus derived from the observed brightness temperature as $\delta = T_{\rm b}/T_{\rm b,eq}$. The estimated Doppler factors (lower limits in cases where the $T_{\rm b}$ values are lower limits as well) for J0809+5341 listed in Table~\ref{tab:mf} range from at least 0.4 to 10.6. The observations of $\delta<1$ at some epochs might indicate a non-stationary flow of plasma resulting in both deviations from equipartition as well as projection effects of a curved plasma flow trajectory. However we note that the $\delta$ values somewhat below unity in Table 2 are all estimated at 43 GHz and, as discussed above, are lower limits because the source is unresolved at this frequency. Therefore the lower values are not inconsistent with the presence of Doppler boosting in the jet. \subsection{Comparison to jet parameters derived from high-energy observations} The spectral energy distribution (SED) of the source during the flare was fitted by \citet{Paliya15} with a synchrotron self-Compton model, confirming that J0809+5341 is a powerful blazar. \citet{Paliya15} note however that the high-energy properties of J0809+5341 are reminiscent of low-redshift blazars rather than high-redshift ones. Its optical spectrum is dominated by synchrotron emission from the jet rather than an extremely luminous accretion disk; its $\gamma$-ray spectrum is flat rather than steep; and, it hosts a relatively low-mass black hole ($10^{8.4} M_{\odot}$ ) \citep[cf.][]{Ghisellini11,Ghisellini13}. Our VLBI result reveals a relativistic jet with a moderate Doppler boosting factor, consistent with typical blazar radio properties in general. From the SED, \citet{Paliya15} estimate a bulk Lorentz factor of $\Gamma=20$ in the jet, and suggest that the jet becomes radiatively efficient during the flare. Assuming the jet parameters obtained from SED fitting by \citet{Paliya15}, we independently estimate the Doppler factor $\delta$, following, e.g., \citet{Urry95}: \begin{equation} \delta=[\Gamma (1 - \beta \cos \vartheta)]^{-1}, \end{equation} where the bulk velocity measured in the units of the speed of light $c$ is \begin{equation} \beta=(1 - \Gamma^{-2})^{\frac{1}{2}}. \end{equation} Substituting $\Gamma=20$ and the jet viewing angle $\vartheta=3.0\degree$ \citep{Paliya15}, we get $\delta=19.1$. It is higher compared to the values we derived from VLBI data (Table~\ref{tab:mf}). A possible reason is that we overestimate the intrinsic brightness temperature $T_{\rm b,int}$ by a factor of $\sim$2 by adopting the equipartition value $T_{\rm b,int}$ \citep[cf.][]{Homan06}, and thus underestimate the Doppler factor by the same factor. In the relativistic beaming model applied to the parameters of J0809+5341, the observed transverse speed of a radio-emitting blob in the jet, expressed in the units of $c$ is \begin{equation} \beta_{\rm app}=\frac{\beta \sin \vartheta}{1 - \beta \cos \vartheta} = 19.95. \end{equation} Assuming the jet model for J0809+5341 proposed by \citet{Paliya15}, using $\delta=19.1$ for the Dopler factor, we can estimate the expected apparent proper motion $\mu$ of a putative newly-ejected superluminal jet component possibly associated with the optical flare (and the coincident radio and high-energy emission peak) in 2014 April, following \citet{Bach05}: \begin{equation} \mu=\beta_{\rm app} c (1+z) D_{\rm L}^{-1}. \end{equation} Here $D_{\rm L}=16809.4$~Mpc \citep{Wright06}, and thus $\mu=0.23$~mas~yr$^{-1}$. This slow apparent proper motion is consistent with our results, in particular with the fact that we did not detect any sign of a new jet component in our follow-up VLBI observations within 1.1~yr after the flare, with angular resolutions $\gtrsim 0.6$~mas (see Table~\ref{tab:obs}). If there was an emerging blob in the jet, then it was still blended with the ``core''. Another possibility is that the flare did not generate a jet component. Follow-up VLBI imaging over a sufficiently long time interval may eventually reveal a jet ejection, unless the blob is expanding and fading too rapidly to be detected several years after the flare. \section{Summary} \label{sect:sum} We presented 5-GHz EVN and 22/43-GHz KaVA imaging results of J0809+5341 observed 7 months to 1.1~yr after the detection of its largest optical flare in 2014 April. Our high-resolution radio images (Figs.~\ref{fig:evn} and \ref{fig:KaVA}) reveal a compact unresolved core with the flux density of $\sim$160~mJy. Frequent single-dish monitoring observations at 15~GHz with the OVRO 40-m radio telescope (Fig.~\ref{fig:lc}) in the period between 2008 and 2016 showed that source flux density was changing within about a factor of two compared to its quiescent level. Brightness temperature and Doppler boosting factor estimated for J0809+5341 from the VLBI data are consistent with the presence of a relativistically beamed blazar jet. This conclusion, and the blazar identification of J0809+5341 is reinforced by recent X-ray and $\gamma$-ray data \citep{Paliya15} which also provides evidence for relativistic jet beaming. If there was any jet ejection associated with the major flare, the estimated slow apparent proper motion ($\mu=0.23$~mas~yr$^{-1}$) of the blob explains why no significant structural change of the compact radio source could be detected within only 1.1~yr after the event. \begin{ack} This work was supported by the SKA pre-construction funding from the China Ministry of Science and Technology under grant No. 2013CB837900. The research leading to these results has received funding from the European Commission Seventh Framework Programme (FP/2007-2013) under grant agreement No. 283393 (RadioNet3). Funding was received from the Hungarian National Research, Development and Innovation Office (OTKA NN110333), and the China--Hungary Collaboration and Exchange Programme by the International Cooperation Bureau of the Chinese Academy of Sciences. We thank the referee for the constructive comments. This work is based [in part] on observations made with the KaVA, which is operated by the the Korea Astronomy and Space Science Institute and the National Astronomical Observatory of Japan. We are grateful to all staff members and students at the KVN and VERA who helped to operate the array and to correlate the data. We are grateful to the chairman of the EVN Program Committee, Tom Muxlow, for accepting our short e-EVN proposal. The EVN is a joint facility of independent European, African, Asian, and North American radio astronomy institutes. Scientific results from data presented in this publication are derived from the following EVN project code: RSC02. We are grateful to the OVRO group for making their total flux density monitoring data available and Talvikki Hovatta for providing the light curve data. The research has made use of the Astrogeo Center database of brightness distributions, correlated flux densities, and images of compact radio sources produced with VLBI. \end{ack}
\section{Introduction } M-estimation is arguably the most popular approach to high-dimensional estimation. Given data-points $\{{\boldsymbol z}_1,{\boldsymbol z}_2, \dots,{\boldsymbol z}_n\}$, ${\boldsymbol z}_i\in {\mathbb R}^d$, we estimate a parameter vector ${\boldsymbol \theta}\in{\mathbb R}^p$ via% \begin{align} \hat{\boldsymbol \theta}_n & = \arg\min_{{\boldsymbol \theta}\in \Theta_{n,p}}\widehat{R}_n({\boldsymbol \theta}) \, ,\label{eq:GeneralERM}\\ \widehat{R}_n({\boldsymbol \theta}) &\equiv \frac{1}{n}\sum_{i=1}^n\ell({\boldsymbol \theta};{\boldsymbol z}_i)\, . \label{eq:Risk} \end{align} Here $\ell:{\mathbb R}^p\times{\mathbb R}^d\to{\mathbb R}$ is a loss function, and $\Theta_{n,p}$ is a constraint set. Prominent examples of this general framework include maximum likelihood (ML) estimation \cite{fisher1922mathematical} and empirical risk minimization \cite{vapnik1998statistical}. Once the objective (\ref{eq:GeneralERM}) is formed, it remains to define a computationally efficient scheme to approximate it. Gradient descent is the most frequently applied idea. Assuming --for the moment-- $\Theta_{n,p} = {\mathbb R}^p$, this takes the form \begin{align} \hat{\boldsymbol \theta}_n(k+1) = \hat{\boldsymbol \theta}_n(k) - h_k\,\nabla \widehat{R}_n(\hat{\boldsymbol \theta}_n(k))\, . \label{eq:GradientDescent} \end{align} While a large number of variants and refinements have been developed over the years (projected gradient, accelerated gradient \cite{nesterov2013introductory}, stochastic gradient \cite{robbins1951stochastic}, distributed gradient \cite{tsitsiklis1984distributed}, and so on), these share many of the strengths and weaknesses of the elementary iteration (\ref{eq:GradientDescent}). If gradient descent is adopted, the only freedom is in the choice of the loss function $\ell(\,\cdot\,;\, \cdot\,)$. Convexity has been a major guiding principle in this respect. If the function $\ell(\,\cdot\,;{\boldsymbol z}):{\mathbb R}^p\to{\mathbb R}$ is convex, then the empirical risk $\widehat{R}_n(\,\cdot\,)$ is convex as well and hence gradient descent is globally convergent to an M-estimator (the latter is unique under strict convexity). Also, strong convexity of $\widehat{R}_n(\,\cdot\,)$ can be used to prove optimal statistical guarantees for the M-estimator $\hat{\boldsymbol \theta}_n$. This line of thought can be traced back as far as Fisher's argument for the asymptotic efficiency of maximum likelihood estimators \cite{fisher1922mathematical,fisher1925theory}, and originated many beautiful contributions. In recent years, a flourishing line of research addresses the very high-dimensional regime $p\gg n$, by leveraging on suitable restricted strong convexity assumptions \cite{candes2005decoding,candes2007dantzig,bickel2009simultaneous,negahban2012unified}. Despite these successes, many problems of practical interest call for non-convex loss functions. Let us briefly mention a few examples of non-convex M-estimators that are often preferred by practitioners to their convex counterparts. We will revisit these examples in Section \ref{sec:Applications}. In binary linear classification we are given $n$ pairs ${\boldsymbol z}_1=(y_1,{\boldsymbol x}_1),\dots, {\boldsymbol z}_n=(y_n,{\boldsymbol x}_n)$ with $y_i\in \{0,1\}$, ${\boldsymbol x}_i\in{\mathbb R}^d$, and would like to learn a model of the form ${\mathbb P}(Y_i=1|{\boldsymbol X}_i={\boldsymbol x}) = \sigma(\<{\boldsymbol \theta}_0,{\boldsymbol x}\>)$ with ${\boldsymbol \theta}_0\in{\mathbb R}^d$ a parameter vector and $\sigma:{\mathbb R}\to [0,1]$ a threshold function. The non-linear square loss $\ell({\boldsymbol \theta};y,{\boldsymbol x}) = (y-\sigma(\<{\boldsymbol \theta},{\boldsymbol x}\>))^2$ is commonly used in practice \begin{equation}\label{eqn:erm} \widehat{R}_n({\boldsymbol \theta})\equiv \frac{1}{n}\sum_{i=1}^{n} \Big(y_i - \sigma(\<{\boldsymbol \theta},{\boldsymbol x}_i\>)\Big)^2 \, . \end{equation} Several empirical studies \cite{chapelle2009tighter,wu2012robust,nguyen2013algorithms} demonstrate superior robustness and classification accuracy of non-convex losses in contrast to convex losses (e.g. hinge or logistic loss). The same loss function is commonly used used in neural-network models \cite{lecun2015deep}. A similar scenario arises in robust regression. In this case, we are given $n$ pairs ${\boldsymbol z}_1=(y_1,{\boldsymbol x}_1)$,\dots ,${\boldsymbol z}_n=(y_n,{\boldsymbol x}_n)$ with $y_i\in {\mathbb R}$, ${\boldsymbol x}_i\in{\mathbb R}^d$, and we assume the linear model $y_i = \<{\boldsymbol \theta}_0,{\boldsymbol x}_i\> + \varepsilon_i$, where the noise terms $\varepsilon_i$ are i.i.d. with mean zero. Since Huber's seminal work \cite{huber1973robust}, M-estimators are the method of choice for this problem: \begin{equation}\label{eqn:erm-robust} \widehat{R}_n({\boldsymbol \theta})\equiv \frac{1}{n}\sum_{i=1}^{n} \rho\big(y_i - \<{\boldsymbol \theta},{\boldsymbol x}_i\>\big) \, . \end{equation} Robustness naturally suggests to investigate the use of a non-convex function $\rho:{\mathbb R}\to{\mathbb R}$, either bounded or increasing slowly at infinity. Finally, missing data problems famously lead to non-convex optimization formulations. Consider for instance a mixture-of-Gaussians problems in which we are given data points ${\boldsymbol z}_1,\dots,{\boldsymbol z}_n\in{\mathbb R}^d$, ${\boldsymbol z}_i \sim_{iid} \sum_{a=1}^kp_a{\sf N}({\boldsymbol \theta}_a,{\rm I}_{d\times d})$ (for the sake of simplicity we assume identity covariance and known proportions). The maximum-likelihood problem requires to minimize\footnote{Here and below $\phi_d({\boldsymbol x}) \equiv \exp\{-\|{\boldsymbol x}\|_2^2/2\}/(2\pi)^{d/2}$ denotes the $d$-dimensional standard Gaussian density.} \begin{equation}\label{eqn:erm-mixture-0} \widehat{R}_n({\boldsymbol \theta})\equiv -\frac{1}{n}\sum_{i=1}^{n} \log\left( \sum_{a=1}^k p_a\; \phi_d\big({\boldsymbol z}_i-{\boldsymbol \theta}_a\big)\right) \, , \end{equation} with respect to the cluster centers ${\boldsymbol \theta}=({\boldsymbol \theta}_1,\dots,{\boldsymbol \theta}_k)\in{\mathbb R}^{d\times k}$. Other examples include low-rank matrix completion \cite{keshavan2009matrix}, phase retrieval \cite{sun2016geometric}, tensor estimation problems \cite{richard2014statistical}, and so on. M-estimation with non-convex loss functions $\ell(\,\cdot\,;{\boldsymbol z}):{\mathbb R}^p\to{\mathbb R}$ is far less understood than in the convex case. Empirical process theory guarantees uniform convergence of the sample risk $\widehat{R}_n(\,\cdot\,)$ to the population risk $R({\boldsymbol \theta}) \equiv {\mathbb E}[\widehat{R}_n({\boldsymbol \theta})]$ \cite{boucheron2013concentration}. However, this does not provide a computationally practical scheme, since gradient descent can get stuck in stationary points that are not global minimizers. In this paper, we present several general results on non-convex M-estimation and apply them to develop new analysis in each of the three problems mentioned above. We next overview our main results and the paper's organization, referring to Section \ref{sec:Related} for a discussion of related work. \begin{description} \item[Uniform convergence of gradient and Hessian.] We prove that, under technical conditions on the loss function $\ell(\,\cdot\,;\,\cdot\,)$, $\sup_{{\boldsymbol \theta}}\|\nabla\widehat{R}_n({\boldsymbol \theta})-\nabla R({\boldsymbol \theta})\|_2\lesssim \sqrt{p(\log n)/n}$ and $\sup_{{\boldsymbol \theta}}\|\nabla^2\widehat{R}_n({\boldsymbol \theta})-\nabla^2 R({\boldsymbol \theta})\|_{\op} \lesssim \sqrt{p(\log n)/n}$ (we use $\lesssim$ to hide constant factors). We refer to Section \ref{sec:HighDim} for formal statements. These results complement the classical analysis that implies uniform convergence of the risk itself, but allow us to control the behavior of stationary points. Note that they guarantee uniform convergence of the gradient and Hessian provided $n,p\to\infty$ with $p(\log p)/n\to 0$. Apart from logarithmic factors, this is the optimal condition. (In this paper we will refer to the asymptotics $n,p\to\infty$ with $n$ roughly of the same order as $p$ as \emph{high-dimensional regime}\footnote{The specific asymptotics $n,p\to\infty$ with $n/p$ converging to a constant is also known as `Kolmogorov asymptotics' \cite{serdobolskii2013multivariate}.}, to contrast it with the low-dimensional analysis for $n\gg p$. We will refer to the asymptotics $n\ll p$ under sparsity assumptions as \emph{very high-dimensional regime}.) \item[Topology of the empirical risk.] As an immediate consequence of the previous result, the structure of the empirical risk function ${\boldsymbol \theta}\mapsto \widehat{R}_n({\boldsymbol \theta})$ is --in many cases-- surprisingly simple. Recall that a Morse function is a twice differentiable function whose stationary points are non-degenerate (i.e. have an invertible Hessian). In particular, stationary points are isolated, and have a well-defined index. Assume that the population risk $R({\boldsymbol \theta})$ is \emph{strongly Morse} (i.e., at any stationary point ${\boldsymbol \theta}$, all the eigenvalues of the Hessian are bounded away from zero $|\lambda_i(\nabla^2R({\boldsymbol \theta}))|\ge \delta$). Then, for $n\gtrsim p\log p$, the stationary points of the empirical risk $\widehat{R}_n({\boldsymbol \theta})$ are in one-to-one correspondence with those of the population risk and have the same index (minima correspond to minima, saddles to saddles, and so on). Weaker conditions ensure this correspondence for local minima alone. \item[Very high-dimensional regime.] We then extend the above picture to the case in which the number of parameters $p$ exceeds the number of samples $n$, under the assumption that the true parameter vector ${\boldsymbol \theta}_0$ is $s_0$-sparse. This setting is relevant to a large number of applications, ranging from genomics \cite{peng2010regularized} to signal processing \cite{donoho2006compressed}. In order to promote sparse estimates, we study the following $\ell_1$-regularized non-convex problem, cf. Section \ref{sec:VeryHighDim}: \begin{equation} \begin{aligned} \mbox{\rm minimize}&\phantom{AA}\widehat{R}_n({\boldsymbol \theta})+\lambda_n \Vert {\boldsymbol \theta}\Vert_1\, ,\\ \mbox{\rm subject to}&\phantom{AA} \|{\boldsymbol \theta}\|_2\le r\, . \end{aligned} \end{equation} We introduce a \emph{generalized gradient linearity} condition on the loss function $\ell(\,\cdot\,,\,\cdot\,)$ and prove that -- under this condition-- the above problem has a unique local minimum for $n\gtrsim s_0\log p$. Again this is a nearly optimal scaling since no consistent estimation is possible when $n\lesssim s_0$. \item[Applications.] Given a particular M-estimation problem with a suitable statistical model, we combine the above results with an analysis of the population risk $R({\boldsymbol \theta})$ to derive precise characterizations of the empirical risk. In Section \ref{sec:Applications} we demonstrate that this program can be carried out by studying the three problems outlined below: \begin{enumerate} \item \emph{Binary linear classification.} We prove that, for\footnote{Recall that, in this case, the number of parameters $p$ is equal to the ambient dimension $d$.} $n\gtrsim d\log d$, the empirical risk has a unique local minimum, that is also the global minimum. Further, gradient descent converges exponentially to this minimizer: $\|\hat{\boldsymbol \theta}_n (k)-\hat{\boldsymbol \theta}_n\|_2\le C\|\hat{\boldsymbol \theta}(0)-\hat{\boldsymbol \theta}_n\|_2\, (1- h/C)^k$, and enjoys nearly optimal estimation error guarantees: $\|\hat{\boldsymbol \theta}_n-{\boldsymbol \theta}_0\|_2\le C\sqrt{(d\log n)/n}$. If the true parameter ${\boldsymbol \theta}_0$ is $s_0$-sparse, for $n \gtrsim s_0 \log d$, the $\ell_1$-regularized empirical risk has a unique local minimum, that is also the global minimum. The minimizer enjoys nearly optimal estimation error guarantees: $\|\hat{\boldsymbol \theta}_n-{\boldsymbol \theta}_0\|_2\le C\sqrt{(s_0\log n)/n}$. \item \emph{Robust regression.} We establish similar results for the robust regression model, under technical assumptions on the loss function $\rho:{\mathbb R}\to {\mathbb R}$ and on the distribution of the noise $\varepsilon_i$. Namely, we prove that the empirical risk has a unique local minimum, that can be found efficiently via gradient descent, provided $n\gtrsim d\log d$. If the true parameter ${\boldsymbol \theta}_0$ is $s_0$-sparse, for $n \gtrsim s_0 \log d$, the $\ell_1$-regularized empirical risk has a unique local minimum. \item \emph{Mixture of Gaussians.} We consider the special case of two Gaussians with equal proportions, i.e. $k=2$ with $p_1=p_2=1/2$. We prove that, for $n\gtrsim d\log d$, the empirical risk has two global minima that are related by exchange of the two Gaussian components $(\hat{\boldsymbol \theta}_{1},\hat{\boldsymbol \theta}_2)$ and $(\hat{\boldsymbol \theta}_{2},\hat{\boldsymbol \theta}_1)$, connected via saddle points. The trust region algorithm converges to one of these two minima when initialized at random. Also the two minima are within nearly optimal statistical errors from the true centers. \end{enumerate} \end{description} \subsection{Notations} We use normal font for scalars (e.g. $a,b,c\dots$) and boldface for vectors (${\boldsymbol x},{\boldsymbol w},\dots$). We will typically reserve capital letters for random variables (and capital bold for random vectors). Given ${\boldsymbol u},{\boldsymbol v}\in{\mathbb R}^m$, their standard scalar product is denoted by $\<{\boldsymbol u},{\boldsymbol v}\> \equiv \sum_{i=1}^m u_iv_i$. The $\ell_p$ norm of a vector is --as usual-- indicated by $\|{\boldsymbol x}\|_p$. The $m\times m$ identity matrix is denoted by ${\rm I}_{m\times m}$. Given a matrix ${\boldsymbol M}\in{\mathbb R}^{m\times m}$, we denote by $\lambda_i({\boldsymbol M})$, $i\in \{1,\dots,m\}$ its eigenvalues in decreasing order, and by $\|{\boldsymbol M}\|_{\op} = \max\{\lambda_1({\boldsymbol M}),-\lambda_m({\boldsymbol M})\}$ its operator norm. Finally, we shall occasionally consider third order tensors ${\boldsymbol T}\in{\mathbb R}^{m\times m\times m}$. In this case the operator (or injective) norm is defined as $\|{\boldsymbol T}\|_{\op} = \max\{ \vert \<{\boldsymbol T},{\boldsymbol x}^{\otimes 3}\> \vert\; :\;\; \|{\boldsymbol x}\|_2=1\}$, where $\<{\boldsymbol T},{\boldsymbol x}^{\otimes 3}\>=\sum_{i,j,k} T_{ijk}x_ix_jx_k$. We let ${\sf B}_q^d({\boldsymbol a},\rho)\equiv\{{\boldsymbol x}\in{\mathbb R}^d:\; \|{\boldsymbol x}-{\boldsymbol a}\|_q\le \rho\}$ be the $\ell_q$ ball in ${\mathbb R}^d$ with center ${\boldsymbol a}$ and radius $\rho$. We will often omit the dimension superscript $d$ when clear from the context, the subscript $q$ when $q=2$, and the center ${\boldsymbol a}$ when ${\boldsymbol a} = {\boldsymbol 0}$. In particular ${\sf B}(\rho)$ is the euclidean ball of radius $\rho$. For any set $D \subset \R^d$, we let $\partial D$ be the boundary of the set. We will generally use upper case letters for random variables and lower case for deterministic values (unless the latter are matrices). \section{Related literature} \label{sec:Related} While developing a theory on non-convex M-estimators is an outstanding challenge, several important facts are by now well understood thanks to a stream of beautiful works. We will provide a necessarily incomplete summary in the next paragraphs. \vspace{0.25cm} \noindent\emph{Uniform convergence of the empirical risk.} Let $R({\boldsymbol \theta}) = {\mathbb E}\widehat{R}_n({\boldsymbol \theta})$ denote the population risk. Under mild conditions on the loss function $\ell$ and on the sample size, it is known that with high probability \begin{align} \sup_{{\boldsymbol \theta}\in\Theta_{n,p}}\big|\widehat{R}_n({\boldsymbol \theta})-R({\boldsymbol \theta})\big|\le \varepsilon_n\, ,\label{eq:StandardUniform} \end{align} for some small $\varepsilon_n\to 0$ \cite{van2000applications,boucheron2013concentration}. This immediately implies guarantees for the M-estimator $\hat{\boldsymbol \theta}$ in $\ell$-loss (or prediction error). Under additional conditions on the population risk $R({\boldsymbol \theta})$, bounds in estimation error can be derived as well. For general non-convex losses, uniform convergence results of the form (\ref{eq:StandardUniform}) do not preclude the existence of multiple local minima of the sample risk $\widehat{R}_n({\boldsymbol \theta})$. Hence, this theory does not provide --by itself-- computationally practical methods to compute $\hat{\boldsymbol \theta}$. \vspace{0.25cm} \noindent\emph{Algorithmic convergence to the `statistical neighborhood'.} In general, gradient descent and other local optimization procedures are expected to converge to local minima of the empirical risk $\widehat{R}_n({\boldsymbol \theta})$. In several cases, it is proved that every local minimizer $\hat{\boldsymbol \theta}^{\rm loc}$ is `statistically good'. More precisely, the estimation error (e.g. the $\ell_2$ error $\|\hat{\boldsymbol \theta}^{\rm loc}-{\boldsymbol \theta}_0\|_2$) is within a constant from the minimax rate for the problem at hand. Also, gradient descent converges to such a neighborhood of the true ${\boldsymbol \theta}_0$ within a small number of iterations. Results of this type have been proved, among others, for linear regression with noisy covariates \cite{loh2012high}, generalized linear models with non-convex regularizers \cite{loh2013regularized}, robust regression \cite{lozano2013minimum}, and sparse regression \cite{yang2015sparse}. While these results are very important, they are not completely satisfactory. For instance, one natural question is whether the statistical error might be improved by finding a better local minimum. If, for instance, the estimation error could be improved by a factor $2$ by finding a better local minimum, it would be worth in many applications to restart gradient descent at multiple initializations. Also, since convergence to a fixed point is not guaranteed, these approaches come without a clear stopping criterion. Finally these proofs make use of the restricted strong convexity (RSC) assumption introduced \cite{negahban2012unified,loh2013regularized}, but do not provide any general tool to establish this condition. In contrast, we prove uniform convergence results that can be used to ensure a condition similar to RSC. To the best of our knowledge, the only proof of unique local minimum of the regularized empirical risk is obtained in a recent paper by Po-Ling Loh \cite{loh2015statistical}. This works assumes the linear regression model $y_i = \<{\boldsymbol \theta},{\boldsymbol x}_i\>+\varepsilon_i$, and establishes uniqueness for penalized regression with a certain class of bounded regularizers. This result is comparable to our Theorem \ref{thm:SparseRobust}, see Section \ref{sec:Robust_VHD}, which uses $\ell_1$ regularization instead. Note that, in \cite{loh2015statistical}, the sample size is required to scale quadratically in the sparsity: $n\gtrsim s_0^2$. Our proof technique is substantially different from the one of \cite{loh2015statistical}, and we only require $n\gtrsim s_0\log d$. \vspace{0.25cm} \noindent\emph{Hybrid optimization methods.} It is often difficult to ensure global convergence to a minimizer of the sample risk $\widehat{R}_n(\,\cdot\,)$ or even to a statistical neighborhood of the true parameters. Several papers develop two-stage procedures to overcome this problem. The first stage constructs a smart initialization $\hat{\boldsymbol \theta}(0)$ that is within a certain large neighborhood of the true parameters. Spectral methods are often used to implement this step. In the second stage, the estimate is refined by gradient descent (or another local procedure) initialized at $\hat{\boldsymbol \theta}(0)$. This general approach was studied in a number of problems including matrix completion \cite{keshavan2009matrix}, phase retrieval \cite{chen2015solving}, tensor decomposition \cite{anandkumar2015learning}. In some cases, the local optimization stage is only proved to converge to a statistical neighborhood of ${\boldsymbol \theta}_0$, and hence this style of analysis shares the shortcomings emphasized in the previous paragraph. In others, it is proven to converge to a single point. Further, in practice, the smart initialization is often not needed, and descent algorithms converge from random initialization as well. Finally, as mentioned above, these analyses are typically carried on in a case-by-case manner. \section{Uniform convergence results} In this section we develop our key tools, that are uniform convergence results on the gradient and Hessian of the empirical risk. We also establish some of the direct implications of our results. Throughout, the data consists of the i.i.d. random variables $\{{\boldsymbol Z}_1,\dots,{\boldsymbol Z}_n\}$. We will use $\{{\boldsymbol z}_1,\dots,{\boldsymbol z}_n\}$ if we want to refer to the corresponding realization. The empirical risk is defines by Eq.~(\ref{eq:Risk}) and the corresponding population risk is $R({\boldsymbol \theta}) = {\mathbb E}\widehat{R}_n({\boldsymbol \theta}) = {\mathbb E}\ell({\boldsymbol \theta};{\boldsymbol Z})$. The true parameter vector ${\boldsymbol \theta}_0$ satisfies the condition $\nabla R({\boldsymbol \theta}_0) = {\mathbb E}[ \nabla \ell({\boldsymbol \theta}_0; {\boldsymbol Z})] = {\boldsymbol 0}$. We consider two regimes, a \emph{high dimensional regime} in which the number of parameters $p$ is allowed to diverge roughly in proportion with the number of samples $n$, and a \emph{very high-dimensional regime} in which the true parameters' vector ${\boldsymbol \theta}_0$ is sparse and the number of parameters $p$ can be much larger than $n$. We treat these two cases separately because the theory is simpler and more general in the first regime. \subsection{High-dimensional regime} \label{sec:HighDim} In order to avoid technical complications, we will limit optimization to a bounded set, i.e. we will let $\Theta_{n,p} ={\sf B}^p(r)\equiv \{{\boldsymbol \theta} \in{\mathbb R}^p,\; \|{\boldsymbol \theta}\|_2\le r\}$ to be the Euclidean ball in $p$ dimensions. We begin by stating our assumptions. Assumptions \ref{ass:GradientSub} and \ref{ass:Hessianub} below quantify the amount of statistical noise in the gradient and Hessian of the loss function. \begin{assumption}[Gradient statistical noise]\label{ass:GradientSub} The gradient of the loss is $\tau^2$-sub-Gaussian. Namely, for any ${\boldsymbol \lambda}\in{\mathbb R}^p$, and ${\boldsymbol \theta}\in{\sf B}^p(r)$ \begin{align} {\mathbb E}\Big\{\exp\Big(\<{\boldsymbol \lambda},\nabla\ell({\boldsymbol \theta};{\boldsymbol Z})-{\mathbb E} [\nabla\ell({\boldsymbol \theta};{\boldsymbol Z})]\>\Big)\Big\}\le \exp\left(\frac{\tau^2\|{\boldsymbol \lambda}\|_2^2}{2}\right)\, . \end{align} \end{assumption} \begin{assumption}[Hessian statistical noise]\label{ass:Hessianub} The Hessian of the loss, evaluated on a unit vector, is $\tau^2$-sub-exponential. Namely, for any ${\boldsymbol \lambda}\in{\sf B}^p(1)$, and ${\boldsymbol \theta}\in{\sf B}^p(r)$ \begin{align} &{\mathcal Z}_{{\boldsymbol \lambda},{\boldsymbol \theta}}\equiv \<{\boldsymbol \lambda},\nabla^2\ell({\boldsymbol \theta};{\boldsymbol Z}) {\boldsymbol \lambda}\>\, ,\\ &{\mathbb E}\left\{\exp\Big(\frac{1}{\tau^2}\big\vert{\mathcal Z}_{{\boldsymbol \lambda},{\boldsymbol \theta}}-{\mathbb E} {\mathcal Z}_{{\boldsymbol \lambda},{\boldsymbol \theta}}\big\vert\Big)\right\}\le 2\, . \end{align} \end{assumption} Our third assumption requires the Hessian of the loss to be a Lipschitz function of the vector of parameters ${\boldsymbol \theta}$. \begin{assumption}[Hessian regularity]\label{ass:BoundedHessian} The Hessian of the population risk is bounded at one point. Namely, there exists $\theta_*\in{\sf B}^p(r)$ and $H$ such that $\|\nabla^2 R({\boldsymbol \theta}_*)\|_{\op}\le H$. Further, the Hessian of the loss function is Lipschitz continuous with integrable Lipschitz constant. Namely, there exists $J_*$ (potentially diverging polynomially in $p$) such that \begin{align} J({\boldsymbol z}) \equiv& \sup_{{\boldsymbol \theta}_1\neq{\boldsymbol \theta}_2\in{\sf B}^p(r)} \frac{\big\|\nabla^2\ell({\boldsymbol \theta}_1;{\boldsymbol z}) -\nabla^2\ell({\boldsymbol \theta}_2;{\boldsymbol z}) \big\|_{\op}}{\|{\boldsymbol \theta}_1-{\boldsymbol \theta}_2\|_2} \, ,\\ &{\mathbb E}\big\{J({\boldsymbol Z})\big\} \le J_*\, . \end{align} Further, there exists a constant $c_h$ such that $H \leq \tau^2 p^{c_h}$, $J_*\leq \tau^3 p^{c_h}$. \end{assumption} \begin{remark} Note that $\nabla \ell$ has the same units\footnote{By this we mean that the two quantities behave in the same way under a rescaling of the parameters ${\boldsymbol \theta}$.} as $1/r$, and $\nabla^2 \ell$ has the same units as $1/r^2$. Thus, $\tau$ has the same units as $1/r$, $H$ has the same units as $\tau^2$, and $J_*$ has the same units as $\tau^3$. This is the reason why we bound $H$ and $J_*$ in the form as in Assumption \ref{ass:BoundedHessian}. In this way, $(r \cdot \tau)$ and $c_h$ are dimensionless. \end{remark} Discrete loss functions (e.g. the $0-1$ loss) are common within the statistical learning literature, but do not satisfy the above assumption because the gradient and Hessian are not defined everywhere. Note however that these can be well approximated by differentiable losses, with little --if any-- practical difference. We are now in position to state our uniform convergence result. \begin{theorem} \label{thm:uniformconvergence1} Under Assumptions \ref{ass:GradientSub}, \ref{ass:Hessianub}, and \ref{ass:BoundedHessian} stated above, there exists a universal constant $C_0$, such that letting $C = C_0\cdot (c_h\vee\log(r\tau/\delta)\vee 1)$, the following hold: \begin{enumerate} \item[$(a)$] The sample gradient converges uniformly to the population gradient in Euclidean norm. Namely, if $n\ge C p\log p$, we have \begin{align} \P \left(\sup_{{\boldsymbol \theta}\in{\sf B}^p(r)}\big\|\nabla \widehat{R}_n({\boldsymbol \theta})-\nabla R({\boldsymbol \theta})\big\|_2\le \tau \sqrt{\frac{C p\log n}{n}} \right) \geq 1 - \delta\, . \end{align} \item[$(b)$] The sample Hessian converges uniformly to the population Hessian in operator norm. Namely, if $n\ge C p\log p$, we have \begin{align} \P \left( \sup_{{\boldsymbol \theta}\in{\sf B}^p(r)}\big\|\nabla^2 \widehat{R}_n({\boldsymbol \theta})-\nabla^2R({\boldsymbol \theta})\big\|_{\op}\le \tau^2 \sqrt{\frac{C p\log n}{n}} \right) \geq 1-\delta\, . \end{align} \end{enumerate} \end{theorem} The above theorem immediately implies that the structure of stationary points of the sample risk $\widehat{R}_n(\,\cdot\,)$ must reflect that of the population risk. In order to formalize this intuition, we introduce the notion of \emph{strongly Morse function}. Given a differentiable function $F:{\sf B}^d(r)\to{\mathbb R}$, we say that ${\boldsymbol x}$ in the interior of the ball ${\sf B}^d(r)$ is critical (or stationary) if $\nabla F({\boldsymbol x}) = 0$. Recall that a twice differentiable function $F:{\mathbb R}^d\to{\mathbb R}$ is Morse if all its critical points are non-degenerate, i.e. have an invertible Hessian. In other words $\nabla F ({\boldsymbol x})=0$ implies $\lambda_i(\nabla^2 F({\boldsymbol x}))\neq 0$ for all $i\in\{1,\dots, d\}$. Our next definition provides a quantitative version of this notion. \begin{definition} We say that a twice differentiable function $F:{\sf B}^d(r)\to{\mathbb R}$ is \emph{$(\varepsilon,\eta)$-strongly Morse} if $\|\nabla F({\boldsymbol x})\|_2>\varepsilon$ for $\|{\boldsymbol x}\|_2=r$ and, for any ${\boldsymbol x}\in{\mathbb R}^d$, $\|{\boldsymbol x}\|_2<r$, the following holds \begin{align} \big\|\nabla F({\boldsymbol x})\big\|_2\le \varepsilon \;\;\; \Rightarrow\;\;\; \min_{i\in [d]}\big|\lambda_i\big(\nabla^2 F({\boldsymbol x})\big)\big|\ge \eta\, . \end{align} \end{definition} Note that, analogously to a Morse function on a compact domain, a strongly Morse function can have only a finite number of critical points which are in the interior of ${\sf B}^d(r)$. Also recall that the index of a non-degenerate critical point ${\boldsymbol x}$ is the number of negative eigenvalues of the Hessian at ${\boldsymbol x}$ (assuming $F$ to be twice differentiable). \begin{theorem}\label{thm:morse} Under Assumptions \ref{ass:GradientSub}, \ref{ass:Hessianub}, and \ref{ass:BoundedHessian}, let $n\ge 4 C p\log n\cdot ((\tau^2/\varepsilon^2) \vee (\tau^4 /\eta^2))$, where $C=C(\tau^2,\delta,r,c_h)$ is as in the statement of Theorem \ref{thm:uniformconvergence1}. Then the following happens with probability at least $1-\delta$. If the population risk $R:{\boldsymbol \theta}\to R({\boldsymbol \theta})$ is $(\varepsilon, \eta)$-strongly Morse in ${\sf B}^p(r)$, then the sample risk $\widehat{R}_n:{\boldsymbol \theta} \mapsto \widehat{R}_n({\boldsymbol \theta})$ is $(\varepsilon/2, \eta/2)$-strongly Morse in ${\sf B}^p(r)$. Further there is a one-to-one correspondence between the set of critical points of $R(\,\cdot\,)$, ${\mathcal C} = \{{\boldsymbol \theta}^{(1)},\dots,{\boldsymbol \theta}^{(k)}\}$ and the set of critical points of $\widehat{R}_n(\,\cdot\,)$, ${\mathcal C}_n= \{\hat{\boldsymbol \theta}_n^{(1)},\dots,\hat{\boldsymbol \theta}_n^{(k)}\}$ such that (letting $\hat{\boldsymbol \theta}_n^{(j)}$ be the point in correspondence with ${\boldsymbol \theta}^{(j)}$, for any $j\in [k]$) \begin{enumerate} \item[$(a)$] The index of $\hat{\boldsymbol \theta}_n^{(j)}$ coincides with the index of ${\boldsymbol \theta}^{(j)}$. (In particular, local minima correspond to local minima, and saddles to saddles.) \item[$(b)$] If we further let $L = \sup_{{\boldsymbol \theta} \in {\sf B}^p(r)} \Vert \nabla^3 R({\boldsymbol \theta}) \Vert_{\op}$, and assume $n \geq 4 C p \log n /\eta_*^2$ where $\eta_*^2=(\varepsilon^2/\tau^2) \wedge (\eta^2/\tau^4)\wedge (\eta^4/(L^2\tau^2))$, we have, for each $j\in\{1,\dots,k\}$, \begin{align} \|\hat{\boldsymbol \theta}_n^{(j)} - {\boldsymbol \theta}^{(j)}\|_2\le \frac{2 \tau}{\eta}\sqrt{\frac{C p\log n}{n}}\, . \end{align} \end{enumerate} \end{theorem} The strong Morse assumption imposes conditions on all the eigenvalues of the Hessian $\nabla^2 R({\boldsymbol \theta})$ at near-critical points, and implies a detailed characterization of the empirical risk. If only weaker properties can be established for the population risk, Theorem \ref{thm:uniformconvergence1} can nevertheless be very useful. For instance, in Section \ref{sec:GaussianMixture} we consider an example in which near critical points have a Hessian whose smallest eigenvalue is either positive or negative, but in both cases bounded away from $0$. This weaker condition is sufficient to obtain a characterization of the local minima of the empirical risk. \subsection{Very high-dimensional regime} \label{sec:VeryHighDim} In the very-high dimensional regime $n\ll p$, we will solve the $\ell_1$-penalized risk minimization problem \begin{equation} \begin{aligned}\label{eq:RiskConstrained} \mbox{\rm minimize}\;\;\; & \widehat{R}_n({\boldsymbol \theta}) + \lambda_n \Vert {\boldsymbol \theta} \Vert_1 \, ,\\ \mbox{\rm subject to}\;\;\; & \|{\boldsymbol \theta}\|_2\le r\, . \end{aligned} \end{equation} We need some additional assumptions. It is fairly straightforward to check them in specific cases, see e.g. Section \ref{sec:Class}. The first assumption is mainly technical, and not overly restrictive: it requires the loss function to have almost surely bounded gradient, in a suitable sense. \begin{assumption}[Gradient bounds]\label{ass:BoundedGradient} There exists a constant $T_*$ such that ${\boldsymbol Z}$-almost surely, for all ${\boldsymbol \theta} \in {\sf B}^p_2(r)$, \begin{align} \big\| \nabla \ell({\boldsymbol \theta}; {\boldsymbol Z}) \big\|_\infty &\le T_*\,. \end{align} \end{assumption} Our key structural assumption is stated next. It requires the gradient of the loss function to depend on the parameters only through a linear function of ${\boldsymbol \theta}$, possibly dependent on the feature vector ${\boldsymbol z}$. Note that ${\boldsymbol \theta}_0$ is regarded here as fixed, and hence omitted from the arguments. \begin{assumption}[Generalized gradient linearity]\label{ass:GGL} There exist functions $g:{\mathbb R}\times{\mathbb R}^d\to{\mathbb R}$, $(t,{\boldsymbol z})\mapsto g(t; {\boldsymbol z})$ and ${\boldsymbol \psi}:{\mathbb R}^d\to{\mathbb R}^p$, ${\boldsymbol z}\mapsto {\boldsymbol \psi}_{2}({\boldsymbol z})$, such that \begin{align} \<\nabla \ell({\boldsymbol \theta}; {\boldsymbol z}), {\boldsymbol \theta} - {\boldsymbol \theta}_0 \> = g(\langle {\boldsymbol \theta} - {\boldsymbol \theta}_0, {\boldsymbol \psi}({\boldsymbol z}) \rangle; {\boldsymbol z})\, . \end{align} In addition, $g(t; {\boldsymbol z})$ is $L_*$-Lipschitz to its first argument, $g(0; {\boldsymbol z}) = 0$, and ${\boldsymbol \psi}({\boldsymbol Z})$ is mean-zero and $\tau^2$-sub-Gaussian. \end{assumption} As an example, in the case of binary linear classification and robust regression, the data is given as a pair ${\boldsymbol z} = (y, {\boldsymbol x})$, and there exists a function $f(t;{\boldsymbol z})$ such that $\nabla \ell ({\boldsymbol \theta}; {\boldsymbol z}) = f(\langle {\boldsymbol \theta} - {\boldsymbol \theta}_0, {\boldsymbol x} \rangle; {\boldsymbol z}){\boldsymbol x}$. Assumption \ref{ass:GGL} is satisfied with $g(t;{\boldsymbol z}) = t\, f(t;{\boldsymbol z})$ provided the latter is Lipschitz as a function of $t\in{\mathbb R}$. \begin{theorem} \label{thm:uniformconvergence2} Under Assumptions \ref{ass:Hessianub}, \ref{ass:BoundedHessian}, \ref{ass:BoundedGradient} and \ref{ass:GGL} stated above, there exists a constant $C_1$ that depends on $(r, \tau^2, c_h, \delta)$, and a universal constant $C_0$ such that letting $C_2 = C_0 \cdot (c_h\vee\log(r\tau/\delta)\vee 1)$, the following hold: \begin{enumerate} \item[$(a)$] The sample directional gradient converges uniformly to the population directional gradient, along the direction $({\boldsymbol \theta}-{\boldsymbol \theta}_0)$. Namely, we have \begin{align} \P \left( \sup_{{\boldsymbol \theta}\in{\sf B}_2^p(r) \setminus \{ {\boldsymbol 0}\}} \frac{\big \vert \big\langle \nabla \widehat{R}_n({\boldsymbol \theta})-\nabla R({\boldsymbol \theta}), {\boldsymbol \theta} - {\boldsymbol \theta}_0 \big\rangle \big \vert}{\Vert {\boldsymbol \theta} - {\boldsymbol \theta}_0 \Vert_1 } \le (T_* + L_* \tau) \sqrt{ \frac{ C_1 \log (np)}{n}} \right) \geq 1-\delta\, . \end{align} \item[$(b)$] The sample restricted Hessian converges uniformly to the population restricted Hessian in the set ${\sf B}_2^p(r) \cap {\sf B}_0^p(s_0)$ for any $s_0 \leq p$. Namely, as $n \geq C_2 s_0 \log (np)$ we have \begin{align} \P \left( \sup_{{\boldsymbol \theta}\in{\sf B}_2^p(r) \cap {\sf B}_0^p(s_0), {\boldsymbol v} \in {\sf B}_2^p(1) \cap {\sf B}_0^p(s_0)} \left\vert \left\langle {\boldsymbol v}, \left(\nabla^2\widehat{R}_n({\boldsymbol \theta})-\nabla^2 R({\boldsymbol \theta})\right) {\boldsymbol v}\right \rangle \right\vert \le \tau^2 \sqrt{\frac{ C_2 s_0 \log (np)}{n}} \right) \geq 1 -\delta\, . \end{align} \end{enumerate} \end{theorem} \section{Applications} \label{sec:Applications} \subsection{Binary linear classification: High dimensional regime} \label{sec:Class} \begin{figure} \centering \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{poprisk_bc.eps} \caption{}\label{fig:poprisk_bc} \end{subfigure}\hspace{0.1cm} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{emprisk_bc.eps} \caption{}\label{fig:emprisk} \end{subfigure}\label{fig:emprisk_bc} \caption{Binary linear classification: $(a)$ Population risk for $d = 2$. $(b)$ A realization of the empirical risk for $d = 2$, and $n/d = 20$. }\label{fig:risk_bc} \end{figure} As mentioned in the introduction, in this case we are given $n$ pairs ${\boldsymbol z}_1=(y_1,{\boldsymbol x}_1), \dots, {\boldsymbol z}_n=(y_n,{\boldsymbol x}_n)$ with $y_i\in \{0,1\}$, ${\boldsymbol x}_i\in{\mathbb R}^d$, whereby ${\mathbb P}(Y_i=1|{\boldsymbol X}_i={\boldsymbol x}) = \sigma(\<{\boldsymbol \theta}_0,{\boldsymbol x}\>)$ (hence $p=d$ in this case). We estimate ${\boldsymbol \theta}_0$ by minimizing the non-linear square loss (\ref{eqn:erm}), which we copy here for the reader's convenience: \begin{equation} \begin{aligned}\label{eq:nonconvex1} \mbox{\rm minimize} \;\;\;\ &\widehat{R}_n({\boldsymbol \theta})\equiv \frac{1}{n}\sum_{i=1}^{n} \Big(y_i - \sigma(\<{\boldsymbol \theta},{\boldsymbol x}_i\>)\Big)^2\,, \\ \mbox{\rm subject to} \;\;\; &\|{\boldsymbol \theta}\|_2\le r\, . \end{aligned} \end{equation} This can be regarded as a smooth version of the $0-1$ loss. We collect below the technical assumptions on this model. \begin{assumption}[Binary linear classification]\label{ass:classification} \begin{enumerate} \item[$(a)$] The activation $z\mapsto \sigma(z)$ is three times differentiable with $\sigma'(z)>0$ for all $z$, and has bounded first, second and third derivatives. Namely, for some constant $L_{\sigma}>0$: \begin{equation} \max\Big\{ \|\sigma'\|_\infty, \|\sigma''\|_\infty , \|\sigma'''\|_\infty \Big\} \le L_{\sigma}\, . \label{ass:activation} \end{equation} \item[$(b)$] The feature vector ${\boldsymbol X}$ has zero mean and is $\tau^2$-sub-Gaussian, that is ${\mathbb E}[e^{\langle {\boldsymbol \lambda},{\boldsymbol X}\rangle}] \le e^{\frac{\tau^2\|{\boldsymbol \lambda}\|_2^2}{2}}$ for all ${\boldsymbol \lambda}\in\R^d$. \item[$(c)$] The feature vector ${\boldsymbol X}$ spans all directions in $\R^d$, that is, ${\mathbb E}[{\boldsymbol X}\bX^{{\sf T}}]\succeq {\underline{\gamma}} \tau^2{\rm I}_{d\times d}$ for some $0 < {\underline{\gamma}} < 1$. \end{enumerate} \end{assumption} Assumption \ref{ass:classification}.$(a)$ is satisfied by many classical activation functions, a prominent example being the logistic (or sigmoid) function $\sigma_L(z) = (1+e^{-z})^{-1}$. Our main results on binary linear classification are summarized in the theorem below. \begin{theorem}\label{thm:MainClassification} Under Assumption \ref{ass:classification}, further assume $\|{\boldsymbol \theta}_0\|_2\le r/3$. There exist positive constants $C_1$, $C_2$ and $h_{\max}$ depending on parameters $(L_{\sigma},r,\tau^2,{\underline{\gamma}}, \delta)$ and the activation function $\sigma(\cdot)$, but independent of $n$ and $d$, such that, if $n\ge C_1 d \log d$, the following hold with probability at least $1-\delta$: \begin{itemize} \item[$(a)$] The empirical risk function ${\boldsymbol \theta}\mapsto \widehat{R}_n({\boldsymbol \theta})$ has a unique local minimizer in ${\sf B}^d({\boldsymbol 0},r)$, that is the global minimizer $\hat{\boldsymbol \theta}_n$. \item[$(b)$] Gradient descent with fixed step size $h_k=h \leq h_{\max}$ converges exponentially fast to the global minimizer, for any initialization ${\boldsymbol \theta}_s \in {\sf B}^d({\boldsymbol \theta}_0, 2r/3)$: $\|\hat{\boldsymbol \theta}_n (k)-\hat{\boldsymbol \theta}_n\|_2\le C_1\|{\boldsymbol \theta}_s-\hat{\boldsymbol \theta}_n\|_2\, (1- h/C_1)^k$. \item[$(c)$] We have $\|\hat{\boldsymbol \theta}_n-{\boldsymbol \theta}_0\|_2\le C_2 \sqrt{(d\log n)/n}$. \end{itemize} \end{theorem} The proof of this theorem can be found in Appendix \ref{app:Class_High}, and is based on the following two-step strategy. First, we study the population risk $R({\boldsymbol \theta})$, and establish its qualitative properties using analysis. Second, we use our uniform convergence result (Theorem \ref{thm:uniformconvergence1}) to prove that the same properties carry over to the sample risk $\widehat{R}_n({\boldsymbol \theta})$. Figure \ref{fig:risk_bc} presents a small numerical example that illustrates how the qualitative features of the population risk apply to the empirical risk as well. A few remarks are in order. First of all, the convergence rate of gradient descent (at point $(b)$) is \emph{independent of the dimension $d$ and number of samples $n$}. In other words, $O(\log(1/\varepsilon))$ iterations are sufficient to converge within distance $\varepsilon$ from the global minimizer. Classical theory of empirical risk minimization only concerns the statistical properties of the optimum, but does not provide efficient algorithms. Next, note that our condition on the sample size $n$ is nearly optimal. Indeed, it is information-theoretically impossible to estimate ${\boldsymbol \theta}_0$ from less than $n<d$ binary samples. Finally, the convergence rate at point $(c)$ also nearly matches the optimal (parametric) rate $\sqrt{d/n}$. \subsection{Binary linear classification: Very high-dimensional regime} As in the previous section, we are given $n$ pairs ${\boldsymbol z}_1=(y_1,{\boldsymbol x}_1), \dots, {\boldsymbol z}_n=(y_n,{\boldsymbol x}_n)$ with $y_i\in \{0,1\}$, ${\boldsymbol x}_i\in{\mathbb R}^d$, and ${\mathbb P}(Y_i=1|{\boldsymbol X}_i={\boldsymbol x}) = \sigma(\<{\boldsymbol \theta}_0,{\boldsymbol x}\>)$. However ${\boldsymbol \theta}_0$ is assumed to be sparse, and the number of samples $n$ is allowed to be much smaller than the ambient dimension $d=p$. We adopt again the non-linear square loss (\ref{eqn:erm}), but now use a $\ell_2$-constrained $\ell_1$-regularized risk minimization, as per Eq.~(\ref{eq:RiskConstrained}), which we rewrite here explicitly for the reader's ease \begin{equation} \begin{aligned}\label{eq:SparseClass_1} \mbox{\rm minimize}\;\;\; & \frac{1}{n}\sum_{i=1}^{n} \Big(y_i - \sigma(\<{\boldsymbol \theta},{\boldsymbol x}_i\>)\Big)^2 + \lambda_n\|{\boldsymbol \theta}\|_1 \, ,\\ \mbox{\rm subject to}\;\;\; & \|{\boldsymbol \theta}\|_2\le r\, . \end{aligned} \end{equation} The very high-dimensional regime $d\gg n$ is of interest in many contexts. In machine learning, the number of parameters $p$ can increase when a large number of additional features are added to the model (for instance, nonlinear functions of an original set of features). In signal processing, ${\boldsymbol \theta}_0$ represents an unknown signal, of which we measure noisy random linear projections $\<{\boldsymbol x}_i,{\boldsymbol \theta}_0\>$, $i\in[n]$, quantized to \emph{one single bit}. This scenario is relevant to group testing \cite{atia2012boolean} and analog-to-digital conversion \cite{laska2011trust,laska2012regime}, and has been studied under the name of `one-bit compressed sensing'; see \cite{plan2013one} and references therein. In the very high-dimensional regime we need additional assumptions on the distribution of ${\boldsymbol X}$ as well as the activation function $\sigma$. \begin{assumption}[Fast-decaying activation]\label{ass:derivdecay} The activation function $\sigma$ satisfy $\sup_{t\in\R}\{\vert\sigma'(t)t\vert, \vert \sigma''(t)t\vert\} \le C_{\sigma}$ for some absolute constant $C_{\sigma}$. \end{assumption} \begin{assumption}[Continuous and bounded features]\label{ass:continuous} The feature vector ${\boldsymbol X}$ has a density $p(\,\cdot\,)$ in $\R^d$, that is, $\P({\boldsymbol X}\in A) =\int_{A} p({\boldsymbol x})\,{\rm d}{\boldsymbol x}$ for all Borel sets $A\subseteq\R^d$. In addition, the feature vector is bounded: $\Vert {\boldsymbol X} \Vert_\infty \leq M \tau$, and $\vert \langle {\boldsymbol X}, {\boldsymbol \theta}_0 / \Vert {\boldsymbol \theta}_0 \Vert_2 \rangle \vert \leq M \tau$ almost surely. Here $M$ is a dimensionless constant greater than $1$. \end{assumption} \begin{remark} Assumption \ref{ass:derivdecay} holds popular examples of activation functions, such as the logistic $\sigma_L(z) = (1+e^{-z})^{-1}$ or probit $\sigma_{P}(z) = \Phi(z)$. For unbounded sub-Gaussian feature vectors, the next theorem can be supplemented by a truncation argument at level $M = C \sqrt{\log(nd)}$. Hence, the conclusions of this theorem hold, with an additional $\log(nd)$ factor. \end{remark} In the statement of the following theorem, for convenience, we will also assume $n \leq d^{100}$. This is a technical assumption so that we can bound $\log(nd) \leq 101 \log(d)$. And since we are considering the very high dimensional regime, it is not meaningful to discuss $n > d^{100}$. \begin{theorem}\label{thm:SparseClass} Under Assumptions \ref{ass:classification}, \ref{ass:derivdecay} and \ref{ass:continuous}, further assume $\|{\boldsymbol \theta}_0\|_0\le s_0$, $\|{\boldsymbol \theta}_0\|_2\le r/2$, and $n\leq d^{100}$. Then there exist constants $C_n$, $C_\lambda$, $C_s$, and $\varepsilon_0$ depending on $(L_{\sigma},C_{\sigma},r,\tau^2, {\underline{\gamma}}, \delta)$ and the activation function $\sigma(\cdot)$, but independent of $n$, $d$, $s_0$, and $M$, such that as $n\ge C_n \, s_0\, \log d$ and $\lambda_n \geq C_\lambda M \sqrt{(\log d)/n}$, the following hold with probability at least $1-\delta$: \begin{enumerate} \item[$(a)$] Any stationary point of problem (\ref{eq:SparseClass_1}) is in ${\sf B}_2^d({\boldsymbol \theta}_0, C_s \sqrt{(M^2 s_0\log d)/n + s_0 \lambda_n^2})$. \item[$(b)$] As long as $n$ is large enough such that $n\ge C_n \, s_0\, \log^2 d$ and $C_s \sqrt{(M^2 s_0\log d)/n + s_0 \lambda_n^2} \leq \varepsilon_0$, the problem has a unique local minimizer $\hat{\boldsymbol \theta}_n$ which is also the global minimizer. \end{enumerate} \end{theorem} As in the previous section, our proof makes a crucial use of the sparse uniform convergence result, Theorem \ref{thm:uniformconvergence2}, together with an analysis of the population risk. \begin{remark} Let us emphasize that Theorem \ref{thm:SparseClass} leaves open the existence of a fast algorithm to find the global optimizer $\hat{\boldsymbol \theta}_n$. However \cite[Theorem 3]{nesterov2013gradient} implies that, by running $k$ steps of projected gradient descent, we can find an estimate $\hat{\boldsymbol \theta}_n(k)$ which has a subgradient of order $O(1/k)$. While we expect this sequence to converge to $\hat{\boldsymbol \theta}_n$, we defer this question to future work. \end{remark} Theorem \ref{thm:SparseClass} establishes a nearly optimal upper bound on the $\ell_2$ estimation error $\|\hat{\boldsymbol \theta}_n-{\boldsymbol \theta}_0\|_2$. Indeed this error is within a logarithmic factor from the error achieved by an oracle estimator that is given the exact support of ${\boldsymbol \theta}_0$. For comparison, \cite{plan2013one,plan2013robust} proves $\|\hat{\boldsymbol \theta}^{\mbox{\tiny \rm LP}}_n-{\boldsymbol \theta}_0\|_2 \lesssim (s_0/n)^{1/4}(\log p/s_0)^{1/4}$ for a linear programming formulation, under the more restrictive assumption of Gaussian feature vectors ${\boldsymbol x}_i\sim{\sf N}({\boldsymbol 0},{\rm I}_{d\times d})$. This analysis was generalized in \cite{ai2014one} to feature vectors with i.i.d. entries, although with the same estimation error bound. The optimal rate $\|\hat{\boldsymbol \theta}^{\mbox{\tiny \rm cvx}}_n-{\boldsymbol \theta}_0\|_2\lesssim (s_0/n)\log(p/s_0)$ was obtained only recently in \cite{plan2014high}, again for standard Gaussian feature vectors. Let us finally emphasize that the estimator defined here uses a bounded loss function and is potentially more robust to outliers than other approaches that use a convex loss (e.g. logistic loss). \subsection{Robust regression: High-dimensional regime} In robust regression we are given data ${\boldsymbol z}_1=(y_1,{\boldsymbol x}_1), \dots, {\boldsymbol z}_n=(y_n,{\boldsymbol x}_n)$ with $y_i\in {\mathbb R}$, ${\boldsymbol x}_i\in{\mathbb R}^d$, and we assume the linear model $y_i = \<{\boldsymbol \theta}_0,{\boldsymbol x}_i\> + \varepsilon_i$, where the noise terms $\varepsilon_i$ are i.i.d. with mean zero. Also in this case we have $p=d$. We use the loss (\ref{eqn:erm-robust}), which we copy here for the reader's convenience: \begin{equation} \begin{aligned}\label{eq:RobustDefinition} \mbox{\rm minimize} \;\;\; & \frac{1}{n}\sum_{i=1}^{n} \rho\big(y_i - \<{\boldsymbol \theta},{\boldsymbol x}_i\>\big) \, , \\ \mbox{\rm subject to} \;\;\; & \|{\boldsymbol \theta}\|_2\le r\, . \end{aligned} \end{equation} Classical choices for loss function $t\mapsto \rho(t)$ are the Huber loss \cite{huber1973robust} which is convex with $\rho_{\mbox{\rm\tiny Huber}}(t) = |t|-{\rm const.}$ for $t$ large enough, and Tukey's bisquare loss, which is bounded and defined as \begin{align} \rho_{\mbox{\rm\tiny Tukey}}(t) = \begin{cases} 1-\big(1-(t/t_0)^2)^3\, \;\;& \mbox{ for $|t|\le t_0$,}\\ 1 \;\;& \mbox{ for $|t|\ge t_0$.} \end{cases}\label{eq:Tukey} \end{align} It is common to define the associated score function as $\psi(t) =\rho'(t)$. We next formulate our assumptions. \begin{assumption}[Robust regression]\label{ass:Robust} \begin{enumerate} \item[$(a)$] The score function $z\mapsto \psi(z)$ is twice differentiable and odd in $z$ with $\psi(z)\ge 0$ for all $z\ge 0$, and has bounded zero, first, and second derivatives. Namely, for some constant $L_{\psi}>0$: \begin{equation} \max\Big\{ \|\psi\|_\infty, \|\psi'\|_\infty, \|\psi''\|_\infty \Big\} \le L_{\psi}\, . \label{ass:score} \end{equation} \item[$(b)$] The noise $\varepsilon$ has a symmetric distribution, i.e. is such that $\varepsilon$ is distributed as $-\varepsilon$. Further, defining $g(z) \equiv {\mathbb E}_{\varepsilon}\{\psi(z+\varepsilon)\}$ we have $g(z)>0$ for all $z>0$, as well as $g'(0) > 0$. \item[$(c)$] The feature vector ${\boldsymbol X}$ has zero mean and is $\tau^2$-sub-Gaussian, that is ${\mathbb E}[e^{\langle {\boldsymbol \lambda},{\boldsymbol X}\rangle}] \le e^{\frac{\tau^2\|{\boldsymbol \lambda}\|_2^2}{2}}$ for all ${\boldsymbol \lambda}\in\R^d$. \item[$(d)$] The feature vector ${\boldsymbol X}$ spans all directions in $\R^d$, that is, ${\mathbb E}[{\boldsymbol X}\bX^{{\sf T}}]\succeq {\underline{\gamma}} \tau^2{\rm I}_{d\times d}$ for some $0 < {\underline{\gamma}} < 1$. \end{enumerate} \end{assumption} Note that the condition $g(z) \equiv {\mathbb E}_{\varepsilon}\{\psi(z+\varepsilon)\}>0$ for all $z>0$ and $g'(0) > 0$ are quite mild, and holds --for instance-- if the noise has a density that is strictly positive for all $\varepsilon$, and decreasing for $\varepsilon>0$. \begin{theorem}\label{thm:MainRobustRegression} Under Assumption \ref{ass:Robust}, further assume $\|{\boldsymbol \theta}_0\|_2\le r/3$. Then there exist positive constants $C_1$, $C_2$ and $h_{\max}$ depending on parameters $(L_{\psi}, r, \tau^2, {\underline{\gamma}}, \delta)$, the loss function $\rho(\cdot)$, and the law of noise $\P_\varepsilon$ but independent of $n$ and $d$, such that as $n\ge C_1 d\log d$, the robust regression estimator satisfies the following with probability at least $1-\delta$: \begin{enumerate} \item[$(a)$] The empirical risk function ${\boldsymbol w}\mapsto \widehat{R}_n({\boldsymbol \theta})$ has a unique local minimizer in ${\sf B}^d(r)$, that is the global minimizer $\hat{\boldsymbol \theta}_n$. \item[$(b)$] Gradient descent with fixed step size $h_k=h \leq h_{\max}$ converges exponentially fast to the global minimizer, for any initialization ${\boldsymbol \theta}_s \in {\sf B}^d({\boldsymbol \theta}_0, 2r/3)$: $\|\hat{\boldsymbol \theta}_n (k)-\hat{\boldsymbol \theta}_n\|_2\le C_1\|{\boldsymbol \theta}_s-\hat{\boldsymbol \theta}_n\|_2\, (1- h/C_1)^k$. \item[$(c)$] We have $\|\hat{\boldsymbol \theta}_n-{\boldsymbol \theta}_0\|_2\le C_2 \sqrt{(d\log n)/n}$. \end{enumerate} \end{theorem} \subsection{Robust regression: Very high-dimensional regime} \label{sec:Robust_VHD} As in the previous section, we are given $n$ pairs ${\boldsymbol z}_1=(y_1,{\boldsymbol x}_1),\dots, {\boldsymbol z}_n=(y_n,{\boldsymbol x}_n)$ with $y_i\in {\mathbb R}$, ${\boldsymbol x}_i\in{\mathbb R}^d$, and we assume the linear model $y_i = \<{\boldsymbol \theta}_0,{\boldsymbol x}_i\> + \varepsilon_i$, where the noise terms $\varepsilon_i$ are i.i.d. with mean zero. However ${\boldsymbol \theta}_0$ is assumed to be sparse, while the number of samples $n$ is much smaller than the ambient dimension $d=p$. We adopt again the loss (\ref{eqn:erm-robust}), but now use a $\ell_2$-constrained $\ell_1$-regularized risk minimization, as per Eq.~(\ref{eq:RiskConstrained}), which we rewrite here explicitly for the reader's ease \begin{equation} \begin{aligned}\label{eq:SparseClass_rho} \mbox{\rm minimize}\;\;\; & \frac{1}{n}\sum_{i=1}^{n} \rho\big(y_i - \<{\boldsymbol \theta},{\boldsymbol x}_i\>\big) + \lambda_n\|{\boldsymbol \theta}\|_1 \, ,\\ \mbox{\rm subject to}\;\;\; & \|{\boldsymbol \theta}\|_2\le r\, . \end{aligned} \end{equation} Like the case of very high dimensional binary classification, we also need continuous and bounded feature assumptions, i.e. Assumption \ref{ass:continuous}, and need a fast decaying assumption on $\psi = \rho'$. \begin{assumption}[Fast-decaying score function]\label{ass:derivdecayrho} The score function $\psi$ satisfies $\sup_{t\in\R}\{\vert \psi(t)t \vert\} \le C_{\psi}$ for some absolute constant $C_{\psi}$. \end{assumption} \begin{theorem}\label{thm:SparseRobust} Under Assumptions \ref{ass:classification}, \ref{ass:continuous} and \ref{ass:derivdecayrho}, further assume $\|{\boldsymbol \theta}_0\|_0\le s_0$, $\|{\boldsymbol \theta}_0\|_2\le r/2$, and $n\leq d^{100}$. Then there exist constants $C_n$, $C_\lambda$, $C_s$, and $\varepsilon_0$ depending on $(L_{\psi},C_{\psi},r,\tau^2, {\underline{\gamma}}, \delta)$, the loss function $\rho$, and the law of noise $\P_\varepsilon$, but independent of $n$, $d$, $s_0$ and $M$, such that as $n\ge C_n \, s_0\, \log d$ and $\lambda_n \geq C_\lambda M \sqrt{(\log d)/n}$, the following hold with probability at least $1-\delta$: \begin{enumerate} \item[$(a)$] Any stationary point of problem (\ref{eq:SparseClass_rho}) is in ${\sf B}_2^d({\boldsymbol \theta}_0, C_s \sqrt{(M^2 s_0\log d)/n + s_0 \lambda_n^2})$. \item[$(b)$] As long as $n$ is large enough such that $n\ge C_n \, s_0\, \log^2 d$ and $C_s \sqrt{(M^2 s_0\log d)/n + s_0 \lambda_n^2} \leq \varepsilon_0$, the problem has a unique local minimizer $\hat{\boldsymbol \theta}_n$ which is also the global minimizer. \end{enumerate} \end{theorem} The proof of this theorem is almost the same as the proof of Theorem \ref{thm:SparseClass}. We will omit the proof to avoid redundancies. \subsection{Gaussian mixture model} \label{sec:GaussianMixture} In the applications considered so far, the population risk has a unique stationary point which is also the global minimum. We used our uniform convergence theorems to prove that the empirical risk has the same property and hence can be optimized efficiently. In order to illustrate our approach on an example with multiple local minima, we consider clustering within a simple Gaussian mixture model. We are given data points ${\boldsymbol z}_1,\dots,{\boldsymbol z}_n\in{\mathbb R}^d$, with ${\boldsymbol z}_i$ drawn from a mixture of two Gaussians, in equal proportions, ${\boldsymbol z}_i \sim (1/2){\sf N}({\boldsymbol \theta}_{0,1},{\rm I}_{d\times d})+(1/2){\sf N}({\boldsymbol \theta}_{0,2},{\rm I}_{d\times d})$. Define the separation parameter $D = \Vert {\boldsymbol \theta}_{0,2} - {\boldsymbol \theta}_{0,1}\Vert_2/2$. We want to estimate the centers ${\boldsymbol \theta}_{0,1}$, ${\boldsymbol \theta}_{0,2}$ by solving the maximum likelihood problem (here ${\boldsymbol \theta} = ({\boldsymbol \theta}_1, {\boldsymbol \theta}_2) \in \R^{2d}$) \begin{equation}\label{eqn:erm-mixture} \begin{aligned} \mbox{\rm minimize}&\;\;\; \widehat{R}_n({\boldsymbol \theta})\equiv -\frac{1}{n}\sum_{i=1}^{n} \log\left( \sum_{a=1}^2\; \phi_d\big({\boldsymbol z}_i-{\boldsymbol \theta}_a\big)\right).\\ \end{aligned} \end{equation} In this case, the population risk has at least two global minima related by the symmetry under exchange of the two components: ${\boldsymbol \theta}_+ = ({\boldsymbol \theta}_{0,1},{\boldsymbol \theta}_{0,2})$ and ${\boldsymbol \theta}_- = ({\boldsymbol \theta}_{0,2},{\boldsymbol \theta}_{0,1})$, as well as a saddle point ${\boldsymbol \theta}_s = (({\boldsymbol \theta}_{0,1} + {\boldsymbol \theta}_{0,2})/2,({\boldsymbol \theta}_{0,1} + {\boldsymbol \theta}_{0,2})/2)$. This is a common phenomenon: symmetries lead to multiple minima of the risk function. In a recent paper, Xu, Hsu and Maleki \cite{xu2016global} prove that these are the only critical points. See Figure \ref{fig:risk_gmm} for an illustration. \begin{figure} \centering \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{poprisk_gmm.eps} \caption{}\label{fig:poprisk_gmm} \end{subfigure}\hspace{0.1cm} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{emprisk_gmm.eps} \caption{}\label{fig:emprisk_gmm} \end{subfigure} \caption{Gaussian mixture model: $(a)$ Population risk for $d = 1$. $(b)$ A realization of the empirical risk for $d = 1$, and $n = 30$. }\label{fig:risk_gmm} \end{figure} \begin{theorem}\label{thm:Mixture} Let $\widehat{R}_n({\boldsymbol \theta})$ be the empirical risk for an equal-proportion mixture of two Gaussians. Then there exist constants $C_1$, $C_2$, and $C_3$ depending on $(D,\delta)$ but independent of $n$ and $d$, such that as $n\ge C_1\, d\log d$, the following holds with probability at least $1-\delta$: \begin{enumerate} \item[$(a)$] In side ${\sf B}^{2d}({\boldsymbol \theta}_s, C_2)$, the empirical risk has exactly two local minima $\hat{\boldsymbol \theta}_+$, $\hat{\boldsymbol \theta}_-$ related by an exchange of the two classes. \item[$(b)$] For any initialization $\hat{\boldsymbol \theta}_0 \in {\sf B}^{2d}({\boldsymbol \theta}_s, C_2)$, the trust region algorithm will converge to one of the local minima. \item[$(c)$] The local minima satisfy \begin{align} \Vert \hat{\boldsymbol \theta}_+ - {\boldsymbol \theta}_+ \Vert_2 \leq C_3 \sqrt{\frac{d \log n}{n}},\quad \Vert \hat{\boldsymbol \theta}_- - {\boldsymbol \theta}_- \Vert_2 \leq C_3 \sqrt{\frac{d \log n}{n}}. \end{align} \end{enumerate} \end{theorem} \section{Numerical experiments} We carried out extensive numerical experiments in order to verify how accurate is our theory. Sections \ref{sec:NumericalClass} to \ref{sec:MixtureSimulations} present simulations for the models studied in Section \ref{sec:Applications}. Sections \ref{sec:AustralianData} and \ref{sec:ColonCancerData} present illustrations with real data. \subsection{Binary linear classification: high-dimensional regime } \label{sec:NumericalClass} Figures \ref{fig:success_rate}, \ref{fig:error_bc}, \ref{fig:conv_bc}, \ref{fig:gditer} report our results for the non-convex binary classification model of Section \ref{sec:Class}. \begin{figure} \centering \begin{subfigure}{0.45\textwidth} \centering \includegraphics[width=0.95\linewidth]{success_rate.eps} \caption{}\label{fig:success_rate} \end{subfigure} \begin{subfigure}{0.45\textwidth} \centering \includegraphics[width=0.95\linewidth]{error_bc.eps} \caption{}\label{fig:error_bc} \end{subfigure} \caption{Binary linear classification, high dimensional: $(a)$ Success rate versus $n/(d\log d)$ for several ambient dimensions $d$, with $\Vert {\boldsymbol \theta}_0 \Vert_2=3$ (dashed lines are empirical averages, continuous lines are a smoothed version); $(b)$ Estimation error $\widehat{\rm E} [\Vert \hat{\boldsymbol \theta}_n - {\boldsymbol \theta}_0 \Vert_2]$ versus $n/d$, for $\Vert {\boldsymbol \theta}_0 \Vert_2 = 1$. } \end{figure} We consider i.i.d. predictors ${\boldsymbol X}_i \sim {\sf N}({\boldsymbol 0}, {\rm I}_{d\times d})$, and generate labels $Y_i\in\{0,1\}$ with ${\mathbb P}(Y_i=1|{\boldsymbol X}_i={\boldsymbol x})= \sigma(\<{\boldsymbol \theta}_0,{\boldsymbol x}\>)$ where $\sigma(u) = \sigma_{L}(u) = (1+e^{-u})^{-1}$ is the logistic activation. We perform gradient descent, cf. Eq~(\ref{eq:GradientDescent}) to minimize the empirical risk (\ref{eqn:erm}), with a minor revision in practice: we will project the points back into ${\sf B}^d(r)$ if the iteration points fall out of the ball, with $r = 3 \Vert {\boldsymbol \theta}_0 \Vert_2$. The step size is fixed to be $h = 1$. In order to test the hypothesis that the landscape is simple (i.e. it has a unique local minimum), we run projected gradient descent starting from multiple random initializations ${\boldsymbol \theta}_s \sim {\sf N}({\boldsymbol 0}, {\rm I}_{d\times d}/d)$. If the landscape is simple, we expect the iterates $\hat{\boldsymbol \theta}_n(k)$ to converge to the same global minimizer with no dependence on the initialization. If the landscape is rough, projected gradient descent will converge to different points depending on the initialization. Given a maximum number of iterations $k_{\max}$, we define the following quantity, depending on the data $({\boldsymbol Y},{\boldsymbol X})\equiv \{(Y_i,{\boldsymbol X}_i)\}_{1\le i\le n}$, \begin{align} S_{{\boldsymbol Y},{\boldsymbol X}}= \sqrt{{\rm Tr }(\widehat{{\rm Var}}_{\text{init}}( \hat{\boldsymbol \theta}_n(k_{\max}) \vert {\boldsymbol Y},{\boldsymbol X}))}\, , \end{align} where the variance is taken over the random initializations ${\boldsymbol \theta}_s$. In words, $S_{{\boldsymbol Y},{\boldsymbol X}}$ is the spread of the limit points of projected gradient descent, for the instance $({\boldsymbol Y},{\boldsymbol X})$. We then define the empirical success probability as \begin{align} {\widehat{\rm P}_{\rm succ}} \equiv \widehat{{\mathbb P}}(S_{{\boldsymbol Y},{\boldsymbol X}}\le \varepsilon)\, . \end{align} In Figure \ref{fig:success_rate}, we plot our results for the empirical success rate, for several values of $n$, $d$. In this experiment, we take $\Vert {\boldsymbol \theta}_0 \Vert_2 = 3$. For each pair $(n,d)$, we generate $100$ instances $(Y_i,{\boldsymbol X}_i)$ and run projected gradient descent from $10$ random initializations. We use $k_{\max}=10^4$ iterations and tolerance $\varepsilon = 10^{-2}$ though results seem to be fairly insensitive to these parameters. For each dimension $d$, the success rate goes rapidly from $0$ to $1$ as the number of samples $n$ crosses a threshold. We plot the success probability as function of the rescaled number of samples $n/(d\log d)$. On this scale, curves for different dimension cross each other, and become steeper as $d$ increases. This is consistent with Theorem \ref{thm:MainClassification}. This also suggests a sharp phase transition at $n_*(d)$ which is roughly of order $d\log d$. It is a fascinating open question whether a sharp threshold actually exists\footnote{When convergence to a single global minimum fails, we observe that often projected gradient actually convergence to the boundary of ${\sf B}^d(r)$.}. Figure \ref{fig:error_bc} illustrates the behavior of the estimation error $\|\hat{\boldsymbol \theta}_n-{\boldsymbol \theta}_0\|_2$ achieved by gradient descent. In all the following experiments, we will take $\Vert {\boldsymbol \theta}_0 \Vert_2 = 1$. We plot the estimation error (averaged over $100$ random instances) $\widehat{\rm E} [ \|\hat{\boldsymbol \theta}_n-{\boldsymbol \theta}_0\|_2]$ versus $n/d$. Curves for different dimensions collapse, and are consistent with the optimal rate $\|\hat{\boldsymbol \theta}_n-{\boldsymbol \theta}_0\|_2 = \Theta(\sqrt{d/n})$. \begin{figure} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{conv_bc.eps} \caption{}\label{fig:conv_bc} \end{subfigure}\hspace{0.1cm} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{gditer.eps} \caption{}\label{fig:gditer} \end{subfigure} \caption{Binary linear classification, high dimensional: $(a)$ The convergence of the gradient descent algorithm. Here $\Vert {\boldsymbol \theta}_0 \Vert_2 = 1$, $n/d = 20$. The y-axis is on a log-scale; $(b)$ Minimum number of iterations needed to achieve average distance $10^{-4}$ from the global optimizer. } \end{figure} Figure \ref{fig:conv_bc} shows the convergence of gradient descent for several values of $n$ and $d$, for fixed $n/d = 20$. Namely, we plot the distance from the global minimizer as a function of the number of iterations $k$, estimated using $100$ realizations $({\boldsymbol Y},{\boldsymbol X})$. Since there is a small probability that gradient descent fails to find unique minimizer, we average the distance from the global minimizer over the results between the $(0.05, 0.95)$ quantiles of these $100$ instances. Convergence to the global minimizer appears to be exponential as predicted by Theorem \ref{thm:MainClassification}. Also, convergence is fairly independent of the dimension for fixed $n/d$. Finally, Figure \ref{fig:gditer} shows the number of iterations needed to achieve the $\varepsilon = 10^{-4}$ optimization error. We run $100$ instances, and we plot the expected number of iteration, by averaging the results between the $(0.05, 0.95)$ quantiles of these $100$ instances. When $n/d$ is small, the landscape is not very smooth, and convergence is slower. When $n/d$ grows, the number of iterations decreases and converges to a constant. This is also predicted by Theorem \ref{thm:MainClassification}: the landscape of empirical risk will be as smooth as the landscape of population risk, as $n \geq C\, d\log d$. \subsection{Binary linear classification: very high-dimensional regime } In Figures \ref{fig:var_bcl1}, \ref{fig:conv_bcl1}, \ref{fig:error_bcl1}, we present our results on non-convex binary linear classification in the very high-dimensional regime. Data $(Y_i,{\boldsymbol X}_i)$ were generated as in the previous section, with ${\boldsymbol \theta}_0$ a vector $k$ non-zero entries all of size $1/\sqrt{k}$. We use proximal gradient descent to solve problem (\ref{eq:RiskConstrained}) with $r=10$. \begin{figure} \centering \includegraphics[width=0.6\linewidth]{var_bcl1.eps} \caption{Binary linear classification, very high-dimensional. The standard deviation of each iteration point with respect to random initialization. }\label{fig:var_bcl1} \end{figure} In Figure \ref{fig:var_bcl1}, we use random initializations ${\boldsymbol \theta}_s\sim {\sf N}({\boldsymbol 0},{\rm I}_{d\times d}/d)$, and plot the empirical standard deviation of the resulting iterates ${\rm std}(\hat{\boldsymbol \theta}_n(i)) = {\rm Tr}(\widehat{\rm Var}(\hat{\boldsymbol \theta}_n(i)))^{1/2}$. Note that the variance is taken over the random initializations, for a same realization of the data $({\boldsymbol Y},{\boldsymbol X})$, and hence captures smoothness (or roughness) of the empirical risk landscape. The standard deviation appears to converge exponentially fast to $0$, confirming that indeed proximal gradient is converging to the unique local minimizer, as anticipated by Theorem \ref{thm:SparseClass}. \begin{figure} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{conv_bcl1.eps} \caption{}\label{fig:conv_bcl1} \end{subfigure}\hspace{0.1cm} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{error_bcl1.eps} \caption{}\label{fig:error_bcl1} \end{subfigure} \caption{Binary linear classification, very high-dimensional regime: $(a)$ The convergence of proximal gradient descent. Here $\Vert {\boldsymbol \theta}_0 \Vert_2 = 1$, and $n/(k\log^2(d))= 20$, and $\lambda_n = 1/100 \cdot \sqrt{\log^2(d)/n}$ . $(b)$ Convergence of the statistical error. } \end{figure} In Figure \ref{fig:conv_bcl1}, we plot the expected distance from the global minimizer $\hat{\boldsymbol \theta}_n$ for each iterates. Proximal gradient appears to converge exponentially fast for $n\gg k\log^2(d)$. \subsection{Robust linear regression } In Figures \ref{fig:var_rr}, \ref{fig:var_outlier_rr}, \ref{fig:error_cmp_rr} we present simulations for robust regression. We generated random covariates ${\boldsymbol X}_i\sim {\sf N}({\boldsymbol 0},{\rm I}_{d\times d})$ and responses $Y_i = \<{\boldsymbol \theta}_0,{\boldsymbol X}_i\>+\varepsilon_i$, where $\|{\boldsymbol \theta}_0\|_2 = 1$. Again, we used projected gradient descent to solve the optimization problem (\ref{eq:RobustDefinition}) with $r=10$. For the loss function we used Tukey's loss (\ref{eq:Tukey}) with $t_0=4.685$. \begin{figure} \centering \includegraphics[width=0.6\linewidth]{var_rr.eps} \caption{Robust regression. The standard deviation of each iteration point with respect to random initialization. }\label{fig:var_rr} \end{figure} In Fig. \ref{fig:var_rr}, we plot the standard deviation of the iterates ${\rm std} (\hat{\boldsymbol \theta}_n(i))={\rm Tr}(\widehat{\rm Var}(\hat{\boldsymbol \theta}_n(i)))^{1/2}$ over random initializations ${\boldsymbol \theta}_s\sim {\sf N}({\boldsymbol 0},25\, {\rm I}_{d\times d}/d)$. In this case $\varepsilon_i \sim {\sf N}(0,1)$. Again, this standard deviation converges exponentially fast to $0$ supporting the claim that proximal gradient descent converges to a unique global minimum irrespective of the initialization. \begin{figure} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{var_outlier_rr.eps} \caption{}\label{fig:var_outlier_rr} \end{subfigure}\hspace{0.1cm} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{error_cmp_rr.eps} \caption{}\label{fig:error_cmp_rr} \end{subfigure} \caption{Robust regression: $(a)$ The standard deviation of each iteration point with respect to random initialization, for different proportion of contamination. $(b)$ The robustness of the global minimum between linear regression and Tukey regression. } \end{figure} In Figures \ref{fig:var_outlier_rr}, \ref{fig:error_cmp_rr} we study the a contaminated model for the noise, namely $\varepsilon_i\sim (1-\delta){\sf N}(0,1) +\delta {\sf N}(0,\sigma^2)$. In Figure \ref{fig:var_outlier_rr} we plot the standard deviation of the estimates obtained with random initializations ${\boldsymbol \theta}_s\sim {\sf N}({\boldsymbol 0},25\,{\rm I}_{d\times d}/d)$, for $n=480$, $d=80$. Convergence rate remains exponential even for large contamination fraction. In Figure \ref{fig:error_cmp_rr} we investigated the dependence of the estimation error on the contamination fraction, and the scale of outliers. Tukey's regression is fairly insensitive to outliers, while the least squares regression deteriorates as expected. \subsection{Gaussian mixture model } \label{sec:MixtureSimulations} \begin{figure} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{error_gmm.eps} \caption{}\label{fig:error_gmm} \end{subfigure}\hspace{0.1cm} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{conv_gmm.eps} \caption{}\label{fig:conv_gmm} \end{subfigure} \caption{Gaussian mixture model: $(a)$ The convergence of statistical error. Here we use $\Vert {\boldsymbol \theta}_{0,1} - {\boldsymbol \theta}_{0,2} \Vert_2 = 3$, and $n/d = 6$; $(b)$ The convergence of the gradient descent algorithm. } \end{figure} In Figures \ref{fig:error_gmm} and \ref{fig:conv_gmm} we consider the Gaussian mixture model of Section \ref{sec:GaussianMixture}. We use an equal mixture proportion with $\Vert {\boldsymbol \theta}_{0,1} - {\boldsymbol \theta}_{0,2} \Vert_2 = 3$ and compute the maximum likelihood estimator (\ref{eqn:erm-mixture}). Instead of using trust region method as suggested in Theorem \ref{thm:Mixture}, we used gradient descent here. We observed that there are only two local minimizers. In Figure \ref{fig:error_gmm} we plot the convergence of the statistical error, and in Figure \ref{fig:conv_gmm} the convergence of the gradient descent algorithm to one of the only two local minimizers. These results are consistent with Theorem \ref{thm:Mixture}. \subsection{Australian credit data} \label{sec:AustralianData} \begin{figure} \centering \includegraphics[width=0.5\linewidth]{australian.eps} \caption{Australian credit data: the standard deviation of each iteration point with respect to random initialization. }\label{fig:australian} \end{figure} In Figure \ref{fig:australian} we consider the Australian credit dataset from Statlog \cite{Lichman:2013}. The data set contains $n = 690$ entries. Each entries has a binary label, with $307$ entries labeled $1$ and $383$ labeled $0$. Each entry also comprises $d = 14$ attributes including both categorical and continuous variables. These variables are normalized with zero mean and unit standard deviation. We fit a model of the form $\P(Y_i = 1 \vert {\boldsymbol X}_i = {\boldsymbol x}) = \sigma(\langle {\boldsymbol \theta}_0, {\boldsymbol x} \rangle)$ with $\sigma(u) = \sigma_L(u)$ the logistic function, by using the non-convex approach (\ref{eq:nonconvex1}) and gradient descent. We also used logistic regression for comparison. Let us emphasize here that our focus here is not on the accuracy of the predictive model, but rather on showing that the non-convex approach is a viable alternative to the standard logistic regression. In particular, the M-estimator appears to be efficiently computable. In Figure \ref{fig:australian}, we plot the standard deviation of the estimate $\hat {\boldsymbol \theta}_n(i)$, over random initializations ${\boldsymbol \theta}_s \sim {\sf N}({\boldsymbol 0}, {\rm I}_{d\times d}/d)$. As for the simulations in the previous section, the standard deviation decreases exponentially fast, suggesting that indeed the optimization problem has a unique local minimum. \subsection{Colon cancer data} \label{sec:ColonCancerData} \begin{figure} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{var_coloncancer.eps} \caption{}\label{fig:var_coloncancer} \end{subfigure}\hspace{0.1cm} \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=0.95\linewidth]{cmp_coloncancer.eps} \caption{}\label{fig:cmp_coloncancer} \end{subfigure} \caption{Colon cancer data: $(a)$ The standard deviation of each iteration point with respect to random initialization, for different regularization parameter. $(b)$ Number of non-zero elements of logistic Lasso and non-convex logistic Lasso. } \end{figure} In Figures \ref{fig:var_coloncancer}, \ref{fig:cmp_coloncancer} we consider a gene-expression dataset from \cite{alon1999broad}. The data set contains expression levels of of $2,000$ genes in $22$ normal and $40$ tumor colon tissues, hence $n=62$ data points. Expression levels are normalized as in \cite{alon1999broad} to have zero mean and unit standard deviation. We use the expression levels to form feature vectors ${\boldsymbol x}_i\in{\mathbb R}^{d}$, $d = 2000$ and encode the type of tissue using a binary label $y_i=1$ (tumor) or $y_i=0$ (no tissue). We fit a model of the form ${\mathbb P}(Y_i=1|{\boldsymbol X}_i={\boldsymbol x}) = \sigma(\<{\boldsymbol \theta}_0,{\boldsymbol x}\>)$ with $\sigma(u) = \sigma_L(u)$ the logistic function, by using the non-convex approach (\ref{eq:SparseClass_1}) and proximal gradient. We also used $\ell_1$-regularized logistic regression, for comparison. Let us emphasize here that our focus here is not on the accuracy of the predictive model, but rather on showing that the non-convex approach is a viable alternative to the more standard regularized logistic regression. In Figure \ref{fig:var_coloncancer}, we plot the standard deviation of the estimate $\hat{\boldsymbol \theta}_n(i)$, over random initializations ${\boldsymbol \theta}_s\sim{\sf N}({\boldsymbol 0},{\rm I}_{d\times d}/d)$. As for the simulations in the previous section, the standard deviation decreases exponentially fast, suggesting that indeed the optimization problem has a unique local minimum. In Figure \ref{fig:cmp_coloncancer} we compare the model selected by the non-convex approach (\ref{eq:SparseClass_1}) to the one from $\ell_1$-regularized logistic regression, and also plot the number of overlaps of their selected variables. Note that most of the covariates selected by the non-convex regression method also appear in logistic regression. This suggests that the model produced by the non-convex approach is comparable to that produced by $\ell_1$-regularized logistic regression. \section*{Acknowledgments} A.M. was partially supported by the NSF grant CCF-1319979. S.M. was supported by Office of Technology Licensing Stanford Graduate Fellowship.
\section{Introduction} As is well known, any graph can be drawn in $\reals^3$ without crossings so that all edges are segments of straight lines. Suppose that we have a supply $\mathcal{L}$ of lines in $\reals^3$, and the edges are allowed to be drawn only on lines in $\mathcal{L}$. How large does $\mathcal{L}$ need to be for a given graph $G$? For planar graphs, a similar question makes sense also in $\reals^2$, since planar graphs admit straight-line drawings in $\reals^2$ by the Wagner--F\'ary--Stein theorem. Let $\rho^1_3(G)$ denote the minimum size of $\mathcal{L}$ which is sufficient to cover a drawing of~$G$ in $\reals^3$. For a planar graph $G$, we denote the corresponding parameter in $\reals^2$ by $\rho^1_2(G)$. The study of these parameters was posed as an open problem by Durocher et al.~\cite{durocher2013note}. The two parameters are related to several challenging graph-drawing problems such as small-area or small-volume drawings~\cite{DujmovicW13}, layered or track drawings~\cite{dpw-tlg-DMTCS04}, and drawing graphs with low visual complexity. Recently, we studied the extremal values of $\rho^1_3(G)$ and $\rho^1_2(G)$ for various classes of graphs and examined their relations to other characteristics of graphs~\cite{ChaplickFLRVW16}. In particular, we showed that there are planar graphs where the parameter $\rho^1_3(G)$ is much smaller than $\rho^1_2(G)$. Determining the exact values of $\rho^1_3(G)$ and $\rho^1_2(G)$ for particular graphs seems to be tricky even for trees. In fact, the setting that we suggested is more general~\cite{ChaplickFLRVW16}. Let $1 \le l < d$. We define the \emph{affine cover number $\rho^l_d(G)$} as the minimum number of $l$-dimensional planes in~$\mathbb R^d$ such that~$G$ has a straight-line drawing that is contained in the union of these planes. We suppose that $l\le2$ as otherwise $\rho^l_d(G)=1$. Moreover, we can focus on $d\le3$ as every graph can be drawn in 3-space as efficiently as in higher dimensions, that is, $\rho^l_d(G)=\rho^l_3(G)$ if $d\ge3$ \cite{ChaplickFLRVW16}. This implies that, besides the \emph{line cover numbers} in 2D and 3D, $\rho^1_2(G)$ and $\rho^1_3(G)$, the only interesting affine cover number is the \emph{plane cover number} $\rho^2_3(G)$. Note that $\rho^2_3(G)=1$ if and only if $G$ is planar. Let $K_n$ denote the complete graph on $n$ vertices. For the smallest non-planar graph $K_5$, we have $\rho^2_3(K_5)=3$. The parameters $\rho^2_3(K_n)$ are not so easy to determine even for small values of $n$. We have shown that $\rho^2_3(K_6)=4$, $\rho^2_3(K_7)=6$, and $6\le\rho^2_3(K_8)\le 7$ \cite{ChaplickFLRVW16}. It is not hard to show that $\rho^2_3(K_n)=\Theta(n^2)$, and we determined the asymptotics of $\rho^2_3(K_n)$ up to a factor of 2 using the relations of these numbers to Steiner systems. The present paper is focused on the computational complexity of the affine cover numbers. A good starting point is to observe that, for given $G$ and $k$, the statement $\rho^l_d(G)\le k$ can be expressed by a first-order formula about the reals of the form $\exists x_1\ldots\exists x_m\Phi(x_1,\ldots,x_m)$, where the quantifier-free subformula $\Phi$ is written using the constants $0$ and $1$, the basic arithmetic operations, and the order and equality relations. If, for example, $l=1$, then we just have to write that there are $k$ pairs of points, determining a set $\mathcal{L}$ of $k$ lines, and there are $n$ points representing the vertices of $G$ such that the segments corresponding to the edges of $G$ lie on the lines in $\mathcal{L}$ and do not cross each other. This observation shows that deciding whether or not $\rho^l_d(G)\le k$ reduces in polynomial time to the decision problem (Hilbert's \emph{Entscheidungsproblem}) for \emph{the existential theory of the reals}. The problems admitting such a reduction form the complexity class $\erclass$ introduced by Schaefer \cite{Schaefer09}, whose importance in computational geometry has been recognized recently \cite{Cardinal15,Matousek14,SchaeferS15}. In the complexity-theoretic hierarchy, this class occupies a position between NP and PSPACE. It possesses natural complete problems like the decision version of the rectilinear crossing number~\cite{Bienstock91} and the recognition of segment intersection graphs~\cite{KratochvilM94}, unit disk graphs~\cite{KangM12}, and point visibility graphs~\cite{CardinalH17}. Below, we summarize our results on the computational complexity of the affine cover numbers. \paragraph{The complexity of the line cover numbers in 2D and 3D.} We begin by showing that it is $\erclass$-hard to compute, for a given graph~$G$, its line cover numbers $\rho^1_2(G)$ and $\rho^1_3(G)$; see Section~\ref{s:rho1213}. Our proof uses some ingredients from a paper of Durocher et al.~\cite{durocher2013note} who showed that it is NP-hard to compute the \emph{segment number} $\segm(G)$ of a graph~$G$. This parameter was introduced by Dujmovi{\'c} et al.~\cite{desw-dpgfs-CGTA07} as a measure of the visual complexity of a planar graph. A \emph{segment} in a straight-line drawing of a graph~$G$ is an inclusion-maximal connected path of edges of $G$ lying on a line, and the \emph{segment number} $\segm(G)$ of a planar graph $G$ is the minimum number of segments in a straight-line drawing of $G$ in the plane. Note that while $\rho^1_2(G)\le\segm(G)$, the parameters can be far apart, e.g., as shown by a graph with $m$ isolated edges. For connected graphs, we have shown earlier~\cite{ChaplickFLRVW16} that $\segm(G) \in O(\rho^1_2(G)^2)$ and that this bound is optimal as there exist planar triangulations with $\rho^1_2(G) \in O(\sqrt n)$ and $\segm(G) \in \Omega(n)$. Still, we follow Durocher et al.~\cite{durocher2013note} to some extent in that we also reduce from \AGR (see Theorem~\ref{thm:rho12-hard}). Another noteworthy related result is the $\erclass$-hardness of computing the \emph{slope number} $\slop(G)$ of a planar graph $G$, that has recently been established by Hoffmann \cite{Hoffmann17}. The value of $\slop(G)$ is equal to the minimum possible number of slopes in a straight-line drawing of $G$. It should be noted that, whereas $\rho^1_2(G)\ge\slop(G)$, the two parameters are generally unrelated. For example, if $G$ is a nested-triangle graph, then the former parameter is linear while the latter is bounded by a constant. \paragraph{Parameterized complexity of computing the line cover numbers in 2D and 3D.} It follows from the inclusion $\mathrm{NP}\subseteq\erclass$ that the decision problems $\rho^1_2(G)\le k$ and $\rho^1_3(G)\le k$ are NP-hard if $k$ is given as a part of the input. On the positive side, in Section~\ref{s:fpt}, we show that both problems are fixed-parameter tractable. To this end, we first describe a linear-time kernelization procedure that reduces the given graph to one of size $O(k^4)$. Then, in $k^{O(k^2)}$ time, we carefully solve the problem on this reduced instance by using the exponential-time decision procedure for the existential theory of the reals by Renegar~\cite{Renegar92a,Renegar92b,Renegar92c} as a subroutine. To the best of our knowledge, this is the first application of Renegar's algorithm for obtaining an FPT result, in particular, in the area of graph drawing where FPT algorithms are widely known. Note for comparison that the decision problem $\slop(G)\le k$ for each fixed $k$ is shown to be in NP~\cite{Hoffmann17}. \paragraph{Realizability of $\rho^1_d$-optimal drawings.} Since $\erclass$ belongs to $\mathrm{PSPACE}$ (as shown by Canny~\cite{Canny88}), the parameters $\rho^1_d(G)$ for both $d=2$ and $3$ are computable in polynomial space. We show, however, that \emph{constructing} a $\rho^1_2$-optimal drawing of a given planar graph $G$ can be an unfeasible task by the following reason: There is a planar graph $G$ such that every $\rho^1_2$-optimal drawing of $G$ requires irrational coordinates (see Theorem~\ref{thm:irrational-coord-graph}). This result shows that, even if a graph $G$ is known to be drawable on $k$ lines, it may happen that $G$ does not admit a $k$-line drawing on the integer grid. Nevertheless, in FPT time we are always able to produce a \emph{combinatorial description} of an optimal drawing (see Theorem~\ref{thm:fpt-main^2}). \paragraph{The complexity of the plane cover number.} Though the decision problem $\rho^2_3(G) \le k$ also belongs to $\erclass$, its complexity status is different from that of the line cover numbers. In Section~\ref{sec:complexity-rho23}, we establish the NP-hardness of deciding whether $\rho^2_3(G)\le k$ for any fixed $k\ge2$, which excludes an FPT algorithm for this problem unless $\mathrm{P}=\mathrm{NP}$. To show this, we first prove NP-hardness of \PPCOITSAT (a new problem of planar 3-SAT type), which we think is of independent interest. \paragraph{Weak affine cover numbers.} We previously defined the \emph{weak affine cover number} $\pi^l_d(G)$ of a graph~$G$ similarly to $\rho^l_d(G)$ but under the weaker requirement that the $l$-dimensional planes in $\reals^d$ whose number has to be minimized contain the \emph{vertices} (and not necessarily the edges) of~$G$~\cite{ChaplickFLRVW16}. Based on our combinatorial characterization of~$\pi^1_3$ and~$\pi^2_3$ \cite{ChaplickFLRVW16}, we show in Section~\ref{s:weak-appendix} that the decision problem $\pi^l_3(G)\le2$ is NP-complete, and that it is NP-hard to approximate $\pi^l_3(G)$ within a factor of $O(n^{1-\epsilon})$, for any $\epsilon>0$. Asymmetrically to the affine cover numbers $\rho^1_2$, $\rho^1_3$, and $\rho^2_3$, here it is the parameter $\pi^1_2$ (for planar graphs) whose complexity remains open. For more open problems, see Section~\ref{s:open}. \section{Computational Hardness of the Line Cover Numbers} \label{s:rho1213} In this section, we show that deciding, for a given graph~$G$ and integer~$k$, whether $\rho^1_2(G) \le k$ or~$\rho^1_3(G) \le k$ is an $\erclass$-complete problem. The $\erclass$-hardness results are often established by a reduction from the \PSTR problem: Given an arrangement of pseudolines in the projective plane, decide whether it is \emph{stretchable}, that is, equivalent to an arrangement of lines~\cite{Mnev85,Mnev88}. Our reduction is based on an argument of Durocher et al.~\cite{durocher2013note} who designed a reduction of the \AGR problem, defined below, to the problem of computing the segment number of a graph. A \emph{simple line arrangement} is a set $\mathcal{L}$ of $k$ lines in $\mathbb R^2$ such that each pair of lines has one intersection point and no three lines share a common point. In the following, we assume that every line arrangement is simple. We define the \emph{arrangement graph} for a set of lines as follows~\cite{BoseEW03}: The vertices correspond to the intersection points of lines and two vertices are adjacent in the graph if and only if they are adjacent along some line. The \AGR problem is to decide whether a given graph is the arrangement graph of some set of lines. Bose et al.~\cite{BoseEW03} showed that this problem is NP-hard by reduction from a version of \PSTR for the Euclidean plane, whose NP-hardness was proved by Shor \cite{Shor91}. It turns out that \AGR is actually an $\erclass$-complete problem \cite[page 212]{Eppstein14}. This stronger statement follows from the fact that the Euclidean \PSTR is $\erclass$-hard as well as the original projective version \cite{Matousek14,Schaefer09}. \begin{theorem}\label{thm:rho12-hard} Given a planar graph~$G$ and an integer~$k$, it is $\erclass$-hard to decide whether $\rho^1_2(G)\le k$ and whether $\rho^1_3(G)\le k$. \end{theorem} \begin{proof} We first treat the 2D case. We show hardness by a reduction from \AGR. Let $G$ be an instance of this problem. If $G$ is an arrangement graph, there must be an integer $\ell$ such that $G$ consists of $\ell(\ell-1)/2$ vertices and $\ell(\ell-2)$ edges, and each of its vertices has degree $d$ where $d \in [2,4]$. So, we first check these easy conditions to determine $\ell$ and reject $G$ if one of them fails. Let $G'$ be the graph obtained from~$G$ by adding one tail (i.\,e., a degree-1 vertex) to each degree-3 vertex and two tails to each degree-2 vertex. So every vertex of~$G'$ has degree~1 or~4. Note that, if $G$ is an arrangement graph, then there are exactly $2\ell$ tails in~$G'$ (2 for each line) -- if this is not true we can already safely reject $G$. We now pick $k = \ell$, and show that $G$ is an arrangement graph if and only if $\rho^1_2(G') \leq k$. For the first direction, let $G$ be an arrangement graph. By our choice of~$k$, it is clear that~$G$ corresponds to a line arrangement of~$k$ lines. Clearly, all edges of $G$ lie on these $k$ lines and the tails of $G'$ can be added without increasing the number of lines. Hence, $\rho^1_2(G') \leq k$. For the other direction, assume $\rho^1_2(G') \leq k$ and let $\Gamma'$ be a straight-line drawing of $G'$ on $\rho^1_2(G')$ lines. The graph~$G'$ contains $\binom{k}{2}$ degree-4 vertices. As each of these vertices lies on the intersection of two lines in $\Gamma'$, we need $k$ lines to get enough intersections, that is, $\rho^1_2(G') = k$. Additionally, there are no intersections of more than two lines. The most extreme points on any line have degree~1, that is, they are tails, because degree 4 would imply a more extreme vertex. We can assume that there are exactly $2k$ tails, otherwise $G$ would have been rejected before as it could not be an arrangement graph. Each line contains exactly two of them. Let $n_2$ (resp.\ $n_3$) be the number of degree-2 (resp.\ degree-3) vertices. As we added 2 (resp.\ 1) tails to each of these vertices, we have $2k = 2 n_2 + n_3$. By contradiction, we show that the edges on each line form a single segment. Otherwise, there would be a line with two segments. Note that the vertices at the ends of each segment have degree less than~4 (that is, degree~1). This would imply more than two degree-1 vertices on one line, a contradiction. So $\Gamma'$ is indeed a drawing of $G'$ using $k$ segments. By removing the tails, we obtain a straight-line drawing of~$G$ using $k=n_2 + n_3/2$ segments. The result by Durocher et al.~\cite[Lemma~2]{durocher2013note} implies that $G$ is an arrangement graph. Now we turn to 3D. Let $G$ be a graph and let $G'$ be the augmented graph as above. We show that $\rho^1_3(G') = \rho^1_2(G')$, which yields that deciding $\rho^1_3(G')$ is also NP-hard. Clearly, $\rho^1_3(G') \leq \rho^1_2(G')$. Conversely, assume that $G'$ can be drawn on $k$ lines in 3-space. Since $G'$ has $\binom{k}{2}$ vertices of degree~4, each of them must be a crossing point of two lines. It follows that each of the $k$ lines crosses all the others. Fix any two of the lines and consider the plane that they determine. Then all $k$ lines must lie in this plane, which shows that $\rho^1_2(G') \leq \rho^1_3(G')$. \end{proof} It remains to notice that the decision problems under consideration lie in the complexity class \erclass. To this end, we transform the inequalities $\rho^l_d(G)\le k$ into first-order existential expressions about the reals. Though this transformation is direct and elementary, we give some details in the proof of the following lemma, as they are relevant also to the proof of Theorem~\ref{thm:fpt-main^2} in Section~\ref{s:fpt}. \begin{lemma}\label{lem:inER} Each of the following decision problems belongs to the complexity class~$\erclass$ \begin{enumerate}[leftmargin=*,noitemsep,label=(\alph*),topsep=.5ex] \item deciding, for a planar graph~$G$ and an integer $k$, whether $\rho^1_2(G)\le k$; \item deciding, for a graph~$G$ and an integer $k$, whether $\rho^1_3(G)\le k$; \item deciding, for a graph~$G$ and an integer $k$, whether $\rho^2_3(G)\le k$. \end{enumerate} \end{lemma} \begin{proof} We prove the lemma in detail for the parameter $\rho^1_2(G)$; the argument for the other two parameters is very similar. To show that the decision problem for $\rho^1_2(G)$ is in $\erclass$, it suffices to write the statement ``$\rho^1_2(G)\le k$'' in existential theory of the reals. We first recall some elementary geometric facts expressible as arithmetic statements. Given three points $a=(x_1,y_1)$, $b=(x_2,y_2)$, $c=(x_3,y_3)$ in the plane, let $$ \chi(a,b,c)=\left| \begin{array}{ccc} x_1&y_1&1\\ x_2&y_2&1\\ x_3&y_3&1 \end{array} \right| $$ be the scalar triple product of three 3-dimensional vectors $(x_1,y_1,1)$, $(x_2,y_2,1)$, and $(x_3,y_3,1)$. As is well known, the following conditions are equivalent: \begin{itemize}[--,noitemsep,topsep=.7ex] \item $\chi(a,b,c)>0$; \item the sequence of vectors $(x_1,y_1,1)$, $(x_2,y_2,1)$, and $(x_3,y_3,1)$ forms a right-handed system in~$\reals^3$; \item $a\ne b$, and the point $c$ lies in the left half-plane with respect to the oriented line $\vec{ab}$; \item the points $a$, $b$, and $c$ are pairwise distinct, non-collinear, and occur counterclockwise in the circumcircle of the triangle~$abc$. \end{itemize} Moreover, $\chi(a,b,c)=0$ if and only if the points $a$, $b$, and $c$ are collinear, including the case that some of them coincide. If $\chi(a,b,c)=0$, we still do not know whether the point $a$ lies on the segment~$bc$. This happens exactly when the following relation is fulfilled: \begin{eqnarray*} B(a,b,c)\feq \chi(a,b,c)=0&\wedge& (x_2-x_1)^2+(y_2-y_1)^2\le(x_3-x_2)^2+(y_3-y_2)^2\\&\wedge& (x_3-x_1)^2+(y_3-y_1)^2\le(x_3-x_2)^2+(y_3-y_2)^2. \end{eqnarray*} Two segments $ab$ and $cd$ do not intersect exactly when the points $a$, $b$, $c$, and~$d$ satisfy the following relation: \begin{multline*} D(a,b,c,d)\feq\chi(a,b,c)\chi(a,b,d)>0\vee\chi(c,d,a)\chi(c,d,b)>0\vee{}\\ (\chi(a,b,c)=\chi(a,b,d)=0\wedge \neg B(a,c,d)\wedge \neg B(b,c,d)\wedge \neg B(c,a,b)\wedge \neg B(d,a,b)). \end{multline*} Suppose now that $V(G)=\{1,\ldots,n\}$ and denote the edge set of $G$ by $E=E(G)$. We have to express the fact that there are $n$ pairwise distinct points $v_1,\ldots,v_n$ lying on $k$ lines $\ell_1,\ldots,\ell_k$ that determine a straight-line drawing of the graph $G$. Each $\ell_i$ can be represented by a pair of points $p_i$ and $q_i$ lying on this line. Our existential statement about the reals begins, therefore, with the quantifier prefix $\E v_1\ldots\E v_n\E p_1\E q_1\ldots \E p_k\E q_k$, where quantification $\E a$ over a point $a=(x,y)$ means the quantifier block $\E x\E y$. Then we have to say that $$ \bigwedge_{i\ne j}v_i\ne v_j\wedge\bigwedge_{l=1}^kp_l\ne q_l\wedge \bigwedge_{\{i,j\}\in E}\bigvee_{l=1}^k(B(v_i,p_l,q_l)\wedge B(v_j,p_l,q_l)), $$ where $a\ne b$ for points $a=(x_1,y_1)$ and $b=(x_2,y_2)$ is an abbreviation for $x_1\ne y_1\vee x_2\ne y_2$. This subformula ensures that every edge of $G$ lies on one of the $k$ lines. It remains to ensure that there is no edge crossing. For this purpose, we write that \[ \bigwedge_{\{i,j\},\{l,m\}\in E,\,\{i,j\}\cap\{l,m\}=\emptyset}D(v_i,v_j,v_l,v_m) \wedge\bigwedge_{\{i,j\},\{j,m\}\in E,\,i\ne m} (\neg B(v_m,v_i,v_j)\wedge\neg B(v_i,v_j,v_m)). \] \end{proof} \section{Fixed-Parameter Tractability of the Line Cover Numbers} \label{s:fpt} In this section we show that, for an input graph $G$ and integer $k$, both testing whether $\rho^1_2(G) \leq k$, and testing whether $\rho^1_3(G) \leq k$ are decidable in FPT time (in $k$). By a $k$-line cover in $\reals^d$ of a graph $G$, we mean a drawing~$D$ of~$G$ together with a set~$\mathcal{L}$ of $k$ lines such that $(D,\mathcal{L})$ certifies $\rho^1_d(G) \leq k$. Our FPT algorithm follows from a simple \emph{kernelization/pre-processing} procedure in which we reduce a given instance $(G,k)$ to a reduced instance $(H,k)$ where $H$ has $O(k^4)$ vertices and edges, and $G$ has a $k$-line cover if and only if $H$ does as well. After this reduction, we can then apply any decision procedure for the existential theory of the reals since we have shown in Lemma~\ref{lem:inER} that both $k$-line cover problems are indeed both members of this complexity class. Our kernelization approach is given as Theorem~\ref{thm:line-cover-kernel} and our FPT result follows as described in Corollary~\ref{cor:line-cover-fpt}. We denote the number of vertices and the number of edges in the input graph by $n$ and $m$ respectively. \begin{theorem}\label{thm:line-cover-kernel} For each $d \in \{2,3\}$, graph $G$, and integer $k$, the problem of deciding whether $\rho^1_d(G) \leq k$ admits a kernel of size $O(k^4)$, i.e., we can produce a graph $H$ such that $H$ has $O(k^4)$ vertices and edges and $\rho^1_d(G) \leq k$ if and only if $\rho^1_d(H) \leq k$. Moreover, $H$ can be computed in $O(n+m)$ time. \end{theorem} \begin{proof} For a graph $G$, if $G$ is going to have a $k$-line cover $(D,\mathcal{L})$, then there are several necessary conditions about $G$ which we can exploit to shrink $G$. First, notice that any connected components of $G$ which are paths can easily be placed on any line in $\mathcal{L}$ without interfering with the other components, i.e., these can be disregarded. This provides a new instance~$G'$. Second, there are at most $\binom{k}{2}$ intersection points among the lines in $\mathcal{L}$. Thus, $G$ has at most $\binom{k}{2}$ vertices with degree larger than two. Moreover, each line $\ell \in \mathcal{L}$ will contain at most $k-1$ of these vertices. Thus, the total number of edges which are incident to vertices with degree larger than two, is at most $2 \cdot (k-1)$ per line, or $2 \cdot (k^2-k)$ in total. Thus, $G'$ contains at most $2 \cdot (k^2-k)$ vertices of degree one (since each one occurs at the end of a path originating from a vertex of degree larger than two where all the internal vertices have degree 2). Similarly, $G'$ contains at most $2 \cdot (k^2-k)$ paths where every internal vertex has degree two and the end vertices either have degree one or degree larger than two. Finally, for each such path, at most $\binom{k}{2}$ vertices are mapped to intersection points in $\mathcal{L}$. Thus, any path with more than $\binom{k}{2}$ vertices can be safely contracted to a path with at most $\binom{k}{2}$ vertices. This results in our final graph $G''$ which can easily be seen to have $O(k^4)$ vertices and $O(k^4)$ edges (when $G$ has a $k$-line cover). Now, if $G''$ does not satisfy one of the necessary conditions described above, we use the graph $K_{1,2k+1}$ as $H$, i.e., this way $H$ has no $k$-line cover. We conclude by remarking that this transformation of $G$ to $G''$ can be performed in $O(n+m)$ time. The transformation from $G$ to $G'$ is trivial. The transformation from~$G'$ to~$G''$ can be performed by two traversals of the graph (e.g., breadth first searches) where we first measure the lengths of the paths of degree-2 vertices, then we shrink them as needed. \end{proof} In the notation of the above proof, note that the statement $\rho^1_d(G'')\le k$ can be expressed as a prenex formula $\Phi$ in the existential first-order theory of the reals. The proof of Lemma~\ref{lem:inER} shows that such a formula can be written using $O(k^4)$ first-order variables and involving $O(k^4)$ polynomial inequalities, each of total degree at most~4 and with coefficients $\pm1$. We could now directly apply the decision procedure of Renegar~\cite{Renegar92a,Renegar92b,Renegar92c} to $\Phi$ and obtain an FPT algorithm for deciding whether $\rho^1_d(G)\le k$, but that would only provide a running time of $(k^{O(k^4)} + O(n+m))$. We can be a little more clever and reduce the exponent from $O(k^4)$ to $O(k^2)$. This is described in the proof of the following corollary. \begin{corollary}\label{cor:line-cover-fpt} For each $d \in \{2,3\}$, graph $G$, and integer $k$, we can decide whether $\rho^1_d(G) \leq k$ in $k^{O(k^2)} + O(n+m)$ time, i.e., FPT time in $k$. \end{corollary} \begin{proof} First, we apply to the given graph~$G$ the kernelization procedure from the proof of Theorem~\ref{thm:line-cover-kernel} to obtain a reduced graph $G''$. Now, notice that $G''$ has at most $O(k^4)$ vertices of degree two, but only $\binom{k}{2}$ of these can be bend points and are actually important in a solution, i.e., at most $\binom{k}{2}$ of these vertices are mapped to intersection points of the lines. Thus, we can simply enumerate all possible $O\big(\binom{k^4}{\binom{k}{2}}\big)$ subsets which will occur as intersection points, and, for each of these, test whether this further reduced instance has a $k$-line cover using Renegar's decision algorithm. This leads to a total running time of $k^{O(k^2)} + O(n+m)$ as needed. \end{proof} Recall that by a \emph{$k$-line cover} in $\reals^d$ of a graph $G$, we mean a drawing~$\delta$ of~$G$ together with a set~$\mathcal{L}$ of $k$ lines in $\reals^d$ such that $\delta$ puts every vertex and edge of $G$ onto a line in $\mathcal{L}$. Let $\mathcal{L}=\{\ell_1,\ldots,\ell_k\}$. For each $i\le k$, the vertices put by $\delta$ on $\ell_i$ induce a linear forest, i.e., a vertex-disjoint union of paths (some of which can consist of a single vertex). Moreover, the path components in each linear forest are naturally ordered in the order of their appearance along the line. We refer to this set of ordered linear forests as the \emph{combinatorial description} of the $k$-line cover $(\delta,\mathcal{L})$. Given the combinatorial description of a $k$-line cover of $G$ in 2D, we can easily draw $G$ on a stretchable arrangement of $k$ pseudolines. Drawing on a set of $k$ lines $\mathcal{L}$ is not always explicitly possible because any appropriate $\mathcal{L}$ may require irrational coordinates; see Section~\ref{sec:irrational-coordinates2}. Thus, in some sense, a combinatorial description of a solution can be seen as a best possible output from an algorithm for drawing a graph on a specified number of lines. \begin{theorem}\label{thm:fpt-main^2} For each $d \in \{2,3\}$, graph $G$, and integer $k$, in $2^{O(k^2)} + O(n+m)$ time we can not only decide whether $\rho^1_d(G)\le k$ but, if so, also find the combinatorial description of a $k$-line cover of $G$ in~$\reals^d$. \end{theorem} \begin{proof} It is enough to solve the problem for an input graph $G$ with no connected component inducing a path, and we make this assumption about $G$. Let $V_i$ (resp.\ $V_{\ge i}$) denote the set of vertices of $G$ having degree $i$ (resp.\ at least $i$). As it was shown above, necessary conditions for $\rho^1_d(G)\le k$ are \begin{equation} \label{eq:V13} |V_{\ge3}|\le{k\choose 2}\text{ and }|V_1|<2k^2. \end{equation} We assume also these conditions. Furthermore, call a path in $G$ \emph{straight} if its end vertices have degree 1 or at least 3 and all intermediate vertices have degree 2. Another necessary condition for $\rho^1_d(G)\le k$, that was shown in Section \ref{s:fpt}, is that $G$ contains less than $2k^2$ straight paths. We assume this as well. Given a set $S\subseteq V_2$, let $G_S$ denote the graph obtained from $G$ by smoothing out all vertices in $V_2\setminus S$. Note that \[ \rho^1_d(G)\le\rho^1_d(G_S) \] for any $S$. Moreover, the equality is attained for some $S$ with $|S|\le{k\choose 2}$. Indeed, let $(\delta,\mathcal{L})$ be a $\rho^1_d(G)$-line cover of $G$ and consider the set $S$ of vertices in $V_2$ that are taken by $\delta$ to intersection points of $\mathcal{L}$. We conclude that $\rho^1_d(G)\le k$ if and only if there is $S\subseteq V_2$ of size $|S|\le{k\choose 2}$ such that $\rho^1_d(G_S)\le k$. Let $S$ and $S'$ be subsets of $V_2$. We call them \emph{equivalent} if every straight path has equally many vertices in $S$ and in $S'$. Note that, if $S$ and $S'$ are equivalent, then $G_S$ and $G_{S'}$ are isomorphic. Thus, in order to check if $\rho^1_d(G)\le k$, it suffices to check if $\rho^1_d(G_S)\le k$ for small $S$ (i.e., of size $|S|\le{k\choose 2}$), and only for one $S$ in each equivalence class. To this end, we generate representatives of each equivalence class as explained below. We first rename the vertices of $G$. For the vertices in $V_1$ and $V_{\ge3}$ we use labels of binary length $O(k\log k)$; this is possible due to \refeq{V13}. The label of a vertex $v$ of degree 2 consists of the labels assigned to the end vertices of the straight path containing $v$ and the number of $v$ along this path counted in the direction starting from the end vertex with lexicographically smaller label. Now, we generate all $S$ with $|S|\le{k\choose 2}$ such that the intersection of $S$ with each straight path is a (possibly empty) initial segment of this path. The number of such $S$ is bounded by ${K+2k^2\choose K+1}$, where $K={k\choose 2}$, and hence smaller than $(5e)^{k^2/2}<4^{k^2}$. Denote the family of the corresponding graphs $G_S$ by $\mathcal F$. Note that every graph $F$ in $\mathcal F$ has less than $3k^2$ vertices, each represented by a label of binary length $O(k\log k)$. Summarizing, we see that $\rho^1_d(G)\le k$ if and only if there is $F\in\mathcal F$ such that $\rho^1_d(F)\le k$. Moreover, the combinatorial description of any $k$-line cover of $F$ can easily be completed to the combinatorial description of a $k$-line cover of $G$; recall that $F=G_S$ is a subgraph of (a relabeled version of) $G$. Indeed, we just have to restore the vertices in $V_2\setminus S$, that were removed from $G$, along with the incident edges. In other words, we have to restore the tail of each straight path $P$ that was not included in $F$. Let $w$ be the lexicographically larger end vertex of $P$ and $u$ be the largest intermediate vertex of $P$ that was not included in $F$. If $F$ includes none of the intermediate vertices of $P$, then $u$ is the lexicographically smaller end vertex of $P$. The combinatorial description of a $k$-line cover of $F$ has a linear forest containing the edge $uw$. All what we have to do is to subdivide $uw$ by the vertices that were removed from $P$. Lastly, we make backward relabeling to restore the original vertex names of~$G$. Thus, our task reduces to finding the combinatorial description of a $k$-line cover of a graph $F$ in $\mathcal F$ if it exists We will need to do it for all $F\in\mathcal F$ one by one untill an $F$ with $\rho^1_d(F)\le k$ is encountered. Exhaustive search is here possible within the given time because $|\mathcal F|<4^{k^2}$. Our approach is based on a discretization of this geometric search problem. We first observe that a $k$-line cover $(\delta,\mathcal{L})$ of $F$ can be captured by a suitably defined \emph{combinatorial embedding} of $F$ into a version of the arrangement graph of $\mathcal{L}$; cf.\ Section~\ref{s:rho1213} for the last concept. Specifically, let $\mathcal{L}$ be a set of $k$ lines in~$\reals^d$ with no isolated line (every line in $\mathcal{L}$ is at least once crossed by another line in $\mathcal{L}$). The \emph{augmented arrangement graph} $A_\mathcal{L}$ has crossing points of lines in $A$ as vertices, and two such points are adjacent in $A_\mathcal{L}$ if they are neighboring on a line in $\mathcal{L}$. Moreover, the two \emph{tails}, i.e., the rays not containing crossing points, of each line in $\mathcal{L}$ are represented in $A_\mathcal{L}$ by vertices of degree 1 adjacent to the crossing points from which the tails emanate. Finally, each edge between two crossing points in $A_\mathcal{L}$ is subdivided by two extra vertices. These vertices of $A_\mathcal{L}$ correspond to possible locations of degree-1 vertices of $G$ between two crossing points on a line in $\mathcal{L}$. The graph $A_\mathcal{L}$ is endowed in a natural way with a \emph{path factorization} by which we mean a partition of the edge set of $A_\mathcal{L}$ into $k$ paths such that every two paths have at most one common vertex. In general, a graph $H$ with a specified path factorization is called \emph{factorized}; the corresponding paths will be referred to as \emph{path factors} of $H$. Let $H$ be a factorized graph. If vertices $x$ and $y$ belong to a path factor of $H$, they determine this path factor uniquely. In this case we write $[x,y]$ to denote the set of all vertices on the path from $x$ to $y$ along this factor (including $x$ and $y$ themselves). A \emph{combinatorial embedding} of a graph $F$ into the factorized graph $H$ is an injective map $\gamma\function{V(F)}{V(H)}$ such that, for any edge $uv\in E(F)$, the following three conditions are fulfilled: \begin{itemize} \item $\gamma(u)$ and $\gamma(v)$ lie on a path factor of $H$; \item for any other edge $u'v'\in E(F)$, the segments of vertices $[\gamma(u),\gamma(v)]$ and $[\gamma(u'),\gamma(v')]$ have exactly one vertex in common if $uv$ and $u'v'$ are adjacent and have an empty intersection otherwise (note that, by the preceding condition, $\gamma(u')$ and $\gamma(v')$ lie on a path factor of $H$, but not necessarily the same as $\gamma(u)$ and~$\gamma(v)$); \item $\deg v=1$ if and only if $\deg\gamma(v)\le2$. \end{itemize} For a graph $F$ and a family $\mathcal{L}$ of $k$ lines, note that a $k$-line cover $(\delta,\mathcal{L})$ of $F$ determines a combinatorial embedding $\gamma$ of $F$ into the augmented arrangement graph $A_\mathcal{L}$. Vice versa, a combinatorial embedding $\gamma$ of $F$ into $A_\mathcal{L}$ efficiently translates into the combinatorial description of a $k$-line cover $(\delta,\mathcal{L})$ of $F$. Given $F\in\mathcal F$ and $A_\mathcal{L}$, a combinatorial embedding of $F$ into $A_\mathcal{L}$ can be found, if it exists, in time $k^{O(k^2)}$ by trial of all injections from $V(F)$ to $V(A_\mathcal{L})$ (recall that $|V(F)|<3k^2$ and note that $|V(A_\mathcal{L})|<2.5k^2$). It remains to generate the set of all possible augmented arrangements graphs for families of $k$ lines. To this end, we introduce a few additional notions. We call a factorized graph $H'$ a \emph{pre-template graph} if \begin{enumerate} \item $H'$ has no isolated edge and no vertex of degree~2; \item every path factor of $H'$ is a path between two degree-1 vertices. \end{enumerate} A factorized graph $H$ is a \emph{template graph} if it is obtained from a pre-template graph $H'$ by subdividing each edge between two non-degree-1 vertices in $H'$ by two new vertices; each path factor of $H'$ is ``prolonged'' to a path factor of $H$ correspondingly. A factorized graph $H$ is \emph{stretchable in $\reals^d$} if there is a drawing of $H$ in $\reals^d$ such that every path factor of $H$ lies on a line. Note that $H$ with $k$ path factors is the augmented arrangement graph of some family of $k$ lines in $\reals^d$ if and only if $H$ is a template graph stretchable in $\reals^d$. In order to generate all such graphs, consider first the family~$\mathcal{H}_k$ of all pre-template graphs with $k$ path factors. Label the path factors by $1,\ldots,k$. Given $H'\in\mathcal{H}_k$, label each vertex of~$H'$ with the set of labels of all paths to which this vertex belongs. Let $S_i$ be the sequence of labels of all vertices appearing along the $i$-th path. The list of the sequences $S_1,\ldots,S_k$ determines $H'$ and allows to reconstruct it up to isomorphism. It follows that $\mathcal{H}_k$ contains at most $(2^{2k}k!)^k = k^{O(k^2)}$ factorized graphs, each with at most $2k+{k\choose2}$ vertices. Hence, $\mathcal{H}_k$ can be generated in time $k^{O(k^2)}$. The proof of Lemma~\ref{lem:inER} shows that the statement saying that a given factorized graph~$H'\in\mathcal{H}_k$ is stretchable can be written as a prenex formula $\Phi_{H'}$ in the existential first-order theory of the reals. Moreover, $\Phi_{H'}$ uses $O(k^2)$ first-order variables and involves $O(k^2)$ polynomial inequalities, each of total degree at most~4 and with coefficients $\pm1$. The algorithm of Renegar \cite{Renegar92a,Renegar92b,Renegar92c} checks whether $\Phi_{H'}$ is valid in time $k^{O(k^2)}$. Thus, all stretchable template graphs with $k$ path factors and, hence, all augmented arrangement graphs of $k$-line families in $\reals^d$ can be generated in time $k^{O(k^2)}\cdot k^{O(k^2)}=k^{O(k^2)}$. \end{proof} \section{Rational (Non)Realizability of $\rho^1_2$-Optimal Drawings} \label{sec:irrational-coordinates2} We now show that there are graphs whose every $\rho^1_2$-optimal drawing requires irrational coordinates and therefore do not fit in any integer grid. An \emph{collinearity configuration} is a set $V$ of \emph{abstract points} along with a family of 3-element subsets of $V$ called \emph{collinear triples}. A \emph{realization} of the collinearity configuration is an injective mapping $\alpha\function V{\reals^2}$ such that any three abstract points $a$, $b$, and $c$ form a collinear triple if and only if the points $\alpha(a)$, $\alpha(b)$, and $\alpha(c)$ are collinear. The \emph{Perles configuration} is the collinearity configuration of 9 points whose realization is shown in Fig.~\ref{fig:perles}. It is known that every realization of the Perles configuration contains a point with an irrational coordinate. \begin{figure} \begin{subfigure}{.48\textwidth} \centering \includegraphics[scale=1,page=2]{figures/perles-configuration} \caption{The Perles configuration has at least one vertex with an irrational coordinate.} \label{fig:perles} \end{subfigure} \hfill \begin{subfigure}{.48\textwidth} \centering \includegraphics[scale=1,page=1]{figures/perles-configuration} \caption{The graph~$G$ contains the Perles configuration in a $\rho^1_2(G)$-optimal drawing.} \label{fig:g-unb} \end{subfigure} \caption{The Perles configuration and a supergraph of it.} \label{fig:perles+co} \end{figure} \begin{theorem} \label{thm:irrational-coord-graph} There exists a graph~$G$ such that every drawing~$\Gamma$ realizing~$\rho^1_2(G)$ contains at least one vertex with an irrational coordinate. \end{theorem} \begin{proof} Consider the graph~$G$ whose drawing is shown in Fig.~\ref{fig:g-unb}. Let $r=\rho^1_2(G)$ and note that $r\le 10$ as the drawing of $G$ occupies $10$ lines. Let~$\Gamma$ be a drawing of~$G$ realizing~$\rho^1_2(G)$. By detailed analysis below we will show that~$\Gamma$ has the same configuration as in Fig.~\ref{fig:g-unb}, that is, any $3$ vertices are collinear in~$\Gamma$ if and only if they are collinear in Fig.~\ref{fig:g-unb}. Since Fig.~\ref{fig:g-unb} contains a realization of the Perles configuration, $\Gamma$ must contain at least one vertex with an irrational coordinate. \smallskip \emph{Analysis.} Classify the vertices of $G$ into three classes according to their degrees: one \emph{big vertex} $b$ of degree $10$, ten \emph{medium vertices} of degree $5$ or $4$, and five \emph{small vertices} of degree $3$. Let $m_1,\dots, m_{10}=m_0$ be the medium vertices enumerated as they appear along the pentagon in Fig.~\ref{fig:g-unb}. They form a cycle of length 10, that we denoted by~$C$. For convenience we shall sometimes identify the vertices or edges of the graph $G$ with their images in the drawing~$\Gamma$. For each pair of successive medium vertices, we claim that the open segment $(m_i, m_{i+1})$ does not intersect any \emph{ray} $bm_j$. Indeed, assume the converse. Since the points $b$, $m_i$, and $m_{i+1}$ cannot be collinear, the ray $bm_j$ intersects $(m_i, m_{i+1})$ at a single point, that we denote by $m_j'$. Since the drawing $\Gamma$ is crossing free, the point $m_j$ is closer to the point $b$ than the point $m_j'$. Therefore, the triangle $bm_im_{i+1}$ contains the point $m_j$ in its interior. Since $\Gamma$ is crossing-free, all the remaining vertices of $C$ also lie in the interior of $bm_im_{i+1}$. It follows that the ten lines $bm_k$, $1\le k\le 10$ are pairwise different, and each of them is different from the line $m_im_{i+1}$. This implies that we need at least $11$ lines to cover $\Gamma$, a contradiction. Thus, the medium vertices appear in $\Gamma$ around the point $b$ in their innate order along $C$. In particular, the point $b$ belongs to the part $B$ of the plane bounded by $C$, and the segments $bm_i$, $1\le i\le10$, split $B$ into ten triangles $bm_im_{i+1}$, $0\le i\le 9$. It follows that for each line $\ell$ passing through the point $b$, the intersection $\ell\cap B$ is a segment. \begin{claim}\label{cl:small-B} All small vertices lie outside~$B$. \end{claim} \begin{subproof} Assume that a small vertex $s$ is drawn in $B$. Then $s$ is contained inside of a triangle $bm_im_{i+1}$ for some $i$. However, in this case $s$ can be adjacent only to $m_i$ and $m_{i+1}$, and to no third medium vertex, a contradiction. \end{subproof} Let $\mathcal{L}$ be the cover of $\Gamma$ by $r$ lines. Furthermore, let $\mathcal{L}_b$ consist of the lines $\ell$ in $\mathcal{L}$ covering an edge $bm_i$ for some $1\le i\le10$. Denote $r_b=|\mathcal{L}_b|$ and note that $r_b\ge 5$. \begin{claim}\label{cl:L_b} Let $s$ be a small vertex. Then $\mathcal{L}_b$ covers at most one edge incident to~$s$. \end{claim} \begin{subproof} If a line in $\mathcal{L}_b$ covers an edge incident to $s$, it passes through the points $s$ and $b$ and is, therefore, unique. Suppose that such a line exists and let $\ell$ denote it. Recall that the intersection $\ell\cap B$ is a segment. Recall also that, by Claim \ref{cl:small-B}, the point $s$ lies outside $B$. Since $s$ is adjacent only to medium vertices, all lying on $C\subset B$, the line $\ell$ covers at most one edge incident to~$s$. \end{subproof} Let $\mathcal{L}_m$ consist of the lines in $\mathcal{L}$ covering the cycle $C$. Note that $\mathcal{L}_m\subseteq\mathcal{L}\setminus\mathcal{L}_b$ and, hence, $r_m=|\mathcal{L}_m|\le r-r_b\le 5$. The cycle $C$ is drawn as a closed polyline $\hat C$ with $3\le r_C\le 10$ corners. Therefore, $$3\le r_m\le 5.$$ The upper bound for $r_m$ implies the following fact. \begin{claim}\label{cl:mostone} Each line in $\mathcal{L}_m$ covers exactly one side of $\hat C$, and $r_C=r_m$. \end{claim} Set $\mathcal{L}_s=\mathcal{L}\setminus(\mathcal{L}_b\cup \mathcal{L}_m)$ and denote $r_s=|\mathcal{L}_s|$. Note that $r_s\le r-r_b-r_m\le 2$. We call a line in $\mathcal{L}_s$ \emph{special}. Any edge of $G$ not covered by lines from $\mathcal{L}_b\cup \mathcal{L}_m$ will be called \emph{special} too. Thus, a special edge has to be covered by a special line. Note also that every special edge connects a small and a medium vertex. \begin{claim}\label{cl:L_m} Suppose that $r_m\le 4$. If $s$ is a small vertex, then a line $\ell\in\mathcal{L}_m$ covers at most one edge incident to~$s$. \end{claim} \begin{subproof} The bound $r_C=r_m\le 4$ implies that the intersection $\ell\cap B$ is a segment. Suppose that $\ell$ passes through $s$. It follows that $\ell$ can contain at most one of the three medium vertices adjacent to $s$, because all of them lie on $\hat C$ whereas $s$ lies outside $B$ by Claim~\ref{cl:small-B}. \end{subproof} \begin{claim}\label{cl:r_m3} $r_m\ne3$. \end{claim} \begin{subproof} Assume, to the contrary, that $r_m=3$. Then $r_C=3$, and the family $\mathcal{L}_m$ consists of the three lines containing the sides of $\hat C$. If a small vertex $s$ belongs to two lines from the family $\mathcal{L}_m$, then $s$ coincides with one of vertices of $\hat C$, which is impossible. Therefore, $s$ is covered by at most one line from $\mathcal{L}_m$. By Claim \ref{cl:L_m}, this line can cover at most one edge incident to $s$. Along with Claim \ref{cl:L_b} this implies that the family $\mathcal{L}_b\cup \mathcal{L}_m$ covers at most two edges incident to $s$. Thus, for each small vertex $s$, there exists an edge $e(s)$ incident to $s$ that has to be covered by a special line. Since we have $r_s\le 2$ special lines covering five special edges $e(s)$, there exists a special line $\ell$ containing at least three of these edges, say $e(s_1)$, $e(s_2)$, and $e(s_3)$. The three points $s_1$, $s_2$, and $s_3$ split the straight line $\ell$ into four parts $\ell^i$, $1\le i\le 4$. Since the triangle $B$ is a convex set that, by Claim \ref{cl:small-B}, contains no small vertex, it can intersect only one of these parts, say $\ell^j$. The part $\ell^j$ has one or two endpoints, say, $s_1$, or $s_1$ and $s_2$. Then the edge $e(s_3)$, connecting $s_3$ with $C$ along $\ell$, must contain one of the vertices $s_1$ and $s_2$, a contradiction. \end{subproof} \begin{claim}\label{cl:r_m4} $r_m\ne4$. \end{claim} \begin{subproof} Assume, to the contrary, that $r_m=4$. Then $r_C=4$ and the family $\mathcal{L}_m$ consists of the four lines containing the four sides of quadrilateral~$\hat C$. Assume first that this quadrilateral is not convex. Note that $B$ contains all intersection points of the lines from $\mathcal{L}_m$. This implies that each small vertex $s$ can be covered by at most one line from $\mathcal{L}_m$. Recall that, by Claim \ref{cl:L_m}, such a line can cover at most one edge incident to $s$. Along with Claim \ref{cl:L_b} this implies that the family $\mathcal{L}_b\cup \mathcal{L}_m$ covers at most two edges incident to $s$. Thus, for each small vertex $s$, there exists an edge $e(s)$ incident to $s$ that has to be covered by a special line. Since $r_s\le r-r_b-r_m\le 1$, there is a single special line $\ell$, which covers all five special edges $e(s)$. The five small points split $\ell$ into six parts. The quadrilateral $B$ consists of two triangles, that contain no small vertices by Claim \ref{cl:small-B}. It follows that $B$ can intersect at most two of the six parts of $\ell$. These two parts have at most four endpoints, and hence there is a small vertex $s$ different from them. Since the edge $e(s)$ contains no small vertex except $s$ and, in particular, no endpoint of the two intersected parts, it cannot reach no medium vertex on $\hat C$ along $\ell$, a contradiction. Now, assume that the quadrilateral $\hat C$ is convex. The four lines from the family $\mathcal{L}_m$ (which are the straight line extensions of the sides of $B$) can generate at most ${4 \choose 2}=6$ intersection points. Four of them are vertices of $B$. Therefore, at most two small vertices can be intersections of two lines from $\mathcal{L}_m$. Let $s_1$, $s_2$, and $s_3$ be three remaining small vertices. Thus, each $s_i$ can be covered by at most one line from $\mathcal{L}_m$, which, by Claim \ref{cl:L_m}, can cover at most one edge incident to $s_i$. Along with Claim \ref{cl:L_b} this implies that the family $\mathcal{L}_b\cup \mathcal{L}_m$ covers at most two edges incident to $s_i$. Thus, for each $i=1,2,3$, there exists an edge $e(s_i)$ incident to $s_i$ that has to be covered by a special line. Since there is a single special line $\ell$, it covers all three special edges $e(s_i)$. The three points $s_1$, $s_2$, and $s_3$ split $\ell$ into four parts $\ell^i$, $1\le i\le 4$. Since the quadrilateral $B$ is a convex that, by Claim \ref{cl:small-B}, contains no small vertex, $B$ can intersect only one of these parts, say $\ell^j$. One of the three small vertices $s_i$, say $s_1$, is different from any endpoint of $\ell^j$. Again, the edge $e(s_1)$ cannot reach $\hat C$ along $\ell$ without crossing another small vertex, which is an endpoint of $\ell^j$, a contradiction. \end{subproof} We conclude from Claims \ref{cl:r_m3} and \ref{cl:r_m4} that $r_m>4$ and, therefore, $r_m=5$. This implies that $r_s=0$, $\mathcal{L}_s=\emptyset$, and the drawing $\Gamma$ is covered by $\mathcal{L}_b\cup \mathcal{L}_m$. Since each small vertex $s$ has degree 3, in the drawing $\Gamma$, this vertex is the intersection point of at least two lines from $\mathcal{L}$. Note that two of these lines must be in $\mathcal{L}_m$. Indeed, assume the opposite. Claim \ref{cl:L_b} implies that, in this case, $s$ is the intersection point of exactly two lines, one line $\ell$ from $\mathcal{L}_m$ and another line $\ell'$ from $\mathcal{L}_b$, where $\ell$ covers two edges incident to $s$ and where $\ell'$ covers one such edge. Let $s$ be adjacent to the medium vertices $m_{i-1}$, $m_i$, and $m_{i+1}$. Since $sm_{i-1}m_i$ and $sm_im_{i+1}$ are triangles, we see that the vertices $m_{i-1}$, $s$, and $m_{i+1}$ lie, in this order, on a line $\ell\in\mathcal{L}_m$. Moreover, $\ell$ cannot contain $m_i$. Since $\ell$ contains an edge between two medium vertices, $\ell$ contains a side of $\hat C$ and, in addition, a non-incident corner of $\hat C$ (one of the vertices $m_{i-1}$ and $m_{i+1}$). In this case, the convex hull of $B$ must be a triangle, and every intersection point of two lines in $\mathcal{L}_m$ will belong to $B$. Note that such a configuration is possible for only one small vertex $s$. Thus, any other small point has to be the crossing point of two lines in $\mathcal{L}_m$ and must belong to $B$, contradicting Claim~\ref{cl:small-B}. Thus, each of the five small vertices is the intersection point of two lines from $\mathcal{L}_m$. By Claim~\ref{cl:small-B}, the two lines extend two non-adjacent sides of $\hat C$. Recall that $r_C=5$ by Claim \ref{cl:mostone}. This easily implies that $\hat C$ has exactly $5$ pairs of non-adjacent sides. Therefore, the extensions of the sides in each pair intersect and, moreover, the intersection point lies outside $B$. This implies that $B$ is a convex pentagon. As a consequence of the last fact, no three lines from $\mathcal{L}_m$ can share a common point. Therefore, it is impossible that each edge incident to a small vertex $s$ is covered by its own line in $\mathcal{L}_m$. It is also impossible that these three edges are covered by two lines in $\mathcal{L}_m$. Indeed, if $s$ be adjacent to $m_{i-1}$, $m_i$, and $m_{i+1}$, then this would mean that $m_{i-1}$, $s$, and $m_{i+1}$ lie on a line in $\mathcal{L}_m$, which is excluded by the argument above. It follows that each small vertex $s$ is the crossing point of exactly two lines from $\mathcal{L}_m$ and (at least) one line in $\mathcal{L}_b$, that we denote by~$\ell_s$. The equality $r_m=5$ implies that $r_b=5$ (and, hence, $r=10$). Since each of the five lines in $\mathcal{L}_b$ can intersect $\hat C$ in at most 2 points and there are 10 medium vertices, each $\ell\in\mathcal{L}_b$ intersects $\hat C$ in exactly 2 points, representing two medium vertices $m(\ell)$ and $m'(\ell)$. The convexity of $B$ also implies that this pentagon is contained in the angle created by the extensions of any pair of its non-adjacent sides. Therefore, each side $l$ of $B$ is contained in the triangle $T$ created by the straight line extension of $l$ and the two non-adjacent sides of $B$. This implies that, for each side $l'$ of $B$ adjacent to $l$, the triangle $T'$ cut from $T$ by $l'$ shares with $B$ only the side $l'$. Let $s$ be the vertex of $T'$ opposite to its side $l'$. Note that $s$ is a small vertex. The line $\ell_s\in\mathcal{L}_b$ crosses the boundary $\hat C$ of $B$ at the points $m(\ell_s)$ and $m'(\ell_s)$, and one of these points must be an inner point of $l'$. Thus, every side of $B$ contains a medium vertex as an inner point. Also, the five corners of $\hat C$ must be medium vertices. It readily follows that, for each $\ell\in\mathcal{L}_b$ (that crosses $b$ by definition and contains each own small vertex), one of the medium points $m(\ell)$ and $m'(\ell)$ is a vertex of $B$ and the other is an inner point of the opposite side of~$B$. We now see that, as claimed, three vertices of $G$ are collinear in~$\Gamma$ if and only if they are collinear in the drawing in Fig.~\ref{fig:g-unb}. \end{proof} \section{Computational Complexity of the Plane Cover Number} \label{sec:complexity-rho23} While graphs with $\rho_3^2$-value~1 are exactly the planar graphs, recognizing graphs with $\rho_3^2$-value $k$, for any $k > 1$, immediately becomes NP-hard. This requires a detour via the NP-hardness of a new problem of planar 3-SAT type, which we think is of independent interest. \begin{definition}[\cite{mr-mwtnp-JACM08}] Let $\Phi$ be a Boolean formula in 3-CNF. The \emph{associated graph} of~$\Phi$, $G(\Phi)$, has a vertex $v_x$ for each variable $x$ in $\Phi$ and a vertex $v_c$ for each clause $c$ in $\Phi$. There is an edge between a variable-vertex $v_x$ and a clause-vertex $v_c$ if and only if $x$ or $\neg x$ appears in $c$. The Boolean formula $\Phi$ is called \emph{planar} if $G(\Phi)$ is planar. \end{definition} Kratochv\'il et al.~\cite{kln-nctg-SIAMJDM91} proved NP-hardness of \PCTSAT, which is a variant of \PTSAT where the clauses are connected by a simple cycle in the associated graph without introducing crossings. Their reduction even shows hardness of a special case, where all clauses consist of at least two variables. We consider only this special case. Mulzer and Rote~\cite{mr-mwtnp-JACM08} proved NP-hardness of \PPOITSAT, another variant of \PTSAT where all literals are positive and the assignment must be such that, in each clause, exactly one of the three variables is true. We combine proof ideas from the two to show NP-hardness of the following new problem. \begin{definition} In the \PPCOITSAT problem, we are given a collection $\Phi$ of clauses each of which contains exactly three variables, together with a planar embedding of $G(\Phi) + C$ where $C$ is a cycle through all clause-vertices. Again, all literals are positive. The problem is to decide whether there exists an assignment of truth values to the variables of $\Phi$ such that exactly one variable in each clause is true. \end{definition} \begin{lemma}\label{lem:PosPlaCycOneNPC} \PPCOITSAT is NP-complete. \end{lemma} \begin{proof} It is easy to see that the problem is in NP as it is a constrained version of the NP-complete \PPOITSAT problem. To show NP-hardness we reduce from \TSAT and use the construction by Kratochv\'il et al.~\cite{kln-nctg-SIAMJDM91} to get an equivalent instance of \PCTSAT (represented by a formula $\Phi$) together with a cycle $C$ through the clause-vertices and a planar embedding $\Gamma$ of the graph $G(\Phi) + C$. Remember that each clause contains at least two variables in this construction. We iteratively replace the clauses in $\Gamma$ by positive \OITSAT clauses while maintaining the cycle through these clauses. Hence, we ultimately obtain a \PPCOITSAT instance. Our reduction uses some of the gadgets from the proof of Mulzer and Rote~\cite{mr-mwtnp-JACM08}. We show how to maintain the cycle when inserting these gadgets. Some of the gadgets need to be modified to get the cycle in place, others can be simplified slightly as we do not insist on a rectilinear layout. We consider the interaction between the cycle and the clauses. In $\Phi$, every clause consists of two or three literals and thus there are two or three faces around a clause in~$\Gamma$. There are two options for the cycle: (O1) it can ``touch'' the clause, that is, the incoming and the outgoing edge are drawn in the same face; (O2) it can ``pass through'' the clause, that is, incoming and outgoing edge are drawn in different faces. We use the same inequality gadget as Mulzer and Rote; see Fig.~\ref{fig:inequalityGadget} for how we add the cycle. There is no need to consider their equality gadget as we can simply replace it by two inequalities. Fig.~\ref{fig:3clauseGadget} is a simplified version of Mulzer's gadget for a clause with three literals, again with the cycle through the clauses. We removed some of the variables as we do not aim at a rectilinear drawing of the graph. Additionally, we replaced the equality gadget by two inequalities. If some of the input variables are negated, we can simply add another variable-vertex and an inequality gadget. The four clauses in the inequality gadget can obviously be included on the cycle by a short detour. Finally, we have to consider clauses that consist of only two literals. The corresponding construction of Mulzer and Rote did not allow us to add a cycle through the clauses. Therefore, we use a new gadget; see Fig.~\ref{fig:2clauseGadget}. Clearly, we can again add inequality gadgets to negate the input variables. We show that the clause in this gadget is satisfiable iff $x \lor y$ holds: If both $x$ and $y$ are false, $b$ and $c$ are true and hence more than one variable in the clause is true. If $x$ and $y$ are true, $b$ and $c$ are false and the clause can be fulfilled by setting $a$ to true. If $x$ and $y$ have distinct truth values, $b$ and $c$ also have distinct truth values and thus the clause can be fulfilled by setting $a$ to false. In summary we constructed a \PPCOITSAT instance that is satisfiable if and only if the given \TSAT formula is satisfiable and hence showed NP-completeness of this problem. \end{proof} \newcommand{\NPgadgetTikzSettings}{ \tikzset{ variableNodes/.append style={ every node/.append style={draw,circle,fill=white}, inner sep=0pt, minimum size=15pt }, ineqNodes/.append style={ draw,rectangle,fill=white, inner sep=-5pt, minimum size=13pt }, gadgetBg/.append style={fill=black!15} } } \newcommand{\NPdrawclauseconnections}[1]{ \foreach \clause/\x/\y/\a/\b/\c in #1 { \coordinate (\clause) at (\x,\y); \draw (\a) -- (\clause); \draw (\b) -- (\clause); \draw (\c) -- (\clause); } } \newcommand{\NPdrawclauses}[1]{ \foreach \clause/\null in #1 { \draw[black,fill=white] ($ (\clause) - (0.15,0.15) $) rectangle ($ (\clause) + (0.15,0.15) $); } } \newcommand{\NPdrawineqs}[1]{ \foreach \a/\b in {#1} { \draw (\a) -- (\b); \node[ineqNodes] (ineq\a\b) at ($ (\a)!0.5!(\b) $) {$\neq$}; } } \begin{figure}[tb] \NPgadgetTikzSettings \begin{subfigure}[b]{0.56\textwidth} \normalsize \centering \begin{tikzpicture}[scale=0.8,gadgetBg/.append style={fill=black!15}] \coordinate (xc) at (0,-0.5); \coordinate (yc) at (4,-0.5); \fill[gadgetBg] (xc) -- ++(0.8,1.3) -- ++(2.4,0) -- (yc) -- ++(-0.8,-1.7) -- ++(-2.4,0) -- cycle; \begin{scope}[variableNodes] \node[fill=white] at (xc) (x) {$x$}; \node[fill=white] at (yc) (y) {$y$}; \node at (2,-0.25) (a) {$a$}; \node at (3,-1.75) (b) {$b$}; \node at (2,-1) (c) {$c$}; \node at (1,-1.75) (d) {$d$}; \end{scope} \newcommand{\clauses} axy/2/0.5/a/x/y, acd/1/-1/a/c/d, abc/3/-1/a/b/c, bcd/2/-1.75/b/c/d} \NPdrawclauseconnections{\clauses} \draw[dashed] ($ (axy) + (-2.5,-2.125) $) node[anchor=south east,xshift=0.1cm] {O1} -- (axy) -- (abc) -- (bcd) -- (acd) -- ++(-1,-0.85) (axy) -- ++(-2.5,0) node[anchor=south west] {O2}; \NPdrawclauses{\clauses} \draw[densely dotted] (x) -- ++(-1,0) (y) -- ++(1,0); \end{tikzpicture} \caption{Mulzer and Rote's gadget for $x \neq y$.} \label{fig:inequalityGadget} \end{subfigure} \hfill \begin{subfigure}[b]{0.43\textwidth} \normalsize \centering \begin{tikzpicture}[scale=0.8] \coordinate (xc) at (-2,0); \coordinate (yc) at (2,0); \fill[gadgetBg] (xc) -- ++(1,1.5) -- ++(2,0) -- (yc) -- ++(-1,-1.5) -- ++(-2,0) -- cycle; \begin{scope}[variableNodes] \node[fill=white] at (xc) (x) {$x$}; \node[fill=white] at (yc) (y) {$y$}; \node at (-1,-0.6) (a) {$a$}; \node at (0,1) (b) {$b$}; \node at (0,-1) (c) {$c$}; \end{scope} \newcommand{\clauses} abc/0/0/a/b/c} \NPdrawclauseconnections{\clauses} \NPdrawineqs{b/x, c/y} \draw[dashed] ($ (ineqbx)!-0.7!(ineqcy) $) -- (ineqbx) -- (abc) -- (ineqcy) -- ($ (ineqcy)!-0.7!(ineqbx) $) node [anchor=south west,xshift=-0.2cm] {O2} (ineqcy) -- ++(0.5,2) node [anchor=north west] {O1}; \NPdrawclauses{\clauses} \draw[densely dotted] (x) -- ++(-1,0) (y) -- ++(1,0); \end{tikzpicture} \caption{Our gadget for the clause $(x \lor y)$.} \label{fig:2clauseGadget} \end{subfigure} \begin{subfigure}[b]{0.59\textwidth} \normalsize \centering \begin{tikzpicture}[scale=0.8] \coordinate (xc) at (0,4); \coordinate (yc) at (-4.15,0); \coordinate (zc) at (4.15,0); \fill[gadgetBg] ($ (xc) + (2,0) $) -- (xc) -- ++(-2,0) -- (yc) -- (zc) -- cycle; \begin{scope}[variableNodes] \node[fill=white] at (xc) (x) {$x$}; \node[fill=white] at (yc) (y) {$y$}; \node[fill=white] at (zc) (z) {$z$}; \node at (-1.95,2.5) (a) {$a$}; \node at (-2.75,1) (q) {$q$}; \node at (-1.3,1) (b) {$b$}; \node at (-0.8,2.5) (u) {$u$}; \node at (0.75,2.5) (e) {$e$}; \node at (0.75,0.5) (c) {$c$}; \node at (2.25,1) (d) {$d$}; \node at (1.5,3) (r) {$r$}; \end{scope} \newcommand{\clauses} aux/-1.3/3.25/a/x/u, abq/-1.95/1.625/a/b/q, buy/-0.8/0.4/b/u/y, cdr/1.5/1.5/c/d/r} \NPdrawclauseconnections{\clauses} \NPdrawineqs{u/e, c/e, d/z} \draw[dashed] ($ (aux) + (4.5,0.6) $) node[anchor=south east,xshift=-0.1cm] {O1} -- (aux) -- ($ (a) + (0.6,0) $) -- (abq) -- ($ ($ (abq)!0.5!(buy) $) + (-0.4,-0.4) $) -- (buy) -- (ineque) -- (ineqce) -- (cdr) -- ($ (d) + (-0.5,-0.5) $) -- (ineqdz) -- ++(0,2) (aux) -- ++ (-2.5,0) node[anchor=south west,xshift=0.1cm] {O2}; \NPdrawclauses{\clauses} \draw[densely dotted] (x) -- ++(0,1) (y) -- ++(0,1) (z) -- ++(0,1); \end{tikzpicture} \caption Mulzer and Rote's gadget for the clause: $x \lor y \lor z$. } \label{fig:3clauseGadget} \end{subfigure} \hfill \begin{subfigure}[b]{0.37\textwidth} \normalsize \centering \begin{tikzpicture} \coordinate (v1) at (-0.4,0); \coordinate (v2) at (0,0); \coordinate (v3) at (0.4,0); \draw (0,0) ellipse (0.7 and 0.3); \coordinate (o1) at (0.65,1); \coordinate (o2) at (0.65,-1); \coordinate (o3) at (-0.65,-1); \coordinate (o4) at (-1,2); \foreach \i/\style in {1/,2/,3/} { \fill[\style] (o\i) circle(2pt); \foreach \k in {1,2,3} { \draw[\style] (o\i) -- (v\k); } } \fill[] (o4) circle(2pt); \foreach \k in {1,2,3} { \draw[thick] (o4) -- (v\k); } \begin{scope}[] \fill (v1) circle(2pt); \fill (v2) circle(2pt); \fill (v3) circle(2pt); \node[anchor=east,xshift=-0.25cm,text width=0.5cm] at (v1) {$v_1$,\linebreak$v_2$,\linebreak$v_3$}; \draw (v1) -- (v2) -- (v3); \end{scope} \node[anchor=west] at (o4) {$u_1$}; \node[anchor=west] at (o1) {$u_2$}; \node[anchor=west] at (o2) {$u_3$}; \node[anchor=east] at (o3) {$u_4$}; \begin{scope}[shift={(2,0)},scale=\fignphardnessscale] \coordinate (symb) at (0,0); \coordinate (b) at (0,1.0); \coordinate (c1) at (0.4-0.2,0); \coordinate (c2) at (0.4,0); \coordinate (c3) at (0.4+0.2,0); \draw (c2) ellipse (0.4 and 0.2); \foreach \k in {1,2,3} { \draw (c\k) -- (b); \fill (c\k) circle(1.5pt); } \draw (c1) -- (c3); \end{scope} \fill (b) circle(2pt); \node[anchor=west] at (b) {$u_1$}; \draw[->,very thick] ($ (v3)!0.3!(c1) $) -- ($ (v3)!0.7!(c1) $); \end{tikzpicture} \caption{The intersection line gadget and how it is depicted in Fig.~\ref{fig:rho-np-graph-construction}. } \label{fig:intersectionLineGadget} \end{subfigure} \caption Gadgets for our NP-hardness proof. Variables are drawn in circles, clauses are represented by squares. The boxes with the inequality sign represent the inequality gadget. The dashed line shows how we weave the cycle through the clauses. There are two variants of the cycle, which differ only in one edge: (O1) The cycle touches the gadget; (O2) the cycle passes through the gadget. } \end{figure} We now introduce what we call the \emph{intersection line gadget}; see Fig.~\ref{fig:intersectionLineGadget}. It consists of a $K_{3,4}$ in which the vertices in the smaller set of the bipartition---denoted by $v_1$, $v_2$, and $v_3$---are connected by a path. We denote the vertices in the other set by $u_1$, $u_2$, $u_3$, and $u_4$. \begin{lemma}\label{lem:intersectionLineGadget} If a graph containing the intersection line gadget can be embedded on two non-parallel planes, the vertices $v_1$, $v_2$, and $v_3$ must be drawn on the intersection line of the two planes while the vertices $u_1$, $u_2$, $u_3$, and $u_4$ cannot lie on the intersection line. \end{lemma} \begin{proof} For a contradiction, assume that the middle vertex $v_2$ is not drawn on this intersection line, but in another position on plane $P$. This implies that its whole neighborhood $N(v_2)$, which consists of all other vertices of the gadget, has to be placed on $P$, too. But $N(v_2) + v_2$ is a supergraph of $K_{3,3}$ and thus cannot be drawn in one plane. Hence, $v_2$ has to be drawn on the intersection line. Now assume that $v_1$ lies on $P$, but not on the intersection line. Then, again, its neighborhood -- including the vertices $u_1$, $u_2$, and $u_3$ -- is also drawn on $P$. At most two of these vertices can be drawn on the intersection line because they are all neighbors of $v_2$. Therefore, one of them, say $u_3$, lies on $P$ without the intersection line. As $v_3$ is a neighbor of $u_3$, it is also placed on $P$. Again we draw a supergraph of $K_{3,3}$ on $P$, a contradiction. By applying a symmetric argument to~$v_3$, we can infer that $v_1$, $v_2$, and $v_3$ have to be drawn on the intersection line. Since $u_1, u_2, u_3, u_4$ are adjacent to all of the three vertices, they clearly cannot lie on the intersection line. \end{proof} \begin{theorem} \label{thm:rhoeq2} Let $G$ be a graph. Deciding whether $\rho_3^2(G) = 2$ is NP-hard. \end{theorem} \begin{proof} We show NP-hardness by reduction from \TSAT and use the construction from Lemma~\ref{lem:PosPlaCycOneNPC} to get an equivalent instance $\Phi$ of \PPCOITSAT. By our construction we also get a cycle $C=(c_1, \dots, c_n)$ through the clause-vertices in $\Phi$ and a planar combinatorial embedding of $G(\Phi) + C$. This embedding gives us a partition of the vertices that are not part of $C$: $V_1$ are the vertices that are placed inside of $C$, and $V_2$ are the vertices that are placed outside of $C$. We now draw $c_1, \dots, c_n$ on a straight line $\ell$. We add a vertex $v_1$ above $\ell$, and $v_2$ below $\ell$. Using Tutte's theorem \cite{t-hdg-PLMS63}, we can draw $V_1$ in the polygon $(c_1, c_n, v_1)$ above $\ell$ with straight-line edges, and $V_2$ in the polygon $(c_1, c_n, v_2)$ below $\ell$ using straight-line edges. To be able to apply this theorem, we choose an arbitrary inner triangulation of each of the partitions. This yields the straight-line drawing $\Gamma$ of $G(\Phi) + C - \{c_n, c_1\}$. We build the graph $G^*(\Phi)=(V,E)$ as follows: Each clause $c$ is represented by a clause gadget that consists of three vertices $v^1_c$, $v^2_c$, and $v^3_c$ that are connected by a path. Let $x$ be a variable that occurs in the clauses $c_{i_1}, c_{i_2}, \dots, c_{i_l}$ with $i_1 < i_2 < \dots < i_l$. Each variable $x$ is represented by a tree with the vertices $w^x_1, w^x_2, \dots, w^x_l$ that are connected to the relevant clauses, and the vertices $v^x_1, v^x_2, \dots, v^x_l$ that lie on a path and are connected to these vertices. To each of the vertices $v^x_1, v^x_2, \dots, v^x_l$ one instance of the intersection line gadget is connected. Finally, we add a blocking caterpillar that consists of the vertices $v^\mathrm{b}_1, \dots, v^\mathrm{b}_n$ and connects the clauses in the cyclic order of $C$. See Fig.~\ref{fig:rho-np-graph-construction} for an example of this construction. \begin{figure}[tb] \centering \begin{tikzpicture}[scale=\fignphardnessscale] \fill[black!20] {[rounded corners=0.5cm] (-1.25,3.75) -- (-1.25,2) } -- (3.1,2) .. controls (3.4,2) and (3.3,2.75) .. (3.6,2.75) -- (13.2,2.75) .. controls (13.5,2.75) and (13.5,2) .. (13.8,2) {[rounded corners=0.5cm] -| (16,3.75) -- cycle}; \foreach \x/\i in {0/1,2.5/2,5/3,7.5/4,10/5,12.5/6,15/7} { \coordinate (v1\i) at (\x-0.4,0); \coordinate (v2\i) at (\x,0); \coordinate (v3\i) at (\x+0.4,0); \draw (\x-0.65,0.25) rectangle (\x+0.65,-0.25); \draw (v1\i) -- (v2\i) -- (v3\i); } \coordinate (o1) at (0,1); \coordinate (o2) at (2.5,1); \coordinate (o3) at (5,1); \coordinate (o4) at (7.5,1); \coordinate (o5) at (10,1); \coordinate (o6) at (12.5,1); \coordinate (o7) at (15,1); \foreach \i in {1,2,...,7} { \fill (o\i) circle(2pt); \foreach \k in {1,2,3} { \draw[thick] (o\i) -- (v\k\i); } } \draw[thick] (o1) -- (o2) -- (o3) -- (o4) -- (o5) -- (o6) -- (o7); \foreach \symb/\col/\coords/\dist/\connections in {a/red!50/{1/1/-2/-1,2/6/-2/-1,3/15/-2/0.75}/-0.5/{1/1,3/2,7/3}, b/blue/{1/0/-1/-0.75,2/2.5/-1/-0.75,3/5/-1/-0.75}/-0.5/{1/1,2/2,3/3}, c/red!50/{1/3.5/2/0.75,2/13.25/2/-0.75}/0.5/{2/1,6/2}, d/blue/{1/8.5/1.5/-0.55,2/9/1.5/0.75,3/11.5/1.5/-0.75}/0.5/{4/1,5/2,6/3}, e/red!50/{1/8/-1.5/-0.75,2/9.5/-1.5/-0.75}/-0.5/{4/1,5/2}, f/blue/{1/5.75/1.5/-0.75,2/6.5/1.5/0.55}/0.5/{3/1,4/2}, g/blue/{1/10.5/-1.5/0.55,2/12.5/-1.5/-0.55,3/14/-1.5/-0.6}/-0.5/{5/1,6/2,7/3}, h/blue/{1/1/2.5/-1.5,2/1.5/2.5/1.4,3/13.75/2.5/1.5}/0.5/{1/1,2/2,7/3}} { \begin{scope}[\col] \foreach \i/\x/\y/\gadgdist in \coords { \coordinate (\symb\i) at (\x,\y); \coordinate (\symb b\i) at (\x,\y+\dist); \coordinate (\symb c1\i) at (\x+\gadgdist-0.2,\y); \coordinate (\symb c2\i) at (\x+\gadgdist,\y); \coordinate (\symb c3\i) at (\x+\gadgdist+0.2,\y); \draw (\symb c2\i) ellipse (0.4 and 0.2); \foreach \k in {1,2,3} { \draw (\symb c\k\i) -- (\symb b\i); \fill (\symb c\k\i) circle(1.5pt); } \draw (\symb c1\i) -- (\symb c3\i); } \foreach \i/\y in \connections { \fill (\symb\y) circle(2pt); \fill (\symb b\y) circle(2pt); \draw (\symb\y) -- (\symb b\y); \foreach \k in {1,2,3} { \draw (\symb\y) -- (v\k\i); } } \draw (\symb b1) \foreach \i/\x/\y in \coords { -- (\symb b\i)}; \end{scope} } \foreach \i in {1,...,7} { \fill (v1\i) circle(2pt); \fill (v2\i) circle(2pt); \fill (v3\i) circle(2pt); } \begin{scope}[black] \node[anchor=south] at ($ (hb1) + (-0.1,0) $) {$v^x_1$}; \node[anchor=south] at ($ (hb2) + (0.1,0) $) {$v^x_2$}; \node[anchor=south] at (hb3) {$v^x_3$}; \node[anchor=east] at (h1) {$w^x_1$}; \node[anchor=west] at ($ (h2) + (0,-0.15) $) {$w^x_2$}; \node[anchor=west] at ($ (h3) + (0,-0.1) $) {$w^x_3$}; \node[anchor=south] at ($ ($(hb2)!0.5!(hb3)$) + (0,0) $) {$x$}; \end{scope} \node[anchor=south] at (o1) {$v^{\mathrm{b}}_1$}; \node[anchor=south] at (o2) {$v^{\mathrm{b}}_2$}; \node[anchor=south] at (o7) {$v^{\mathrm{b}}_7$}; \node[anchor=east] at ($ (v11) + (-0.09,0) $) {$v^1_{c_1}$}; \node[anchor=west] at ($ (v31) + (+0.13,0) $) {$v^3_{c_1}$}; \node[anchor=east] at ($ (v12) + (-0.09,0) $) {$v^1_{c_2}$}; \node[anchor=west] at ($ (v32) + (+0.13,0) $) {$v^3_{c_2}$}; \node[anchor=east] at ($ (v17) + (-0.09,0) $) {$v^1_{c_7}$}; \node[anchor=west] at ($ (v37) + (+0.13,0) $) {$v^3_{c_7}$}; \end{tikzpicture} \caption{Example for the graph $G^*(\Phi)$ constructed from a \PPCOITSAT instance $\Phi$. The clauses are depicted by the black boxes with three vertices inside and denoted by $c_1, \dots, c_7$ from left to right. The variables are drawn in pale red (true) and blue (false). The variable $x$ is highlighted by a shaded background. The ellipses attached to variable-vertices stand for the intersection line gadget (see Fig.~\ref{fig:intersectionLineGadget}). The depicted vertices incident to the gadget correspond to~$u_1$ in Fig.~\ref{fig:intersectionLineGadget}; $u_2$ to $u_4$ are not shown. If $\Phi$ is true, one plane covers the blue variable gadgets and one plane covers the blocking caterpillar (bold black) and the pale red variable gadgets.} \label{fig:rho-np-graph-construction} \end{figure} We are going to show that the formula $\Phi$ has a truth assignment with exactly one true variable in each clause if and only if the graph $G^*(\Phi)$ can be drawn onto two planes. First, assume that the formula $\Phi$ has a \OITSAT assignment, that is, an assignment where exactly one variable is true in each clause. Then we can draw it onto two intersecting planes $\PT$, $\PF$ in the following way: We place the clause-vertices on the intersection line of the two planes in the order given by the cycle $C$. This intersection line splits each of the two planes into two half-planes. On the plane $\PT$ we place the variable-vertices that are set to true and the edges connecting to the clause-vertices; see Fig.~\ref{fig:rho-np-true}. Obviously, we can draw the edges without crossings, because our \OITSAT instance is planar and each clause is connected to only one variable. We remark that the variables are possibly placed on both half-planes of $\PT$, but we use an embedding where each variable is fixed to only one half-plane. Since the true variables cover only one side of each clause gadget, we can attach the corresponding vertex of the blocking caterpillar to the other side. Note that the path connecting the vertices $v_i^\mathrm{b}$ can cross the intersection line between the clause gadgets because all the edges incident to variable-vertices of one variable stay inside one of the half-planes. On the plane $\PF$ we place the false variables' vertices; see Fig.~\ref{fig:rho-np-false}. Each clause contains exactly two false variables, which we obviously have to place on different half-planes. If both variables are on the same side of the cycle $C$ in the given planar embedding $\Gamma$, we draw one of the vertices $w^x_i$ onto the other side. Since we have only two variables per clause, we can draw the edge $\{v^x_i, w^x_i\}$, which connects the two half-planes, directly alongside the clause gadget without destroying planarity. For the other direction, we assume that we are given a drawing of $G^*(\Phi)$ onto two planes. Lemma~\ref{lem:intersectionLineGadget} shows that the clause-vertices lie on the intersection line of the two planes, while the variable-vertices and the blocking caterpillar cannot lie on the intersection line. The vertices of each variable completely lie on one plane: Since they are connected, one of them had to be placed on the intersection line otherwise to prevent edges running outside of the planes. Similarly the blocking caterpillar is only on one of the planes; we call this plane $\PT$, the other one $\PF$. To get a \OITSAT assignment for $\Phi$, we now set the variables that are drawn on $\PT$ to true and those on $\PF$ to false. Obviously every clause gadget can have at most one neighbor in each of the four half-planes. Since each clause is adjacent to a vertex of the blocking caterpillar in one of the half-planes of $\PT$, it is connected to at most one variable in $\PT$; that is, each clause contains at most one true variable. On the other hand, only two variables of the clause can be drawn on $\PF$, so there are at most two false variables in each clause. Together this yields that there is exactly one true variable in each clause and thus we constructed a feasible \OITSAT assignment for $\Phi$. \end{proof} \begin{figure}[tb] \begin{subfigure}[b]{\textwidth} \centering \begin{tikzpicture}[scale=\fignphardnessscale] \draw[dashed] (-1,0) -- (16,0); \foreach \x/\i in {0/1,2.5/2,5/3,7.5/4,10/5,12.5/6,15/7} { \coordinate (v1\i) at (\x-0.4,0); \coordinate (v2\i) at (\x,0); \coordinate (v3\i) at (\x+0.4,0); \fill (v1\i) circle(2pt); \fill (v2\i) circle(2pt); \fill (v3\i) circle(2pt); \draw (\x-0.65,0.25) rectangle (\x+0.65,-0.25); \draw (v1\i) -- (v2\i) -- (v3\i); } \coordinate (o1) at (0,1); \coordinate (o2) at (2.5,-1); \coordinate (o3) at (5,1); \coordinate (o4) at (7.5,1); \coordinate (o5) at (10,1); \coordinate (o6) at (12.5,-1); \coordinate (o7) at (15,1); \foreach \i in {1,2,...,7} { \fill (o\i) circle(2pt); \foreach \k in {1,2,3} { \draw (o\i) -- (v\k\i); } } \draw (o1) -- (o2) -- (o3) -- (o4) -- (o5) -- (o6) -- (o7); \foreach \symb/\col/\coords/\dist/\connections in {a/red/{1/1/-2,2/6/-2,3/15/-2}/-0.5/{1/1,3/2,7/3}, c/red/{1/3.5/2,2/13.25/2}/0.5/{2/1,6/2}, e/red/{1/8/-1.5,2/9.5/-1.5}/-0.5/{4/1,5/2}} { \begin{scope}[\col] \foreach \i/\x/\y in \coords { \coordinate (\symb\i) at (\x,\y); \coordinate (\symb{}b\i) at (\x,\y+\dist); } \foreach \i/\y in \connections { \fill (\symb\y) circle(2pt); \fill (\symb{}b\y) circle(2pt); \draw (\symb\y) -- (\symb{}b\y); \foreach \k in {1,2,3} { \draw (\symb\y) -- (v\k\i); } } \draw (\symb{}b1) \foreach \i/\x/\y in \coords { -- (\symb{}b\i)}; \end{scope} } \end{tikzpicture} \caption{Plane $P_\mathrm{T}$ for the instance shown in Fig.~\ref{fig:rho-np-graph-construction}. The true variables are drawn in red. The remaining black vertices and edges form the blocking caterpillar. } \label{fig:rho-np-true} \end{subfigure} \begin{subfigure}[b]{\textwidth} \centering \begin{tikzpicture}[scale=\fignphardnessscale] \draw[dashed] (-1,0) -- (16,0); \foreach \x/\i in {0/1,2.5/2,5/3,7.5/4,10/5,12.5/6,15/7} { \coordinate (v1\i) at (\x-0.4,0); \coordinate (v2\i) at (\x,0); \coordinate (v3\i) at (\x+0.4,0); \fill (v1\i) circle(2pt); \fill (v2\i) circle(2pt); \fill (v3\i) circle(2pt); \draw (\x-0.65,0.25) rectangle (\x+0.65,-0.25); \draw (v1\i) -- (v2\i) -- (v3\i); } \foreach \symb/\col/\coords/\dist/\connections in {b/blue/{1/0/-1,2/2.5/-1,3/5/-1}/-0.5/{1/1,2/2,3/3}, d/blue/{1/8.5/1.5,2/9/1.5,3/11.5/1.5}/0.5/{4/1,5/2,6/3}, f/blue/{1/5/1.5,2/6.75/-1}/0.5/{3/1,4/2}, g/blue/{1/10.5/-1.5,2/12.5/-1.5,3/14/-1.5}/-0.5/{5/1,6/2,7/3}, h/blue/{1/1/2.5,2/1.5/2.5,3/13.75/2.5}/0.5/{1/1,2/2,7/3}} { \begin{scope}[\col] \foreach \i/\x/\y in \coords { \coordinate (\symb\i) at (\x,\y); \coordinate (\symb{}b\i) at (\x,\y+\dist); \expandafter\ifx\symb f \expandafter\ifx\i 2 \coordinate (\symb{}b\i) at (\x,1.5+\dist); \fi \fi } \foreach \i/\y in \connections { \fill (\symb\y) circle(2pt); \fill (\symb{}b\y) circle(2pt); \draw (\symb\y) -- (\symb{}b\y); \foreach \k in {1,2,3} { \draw (\symb\y) -- (v\k\i); } } \draw (\symb{}b1) \foreach \i/\x/\y in \coords { -- (\symb{}b\i)}; \end{scope} } \end{tikzpicture} \caption{Plane $P_\mathrm{F}$ for the instance shown in Fig.~\ref{fig:rho-np-graph-construction}. The false variables are drawn in blue. At the clause gadget in the middle of the line one of the variables crosses the intersection line of the two planes. } \label{fig:rho-np-false} \end{subfigure} \caption{The two planes for the instance shown in Fig.~\ref{fig:rho-np-graph-construction}. The clauses are depicted by the black boxes with three vertices inside. The dashed line is the intersection line between the two planes. At the clause gadget in the middle of the line one of the variables crosses the intersection line of the two planes. The intersection line gadgets are left out in these figures, but can easily placed on the dashed line without interfering.} \end{figure} \begin{corollary} \label{cor:rhogeq2} Deciding whether $\rho_3^2(G) = k$ is NP-hard for any $k \geq 2$. \end{corollary} \begin{proof} We extend the approach from Theorem~\ref{thm:rhoeq2} by additional blocking vertices. We add the gadget depicted in Fig.~\ref{fig:rho-np-coro} for $(k-2)$ times. For a given variable assignment, we can easily find a drawing: Use three different planes that share one common intersection line. Obviously, we can place each of the new gadgets onto one plane with no additional vertices on them. The variable-vertices are on the remaining two planes as described in Theorem~\ref{thm:rhoeq2}. For the other direction, we first discuss the arrangement of the $k$ planes. They also have to be placed in a way that they share one common intersection line because otherwise the clause gadgets, which are part of an induced $K_{3,2k}$, could not be drawn. Each of the new blocking gadgets has to use an individual plane. The variable-vertices are forced on the ``true'' and ``false'' plane as in Theorem~\ref{thm:rhoeq2}. \end{proof} \begin{figure} \centering \begin{tikzpicture}[scale=\fignphardnessscale] \draw[dashed] (-1,0) -- (16,0); \foreach \x/\i in {0/1,2.5/2,5/3,7.5/4,10/5,12.5/6,15/7} { \coordinate (v1\i) at (\x-0.4,0); \coordinate (v2\i) at (\x,0); \coordinate (v3\i) at (\x+0.4,0); \fill (v1\i) circle(2pt); \fill (v2\i) circle(2pt); \fill (v3\i) circle(2pt); \draw (\x-0.65,0.25) rectangle (\x+0.65,-0.25); \draw (v1\i) -- (v2\i) -- (v3\i); } \coordinate (o1) at (8.75,2); \coordinate (o2) at (8.75,-2); \fill (o1) circle(2pt); \fill (o2) circle(2pt); \foreach \i in {1,2,...,7} { \foreach \k in {1,2,3} { \draw (o1) -- (v\k\i); \draw (o2) -- (v\k\i); } } \draw (o1) -- (o2); \end{tikzpicture} \caption{ Blocking gadget that occupies a whole plane. } \label{fig:rho-np-coro} \end{figure} \section{Complexity of the Weak Affine Cover Numbers \texorpdfstring{$\pi^1_3$}{π¹₃} / \texorpdfstring{$\pi^2_3$}{π²₃}} \label{s:weak-appendix} Recall that a \emph{linear forest} is a forest whose connected components are paths. The \emph{linear vertex arboricity} $\lva G$ of a graph~$G$ equals the smallest size $r$ of a partition $V(G)=V_1\cup\dots\cup V_r$ such that every $V_i$ induces a linear forest. The \emph{vertex thickness} $\vt(G)$ of a graph $G$ is the smallest size $r$ of a partition $V(G)=V_1\cup\dots\cup V_r$ such that $G[V_1],\dots,G[V_r]$ are all planar. Obviously, $\vt(G)\le\lva G$. We recently used these notions to characterize the 3D weak affine cover numbers in purely combinatorial terms~\cite{ChaplickFLRVW16}: $\pi^1_3(G)=\lva G$ and $\pi^2_3(G)=\vt(G)$. \long\gdef\contentThmComplPiOneThree For $l\in\{1,2\}$, \begin{enumerate}[leftmargin=*,noitemsep,label=(\alph*),topsep=0ex] \item\label{thm:ComplPi13:NPcomplete} deciding whether or not $\pi^l_3(G)\le2$ is NP-complete, and \item\label{thm:ComplPi13:approximation} approximating $\pi^l_3(G)$ within a factor of $O(n^{1-\epsilon})$, for any $\epsilon>0$, is NP-hard. \end{enumerate} } \begin{theorem} \label{thm:ComplPi13} \contentThmComplPiOneThree \end{theorem} \begin{proof} \ref{thm:ComplPi13:NPcomplete} The membership in NP follows directly from the above combinatorial characterization~\cite{ChaplickFLRVW16}, which also allows us to deduce NP-hardness from a much more general hardness result by Farrugia~\cite{f-vpfai-EJC04}: For any two graph classes $\mathcal P$ and $\mathcal Q$ that are closed under vertex-disjoint unions and taking induced subgraphs, deciding whether the vertex set of a given graph $G$ can be partitioned into two parts $X$ and $Y$ such that $G[X]\in\mathcal P$ and $G[Y]\in\mathcal Q$ is NP-hard unless both $\mathcal P$ and $\mathcal Q$ consist of all graphs or all empty graphs. To see the hardness of our two problems, we set $\mathcal P = \mathcal Q$ to the class of linear forests (for $l=1$) and to the class of planar graphs (for $l=2$). \ref{thm:ComplPi13:approximation} The combinatorial characterization \cite{ChaplickFLRVW16} given above implies that $\chi(G) \le 4 \vt(G) = 4 \pi^2_3(G)$ (by the four-color theorem). Note that each color class can be placed on its own line, so $\pi^1_3(G)\le \chi(G)$. As $\pi^2_3(G) \leq \pi^1_3(G)$, both parameters are linearly related to the chromatic number of $G$. Now, the approximation hardness of our problems follows from that of the chromatic number~\cite{Zuckerman07}. \end{proof} \section{Conclusion and Open Problems} \label{s:open} \begin{enumerate}[leftmargin=*,noitemsep] \item We have determined the computational complexity of the affine cover numbers $\rho^1_2$ and $\rho^1_3$. The corresponding decision problems $\rho^1_2(G)\le k$ and $\rho^1_3(G)\le k$ turn out to be $\erclass$-complete. On the positive side, these problems admit an FPT algorithm (Corollary~\ref{cor:line-cover-fpt}). This is impossible for the plane cover number $\rho^2_3$, unless $\mathrm{P}=\mathrm{NP}$, because the decision problem $\rho^2_3(G)\le k$ is NP-hard even for $k=2$ (Theorem~\ref{thm:rhoeq2} in Section~\ref{sec:complexity-rho23}). If $k$ is arbitrary and given as a part of the input, then this problem is in $\erclass$ (Lemma~\ref{lem:inER})---but is it $\erclass$-hard? \item Is the segment number $\segm(G)$ introduced in \cite{desw-dpgfs-CGTA07} fixed-parameter tractable? \item Our proof of Theorem~\ref{thm:rho12-hard} implies that computing $\rho^1_2(G)$ and $\rho^1_3(G)$ is hard even for planar graphs of maximum degree~4. Can $\rho^1_2(G)$ and $\rho^1_3(G)$ be computed efficiently for trees? This is true for the segment number $\segm(G)$ \cite{desw-dpgfs-CGTA07}. \item How hard is it to approximate $\rho^1_2$, $\rho^1_3$, and $\rho^2_3$? \end{enumerate} \subsubsection*{Acknowledgments.} We thank Stefan Kratsch for a useful discussion of our FPT results in Section~\ref{s:fpt}.
\section{Introduction and problem statement} Consider the one-dimensional stochastic Helmholtz equation \begin{equation}\label{she} u''(x, \kappa)+\kappa^2 u(x, \kappa)=f(x) +\sigma(x)\dot{W}_x, \end{equation} where $\kappa>0$ is the wavenumber, $f$ and $\sigma$ are deterministic functions which have compact supports contained in the interval $[0,\,1]$, $W_x$ is the spatial Brownian motion and $\dot{W}_x$ is the white noise. In this model, $f, \sigma$, and $\sigma^2$ can be viewed as the mean, the standard deviation, and the variance of the random source, respectively. The radiated random wave field $u$ is required to satisfy the outgoing wave conditions: \begin{equation}\label{owc} u'(0, \kappa)+{\rm i}\kappa u(0, \kappa)=0,\quad u'(1, \kappa)-{\rm i}\kappa u(1, \kappa)=0. \end{equation} Given $f$ and $\sigma$, the direct source scattering problem is to determine the radiated wave field $u$. It is shown in \cite{BCLZ-MC14} that \eqref{she}--\eqref{owc} has a unique pathwise solution which is \begin{equation}\label{sol} u(x, \kappa)=\int_0^1 \frac{e^{{\rm i}\kappa |x-y|}}{2{\rm i}\kappa}f(y){\rm d}y+\int_0^1 \frac{e^{{\rm i}\kappa |x-y|}}{2{\rm i}\kappa}\sigma(y){\rm d}W_y. \end{equation} Here the second integral at the right hand side of \eqref{sol} is understood in the sense of It\^{o}. This paper concerns the inverse source scattering problem, which is to determine $f$ and $g=\sigma^2$ from boundary measurement of the radiated wave field $u$. Specifically, we propose the following two inverse problems: \begin{enumerate} \item If $f$ and $g$ are complex function, the inverse problem is to determine $f$ and $g$ simultaneously by two-sided observation data $u(0, \kappa)$ and $u(1, \kappa), \kappa\in(0, K)$, where $K>1$ is a constant. \item If $f$ is a real function, the inverse problem is to determine $f$ by one-sided observation data $u(0, \kappa), \kappa\in (0, 1)\cup\cup_{j=1}^N j\pi $, where $N\in\mathbb{N}$. \end{enumerate} The inverse source problem has significant applications in medical and biomedical imaging \cite{I-89}. Although the deterministic inverse source problem has been well studied \cite{BLLT-IP15, BLRX-SJNA15}, little is known for the stochastic case \cite{D-JMP79}. We refer to \cite{BCLZ-MC14, L-IP11} for numerical solution of the one-dimensional inverse random source scattering problem. A related inverse random source problem can be found in \cite{BX-IP13}. However, there are no stability results available for the inverse random source scattering problem at present. In this paper, we study stability of the above two inverse problems. As is known, the inverse source problem does not have a unique solution at a single frequency even for its deterministic counterpart \cite{DS-IEEE82, HKP-IP05}. Our goal is to establish increasing stability of the inverse problems with multi-frequencies. We refer to \cite{BLT-JDE10, CIL} for increasing stability of the deterministic inverse source problem. In \cite{CIL}, the authors discussed stability of the inverse source problem for the three-dimensional Helmholtz equation by using the Huygens principle. In \cite{BLT-JDE10}, the authors studied the stability of the two- and three-dimensional Helmholtz equations via Green's functions. Related results can be found in \cite{I-CM07, I-D11} on increasing stability of determining potentials and in the continuation for the Helmholtz equation. \section{Main results} Let the triple $(\Omega, \mathcal{F}, P)$ be a complete probability space on which the one-dimensional Brownian motion $\{W_x\}_{x\in [0, 1]}$ is defined. If $X$ is a random variable, ${\bf E}(X)$ and ${\bf V}(X)={\bf E}(X-{\bf E}(X))^2$ are the expectation and variance of $X$, respectively. We remark that ${\bf V}(X)$ is not an ordinary variance if $X$ is a complex-valued random variable. For convenience, we still call ${\bf V}(X)$ the variance of random variable $X$ even if it is complex-valued. We refer to \cite{F-06} for more details on notation of stochastic differential equations. Define a complex-valued functional space: \[ \mathcal{C}_M =\{f\in H^n(0, 1): \|f\|_{H^n(0, 1)}\leq M, ~{\rm supp}f\subseteq(0, 1), ~f: (0, 1)\to\mathbb{C}\} \] and a real-valued functional space: \[ \mathcal{R}_M =\{f\in H^n(0, 1): \|f\|_{H^n(0, 1)}\leq M, ~{\rm supp}f\subseteq(0, 1), ~f: (0, 1)\to\mathbb{R}\}, \] where $n\in\mathbb{N}$ and $M>1$ is a constant. Given two random functions $u_1$ and $u_2$, we define the function of expectation discrepancy: \[ v(x, \kappa)={\bf E}u_1(x, \kappa)-{\bf E}u_2(x, \kappa) \] and the function of the variance discrepancy: \[ w(x, \kappa)={\bf V}u_1(x, \kappa)-{\bf V}u_2(x, \kappa). \] Now we show the main stability result of the first inverse problem. \begin{theo}\label{mr1} Let $f_j, g_j\in\mathcal{C}_M, j=1, 2$, and let $u_j$ be the solution \eqref{sol} corresponding to $f_j, g_j$. Then there exist two positive constants $C_1, C_2$ independent of $n, K, M, \kappa$ such that \begin{align} \label{cfe} \| f_1-f_2\|^2_{L^2(0, 1)}\leq C_1 \left(\epsilon^2_1+\frac{M^2}{\left(\frac{K^{\frac{2}{3}}|\ln \epsilon_1|^{\frac{1}{4}}}{(6n-3)^3}\right)^{ 2n-1}} \right),\\ \label{cge}\| g_1-g_2\|^2_{L^2(0, 1)}\leq C_2 \left(\epsilon^2_2+\frac{M^2}{\left(\frac{K^{\frac{2}{3}}|\ln \epsilon_2|^{\frac{1}{4}}}{(6n-3)^3}\right)^{ 2n-1}}\right), \end{align} where $K>1$ and \begin{align} \label{e1} \epsilon_1&=\left(4\int_0^K \kappa^2\left( |v(0, \kappa)|^2 + |v(1, \kappa)|^2 \right){\rm d}\kappa\right)^{\frac{1}{2}},\\ \label{e2}\epsilon_2&=\left(16\int_0^K \kappa^4\left( |w(0, \kappa)|^2 + |w(1, \kappa)|^2 \right){\rm d}\kappa\right)^{\frac{1}{2}}. \end{align} \end{theo} \begin{rema} There are two parts in the stability estimates \eqref{cfe} and \eqref{cge}: the first part is the data discrepancy and the second part comes from the high frequency tails of the functions. It is clear to see that the stability increases as $K$ increases, i.e., the problem is more stable as more frequencies data are used. We can also see that when $n<\left[\frac{K^{\frac{2}{9}}|\ln\epsilon_j|^{\frac{1}{12}}+3}{6}\right]$ the the stability increases as $n$ increases, i.e., the problem is more stable as the functions have suitably higher regularity. \end{rema} Here is the main stability result of the second inverse problem. \begin{theo}\label{mr2} Let $f_j\in\mathcal{R}_M, j=1, 2,$ and let $u_j$ be the solution of \eqref{sol} corresponding to $f_j$. Let \[ \epsilon_3=\left(\sum_{j=1}^N (2j\pi)^2 |{\rm Re}v(0, j\pi)|^2\right)^{\frac{1}{2}},\quad \epsilon_4=\sup_{\kappa\in (0, 1)}2\kappa|{\rm Re}v(0, \kappa)|<1. \] Then there exists a positive constant $C_3$ independent of $n, N, M, \kappa$ such that \[ \|f_1-f_2\|^2_{L^2(0, 1)}\leq C_3 \left(\epsilon^2_3+\frac{M^2}{\left(\frac{ N^{\frac{5}{8}}|\ln\epsilon_4|^{\frac{1}{9}}}{(6n-3)^3} \right)^{2n-1}} \right). \] \end{theo} \begin{rema} Theorem \ref{mr2} shows that only one-sided boundary observation data are needed for the wavenumbers in the set $(0, 1)\cup\cup_{j=1}^N j\pi$ if one wants to determine the mean of the random source. The stability increases as $N$ or $n<\left[\frac{N^{\frac{5}{24}}|\ln\epsilon_4|^{\frac{1}{27}}+3}{6}\right]$ increases. \end{rema} The remainder of the paper is organized as follows. We prove Theorem \ref{mr1} and Theorem \ref{mr2} in section 3 and section 4, respectively. \section{Proof of Theorem \ref{mr1}} First we present several useful lemmas. \begin{lemm} Let $f_j, g_j\in L^2(0, 1), j =1, 2$. We have \begin{align*} \|f_1-f_2\|^2_{L^2(0, 1)}&=\frac{2}{\pi}\int_0^\infty \kappa^2 \Bigl(|v(0, \kappa)|^2+|v(1, \kappa)|^2 \Bigr) {\rm d}\kappa,\\ \|g_1-g_2\|^2_{L^2(0, 1)}&=\frac{16}{\pi}\int_0^\infty \kappa^4 \Bigl( |w(0, \kappa)|^2+|w(1, \kappa)|^2\Bigr) {\rm d}\kappa. \end{align*} \end{lemm} \begin{proof} Letting $\xi\in\mathbb{R}$ with $|\xi|=\kappa$, we multiply $e^{-{\rm i}\xi x}$ on both sides of \eqref{she} and obtain \[ e^{-{\rm i}\xi x}u''(x, \kappa)+\kappa^2 e^{-{\rm i}\xi x} u(x, \kappa)=e^{-{\rm i}\xi x} f(x)+e^{-{\rm i}\xi x} \sigma(x) \dot{W}_x. \] Since \[ (e^{-{\rm i}\xi x}u'(x, \kappa))'=e^{-{\rm i}\xi x} u''(x, \kappa)-{\rm i}\xi e^{-{\rm i}\xi x} u'(x, \kappa), \] we have \begin{equation}\label{a1} (e^{-{\rm i}\xi x}u'(x, \kappa))'=e^{-{\rm i}\xi x} f(x)+e^{-{\rm i}\xi x}\sigma(x)\dot{W}_x-\kappa^2 e^{-{\rm i}\xi x} u(x, \kappa)-{\rm i}\xi e^{-{\rm i}\xi x} u'(x, \kappa). \end{equation} Integrating \eqref{a1} over $(0, 1)$ with respect to $x$ yields \begin{align}\label{a2} e^{-{\rm i}\xi}u'(1, \kappa)-u'(0, \kappa)=&\int_0^1 e^{-{\rm i}\xi x} f(x){\rm d}x+\int_0^1 e^{-{\rm i}\xi x}\sigma(x){\rm d}W_x\notag\\ &-\kappa^2\int_0^1 e^{-{\rm i}\xi x} u(x, \kappa){\rm d}x-{\rm i}\xi \int_0^1 e^{-{\rm i}\xi x} u'(x, \kappa){\rm d}x. \end{align} It follows from the integration by parts that \begin{equation}\label{a3} -{\rm i}\xi \int_0^1 e^{-{\rm i}\xi x} u'(x, \kappa){\rm d}x=-{\rm i}\xi e^{-{\rm i}\xi}u(1, \kappa)+{\rm i}\xi u(0, \kappa)+\kappa^2\int_0^1 e^{-{\rm i}\xi x}u(x, \kappa){\rm d}x. \end{equation} Substituting \eqref{a3} into \eqref{a2}, we get \[ e^{-{\rm i}\xi}u'(1, \kappa)+{\rm i}\xi e^{-{\rm i}\xi} u(1, \kappa)-u'(0, \kappa)-{\rm i}\xi u(0, \kappa)=\int_0^1 e^{-{\rm i}\xi x}f(x){\rm d}x +\int_0^1 e^{-{\rm i}\xi x} \sigma(x){\rm d}W_x, \] which gives after applying the outgoing wave conditions \eqref{owc} that \begin{equation}\label{a4} {\rm i}(\kappa+\xi)e^{-{\rm i}\xi}u(1, \kappa)+{\rm i}(\kappa-\xi)u(0, \kappa)=\int_0^1 e^{-{\rm i}\xi x}f(x){\rm d}x +\int_0^1 e^{-{\rm i}\xi x} \sigma(x){\rm d}W_x. \end{equation} Taking the expectation on both sides of \eqref{a4}, we obtain \begin{equation}\label{a5} \int_0^1 e^{-{\rm i}\xi x}f(x){\rm d}x={\rm i}(\kappa+\xi)e^{-{\rm i}\xi}{\bf E}u(1, \kappa)+{\rm i}(\kappa-\xi){\bf E}u(0, \kappa), \quad|\xi|=\kappa\in (0, \infty). \end{equation} Since $f_j$ is assumed to have a compact support in $[0, 1]$, we have from \eqref{a5} that \[ \hat{f}_j(\xi)= \int_{-\infty}^\infty e^{-{\rm i}\xi x}f_j(x){\rm d}x={\rm i}(\kappa+\xi)e^{-{\rm i}\xi}{\bf E}u_j(1, \kappa)+{\rm i}(\kappa-\xi){\bf E}u_j(0, \kappa), \quad|\xi|=\kappa\in (0, \infty), \] which gives \begin{align*} \hat{f}_1(\xi)-\hat{f}_2(\xi) =\int_{-\infty}^\infty e^{-{\rm i}\xi x}(f_1(x)-f_2(x)){\rm d}x={\rm i}(\kappa+\xi)e^{-{\rm i}\xi}({\bf E}u_1(1, \kappa)-{\bf E}u_2(1, \kappa))\\ +{\rm i}(\kappa-\xi)({\bf E}u_1(0, \kappa)-{\bf E}u_2(0, \kappa)), \quad|\xi|=\kappa\in (0, \infty). \end{align*} Hence we have \[ \hat{f}_1(-\kappa)-\hat{f}_2(-\kappa)=2{\rm i}\kappa ({\bf E}u_1(0, \kappa)-{\bf E}u_2(0, \kappa))=2{\rm i}\kappa v(0, \kappa) \] and \[ \hat{f}_1(\kappa)-\hat{f}_2(\kappa)=2{\rm i}e^{-{\rm i}\kappa}\kappa({\bf E}u_1(1, \kappa)-{\bf E}u_2(1, \kappa))=2{\rm i}\kappa e^{-{\rm i}\kappa} v(1, \kappa). \] It follows from the Plancherel theorem that \begin{align*} \|f_1-f_2\|^2_{L^2(0, 1)}&=\frac{1}{2\pi}\int_{-\infty}^\infty|\hat{f} _1(\xi)-\hat{f}_2(\xi)|^2{\rm d}\xi\\ &=\frac{1}{2\pi}\int_{-\infty}^0 |\hat{f} _1(\xi)-\hat{f}_2(\xi)|^2{\rm d}\xi+\frac{1}{2\pi}\int_0^\infty |\hat{f} _1(\xi)-\hat{f}_2(\xi)|^2{\rm d}\xi\\ &=\frac{1}{2\pi}\int_0^\infty |\hat{f}_1(-\kappa)-\hat{f}_2(-\kappa)|^2{\rm d}\kappa+\frac{1}{2\pi}\int_0^\infty |\hat{f}_1(\kappa)-\hat{f}_2(\kappa)|^2{ \rm d}\kappa\\ &=\frac{2}{\pi}\int_0^\infty \kappa^2|v(0, \kappa)|^2{\rm d}\kappa + \frac{2}{\pi}\int_0^\infty \kappa^2|v(1, \kappa)|^2{\rm d}\kappa. \end{align*} Noting \[ {\bf E}\Bigl(\int_0^1 e^{-{\rm i}\xi x}\sigma(x){\rm d}W_x\Bigr)^2=\int_0^1 e^{-2{\rm i}\xi x}\sigma^2(x){\rm d}x=\int_0^1 e^{-2{\rm i}\xi x}g(x){\rm d}x, \] we have from \eqref{a4} that \begin{equation}\label{a6} \int_0^1 e^{-2{\rm i}\xi x}g(x){\rm d}x={\bf V}\bigl({\rm i}(\kappa+\xi)e^{-{\rm i}\xi}u(1, \kappa)+{\rm i}(\kappa-\xi)u(0, \kappa)\bigr), \quad|\xi|=\kappa\in(0, \infty). \end{equation} Since $g_j$ has a compact support in $(0, 1)$, we get from \eqref{a6} that \[ \hat{g}_j(2\xi)= \int_{-\infty}^\infty e^{-2{\rm i}\xi x}g_j(x){\rm d}x={\bf V}\bigl({\rm i}(\kappa+\xi)e^{-{\rm i}\xi}u_j(1, \kappa)+{\rm i}(\kappa-\xi)u_j(0, \kappa)\bigr), \quad|\xi|=\kappa\in(0, \infty), \] which gives \begin{align*} & \hat{g}_1(2\xi)-\hat{g}_2(2\xi)= \int_{-\infty}^\infty e^{-2{\rm i}\xi x}(g_1(x)-g_2(x)){\rm d}x\\ &={\bf V}\bigl({\rm i}(\kappa+\xi)e^{-{\rm i}\xi}u_1(1, \kappa)+{\rm i}(\kappa-\xi)u_1(0, \kappa)\bigr)-{\bf V}\bigl({\rm i}(\kappa+\xi)e^{-{\rm i}\xi}u_2(1, \kappa)+{\rm i}(\kappa-\xi)u_2(0, \kappa)\bigr). \end{align*} Hence we have \[ \hat{g}_1(-2\kappa)-\hat{g}_2(-2\kappa)=(2{\rm i}\kappa)^2 \bigl({\bf V}u_1(0, \kappa)-{\bf V}u_2(0, \kappa)\bigr)=(2{\rm i}\kappa)^2 w(0, \kappa) \] and \[ \hat{g}_1(2\kappa)-\hat{g}_2(2\kappa)=(2{\rm i}\kappa)^2 e^{-2{\rm i}\kappa} \bigl({\bf V}u_1(1, \kappa)-{\bf V}u_2(1, \kappa)\bigr)=(2{\rm i}\kappa)^2 e^{-2{\rm i}\kappa} w(1, \kappa). \] Using the Plancherel theorem again yields \begin{align*} \|g_1-g_2\|^2_{L^2(0, 1)}&=\frac{1}{2\pi}\int_{-\infty}^\infty|\hat{g} _1(\xi)-\hat{g}_2(\xi)|^2{\rm d}\xi=\frac{1}{\pi}\int_{-\infty}^\infty|\hat{g} _1(2\xi)-\hat{g}_2(2\xi)|^2{\rm d}\xi\\ &=\frac{1}{\pi}\int_0^\infty |\hat{g} _1(-2\kappa)-\hat{g}_2(-2\kappa)|^2{\rm d}\kappa+\frac{1}{\pi}\int_0^\infty |\hat{g} _1(2\kappa)-\hat{g}_2(2\kappa)|^2{\rm d}\kappa\\ &=\frac{16}{\pi}\int_0^\infty \kappa^4 |w(0, \kappa)|^2{\rm d}\kappa+\frac{16}{\pi}\int_0^\infty \kappa^2 |w(1, \kappa)|^4{\rm d}\kappa, \end{align*} which completes the proof. \end{proof} \begin{lemm} Let $f_j, g_j\in L^2(0, 1), j =1, 2$. We have \begin{align*} 4\kappa^2 |v(0, \kappa)|^2&=\Bigl|\int_0^1 e^{{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x\Bigr|^2,\\ 4\kappa^2 |v(1, \kappa)|^2&=\Bigl|\int_0^1 e^{-{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x\Bigr|^2,\\ 16\kappa^4 |w(0, \kappa)|^2&=\Bigl|\int_0^1 e^{2{\rm i}\kappa x}(g_1(x)-g_2(x)) {\rm d}x\Bigr|^2,\\ 16\kappa^4 |w(1, \kappa)|^2&=\Bigl|\int_0^1 e^{-2{\rm i}\kappa x}(g_1(x)-g_2(x)) {\rm d}x\Bigr|^2. \end{align*} \end{lemm} \begin{proof} It follows from \eqref{sol} that the solution of \eqref{she}--\eqref{owc} is \[ 2{\rm i}\kappa u_j(x, \kappa)=\int_0^1 e^{{\rm i}\kappa|x-y|}f_j(y){\rm d}y+\int_0^1 e^{{\rm i}\kappa|x-y|}\sigma_j(y){\rm d}W_y, \] which gives \begin{align} \label{b1} 2{\rm i}\kappa u_j(0, \kappa)&=\int_0^1 e^{{\rm i}\kappa x}f_j(x){\rm d}x+\int_0^1 e^{{\rm i}\kappa x}\sigma_j(x){\rm d}W_x,\\ \label{b2} 2{\rm i}\kappa u_j(1, \kappa)&=\int_0^1 e^{{\rm i}\kappa (1-x)}f_j(x){\rm d}x+\int_0^1 e^{{\rm i}\kappa (1-x)}\sigma_j(x){\rm d}W_x. \end{align} Taking expectation of \eqref{b1} and \eqref{b2}, we may obtain \begin{align*} 2{\rm i}\kappa v(0, \kappa)&=\int_0^1 e^{{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x,\\ 2{\rm i}\kappa v(1, \kappa)&=\int_0^1 e^{{\rm i}\kappa (1-x)}(f_1(x)-f_2(x)){\rm d}x. \end{align*} Taking the variance of \eqref{b1} and \eqref{b2} yields \begin{align*} -4\kappa^2 w(0, \kappa)&=\int_0^1 e^{2{\rm i}\kappa x}(g_1(x)-g_2(x)){\rm d}x,\\ -4\kappa^2 w(1, \kappa)&=\int_0^1 e^{2{\rm i}\kappa(1- x)}(g_1(x)-g_2(x)){\rm d}x, \end{align*} which completes the proof by taking square of the amplitudes on both sides of the above four equations. \end{proof} Let \begin{align} \label{i1}I_1(s)&=\int_0^s \left|\int_0^1 e^{{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x\right|^2{\rm d}\kappa+\int_0^s \left|\int_0^1 e^{-{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x\right|^2{\rm d}\kappa,\\ \label{i2}I_2(s)&=\int_0^s \left|\int_0^1 e^{2{\rm i}\kappa x}(g_1(x)-g_2(x)){\rm d}x \right|^2{\rm d}\kappa+\int_0^s \left|\int_0^1 e^{-2{\rm i}\kappa x}(g_1(x)-g_2(x)){\rm d}x\right|^2{\rm d}\kappa. \end{align} The integrands in \eqref{i1} and \eqref{i2} are entire analytic function of $\kappa$. The integrals with respect to $s$ can be taken over any path joining points $0$ and $\kappa$ in the complex plane. Thus $I_1(s)$ and $I_2(s)$ are entire analytic functions of $s=s_1+{\rm i}s_2, s_1, s_2\in\mathbb{R}$. \begin{lemm} Let $f_j, g_j\in L^2(0, 1), j =1, 2$. We have for any $s=s_1+{\rm i}s_2, s_1, s_2\in\mathbb{R}$ that \begin{align*} |I_1(s)|&\leq 2|s|e^{2|s_2|}\int_0^1 |f_1(x)-f_2(x)|^2{\rm d}x,\\ |I_2(s)|&\leq 2|s|e^{4|s_2|}\int_0^1 |g_1(x)-g_2(x)|^2{\rm d}x. \end{align*} \end{lemm} \begin{proof} Let $\kappa=st, t\in(0, 1)$. A simple calculation yields \begin{align*} I_1(s)=s\int_0^1 \left|\int_0^1 e^{{\rm i}st x}(f_1(x)-f_2(x)){\rm d}x \right|^2{\rm d}t+s\int_0^1 \left|\int_0^1 e^{-{\rm i}st x}(f_1(x)-f_2(x)){\rm d}x \right|^2{\rm d}t. \end{align*} Noting that $|e^{\pm{\rm i}st x}|\leq e^{|s_2|}$ for all $x\in(0, 1)$, we have \[ |I_1(s)|\leq 2|s|\int_0^1 \Bigl(\int_0^1 e^{2|s_2|}|f_1(x)-f_2(x)|^2{\rm d}x \Bigr){\rm d}t\leq 2|s|e^{2|s_2|}\int_0^1 |f_1(x)-f_2(x)|^2 {\rm d}x. \] Similarly, we can show that \[ |I_2(s)|\leq 2|s|e^{4|s_2|}\int_0^1 |g_1(x)-g_2(x)|^2{\rm d}x. \] which completes the proof. \end{proof} \begin{lemm} Let $f_j, g_j\in H^n(0, 1), j =1, 2$. We have for any $s>0$ that \begin{align*} 4\int_s^\infty \kappa^2 \bigl(|v(0, \kappa)|^2 +|v(1, \kappa)|^2 \bigr){\rm d}\kappa&\leq 2 s^{-(2n-1)}\| f_1-f_2\|^2_{H^n(0, 1)},\\ 16\int_s^\infty \kappa^4 \bigl(|w(0, \kappa)|^2 +|w(1, \kappa)|^2 \bigr){\rm d}\kappa&\leq 2 s^{-(2n-1)}\| g_1-g_2\|^2_{H^n(0, 1)}. \end{align*} \end{lemm} \begin{proof} It follows from Lemma 3.2 that we have \begin{align*} 4&\int_s^\infty \kappa^2 |v(0, \kappa)|^2{\rm d}\kappa+ 4\int_s^\infty \kappa^2 |v(1, \kappa)|^2{\rm d}\kappa\\ &=\int_s^\infty \Bigl|\int_0^1 e^{{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x\Bigr|^2 {\rm d}\kappa +\int_s^\infty \Bigl|\int_0^1 e^{-{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x\Bigr|^2 {\rm d}\kappa \end{align*} Using integration by parts and noting ${\rm supp}f_j\in (0, 1)$, we obtain \[ \int_0^1 e^{\pm{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x=\frac{1}{(\pm{\rm i}\kappa)^n}\int_0^1 e^{\pm{\rm i}\kappa x}(f_1^{(n)}(x)-f_2^{(n)}(x)){\rm d}x, \] which gives \[ \Bigl|\int_0^1 e^{\pm{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x\Bigr|^2\leq \kappa^{-2n}\|f^{(n)}_1-f_2^{(n)}\|^2_{H^n(0, 1)} \] Hence we get \begin{align*} \int_s^\infty \Bigl|\int_0^1 e^{\pm{\rm i}\kappa x}(f_1(x)-f_2(x)){\rm d}x\Bigr|^2 {\rm d}\kappa&\leq \|f^{(n)}_1-f_2^{(n)}\|^2_{H^n(0, 1)} \int_s^\infty \kappa^{-2n}{\rm d}\kappa\\ &=\frac{s^{-(2n-1)}}{(2n-1)}\|f^{(n)}_1-f_2^{(n)}\|^2_{H^n(0, 1)} \end{align*} Again, we have from Lemma 3.2 that \begin{align*} 16&\int_s^\infty \kappa^4 |w(0, \kappa)|^2{\rm d}\kappa+ 16\int_s^\infty \kappa^4 |w(1, \kappa)|^2{\rm d}\kappa\\ &=\int_s^\infty \Bigl|\int_0^1 e^{2{\rm i}\kappa x}(g_1(x)-g_2(x)){\rm d}x\Bigr|^2 {\rm d}\kappa +\int_s^\infty \Bigl|\int_0^1 e^{-2{\rm i}\kappa x}(g_1(x)-g_2(x)){\rm d}x\Bigr|^2 {\rm d}\kappa. \end{align*} Similarly, we have \[ \int_0^1 e^{\pm 2{\rm i}\kappa x}(g_1(x)-g_2(x)){\rm d}x=\frac{1}{(\pm 2{\rm i}\kappa)^n}\int_0^1 e^{\pm 2{\rm i}\kappa x}(g_1^{(n)}(x)-g_2^{(n)}(x)){\rm d}x, \] which gives \[ \Bigl|\int_0^1 e^{\pm 2{\rm i}\kappa x}(g_1(x)-g_2(x)){\rm d}x\Bigr|^2\leq (2\kappa)^{-2n}\|g^{(n)}_1-g_2^{(n)}\|^2_{H^n(0, 1)}. \] Therefore, we get \begin{align*} \int_s^\infty \Bigl|\int_0^1 e^{\pm 2{\rm i}\kappa x}(g_1(x)-g_2(x)){\rm d}x\Bigr|^2 {\rm d}\kappa&\leq \|g^{(n)}_1-g_2^{(n)}\|^2_{H^n(0, 1)} \int_s^\infty (2\kappa)^{-2n}{\rm d}\kappa\\ &=\frac{s^{-(2n-1)}}{(2n-1)4^n}\|g^{(n)}_1-g_2^{(n)}\|^2_{H^n(0, 1)}, \end{align*} which completes the proof. \end{proof} The following lemma is proved in \cite{CIL}. \begin{lemm} Denote $S=\{z=x+{\rm i}y\in\mathbb{C}: -\frac{\pi}{4}<{\rm arg} z<\frac{\pi}{4}\}$. Let $J(z)$ be analytic in $S$ and continuous in $\bar{S}$ satisfying \[ \begin{cases} |J(z)|\leq\epsilon, & z\in (0, ~ L],\\ |J(z)|\leq V, & z\in S,\\ |J(0)|=0. \end{cases} \] Then there exits a function $\mu(z)$ satisfying \[ \begin{cases} \mu(z)\geq\frac{1}{2}, & z\in(L, ~ 2^{\frac{1}{4}}L),\\ \mu(z)\geq \frac{1}{\pi}((\frac{z}{L})^4-1)^{-\frac{1}{2}}, & z\in (2^{\frac{1}{4}}L, ~ \infty) \end{cases} \] such that \[ |J(z)|\leq V\epsilon^{\mu(z)}, \quad\forall\, z\in (L, ~ \infty). \] \end{lemm} \begin{lemm} Let $f_j, g_j\in\mathcal{C}_M$. Then there exists a function $\mu(z)$ satisfying \begin{equation}\label{mu} \begin{cases} \mu(s)\geq\frac{1}{2}, \quad & s\in(K, ~ 2^{\frac{1}{4}}K),\\ \mu(s)\geq \frac{1}{\pi}((\frac{s}{K})^4-1)^{-\frac{1}{2}}, \quad & s\in (2^{\frac{1}{4}}K, ~\infty), \end{cases} \end{equation} such that \[ |I_1(s)|\leq CM^2 e^{3s}\epsilon_1^{2\mu(s)},\quad |I_2(s)|\leq CM^2 e^{5s}\epsilon_2^{2\mu(s)},\quad\forall s\in (K, ~\infty). \] \end{lemm} \begin{proof} We only show the proof of the estimate for $I_1(s)$ since the proof is the same for $I_2(s)$. It follows from Lemma 3.3 that \[ |I_1(s)e^{-3s}|\leq CM^2,\quad\forall s\in S. \] Recalling \eqref{e1}, \eqref{i1}, and Lemma 3.2, we have \[ |I_1(s)e^{-3s}|\leq\epsilon_1^2,\quad s\in [0, ~K]. \] A direct application of Lemma 3.5 shows that there exists a function $\mu(s)$ satisfying \eqref{mu} such that \[ |I_1(s)e^{-3s}|\leq CM^2\epsilon_1^{2\mu},\quad\forall s\in (K, ~\infty), \] which completes the proof. \end{proof} Now we show the proof of Theorem 2.1. \begin{proof} It suffices to show the estimate \eqref{cfe} since the proof is similar for the estimate \eqref{cge}. We can assume that $\epsilon_1<e^{-1}$, otherwise the estimate is obvious. Let \[ s=\begin{cases} \frac{1}{(3\pi)^{\frac{1}{3}}}K^{\frac{2}{3}}|\ln\epsilon_1|^{\frac{1}{4}}, & 2^{\frac{1}{4}} (3\pi)^{\frac{1}{3}}K^{\frac{1}{3}}<|\ln\epsilon_1|^{\frac{1}{4}},\\ K, &|\ln\epsilon_1|\leq 2^{\frac{1}{4}}(3\pi)^{\frac{1}{3}}K^{\frac{1}{3}}. \end{cases} \] If $2^{\frac{1}{4}}(3\pi)^{\frac{1}{3}}K^{\frac{1}{3}}<|\ln\epsilon_1|^{\frac{1}{4}}$, then we have \begin{align*} |I_1(s)|&\leq CM^2 e^{3s} e^{-\frac{2|\ln\epsilon_1|}{\pi}((\frac{s}{K})^4-1)^{-\frac{1}{2}}}\leq CM^2 e^{\frac{3}{(3\pi)^{\frac{1}{3}}}K^{\frac{2}{3}}|\ln\epsilon_1|^{\frac{1}{4}}-\frac{2|\ln\epsilon_1|}{\pi} (\frac{K}{s})^2}\\ &=CM^2 e^{-2\left(\frac{9}{\pi}\right)^{\frac{1}{3}}K^{\frac{2}{3}}|\ln\epsilon_1|^{\frac{1}{2}}\left(1-\frac{1}{2} |\ln\epsilon_1|^{-\frac{1}{4}}\right)}. \end{align*} Noting $\frac{1}{2} |\ln\epsilon_1|^{-\frac{1}{4}}<\frac{1}{2}$, $\left(\frac{9}{\pi}\right)^{\frac{1}{3}}>1$ we have \begin{align*} |I_1(s)|& \leq CM^2 e^{-K^{\frac{2}{3}}|\ln\epsilon_1|^{\frac{1}{2}}}. \end{align*} Using the elementary inequality \[ e^{-x}\leq \frac{(6n-3)!}{x^{3(2n-1)}}, \quad x>0, \] we get \[ |I_1(s)|\leq\frac{CM^2}{\left(\frac{K^2|\ln\epsilon_1|^{\frac{3}{2}}}{(6n-3)^3}\right)^{2n-1}}. \] If $|\ln\epsilon_1|\leq 2^{\frac{1}{4}}(3\pi)^{\frac{1}{3}}K^{\frac{1}{3}}$, then $s=K$. We have from \eqref{e1}, \eqref{i1}, and Lemma 3.2 that \[ |I_1(s)|\leq \epsilon_1^2. \] Hence we obtain from Lemma 3.4 that \begin{align*} &4\int_0^\infty \kappa^2 \left(|v(0, \kappa)|^2+|v(1, \kappa)|^2\right) {\rm d}\kappa\\ &\leq I_1(s)+\frac{CM^2}{\left(\frac{K^2|\ln\epsilon_1|^{\frac{3}{2}}}{(6n-3)^3}\right)^{2n-1}}+\frac{ \|f_1-f_2\|^2_{H^n(0, 1)}}{\left(2^{-\frac{1}{4}}(3\pi)^{-\frac{1}{3}}K^{\frac{2}{3}}|\ln\epsilon_1|^{\frac{1}{4}}\right)^{2n-1}}. \end{align*} By Lemma 3.1, we have \[ \|f_1-f_2\|^2_{L^2(0, 1)}\leq C \left(\epsilon_1^2 +\frac{M^2}{\left(\frac{K^2|\ln\epsilon_1|^{\frac{3}{2}}}{(6n-3)^3}\right)^{2n-1}}+\frac{M^2}{\left(\frac{K^{\frac{2} {3}}|\ln\epsilon_1|^{\frac{1}{4}}}{(6n-3)^3}\right)^{2n-1}}\right). \] Since $K^{\frac{2}{3}}|\ln\epsilon_1|^{\frac{1}{4}}\leq K^2 |\ln\epsilon_1|^{\frac{3}{2}}$ when $K>1$ and $|\ln\epsilon_1|>1$, we obtain the stability estimate. \end{proof} \section{Proof of Theorem \ref{mr2}} \begin{lemm} Let $f_j\in L^2(0, 1), j=1, 2$ be real functions. We have for all $\kappa\in (0,\,\infty)$ that \[ 2\kappa{\bf E}{\rm Re}v(0, \kappa)=\int_0^1 \sin(\kappa x)(f_1(x)-f_2(x)){\rm d}x. \] \end{lemm} \begin{proof} It can be easily obtained from \eqref{sol} that \[ 2{\rm i}\kappa u_j(0, \kappa)=\int_0^1 e^{{\rm i}\kappa x} f_j(x){\rm d}x+\int_0^1 e^{{\rm i}\kappa x}\sigma_j(x){\rm d}W_x. \] Taking the expectation of the above equation gives \[ 2{\rm i}\kappa {\bf E}u_j(0, \kappa)=\int_0^1 e^{{\rm i}\kappa x}f_j(x){\rm d}x. \] Noting that $f_j, j=1, 2$ are real functions, we have \[ 2{\kappa}{\bf E}{\rm Re}u_j(0, \kappa)=\int_0^1 \sin(\kappa x)f_j(x){\rm d}x, \] which completes the proof. \end{proof} \begin{lemm} Let $\|f_1-f_2\|_{L^2(0, 1)}\leq M$. There exists a function $\mu(\kappa)$ satisfying \begin{equation}\label{c1} \begin{cases} \mu(\kappa)\geq\frac{1}{2}, &\kappa\in (1, ~ 2^{\frac{1}{4}}),\\ \mu(\kappa)\geq\frac{1}{\pi}(\kappa^4-1)^{-\frac{1}{2}}, &\kappa\in (2^{\frac{1}{4}}, ~\infty), \end{cases} \end{equation} such that \[ \Bigl|\int_0^1 \sin(\kappa x)(f_1(x)-f_2(x)){\rm d}x \Bigr|^2\leq C M^2 e^{4\kappa}\epsilon_4^{2\mu(\kappa)},\quad\forall\kappa\in (1, ~\infty). \] \end{lemm} \begin{proof} Let $\kappa=\kappa_1+{\rm i}\kappa_2, \kappa_1, \kappa_2\in\mathbb{R}$. It is easy to show that \[ \Bigl|\int_0^1 \sin(\kappa x)(f_1(x)-f_2(x)){\rm d}x \Bigr|^2\leq e^{|\kappa_2|}\|f_1-f_2\|_{L^2(0, 1)}. \] Noting $|\kappa_2|\leq\kappa_1$ for $\kappa\in S$, we have \begin{align*} \bigl|e^{-2\kappa}\bigr| &\Bigl|\int_0^1 \sin(\kappa x)(f_1(x)-f_2(x)){\rm d}x \Bigr|^2 \leq \bigl|e^{-2\kappa}\bigr| e^{|\kappa_2|} \|f_1-f_2\|_{L^2(0, 1)}\\ &\leq e^{-\kappa_1}\|f_1-f_2\|_{L^2(0, 1)}\leq M. \end{align*} It follows from Lemma 4.1 that \[ \bigl|e^{-2\kappa}\bigr| \left|\int_0^1 \sin(\kappa x)(f_1(x)-f_2(x)){\rm d}x\right|\leq\epsilon_4,\quad \kappa\in (0, 1]. \] We conclude from Lemma 3.5 that there exists a function $\mu$ satisfying \eqref{c1} such that \[ \bigl|e^{-2\kappa}\bigr| \Bigl|\int_0^1 \sin(\kappa x)(f_1(x)-f_2(x)){\rm d}x\leq C M \epsilon_4^{\mu(\kappa)},\quad\kappa\in (1,~\infty), \] which completes the proof. \end{proof} \begin{lemm} Let $f_j\in H^n(0, 1), j=1, 2$. It holds that \[ \sum_{j=T}^\infty (2j\pi)^2 |{\bf E}{\rm Re}v(0, j\pi)|^2\leq \frac{1}{T^{2n-1}}\|f_1-f_2\|^2_{H^n(0, 1)}. \] \end{lemm} \begin{proof} It follows from Lemma 4.1 that \[ \sum_{j=T}^\infty 4(j\pi)^2 |{\bf E}{\rm Re}v(0, j\pi)|^2=\sum_{j=T}^\infty \Bigl|\int_0^1 \sin(j\pi x)(f_1(x)-f_2(x)){\rm d}x\Bigr|^2. \] Noting that $f_j$ has a compact support in $(0, 1)$, we have from the integration by parts that \begin{align*} \Bigl|\int_0^1 \sin(j\pi x)(f_1(x)-f_2(x)){\rm d}x\Bigr|^2&=\Bigl|\frac{1}{(j\pi)^n}\int_0^1 \sin(j\pi x+n\pi/2)(f^{(n)}_1(x)-f^{(n)}_2(x)){\rm d}x\Bigr|^2\\ &\leq \frac{1}{(j\pi)^{2n}}\|f_1-f_2\|^2_{H^n(0, 1)}. \end{align*} Combining the above estimates yields \begin{align*} \sum_{j=T}^\infty 4(j\pi)^2 |{\bf E}{\rm Re}v(0, j\pi)|^2 &\leq \left(\sum_{j=T}^\infty \frac{1}{(j\pi)^{2n}}\right)\|f_1-f_2\|^2_{H^n(0, 1)}\\ &\leq \frac{1}{\pi^{2n}}\left(\int_0^\infty \frac{1}{(T+x)^{2n}}{\rm d}x \right)\|f_1-f_2\|^2_{H^n(0, 1)}\\ &=\frac{1}{(2n-1)\pi^{2n}}\frac{1}{T^{2n-1}}\|f_1-f_2\|^2_{H^n(0, 1)}, \end{align*} which completes the proof. \end{proof} Now we show the proof of Theorem \ref{mr2}. \begin{proof} We can assume that $\epsilon_3<1$, otherwise the estimate is obvious. Applying Lemma 4.1 and the Parseval identity, we have \begin{align*} & \int_0^1 |f_1(x)-f_2(x)|^2{\rm d}x=\sum_{j=1}^\infty 4(j\pi)^2|{\bf E}{\rm Re}v(0, j\pi)|^2\\ &=\sum_{j=1}^T 4(j\pi)^2|{\bf E}{\rm Re}v(0, j\pi)|^2 +\sum_{j=T+1}^\infty 4(j\pi)^2|{\bf E}{\rm Re}v(0, j\pi)|^2 \end{align*} Let \[ T= \begin{cases} [N^{\frac{3}{4}}|\ln\epsilon_4|^{\frac{1}{9}}], & N^{\frac{3}{8}}<\frac{1}{2^{\frac{5}{6}} \pi^{\frac{2}{3}}}|\ln\epsilon_4|^{\frac{1}{9}},\\ N,&N^{\frac{3}{8}}\geq \frac{1}{2^{\frac{5}{6}} \pi^{\frac{2}{3}}}|\ln\epsilon_4|^{\frac{1}{9}} \end{cases}. \] Using Lemma 4.2 leads to \begin{align*} & \Bigl|\int_0^1\sin(\kappa x)(f_1(x)-f_2(x)) {\rm d}x\Bigr|^2\leq C M^2 e^{4\kappa}\epsilon_4^{2\mu(\kappa)}\leq CM^2 e^{4\kappa}e^{-2\mu(\kappa)|\ln\epsilon_4|}\\ &\leq CM^2 e^{4\kappa}e^{-\frac{2}{\pi}(\kappa^4-1)^{-\frac{1}{2}}|\ln\epsilon_4|}\leq CM^2 e^{4\kappa-\frac{2}{\pi}\kappa^{-2}|\ln\epsilon_4|}\\ &\leq CM^2 e^{-\frac{2}{\pi}\kappa^{-2}|\ln\epsilon_4|(1-2\pi\kappa^3|\ln\epsilon_4|^{ -1})},\quad \forall\,\kappa\in (2^{\frac{1}{4}},~\infty). \end{align*} Hence we have \begin{equation}\label{c2} \Bigl|\int_0^1\sin(\kappa x)(f_1(x)-f_2(x)) {\rm d}x\Bigr|^2\leq CM^2 e^{-\frac{2}{\pi^3}T^{-2}|\ln\epsilon_4|(1-2\pi^4 T^3|\ln\epsilon_4|^{ -1})},\quad\forall~\kappa\in (2^{\frac{1}{4}},~T\pi]. \end{equation} If $N^{\frac{3}{8}}<\frac{1}{2^{\frac{5}{6}} \pi^{\frac{2}{3}}}|\ln\epsilon_4|^{\frac{1}{9}}$, then $2\pi^4 T^3|\ln\epsilon_4|^{-1}<\frac{1}{2}$ and \begin{equation}\label{c3} e^{-\frac{2}{\pi^3}\frac{|\ln\epsilon_4|}{T^2}}\leq e^{-\frac{2}{\pi^3}\frac{|\ln\epsilon_4|}{N^{\frac{3}{2}}|\ln\epsilon_4|^{\frac{ 2}{9}}}}\leq e^{-\frac{2}{\pi^3}\frac{|\ln\epsilon_4|^{\frac{7}{9}}}{N^\frac{3}{2}}}\leq e^{-\frac{2}{\pi^3}\frac{2^5\pi^4 |\ln\epsilon_4|^{\frac{1}{9}} N^{\frac{9}{4}}}{N^{\frac{3}{2}}}}= e^{-64\pi |\ln\epsilon_4|^{\frac{1}{9}}N^{\frac{3}{4}}}. \end{equation} Combining \eqref{c2} and \eqref{c3}, we obtain \begin{align*} \Bigl|\int_0^1\sin(\kappa x)(f_1(x)-f_2(x)) {\rm d}x\Bigr|^2&\leq CM^2 e^{-\frac{2}{\pi^3}T^{-2}|\ln\epsilon_4|(1-2\pi^4 T^3|\ln\epsilon_4|^{ -1})}\\ &\leq CM^2 e^{-\frac{1}{\pi^3}T^{-2}|\ln\epsilon_4|}\leq CM^2 e^{-32\pi |\ln\epsilon_4|^{\frac{1}{9}} N^{\frac{3}{4}}},\quad\forall\kappa\in (2^{\frac{1}{4}},~T\pi]. \end{align*} It is easy to note that \[ e^{-x}\leq \frac{(6n-3)!}{x^{3(2n-1)}}\quad\text{for} ~ x>0. \] We have \[ \Bigl|\int_0^1\sin(j\pi x)(f_1(x)-f_2(x)) {\rm d}x\Bigr|^2\leq CM^2\frac{1}{\left(\frac{|\ln\epsilon_4|^{\frac{1}{3}}N^{\frac{9}{4}}}{(6n-3)^3}\right)^{2n-1}}, \quad j=1, \dots, T. \] Consequently, we obtain \begin{align*} & \sum_{j=1}^T \Bigl|\int_0^1\sin(j\pi x)(f_1(x)-f_2(x)) {\rm d}x\Bigr|^2\leq CM^2\frac{T}{\left(\frac{|\ln\epsilon_4|^{\frac{1}{3}}N^{\frac{9}{4}}}{(6n-3)^3}\right)^{2n-1}}\\ &\leq CM^2\frac{N^{\frac{3}{4}}|\ln\epsilon_4|^{\frac{1}{9}}}{\left(\frac{ |\ln\epsilon_4|^{\frac{1}{3}}N^{\frac{9}{4}}}{(6n-3)^3}\right)^{2n-1}}\leq CM^2 \frac{1}{\left(\frac{|\ln\epsilon_4|^{\frac{2}{9}}N^{\frac{3}{2}}}{(6n-3)^3}\right)^{2n-1}}\\ &\leq CM^2 \frac{1}{\left(\frac{|\ln\epsilon_4|^{\frac{1}{9}}N^{\frac{3}{2}}}{(6n-3)^3}\right)^{2n-1}}. \end{align*} Here we have noted that $|\ln\epsilon_4|>1$ when $N^{\frac{3}{8}}<\frac{1}{2^{\frac{5}{6}} \pi^{\frac{2}{3}}}|\ln\epsilon_4|^{\frac{1}{9}}$. If $N^{\frac{3}{8}}<\frac{1}{2^{\frac{5}{6}} \pi^{\frac{2}{3}}}|\ln\epsilon_4|^{\frac{1}{9}}$, we also have \begin{align*} \frac{1}{\left(\bigl[|\ln\epsilon_4|^{\frac{1}{9}}N^{\frac{3}{4}}\bigr]+1\right)^{2n-1}} \leq \frac{1}{\left(|\ln\epsilon_4|^{\frac{1}{9}}N^{\frac{3}{4}}\right)^{2n-1}}. \end{align*} If $N^{\frac{3}{8}}\geq \frac{1}{2^{\frac{5}{6}} \pi^{\frac{2}{3}}}|\ln\epsilon_4|^{\frac{1}{9}}$, then $T=N$. It follows from Lemma 4.1 that \[ \sum_{j=1}^T \Bigl|\int_0^1\sin(j\pi x)(f_1(x)-f_2(x)) {\rm d}x\Bigr|^2=\epsilon_3^2. \] Combining the above estimates, we obtain \begin{align*} \Bigl|\int_0^1\sin(\kappa x)(f_1(x)-f_2(x)) {\rm d}x\Bigr|^2\leq C\epsilon_3^2+CM^2 \frac{1}{\left(\frac{|\ln\epsilon_4|^{\frac{1}{9}}N^{\frac{3}{2}}}{(6n-3)^3}\right)^{2n-1}}\\ +CM^2\frac{1}{\bigl(|\ln\epsilon_4|^{\frac{1}{9}}N^{\frac{3}{4}} \bigr)^{2n-1}}+CM^2 \frac{(2^{\frac{5}{6}}\pi^{\frac{2}{3}})^{2n-1}}{\left(|\ln\epsilon_4|^{\frac{1}{9}}N^{\frac{5}{8}} \right)^{2n-1}}. \end{align*} Noting that $N^{\frac{5}{8}}\le N^{\frac{3}{4}} \le N^{\frac{3}{2}}$ and $2^{\frac{5}{6}}\pi^{\frac{2}{3}}\le (6n-3)^3$, $\forall n\in\mathbb{N}$. The proof is completed by combining the above estimates. \end{proof}
\section{Introduction} Negative index materials (NIMs) were investigated theoretically by Veselago in \cite{Veselago} and the existence of such materials was confirmed by Shelby, Smith, and Schultz in \cite{ShelbySmithSchultz}. The study of NIMs has attracted a lot attention in the scientific community thanks to their many potential applications. Mathematically, the study of NIMs faces two difficulties. First, the equations modeling NIMs have sign changing coefficients; hence the ellipticity and the compactness are lost in general. Secondly, the localized resonance, i.e. the fields blow up in some regions and remain bounded in some others as the loss goes to 0, might appear. \medskip Three known applications of NIMs are superlensing and cloaking using complementary media and cloaking a source via anomalous localized resonance (ALR). Superlensing using complementary media was suggested by Veselago in \cite{Veselago} for a slab lens (a slab of index $-1$) using the ray theory. Later, cylindrical lenses in the two dimensional quasistatic regime, the Veselago slab lens and cylindrical lenses in the finite frequency regime, and spherical lenses in the finite frequency regime were studied by Nicorovici, McPhedran, and Milton in \cite{NicoroviciMcPhedranMilton94}, Pendry in \cite{PendryNegative, PendryCylindricalLenses}, and Ramakrishna and Pendry in \cite{PendryRamakrishna} respectively for dipoles sources. Superlensing using complementary media for arbitrary objects in the acoustic and electromagnetic settings was established by Nguyen in \cite{Ng-Superlensing, Ng-Superlensing-Maxwell} for related schemes. Cloaking using complementary media was suggested and investigated numerically by Lai et al. in \cite{LaiChenZhangChanComplementary}. This was established rigorously for related schemes by Nguyen in \cite{Ng-Negative-Cloaking} for the quasi-static regime and later extended by Nguyen and (H. L.) Nguyen in \cite{MinhLoc2} for the finite frequency regime. Cloaking a source via ALR was discovered by Milton and Nicorovici in \cite{MiltonNicorovici} for constant radial symmetric plasmonic structures in the two dimensional quasi-static regime. Their work has root from \cite{NicoroviciMcPhedranMilton94} (see also \cite{Nicorovici93, NicoroviciMcPhedranMiltonPodolskiy1}) where the localized resonance was observed and established for such a setting. Later, cloaking a source via ALR was studied by Milton et al. in \cite{Milton-folded}, Bouchitte and Schweizer in \cite{BouchitteSchweizer10}, Ammari et al. in \cite{AmmariCiraoloKangLeeMilton, AmmariCiraoloKangLeeMilton2}, Kohn et al in \cite{KohnLu},, Nguyen and (H. L.) Nguyen in \cite{MinhLoc1} in which special structures were considered due to the use of the separation of variables or the blow up of the power was investigated via spectral theory or variational method. In \cite{Ng-CALR-CRAS, Ng-CALR, Ng-CALR-frequency}, Nguyen investigated cloaking a source via ALR for a class of complementary media called the class of doubly complementary media for a general core-shell structure. In these works, the blow up of the power, the localized resonance, and the cloaking effect are studied. The reader can find a recent survey on the mathematical aspects for NIMs in \cite{Ng-Survey}. \medskip In this paper, we add to the list of applications of NIMs a new one namely cloaking {\bf an arbitrary object via ALR}. More precisely, we propose schemes for this type of cloaking and provide the analysis for them. Before stating the result, we introduce notations: \begin{notation} Given $R>0$ and $x \in \mathbb{R}^d$, we denote $B(x, R)$ the open ball in $\mathbb{R}^d$ centered at $x$ and of radius $R$; when $x = 0$, we simply denote $B(x, R) $ by $B_R$. \end{notation} The first result in this paper, whose proof is given in Section~\ref{sect-proof}, confirms that an annular plasmonic structure $-I$ cloaks small but finite size objects close to it in the quasistatic regime. More precisely, we have \begin{theorem}\label{thm-CS-1} Let $d=2$, $0 < r_0 < r_1 < r_2 < R_0$, $x_1 \in \partial B_{r_1}$, and $x_2 \in \partial B_{r_2}$. Set $r_3 = r_2^2/ r_1$ and ${\cal C} := \big(B(x_1, r_0) \cap B_{r_1} \big) \cup \big(B(x_2, r_0) \cap (B_{r_3} \setminus B_{r_2}) \big)$ and let $a_c$ be a symmetric uniformly elliptic matrix-valued function defined in ${\cal C}$. Define \begin{equation}\label{def-AS-CS} A_c = \left\{\begin{array}{cl} a_c & \mbox{ in } {\cal C}, \\[6pt] I & \mbox{ otherwise}, \end{array}\right. \quad \mbox{ and } \quad s_\delta = \left\{\begin{array}{cl} -1 - i \delta & \mbox{ in } B_{r_2} \setminus B_{r_1}, \\[6pt] 1 & \mbox{ otherwise}. \end{array}\right. \end{equation} Given $f \in L^2(\mathbb{R}^2)$ with $\operatorname{supp} f \subset B_{R_0} \setminus B_{r_3}$ and $\displaystyle \int_{\mathbb{R}^2} f = 0$, let $u_\delta, {\hat u} \in W^1(\mathbb{R}^2)$ be respectively the unique solution to the equations \begin{equation}\label{def-udelta-CS} \operatorname{div}(s_\delta A_c \nabla u_\delta ) = f \mbox{ in } \mathbb{R}^2 \end{equation} and \begin{equation}\label{def-U-CS} \Delta {\hat u} = f \mbox{ in } \mathbb{R}^2. \end{equation} For any $0 < \gamma < 1/2$, there exists $r_0(\gamma) > 0$, which depends only on $r_1$ and $r_2$, such that if $r_0 < r_0(\gamma)$ then, for $R>0$, \begin{equation}\label{result-CS} \| u_\delta - {\hat u} \|_{H^1(B_R \setminus B_{r_3})} \le C_R \delta^{\gamma} \| f\|_{L^2(\mathbb{R}^2)}, \end{equation} where $C_R$ is a positive constant independent of $f$, $\delta$, $r_0$, $x_1$, and $x_2$. \end{theorem} \begin{figure}[h!] \begin{center} \includegraphics[width=10cm]{CALR-O-2.eps} \caption{In the two dimensional quasistatic regime, the plamonic structure $-I$ in $B_{r_2} \setminus B_{r_1}$ (the red region) cloaks arbitrary objects located nearby in ${\cal C}$. The medium on the left is equivalent to the homogeneous medium $I$ on the right for sources far away from the plasmonic structure.} \label{fig0} \end{center} \end{figure} Here and in what follows, $$ W^1(\mathbb{R}^2) : = \Big\{u \in H^1_{_{loc}}(\mathbb{R}^2); \nabla u \in L^2(\mathbb{R}^2) \mbox{ and } \frac{u(x)}{ \ln (2 + |x|) \sqrt{1 + |x|^2}} \in L^2(\mathbb{R}^2) \Big\}. $$ For an observer outside $B_{r_3}$, the medium $s_0A_c$ in $B_{r_3}$ looks like $I$ in $B_{r_3}$: the object $a_c$ in ${\cal C}$ is cloaked. No condition is imposed on $a_c$; any symmetric uniformly elliptic matrix $a_c$ in ${\cal C}$ is allowed. The cloak $-I$ in $B_{r_2} \setminus B_{r_1}$ is {\bf independent} of the object. It is interesting to note that the plasmonic structure $-I$ in $B_{r_2} \setminus B_{r_1}$ can used in lens devices using NIMs, see \cite{NicoroviciMcPhedranMilton94, Ng-Superlensing}. \medskip In the two dimensional finite frequency regime, we obtain the following result whose proof is given in Section~\ref{sect-proof}. \begin{theorem}\label{thm-CS-1-k} Let $d=2$, $0 < r_0 < r_1 < r_2 < R_0$, $x_1 \in \partial B_{r_1}$, and $x_2 \in \partial B_{r_2}$. Set $r_3 = r_2^2/ r_1$ and ${\cal C} := \big(B(x_1, r_0) \cap B_{r_1} \big) \cup \big(B(x_2, r_0) \cap (B_{r_3} \setminus B_{r_2}) \big)$. Let $a_c$ be a symmetric uniformly elliptic matrix-valued function and let $\sigma_c $ be a bounded real function both defined in ${\cal C}$ such that $a_c$ is piecewise $C^1$ and $\sigma_c$ is bounded below by a positive constant. Define \begin{equation}\label{def-AS-CS-k} \big( A_c, \Sigma_c \big) = \left\{\begin{array}{cl} \big(a_c, \sigma_c \big) & \mbox{ in } {\cal C}, \\[6pt] \big( I, r_2^4/|x|^4 \big)& \mbox{ in } B_{r_2} \setminus B_{r_1}, \\[6pt] \big( I, r_3^2/r_1^2 \big) & \mbox{ in } B_{r_1} \setminus {\cal C}, \\[6pt] \big( I, 1\big) & \mbox{ otherwise}, \end{array}\right. \quad \mbox{ and } \quad s_\delta = \left\{\begin{array}{cl} -1 - i \delta & \mbox{ in } B_{r_2} \setminus B_{r_1}, \\[6pt] 1 & \mbox{ otherwise}. \end{array}\right. \end{equation} Given $f \in L^2(\mathbb{R}^2)$ with $\operatorname{supp} f \subset B_{R_0} \setminus B_{r_3}$, let $u_\delta, {\hat u} \in H^1_{_{loc}}(\mathbb{R}^2)$ be respectively the unique outgoing solution to the equations \begin{equation}\label{def-udelta-CS-k} \operatorname{div}(s_\delta A_c \nabla u_\delta ) + k^2 s_0 \Sigma_c u_\delta = f \mbox{ in } \mathbb{R}^2 \end{equation} and \begin{equation}\label{def-u-CS-k} \Delta {\hat u} + k^2 {\hat u} = f \mbox{ in } \mathbb{R}^2. \end{equation} For any $0 < \gamma < 1/2$, there exists $r_0 (\gamma)>0$, which depends only on $r_1$ and $r_2$ such that if $r_0 < r_0(\gamma)$ then \begin{equation}\label{result-CS-k} \| u_\delta - {\hat u}\|_{H^1(B_{R} \setminus B_{r_3})} \le C_R \delta^\gamma \| f\|_{L^2}, \end{equation} for some positive constant $C_R$ independent of $f$, $\delta$, $r_0$, $x_1$, and $x_2$. \end{theorem} Recall that a function $u \in H^1_{_{loc}}(\mathbb{R}^d \setminus B_R)$ $(d \ge 2)$ for some $R>0$ which is a solution to the equation $\Delta u + k^2 u = 0 $ in $\mathbb{R}^d \setminus B_R$ is said to satisfy the outgoing condition if \begin{equation*} \partial_r u - i k u = o( r^{\frac{1-d}{2}}) \mbox{ as } r = |x| \to + \infty. \end{equation*} For an observer outside $B_{r_3}$, the medium $(s_0A, s_0 \Sigma)$ in $B_{r_3}$ looks like $(I,1)$ in $B_{r_3}$: the object $(a_c, \sigma_c)$ in ${\cal C}$ is cloaked. No condition other than the standard ones is imposed on $a_c$ and $\sigma_c$. The cloak is {\bf independent} of the object. It is interesting to note that the plasmonic structure $(-I, - r_2^4/|x|^4)$ in $B_{r_2} \setminus B_{r_1}$ can used in lens devices using NIMs, see \cite{PendryRamakrishna, Ng-Superlensing}. \medskip In Section~\ref{sect-general}, we show in two and three dimensions that for a class of doubly complementary media, introduced in \cite{Ng-CALR, Ng-CALR-frequency} (see Definition~\ref{def-DCM} in Section~\ref{sect-general}), an arbitrary object can be disappeared if it is small and located close to the plasmonic structure (see Theorem~\ref{thm-main-g} in Section~\ref{sect-general}). Therefore, a medium in this class becomes a cloaking device which is {\bf independent} of the object. \medskip Cloaking an object via ALR is related to but different from cloaking using complementary suggested in \cite{LaiChenZhangChanComplementary} and rigorously established in \cite{Ng-Negative-Cloaking, MinhLoc2} for related schemes. Both types of cloaking use the concept of complementary media to design cloaking devices. Nevertheless, in the cloaking using complementary media approach, one cloaks an object by using its complementary to cancel the effect of light; hence the cloaking device depends on the object. \medskip Cloaking an object via ALR and cloaking a source via ALR share some similar figures but have some different characters. In the two dimensional quasistatic regime, one can use the plasmonic structure $-I$ in $B_{r_2} \setminus B_{r_1}$ as a cloaking device in both settings. More general, doubly complementary media are used as a cloaking device in both types of cloaking (see \cite{Ng-CALR, Ng-CALR-frequency} and Section~\ref{sect-general}). Nevertheless, concerning cloaking a source via ALR, the cloaking effect is {\bf relative} in the sense that the source is cloaked after being renormalized so that the power remains finite \footnote{The power is $\delta \| \nabla u_\delta\|_{L^2(B_{r_2} \setminus B_{r_1})^2}$.} (see e.g. \cite{Ng-CALR}). Concerning cloaking an object via ALR, the cloaking effect is {\bf not relative} in the sense that one does not need to renormalize the power. In fact, the power is finite in the setting of cloaking an object via ALR considered here (see Remarks~\ref{rem1-power} and \ref{rem2-power}). \medskip Milton and Nicorovici in \cite{MiltonNicorovici} questioned that whether or not the structure $-I$ in $B_{r_2} \setminus B_{r_1}$ would cloak small objects nearby in two dimensional quasistatic regime. Various numerical simulations on this effect were reported by Bruno and Lintner in \cite{BrunoLintner07}; even though the cloaking effect is still mysterious and questionable. In this paper, the guest of Milton and Nicorovici was confirmed (Theorem~\ref{thm-CS-1}) and similar phenomena are observed and analyzed in the finite frequency regime in both two and three dimensions (Theorems~\ref{thm-CS-1-k} and \ref{thm-main-g} ). As mentioned, the plasmonic structures used in Theorem~\ref{thm-CS-1} and \ref{thm-CS-1-k} can be used in lens devices using NIMs. More generally, it is established in \cite{Ng-Superlensing} that doubly complementary media can act like lenses. In this paper, we showed that they might become a cloak for small but finite size objects near by. Thus the results presented here show that the modification given in \cite{Ng-Superlensing} from the suggestions in \cite{MiltonNicorovici, PendryRamakrishna} is necessary to ensure the superlensing property; otherwise, a lens can become a cloak (see Section~\ref{sect-CM-Superlensing}). In the same spirit, we as well show that it is necessary to modify the scheme of cloaking using complementary media suggested in \cite{LaiChenZhangChanComplementary} as done in \cite{Ng-Negative-Cloaking} (see Section~\ref{sect-CM-Cloaking}). \medskip The analysis in this paper is on one hand based on the use of reflecting and removing singularity techniques introduced in \cite{Ng-Superlensing, Ng-Negative-Cloaking} and on the other hand involves a new type of three spheres inequality with ``partial data" and the use of conformal maps in two dimensions. \medskip The rest of the paper is organized as follows. In Section~\ref{sect-general}, we present a scheme of cloaking an object via ALR for a class of doubly complementary media and provide their analysis. The main result of this section is Theorem~\ref{thm-main-g}. In Section~\ref{sect-2d}, we first provide the proof of Theorems~\ref{thm-CS-1} and \ref{thm-CS-1-k} in Section~\ref{sect-proof}. We then show that the modified schemes considered in \cite{Ng-Superlensing} and \cite{Ng-Negative-Cloaking} for superlensing and cloaking using complementary media are necessary in Sections \ref{sect-CM-Superlensing} and \ref{sect-CM-Cloaking}. \section{A class of doubly complementary media acting as a cloaking device} \label{sect-general} Let $k > 0$ and let $A$ be a real uniformly elliptic symmetric matrix-valued function and $\Sigma$ be a real function bounded below and above by positive constants both defined in $\mathbb{R}^d$ ($d = 2, 3$), i.e., $A$ is symmetric and for some $\Lambda \ge 1$ \begin{equation}\label{elliptic} \Lambda^{-1} |\xi|^2 \le \langle A \xi, \xi \rangle \le \Lambda |\xi|^2 \quad \mbox{ and } \quad \Lambda^{-1} \le \Sigma \le \Lambda. \end{equation} Assume that \begin{equation}\label{cond-I} A(x) = I, \quad \Sigma(x) = 1 \mbox{ for large $|x|$}, \end{equation} and \begin{equation}\label{cond-C1} A \mbox{ is piecewise } C^1. \end{equation} The assumption \eqref{cond-C1} is used for the uniqueness of outgoing solutions. In what follows, in the case $k>0$, any matrix-valued function considered is assumed to satisfy \eqref{cond-C1}. \medskip Let $\Omega_1 \subset \subset \Omega_2 \subset \subset \mathbb{R}^d$ be smooth bounded simply connected open subsets of $\mathbb{R}^d$, and set, for $\delta \ge 0$, \begin{equation}\label{def-sd} s_\delta (x) = \left\{\begin{array}{cl} - 1 - i \delta & \mbox{ in } \Omega_2 \setminus \Omega_1, \\[6pt] 1 & \mbox{ in } \mathbb{R}^d \setminus (\Omega_2 \setminus \Omega_1). \end{array}\right. \end{equation} Given $f \in L^2(\mathbb{R}^d)$ with compact support and $\operatorname{supp} f \cap \Omega_2 = \O$, and $\delta > 0$, let $u_\delta \in H^1_{_{loc}}(\mathbb{R}^d)$ be the unique outgoing solution to \begin{equation}\label{def-ud} \operatorname{div} (s_\delta A \nabla u_\delta) + k^2 s_0 \Sigma u_\delta = f \mbox{ in } \mathbb{R}^d. \end{equation} In this section, we discuss the behavior of $u_\delta$ as $\delta \to 0$ when the medium inherits the doubly complementary property. To this end, we first recall the definition of reflecting complementary media and doubly complementary media introduced in \cite{Ng-Complementary} and \cite{Ng-CALR, Ng-CALR-frequency} respectively. \begin{definition}[Reflecting complementary media] \fontfamily{m} \selectfont \label{def-Geo} Let $\Omega_1 \subset \subset \Omega_2 \subset \subset \Omega_3 \subset \subset \mathbb{R}^d$ be smooth bounded simply connected open subsets of $\mathbb{R}^d$. The media $(A, \Sigma)$ in $\Omega_3 \setminus \Omega_2$ and $(-A, -\Sigma)$ in $\Omega_2 \setminus \Omega_1$ are said to be {\it reflecting complementary} if there exists a diffeomorphism $F: \Omega_2 \setminus \bar \Omega_1 \to \Omega_3 \setminus \bar \Omega_2$ such that $F \in C^1(\bar \Omega_2 \setminus \Omega_1)$, \begin{equation}\label{cond-ASigma} (F_*A, F_*\Sigma) = (A, \Sigma ) \mbox{ for } x \in \Omega_3 \setminus \Omega_2, \end{equation} \begin{equation}\label{cond-F-boundary} F(x) = x \mbox{ on } \partial \Omega_2, \end{equation} and the following two conditions hold: 1) There exists an diffeomorphism extension of $F$, which is still denoted by $F$, from $\Omega_2 \setminus \{x_1\} \to \mathbb{R}^d \setminus \bar \Omega_2$ for some $x_1 \in \Omega_1$; 2) There exists a diffeomorphism $G: \mathbb{R}^d \setminus \bar \Omega_3 \to \Omega_3 \setminus \{x_1\}$ such that $G \in C^1(\mathbb{R}^d \setminus \Omega_3)$, $G(x) = x \mbox{ on } \partial \Omega_3$, and $ G \circ F : \Omega_1 \to \Omega_3 \mbox{ is a diffeomorphism if one sets } G\circ F(x_1) = x_1. $ \end{definition} Here and in what follows, if ${\cal T}$ is a diffeomorphism and $a$ and $\sigma$ are respectively a matrix-valued function and a complex function, we use the following standard notations \begin{equation}\label{def-F*} {\cal T}_*a(y) = \frac{D{\cal T}(x) a(x) \nabla {\cal T}(x)^T}{|\operatorname{det} \nabla {\cal T}(x)|} \quad \mbox{ and } \quad {\cal T}_*\sigma(y) = \frac{ \sigma(x) }{|\operatorname{det} \nabla {\cal T}(x)|} \quad \mbox{ where } x = {\cal T}^{-1}(y). \end{equation} Conditions \eqref{cond-ASigma} and \eqref{cond-F-boundary} are the main assumptions in Definition~\ref{def-Geo}. The key point behind this requirement is roughly speaking the following property: if $u_0 \in H^1(\Omega_3 \setminus \Omega_1)$ is a solution of $\operatorname{div}(s_0 A \nabla u_0) + k^2 s_0 \Sigma u_0= 0$ in $\Omega_3 \setminus \Omega_1$ and if $u_1$ is defined in $\Omega_3 \setminus \Omega_2$ by $u_1 = u_0 \circ F^{-1}$, then $\operatorname{div}(A \nabla u_1) + k^2 \Sigma u_1 = 0$ in $\Omega_3 \setminus \Omega_2$, $u_1 - u_0 = A \nabla (u_1 - u_0) \cdot \nu = 0 $ on $\partial \Omega_2$ (see e.g. Lemma~\ref{lem-TO}). Here and in what follows, $\nu$ denotes the outward unit vector on the boundary of a smooth bounded open subset of $\mathbb{R}^d$. Hence $u_1 = u$ in $\Omega_3 \setminus \Omega_2$ by the unique continuation principle. Conditions 1) and 2) are mild assumptions. Introducing $G$ makes the analysis more accessible, see \cite{Ng-Complementary, Ng-Superlensing, Ng-Negative-Cloaking, MinhLoc2} and the analysis presented in this paper. \medskip We are ready to recall the definition of doubly complementary media: \begin{definition} \label{def-DCM} \fontfamily{m} \selectfont The medium $(s_0 A, s_0\Sigma)$ is said to be {\it doubly complementary} if for some $\Omega_2 \subset \subset \Omega_3$, $(A, \Sigma)$ in $\Omega_3 \setminus \Omega_2$ and $(-A, - \Sigma)$ in $\Omega_2 \setminus \Omega_1 $ are reflecting complementary, and \begin{equation}\label{def-DC} F_*A = G_* F_*A = A \quad \mbox{ and } \quad F_*\Sigma = G_* F_*\Sigma = \Sigma \mbox{ in } \Omega_3 \setminus \Omega_2, \end{equation} for some $F$ and $G$ coming from Definition~\ref{def-Geo}. \end{definition} The reason for which media satisfying \eqref{def-DC} are called doubly complementary media is that $(-A, -\Sigma)$ in $B_{r_2} \setminus B_{r_1}$ is not only complementary to $(A, \Sigma)$ in $\Omega_3 \setminus \Omega_2$ but also to $(A, \Sigma)$ in $(G \circ F)^{-1}(\Omega_3 \setminus \overline{\Omega_2})$, a subset of $\Omega_1$ (see Figure \ref{fig1}). The key property behind Definition~\ref{def-DCM} is as follows. Assume that $u_0 \in H^1_{_{loc}}(\mathbb{R}^d)$ is a solution of \eqref{def-ud} with $\delta = 0$ and $f = 0$ in $\Omega_3$. Set $u_1 = u_0 \circ F^{-1}$ and $u_{2} = u_1 \circ G^{-1}$. Then $u_0, \, u_1, \, u_2$ satisfy the equation $\operatorname{div}(A \nabla \cdot) + k^2 \Sigma \cdot = 0$ in $\Omega_3 \setminus \Omega_2$, $u_0 - u_1 = A \nabla u_0 \cdot \nu - A \nabla u_1 \cdot \nu = 0$ on $\partial \Omega_2$, and $u_1 - u_2 = A \nabla u_1 \cdot \nu - A \nabla u_2 \cdot \nu = 0$ on $\partial \Omega_3$ (see e.g. Lemma~\ref{lem-TO}). This implies $u_0 = u_1 = u_2$ in $\Omega_3 \setminus \Omega_2$. \begin{figure}[h!] \begin{center} \includegraphics[width=6cm]{CALR-F.eps} \caption{$(s_0A, s_0\Sigma)$ is doubly complementary: $(-A, -\Sigma)$ in $\Omega_2 \setminus \Omega_1$ (the red region) is complementary to $(F_*A, F_*\Sigma)$ in $\Omega_3 \setminus \Omega_2$ (the grey region) and $(K_*A, K_*\Sigma)$ with $K = F^{-1} \circ G^{-1} \circ F$ in $K(B_{r_2} \setminus B_{r_1})$ (the blue grey region).} \label{fig1} \end{center} \end{figure} Taking $d=2$ and $r_3 = r_2^2/r_1$, and letting $F$ and $G$ be the Kelvin transform with respect to $\partial B_{r_2}$ and $\partial B_{r_3}$, one can verify that the media considered in Theorems~\ref{thm-CS-1} and \ref{thm-CS-1-k} with $r_0 = 0$ are of doubly complementary property. Theorems~\ref{thm-CS-1} and \ref{thm-CS-1-k} reveal that doubly complementary media might cloak small but finite size arbitrary objects nearby. \begin{remark} \label{rem-DCM} \fontfamily{m} \selectfont Given $(A, \Sigma)$ in $\mathbb{R}^d$ and $\Omega_1 \subset \Omega_2 \subset \subset \mathbb{R}^d$, it is not easy in general to verify whether or not $(s_0A, s_0 \Sigma)$ is doubly complementary. Nevertheless, given $\Omega_1 \subset \Omega_2 \subset \subset \Omega_3 \subset \subset \mathbb{R}^d$ and $(A, \Sigma)$ in $\Omega_3 \setminus \Omega_2$, it is quite easy to choose $(A, \Sigma)$ in $\Omega_2$ such that $(s_0A, s_0\Sigma)$ is doubly complementary. One just needs to choose diffeomorphisms $F$ and $G$ as in Definition~\ref{def-Geo} and define $(A, \Sigma) = (F^{-1}_*A, F^{-1}_*\Sigma)$ in $\Omega_2 \setminus \Omega_1$ and $(A, \Sigma) = (F^{-1}_*G^{-1}_*A, F^{-1}*G^{-1}_*\Sigma)$ in $F^{-1}\circ G^{-1} (\Omega_3 \setminus \Omega_2)$. \end{remark} The following result established in \cite[Theorem 1.1]{Ng-CALR-frequency} (see also \cite[Theorem 2 and Corollary 2]{Ng-Complementary}) provide an interesting property of doubly complementary media. \begin{proposition}\label{pro-recall} Let $d=2, 3$, $k>0$, $0 < \delta < 1$, $f \in L^2(\mathbb{R}^d)$ with compact support and $\operatorname{supp} f \cap \Omega_3 = \O$, and let $U_\delta \in H^1_{_{loc}}(\mathbb{R}^d)$ be the unique outgoing solution of \eqref{def-ud}. Assume that $(s_0A, s_0\Sigma)$ is doubly complementary. Then \begin{equation}\label{part2} U_\delta \to {\hat u}\mbox{ weakly in } H^1_{_{loc}}(\mathbb{R}^d \setminus \Omega_3), \end{equation} where ${\hat u} \in H^1_{_{loc}}(\mathbb{R}^d)$ is the unique outgoing solution of \begin{equation}\label{UU} \operatorname{div} ({\hat A} \nabla {{\hat u}}) + k^2 \hat \Sigma {\hat u}= f \mbox{ in } \mathbb{R}^d. \end{equation} Here \begin{equation}\label{def-cAS} ({\hat A}, \hat \Sigma) := \left\{\begin{array}{cl} (A, \Sigma) & \mbox{ in } \mathbb{R}^d \setminus \Omega_3, \\[6pt] (G_*F_*A, G_*F_*\Sigma) & \mbox{ in } \Omega_3. \end{array}\right. \end{equation} \end{proposition} The cloaking property for a class of doubly complementary media is given in the following \begin{theorem}\label{thm-main-g} Let $d =2, \, 3$, $0< s < r_1 < 6 r_1 < r_2 < r_3 < R_0$. Set \begin{equation*} H_{t} = \big\{x' \in \mathbb{R}^{d-1}; \; |x'| < s \big\} \times [t , + \infty) \quad \mbox{ for } t\in \mathbb{R}. \end{equation*} Assume that $(s_0A, s_0\Sigma)$ is doubly complementary with $\Omega_1 = B_{r_1}$, $\Omega_2 = B_{r_2} \setminus H_{2 r_1}$, and $\Omega_3 = B_{r_3}$. Let $a_c$ be a symmetric uniformly elliptic matrix-valued function and $\sigma_c$ be a real function bounded above and below by positive constants both defined in $H_{2r_1} \setminus H_{3 r_1}$. Assume that $A$ is $C^1$ in $B(z, r_1)$ with $z =(0, \cdots, 0, 4 r_1)$. Define \begin{equation*} (A_{c}, \Sigma_c) = \left\{ \begin{array}{cl} (a_c, \sigma_c) & \mbox{ in } H_{2r_1} \setminus H_{3 r_1}, \\[6pt] (A, \Sigma) & \mbox{ otherwise}. \end{array}\right. \end{equation*} Let $k>0$, $0 < \delta < 1$, $f \in L^2(\mathbb{R}^d)$ with $\operatorname{supp} f \subset B_{R_0 } \setminus B_{r_3}$ and let $u_{\delta} \in H^1_{_{loc}}(\mathbb{R}^d)$ be the unique outgoing solution of \begin{equation} \operatorname{div} (s_\delta A_c \nabla u_\delta) + k^2 s_0 \Sigma_c u_\delta = f \mbox{ in } \mathbb{R}^d. \end{equation} For any $0 < \gamma < 1/2$, there exists a positive constant $m $ depending only on $\gamma$, $r_1$, and the elliptic and the Lipschitz constant of $A$ in $B(z, r_1)$ such that if $r_1 > m s$ then \begin{equation}\label{part2-*} \| u_{\delta} - {\hat u}\|_{(B_R \setminus B_{r_3})} \le C_R \delta^\gamma \| f\|_{L^2}, \end{equation} for some positive constant $C_R$ independent of $f$ and $\delta$ where ${\hat u} \in H^1_{_{loc}}(\mathbb{R}^d)$ is the unique outgoing solution of \eqref{UU}. \end{theorem} The geometry of the cloak is given in Figure~\ref{fig2}. \medskip For an observer outside $B_{r_3}$, the medium $(s_0A, s_0 \Sigma)$ in $B_{r_3}$ looks like $(\hat A,\hat \Sigma)$ in $B_{r_3}$, which is independent of $(a_c, \sigma_c)$ in ${\cal C}$: the object $(a_c, \sigma_c)$ in ${\cal C}$ is cloaked. For example, by choosing the medium $(A, \Sigma)$ in $\Omega_1$ in such a way that $G_*F_*A = I$ and $G_*F_*\Sigma = 1$ in $\Omega_3$, i.e., $A = F^{-1}_*G^{-1}_*I$ and $\Sigma = F^{-1}_*G^{-1}_*1$ in $\Omega_1$ then $(\hat A, \hat \Sigma) = (I, 1)$: the object $(a_c, \sigma_c)$ in $H_{r_1} \setminus H_{2 r_1}$ disappeared in comparison with the homogeneous medium $(I, 1)$. \begin{remark} The assumption that $A$ is $C^1$ in $B(z, r_1)$ is required for the use of three spheres inequality. \end{remark} \begin{figure}[h!] \begin{center} \includegraphics[width=6cm]{test11.eps} \caption{The cloaking device has the doubly complementary property and contains the plasmonic structure in the region $\Omega_2 \setminus B_{r_1}$ which has red boundary. The plamonic structure is is charaterized by $(F^{-1}_*I, F^{-1}_*1)$ for some diffeomorphism $F: \Omega_2 \setminus B_{r_1} \to B_{r_3} \setminus \bar \Omega_2$. The region $H_{2r_1} \setminus H_{3r_1}$ is the rectangle containing the blue object. Any object inside this region (for example the blue one) is cloaked.} \label{fig2} \end{center} \end{figure} \medskip The rest of this section containing two subsections is devoted to the proof of Theorem~\ref{thm-main-g}. Some useful lemmas are presented in the first subsection and the proof of Theorem~\ref{thm-main-g} is given in the second subsection. \subsection{Some useful lemmas} We first recall a three spheres inequality which is an immediate consequence of \cite[Theorem 2]{MinhLoc2}. \begin{lemma}\label{lem-MinhLoc} Let $d= 2, 3$, $c_1, c_2 >0$, $0 < R_1 < R_2 < R_3$, and let $a$ be a Lipschitz uniformly elliptic symmetric matrix-valued function defined in $B_{R_3}$, and $v \in H^1(B_{R_3} \setminus B_{R_1})$. Assume that \begin{equation}\label{eq-Main} |\operatorname{div} (a \nabla v)| \le c_1 |\nabla v| + c_2|v|, \quad \mbox{ in } B_{R_3} \setminus B_{R_1}. \end{equation} There exists a constant $q \ge 1$, depending only on the elliptic and the Lipschitz constants of $a$ such that \begin{equation}\label{def-alpha} \| v\|_{{\bf H}(\partial B_{R_2})} \le C\| v\|_{{\bf H}(\partial B_{R_1})} ^{\alpha} \| v\|_{{\bf H}(\partial B_{R_3})}^{1-\alpha} \quad \mbox{ where } \quad \alpha := \frac{R_2^{-q} - R_3^{-q}}{R_1^{-q} - R_{3}^{-q}}, \end{equation} where, for a smooth manifold $\Gamma$ of $\mathbb{R}^d$ with or without boundary, \begin{equation}\label{def-norm-H} \| v\|_{{\bf H}(\Gamma)}: = \|v \|_{H^{1/2}(\Gamma)} + \|a \nabla v \cdot \nu \|_{H^{-1/2}(\Gamma)} \; \; \footnote{In this paper, $H^{-1/2}(\Gamma)$ denotes the duality of $H^{1/2}_0(\Gamma)$, the completion of $C^1_{\mathrm{c}}(\Gamma)$ in $H^{1/2}(\Gamma)$, with the corresponding norm. Note that if $\Gamma$ has no boundary, then $H^{1/2}_0(\Gamma) = H^{1/2}(\Gamma)$.}. \end{equation} Here $C$ is a positive constant depending on the elliptic and the Lipschitz constants of $a$, and the constants $c_1,$ $c_2,$ $R_1, R_2, R_3$, but independent of $v$. \end{lemma} \begin{remark} In Lemma~\ref{lem-MinhLoc}, the constant $q$ is independent of $c_1$ and $c_2$ and there is no requirement on the smallness of $R_1, R_2$ and $R_3$. This is different from the standard three sphere inequalities obtained previously in the literature (see, e.g., \cite{AlessandriniRondi}) and plays an important role in our analysis. \end{remark} Applying Lemma~\ref{lem-MinhLoc}, we can establish \begin{lemma}\label{lem-3S-1} Let $d=2, 3$, $0 < s < R$ and set $D = \big\{x' \in \mathbb{R}^{d-1}; |x'| < s \big\} \times (-R, R)$. Let $a$ and $\sigma$ be respectively a Lipschitz symmetric uniformly elliptic matrix-valued function and a real bounded function both defined in $B_{R}$. Let $f \in L^2(D)$ and $v \in H^1(D)$ be such that \begin{equation*} \operatorname{div} (a \nabla v) + \sigma v = f \mbox{ in } D. \end{equation*} Define $\Gamma = \big\{(x', x_d) \in \partial D \; ; \; |x_d| \le \frac{5}{6}R \big\}$. For any $0 < \alpha < 1$, there exists a constant $m >1$ depending only on the Lipschitz and the elliptic constants of $a$ such that if $R > m s$ then, for some positive constant $C_{s, R}$ independent of $v$ and $f$, \begin{equation}\label{inequality-3S} \| v\|_{H^1(B_{2 s} \cap D)} \le C_{s, R} \big(\| v \|_{{\bf H}(\Gamma)} + \| f\|_{L^2} \big)^{\alpha} \big( \| v \|_{H^1(D)} + \| f\|_{L^2} \big)^{1 - \alpha}. \end{equation} \end{lemma} \begin{remark} Lemma~\ref{lem-3S-1} can be considered as a type of three sphrees inequality with ``partial data" since no information of $v$ on $\partial D \setminus \Gamma$ is required. Lemma~\ref{lem-3S-1} plays an important role in the proof of Theorem~\ref{thm-main-g}. \end{remark} \noindent{\bf Proof.} We first consider the case $f = 0$. Fix $\varphi \in C^1_{\mathrm{c}}(\mathbb{R}^d)$ such that $\varphi = 1$ on $B_{2 R /3}$ and $\operatorname{supp} \varphi \subset B_{3R/4}$. Let $w \in H^1(B_{4R/5} \setminus \Gamma)$ be such that \begin{equation*} \operatorname{div} (a \nabla w) + \sigma w = 0 \mbox{ in } B_{4R/5} \setminus \Gamma, \quad a \nabla w \cdot \nu + i w = 0 \mbox{ on } \partial B_{4 R/5} , \end{equation*} \begin{equation*} [w] = \varphi v , \quad [a \nabla w \cdot \nu] = \varphi a \nabla v \cdot \nu \mbox{ on } \Gamma. \end{equation*} Here and in what follows, on $\partial D$, $[ u ] : = u |_{\mathbb{R}^d \setminus D} - u |_{D}$ for an appropriate function $u$; similar notation is used for $[a \nabla u \cdot \nu]$ on $\partial D$. Since $$ \| \varphi v \|_{H^{1/2}(\Gamma)} + \| \varphi a \nabla v \cdot \nu \|_{H^{-1/2}(\Gamma)} \le C \big( \|v \|_{H^{1/2}(\Gamma)} + \| a \nabla v \cdot \nu \|_{H^{-1/2}(\Gamma)}\big), $$ it follows that \begin{equation}\label{lem-3S-1-part1} \| w\|_{H^1(B_{4 R /5} \setminus \Gamma)} \le C \| v \|_{{\bf H}(\Gamma)}. \end{equation} Here and in what follows $C$ denotes a positive constant independent of $v$. Define \begin{equation}\label{lem-3S-1-part2} V = \left\{ \begin{array}{cl} w + v & \mbox{ in } D, \\[6pt] w & \mbox{ in } B_{4R/5} \setminus D. \end{array}\right. \end{equation} Note that \begin{equation}\label{rem-toto} \| v \|_{{\bf H}(\Gamma)} \le C_{s, R} \| v \|_{H^1(D)}. \end{equation} Since $\varphi = 1$ in $B_{2R/3}$, it follows from \eqref{lem-3S-1-part1}, \eqref{lem-3S-1-part2}, and \eqref{rem-toto} that $V \in H^1(B_{2 R/3 })$, \begin{equation}\label{lem-3S-1-part3} \|V \|_{H^1(B_{2 R / 3})} \le C \| v\|_{H^1(D)}, \end{equation} and \begin{equation}\label{eq-V} \operatorname{div} (a \nabla V) + \sigma V = 0 \mbox{ in } B_{2R/3}. \end{equation} Set $z = (R/\sqrt{m}, 0, \cdots, 0)$, $R_1 = (R/ \sqrt{m}) - s$, $R_2 = (R/\sqrt{m}) + 4s$, and $R_3 = R/3$. Applying Lemma~\ref{lem-MinhLoc}, we have \begin{equation}\label{lem-3S-1-part4} \| V\|_{ {\bf H} \big(\partial B(z, R_2) \big)} \le C \| V\|_{{\bf H} \big(\partial B(z, R_1) \big)}^{\alpha} \|V \|_{{\bf H} \big(\partial B(z, R_3) \big)}^{1 - \alpha}, \end{equation} with \begin{equation}\label{def-alpha-1} \alpha= \frac{R_2^{-q} - R_3^{-q}}{R_1^{-q} - R_3^{-q}}, \end{equation} for some $q>1$ independent of $v$, $R$, $m$, and $s$. From \eqref{eq-V}, we derive from Lemma~\ref{lem-compact} below that, for some positive constant $C>1$, \begin{equation}\label{lem-3S-1-part4-1} C^{-1} \| V\|_{ H^1 \big(B(z, r) \big)} \le \| V\|_{ {\bf H} \big(\partial B(z, r) \big)} \le C \| V\|_{ H^1 \big(B(z, r) \big)} \end{equation} with $r = R_1, \; R_2,$ or $R_3$. It follows from \eqref{lem-3S-1-part4} that \begin{equation}\label{lem-3S-1-part5} \| V\|_{ H^1 \big(B(z, R_2) \big)} \le C \| V\|_{H^1 \big(B(z, R_1) \big)}^{\alpha} \|V \|_{H^1 \big(B(z, R_3) \big)}^{1 - \alpha}. \end{equation} Note that $\alpha$ can be chosen arbitraly close to $1$ by taking $R> ms$ and large $m$ in \eqref{def-alpha-1}. The conclusion in the case $f = 0$ follows from \eqref{lem-3S-1-part1}, \eqref{lem-3S-1-part3}, and \eqref{lem-3S-1-part5} by the definition of $V$ in \eqref{lem-3S-1-part2}; in particular, $V = w$ in $B(z, R_1)$. \medskip We next consider the case $f \in L^2(D)$. Let $v_1 \in H^1(D)$ be such that $$ \operatorname{div}(a \nabla v_1) + \sigma v_1 = f \mbox{ in } D \quad \mbox{ and } \quad a \nabla v_1 \cdot \nu - i v_1 = 0 \mbox{ on } \partial D. $$ Then $$ \| v_1\|_{H^1(D)} \le C \|f \|_{L^2} \quad \mbox{ and } \quad \| v_1\|_{{\bf H}(\partial D)} \le C \| f\|_{L^2(D)}. $$ The conclusion in the general case now follows from the case $f = 0$ by applying the previous case for $v - v_1$. The proof is complete. \hfill $\Box$ \medskip In the proof of Lemma~\ref{lem-3S-1}, we use the following result \begin{lemma}\label{lem-compact} Let $d=2, 3$, $R>0$, $a$ and $\sigma$ be respectively a Lipschitz symmetric uniformly elliptic matrix-valued function and a real bounded function both defined in $B_R$. Let $v \in H^1(B_R)$ be such that \begin{equation*} \operatorname{div} (a \nabla v) + \sigma v = 0 \mbox{ in } B_R. \end{equation*} Then, for some positive constant $C > 1$, independent of $v$, \begin{equation}\label{lem-compact-state1} C^{-1} \| v\|_{ H^1 (B_R )} \le \| v\|_{ {\bf H} (\partial B_R)} \le C \| v\|_{ H^1 (B_R)} \end{equation} \end{lemma} \noindent{\bf Proof.} The second inequality of \eqref{lem-compact-state1} is a consequence of the trace theory. It remains to establish the first inequality of \eqref{lem-compact-state1}. We first prove that \begin{equation}\label{lem-compact-contradiction} \| v\|_{L^2(B_R)} \le C \| v\|_{ {\bf H} (\partial B_R)} \end{equation} by contradiction. In this proof, $C$ denotes a positive constant independent of $v$ and $n$. Suppose that it is not true. There exists some sequence $(v_n) \subset H^1(B_R)$ such that \begin{equation}\label{lem-compact-state2} \operatorname{div} (a \nabla v_n) + \sigma v_n = 0 \mbox{ in } B_R \end{equation} and \begin{equation}\label{lem-compact-state3} n \| v_n\|_{ {\bf H} (\partial B_R)} \le \| v_n\|_{ L^2 (B_R )} = 1. \end{equation} Multiplying the equation of $v_n$ \eqref{lem-compact-state2} by $\bar v_n$ (the conjugate of $v_n$), integrating in $B_R$, and using \eqref{lem-compact-state3}, we obtain \begin{equation*} \int_{B_R} |\nabla v_n|^2 \le C \int_{B_R} |v_n|^2 + C. \end{equation*} Thus $(v_n)$ is bounded in $H^1(B_R)$. Without loss of generality, one may assume that $(v_n)$ converges to $v$ weakly in $H^1(B_R)$ and strongly in $L^2(B_R)$ to $v$ for some $v \in H^1(B_R)$. It is clear from \eqref{lem-compact-state2} and \eqref{lem-compact-state3} that \begin{equation*} \operatorname{div} (a \nabla v) + \sigma v = 0 \mbox{ in } B_R \quad \mbox{ and } \quad \|v \|_{{\bf H}(\partial B_R)} = 0. \end{equation*} By the unique continuation principle, we have $v = 0 \mbox{ in } B_R. $ This contradicts the fact $\| v\|_{L^2(B_R)} = \lim_{n \to + \infty} \| v_n\|_{L^2(B_R)} = 1$. Hence \eqref{lem-compact-contradiction} is established. \medskip The first inequality of \eqref{lem-compact-state1} is now a consequence of \eqref{lem-compact-contradiction} after multiplying the equation of $v$ by $\bar v$ and integrating in $B_R$. \hfill $\Box$ \medskip We next recall a stability result of \eqref{def-ud} established in \cite[Lemma 2.1]{Ng-CALR-frequency}. \begin{lemma}\label{lem1} Let $d =2, 3$, $k>0$, $\delta_0 > 0$, $R_0> 0$, $g \in L^2(\mathbb{R}^d)$ with support in $B_{R_0}$. For $0 < \delta < \delta_0$, there exists a unique outgoing solution $v_\delta \in H^1_{_{loc}}(\mathbb{R}^d)$ of \eqref{def-ud}. Moreover, \begin{equation}\label{stability} \| v_\delta \|_{H^1(B_R)}^2 \le \frac{C_R}{\delta} \Big| \int g \bar v_\delta \Big| + C_R \| g\|_{L^2}^2, \end{equation} for some positive constant $C_R$ independent of $g$ and $\delta$. \end{lemma} We end this section by recalling the following change of variables formula \cite[Lemma 2]{Ng-Complementary} which is used several times in this paper. \begin{lemma}\label{lem-TO} Let $D_1 \subset \subset D_2 \subset \subset D_3$ be three smooth bounded open subsets of $\mathbb{R}^d$. Let $a \in [L^\infty(D_2 \setminus D_1)]^{d \times d}$, $\sigma \in L^\infty(D_2 \setminus D_1)$ and let ${\cal T}$ be a diffeomorphism from $D_2 \setminus \bar D_1$ onto $D_3 \setminus \bar D_2$. Assume that $u \in H^1(D_2 \setminus D_1)$ and set $v = u \circ {\cal T}^{-1}$. Then \begin{equation*} \operatorname{div} (a \nabla u) + \sigma u = f \mbox{ in } D_2 \setminus D_1, \end{equation*} for some $f \in L^2(D_2 \setminus D_1)$, if and only if \begin{equation}\label{TO-eq} \operatorname{div} ({\cal T}_*a \nabla v) + {\cal T}_*\sigma v = {\cal T}_* f \mbox{ in } D_3 \setminus D_2. \end{equation} Assume in addition that ${\cal T}(x) = x$ on $\partial D_2$. Then \begin{equation}\label{TO-bdry} v = u \quad \mbox{ and } \quad {\cal T}_*a \nabla v \cdot \nu = - a \nabla u \cdot \nu \mbox{ on } \partial D_2. \end{equation} \end{lemma} \subsection{Proof of Theorem~\ref{thm-main-g}} The proof uses the reflecting and removing localized singularity techniques introduced in \cite{Ng-Superlensing, Ng-Negative-Cloaking}. Applying Lemma~\ref{lem1}, we have \begin{equation}\label{part0-thm-main-g} \| u_{\delta} \|_{H^1(B_R)}\le C \Big(\delta^{-1/2} \|f \|_{L^2}^{1/2} \| u_\delta \|_{L^2(\operatorname{supp} f)}^{1/2} + \| f\|_{L^2}\Big). \end{equation} Here and in what follows in this proof, $C$ denotes a positive constant independent of $\delta$ and $f$. Set $$ S = H_{2 r_1} \setminus H_{3 r_1}. $$ Define \begin{equation*} u_{1, \delta} = u_\delta \circ F^{-1} \mbox{ in } \mathbb{R}^d \setminus \Omega_2 \quad \mbox{ and } \quad u_{2, \delta} = u_{1, \delta} \circ G^{-1} \mbox{ in } B_{r_3}, \end{equation*} where $F$ and $G$ come from the definition of doubly complementary media. Applying Lemma~\ref{lem-TO}, we obtain, since $G_*F_*A = F_*A = A $ in $B_{r_3} \setminus \Omega_2$ (the medium is of doubly complementary property) \begin{equation}\label{transmission1-thm-main-g} u_{1, \delta} = u_\delta, \quad (1 + i \delta) A \nabla u_{1, \delta} \cdot \nu = A \nabla u_{\delta} \big|_{B_{r_3} \setminus \Omega_2}\cdot \nu \mbox{ on } \partial \Omega_2 \setminus \partial S, \end{equation} \begin{equation}\label{transmission2-thm-main-g} u_{2, \delta} = u_{1, \delta}, \quad \mbox{ and } \quad A \nabla u_{2, \delta} = (1 + i \delta) A \nabla u_{1, \delta} \big|_{B_{r_3} \setminus \Omega_2} \cdot \nu \mbox{ on } \partial B_{r_3}. \end{equation} This implies \begin{equation}\label{transmission1-thm-main-g-1} \|u_{1, \delta} - u_{\delta} \|_{{\bf H}(\partial \Omega_2 \setminus \partial S)} \le C \delta \| u_\delta\|_{H^1(B_{r_3})} \end{equation} and \begin{equation}\label{transmission2-thm-main-g-2} \|u_{2, \delta} - u_{1, \delta} \|_{{\bf H}(\partial B_{r_3})} \le C \delta \| u_\delta\|_{H^1(B_{r_3})}. \end{equation} Applying Lemma~\ref{lem-TO}, we have, since $F_*A = A$ and $F_*\Sigma = \Sigma$ in $B_{r_3} \setminus \Omega_2$ and $f = 0$ in $B_{r_3}$, $$ \operatorname{div}\big((1 + i \delta) A \nabla u_{1, \delta} \big) + k^2 \Sigma u_{1, \delta}= 0 \mbox{ in } B_{r_3} \setminus \Omega_2; $$ which yields \begin{equation}\label{haha11} \operatorname{div}(A \nabla u_{1, \delta}) + k^2 \Sigma u_{1, \delta}= \Big(1 - \frac{1}{1 + i \delta} \Big) k^2 \Sigma u_{1, \delta} = - \frac{i \delta}{1 + i \delta } k^2 \Sigma u_{1, \delta} \mbox{ in } B_{r_3} \setminus \Omega_2. \end{equation} Recall that \begin{equation}\label{haha12} \operatorname{div}(A \nabla u_{1, \delta}) + k^2 \Sigma u_{1, \delta}= 0 \mbox{ in } (B_{r_3} \setminus \Omega_2) \setminus S. \end{equation} Set $\alpha = \gamma + 1/ 2 < 1$. Applying Lemma~\ref{lem-3S-1} with $D = \big\{x' \in \mathbb{R}^{d-1}; |x'| < s \big\} \times (-r_1, r_1)$ and $v(x) = u_{1, \delta}(x + z) - u_\delta (x + z)$ for $x \in D$, we derive from \eqref{transmission1-thm-main-g-1}, \eqref{haha11}, and \eqref{haha12} that if $r_1 > m s$ and $m$ is sufficiently large then \begin{equation}\label{claim1-thm-main-g} \|u_{1, \delta} - u_{\delta}\|_{H^1\big((H_{3r_1} \setminus H_{5r_1} )\cap B(z, 2s) \big)} \le C \delta^{\alpha} \| u_\delta \|_{H^1(B_{r_3})}. \end{equation} Define $O_2 = B_{r_2} \setminus H_{4r_1}$ and $O = B_{r_3 } \setminus O_2$, and set \begin{equation*} {\cal U}_\delta = \left\{\begin{array}{cl} u_\delta & \mbox{ in } \mathbb{R}^d \setminus B_{r_3}, \\[6pt] u_{2, \delta} + u_\delta - u_{1, \delta} & \mbox{ in } O, \\[6pt] u_{2, \delta} & \mbox{ in } O_2. \end{array}\right. \end{equation*} Then ${\cal U}_\delta \in H^1 \big(B_R\setminus \partial O \big)$ for all $R> 0$ and $U_\delta$ is an outgoing solution of the equation \begin{equation*} \operatorname{div} (\hat A \nabla {\cal U}_\delta) + k^2 \hat \Sigma {\cal U}_{\delta} = f \mbox{ in } \mathbb{R}^d \setminus \partial O. \end{equation*} Note that $\hat A$ is uniformly elliptic and $\hat \Sigma$ is bounded above and below by positive constants. It follows that \begin{equation}\label{thm3-part1-1} \|{\cal U}_\delta \|_{H^1(B_R \setminus \partial O)} \\[6pt] \le C_R \Big( \|[{\cal U}_\delta] \|_{H^{1/2}(\partial O)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O)} \Big). \end{equation} By the definition of ${\cal U}_\delta$, we have \begin{equation*} \|[{\cal U}_\delta] \|_{H^{1/2}(\partial O_2)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O_2)} = \|u_\delta - u_{1, \delta} \|_{H^{1/2}(\partial O_2)} + \|A \nabla (u_\delta - u_{1, \delta}) \cdot \nu\|_{H^{-1/2}(\partial O_2)} \end{equation*} and \begin{multline*} \|[{\cal U}_\delta] \|_{H^{1/2}(\partial B_{r_3})} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial B_{r_3})} \\[6pt] = \|u_{2, \delta} - u_{1, \delta} \|_{H^{1/2}(\partial B_{r_3})} + \|A \nabla (u_{2, \delta} - u_{1, \delta}) \cdot \nu\|_{H^{-1/2}(\partial B_{r_3})}. \end{multline*} Since $\partial O = \partial B_{r_3} \cup \partial O_2$, we derive from \eqref{transmission1-thm-main-g-1}, \eqref{transmission2-thm-main-g-2}, and \eqref{claim1-thm-main-g} that \begin{equation}\label{thm3-par1-1-1} \|[{\cal U}_\delta] \|_{H^{1/2}(\partial O)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O)} \le C \delta^{\alpha} \| u_\delta \|_{H^1(B_{r_3})}. \end{equation} It follows from \eqref{part0-thm-main-g} and \eqref{thm3-par1-1-1} that, for $R> R_0$, \begin{equation*} \| {\cal U}_\delta\|_{H^1(B_{R} \setminus \partial O)} \le C_R \delta^{\alpha} \Big( \delta^{-1/2}\| {\cal U}_\delta \|_{L^2(B_R \setminus B_{r_3})}^{1/2} \|f \|_{L^2}^{1/2} + \| f\|_{L^2}\Big) + C_R \|f \|_{L^2}. \end{equation*} since $\operatorname{supp} f \subset B_R \setminus B_{r_3}$. Since $\alpha = \gamma + 1/2 > 1/2$, it follows that \begin{equation}\label{thm3-part1-1-2} \| {\cal U}_\delta\|_{H^1(B_{R} \setminus \partial O)} \le C_R \|f \|_{L^2}. \end{equation} Since $\operatorname{supp} f \cap B_{r_3} = \O$, we derive from \eqref{part0-thm-main-g} that, for $R>0$, \begin{equation}\label{ud-improve} \| u_\delta\|_{H^1(B_R)} \le C_R \delta^{-1/2} \|f \|_{L^2}; \end{equation} which yields, by \eqref{thm3-par1-1-1}, \begin{equation}\label{haha-thm3} \|[{\cal U}_\delta] \|_{H^{1/2}(\partial O)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O)} \le C \delta^{\alpha - 1/ 2} \| f\|_{L^2}. \end{equation} Hence ${\cal U}_\delta$ is bounded in $H^1 (B_R \setminus \partial O )$. Without loss of generality, one may assume that ${\cal U}_{\delta} \to {\cal U}$ weakly in $H^1 (B_R \setminus \partial O) $ as $\delta \to 0$ for any $R>0$; moreover, ${\cal U} \in H^1_{_{loc}}(\mathbb{R}^d)$ is the unique outgoing solution to the equation \begin{equation*} \operatorname{div} (\hat A \nabla {\cal U}) + k^2 \hat \Sigma {\cal U} = f \mbox{ in } \mathbb{R}^d. \end{equation*} Hence ${\cal U} = {\hat u}$ in $\mathbb{R}^d$. Since the limit is unique, the convergence holds for the whole family $({\cal U}_{\delta})$ as $\delta \to 0$. In other words, ${\cal U}_\delta \to {\hat u}$ in $H^1_{_{loc}}(\mathbb{R}^d)$. \medskip To obtain the rate of convergence, let us consider the equation of $U_\delta - \hat u$. We have \begin{equation*} \operatorname{div} \big(\hat A \nabla ( {\cal U}_\delta - \hat u) \big) + k^2 \hat \Sigma ({\cal U}_{\delta}- \hat u) = 0\mbox{ in } \mathbb{R}^d \setminus \partial O. \end{equation*} As in \eqref{thm3-part1-1}, we have \begin{equation}\label{thm3-part2-1} \|{\cal U}_\delta -\hat u \|_{H^1 (B_R \setminus \partial O )} \\[6pt] \le C_R \Big( \|[{\cal U}_\delta ] \|_{H^{1/2}(\partial O)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O)} \Big). \end{equation} The conclusion now follows from \eqref{haha-thm3} and \eqref{thm3-part2-1}. \hfill $\Box$ \begin{remark}\label{rem1-power} The power of $u_\delta$ defined by $\displaystyle \int_{\Omega_2 \setminus \Omega_1} \delta |\nabla u_\delta|^2$ is finite in the setting considered in Theorem~\ref{thm-main-g} by \eqref{ud-improve}. \end{remark} \begin{remark} It is showed in \cite{Ng-WP} that resonance takes place for reflecting complementary media. Various conditions on the stability of the Helmholtz equations with sign changing coefficients were given there and the necessity of the reflecting complementary property of media for the occurrence of the resonance was discussed. \end{remark} \section{Cloaking an object via ALR in two dimensions and related problems} \label{sect-2d} This section containing three subsections is devoted to cloaking an object via ALR in two dimensions and related problems. In the first section, we present the proofs of Theorems~\ref{thm-CS-1} and \ref{thm-CS-1-k}. In the second section, we make some comments on superlensing using complementary media. More precisely, we show that a modifications as in \cite{Ng-Superlensing} from the suggestion in \cite{NicoroviciMcPhedranMilton94, PendryNegative, PendryCylindricalLenses} is necessary: without the modification, a lens can become a cloaking device (see Proposition~\ref{pro-lensing}). Finally, we make some comments on cloaking using complementary media. We prove that without the modification suggested in \cite{Ng-Negative-Cloaking}, cloaking effect might not be achieved for the schemes proposed in \cite{LaiChenZhangChanComplementary} (see Proposition~\ref{pro-cloaking}). \medskip In this section, we use the complex notations for several places, for example, the polar coordinate $z = r e^{i \theta}$ is used and for $x \in \mathbb{R}$, $B(x, R)$ means $B(z, R)$ with $z = x$. \subsection{Proofs of Theorems~\ref{thm-CS-1} and \ref{thm-CS-1-k}} \label{sect-proof} We first state a variant of Lemma~\ref{lem-3S-1}. \begin{lemma}\label{lem-3S-2} Let $0< R \le R_1$, $m \in \mathbb{N}$, and define $D = T \big(B_{R} \setminus B(-R_1, R_1) \big)$ where $T(z) = z^{1/m}$ \; \footnote{The following definition of $T(z)$ is used in this paper: for $z = r e^{i \theta}$ with $r \ge 0$, $\theta \in (-\pi, \pi)$, we define $T(z) = r^{1/m} e^{i \theta/m}$.} . Set $\hat D = \big\{ z \in D; \; \frac{1}{20}R^{1/m} < |z| < R^{1/m} \big\}$ and $\Gamma = \big\{ z \in \partial D; \; \frac{1}{10}R^{1/m} < |z| < \frac{9}{10}R^{1/m} \big\}$. Let $\sigma$ be a real bounded function defined in $\hat D$, $f \in L^2(\hat D)$, and $v \in H^1(\hat D)$ be such that \begin{equation*} \Delta v + \sigma v = f \mbox{ in } \hat D. \end{equation*} For any $0 < \alpha < 1$, there exists $m_0 \in \mathbb{N}$ depending only on $R$ such that if $m > m_0$, then, for some neighborhood $D_1$ of $\big\{z \in D; \; |z| = \frac{1}{2} R^{1/m} \big\}$ and for some positive constant $C$ both independent of $v$ and $f$, \begin{equation*} \| v\|_{H^1(D_1)} \le C \big(\| v \|_{{\bf H}(\Gamma)} + \| f\|_{L^2(\hat D)} \big)^{\alpha} \big( \| v \|_{H^1(\hat D)} + \| f\|_{L^2(\hat D)} \big)^{1 - \alpha} . \end{equation*} \end{lemma} \noindent{\bf Proof.} The proof of Lemma~\ref{lem-3S-2} is similar to the one of Lemma \ref{lem-3S-1}. For the convenience of the reader, we present the proof. We first consider the case $f = 0$ in $\hat D$. For the simplicity of notations, set $ \hat R = R^{1/m}$. We first assume that $m$ is sufficiently large such that $1/2 < \hat R< 2$; this is possible since $\lim_{m \to + \infty} R^{1/m} = 1$. Fix $\varphi \in C^1(\mathbb{R}^2)$ such that $\varphi = 1$ in $B_{ \hat R /4}$ and $\operatorname{supp} \varphi \subset B_{7 \hat R/24}$, and define $\varphi_m(z) = \varphi(z - \hat R/2)$. Set $O = B( \hat R/2, \hat R/3)$, the disk centered at $ \hat R/2$ and of radius $ \hat R/3$, and extend $\sigma$ by $1$ in $O \setminus \hat D$. We still denote the extension of $\sigma$ by $\sigma$ for simplicity of notations. Let $w \in H^1(O\setminus \Gamma)$ be the unique solution of the system \begin{equation*} \Delta w + \sigma w = 0 \mbox{ in } O \setminus \Gamma, \quad \partial_\nu w - i w = 0 \mbox{ on } \partial O, \end{equation*} \begin{equation*} [w] = \varphi_m v , \quad \mbox{ and } \quad [\partial_\nu w ] = \varphi_m \partial_\nu v \mbox{ on } \Gamma. \end{equation*} Since $$ \|\varphi_m v\|_{H^{1/2}(\Gamma)} + \|\varphi_m \partial_\nu v \|_{H^{-1/2}(\Gamma)} \le C \big(\| v\|_{H^{1/2}(\Gamma)} + \|\partial_\nu v \|_{H^{-1/2}(\Gamma)}\big), $$ it follows that \begin{equation}\label{lem-3S-2-part1} \| w\|_{H^1(O \setminus \Gamma)} \le C \| v \|_{{\bf H}(\Gamma)}. \end{equation} Here and in what follows $C$ denotes a positive constant independent of $v$. Define \begin{equation}\label{lem-3S-2-part2} V = \left\{ \begin{array}{cl} w + v & \mbox{ in } \hat D, \\[6pt] w & \mbox{ in } O \setminus \hat D. \end{array}\right. \end{equation} Then $V \in H^1(O)$, $$ \Delta V+ \sigma V = 0 \mbox{ in } O, $$ and \begin{equation}\label{lem-3S-2-part3} \|V \|_{H^1(O)} \le C \| v\|_{H^1(\hat D)}. \end{equation} Set $z = \hat R/2 + i \hat R / \sqrt{m}$, $R_1 = \hat R/ \sqrt{m} - 2 \pi \hat R/m$, $R_2 = \hat R/ \sqrt{m} + 2 \pi \hat R/ m$, and $R_3 = \hat R/4$. Applying Lemma~\ref{lem-MinhLoc}, we have \begin{equation}\label{lem-3S-2-part4} \| V\|_{H^1\big(B(z, R_2) \big)} \le C \| V\|_{H^1\big(B(z, R_1) \big)}^{\alpha} \|V \|_{H^1\big(B(z, R_3) \big)}^{1 - \alpha}, \end{equation} where \begin{equation*} \alpha= \frac{R_2^{-q} - R_3^{-q}}{R_1^{-q} - R_3^{-q}}, \end{equation*} for some $q>1$ independent of $v$, $ \hat R$, and $m$. Here we use the fact that, by Lemma~\ref{lem-compact}, \begin{equation*} C^{-1} \| V\|_{ H^1 \big(B(z, r) \big)} \le \| V\|_{ {\bf H} \big(\partial B(z, r) \big)} \le C \| V\|_{ H^1 \big(B(z, r) \big)} \end{equation*} with $r = R_1, R_2$, or $R_3$. The conclusion in the case $f = 0$ follows from \eqref{lem-3S-2-part1}, \eqref{lem-3S-2-part3}, \eqref{lem-3S-2-part4}, and the definition of $V$ in \eqref{lem-3S-2-part2} by noting that $B(z, R_1) \subset O \setminus \hat D$ (hence $V = w$ in $B(z, R_1)$), $B(z, R_2)$ contains a neighborhood of $\{ z \in D; \; |z| = \hat R/2\}$, and $\alpha$ can be taken aribitrary close to 1 if $m$ is large enough. \medskip The conclusion in the general case follows from the case $f = 0$ by applying the result in the case $f = 0$ for $v - v_1$ where $v_1 \in H^1(\hat D)$ is the unique solution of the system $$ \Delta v_1 + \sigma v_1 = f \mbox{ in } \hat D \quad \mbox{ and } \quad \partial_{\nu} v_1 - i v_1 = 0 \mbox{ on } \partial \hat D. $$ The proof is complete. \hfill $\Box$ \medskip As a consequence of Lemma~\ref{lem-3S-1}, we have \begin{corollary}\label{cor1} Let $0 < r < R \le R_1$, and define $D = B_R \setminus B(-R_1, R_1)$. Set $\widetilde D = \big\{ z \in D; r < |z| < R \big\}$ and $\Gamma = \big\{ z \in \partial D; \; \frac{1}{10}R < |z| < \frac{9}{10}R\big\}$. Let $\sigma$ be a real bounded function defined in $\widetilde D$, $f \in L^2(\widetilde D)$, and $v \in H^1(\widetilde D)$ be such that \begin{equation*} \Delta v + \sigma v = f \mbox{ in } \widetilde D. \end{equation*} For any $0 < \alpha < 1$, there exist two positive constants $r_0(\alpha) < R_0(\alpha) $ depending only on $R$ such that if $r < r_0(\alpha)$, then, for some neighborhood $D_1$ of $\{z \in D; \; |z| = R_0(\alpha) \}$ and for some positive constant $C$, both independent of $v$ and $f$, \begin{equation*} \| v\|_{H^1(D_1)} \le C \big(\| v \|_{{\bf H}(\Gamma)} + \| f\|_{L^2(\widetilde D)} \big)^{\alpha} \big( \| v \|_{H^1(\widetilde D)} + \| f\|_{L^2(\widetilde D)} \big)^{1 - \alpha} . \end{equation*} \end{corollary} \noindent{\bf Proof.} Set $v= u \circ T^{-1}$ with $T(z) = z^{1/m}$ for some $m\in \mathbb{N}$. Then $v \in H^1(T(\widetilde D))$ satisfies the equation $$ \Delta v + \tilde \sigma v = \tilde f \mbox{ in } T (\widetilde D), $$ where, by Lemma~\ref{lem-TO}, $$ \tilde \sigma v = T_*\sigma v / c \mbox{ and } \tilde f = T_*f / c, $$ for some positive constant $c$ such that $T_*I = c I$ (such a constant $c$ exists since $T$ is a conformal map). Corollary~\ref{cor1} is now a consequence of Lemma~\ref{lem-3S-1} by taking $m$ large enough. \hfill $\Box$ \medskip A variant of Lemma~\ref{lem-3S-2} is \begin{lemma}\label{lem-3S-3} Let $0 < R \le R_1$, $m \in \mathbb{N}$, and define $D = T \big(B_{R} \cap B(R_1, R_1) \big)$ where $T(z) = z^{1/m}$. Set $\hat D = \big\{ z \in D; \; \frac{1}{20}R^{1/m} < |z| < R^{1/m} \big\}$ and $\Gamma = \big\{ z \in \partial D; \; \frac{1}{10}R^{1/m} < |z| < \frac{9}{10}R^{1/m} \big\}$. Let $\sigma$ be a real bounded function defined in $\hat D$, $f \in L^2(\hat D)$, and $v \in H^1(\hat D)$ be such that \begin{equation*} \Delta v + \sigma v = f \mbox{ in } \hat D. \end{equation*} For any $0 < \alpha < 1$, there exists $m_0 \in \mathbb{N}$ depending only on $R$ such that if $m > m_0$ then, for some neighborhood $D_1$ of $\{z \in D; \; |z| = \frac{1}{2}R^{1/m} \}$ and for some positive constant $C$ both independent of $v$ and $f$, \begin{equation*} \| v\|_{H^1(D_1)} \le C \big(\| v \|_{{\bf H}(\Gamma)} + \| f\|_{L^2(\hat D)} \big)^{\alpha} \big( \| v \|_{H^1(\hat D)} + \| f\|_{L^2(\hat D)} \big)^{1 - \alpha}. \end{equation*} \end{lemma} \noindent{\bf Proof.} The proof of Lemma~\ref{lem-3S-3} is similar to the one of Lemma~\ref{lem-3S-2}. The details are left to the reader. \hfill $\Box$ \medskip As a consequence of Lemma~\ref{lem-3S-2}, we obtain \begin{corollary}\label{cor2} Let $0 < r < R \le R_1$ and define $D = T\big(B_R \cap B(R_1, R_1) \big)$ where $T(z) = z^{1/m}$. Set $\widetilde D = \big\{ z \in D; \; r < |z| < R \big\}$ and $\Gamma = \big\{ z \in \partial D; \; \frac{1}{10} R^{1/m} < |z| < \frac{9}{10} R^{1/m} \big\}$. Let $f \in L^2(\widetilde D)$, $\sigma$ be a real bounded function defined in $\widetilde D$, and $v \in H^1(\widetilde D)$ be such that \begin{equation*} \Delta v + \sigma v = f \mbox{ in } \widetilde D. \end{equation*} For any $0 < \alpha < 1$, there exist two positive constants $ r_0 (\alpha ) < R_0(\alpha) $ depending only on $R$ such that if $r < r_0(\alpha)$ then, for some neighborhood $D_1$ of $\{z \in D; \; |z| = R_0(\alpha) \}$ and for some positive constant $C$ both independent of $v$ and $f$, \begin{equation*} \| v\|_{H^1(D_1)} \le C \big(\| v \|_{{\bf H}(\Gamma)} + \| f\|_{L^2(\widetilde D)} \big)^{\alpha} \big( \| v \|_{H^1(\widetilde D)} + \| f\|_{L^2(\widetilde D)} \big)^{1 - \alpha}. \end{equation*} \end{corollary} \noindent{\bf Proof.} The proof of Corollary~\ref{cor2} is similar to the one of Corollary~\ref{cor1}. The details are left to the reader. \hfill $\Box$ \medskip We are ready to present the \medskip \noindent{\bf Proof of Theorem~\ref{thm-CS-1-k}.} The proof of Theorem~\ref{thm-CS-1-k} is in the same spirit of the one of Theorem~\ref{thm-main-g}. Applying Lemma~\ref{lem1}, we have \begin{equation}\label{part0-thm-CS-1-k} \| u_{\delta} \|_{H^1(B_R)}\le C \Big(\delta^{-1/2} \|f \|_{L^2}^{1/2} \| u_\delta \|_{L^2(\operatorname{supp} f)}^{1/2} + \| f\|_{L^2}\Big). \end{equation} Here and in what follows in this proof, $C$ denotes a positive constant independent of $\delta$ and $f$. Let $F$ and $G$ be the Kelvin transform with respect to $\partial B_{r_2}$ and $\partial B_{r_3}$. Define \begin{equation*} u_{1, \delta} = u_\delta \circ F^{-1} \mbox{ in } \mathbb{R}^2 \setminus B_{r_2} \quad \mbox{ and } \quad u_{2, \delta} = u_{1, \delta} \circ G^{-1} \mbox{ in } B_{r_3}. \end{equation*} Set $$ S = B_{r_3} \setminus B_{r_2} \cap \big(B(x_2, r_0) \cup G \circ F (B(x_1, r_0) \cap B_{r_1}) \big). $$ By Lemma~\ref{lem-TO}, we have \begin{equation}\label{transmission1-pro2} u_{1, \delta} = u_\delta \quad \mbox{ and } \quad (1 + i \delta) \partial_\nu u_{1, \delta} = \partial_\nu u_{\delta} \mbox{ on } \partial B_{r_2} \setminus \partial S, \end{equation} and \begin{equation}\label{transmission2-pro2} u_{2, \delta} = u_{1, \delta} \quad \mbox{ and } \quad \partial_\nu u_{2, \delta} = (1 + i \delta)\partial_\nu u_{1, \delta} \mbox{ on } \partial B_{r_3} \setminus \partial S. \end{equation} Combining \eqref{part0-thm-CS-1-k}, \eqref{transmission1-pro2}, and \eqref{transmission2-pro2} yields \begin{equation}\label{transmission1-pro2-1} \|u_{1, \delta} - u_{\delta}\|_{{\bf H}(\partial B_{r_2} \setminus \partial S)} \le C \delta \| u_\delta\|_{H^1(B_{r_3})} \end{equation} and \begin{equation}\label{transmission2-pro2-1} \| u_{2, \delta} - u_{1, \delta}\|_{{\bf H}( \partial B_{r_3} \setminus \partial S)} \le C \delta \| u_\delta \|_{H^1(B_{r_3})}. \end{equation} Applying Lemma~\ref{lem-TO}, we have $$ \operatorname{div}\big((1 + i \delta) \nabla u_{1, \delta} \big) + k^2 u_{1, \delta}= 0 \mbox{ in } B_{r_3} \setminus B_{r_2}. $$ and $$ \Delta u_{2, \delta} + k^2 u_{2, \delta}= 0 \mbox{ in } B_{r_3} \setminus F \circ G (B(x_1, r_0) \cap B_{r_1}). $$ We derive that \begin{equation}\label{haha111} \Delta u_{1, \delta} + k^2 u_{1, \delta}= \Big(1 - \frac{1}{1 + i \delta} \Big) k^2 u_{1, \delta} = - \frac{i \delta}{1 + i \delta } k^2 u_{1, \delta} \mbox{ in } B_{r_3} \setminus B_{r_2}. \end{equation} Recall that \begin{equation}\label{haha121} \Delta u_{\delta} + k^2 u_{\delta}= 0 \mbox{ in } (B_{r_3} \setminus B_{r_2} ) \setminus {\cal C}. \end{equation} Denote $x_3 \in \partial B_{r_3}$ the image of $x_1$ by $F$ and set $\alpha = \gamma + 1/2$. We claim that there exist three positive constants $r_0(\alpha), R_2(\alpha), R_3(\alpha)$, depending only on $r_2$ and $r_3$, with $r_0(\alpha) < R_2(\alpha) = R_2$, $r_0(\alpha) < R_3(\alpha) = R_3$, such that, if $r_0 <r_0(\alpha)$, then for some neighborhood $ D_{2}$ of $\Big\{z \in \mathbb{R}^2 \setminus B_{r_2}; \; |z - x_2| =R_2 \Big\}$, and some neighborhood $ D_{3}$ of $ \Big\{z \in B_{r_3}; \; |z - x_3| = R_3 \Big\}$ \begin{equation}\label{transmission1-pro2-2} \| u_{1,\delta} - u_{\delta}\|_{H^1(D_{2})} \le C \delta^{\alpha} \| u_{\delta}\|_{H^1(B_{r_3})} \end{equation} and \begin{equation}\label{transmission2-pro2-2} \| u_{2,\delta} - u_{1, \delta}\|_{H^1(D_{3})} \le C \delta^{\alpha} \| u_{\delta}\|_{H^1(B_{r_3})}. \end{equation} We first derive \eqref{transmission1-pro2-2} from Corollary~\ref{cor1}. For simplicity of notations, assume that $x_2 = (0, |x_2|)$. Applying Corollary~\ref{cor1} for $u_{1, \delta}(\cdot - x_2) - u_{\delta} (\cdot - x_2)$ , $R_1 = R = r_2$, we obtain assertion~\eqref{transmission1-pro2-2}. Assertion~\eqref{transmission2-pro2-2} can be obtained similarly by using Corollary~\ref{cor2}. Set $$ O_{2} = B_{r_2} \cup \{|z - x_2| < R_2 \}, \quad O_{3} = B_{r_3} \setminus \{|z - x_3| < R_3 \}, \quad \mbox{ and } \quad O = O_3 \setminus O_2. $$ It follows from \eqref{transmission1-pro2-1} and \eqref{transmission1-pro2-2} that \begin{equation} \label{claim1-pro2} \| u_{1,\delta} - u_{\delta}\|_{{\bf H}(\partial O_{2})} \le C \delta^{\alpha} \| u_{\delta}\|_{H^1(B_{r_3})} \end{equation} and from \eqref{transmission2-pro2-1} and \eqref{transmission2-pro2-2} that \begin{equation} \label{claim2-pro2} \| u_{2,\delta} - u_{1, \delta}\|_{{\bf H}(\partial O_{3})} \le C \delta^{\alpha} \| u_{\delta}\|_{H^1(B_{r_3})}. \end{equation} Define \begin{equation}\label{def-Udelta-1} {\cal U}_\delta = \left\{\begin{array}{cl} u_\delta & \mbox{ in } \mathbb{R}^d \setminus O_3, \\[6pt] u_{2, \delta} - (u_{1, \delta} - u_{\delta}) & \mbox{ in } O, \\[6pt] u_{2, \delta} & \mbox{ in } O_2. \end{array}\right. \end{equation} Then ${\cal U}_\delta \in H^1 \big(B_R \setminus \partial O \big)$ for all $R>0$ and $U_\delta$ is an outgoing solution of the equation \begin{equation*} \operatorname{div} (\hat A \nabla {\cal U}_\delta) + k^2 \hat \Sigma {\cal U}_{\delta} = f \mbox{ in } \mathbb{R}^2 \setminus \partial O, \end{equation*} by the definition of $(\hat A, \hat \Sigma)$ and Lemma~\ref{lem-TO}. This implies \begin{equation}\label{part0-pro2} \|{\cal U}_\delta \|_{H^1(B_R \setminus \partial O)} \\[6pt] \le C \Big( \|[{\cal U}_\delta] \|_{H^{1/2}(\partial O)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O)} + \| f\|_{L^2} \Big). \end{equation} From the definition of ${\cal U}_\delta$ in \eqref{def-Udelta-1}, we derive from \eqref{claim1-pro2} and \eqref{claim2-pro2} that \begin{equation}\label{transmission3-pro2} \|[{\cal U}_\delta] \|_{H^{1/2}(\partial O)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O)} \le C \delta^{\alpha} \| u_\delta \|_{H^1(B_{r_3})}. \end{equation} Combining \eqref{part0-pro2} and \eqref{transmission3-pro2} and using \eqref{part0-thm-CS-1-k} yield, for large $R> 0$ such that $\operatorname{supp} f \subset B_R$, \begin{equation*} \| {\cal U}_\delta\|_{H^1(B_{R} \setminus \partial O)} \le C_R \delta^{\alpha} \Big( \delta^{-1/2}\| {\cal U}_\delta \|_{L^2(B_R \setminus B_{r_3})}^{1/2} \|f \|_{L^2}^{1/2} + \| f\|_{L^2}\Big) + C \|f \|_{L^2}; \end{equation*} which implies, since $\alpha > 1/2$, \begin{equation}\label{t1} \| {\cal U}_\delta\|_{H^1(B_{R} \setminus \partial O)} \le C_R \|f \|_{L^2}. \end{equation} By \eqref{part0-thm-CS-1-k}, we obtain \begin{equation}\label{ud-improve2} \| u_\delta\|_{H^1(B_{R} )} \le C_R \delta^{-1/2}\| f\|_{L^2}. \end{equation} We derive from \eqref{transmission3-pro2} that \begin{equation}\label{t2} \|[{\cal U}_\delta] \|_{H^{1/2}(\partial O)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O)} \le C \delta^{\alpha - 1/2} \| f\|_{L^2}. \end{equation} From \eqref{t1} and \eqref{t2}, without loss of generality, one may assume that ${\cal U}_{\delta} \to {\cal U}$ weakly in $H^1\big(B_R \setminus \partial O \big)$ as $\delta \to 0$ for any $R>0$; moreover, ${\cal U} \in H^1_{_{loc}}(\mathbb{R}^d)$ is the unique outgoing solution to the equation \begin{equation*} \operatorname{div} (\hat A \nabla {\cal U}) + k^2 \hat \Sigma {\cal U} = f \mbox{ in } \mathbb{R}^2. \end{equation*} Hence ${\cal U} = {\hat u}$ in $\mathbb{R}^2$. Since the limit is unique, the convergence holds for the whole family $({\cal U}_{\delta})$ as $\delta \to 0$. \medskip By considering ${\cal U}_\delta - {\hat u}$, one obtains the rate of the convergence as in the proof of Theorem~\ref{thm-main-g}. The proof is complete. \hfill $\Box$ \begin{remark}\label{rem2-power} The power of $u_\delta$ defined by $\displaystyle \int_{\Omega_2 \setminus \Omega_1} \delta |\nabla u_\delta|^2$ is finite in the setting considered in Theorem~\ref{thm-CS-1} by \eqref{ud-improve2}. \end{remark} \medskip \noindent{\bf Proof of Theorem~\ref{thm-CS-1}.} The proof of Theorem~\ref{thm-CS-1} is similar to the one of Theorem~\ref{thm-CS-1-k} even simpler. The details are left to the reader. \hfill $\Box$ \subsection{A remark on superlensing using complementary media}\label{sect-CM-Superlensing} In this section, we revisit the construction of lenses using complementary proposed in \cite{Ng-Superlensing} and \cite{Ng-Negative-Cloaking} which has roots from \cite{NicoroviciMcPhedranMilton94, PendryCylindricalLenses, PendryRamakrishna}. We first consider the quasistatic regime. To magnify $M$-times the region $B_{\tau_0}$, for some $\tau_0> 0$ and $M> 1$, following \cite{NicoroviciMcPhedranMilton94, PendryCylindricalLenses, PendryRamakrishna} one puts a lens in $B_{r_2} \setminus B_{\tau_0}$ whose medium is characterized by matrix $-I$ with $r_2^2/ \tau_0^2 = M$. The lens construction in \cite{Ng-Superlensing} is related to but different from this. Our lens contains {\bf two parts}. The first one is given by \begin{equation}\label{SCM-first-part} -I \quad \mbox{ in } B_{r_2} \setminus B_{r_1} \end{equation} and the second one is \begin{equation}\label{SCM-second-part} I \quad \mbox{ in } B_{r_1} \setminus B_{\tau_0}. \end{equation} Here $r_1$ and $r_2$ are such that \begin{equation}\label{SCM-def-r3}M \tau_0 = r_2 \quad \mbox{ and } \quad r_3/ r_1 = M \quad \mbox{ where } r_3 := r_2^2 / r_1. \end{equation} Other choices for the first and the second layers are possible via the concept of complementary media (see \cite{Ng-Superlensing}). Given $f \in L^2(\mathbb{R}^2)$ with compact support such that $\int_{\mathbb{R}^2} f = 0$, and $\operatorname{supp} f \cap B_{r_3} = \O$, we showed in \cite{Ng-Superlensing}, that \begin{equation*} u_\delta \to {{\hat u}} \mbox{ in } \mathbb{R}^2 \setminus B_{r_3} \mbox{ as } \delta \to 0 \end{equation*} Here $u_\delta$ and ${\hat u}$ are the unique solutions in $W^1(\mathbb{R}^2)$ of the equations $$ \operatorname{div}(s_\delta A \nabla u_\delta) = f \mbox{ in } \mathbb{R}^2 \quad \mbox{ and } \quad \Delta u = f \mbox{ in } \mathbb{R}^2, $$ where \begin{equation*} A = \left\{\begin{array}{cl} a(x/ M) & \mbox{ in } B_{M r_1}, \\[6pt] I & \mbox{ otherwise}. \end{array}\right. \quad \mbox{ and } \quad s_\delta = \left\{\begin{array}{cl} -1 - i \delta & \mbox{ in } B_{r_2} \setminus B_{r_1}, \\[6pt] 1 & \mbox{ otherwise}. \end{array}\right. \end{equation*} for arbitrary uniformly elliptic matrix-valued function $a$ defined in $B_{r_1}$: superlensing is achieved. In fact, in \cite{Ng-Superlensing}, we considered bounded setting, nevertheless, the results stated here holds with similar proof. In comparison with the schemes suggested previously, the second part is added. The second layer can be chosen thinner (see \cite{Ng-Superlensing}). Nevertheless, as a consequence of Theorem~\ref{thm-CS-1}, the second layer in \eqref{SCM-second-part} is necessary. Indeed, we have \begin{proposition}\label{pro-lensing} Let $0 < r_0 < r_1 < r_2 < r_3$, $x_1 \in \partial B_{r_1}$, and $x_2 \in \partial B_{r_2}$ and let $a_c$ be a symmetric uniformly elliptic matrix-valued function defined in $B(x_1, r_0) \cap B_{r_1}$. Define \begin{equation}\label{def-AS-CS*} A_c = \left\{\begin{array}{cl} a_c & \mbox{ in } B(x_1, r_0) \cap B_{r_1}, \\[6pt] I & \mbox{ otherwise}. \end{array}\right. \quad \mbox{ and } \quad s_\delta = \left\{\begin{array}{cl} -1 - i \delta & \mbox{ in } B_{r_2} \setminus B_{r_1}, \\[6pt] 1 & \mbox{ otherwise}. \end{array}\right. \end{equation} Given $f \in L^2(\mathbb{R}^2)$ with compact support such that $\int_{\mathbb{R}^2} f = 0$ and $\operatorname{supp} f \cap B_{r_3} = \O$ with $r_3 = r_2^2/ r_1$, let $u_\delta, {\hat u} \in W^1(\mathbb{R}^2)$ be the unique solutions of \eqref{def-udelta-CS} and \eqref{def-U-CS} respectively. There exists $r_* > 0$ depending only only on $r_1$ and $r_2$, such that if $r_0 < r_*$ then \begin{equation*} u_\delta \to {\hat u} \mbox{ in } L^2(\Omega \setminus B_{r_3}). \end{equation*} \end{proposition} For an observer outside $B_{r_3}$, the medium $s_0A_c$ in $B_{r_3}$ looks like $I$ in $B_{r_3}$: the object $a_c$ is disappeared. Thus the superlensing device becomes a cloak for small objects close to it. Similar conclusion also holds for the finite frequency regime as a consequence of Theorem~\ref{thm-CS-1-k}. \begin{remark} Using Theorem~\ref{thm-main-g}, in the same spirit with what presented in this section, one could argue to show that the necessity of the second layer in the lens construction suggested in \cite{Ng-Superlensing} in three dimensions. \end{remark} \subsection{A remark on cloaking using complementary media} \label{sect-CM-Cloaking} This section deals with cloaking using complementary media. We show that a modification proposed in \cite{Ng-Negative-Cloaking} (see also \cite{MinhLoc2}) from the suggestion in \cite{LaiChenZhangChanComplementary} on cloaking using complementary media is necessary: without a modification, cloaking might be not achieved. We only consider here the two dimensional finite frequency regime. The two dimensional quasistatic case holds similarly. \medskip We first describe how to cloak the region $B_{2r_2} \setminus B_{r_2}$ for some $r_{2}> 0$ using complementary media as proposed in \cite{Ng-Negative-Cloaking}. Assume that the medium in $B_{2r_2} \setminus B_{r_2}$ is characterized by a symmetric uniformly elliptic matrix-valued function $a_c$ and a real function $\sigma_c$ bounded above and below by positive constants. We only consider here the two dimensional case; even the construction in three dimensions hold similarly. The idea suggested by Lai et al. in \cite{LaiChenZhangChanComplementary} is to construct a complementary media in $B_{r_2} \setminus B_{r_1}$ for some $0 < r_1< r_2$. Our cloak proposed in \cite{Ng-Negative-Cloaking} is related to but different from \cite{LaiChenZhangChanComplementary}. It consists of {\bf two parts}. The first one, in $B_{r_2} \setminus B_{r_1}$, makes use of reflecting complementary media to cancel the effect of the cloaked region and the second one in $B_{r_1}$ is to fill the space which ``disappears" from the cancellation by the homogeneous medium $(I, 1)$. For the first part, we also modified the strategy in \cite{LaiChenZhangChanComplementary}. Instead of $B_{2r_2} \setminus B_{r_2}$, we consider $B_{r_3} \setminus B_{r_2}$ for some $r_3 > 0$ as the cloaked region in which the medium is given by \begin{equation}\label{def-b} (a_1, \sigma_1) = \left\{ \begin{array}{cl} (a_c, \sigma_c) & \mbox{ in } B_{2 r_2} \setminus B_{r_2}, \\[6pt] (I, 1) & \mbox{ in } B_{r_3} \setminus B_{2 r_2}. \end{array} \right. \end{equation} The complementary medium in $B_{r_2} \setminus B_{r_1}$ with $r_1 = r_2^2/ r_3$ is \begin{equation*} \big(-{F^{-1}}_*a_1, -{F^{-1}}_*\sigma_1 \big), \end{equation*} where $F: B_{r_2} \setminus \bar B_{r_1} \to B_{r_3} \setminus \bar B_{r_2}$ is the Kelvin transform with respect to $\partial B_{r_2}$. Concerning the second part, the medium in $B_{r_1}$ is given by \begin{equation}\label{CCM-choice-A} \big( I, r_3^2/ r_1^2 \big). \end{equation} Set \begin{equation}\label{def-AS-1} (A, \Sigma) = \left\{\begin{array}{cl} (a_1, \sigma_1) & \mbox{ in } B_{r_3} \setminus B_{r_2}, \\[6pt] \big({F^{-1}}_*a_1, {F^{-1}}_*\sigma_1 \big)& \mbox{ in } B_{r_2} \setminus B_{r_1}, \\[6pt] \Big( I, r_3^2/r_1^{2} \Big)& \mbox{ in } B_{r_1}, \\[6pt] (I, 1) & \mbox{ otherwise}, \end{array}\right. \quad \mbox{ and } \quad s_\delta = \left\{\begin{array}{cl} -1 - i \delta & \mbox{ in } B_{r_2} \setminus B_{r_1}, \\[6pt] 1 & \mbox{ otherwise}. \end{array}\right. \end{equation} Given $f \in L^2(\mathbb{R}^2)$ with compact support such that $\operatorname{supp} f \cap B_{r_3} = \O$, we showed in \cite[Theorem 1]{MinhLoc2} (see \cite[Theorem 1]{Ng-Negative-Cloaking} for the case $k=0$) that, if $r_3/r_2$ is large enough, \begin{equation*} u_\delta \to {{\hat u}} \mbox{ in } \mathbb{R}^2 \setminus B_{r_3} \mbox{ as } \delta \to 0. \end{equation*} Here $u_\delta$ and ${\hat u}$ are the unique outgoing solutions in $H^1_{_{loc}}(\mathbb{R}^2)$ of $$ \operatorname{div}(s_\delta A \nabla u_\delta) + s_0 k^2 \Sigma u_\delta = f \mbox{ in } \mathbb{R}^2 \quad \mbox{ and } \quad \Delta {\hat u} + k^2 {\hat u} = f \mbox{ in } \mathbb{R}^2. $$ For an observer outside $B_{r_3}$, the medium $(s_0A, s_0\Sigma)$ acts like $(I,1)$: cloaking is achieved. \medskip The following proposition show that it is necessary to extend $(a_c, \sigma_c)$ by $(I, 1)$ in $B_{r_3} \setminus B_{2 r_2}$ in the construction of cloaking device given above. \begin{proposition}\label{pro-cloaking} Let $0 < r_0 < r_1 < r_2 $, and $x_3 \in \partial B_{r_3}$ with $r_3 = r_2^2/ r_1$. Let $a_c$ be a symmetric uniformly elliptic matrix-valued function and $\sigma_c$ be a positive function bounded below by a positive constant both defined in $B(x_3, r_0) \cap B_{r_3}$. Define $(A, \Sigma)$ by \eqref{def-AS-1} where \begin{equation*} (a_1, \sigma_1) = \left\{\begin{array}{cl} (a_c, \sigma_c) & \mbox{ in } B(x_3, r_0) \cap B_{r_3}, \\[6pt] (I, 1) & \mbox{ in } (B_{r_3} \setminus B_{r_2}) \setminus B(x_3, r_0). \end{array}\right. \end{equation*} Given $f \in L^2(\mathbb{R}^2)$ with compact support and $\operatorname{supp} f \cap B_{r_3} = \O$, let $u_\delta \in H^1_{_{loc}}(\mathbb{R}^2)$ be the unique outgoing solution to the equation \begin{equation*} \operatorname{div}(s_\delta A \nabla u_\delta ) + s_0 k^2 \Sigma u_\delta = f \mbox{ in } \mathbb{R}^2, \end{equation*} where $(A, \Sigma)$ and $s_\delta$ are given by \eqref{def-AS-1}. There exists $r_* > 0$ depending only on $r_1$ and $r_2$ such that if $r_0 < r_*$, then \begin{equation}\label{tt1} u_\delta \to {\hat u} \mbox{ in } L^2_{_{loc}}(\mathbb{R}^2 \setminus B_{r_3}). \end{equation} Here ${\hat u} \in H^1_{_{loc}}(\mathbb{R}^2)$ is the unique outgoing solution to the equation \begin{equation}\label{tt2} \operatorname{div}({\hat A} \nabla {\hat u}) + k^2 \hat \Sigma {\hat u} = f \mbox{ in } \Omega \mbox{ where } ({\hat A}, \hat \Sigma) = \left\{\begin{array}{cl} (a_c, \sigma_c) & \mbox{ in } B(x_0, r_0) \cap B_{r_3}, \\[6pt] (I, 1) & \mbox{ otherwise}. \end{array}\right. \end{equation} \end{proposition} As a consequence of Proposition~\ref{pro-cloaking}, the object $(a_c, \sigma_c)$ in $B(x_3, r_0) \cap B_{r_3}$ is not cancelled by its complementary media by \eqref{tt1} and \eqref{tt2}: cloaking is {\bf not} achieved. \medskip \noindent{\bf Proof.} The proof is similar to the one of Theorem~\ref{thm-CS-1-k} even simpler. We only sketch the proof. We have, by Lemma~\ref{lem1}, \begin{equation*} \| u_\delta \|_{H^1(B_R)}\le C_R \Big(\delta^{-1/2} \|f \|_{L^2}^{1/2} \| u_\delta \|_{L^2(\operatorname{supp} f)}^{1/2} + \| f\|_{L^2}\Big). \end{equation*} Here and in what follows in this proof, $C$ denotes a positive constant independent of $\delta$ and $f$. Define \begin{equation*} u_{1, \delta} = u_\delta \circ F^{-1} \mbox{ in } \mathbb{R}^2\setminus B_{r_2} \quad \mbox{ and } \quad u_{2, \delta} = u_{1, \delta} \circ G^{-1} \mbox{ in } B_{r_3}, \end{equation*} where $F$ and $G$ are the Kelvin transforms with respect to $\partial B_{r_2}$ and $\partial B_{r_3}$ respectively. By Lemma~\ref{lem-TO}, as in \eqref{transmission1-pro2-1} and \eqref{transmission2-pro2-1} we have \begin{equation}\label{transmission1-pro2-1-*} \|u_{1, \delta} - u_{\delta}\|_{{\bf H}(\partial B_{r_2})} \le C \delta \| u_\delta\|_{H^1(B_{r_3})} \end{equation} and \begin{equation}\label{transmission2-pro2-1-*} \| u_{2, \delta} - u_{1, \delta}\|_{{\bf H}( \partial B_{r_3} \setminus B(x_0, r_0))} \le C \delta \| u_\delta \|_{H^1(B_{r_3})}. \end{equation} Applying Lemma~\ref{lem-TO}, we have $$ (1 + i \delta) \Delta u_{1, \delta} + k^2 u_{1, \delta}= 0 \mbox{ in } (B_{r_3} \setminus B_{r_2}) \setminus B(x_3, r_0) $$ and $$ \Delta u_{2, \delta} + k^2 u_{2, \delta}= 0 \mbox{ in } B_{r_3}. $$ We derive that \begin{equation}\label{haha1111} \Delta u_{1, \delta} + k^2 u_{1, \delta}= \Big(1 - \frac{1}{1 + i \delta} \Big) k^2 u_{1, \delta} = - \frac{i \delta}{1 + i \delta } k^2 u_{1, \delta} \mbox{ in } (B_{r_3} \setminus B_{r_2}) \setminus B(x_3, r_0). \end{equation} For simplicity of notations, we assume that $x_3 = (0, - |x_3|)$. Applying Corollary~\ref{cor2} for $u_{1, \delta}(\cdot - x_3) - u_{2, \delta}(\cdot - x_3)$, $R = r_2/2 < R_1 = r_3$, and $\alpha = 3/4$, there exist two positive constants $ r_* < R_0$ such that if $r_0 < r_*$ then for some neighborhood $D$ of $B_{r_3} \cap \big\{z; |z - x_3| = R_0 \big\}$ $$ \| u_{1, \delta} - u_{2, \delta} \|_{H^1(D)} \le C \delta^\alpha \| u_\delta\|_{H^1(B_{r_3})}. $$ Set $O = (B_{r_3} \setminus B_{r_2} ) \setminus \big\{z \; ; |z - x_3| < R_0 \big\}$ and define \begin{equation*} {\cal U}_\delta = \left\{\begin{array}{cl} u_{2, \delta} + u_{\delta} - u_{1, \delta} & \mbox{ in } O, \\[6pt] u_{2, \delta} & \mbox{ in } B_{r_2}, \\[6pt] u_\delta & \mbox{ otherwise.} \end{array}\right. \end{equation*} Then ${\cal U}_\delta \in H^1 \big(B_R \setminus \partial O \big)$ for all $R> 0$ and $U_\delta$ is an outgoing solution of the equation \begin{equation*} \operatorname{div} (\hat A \nabla {\cal U}_\delta) + k^2 \hat \Sigma {\cal U}_{\delta} = f \mbox{ in } \mathbb{R}^2 \setminus \partial O. \end{equation*} and, as in \eqref{transmission3-pro2}, \begin{equation*} \|[{\cal U}_\delta] \|_{H^{1/2}(\partial O)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O)} \le C \delta^{\alpha} \| u_\delta \|_{H^1(B_{r_3})}. \end{equation*} It follows that, for large $R> 0$ such that $\operatorname{supp} f \subset B_R$, \begin{equation*} \| {\cal U}_\delta\|_{H^1(B_{R} \setminus \partial O )} \le C_R \delta^{\alpha} \Big( \delta^{-1/2}\| {\cal U}_\delta \|_{L^2(B_R \setminus B_{r_3})}^{1/2} \|f \|_{L^2(\Omega)}^{1/2} + \| f\|_{L^2}\Big) + C \|f \|_{L^2}. \end{equation*} Since $\alpha = 3/4 > 1/2$, as in the proof of Theorem~\ref{thm-CS-1-k}, one deduces that $U_\delta$ is bounded in $H^1(B_R \setminus \partial O)$, \begin{equation*} \|[{\cal U}_\delta] \|_{H^{1/2}(\partial O)} + \|[\hat A \nabla {\cal U}_\delta \cdot \nu] \|_{H^{-1/2}(\partial O)} \to 0, \end{equation*} and $U_\delta \to {\cal U}$ in $H^1_{_{loc}} (\mathbb{R}^2 \setminus B_{r_3})$ as $\delta \to 0$. The details are left to the reader. \hfill $\Box$ \begin{remark} It would be interesting to understand the cooperation and the combat of various cloaking devices using NIMs putting together as raised in \cite{Ross}. \end{remark} \providecommand{\bysame}{\leavevmode\hbox to3em{\hrulefill}\thinspace} \providecommand{\MR}{\relax\ifhmode\unskip\space\fi MR } \providecommand{\MRhref}[2]{% \href{http://www.ams.org/mathscinet-getitem?mr=#1}{#2} } \providecommand{\href}[2]{#2}
\section{Introduction} \subsection{Short-lived radioisotopes} Calcium--aluminium-rich inclusions (CAIs) in chondritic meteorites are the oldest known Solar system solids, with ages over 4.567~Gyr \citep{2002Sci...297.1678A,2010E&PSL.300..343A}. Spectroscopic analyses of CAIs reveal isotopic excesses due to the {\em in situ} decay of short-lived radioisotopes (SLRs) \citep{1977ApJ...211L.107L}, so named because of their half-lifetimes of $\lesssim$ a few Myr \citep{2001RSPTA.359.1991R,2003TrGeo...1..431M}. The radioactive decay of these SLRs, particularly $^{26}$Al, was an important source of heat during the first 10~Myr of Solar system evolution \citep{1955PNAS...41..127U}, fueling the differentiation of planetesimals \citep{2007M&PS...42.1529S} and the internal melting of ice in rocky bodies \citep{2005E&PSL.240..234T}. The sustained aqueous state due to SLRs in these bodies may have allowed the synthesis of amino acids -- the biomolecular precursors for life \citep{2014ApJ...783..140C}. The initial abundances of some SLRs in the early Solar system (ESS) may be enhanced above the Galactic background level \citep[][however, see \citealp{2013ApJ...775L..41J}]{2006Natur.439...45D}. The presence of `live' SLRs in the ESS seems remarkable; SLRs rapidly decay and must therefore either be produced locally or quickly transported through the interstellar medium (ISM) from a nearby massive nucleosynthetic source \citep{1977ApJ...211L.107L}. In the latter case, the presence of a nearby massive star provides constraints on the birth environment of the Solar system, such as cluster size \citep{2010ARA&A..48...47A} and dynamical evolution \citep{2014MNRAS.437..946P, 2013A&A...549A..82P}. However, the conditions leading to enrichment are uncertain. The initial SLR abundances in other planet forming systems are unknown, but conditions similar to those in the ESS may be common \citep{2013ApJ...769L...8V,2013ApJ...775L..41J,2014E&PSL.392...16Y}. The origin scenarios and initial abundances for SLRs are still a matter of debate, but it seems likely that both solar and extra-solar enrichment sources are required to explain the observed variety. Local mechanisms such as solar radiation-induced spallation reactions can produce some SLRs (e.g. $^{10}$Be) but not all (e.g. $^{60}$Fe) \citep{1976Sci...191...79H,2008ApJ...680..781G}. Although recent estimates of the initial $^{60}$Fe$/^{56}$Fe ratio argue against significant $^{60}$Fe enrichment \citep{2012E&PSL.359..248T}, the enhanced $^{26}$Al$/^{27}$Al ratio probably requires external sources \citep{2013GeCoA.110..190M}. Asymptotic giant branch (AGB) star winds \citep{1994ApJ...424..412W}, Wolf--Rayet (WR) winds \citep{1986ApJ...307..324P}, or Type II (core-collapse) supernova (SN) shock waves \citep{1977Icar...30..447C} could transport SLRs and contaminate the ESS at some phase of its evolution (e.g. pre-solar molecular cloud, pre-stellar core, or proto-planetary disc). \subsection{Supernova enrichment} Among the various enrichment sources, Type II supernovae (SNe) have received the most attention in the literature \citep{1977Icar...30..447C,1997ApJ...489..346F,2005ASPC..341..527O,2012ApJ...756..102P}. SNe are naturally associated with star-forming regions, and predicted SLR yields from SNe match reasonably well with ESS abundance estimates \citep{2000SSRv...92..133M}. Additional evidence is provided by the anomalous ratio of oxygen isotopes ([$^{18}$O]/[$^{17}$O]) in the Solar system, which is best explained by enrichment from Type II SNe \citep{2011ApJ...729...43Y}. Following the discovery of $^{26}$Al in CAIs, \citet{1977Icar...30..447C} suggested that a nearby SN could have simultaneously injected SLRs and triggered the collapse of the ESS. In this scenario, a single SN shock wave rapidly transports and deposits SLRs into an isolated marginally-stable pre-stellar core. The impinging shock wave compresses the core and triggers gravitational collapse while at the same time generating Rayleigh--Taylor (RT) instabilities at the core surface that lead to mixing of SLRs with the solar gas. \citet{1997ApJ...489..346F} first demonstrated the plausibility of this scenario with hydrodynamical simulations, and subsequent iterations of the experiment \citep{2010ApJ...708.1268B, 2012ApJ...756L...9B, 2013ApJ...770...51B, 2014ApJ...788...20B, 2015ApJ...809..103B} have defined a range of acceptable shock wave parameters (e.g. speed, width, density) for enrichment. This `triggered collapse' scenario requires nearly perfect timing and choreography. The SN must be close to the pre-stellar core ($\lesssim$ 0.1--4~pc) at the time of explosion to prevent significant SLR radioactive decay during transit; yet the SN shock must slow considerably (from $\gtrsim 2000$~km~s$^{-1}$ at ejection to $\lesssim 70$~km~s$^{-1}$ at impact) to prevent destruction of the core, requiring either large separation ($\gtrsim 10$~pc) or very dense intervening gas ($\gtrsim 100$~cm$^{-3}$). \citet{2012ApJ...745...22G} demonstrated that injection at higher velocities (up to 270~km~s$^{-1}$) may be possible, but this is yet to be confirmed in three-dimensional models. The amount of SLRs injected in the `triggered formation' scenario is typically below observed values; both \citet{2014ApJ...788...20B} and \citet{2012ApJ...745...22G} find SLR injection efficiencies $\lesssim 0.01$, compatible with only the lowest estimates for ESS values \citep{2008ApJ...688.1382T}. Enrichment relies on hydrodynamical mixing of the ejecta into the pre-stellar gas, primarily via RT fingers \citep{2012ApJ...756L...9B}. However, the (linear) growth rates of the involved fluid instabilities depend on the square root of the density contrast \citep{1961hhs..book.....C}, resulting in an inevitable impedance mismatch between the hot, diffuse stellar ejecta and the cold, dense pre-solar core. One possible solution to this mixing barrier problem is to concentrate the SN ejecta into dense clumps that can breach the cloud surface. The inner ejecta of Type II SNe are found to be clumpy and anisotropic in both observations \citep{2014Natur.506..339G,2015Sci...348..670B} and simulations \citep{2015A&A...577A..48W}. \citet{2012ApJ...756..102P} explore injection and mixing of clumpy SN ejecta into molecular clouds. The authors find that an over-dense clump can penetrate up to 1~pc into the target cloud, leaving a swath of enriched gas in its wake. Depending on the degree of clumpiness, the resulting enrichment can be comparable to ESS abundances. Here, we explore an alternative mechanism to overcome the mixing barrier: the injection of SLRs via dust grains. The ejecta from both stellar winds and SNe have been predicted to condense and form dust grains \citep{1979Ap&SS..65..179C,1981ApJ...251..820E,1989ApJ...344..325K}. This prediction is supported by observations that find some SNe produce large amounts of dust ($\gtrsim 0.1~{\rm M}\odot$) soon after explosion \citep{2014ApJ...782L...2I,2015ApJ...800...50M}. In addition, meteorites contain pre-solar grains that originated in massive stars, including SNe \citep{2004ARA&A..42...39C}. Numerous authors \citep{1975ApJ...199..765C,2005ASPC..341..527O,2009ApJ...696.1854G} have suggested that these dust grains will contain SLRs, and in fact some pre-solar grains show evidence for {\em in situ} decay of $^{26}$Al \citep{2015ApJ...809...31G}. If the dust grains survive transport to the pre-solar cloud, they can dynamically decouple from the stalled shock front and penetrate into the dense gas, possibly delivering SLRs \citep{1981ApJ...251..820E,1997ApJ...489..346F}. \citet{2010ApJ...711..597O} have examined the role of dust grains in enrichment, considering injection into an already-formed proto-planetary disc. Although the disc's small cross-section places strong constraints on the SN distance, the authors found that over 70 per cent of dust grains with radii greater than $0.4~\micron$ can survive the passage into the inner disc where they are either stopped or destroyed. Both fates contribute SLRs to the forming star, suggesting dust grains may favorably enhance enrichment. However, injection at the disc phase may be too late; CAIs containing SLRs probably formed within the first 300,000 years of Solar system formation \citep{2005Sci...308..223Y}, prior to the proto-planetary disc phase. Injecting dust grains at the pre-stellar core phase may be more difficult. For grains impacting a dense pre-stellar core of number density $n \gtrsim 10^5~{\rm cm}^{-3}$, only grains with radii $a \ge 30~\micron$ are able to penetrate the stalled shock front and deposit SLRs into the core \citep{2010ApJ...717L...1B}. $30~\micron$ is greater than either simulated \citep{2015A&A...575A..95S} or meteoritic \citep{2004ARA&A..42...39C} SN grain radii (typically $a \lesssim 1~\micron$). Therefore, if injection via dust grains is to be a viable scenario, it must occur at an even earlier phase. Enriching the pre-solar molecular cloud prior to core formation has been suggested by several authors \citep{2009ApJ...696.1854G,2009ApJ...694L...1G,2014E&PSL.392...16Y} but remains largely untested with simulations. In this scenario, one to several massive stars, possibly across multiple generations, contribute SLRs to a large star-forming region. The Solar system then forms from the enriched gas, eliminating the need for injection into a dense core. To our knowledge, the only numerical simulations of this scenario are presented by \citet{2013ApJ...769L...8V}, with a follow-up by \citet{2016ApJ...826...22K}. The authors follow the enrichment of a massive ($\gtrsim 10^5~{\rm M}\odot$) star-forming region over 20~Myr. A turbulent periodic box is allowed to evolve subject to star formation and SN feedback. The combined effect of numerous explosions leads to an overall enrichment of $^{26}$Al and $^{60}$Fe in star-forming gas. The authors used passive particles to track SLRs, and they relied on numerical diffusion to mimic the mixing between SN ejecta and cold gas. While the resulting enrichment is broadly consistent with observed ESS values, a more detailed understanding of the injection mechanisms may be of interest. \subsection{Motivation} We attempt to bridge the gap between the small-scale injection scenario of \citeauthor{2010ApJ...708.1268B}, and the global, large-scale approach of \citeauthor{2013ApJ...769L...8V}, by studying the interaction of a single SN remnant with a large, clumpy molecular cloud. We focus on the details of the injection mechanism, investigating in particular the role of SLR-rich dust grains. We use hydrodynamical simulations to follow the evolution of the gas and dust over 0.3~Myr. The dust grains are decelerated by drag forces and destroyed by thermal and non-thermal sputtering, releasing SLRs into the gas phase. We estimate the amount of SLRs injected into the cloud and determine the dust grain radii needed for successful injection to occur. We conclude from our simulations that sufficiently large ($a \gtrsim 1~\micron$) dust grains can rapidly penetrate the cloud surface and deposit SLRs within the cloud, long before any gas can hydrodynamically mix at the cloud surface. Nearly half of all incident dust grains sputter or stop within the cloud, enriching the dense (eventually star-forming) gas. Our results suggest that dust grains offer a viable mechanism to deposit SLRs in dense star-forming gas and may be the key to reproducing the canonical Solar system SLR abundances. We outline the numerical methods, including initial conditions and dust grain physics, in Section \ref{s:methods}. We describe measures and analytic estimates for the injection efficiency in Section \ref{s:estimates}. We present the results of our simulations in Section \ref{s:results} and discuss the implications for enrichment scenarios in Section \ref{s:discussion}. Finally, we summarize our conclusions in Section \ref{s:conclusions}. \section{Methods}\label{s:methods} We use a modified version of \textsc{Athena} \citep{2008ApJS..178..137S} version 4.2 to solve the equations of ideal, inviscid hydrodynamics including heating and cooling: \begin{eqnarray}\label{eq:hydro} \frac{\partial \rho}{\partial t} + \nabla \cdot (\rho {\bf u}) & = & 0 \\ \frac{\partial (\rho {\bf u})}{\partial t} + \nabla \cdot (\rho {\bf u}{\bf u} + P {\mathbfss I}) & = & 0 \\ \frac{\partial E}{\partial t} + \nabla \cdot [(E+P) {\bf u}] & = & n(\Gamma - n\Lambda) \end{eqnarray} with the gas density $\rho$, the fluid velocity vector ${\bf u}$, the gas pressure $P$, the unit dyad ${\mathbfss I}$, the total energy density $E$ \begin{equation}\label{eq:eos} E = \frac{P}{\gamma -1} + \frac{1}{2} \rho |{\bf u}|^2, \end{equation}the number density $n \equiv \rho/(\mu m_{\rm H})$, the mass of hydrogen $m_{\rm H}$, a mean atomic weight $\mu = 1$, a heating rate $\Gamma$, and a volumetric cooling rate $\Lambda$. We also evolve several passive tracer fields: \begin{eqnarray} \frac{\partial \rho C_{\rm c}}{\partial t} + \nabla \cdot (\rho C_{\rm c} \bf{u}) & = & 0 \\ \frac{\partial \rho C_{\rm s}}{\partial t} + \nabla \cdot (\rho C_{\rm s} \bf{u}) & = & 0 \\ \frac{\partial \rho_{\rm d}}{\partial t} + \nabla \cdot (\rho_{\rm d} \bf{u}) & = & 0 \end{eqnarray} using colour field $C_{\rm c}$ to follow cloud material, colour field $C_{\rm s}$ to follow gas-phase SN ejecta, and four passive density fields $\rho_{\rm d}$ to track sputtered particle mass (see Section \ref{sss:sputtering}). We use the directionally unsplit van Leer (VL) integrator \citep{2009NewA...14..139S} with second order reconstruction in the primitive variables \citep{1984JCoPh..54..174C} and the HLLC Riemann solver \citep{Toro2009}. Simulations are performed on Cartesian grids in three dimensions. We use an adiabatic equation of state with the ratio of specific heats $\gamma = C_{\rm p}/C_{\rm V} = 5/3$. Heating and cooling are included via composite curves (see Section \ref{ss:thermal}). As the cooling breaks the total energy conservation, we find it necessary to include first-order flux correction \citep{2009ApJ...691.1092L} as well as internal energy fallback (see Section \ref{ss:dualenergy}) to maintain positive states. Gravity, magnetic fields, and thermal conduction are not included. A summary of modifications made to \textsc{Athena} is given in Appendix \ref{a:mods}. \begin{table} \centering \caption{Summary of model parameters. Fiducial values are given in bold where necessary.} \label{tab:parameters} \begin{tabular}{llc} \hline Parameter & Definition & Values \\ \hline $n_0$ & Ambient number density (cm$^{-3}$) & 1 \\ $T_0$ & Ambient temperature (K) & 4910.58 \\ $R_{\rm c}$ & Cloud radius (pc) & 8.8 \\ $n_{\rm c}$ & Cloud number density (cm$^{-3}$) & $0.1 n_{\rm cl}$ = 42.33 \\ $T_{\rm c}$ & Cloud temperature (K) & 116.02 \\ $R_{\rm cl}$ & Clump radius (pc) & 0.05 $R_{\rm c}$ = 0.44 \\ $n_{\rm cl}$ & Clump number density (cm$^{-3}$) & 423.25 \\ $T_{\rm cl}$ & Clump temperature (K) & 11.60 \\ $\phi$ & Cloud volume filling factor & 0.1, 0.3, {\bf 0.5}, 0.7, 0.9 \\ $N_R$ & Number of cells per cloud radius & 12, 25, {\bf 50}, 100 \\ $E_{\rm SN}$ & SN explosion energy (erg) & 10$^{51}$ \\ $M_{\rm ej}$ & SN ejected mass (M$\odot$) & 10 \\ $R_{\rm SNR}$ & SN remnant initial radius (pc) & 4.6 \\ $d$ & Distance from SN centre to nearest & 17.6 \\ & cloud edge (pc) & \\ $\rho_{\rm d}$ & Dust grain density (g cm$^{-3}$) & 3.0 \\ $a$ & Dust grain radius (\micron) & 10, 1, 0.1, 0.01 \\ $N_{\rm p}$ & Number of particles of each radius & 10$^3$, 10$^4$, {\bf 10$^5$} \\ \hline \end{tabular} \end{table} \subsection{Setup and initial conditions}\label{ss:setup} We initialize a spherical gas cloud in a uniform ambient medium. We use a single fluid approximation with a mean atomic weight of $\mu = 1$, treating all the gas as neutral hydrogen. The background is in thermal equilibrium with temperature $T_0 \approx 4900$~K and number density $n_0 = 1$~cm$^{-3}$, consistent with average values for the diffuse ISM \citep{1977ApJ...218..148M}. The simulation domain extends from -53 to +35 pc in $x$ and from -22 to +22 pc in $y$ and $z$. Our fiducial simulation (run F) has a resolution of $\delta_x = \delta_y = \delta_z \approx 0.17$~pc, corresponding to roughly 50 cells per cloud radius ($N_R = 50$). Table \ref{tab:parameters} summarizes our simulation parameters and values. \subsubsection{Target molecular cloud}\label{sss:cloud} The target molecular cloud is stationary and centred at the origin with radius $R_{\rm c} = 8.8$~pc. To approximate the substructure observed in molecular clouds, we model the cloud as a distribution of small spherical clumps of number density $n_{\rm cl} \approx 420$~cm$^{-3}$ and size $R_{\rm cl} = 0.05~R_{\rm c}$ = 0.44~pc, embedded in an intercloud medium (ICM) of number density $n_{\rm c} = 0.1~n_{\rm cl}$. The clumps are generated randomly within the cloud radius $R_{\rm c}$ up to the desired volume filling factor $\phi=0.5$. The clumps can overlap, but the density is not cumulative. The density profiles of both the cloud and the individual clumps are smoothed at the edges, and both the cloud and clumps are in pressure equilibrium with the background at $P/k_{\rm B} \approx 4900~{\rm K}~{\rm cm}^{-3}$. The clumps have a temperature $T_{\rm cl} \approx 12$~K, which also guarantees thermal equilibrium. The ICM is slightly warmer ($T_{\rm c} \approx 120$~K) and is not in strict thermal equilibrium, but the subsequent cooling is negligible and does not affect the dynamics. The cloud edge is smoothed using the profile \begin{equation}\label{eq:profile} n(r) = n_0 + \frac{n_{\rm c} - n_0}{1 + (r/R_{\rm c})^{k_{\rm n}}}, \end{equation} where $r$ is the radius from the origin and $k_{\rm n}$ controls the steepness of the profile. We use $k_{\rm n}=20$ to give a steep profile. Each clump is given a similar profile by letting $n_0 \to n_{\rm c}$, $n_{\rm c} \to n_{\rm cl}$, and $R_{\rm c} \to R_{\rm cl}$. To trace cloud material, the passive colour field $C_{\rm c}$ is set to unity where $n \ge n_{\rm c}$ and zero otherwise \citep{2008ApJ...680..336S}. \subsubsection{Supernova remnant}\label{sss:snr} We initialize the supernova remnant (SNR) at the start of the energy-conserving phase. The shock front has expanded to $R_{\rm SNR} = (3 M_{\rm ej}/(4 \pi \rho_0))^{1/3}$ after time $t_{\rm SNR} \approx [R_{\rm SNR}(1.90E_{\rm SN}/\rho_0)^{-1/5}]^{5/2}$, where $M_{\rm ej}$ is the mass ejected from the SN and $E_{\rm SN}$ is the total energy of the SN explosion. We set $M_{\rm ej} = 10~$M$\odot$ and $E_{\rm SN} = 10^{51}$~erg, resulting in $R_{\rm SNR} \approx 4.6$~pc and $t_{\rm SNR} \approx 1000$~yr. We numerically calculate profiles for the density, radial velocity, and pressure based on the Sedov--Taylor (ST) blast-wave solutions \citep{1950RSPSA.201..159T,1959sdmm.book.....S} and interpolate these quantities on to the computational grid using a cubic spline. \textsc{Athena} uses a finite-volume method; hence if we sample only the cell-centred location (as is usually done), the resulting SNR will suffer distortion from grid effects. We find it necessary to sub-sample $8^3$ support points within each cell to construct the volume-averaged cell-centred conserved variables. The SNR is centred at a distance $d=2~R_{\rm c}\approx 18$~pc from the near edge of the cloud along the negative $x$-axis. This is broadly consistent with the separation distance of central stars in OB associations from bordering molecular gas, such as in Cepheus OB2 \citep{1998ApJ...507..241P}. For our target (cloud) parameters, the `radioactivity distance' \citep[equation 2, ][]{2006ApJ...652.1755L} for uniform $^{26}$Al enrichment to the initial solar system abundance is (given uncertainties in SN yield) between 10 and 20~pc. As our distance is at the upper end of this range, our enrichment estimates should be considered lower limits, as decreasing the separation would reduce the geometric dilution (see Section \ref{ss:geomdilution}). To follow the SN gas-phase ejecta, we initialize the passive colour field $C_{\rm s}$ to unity within $R_{\rm SNR}$ and zero elsewhere. For the dust-phase ejecta, we randomly place $N_{\rm p} = 10^5$ particles of each of the four radius groups (see Section \ref{sss:sizes}) within $0.9~R_{\rm SNR}$, for a total of $4\times10^5$ particles. The particle input radius is truncated to prevent interpolation errors at the discontinuity. Particles are initialized with a radial velocity determined from the ST solution. \subsection{Thermal physics}\label{ss:thermal} On the time and distance scales considered here, the dynamics of the SNR should not be strongly affected by radiative cooling. \citet{1988ApJ...334..252C} and \citet{1998ApJ...500..342B} have estimated the time and location for SNR transition from the Sedov--Taylor phase to the radiative phase. For our SN parameters ($E_{\rm SN} = 10^{51}~{\rm erg}$, $n_0=1~{\rm cm}^{-3}$), the transition radius is approximately 19~pc, slightly further than the distance from the SN to the cloud surface. However, radiative cooling is expected to strongly affect the dynamics of the shock-cloud interaction. \citet{2005A&A...443..495M} have shown that cooling reduces the fragmentation and destruction of the cloud, and \citet{2008ApJ...686L.119B} find cooling by molecular species is essential to successfully inject SLR material into the pre-solar cloud. It is therefore critical to include radiative heating and cooling effects. \begin{figure} \includegraphics[width=\columnwidth]{./fig1.eps} \caption{Volumetric cooling rate $\Lambda(T)$ (solid line) as a function of temperature $T$ from 3 to $10^{9}$~K. This composite cooling curve is constructed by blending three cooling functions from the literature: for $T < 10^4~{\rm K}$, a modified version of equation (4) from \citet{2002ApJ...564L..97K}; for $10^4~{\rm K} < T < 10^{8.5}~{\rm K}$, the C.I.E. rates from \citet{1993ApJS...88..253S}; and for $T > 10^{8.5}~{\rm K}$, the free--free rate of equation (5.15b) in \citet{1986rpa..book.....R}.} \label{f:coolrateplot} \end{figure} The temperatures in our simulation span over eight orders of magnitude, from the hot SN ejecta ($T \gtrsim 10^9$~K) to the cold molecular gas ($T \lesssim 10$~K). To cover this temperature range, we combine three standard composite cooling curves into a single cooling function, shown in Fig. \ref{f:coolrateplot}. For temperatures $T < 10^4$~K, we use a modified version of equation (4) in \citet{2002ApJ...564L..97K}: \begin{multline} \Lambda_{\rm KI}(T) = 2 \times 10^{-26}~\{10^7 \exp{\frac{-118400}{T+1000}} \\ + 0.014\sqrt{T}\exp{\frac{-22.75}{{\rm max}[1.0,(T-4.0)]}}\}~{\rm erg~s}^{-1}~{\rm cm}^{3}. \end{multline}This is a fit to the cooling rates of \citet{1995ApJ...443..152W}. For temperatures $10^4~{\rm K} < T < 10^{8.5}~{\rm K}$, we use the collisional ionization equilibrium cooling rates for solar metallicity given in table 6 of \citet{1993ApJS...88..253S}. For temperatures $T > 10^{8.5}$ K, we use the free--free cooling rate given by equation (5.15b) in \citet{1986rpa..book.....R}: \begin{equation} \Lambda_{\rm RL}(T) = 1.42554\times10^{-27}~g~\sqrt{T}~{\rm erg~s}^{-1}~{\rm cm}^{3}, \end{equation}with a Gaunt factor $g=1.5$. The transition between regimes is smoothed with a hyperbolic tangent function. For heating, we use $\Gamma(T) = 2 \times 10^{26}~{\rm erg~s}^{-1}$ below $10^4~{\rm K}$ and smoothly transition to $\Gamma(T) = 0$ above $10^4~{\rm K}$. Heating and cooling are implemented as source terms for the total energy (and internal energy). The cooling time-scale is typically much shorter than the hydrodynamical time-step; we therefore use an iterative explicit method (adaptive Runge--Kutta--Fehlberg) to integrate the source terms in time. The update is performed each time step via operator splitting. \subsection{Dual energy formulation}\label{ss:dualenergy} The cooling function requires the temperature $T$, which is proportional to the internal energy density $e = P/(\gamma -1)$ via the ideal gas law. \textsc{Athena} evolves the total energy density $E$, and the internal energy is evaluated by subtracting the kinetic energy $E_{\rm kin} \equiv \rho |{\bf u}|^2 / 2$ from the total energy. In regions where the kinetic energy is a significant fraction of the total energy, the difference will be susceptible to numerical errors and the internal energy returned may be non-physical ($e < 0$). Therefore, we simultaneously solve the internal energy equation: \begin{equation}\label{eq:eint} \frac{\partial e}{\partial t} + \nabla \cdot (e {\bf u}) = -P~\nabla \cdot {\bf u} + n(\Gamma - n\Lambda). \end{equation} If the internal energy is a small fraction of the total energy ($e/E \le 10^{-3}$), we revert to using $e$ rather than $E - E_{\rm kin}$. This `Dual Energy Formulation' is also used in \textsc{Enzo} \citep{2014ApJS..211...19B} and \textsc{Flash} \citep{2000ApJS..131..273F}. Further details of our implementation are given in Appendix \ref{a:dualenergy}. \subsection{Dust grains}\label{ss:dustgrains} Dust grains are modelled using Lagrangian tracer particles, where each simulated particle represents a collection of dust grains with similar properties and motions. Trajectories of the particles are integrated using the fully implicit method of \citet{2010ApJS..190..297B}, which we have incorporated into the VL integrator in \textsc{Athena}. In a Cartesian coordinate system, \textsc{Athena} solves an equation of motion for each particle given by \begin{equation} \frac{d {\bf v_i}}{dt} = -\frac{{\bf v_i} - {\bf u}}{t_{\rm stop}}, \end{equation} with ${\bf v_i}$ the velocity vector of particle $i$, ${\bf u}$ the local gas velocity vector, and $t_{\rm stop}$ the particle stopping time due to gas drag. Neglecting grain charges and assuming only pure hydrogen gas, the (collisional) drag law is given by \citep{1979ApJ...231...77D} \begin{equation} \frac{d {v_i}}{dt} \approx -\frac{2 \pi a^2 n k_{\rm B} T G_0(s)}{(4/3)\pi \rho_{\rm d} a^3}, \end{equation} with \begin{equation} G_0(s) \approx \frac{8 s}{3 \sqrt{\pi}} (1 + \frac{9\pi}{64} s^2)^{1/2} \end{equation} and \begin{equation} s \equiv (\frac{m_{\rm H} {\bf v}_{\rm rel}^2}{2 k_{\rm B} T})^{1/2}, \end{equation} where $a$ is the dust grain radius, $k_{\rm B}$ is the Boltzmann constant, $T$ is the temperature of the gas, $n$ is the gas number density, $\rho_{\rm d}$ is the internal density of the dust (which we treat as constant at $\rho_{\rm d} = 3.0$~g~cm$^{-3}$), $m_{\rm H}$ is the mass of hydrogen, and ${\bf v}_{\rm rel} \equiv {\bf v_i} - {\bf u}$ is the relative velocity difference between the dust and gas. The stopping distance is evaluated as \begin{equation} t_{\rm stop} = \frac{\sqrt{\pi}}{2\sqrt{2}} \frac{a \rho_{\rm d}}{n \sqrt{m_{\rm H} k_{\rm B} T}} (1 + \frac{9\pi m_{\rm H}}{128 k_{\rm B} T} {\bf v}^2_{\rm rel})^{-1/2}. \end{equation}The gas properties ($n$, $T$, $\bf{u}$) at each particle's location are calculated from nearby grid points using a triangular-shaped cloud (TSC) interpolation scheme \citep{1988csup.book.....H}. There is no momentum feedback from the particles on the gas. \subsubsection{Dust grain sizes}\label{sss:sizes} The drag force and the sputtering rates depend on the dust grain radius $a$. Since the size distribution of grains formed in SN ejecta is still a matter of debate \citep{2004ARA&A..42...39C,2007MNRAS.378..973B,2007ApJ...666..955N,2015A&A...575A..95S,2015MNRAS.454.4250M}, we follow the approach of \citet{2010ApJ...711..597O} and implement an initial `distribution' of four radii: $a = $ 10, 1, 0.1, and 0.01~$\micron$. Each radius group is initialized with the same number of particles ($N_{\rm p} = 10^5$), and the sputtered mass from each radius group is tracked using a separate passive scalar field ($\rho_{\rm d}$, see Section \ref{sss:sputtering}). \subsubsection{Sputtering}\label{sss:sputtering} \begin{figure} \includegraphics[width=\columnwidth]{./fig2.eps} \caption{Polynomial fits to the thermal (solid red line) and non-thermal (dashed blue line) sputtering rates, estimated from fig. 2 of \citet{2006ApJ...648..435N}. The non-thermal sputtering varies with the relative velocity $|{\bf v}_{\rm rel}|$ between the dust and the gas (bottom axis), and the thermal sputtering varies with the gas temperature $T$ (top axis). Both rates depend on the gas number density $n$ and are given in volumetric units ($\micron~{\rm yr}^{-1}~{\rm cm}^{3}$).} \label{f:sputterplot} \end{figure} The dust grains will be eroded by both thermal and non-thermal (kinetic) sputtering. We use sputtering rates estimated from the results of \citet{2006ApJ...648..435N}, neglecting the slight differences in sputtering rate due to dust composition. Non-thermal sputtering results from high-speed collisions of a dust grain with gas molecules and depends on the magnitude of the relative velocity $|{\bf v}_{\rm rel}|$ between the gas and the dust. For simplicity, we adopt the polynomial fit of \citet[eqs. 13,14]{2010ApJ...711..597O}\footnote{Note that \citet{2010ApJ...711..597O} contain a typographical error in the definition of $x$; cm~s$^{-1}$ should be km~s$^{-1}$.} to the non-thermal (kinetic) sputtering rates of \citet[fig. 2b]{2006ApJ...648..435N}: \begin{multline} y_{\rm k} = -0.1084x_{\rm k}^4 + 1.7382x_{\rm k}^3 - 10.5818x_{\rm k}^2 + 28.1292 x_{\rm k}\\ -32.7024 \end{multline} with $x_{\rm k} = {\rm log}_{10}(|{\bf v}_{\rm rel}|/1~{\rm km~s}^{-1})$ and \begin{equation}\label{eq:nonthermalsputtering} (\frac{da}{dt})_{\rm k} =-10^{y_{\rm k}}~(\frac{n}{1~{\rm cm}^{-3}})~\micron~{\rm yr}^{-1}, \end{equation}with the velocity difference between the dust and the gas $|{\bf v}_{\rm rel}|$ in km~s$^{-1}$, and the gas number density $n$. Fig. \ref{f:sputterplot} shows the volumetric non-thermal sputtering rate $n^{-1} (da/dt)$ (solid blue line) as a function of the relative velocity $|{\bf v}_{\rm rel}|$ (bottom axis). Thermal sputtering is due to the thermal motion of the gas and depends on the temperature $T$. Similar to the procedure used by \citet{2010ApJ...711..597O} for the non-thermal sputtering rate, we generate an average fit to the thermal sputtering rates of \citet[fig. 2a]{2006ApJ...648..435N} with the polynomial \begin{multline} y_{\rm t} = -0.001911x_{\rm t}^4 + 0.12275x_{\rm t}^3 - 2.4011x_{\rm t}^2 + 18.6752x_{\rm t}\\ - 56.2785 \end{multline} with $x_{\rm t} = {\rm log}_{10}(T/1~{\rm K})$ and \begin{equation}\label{eq:thermalsputtering} (\frac{da}{dt})_{\rm t} =-10^{y_{\rm t}}~(\frac{n}{1~{\rm cm}^{-3}})~\micron~{\rm yr}^{-1}. \end{equation} Fig. \ref{f:sputterplot} also shows the volumetric thermal sputtering rate $n^{-1}~(da/dt)$ (dashed red line) as a function of the temperature $T$ (top axis). We treat thermal and kinetic sputtering independently, adding the contributions to determine the erosion. However, the thermal motions of the gas will skew the relative velocity difference between the dust and the gas, particularly at high temperatures. We note that the more detailed treatment of \citet{2014A&A...570A..32B} leads to slightly lower sputtering rates in the high temperature regime, suggesting that our sputtering rates are overestimated and hence our injection efficiencies should be considered lower bounds in this regard. The erosion rates (equations \ref{eq:nonthermalsputtering} and \ref{eq:thermalsputtering}) are applied at first order via operator splitting. A particle is assumed to be completely destroyed when its radius decreases to 1 \AA. As the particles are eroded, they release SLRs back into the gas phase. To continue tracking the sputtered SLRs in gas phase, we deposit the sputtered dust mass into a passive density field $\rho_{\rm d}$\footnote{Note that this is a passive density, rather than a colour (concentration), field. The density is a conserved quantity, whereas the concentration is not.}. This field is initially set to zero and is advected with the gas. Each initial grain radius group has its own unique passive density field. The mass is distributed into nearby cell-centred field locations using the same TSC interpolation scheme used to determine gas properties \citep{1988csup.book.....H}. Further details are given in Appendix \ref{a:sputtermass}. \section{Enrichment estimates and measures}\label{s:estimates} \subsection{Dust production}\label{ss:dustproduction} We are interested in enriching a molecular cloud with SLRs from a nearby SN. The quantity of SLRs produced by a SN varies with progenitor mass \citep{2013ApJ...764...21C}, and any estimate is dominated by uncertainties in reaction rates \citep{2011ApJS..193...16I} and progenitor models \citep{2007PhR...442..269W}. Of this amount, some fraction will condense into dust grains of various sizes \citep{2015A&A...575A..95S,2015MNRAS.454.4250M}. Furthermore, the dust grains that form behind the SNR forward shock will subsequently be processed by the reverse shock \citep{2007MNRAS.378..973B,2007ApJ...666..955N,2016A&A...589A.132B,2016A&A...587A.157B}. Calculations of dust grain processing in the reverse shock predict survival rates of 0--100 per cent, depending on the grain size, grain composition, and local gas density \citep{2007ApJ...666..955N,2007MNRAS.378..973B,2010ApJ...715.1575S,2012ApJ...748...12S}. Additionally, inhomogeneities in the SNR produce small clumps of higher density that may shield the forming dust grains from destruction \citep{2014A&A...564A..25B,2016A&A...589A.132B,2016A&A...590A..65M}. For simplicity, we assume a homogeneous SNR and background medium. Because we begin our simulations at the end of the free-expansion phase, we neglect processing by the reverse shock. We therefore assume at least some amount of dust has survived and is still well-coupled to the gas, consistent with 1D simulations \citep{2016A&A...589A.132B,2016A&A...587A.157B}. Our calculations are normalized such that the condensation efficiency and survival rate do not affect the evolution. \subsection{Geometric dilution}\label{ss:geomdilution} As the SNR expands, the ejecta become distributed over a larger surface area. For a spherical target of radius $R$, at a distance $d$ from the SNR centre, the fraction of the total ejecta incident on the target cross-section is \begin{equation} \eta_{\rm geom} = \frac{\pi R^2}{4 \pi d^2}. \end{equation}For our fiducial set-up, $d \approx 18$~pc and $R \approx 9$~pc; then $\eta_{\rm geom} \approx 0.06$. This factor is used to normalize our injection efficiency $\eta$ (see Section \ref{ss:injectioneff}). \subsection{Injection efficiency}\label{ss:injectioneff} The mixing of incident material with a target has been the subject of much previous numerical work, both in the context of the standard shock-cloud interaction \citep{1995ApJ...454..172X,2008ApJ...680..336S,2009MNRAS.394.1351P} and in Solar system enrichment \citep{2012ApJ...756L...9B, 2010ApJ...711..597O}. Defining a good measure of the mixing is difficult and depends on the context. We therefore quantify the mixing in two ways. For the shock-cloud interaction, the mixing fraction is typically defined by the dilution of cloud material into ambient material, using the cloud colour field ($C_{\rm c}$). Conversely, we are interested in the mixing of incident `shock' material (SN ejecta) into the cloud. We therefore define the colour-based injection efficiency $\eta^{\rm c}$ as the total mass of SN ejecta in cells containing at least 10 per cent cloud material (i.e. $C_{\rm c} \ge 0.1$), normalized by the initial ejecta mass and the incident ejecta fraction ($\eta_{\rm geom}$). If all of the ejecta incident on the cloud cross-section are `injected' into the cloud, $\eta = 1$. In the context of Solar system enrichment, we are most interested in enriching the densest (potentially star-forming) regions of the target cloud. Both \citet{2012ApJ...756L...9B} and \citet{2010ApJ...711..597O} consider ejecta to be `injected' above an absolute density threshold. We therefore calculate an alternate injection efficiency, $\eta^{\rm d}$, defined as the total mass of SN ejecta in cells with density greater than the ICM density (i.e. $n > n_{\rm c}$), also normalized by the incident mass fraction ($\eta_{\rm geom}$). This measure only probes the dense clumps; thus if $\eta^{\rm d} \ll \eta^{\rm c}$, most of the ejecta are in diffuse cloud material. For both measures, we use $\eta_{\rm g}$ for the gas-phase injection and $\eta_{\rm d}$ for general dust grain injection (note that $\eta_{\rm d}$ and $\eta^{\rm d}$ are different quantities). We further determine the dust injection for each radius group, using $\eta_{10}$, $\eta_{1}$, $\eta_{0.1}$, and $\eta_{0.01}$ for the $a =$ 10, 1, 0.1, and 0.01 $\micron$ dust grains, respectively. Further details concerning the injection efficiencies are given in Appendix \ref{a:injection}. The unknown quantities discussed in Section \ref{ss:dustproduction} (e.g. SLR yield, dust production, dust destruction) can then be included when estimating final SLR abundances. Note that we do not account for radioactive decay during transit. The half-life of $^{26}$Al is $t_{1/2} \approx 0.7$~Myr. For our fiducial SNR, the shock impacts the cloud after roughly 0.03 Myr; therefore only $\sim 3$ per cent of the total ejected $^{26}$Al will have decayed by that time. Over the full duration of our simulation (0.3~Myr), $\sim 25$ per cent of the $^{26}$Al will have decayed. The short half-life of $^{26}$Al underscores the need for both rapid transport and incorporation into the molecular cloud. \section{Results}\label{s:results} \subsection{Dynamical evolution}\label{ss:dynamics} \begin{figure*} \includegraphics[width=\textwidth]{./fig3.eps} \caption{Time evolution of our fiducial simulation (run F) at early stages (the first 0.03 Myr). Each image is a mid-plane slice at $z=0$. The top row shows the total number density $n$ in ${\rm cm}^{-3}$. All other rows show the mass fraction of each tracer on a per cell basis relative to the initial tracer mass. The second row is the gas-phase ejecta, traced by the colour field $C_{\rm s}$. The remaining rows are the sputtered mass of dust grains from each radius group. The black contour traces the cloud boundary, defined where the cloud colour field $C_{\rm c} \ge 0.1$. The particles located within the central midplane slice ($-\delta_z/2 < z < +\delta_z/2$) are overlaid in grey according to their initial radius group. The smallest grains ($a = 0.01~\micron$) remain well-coupled to the inner ejecta by the drag force and sputter almost completely before impacting the cloud. The $0.1~\micron$ grains outpace the inner ejecta but stall in the forward shock. The large ($a \gtrsim 1.0~\micron$) dust grains decouple and outpace the shock front due to their larger inertia, reaching the cloud and depositing SLRs before the shock impacts the surface. The sputtering of individual particles is visible in the form of radial contrails from the SN centre.} \label{f:allsnap1} \end{figure*} We follow the evolution of the SN remnant and its interaction with the pre-solar molecular cloud for 0.3 Myr. Fig. \ref{f:allsnap1} shows the first 0.03 Myr of time evolution of the fiducial simulation (run F). As the ST solution is initialized with both kinetic and thermal energy, the pressure discontinuity at the edge of the SNR launches a shock wave (forward shock) into the ambient medium. Because the gas-phase ejecta are traced with a passive colour field ($C_{\rm s}$), they instead follow the contact wave, which lags behind the forward shock. The dust grains begin with the ejecta velocity and therefore initially travel with the expanding gas, experiencing no drag or non-thermal sputtering. However, the high temperatures in the SNR cause significant thermal sputtering. Fig. \ref{f:bcsputterplot} shows the ratio of sputtered mass to total mass for each grain radius group over time. At early times, thermal sputtering dominates and erodes nearly 80 per cent of the smallest ($a=0.01~\micron$) grains. As the remnant expands into the ambient medium, the forward shock accumulates more material, eventually slowing and cooling into a dense shell. The smallest grains ($a = 0.01~\micron$) remain well-coupled to the inner gas ejecta. Slightly larger ($a = 0.1~\micron$) grains outpace the inner ejecta but stall in the dense forward shock. The relative velocity difference then generates non-thermal sputtering, which contributes almost equally to the destruction of the $0.1~\micron$ grains (compare the dashed and dash--dotted green lines in Fig. \ref{f:bcsputterplot}). Both of the smaller grain groups are almost completely stopped and destroyed by sputtering within the remnant. In contrast, the larger grains ($a \ge 1.0~\micron$) remain largely intact and dynamically decouple from the ejecta due to their higher inertia. The large grains also pass through the forward shock and ballistically impact the cloud before the shock arrives. Once in the cloud, the grains rapidly slow and kinetically sputter due to the increased densities and high relative velocities. The behaviour of the dust grains in the SN remnant agrees well with the results of \citet{2016A&A...587A.157B}. The authors performed 1D simulations of the growth and erosion of dust in SNRs including multiple grain compositions, plasma drag, and detailed sputtering. Despite using simplified dust physics, we obtain very similar results to the evolution of Mg$_2$SiO$_4$ presented in fig.~3 of \citet{2016A&A...587A.157B}: (1) small grains ($a = 0.01~\micron$) are highly eroded in the remnant and remain within the ejecta region; (2) slightly larger ($a = 0.1~\micron$) grains pass through the ejecta but remain within the forward shock; and (3) the larger ($a = 1.0~\micron$) grains are eroded very little and eventually move beyond the forward shock. \begin{figure} \includegraphics[width=\columnwidth]{./fig4.eps} \caption{Fraction of total particle mass eroded by thermal sputtering (dashed), non-thermal sputtering (dash-dot), and the combination of both (solid) during the first 0.1 Myr of the fiducial simulation (run F). colours indicate the initial radius group (red: $10~\micron$; orange: $1~\micron$; green: $0.1~\micron$; blue: $0.01~\micron$). The $0.01~\micron$ grains are rapidly and significantly eroded, predominately by thermal sputtering in the hot SNR. Over 20 per cent of the total mass is lost in the first kyr, and nearly 100 per cent in the first 10 kyr. The $0.1~\micron$ grains also experience rapid destruction but with almost equal contributions from both thermal and non-thermal sputtering, and nearly all are destroyed. The larger grains fare better, with roughly 40 and 10 per cent destruction rates for the $1$ and $10~\micron$ groups respectively. In both instances, the destruction is dominated by non-thermal sputtering as the grains pass through the shock front and into the cold, dense cloud.} \label{f:bcsputterplot} \end{figure} Fig. \ref{f:allsnap2} shows the evolution of the simulation after forward-shock impact. As noted in Section \ref{ss:thermal}, the SNR is only just starting to cool when it impacts the molecular cloud surface. The expansion velocity of the shell is still supersonic ($\sim 350$~km~s$^{-1}$) at impact. The hot, diffuse gas encounters a cold, dense wall and deflects around the edges, ablating material. A slower shock is transmitted into the cloud, and the clumpy substructure provides channels and gaps for the gas to enter the cloud. Both the clumpy substructure and the efficient radiative cooling prevent the formation of a stand-off shock, which is usually observed in the adiabatic shock--cloud interaction \citep{2006ApJS..164..477N} and could drastically limit the SLR injection (see Section \ref{ss:effcool}). At late times, the Rayleigh--Taylor instability begins to manifest at the cloud surface, driving fingers into the cloud that will eventually mix and inject SLRs in the gas phase. \begin{figure*} \includegraphics[width=\textwidth]{./fig5.eps} \caption{Same as Fig. \ref{f:allsnap1}, but at later stages. The forward shock impacts the cloud within $\sim$ 0.03~Myr, but the inner ejecta does not arrive until $t \sim 0.06$~Myr. The clumpy substructure of the cloud creates channels for the impinging gas to penetrate and mix. At later times, Rayleigh--Taylor instabilities lead to injection of gaseous SLRs through the cloud surface. After 0.3~Myr, nearly all the grains within the cloud have either been stopped or sputtered. Nearly half of the dust grains incident on the cloud are captured, and the largest grains penetrate furthest.} \label{f:allsnap2} \end{figure*} In contrast to the hydrodynamical (gas-phase) mixing, the large dust grains rapidly inject SLRs throughout the cloud. Fig. \ref{f:allparsnap} shows the evolution of the dust grains, as well as a combined view of the sputtered mass from each initial radius group. The largest ($a = 10~\micron$) grains penetrate furthest, sputtering most of their mass in the leading edge of the cloud. The smaller grains have been largely stopped and sputtered before entering the cloud. Still, the SLR contents of the $0.1~\micron$ grains have outpaced the inner ejecta and mix into the dense gas $\sim 0.05$ Myr earlier. Nearly all grains incident on the cloud are sputtered and stopped within the cloud, i.e. only grains at grazing angles can re-emerge from the cloud interior. \begin{figure*} \includegraphics[width=\textwidth]{./fig6.eps} \caption{Time evolution of the fiducial simulation (run F) illustrating the spatial stratification of the dust grains (top row) and sputtered SLRs (bottom row) due to initial grain radius distribution. As in Figs \ref{f:allsnap1} and \ref{f:allsnap2}, the images are mid-plane slices at $z=0$. In the top row, particles located from $-\delta/2 \le z \le +\delta/2$ are overlaid on a desaturated map of number density. Each dust grain group is colour-coded by initial radius (red: $10~\micron$; orange: $1~\micron$; green: $0.1~\micron$; blue: $0.01~\micron$). The same colour scheme holds in the bottom row, now showing the sputtered SLR mass fraction, relative to the initial tracer mass. The grey contour defines the cloud edge. As the simulation proceeds, the dust grains separate spatially based on initial radius, with the larger grains travelling further into the cloud. This stratification could help explain anomalies in observed Solar system abundances, such as the low $^{60}$Fe/$^{26}$Al ratio.} \label{f:allparsnap} \end{figure*} \subsection{Injection of SLRs}\label{ss:injecteff} \begin{figure} \includegraphics[width=\columnwidth]{./fig7.eps} \caption{Tracer mass fraction binned logarithmically by density across time for the fiducial simulation (run F). The top panel shows the SNR gas tracer ($\rho C_{\rm s}$). The rest of the panels show the mass deposited into gas phase by dust grain sputtering ($\rho_{\rm d}$) for each initial grain size (10, 1, 0.1, and 0.01~$\micron$). While hydrodynamical mixing is largely restricted to later times and low cloud densities (top panel), the large ($a \ge 1~\micron$) dust grains enrich higher densities at earlier times. Only the smallest grains do not reach higher densities. The prominent horizontal line at $n = 1~{\rm cm}^{-3}$ corresponds to the ambient medium, while lower densities are located in the diffuse SNR.} \label{f:bcinjectfrac} \end{figure} We are interested in the enrichment of the densest (eventually star-forming) gas. Therefore, we analyse the SLR deposition as a function of density (Fig. \ref{f:bcinjectfrac}). Comparing the dust ejecta to the gas ejecta, the gas ejecta are mostly distributed in the diffuse SNR and background ISM. In contrast, the $10~\micron$ grains deposit a significant fraction of mass into the densest gas, and smaller particles deposit smaller fractions in the dense gas. This effect is further quantified in Fig. \ref{f:bcmixfracplot}, which compares the injection efficiency $\eta$ of both dust and gas as a function of time. At late times, the colour-based injection efficiency is roughly equivalent for all grain sizes ($\eta^{\rm c} \sim 0.5$), indicating that nearly half the incident material has been mixed into the cloud. However, the density-based injection $\eta^{\rm d}$ decreases with decreasing grain size, to the point that the smallest grains and gas deposit only negligible amounts of ejecta in the densest regions. This agrees qualitatively with \citet{2012ApJ...756L...9B}, who found only a small fraction of incident gas-phase material is injected into a dense pre-stellar core ($\eta^{\rm d}_{\rm g} \approx 0.03$). This indicates that only the large grains are able to enrich the densest gas ($n > n_{\rm c}$). Table \ref{tab:results} provides a summary of final injection efficiencies from all simulations performed. \begin{figure} \includegraphics[width=\columnwidth]{./fig8.eps} \caption{Injection efficiency $\eta$ as a function of time for the ejecta in our fiducial simulation (run F). Injection is measured using the cloud tracer (solid) and density threshold (dashed). Each tracer is colour-coded as in Fig. \ref{f:allsnap1} (purple: gas; red: $10~\micron$; orange: $1~\micron$; green: $0.1~\micron$; blue: $0.01~\micron$). The largest grains ($a \ge 1~\micron$) arrive within the first 0.01 Myr and rapidly deposit a substantial fraction ($\gtrsim 20$ per cent) of their SLR mass within 0.1 Myr. The intermediate grains ($a = 0.1~\micron$) are sputtered and stopped in the forward shock and arrive slightly ahead of the gas. The smallest grains ($a = 0.01~\micron$) sputter significantly before entering the cloud, yet injection of SLRs from these grains continues as gas at the leading edge of the cloud is subsequently mixed by Rayleigh-Taylor instabilities. While the colour-based injection is approximately the same ($\eta^{\rm c} \gtrsim 0.4$) for all ejecta types, the density-based injection ($\eta^{\rm d}$) decreases with grain radius, indicating most of the smaller grain deposition is in diffuse intercloud gas.} \label{f:bcmixfracplot} \end{figure} Because the SLRs decay, the enrichment needs to occur rapidly. As seen in both Figs \ref{f:bcinjectfrac} and \ref{f:bcmixfracplot}, the particles are able to deposit SLRs in the cloud $\sim 0.1$ Myr before gas phase mixing occurs. For all dust grain sizes, the injection of SLRs occurs rapidly, reaching peak values in less than 0.1 Myr. This is contrasted with the gas, which slowly mixes and is still increasing its injection amount when the simulation ends. The gas injection efficiency only becomes comparable to the dust injection efficiencies after 0.2 Myr. \subsection{Resolution convergence}\label{ss:resolution} In inviscid hydrodynamics, the degree of mixing is controlled by numerical viscosity. As the numerical diffusion decreases with increasing resolution, adequate resolution is necessary to properly capture the dynamics. In the two-dimensional shock-cloud interaction, previous work has found that about 100 cells per cloud radius ($N_R \gtrsim 100$) are necessary for convergence of global quantities \citep{1994ApJ...420..213K,2006ApJS..164..477N}. This requirement may be reduced in three-dimensional simulations to $N_R \gtrsim 32-64$ \citep{2016MNRAS.457.4470P}, and our fiducial simulation falls within this range ($N_R \approx 50$). However, because the instabilities tend to grow fastest on the smallest scales, the details of the small-scale mixing could be dominated by resolution effects. \citet{2008ApJ...680..336S} found that all quantities except the cloud mixing fraction show convergence, and our definition of the injection efficiency is similar to their mixing fraction. Fig. \ref{f:bcresplot} compares the fiducial result to simulations performed at both lower and higher resolution (runs R1--R4), up to 100 cells per radius ($1024\times512\times512$ grid points). The injection efficiency of the larger grains ($a \ge 0.1~\micron$) increases only slightly with increasing resolution. In contrast, the injection of smallest grains ($a = 0.01~\micron$) and the gas ejecta decreases as the resolution increases. The larger injection efficiencies at lower resolution may be attributable to increased numerical diffusion, leading to increased mixing at the cloud interface. Overall, the trend is sufficiently flat to conclude our three-dimensional simulations are well-resolved at $N_R = 50$, in agreement with \citet{2016MNRAS.457.4470P}. \begin{figure} \includegraphics[width=\columnwidth]{./fig9.eps} \caption{Injection efficiencies $\eta$ as a function of simulation resolution, represented by the cells per cloud radius $N_R$. $\eta$ is evaluated at simulation termination ($t=0.3$ Myr) using the cloud tracer (solid) and density threshold (dashed). Each tracer is colour-coded as in Fig. \ref{f:allsnap1} (purple: gas; red: $10~\micron$; orange: $1~\micron$; green: $0.1~\micron$; blue: $0.01~\micron$). The injection efficiency of the largest grains increases slightly for both measures, as the density peaks within the clumps are better resolved and capture more material. Injection decreases for the smallest grains and the gas due to decreased numerical diffusion at the cloud surface.} \label{f:bcresplot} \end{figure} In the previous resolution test, we kept the number of particles fixed at $N_{\rm p} = 10^5$. We do not expect the particles to be strongly affected by simulation resolution. However, the number of particles used may alter the injection. As the particles are placed randomly within the SNR, a sufficient number of particles are required to eliminate any gaps when the shock wave encounters the cloud surface. We repeat our fiducial simulation varying the number of particles from $N_{\rm p} = 10^4$ (run N1) to $N_{\rm p} = 10^6$ (run N2). We find no significant variation in injection efficiency with particle number (see Table \ref{tab:results}). \begin{figure*} \includegraphics[width=\textwidth]{./fig10.eps} \caption{Similar to Fig. \ref{f:allparsnap}, but comparing different simulations at $t = 0.3$~Myr. From left to right, the columns show (a) the fiducial simulation (run F); (b) the SNR initialized as a thermal pulse rather than a ST solution (run FT); (c) no sputtering of dust grains (run NS); and (d) no thermal physics, i.e. purely adiabatic with no heating or cooling (run NC). The middle row shows the gas ejecta tracer field. Comparing the fiducial to the thermal pulse, the initialization of the SNR does not appear to drastically alter the evolution or injection. Without sputtering, there are no SLRs released in gas phase; hence the bottom panel is blank. The $10~\micron$ dust grains are not stopped in the cloud by drag and re-emerge. Without cooling, the impact of the SNR creates a bow shock that deflects incoming gaseous ejecta. The large, intact grains still decouple and penetrate the cloud surface, injecting SLRs.} \label{f:mdlparsnap} \end{figure*} \subsection{Effect of supernova remnant model}\label{ss:effsnr} We have also performed a simulation using the standard thermal pulse to initialize the SNR rather than an exact ST solution. In this model (run FT), we inject $E_{\rm SN} = 10^{51}$~erg of thermal energy and $M_{\rm ej} = 10$~M$\odot$ uniformly into a spherical volume of radius 20 cells. With sufficient resolution, this approach has been shown to evolve approximately into the ST solution after only 2~kyr \citep{2015ApJ...802...99K} and is therefore often used for its simplicity \citep{2013ApJ...769L...8V}. Because the SNR has no initial kinetic energy, injecting the particles at the start of the simulation would generate non-physical drag. We therefore let the thermal pulse evolve for 3~kyr before injecting the particles, which are then placed in the forward shock with the local gas velocity. The final state of the simulation is displayed in the second column of Fig. \ref{f:mdlparsnap}. Overall, the result obtained using the thermal pulse is almost indistinguishable from the ST model -- the shock thickness, velocity, and arrival time are approximately the same, and the injection efficiencies at simulation termination are nearly identical (see Table \ref{tab:results}). There is a small difference in the dust grains due to the initialization; because we wait 3~kyr to insert the dust in the thermal pulse model, the grains experience less thermal sputtering and arrive later. \subsection{Effect of sputtering}\label{ss:effsput} We compare the fiducial results to a simulation run without sputtering (run NS). The third column of Fig. \ref{f:mdlparsnap} shows the result at simulation termination. The hydrodynamics and the gas tracer field are not affected by the lack of sputtering, since there is no feedback from the particles to the gas. The drag force depends on the dust grain radius, and therefore the dust dynamics are altered by the lack of sputtering. The largest grains pass almost entirely through the target cloud. The rest of the grains also travel further into the cloud but are eventually stopped by the drag force. Since there is no sputtering, no SLRs are released into the gas phase and the injection is measured solely by the stopped grain criterion (see Appendix \ref{a:injection}). \subsection{Effect of radiative cooling}\label{ss:effcool} We compare the fiducial results to a simulation run without radiative heating and cooling (run NC). As seen in the fourth column of Fig. \ref{f:mdlparsnap}, the behaviour of the gas is radically altered. As the shock wave impacts the cloud surface, the purely adiabatic equation of state results in the formation of a stand-off shock at the leading edge of the cloud, diverting impinging material and preventing mixing. The gas-phase ejecta and the smaller grains (which are either coupled to the gas or sputtered) do not mix at all with cloud material, and the injection efficiency is essentially zero (see Table \ref{tab:results}). Cooling lowers the effective adiabatic index of the shock-cloud interaction. As the gas is compressed, the strong radiative losses reduce the shock stand-off distance, allowing mixing of phases and enhancing injection. The larger dust grains are less affected as they are largely intact at impact and still penetrate the cloud surface. \subsection{Filling factors}\label{ss:ff} In contrast to previous shock--cloud and SN injection simulations, we include substructure in the target cloud through high-density clumps randomly embedded in an ICM. The fiducial simulation has a cloud volume filling factor of $\phi = 0.5$. We expect the SN shock wave to interact differently as the filling factor is varied. Clumps at the cloud surface provide channels for injection, reducing the need for Rayleigh--Taylor fingers. We examine the effect of varying the filling factor from $\phi = 0.1$ to $0.9$ (runs F1--F9); results are given in Table \ref{tab:results}. Overall, the dust grain injection is largely unaffected by the filling factor. A higher $\phi$ leads to slightly increased injection efficiency, most notably in the $10~\micron$ grains, as the additional clumps capture grains on trajectories near the periphery of the cloud. \begin{table*} \centering \caption{Summary of simulations and results.} \label{tab:results} \begin{tabular}{cccccccccccccc} \hline Run name & $\phi$ & $N_{R}$ & $N_{\rm p}$ & $\eta^{\rm c}_{\rm g}$ & $\eta^{\rm c}_{10}$ & $\eta^{\rm c}_{1}$ & $\eta^{\rm c}_{0.1}$ & $\eta^{\rm c}_{0.01}$ & $\eta^{\rm d}_{\rm g}$ & $\eta^{\rm d}_{10}$ & $\eta^{\rm d}_{1}$ & $\eta^{\rm d}_{0.1}$ & $\eta^{\rm d}_{0.01}$ \\ \hline F & 0.5 & 50 & 10$^5$ & 0.45 & 0.39 & 0.48 & 0.45 & 0.46 & 0.065 & 0.36 & 0.37 & 0.23 & 0.011 \\ R1 & 0.5 & 12 & 10$^5$ & 0.59 & 0.38 & 0.42 & 0.46 & 0.47 & 0.083 & 0.36 & 0.25 & 0.13 & 0.030 \\ R2 & 0.5 & 25 & 10$^5$ & 0.49 & 0.38 & 0.44 & 0.43 & 0.45 & 0.11 & 0.36 & 0.31 & 0.19 & 0.048 \\ R4 & 0.5 & 100& 10$^5$ & 0.39 & 0.39 & 0.50 & 0.46 & 0.34 & 0.11 & 0.36 & 0.42 & 0.30 & 0.031 \\ N1 & 0.5 & 50 & 10$^4$ & 0.44 & 0.38 & 0.47 & 0.44 & 0.44 & 0.066 & 0.35 & 0.37 & 0.23 & 0.012 \\ N2 & 0.5 & 50 & 10$^6$ & 0.45 & 0.38 & 0.47 & 0.44 & 0.44 & 0.066 & 0.35 & 0.36 & 0.22 & 0.011 \\ FT & 0.5 & 50 & 10$^5$ & 0.30 & 0.41 & 0.51 & 0.46 & 0.29 & 0.045 & 0.38 & 0.41 & 0.31 & 0.056 \\ NS & 0.5 & 50 & 10$^5$ & 0.45 & 0.00 & 0.0012 & 0.011 & 0.029 & 0.065 & 0.00 & 0.0012 & 0.0096 & 0.011 \\ NC & 0.5 & 50 & 10$^5$ & 0.00 & 0.37 & 0.30 & 0.00033 & 0.00 & 0.00 & 0.29 & 0.043 & 0.000 & 0.000 \\ F1 & 0.1 & 50 & 10$^5$ & 0.46 & 0.34 & 0.49 & 0.45 & 0.47 & 0.052 & 0.23 & 0.36 & 0.22 & 0.0081 \\ F3 & 0.3 & 50 & 10$^5$ & 0.45 & 0.37 & 0.48 & 0.45 & 0.46 & 0.057 & 0.32 & 0.36 & 0.22 & 0.0092 \\ F7 & 0.7 & 50 & 10$^5$ & 0.43 & 0.40 & 0.48 & 0.44 & 0.44 & 0.071 & 0.38 & 0.38 & 0.23 & 0.012 \\ F9 & 0.9 & 50 & 10$^5$ & 0.42 & 0.40 & 0.48 & 0.44 & 0.42 & 0.071 & 0.39 & 0.39 & 0.24 & 0.010 \\ \hline \end{tabular} \end{table*} \section{Discussion}\label{s:discussion} \subsection{The Role of dust grains} We investigate the role of SN dust grains in enriching a nearby molecular cloud with SLRs. Our results indicate that dust grains formed in SN ejecta can survive transport through the ISM and significantly enrich neighbouring clouds. We find that sufficiently large grains ($a \ge 1~\micron$) decouple from the expanding SN remnant, pass through the shock front and cloud surface, and deposit a significant fraction of their SLR mass into the cloud ($\eta_{\rm d} \gtrsim 0.4$). In particular, large dust grains enrich the dense gas rapidly, preventing significant SLR decay. Smaller grains ($a \le 0.1~\micron$) sputter and stall in the SNR and contribute SLRs predominately through gas-phase mixing. The gas-phase ejecta mix slowly through hydrodynamic and thermal instabilities at the cloud surface. Our results agree with those of \citet{2010ApJ...711..597O} despite using very different targets (molecular cloud versus proto-stellar disc) and SN distances (18~pc versus 0.1--2 pc). The authors found that a considerable fraction ($\eta \gtrsim 0.8$) of grains larger than $1~\micron$ are injected into the target, which compares favorably with our estimates ($\eta_{\rm d} \gtrsim 0.4$). Similarly, the smallest grains ($a = 0.01~\micron$) are slowed and completely destroyed. We also find approximate agreement with our estimate for gaseous injection; \citet{2010ApJ...711..597O} estimated $\eta_{\rm g} \lesssim 0.01$, while we find $\eta^{\rm d}_{\rm g} \approx 0.1$. \subsection{$^{60}$Fe/$^{26}$Al ratio}\label{ss:feal} We observe that the dust drag and sputtering naturally lead to a spatial stratification between grains of different sizes, illustrated in Fig. \ref{f:allparsnap}. One of the leading arguments against a SN enrichment source is that the SLR abundances in our Solar system do not precisely match predicted SN yields. In particular, some estimates of the ratio of $^{60}$Fe/$^{26}$Al in the ESS are orders of magnitude lower than expected in SNe \citep{2012E&PSL.359..248T}, casting doubt on a SN origin for ${26}$Al \citep{2015A&A...582A..26}. However, if the primary carriers of $^{60}$Fe and $^{26}$Al condense into grains of different characteristic radii, these isotopes may not end up in the same dense gas reservoirs. In addition, the ejecta of SNRs are not spatially homogeneous \citep{2014Natur.506..339G}. Both observational \citep{2010ApJ...725.2038D} and simulation \citep{2015A&A...577A..48W} results indicate that iron-group elements may be preferentially ejected in a particular direction. If the pre-solar cloud was not in this narrow window, it would receive far less $^{60}$Fe than predicted, and a SN may still be the injection source. \subsection{Other considerations} We do not consider the evolution of the SN progenitor prior to explosion. The progenitor's stellar wind and ionizing radiation will shape the circumstellar environment, resulting in a stratified medium ($\rho \propto r^2$) rather than a uniform medium. This density gradient will affect the transit of the shock wave and grains through the intervening gas. Furthermore, the stellar wind will contain dust grains that may also be enriched with certain SLRs, such as $^{26}$Al, produced during main sequence and post-main sequence evolution \citep{2006ApJ...647..483L,2005A&A...429..613P}. These enriched dust grains will be swept up by the passage of the subsequent SNR and may further enhance SLR enrichment \citep{2012A&A...545A...4G}. We consider only one set of parameters for the SN (explosion energy $E_{\rm SN}=10^{51}$~erg and ejected mass $M_{\rm ej} = 10~{\rm M}\odot$) at a single distance ($d = 18$~pc). The SN parameters are somewhat constrained and only slightly affect the initial condition. The SN distance is limited by the estimated SLR yield of SNe, the geometric dilution of ejecta, and the radioactive decay of SLRs. As noted in Section \ref{sss:snr}, our chosen separation is at the upper limit of the `radioactivity distance' for $^{26}$Al enrichment \citep{2006ApJ...652.1755L}. Reducing the distance from the SN to the pre-solar cloud may increase injection due to decreased geometric dilution, increased shock speed at impact, decreased time for radioactive decay of SLRs, and decreased sputtering. Therefore our estimates may be considered a lower limit in this regard. We also only consider a single SN. However, most massive stars form in clustered environments, e.g. OB associations \citep{2003ARA&A..41...57L}, and in multiple systems \citep{2007ARA&A..45..481Z}. Indeed, it is likely that multiple SNe over one or more generations contributed SLRs to the pre-solar cloud \citep{2013ApJ...769L...8V,2014E&PSL.392...16Y}. Cloud morphology may also play a considerable role in gas injection. We introduce static, clumpy substructure in the target cloud. The substructure prevents a symmetric stand-off shock from forming after impact and provides diffuse channels for injection through the dense filaments. The break-up of the shock also generates turbulence and mixing. We have neglected dynamical perturbations (velocity substructure); however, molecular clouds are probably turbulent \citep{2004ARA&A..42..211E}, and introducing turbulence could further enhance the mixing at the cloud surface and increase injection of the smaller grains and gas. We do not include gravity in our simulations. The potential effect of gravity can be estimated by comparing the local free-fall time $t_{\rm ff} = [3 \pi / (32 G \rho)]^{1/2}$ to the simulation time. For the dense clumps with $n_{\rm cl} \approx 400~{\rm cm}^{-3}$, $t_{\rm ff} \approx 2$~Myr -- much longer than the time-scales considered here (0.3~Myr). However, we note that compression by the SN shock wave, as well as fragmentation due to thermal instability, will create higher densities and may trigger collapse. Due to the global nature of our simulation, we are limited to measuring injection efficiencies at large scales within the cloud. Following the enrichment and mixing down to individual pre-stellar cores (sub-parsec scale) will require gravity and additional resolution (possibly through mesh refinement). While the densest gas is harder to penetrate, collapsing cores could receive SLRs by accreting enriched diffuse gas during collapse \citep{2016ApJ...826...22K}. In our dust drag law, we consider only neutral grains and ignore the Coulomb drag force [second term in equation 4 of \citet{1979ApJ...231...77D}]. However, dust grains will be charged by collisions with ions \citep{1979ApJ...231...77D}. The Coulomb term will become large when the relative velocity approaches the sound speed and may significantly affect the grain dynamics at low relative velocities. Within the SNR, the dust-to-gas relative velocity is low and the gas temperature is high; hence the Coulomb (plasma) drag may be several times larger than the collisional drag \citep[fig.~2, ][]{2016A&A...587A.157B}. Reducing the dust grain velocities may reduce the injection, and therefore our estimates of enrichment may be upper limits. Charged grains will also interact with any magnetic fields present in the gas, which we neglect. Within the SN ejecta, the dust grains may be largely unaffected by magnetic effects, as there is observational and numerical evidence that the field is radially aligned \citep{2009MNRAS.394.1307D,2013AJ....145..104R,2013ApJ...772L..20I}. However, the field orientation may shift at the SN shock front; as noted by \citet{1997ApJ...489..346F}, gas--grain de-coupling may be suppressed or even prevented by fields in the shock front, which could drastically reduce the enrichment. Magnetic effects could also alter the grain dynamics within the target cloud. The average magnetic field increases with column density in dense molecular gas \citep{2012ARA&A..50...29C}; hence the effect on grains also increases near star-forming clumps. Future work on the subject should consider the combined effects of grain charging, Coulomb drag, and magnetic fields. \section{Conclusions}\label{s:conclusions} A nearby SN remains a possible candidate as the source of SLRs in the early Solar system. The main challenge in this `direct injection' scenario is overcoming the impedance mismatch between the hot, diffuse SNR gas and the cold, dense pre-solar gas, as demonstrated amply in the literature \citep{2012ApJ...756L...9B,2012ApJ...745...22G,2012ApJ...756..102P}. We explore whether dust grains formed from the SN ejecta and carrying SLRs can overcome the mixing barrier and enrich dense (potentially star-forming) gas. Using hydrodynamical simulations, we model the interaction of a SNR carrying dust grains with the pre-solar molecular cloud. We follow dust grains of varying initial radius ($a = 0.01$--$10~\micron$) subject to drag forces and sputtering. We find the following points: \begin{enumerate} \item Sufficiently large dust grains ($a \ge 1~\micron$) entrained in the SN ejecta will decouple from the shock front and survive entry into the molecular cloud. They will then be either completely stopped or sputtered, enriching the dense gas with SLRs within 0.1 Myr of the SN explosion. \item Smaller dust grains ($a \le 0.1~\micron$) formed in the SN ejecta will be either stopped or sputtered before impacting the molecular cloud. The sputtered SLRs will contribute to the enrichment through subsequent gas-phase mixing. \item Gas-phase SN ejecta will enrich the leading edge of molecular cloud only after instabilities develop at the cloud surface. The degree of mixing depends strongly on the inclusion of radiative cooling. \end{enumerate} While it is still unknown what fraction of dust grains survive passage by the reverse shock and emerge from the SNR, we show that any surviving dust will contribute favorably to the typical SN enrichment scenario. Indeed, if a significant amount of large ($a \gtrsim 1~\micron$) grains survive, dust may be the dominant source of SLR enrichment in nearby molecular clouds. Most notably, the dust grain enrichment occurs rapidly, in contrast with the typical gas-phase mixing which relies on the growth of hydrodynamical instabilities at the cloud surface. A shorter time delay between production and injection of the SLRs prevents substantial radioactive decay. Finally, if the various SLRs condense into different-sized dust grains, drag and sputtering will lead to a spatial stratification of SLRs within the pre-solar cloud. This could explain the large discrepancy in the $^{60}$Fe/$^{26}$Al mass ratio between SN predictions and meteoritic measurements. We conclude that dust grains can be a viable mechanism for the transport of SLRs into the pre-solar cloud. \section*{Acknowledgements} We thank the referee, Marco Bocchio, for an insightful and helpful report. MDG thanks Jim Stone, Eve Ostriker, Bruce Draine, and Jonathan Tan for helpful discussions. Computations were performed on the Kure Cluster at UNC-Chapel Hill. MDG and FH gratefully acknowledge support by NC Space Grant and NSF Grant AST-1109085. IL acknowledges support from NSF Award ACI-1156614, which supported the UNC Chapel Hill Computational Astronomy and Physics Research Experience for Undergraduates programme. \bibliographystyle{mnras}
\subsection{The model and literature overview} Viscoelastic materials demonstrate properties between those of elastic materials and viscous fluid. In the nineteenth century, Boltzmann \cite{Boltz1} realized that the behavior of these materials should be modeled through constitutive relations that involve long but fading memory. In particular, Boltzmann initiated the classical linear theory of viscoelasticity. As a consequence of the widespread use of polymers and other modern materials which exhibit stress relaxation, the theory of viscoelasticity has provided important applications in materials science and engineering. Please see \cite{Col1} (and references therein) for the fundamental modeling development of linear viscoelasticity. We also refer the reader to the monographs \cite{Fab2,Renardy} for surveys regarding the mathematical aspect of the theory of viscoelasticity. In addition, the literature is quite rich in various results on well-posedness and asymptotic stability of hyperbolic PDEs and conservation laws with \emph{memory} terms of Boltzmann type, see for instance \cite{Cav5,Chen-Christ,Daf2,Daf1,Daf3,Daf4,DPZ,Guesmia,LMM,Pata} and the references therein. In this manuscript, we investigate the following nonlinear hyperbolic equation of viscoelasticity: \begin{align} \label{1.1} \begin{cases} u_{tt}- k(0) \Delta u - \int_0^{\infty} k'(s) \Delta u(t-s) ds + |u_t|^{m-1}u_t=|u|^{p-1}u,\text{\;in\;} \Omega \times (0,T)\\ u(x,t)=0, \quad \text{ on } \Gamma \times (-\infty,T) \\ u(x,t)=u_0(x,t), \quad \text{ in } \Omega \times (-\infty,0], \end{cases} \end{align} where the unknown $u(x,t)$ is an $\mathbb{R}$-valued function defined on $\Omega \times (-\infty,T)$, and $\Omega\subset \mathbb{R}^3$ is a bounded domain (open and connected) with smooth boundary $\Gamma$. Our results extend easily to bounded domains in $\mathbb R^n$, by accounting for the corresponding Sobolev embedding, and accordingly adjusting the conditions imposed on the parameters. The system (\ref{1.1}) models the wave propagation in viscoelastic material under the influence of frictional type of damping as well as energy-amplifying sources. Here, $|u_t|^{m-1}u_t$ ($m\geq 1$) represents a nonlinear damping which dissipates energy and drives the system toward stability, while $|u|^{p-1}u$ ($1\leq p<6$) represents a nonlinear source of \emph{supercritical} growth rate which models an external force that amplifies energy and drives the system to possible instability. The memory integral $\int_0^{\infty} k'(s) \Delta u(t-s) ds$ of the Boltzmann type quantifies the viscous resistance and provides a weak form of energy dissipation by assuming that the relaxation kernel satisfies: $k'(s)< 0 \text{\;\;for all\;\;} s>0$ and $k(\infty)=1$. It also accounts for the full past history as time goes to $-\infty$, as opposed to the finite-memory models where the history is taken only over the interval $[0,t]$. Nonlinear wave equations under the influence of damping and sources have been attracting considerable attention in the research field of analysis of nonlinear PDEs. In \cite{G-T}, Georgiev and Todorova considered a nonlinear wave equation with damping and sources: \begin{align} \label{wave} u_{tt}- \Delta u + |u_t|^{m-1}u_t = |u|^{p-1}u, \text{\;\;\;in } \Omega \times (0,T), \end{align} under a Dirichl\'et boundary condition, where $1<p\leq 3$ in 3D. They showed that equation (\ref{wave}) is globally well-posed in the finite energy space $H^1_0(\Omega) \times L^2(\Omega)$ in the case $1<p\leq m$. In addition, a blow-up result was obtained in \cite{G-T} provided the initial energy is sufficiently negative and $1<m<p$. The related wave equations with nonlinear \emph{boundary} damping--source interactions have been studied in \cite{Viti} by Vitillaro, and in \cite{CCL} by Cavalcanti, Domingos Cavalcanti and Lasiecka. Also we would like to mention the work \cite{BLR,BLR2,BLR3} by Barbu, Lasiecka and Rammaha, where they investigated wave equations with \emph{degenerate} damping and source terms, where the prototype equation of this class is \begin{align} \label{dege} u_{tt}-\Delta u + |u|^k |u_t|^{m-1}u_t = |u|^{p-1}u, \text{\;\;\;in } \Omega \times (0,T), \end{align} with $u=0$ on the boundary. In (\ref{dege}) the degenerate damping $|u|^k |u_t|^{m-1}u_t$ models friction modulated by strain. Well-posedness of various types of solutions, such as generalized solutions, weak solutions and strong solutions, to the system (\ref{dege}) has been established with certain assumptions on parameters $k$, $m$, $p$, and moreover, solutions are global if $p\leq k+m$, and blow up if $p>k+m$ and initial energy is negative (see \cite{BLR,BLR2, BLR3}). We also refer the reader to the papers \cite{RS1,RS2} for a study of a system of wave equations with coupled degenerate damping and coupled nonlinear sources. For more works on nonlinear wave and hyperbolic equations with damping--source interactions, we mention \cite{ACC,Agre-Ramm,ACCRT,CCP,Gazz, Messaoudi1, Messaoudi2, Levine-Serrin,Pei1,Pei2,Pitts-Ramm,Ramm-Strei} and the references therein. Our work in this article follows the recent trend in studying nonlinear wave equations with \emph{supercritical} sources. We say a typical source term $|u|^{p-1}u$ \emph{supercritical} if $3<p<6$ (in 3D), and under such scenario, the mapping $u \mapsto |u|^{p-1}u$ is not a locally Lipschitz mapping from $H^1_0(\Omega)$ into $L^2(\Omega)$, and therefore, the classical fixed-point technique used in \cite{G-T} is not directly applicable to establish the well-posedness in finite energy space. A breakthrough was made in a series of papers \cite{BL3,BL2,BL1} by Bociu and Lasiecka in studying a nonlinear wave equation with damping and \emph{supercritical} sources acting in the interior of the domain and on the boundary, where a delicate analysis within the framework of the theory of semi-groups and monotone operators \cite{Barbu3,Sh} was used to establish local well-posedness of weak solutions. Please refer to the papers \cite{BGRT,BRT,BRT-IMACS,GR,GR1,GR2,Pei3,RTW,RW} for more work on various hyperbolic PDEs under the influence of \emph{supercritical} nonlinearities. In particular, the local well-posedness of the viscoelastic wave equation (\ref{1.1}) with \emph{supercritical} sources and damping was established in \cite{visco-Guo-Ramm} by adopting the approach from \cite{BL1,GR}, and in addition, the extension to global solutions was studied in the case that the damping dominates the source. This manuscript is a follow-up work of \cite{visco-Guo-Ramm}, and we investigate the conditions under which the system (\ref{1.1}) blows up in finite time. We note here that equation (\ref{1.1}) is equipped with two types of dissipation: the linear memory $-\int_0^{\infty} k'(s) \Delta u(t-s) ds$ with $k'(s)<0$ as well as the frictional damping $|u_t|^{m-1}u_t$, but only one source term $|u|^{p-1}u$, therefore, it would be quite interesting to explore the mechanism of how the source surpasses the two dissipations leading to a blow-up of the system. We would like to emphasize that our study of the blow-up of (\ref{1.1}) is under two different situations: negative initial energy as well as the positive initial energy. Also, it is important to notice that, in our model (\ref{1.1}), the source is \emph{supercritical} and the linear memory accounts for the full past history as time goes to $-\infty$, which is distinct from other relevant models studied in the literature which usually consider only subcritical sources ($1\leq p\leq 3$ in 3D) and a finite-time memory. In the proof of our results, we carefully justify all the formal calculations, and so our work is fully rigorous. As a matter of fact, the analysis is quite involved and subtle, and in particular in the case of positive initial energy, due to the presence of the memory term in the equation, it is nontrivial to find an assumption on the upper bound of the initial energy. \smallskip \subsection{Review of well-posedness results in \cite{visco-Guo-Ramm}} In this subsection, we shall review the well-posedness results for (\ref{1.1}) obtained in our previous paper \cite{visco-Guo-Ramm} coauthored with Titi and Toundykov. Throughout the paper, we use the notation $$\mathbb R^+=[0,\infty) \text{\;\;\;and\;\;\;} \mathbb R^-=(-\infty,0].$$ For the purpose of defining the proper function space for the initial data, we set $$\mu(s)=-k'(s).$$ Thus $\mu: \mathbb{R}^+\longrightarrow \mathbb{R}^+$, and in Assumption \ref{ass} below precise assumptions on $\mu$ will be imposed. We assume that the initial datum is a function $u_0(x,t)$ defined for negative times $t\in \mathbb R^-$ and in particular $u_0(x,t): \Omega\times \mathbb R^- \rightarrow \mathbb R$ belongs to a weighted Hilbert space $L^2_{\mu}(\mathbb R^-, H^1_0(\Omega))$, i.e., $$\|u_0\|^2_{L^2_{\mu}(\mathbb R^-, H^1_0(\Omega))}=\int_0^{\infty} \int_{\Omega} |\nabla u_0(x,-t)|^2 dx \mu(t) dt<\infty,$$ and $\partial_t u_0\in L^2_{\mu}(\mathbb{R}^-,L^2(\Omega))$, that is, \begin{align*} \|\partial_t u_0\|^2_{L^2_{\mu}(\mathbb R^-, L^2(\Omega))}=\int_0^{\infty} \int_{\Omega} |\partial_t u_0(x,-t)|^2 dx \mu(t) dt<\infty. \end{align*} Also, the standard $L^s(\Omega)$-norm will be denoted by: \begin{align*} \norm{u}_s=\norm{u}_{L^s(\Omega)}. \end{align*} The following assumptions will be imposed throughout the manuscript. \begin{assumption} \label{ass}\leavevmode \begin{itemize} \item ~~ $m\geq 1$, $1\leq p<6$, $p\frac{m+1}{m}<6$; \item ~~ $k\in C^2(\mathbb{R}^+)$ such that $k'(s)<0$ for all $s>0$ and $k(\infty)=1$; \item ~~ $\mu(s)=-k'(s)$ such that $\mu \in C^1(\mathbb{R}^+)\cap L^1(\mathbb{R}^+)$ and $\mu'(s)\leq 0$ for all $s>0$, and $\mu(\infty)=0$; \item ~~ $u_0(x,t)\in L^2_{\mu}(\mathbb{R}^-,H^1_0(\Omega))$,\, $\partial_t u_0(x,t)\in L^2_{\mu}(\mathbb{R}^-,L^2(\Omega))$ such that\\ $u_0: \mathbb R^- \rightarrow H^1_0(\Omega)$ and $\partial_t u_0(x,t): \mathbb R^- \rightarrow L^2(\Omega)$ are weakly continuous at $t=0$. In addition, for all $t\leq 0$, $u_0(x,t)=0$ on $\Gamma$. \end{itemize} \end{assumption} We begin with giving the definition of a weak solution of (\ref{1.1}). \begin{definition} \label{def-weak} A function $u(x,t)$ is said to be a \emph{weak solution} of (\ref{1.1}) defined on the time interval $(-\infty,T]$ provided $u\in C([0,T];H^1_0(\Omega))$ such that $u_t\in C([0,T];L^2(\Omega))\cap L^{m+1}(\Omega \times (0,T))$ with: \begin{itemize} \item $u(x,t)=u_0(x,t)\in L^2_{\mu}(\mathbb{R}^-,H^1_0(\Omega))$ for $t\leq 0$; \item The following variational identity holds for all $t\in [0,T]$ and all test functions $\phi \in \mathscr{F}$: \begin{align} \label{weak} &\int_{\Omega}u_t(t)\phi(t) dx - \int_{\Omega}u_t(0)\phi(0) dx -\int_0^t \int_{\Omega}u_t(\tau)\phi_t(\tau)dx d\tau\notag\\ &+k(0)\int_0^t \int_{\Omega} \nabla u(\tau) \cdot \nabla \phi(\tau) dx d\tau +\int_0^t \int_0^{\infty} \int_{\Omega} \nabla u(\tau-s) \cdot \nabla \phi(\tau) dx k'(s) ds d\tau\notag\\ &+\int_0^t \int_{\Omega} |u_t(\tau)|^{m-1}u_t(\tau)\phi(\tau) dx d\tau =\int_0^t \int_{\Omega} |u(\tau)|^{p-1}u(\tau) \phi(\tau) dx d\tau, \end{align} where $$ \mathscr{F} = \Big\{ \phi: \,\, \phi \in C([0,T];H^1_0(\Omega))\cap L^{m+1}(\Omega \times (0,T)) \text{ with } \phi_t\in C([0,T];L^2(\Omega)) \Big\}.$$ \end{itemize} \end{definition} For the reader's convenience we summarize the main results obtained in \cite{visco-Guo-Ramm} which are relevant to the work in this paper. \begin{theorem}[{\bf Short-time existence and uniqueness} \cite{visco-Guo-Ramm}] \label{thm-exist} Assume the validity of the Assumption \ref{ass}, then there exists a local (in time) weak solution $u$ to (\ref{1.1}) defined on the time interval $(-\infty,T]$ for some $T>0$ depending on the initial quadratic energy $\mathscr E(0)$. Furthermore, the following energy identity holds: \begin{align} \label{EI-0} &\mathscr E(t)+\int_0^t \int_{\Omega} |u_t|^{m+1} dx d\tau-\frac{1}{2}\int_0^t \int_0^{\infty} \norm{\nabla w(\tau, s)}_2^2 \mu'(s)ds d\tau \notag\\ &=\mathscr E(0)+\int_0^t \int_{\Omega} |u|^{p-1}u u_t dx d\tau, \end{align} where the history function $w(x,\tau,s)$ and the quadratic energy $\mathscr E(t)$ are respectively defined by: \begin{align}\label{1.6} \begin{cases} w(x,\tau,s)=u(x,\tau)-u(x,\tau-s),\vspace{.1in}\\ \mathscr E(t)=\frac{1}{2}\left(\norm{u_t(t)}_2^2+\norm{\nabla u(t)}_2^2+\int_0^{\infty}\norm{\nabla w(t,s)}_2^2 \mu(s)ds \right). \end{cases} \end{align} If in addition we assume $u_0(0)\in L^{\frac{3(p-1)}{2}}(\Omega)$, then weak solutions of (\ref{1.1}) are unique. \end{theorem} \vspace{0.05 in} \begin{remark} If we assume that $u(t)\in L^{p+1}(\Omega)$ for $t$ belonging to the lifespan $(-\infty,T]$ of the local solution (or instead assume $p\leq 5$), then the \emph{total energy} $E(t)$ of the system (\ref{1.1}) is defined by \begin{align} \label{to-ene} E(t)&=\mathscr E(t) - \frac{1}{p+1}\|u(t)\|_{p+1}^{p+1} \notag \\ &=\frac{1}{2}\left(\norm{u_t(t)}_2^2+\norm{\nabla u(t)}_2^2+\int_0^{\infty}\norm{\nabla w(t,s)}_2^2 \mu(s)ds \right)- \frac{1}{p+1}\|u(t)\|_{p+1}^{p+1}. \end{align} It is readily seen that, in terms of the total energy $E(t)$, the energy identity (\ref{EI-0}) can be written as \begin{align} \label{EI-1} E(t)+\int_0^t \int_{\Omega} |u_t|^{m+1} dx d\tau-\frac{1}{2}\int_0^t \int_0^{\infty} \norm{\nabla w(\tau, s)}_2^2 \mu'(s)ds d\tau =E(0). \end{align} \end{remark} The next result states that weak solutions of (\ref{1.1}) depend continuously on the initial data. \begin{theorem}[{\bf Continuous dependence on initial data} \cite{visco-Guo-Ramm}] \label{thm-cont} In addition to the Assumption \ref{ass}, assume that $u_0(0)\in L^{\frac{3(p-1)}{2}}(\Omega)$. If $u_0^n\in L^2_{\mu}(\mathbb{R}^-, H^1_0(\Omega))$ is a sequence of initial data such that $u_0^n\longrightarrow u_0$ in $L^2_{\mu}(\mathbb{R}^-,H^1_0(\Omega))$ with $u^n_0(0)\longrightarrow u_0(0)$ in $H^1_0(\Omega)$ and in $L^{\frac{3(p-1)}{2}}(\Omega)$, $\frac{d}{dt}u^n_0(0)\longrightarrow \frac{d}{dt}u_0(0)$ in $L^2(\Omega)$, then the corresponding weak solutions $u_n$ and $u$ of (\ref{1.1}) satisfy \begin{align*} u_n\longrightarrow u \text{\;\;in\;\;} C([0,T];H^1_0(\Omega)) \text{\;\;\;and\;\;\;} (u_n)_t\longrightarrow u_t \text{\;\;in\;\;} C([0,T];L^2(\Omega)). \end{align*} \end{theorem} The following result states: if the damping dominates the source term, then the solution is global. \begin{theorem}[{\bf Global existence} \cite{visco-Guo-Ramm}] \label{thm-global} In addition to Assumption \ref{ass}, further assume $u_0(0) \in L^{p+1}(\Omega)$. If $m\geq p$, then the weak solution of (\ref{1.1}) is global. \end{theorem} \smallskip \subsection{Main results} The main results of the paper consist of two theorems concerning the finite-time blow-up of the system (\ref{1.1}). We prove these results for negative and positive initial energy when the source term is more dominant than the frictional damping as well as the dissipation from the delay. Our first blow-up result deals with the case when the initial total energy $E(0)$ is negative. Specifically, we have the following theorem. \begin{theorem}[{\bf Blow-up of solutions with negative initial energy}] \label{thm-blow} Assume the validity of the Assumption \ref{ass} and $E(0)<0$. If $p>\max\{m,\sqrt{k(0)}\}$, then the weak solution $u$ of (\ref{1.1}) blows up in finite time. More precisely, $\limsup_{t\rightarrow T_{max}^-}\|\nabla u(t)\|_2=\infty$, for some $T_{\max}\in (0,\infty)$. \end{theorem} \begin{remark} \label{rem} Although the well-posedness results, Theorems \ref{thm-exist} and \ref{thm-cont}, allow the growth rate $p$ of the source term to take any value in $[1,6)$, nevertheless the assumptions in Theorem \ref{thm-blow} force the restriction $p<5$. Indeed, if we combine the assumptions $p>m$ and $p\frac{m+1}{m}<6$ from Assumption \ref{ass}, we find that $6>p(1+\frac{1}{m})>p(1+\frac{1}{p})=p+1$, which implies that $p<5$. \end{remark} Our second blow-up result is concerned with the case that the initial total energy is nonnegative. For a given $p\in (1,5]$, let $\gamma>0$ be the best constant for the Sobolev inequality $\|u\|_{p+1} \leq \gamma \|\nabla u\|_2$ for all $u\in H^1_0(\Omega)$, i.e., \begin{align} \label{em} \gamma^{-1}=\inf \left\{\norm{\nabla u}_2: u\in H^1_0(\Omega), \|u\|_{p+1}=1 \right\}. \end{align} Then, we have the following result. \begin{theorem}[{\bf Blow-up of solutions with positive initial energy}] \label{thm-blow2} In addition to the validity of the Assumption \ref{ass}, we assume that $p>\max\{m,\sqrt{k(0)}\}$. Further assume that $\mathscr E(0) > y_0:=\frac{1}{2} \gamma^{-\frac{2(p+1)}{p-1}}$ and \begin{align} \label{def-M} 0\leq E(0)<M:=(\sqrt{k(0)}+1)^{\frac{2}{p-1}} (2\gamma^2)^{-\frac{p+1}{p-1}}\left(\frac{p-\sqrt{k(0)}}{p+1}\right). \end{align} Then, the weak solution $u$ of the system (\ref{1.1}) blows up in finite time. More precisely, $\limsup_{t\rightarrow T^-_{max}}\|\nabla u(t)\|_2 = \infty$, for some $T_{\max}\in (0,\infty)$. \end{theorem} The remainder of the manuscript is organized as follows. Section \ref{S2} is devoted to the proof of Theorem \ref{thm-blow}, where we show blow-up of the weak solution to (\ref{1.1}) when the initial total energy is \emph{negative} and the source dominates the frictional damping and the dissipation due to the memory term. In Section \ref{S3}, we present the proof of Theorem \ref{thm-blow2} which contains a finite-time blow-up result in the case of \emph{positive} initial total energy and with sufficiently large quadratic energy. \bigskip \section{Proof of Theorem \ref{thm-blow}} \label{S2} This section is devoted to proving the blow-up of weak solutions to the viscoelastic wave equation (\ref{1.1}) when the total energy is negative. In particular, we shall present a rigorous proof of Theorem \ref{thm-blow}, which states that, if the initial energy $E(0)$ is negative and the source dominates dissipation in the system, i.e. $p>\max\{m,\sqrt{k(0)}\}$, then the weak solution of (\ref{1.1}) blows up in finite time. \begin{proof} Let $u$ be a weak solution of the system (\ref{1.1}) in the sense of Definition \ref{def-weak}. We define the life span $T_{max}$ of the solution $u$ to be the supremum of all $T>0$ such that $u$ is a solution of (\ref{1.1}) on $(-\infty,T]$. We aim to show that $T_{max}$ is necessarily finite, that is, $u$ blows up in finite time. The main idea of the proof is due to \cite{G-T} (see also \cite{Levine-Serrin,Messaoudi1}). One major contribution of the paper \cite{G-T} was the choice of a special Liapunov's function for the purpose of proving the blow-up result. Indeed, we put $G(t)=-E(t)$ and $N(t)=\frac{1}{2}\|u(t)\|_2^2$. We aim to show \begin{align} \label{def-Y} Y(t)=G(t)^{1-\alpha}+\epsilon N'(t) \end{align} blows up in finite time, for some $\alpha\in (0,1)$ and $\epsilon>0$, which will be selected later. We calculate \begin{align*} Y'(t)=(1-\alpha)G(t)^{-\alpha}G'(t)+\epsilon N''(t). \end{align*} By the definition of weak solutions, i.e, Definition \ref{def-weak}, we find the regularity of weak solutions: $u\in C([0,T];H^1_0(\Omega))$ such that $u_t\in C([0,T];L^2(\Omega))\cap L^{m+1}(\Omega \times (0,T))$ for $0<T<T_{max}$. Clearly one has $$N'(t)=\int_{\Omega} uu_t dx.$$ Also, \emph{formally} we have $N''(t)=\frac{d}{dt}\int_{\Omega} u u_t dx = \|u_t\|_2^2 + \int_{\Omega} u u_{tt} dx$. However, because of the lack of the regularity of $u_{tt}$, such formal calculation is not legitimate. In order to bypass this obstacle, we resort to the variational identity (\ref{weak}) and we would like to use $u$ as a test function in place of $\phi$ in (\ref{weak}) in order to obtain an identity for $N'(t)$. To proceed in this direction, we shall check that whether $u$ belongs to the admissible set $\mathscr F$ of test functions $\phi$. By the regularities of weak solutions, we know that $u\in C([0,T];H^1_0(\Omega))$ and $u_t \in C([0,T];L^2(\Omega))$ for $0<T<T_{\max}$, and this immediately implies that $u\in L^{m+1}(\Omega \times (0,T))$ since $H^1_0(\Omega) \hookrightarrow L^{m+1}(\Omega)$ due to $m<p<5$ by Remark \ref{rem}. Hence, the solution $u$ enjoys the regularity restrictions imposed on the test functions in $\mathscr F$, as stated in Definition \ref{def-weak}. As a result, we may replace $\phi$ by $u$ in the variational identity (\ref{weak}) to obtain \begin{align} \label{deN} N'(t) &=\int_{\Omega}u_t(0)u(0) dx +\int_0^t \|u_t(\tau)\|_2^2 d\tau \notag\\ &\hspace{0.4 in}-k(0)\int_0^t \|\nabla u(\tau)\|^2_2 d\tau -\int_0^t \int_0^{\infty} \int_{\Omega} \nabla u(\tau-s) \cdot \nabla u(\tau) dx k'(s) ds d\tau\notag\\ &\hspace{0.4 in}-\int_0^t \int_{\Omega} |u_t(\tau)|^{m-1}u_t(\tau)u(\tau) dx d\tau +\int_0^t \|u(\tau)\|^{p+1}_{p+1} d\tau \notag\\ &=\int_{\Omega}u_t(0)u(0) dx +\int_0^t \|u_t(\tau)\|_2^2 d\tau \notag\\ &\hspace{0.4 in}-\int_0^t \|\nabla u(\tau)\|^2_2 d\tau + \int_0^t \int_0^{\infty} \int_{\Omega} \nabla w(\tau,s) \cdot \nabla u(\tau) dx k'(s) ds d\tau\notag\\ &\hspace{0.4 in}-\int_0^t \int_{\Omega} |u_t(\tau)|^{m-1}u_t(\tau)u(\tau) dx d\tau +\int_0^t \|u(\tau)\|^{p+1}_{p+1} d\tau, \end{align} for all $t\in [0,T_{max})$, where we have used $w(x,t,s)=u(x,t)-u(t-s)$ as well as the assumption $k(\infty)=1$. In order to differentiate $N'(t)$, we shall verify that $N'(t)$ is absolutely continuous on any closed subsegment of $[0,T_{max})$. By the assumptions $k'(s)<0$, $\mu(s)=-k'(s)>0$ and $k(\infty)=1$, one has \begin{align} &\int_0^t \left|\int_0^{\infty} \int_{\Omega} \nabla w(\tau,s) \cdot \nabla u(\tau) dx k'(s) ds \right| d\tau \notag\\ &\leq \int_0^t \int_0^{\infty} \|\nabla w(\tau,s)\|_2^2 \mu(s) ds d\tau - \int_0^t \int_0^{\infty} \|\nabla u(\tau) \|_2^2 k'(s) ds d\tau \notag\\ &\leq 2\int_0^t \mathscr E(\tau) d\tau +(k(0)-1)\int_0^t \|\nabla u(\tau)\|_2^2 d\tau<\infty, \end{align} for all $t\in [0,T_{max})$, where we have used the fact that $u\in C([0,t];H^1_0(\Omega))$ and $\mathscr E(t)$ is continuous due to the energy identity (\ref{EI-0}). Also, by H\"older's and Young's inequalities, one has \begin{align*} \int_0^t \left|\int_{\Omega} |u_t(\tau)|^{m-1}u_t(\tau)u(\tau) dx\right| d\tau &\leq \int_0^t \|u_t\|_{m+1}^m \|u\|_{m+1} d\tau \notag\\ &\leq C\int_0^t \|u_t\|_{m+1}^{m+1} d\tau + C\int_0^t \|u\|_{m+1}^{m+1} d\tau < \infty, \end{align*} for all $t\in [0,T_{max})$, since $u_t \in L^{m+1}(\Omega \times (0,t))$ and $u\in C([0,t];H^1_0(\Omega))$ as well as the imbedding $H^1(\Omega) \hookrightarrow L^{m+1}(\Omega)$ due to the fact $m<p<5$ from Remark \ref{rem}. Therefore, $N'(t)$ is absolutely continuous on any closed subsegment of $[0,T_{max})$. Thus, we may differentiate again in (\ref{deN}) to obtain: \begin{align} \label{doub} N''(t)= &\|u_t\|_2^2 - \|\nabla u\|_2^2 + \int_0^{\infty} k'(s) \int_{\Omega} \nabla u(t) \cdot \nabla w(t,s) dx ds \notag\\ &- \int_{\Omega} |u_t|^{m-1} u_t u dx + \|u\|_{p+1}^{p+1}, \text{\;\;\;\;\;for all\;\;} t\in [0,T_{max}). \end{align} The next step is to find an appropriate lower bound of right-hand side of (\ref{doub}). Indeed, by using the Cauchy-Schwarz and Young's inequalities, and the assumption $\mu(s)=-k'(s)>0$, one has \begin{align} \label{ks} &\left|\int_0^{\infty} k'(s) \int_{\Omega} \nabla u(t) \cdot \nabla w(t,s) dx ds\right| \notag\\ &\leq \int_0^{\infty} (-k'(s)) \left( \frac{1}{4\delta} \|\nabla u(t)\|_2^2 + \delta \|\nabla w(t,s)\|^2_2 \right) ds \notag\\ &\leq \frac{k(0)-1}{4\delta} \|\nabla u\|_2^2 + \delta \int_0^{\infty} \|\nabla w(t,s)\|^2_2 \mu(s) ds, \end{align} for some $\delta>0$ whose value will be selected later. Also, by applying H\"older's and Young's inequalities, and using the assumption that the source is stronger than the damping, i.e. $p>m$, we obtain \begin{align} \label{ut} \left|\int_{\Omega} u |u_t|^{m-1} u_t dx \right|\leq \int_{\Omega} |u||u_t|^m dx \leq \|u\|_{m+1} \|u_t\|_{m+1}^m \leq C\|u\|_{p+1} \|u_t\|_{m+1}^m. \end{align} Since $G(t)=-E(t)$ and $\mu'(s)\leq 0$, (\ref{EI-1}) implies \begin{align} \label{Gprime} G'(t)= \|u_t\|_{m+1}^{m+1} -\frac{1}{2} \int_0^{\infty} \norm{\nabla w(t, s)}_2^2 \mu'(s)ds \geq \|u_t\|_{m+1}^{m+1} \geq 0. \end{align} Thus, $G(t)$ is nondecreasing for $t\in [0,T_{max})$. Moreover, by (\ref{to-ene}), \begin{align} \label{GG} G(t)=-E(t)= -\mathscr E(t) + \frac{1}{p+1}\|u(t)\|_{p+1}^{p+1} \leq \frac{1}{p+1} \|u(t)\|_{p+1}^{p+1}. \end{align} Now, by applying (\ref{GG}) to inequality (\ref{ut}) and invoking the assumption $p>m$, we deduce that \begin{align} \label{ut-0} \left|\int_{\Omega} u |u_t|^{m-1} u_t dx \right| &\leq C \|u\|^{1-\frac{p+1}{m+1}}_{p+1} \left(\|u\|_{p+1}^{\frac{p+1}{m+1}} \|u_t\|_{m+1}^m\right) \notag\\ &\leq C G(t)^{\frac{1}{p+1}-\frac{1}{m+1}} \left(\|u\|_{p+1}^{\frac{p+1}{m+1}} \|u_t\|_{m+1}^m\right) \notag\\ &\leq \lambda G(t)^{\frac{1}{p+1}-\frac{1}{m+1}} \|u\|_{p+1}^{p+1} + C_{\lambda} G(t)^{\frac{1}{p+1}-\frac{1}{m+1}} \|u_t\|_{m+1}^{m+1}, \end{align} where we have used the Young's inequality and the value of the positive number $\lambda$ will be determined later. By selecting $$0<\alpha<\frac{1}{m+1}-\frac{1}{p+1}$$ and using (\ref{Gprime}), we obtain \begin{align} \label{ut-1} \left|\int_{\Omega} u |u_t|^{m-1} u_t dx \right| &\leq \lambda G(t)^{\frac{1}{p+1}-\frac{1}{m+1}} \|u\|_{p+1}^{p+1} + C_{\lambda} G(t)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha} G(t)^{-\alpha} \|u_t\|_{m+1}^{m+1} \notag\\ &\leq \lambda G(0)^{\frac{1}{p+1}-\frac{1}{m+1}} \|u\|_{p+1}^{p+1} + C_{\lambda} G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha} G(t)^{-\alpha} G'(t). \end{align} By employing (\ref{ks}) and (\ref{ut-1}), we obtain from (\ref{doub}) that \begin{align} \label{doub-1} N''(t) \geq &\|u_t\|_2^2 - \left(\frac{k(0)-1}{4\delta}+1\right) \|\nabla u\|_2^2 - \delta \int_0^{\infty} \norm{\nabla w(t,s)}^2_2 \mu(s)ds \notag\\ &+(1-\lambda G(0)^{\frac{1}{p+1}-\frac{1}{m+1}} )\|u\|_{p+1}^{p+1}-C_{\lambda} G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha} G(t)^{-\alpha} G'(t), \end{align} for $t\in [0,T_{max})$. Since $G(t)=-E(t)$, we obtain from (\ref{to-ene}) that \begin{align} \label{EI-2} \int_0^{\infty}\norm{\nabla w(t,s)}_2^2 \mu(s)ds = -2 G(t)- \norm{u_t(t)}_2^2 - \|\nabla u\|_2^2 +\frac{2}{p+1}\|u(t)\|_{p+1}^{p+1}. \end{align} By substituting (\ref{EI-2}) into (\ref{doub-1}), one has \begin{align} \label{doub-2} &N''(t) \geq (1+\delta)\|u_t\|_2^2+2\delta G(t) + \left(\delta -\frac{k(0)-1}{4\delta}-1 \right) \norm{\nabla u}_2^2 \notag\\ &+\left(1-\frac{2\delta}{p+1}-\lambda G(0)^{\frac{1}{p+1}-\frac{1}{m+1}} \right)\|u\|_{p+1}^{p+1} -C_{\lambda} G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha} G(t)^{-\alpha} G'(t), \end{align} for $t\in [0,T_{max})$. We intend to select $\delta>0$ such that \begin{align*} \delta -\frac{k(0)-1}{4\delta}-1 \geq 0 \text{\;\;\;and\;\;\;} 1-\frac{2\delta}{p+1}>0. \end{align*} These two restrictions imply that \begin{align*} \frac{\sqrt{k(0)}+1}{2} \leq \delta < \frac{p+1}{2}, \end{align*} which is valid since $p>\sqrt{k(0)}$ by the assumption of the theorem. In the following we choose \begin{align*} \delta = \frac{\sqrt{k(0)}+1}{2}, \end{align*} and select $\lambda>0$ such that \begin{align*} \lambda G(0)^{\frac{1}{p+1}-\frac{1}{m+1}}=\frac{1}{2}-\frac{\delta}{p+1} =\frac{p-\sqrt{k(0)}}{2(p+1)}, \end{align*} then inequality (\ref{doub-2}) can be reduced to \begin{align*} &N''(t) \geq \frac{1}{2}\left(\sqrt{k(0)}+3\right)\|u_t\|_2^2+\left(\sqrt{k(0)}+1\right)G(t) \notag\\ &+\frac{p-\sqrt{k(0)}}{2(p+1)}\|u\|_{p+1}^{p+1} -C_{\lambda} G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha} G(t)^{-\alpha} G'(t), \end{align*} for all $t\in [0,T_{max})$. Now, since $Y'(t)=(1-\alpha)G(t)^{-\alpha}G'(t)+\epsilon N''(t)$, if we select $\epsilon>0$ small enough so that $$\epsilon C_{\lambda}G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha} \leq 1-\alpha.$$ Thus, one has \begin{align} \label{Y-0} Y'(t) \geq & \frac{\epsilon}{2}\left(\sqrt{k(0)}+3\right)\|u_t\|_2^2+\epsilon\left(\sqrt{k(0)}+1\right)G(t)+\frac{\epsilon\left[p-\sqrt{k(0)}\right]}{2(p+1)} \|u\|_{p+1}^{p+1}, \end{align} for $t\in [0,T_{max})$. Recall that $G(0)=-E(0)>0$, and since $G(t)$ is nondecreasing by (\ref{Gprime}), it follows that $G(t)>0$ for $t\in [0,T_{max})$. Thanks to (\ref{Y-0}), we have $Y'(t)>0$, i.e. $Y(t)$ is monotone increasing for $t\in [0,T_{max})$. Note that $Y(0)=G(0)^{1-\alpha}+\epsilon N'(0)$. If in case $N'(0)<0$, in order to make sure that $Y(0)>0$, we shall impose an extra restriction on $\epsilon$: \begin{align*} 0<\epsilon \leq -\frac{G(0)^{1-\alpha}}{2N'(0)}. \end{align*} As a result, \begin{align} \label{YG} Y(t)\geq Y(0) \geq \frac{1}{2}G(0)^{1-\alpha}>0 \text{\;\;\;for all\;\;\;} t\in [0,T_{max}). \end{align} Recall the assumption $p>m\geq 1$ and our choice of $\alpha$, namely, $0<\alpha<\frac{1}{m+1}-\frac{1}{p+1}$. Thus, $\alpha<\frac{1}{2}$, and in particular, $1<\frac{1}{1-\alpha}<2$. We aim to show that \begin{align} \label{Y-1} Y'(t) \geq \epsilon^{1+\sigma} C(k(0),p) Y(t)^{\frac{1}{1-\alpha}}, \text{\;\;\;for\;\;} t\in [0,T_{max}), \end{align} where $\sigma=1-\frac{2}{(1-2\alpha)(p+1)}$. If (\ref{Y-1}) is valid, then we will have $Y(t)$ blows up in finite time, due to the fact that $Y(0)>0$ and $\frac{1}{1-\alpha}>1$. Since $Y(t)=G(t)^{1-\alpha}+\epsilon N'(t)$, if we let $\epsilon\leq 1$, it follows that \begin{align} \label{Y-2} Y(t)^{\frac{1}{1-\alpha}} \leq C\left(G(t)+|N'(t)|^{\frac{1}{1-\alpha}}\right), \text{\;\;\;for\;\;} t\in [0,T_{max}). \end{align} Since $N'(t)=\int_{\Omega}uu_t dx$, then by the Cauchy-Schwarz and Young's inequalities, we have \begin{align} \label{doub-3} |N'(t)|^{\frac{1}{1-\alpha}} \leq \|u_t\|_2^{\frac{1}{1-\alpha}} \|u\|_2^{\frac{1}{1-\alpha}} \leq C \|u_t\|_2^{\frac{1}{1-\alpha}} \|u\|_{p+1}^{\frac{1}{1-\alpha}} \leq C\left(\|u_t\|_2^2 + \|u\|_{p+1}^{\frac{2}{1-2\alpha}}\right). \end{align} Notice that \begin{align} \label{p-1} \|u\|_{p+1}^{\frac{2}{1-2\alpha}}=\left(\|u\|_{p+1}^{p+1}\right)^{\frac{2}{(1-2\alpha)(p+1)}} =\left(\|u\|_{p+1}^{p+1}\right)^{\frac{2}{(1-2\alpha)(p+1)}-1} \|u\|_{p+1}^{p+1}. \end{align} Now we impose an extra restriction on $\alpha$: $$0<\alpha<\frac{p-1}{2(p+1)},$$ then $\sigma=1-\frac{2}{(1-2\alpha)(p+1)}>0$. By virtue of (\ref{GG}) and the fact that $G(t)$ is nondecreasing for $t\in [0,T_{max})$, and letting $0<\epsilon \leq G(0)$, it follows from (\ref{p-1}) that \begin{align*} \|u\|_{p+1}^{\frac{2}{1-2\alpha}}=\left(\|u\|_{p+1}^{p+1}\right)^{-\sigma} \|u\|_{p+1}^{p+1} \leq C G(t)^{-\sigma} \|u\|_{p+1}^{p+1} \leq C G(0)^{-\sigma} \|u\|_{p+1}^{p+1} \leq C\epsilon^{-\sigma} \|u\|_{p+1}^{p+1}. \end{align*} By substituting the above inequality into (\ref{doub-3}), one has \begin{align} \label{doub-4} |N'(t)|^{\frac{1}{1-\alpha}} \leq C\left(\|u_t\|_2^2 + \epsilon^{-\sigma} \|u\|_{p+1}^{p+1} \right), \text{\;\;\;for\;\;} t\in [0,T_{max}). \end{align} Since $\epsilon\leq 1$ and $\sigma>0$, then \begin{align*} |N'(t)|^{\frac{1}{1-\alpha}} \leq C \epsilon^{-\sigma} \left(\|u_t\|_2^2 + \|u\|_{p+1}^{p+1} \right), \text{\;\;\;for\;\;} t\in [0,T_{max}), \end{align*} and along with (\ref{Y-2}), it follows that \begin{align} \label{Y-3} Y(t)^{\frac{1}{1-\alpha}} \leq C \epsilon^{-\sigma}\left(G(t)+\|u_t\|_2^2 + \|u\|_{p+1}^{p+1}\right), \text{\;\;\;for\;\;} t\in [0,T_{max}). \end{align} By virtue of (\ref{Y-0}) and (\ref{Y-3}), we obtain the desired inequality (\ref{Y-1}), which implies that $T_{max}$ is necessarily finite, i.e. the system (\ref{1.1}) blows up in finite time. In particular, \begin{align*} T_{max}< \frac{1-\alpha}{\alpha}\epsilon^{-(1+\sigma)} C(k(0),p)Y(0)^{-\frac{\alpha}{1-\alpha}} \leq \frac{1-\alpha}{\alpha}\epsilon^{-(1+\sigma)} C(k(0),p) G(0)^{-\alpha}, \end{align*} where the last inequality is due to (\ref{YG}). Since $T_{max}$ is the maximum life span of the solution in the finite energy space $H^1(\Omega)\times L^2(\Omega)$ and we have shown that $T_{max}<\infty$, then it must be the case that \begin{align} \label{Y-12} \limsup_{t \rightarrow T_{max}^-} \mathscr E(t) = \infty. \end{align} To see this, assume to the contrary that there exists $C_0>0$ such that $\mathscr E(t)\leq C_0$ for all $t\in [0,T_{max})$. Then by Theorem \ref{thm-exist} and Definition \ref{def-weak}, there exists a unique weak solution $u(t)$ on $(-\infty,T_0]$ with the regularity that $u\in C([0,T_0];H^1_0(\Omega))$ and $u_t\in C([0,T_0];L^2(\Omega))$ where $T_0>0$ depending on $C_0$ such that $T_{max}$ is not an integer multiple of $T_0$. Thus, there exists a natural number $n_0$ such that $n_0 T_0< T_{max}< (n_0+1)T_0$, and by iterating the conclusion of Theorem \ref{thm-exist} for $n_0+1$ times, the system (\ref{1.1}) admits a unique weak solution $u(t)$ on $(-\infty,(n_0+1)T_0]$, which contradicts the fact that $T_{max}$ is the maximum lifespan of the weak solution for (\ref{1.1}). By using (\ref{to-ene}) and (\ref{EI-1}), we obtain \begin{align*} \frac{1}{p+1}\|u(t)\|_{p+1}^{p+1}=\mathscr E(t) -E(t) \geq \mathscr E(t)-E(0), \end{align*} and along with (\ref{Y-12}), we obtain that \begin{align} \label{Y-13} \limsup_{t \rightarrow T_{max}^-} \norm{u(t)}_{p+1}=\infty. \end{align} Finally, thanks to the Sobolev inequality $\|u(t)\|_{p+1} \leq \gamma \|\nabla u(t)\|_2$\,\, ($p<5$ from Remark \ref{rem}), we conclude from (\ref{Y-13}) that $$\limsup_{t\rightarrow T_{max}^-} \|\nabla u(t)\|_2 = \infty,$$ completing the proof. \end{proof} \bigskip \section{Proof of Theorem \ref{thm-blow2}} \label{S3} This section is devoted to proving Theorem \ref{thm-blow2}, which is a finite-time blow-up result for (\ref{1.1}) under the scenario that the initial total energy $E(0)$ is nonnegative. In particular, it states that if the initial total energy $0\leq E(0)<M$ where $M>0$ is defined in (\ref{def-M}), and the initial quadratic energy $\mathscr E(0)>y_0$ where $y_0$ is defined in (\ref{con-1}), then the weak solution of (\ref{1.1}) blows up in finite time, provided the source dominates dissipation in the sense that $p> \max \{m,\sqrt{k(0)}\}$. In order to have a better understanding of the assumptions of Theorem \ref{thm-blow2}, we shall provide the following discussions before proving the theorem. Recall that, for given $p\in (1,5]$, we set $\gamma>0$ to be the best constant for the Sobolev inequality $\|u\|_{p+1} \leq \gamma \|\nabla u\|_2$ for all $u\in H^1_0(\Omega)$, i.e, $\gamma^{-1}=\inf \left\{\norm{\nabla u}_2: u\in H^1_0(\Omega), \|u\|_{p+1}=1 \right\}.$ Let us define the function $F: \mathbb R^+ \rightarrow \mathbb R$ by \begin{align} \label{Fy} F(y)=y-\frac{1}{p+1} (2\gamma^2 y)^{\frac{p+1}{2}}. \end{align} We remark that the expression of $F$ originates from the right-hand side of the inequality (\ref{ene-1}) below. Since $\frac{p+1}{2}>1$, it follows that the function $F(y)$ obtains its maximum in $[0, \infty)$ at $y=y_0$, where \begin{align} \label{con-1} y_0:=\frac{1}{2} \gamma^{-\frac{2(p+1)}{p-1}}, \end{align} and the maximum value $d$ of $F(y)$ is \begin{align} \label{con} d:=F(y_0)=\left(\frac{1}{2}-\frac{1}{p+1}\right) \gamma^{-\frac{2(p+1)}{p-1}}. \end{align} \begin{remark} \label{rem1} The constant $d$ defined in (\ref{con}) coincides with the mountain pass level (also the depth of the potential well \cite{Payne}), i.e., we claim \begin{align} \label{mount} d=\inf_{u\in H^1_0(\Omega)\backslash \{0\}} \sup_{ \lambda \geq 0} J(\lambda u), \end{align} where we define $J(u)=\frac{1}{2}\norm{\nabla u}_2^2 - \frac{1}{p+1}\norm{u}_{p+1}^{p+1}$. In order to verify (\ref{mount}), we calculate \begin{align*} \partial_{\lambda} J(\lambda u)= \lambda \norm{\nabla u}_2^2 - \lambda^p \norm{u}_{p+1}^{p+1}, \;\;\;\;p>1. \end{align*} It follows that the maximum value of $J(\lambda u)$ for $\lambda\geq 0$ occurs at $\lambda_0>0$ such that $\norm{\nabla u}_2^2=\lambda_0^{p-1}\norm{u}_{p+1}^{p+1}$, for $u\not=0$. As a result, \begin{align*} \inf_{u\in H^1_0(\Omega)\backslash \{0\}} \sup_{ \lambda \geq 0} J(\lambda u) &=\inf_{u\in H^1_0(\Omega)\backslash \{0\}} J(\lambda_0 u) \notag\\ &=\inf_{u\in H^1_0(\Omega)\backslash \{0\}}\left\{\frac{1}{2}\lambda_0^2\norm{\nabla u}_2^2 - \frac{1}{p+1} \lambda_0^{p+1} \norm{u}_{p+1}^{p+1}\right\} \notag\\ &= \left(\frac{1}{2}-\frac{1}{p+1}\right)\inf_{u\in H^1_0(\Omega)\backslash \{0\}} \left(\frac{\norm{\nabla u}_2}{\|u\|_{p+1}}\right)^{\frac{2(p+1)}{p-1}} \notag\\ &= \left(\frac{1}{2}-\frac{1}{p+1}\right) \gamma^{-\frac{2(p+1)}{p-1}}=d \end{align*} where we have used (\ref{em}) and (\ref{con}). \end{remark} \smallskip Next, we put \begin{align} \label{ystar} y^*:=(\sqrt{k(0)}+1)^{\frac{2}{p-1}} (2\gamma^2)^{-\frac{p+1}{p-1}}. \end{align} By the assumption $k(\infty)=1$ and $k'(s)<0$ for all $s>0$, we know that $k(0)>1$, and thus, due to (\ref{ystar}) and (\ref{con-1}), one has \begin{align} \label{ystar2} y^*>\frac{1}{2}\gamma^{-\frac{2(p+1)}{p-1}}=y_0. \end{align} Also, we define the constant $M$ by \begin{align} \label{defM} M:=& \,F(y^*) \notag\\ =& \,y^*\left(\frac{p-\sqrt{k(0)}}{p+1}\right)=(\sqrt{k(0)}+1)^{\frac{2}{p-1}} (2\gamma^2)^{-\frac{p+1}{p-1}}\left(\frac{p-\sqrt{k(0)}}{p+1}\right)>0, \end{align} provided $p>\sqrt{k(0)}$. Recall that in Theorem \ref{thm-blow2} we assume that the initial total energy $E(0)<M$. We have mentioned that the function $F(y)$ reaches its maximum at $y=y_0$, and monotone decreasing when $y>y_0$, therefore, we see that \begin{align} \label{defM2} 0<M=F(y^*)<F(y_0)=d, \end{align} due to (\ref{ystar2}) and (\ref{con}), i.e., $M$ is less than the depth of the potential well. Clearly, $M\rightarrow d^-$ as $k(0)\rightarrow 1^+$ by (\ref{defM}) and (\ref{con}), which can be interpreted as that, if the linear memory term is formally diminished in (\ref{1.1}), then $M$ (which is the upper bound of initial energy) gets close to the mountain pass level $d$. Now we are ready to prove Theorem \ref{thm-blow2}. \begin{proof} The proof draws from some ideas in \cite{G-T,Messaoudi2,Viti2}. Let us define the life span $T_{max}$ of the solution $u$ to be the supremum of all $T>0$ such that $u$ is a solution of (\ref{1.1}) on $(-\infty,T]$. We aim to show that $T_{max}$ is necessarily finite, that is, $u$ blows up in finite time. By (\ref{to-ene}) and (\ref{em}) we have \begin{align} \label{ene} E(t) = \mathscr E(t) - \frac{1}{p+1} \|u(t)\|_{p+1}^{p+1} \geq \mathscr E(t) - \frac{1}{p+1} \gamma^{p+1} \|\nabla u(t)\|_2^{p+1}, \end{align} for $t\in [0,T_{max})$. Since $\mathscr E(t)=\frac{1}{2}\left(\norm{u_t(t)}_2^2+\norm{\nabla u(t)}_2^2+\int_0^{\infty}\norm{\nabla w(t,s)}_2^2 \mu(s)ds \right)$, one has \begin{align*} \|\nabla u(t)\|_2 \leq \left(2\mathscr E(t)\right)^{\frac{1}{2}}, \;\;\;\;\;\text{for}\;\;t\in [0,T_{max}), \end{align*} and thus the inequality (\ref{ene}) implies \begin{align} \label{ene-1} E(t) \geq \mathscr E(t) - \frac{1}{p+1} [2\gamma^2\mathscr E(t)]^{\frac{p+1}{2}}, \;\;\;\;\; \text{for}\;\; t\in [0,T_{max}). \end{align} Notice that, by using the function $F(y)$ defined in (\ref{Fy}), then inequality (\ref{ene-1}) takes the concise form \begin{align} \label{ene-2} E(t)\geq F(\mathscr E(t)), \;\;\;\;\; \text{for}\;\; t\in [0,T_{max}). \end{align} Recall that the continuous function $F(y)$ attains its maximum value at $y=y_0$, so it is monotone decreasing when $y>y_0$. Since we assume the initial energy $0\leq E(0)<M=F(y^*)$, there exists a unique number $y_1$ such that \begin{align} \label{ystar3'} F(y_1)=E(0), \text{\;\;\;with\;\;\;} y_1>y^*>y_0>0. \end{align} Therefore, by using (\ref{EI-1}) and (\ref{ene-2}), we have \begin{align} \label{ystar3} M>F(y_1)=E(0) \geq E(t) \geq F(\mathscr E(t)), \;\;\;\;\; \text{for}\;\; t\in [0,T_{max}). \end{align} Since $F(y)$ is continuous and decreasing when $y>y_0$ and $\mathscr E(t)$ is also continuous, then by using the assumption that $\mathscr E(0) > y_0$, it follows from (\ref{ystar3}) that \begin{align} \label{ene-3} \mathscr E(t) \geq y_1, \;\;\;\;\; \text{for}\;\; t\in [0,T_{max}). \end{align} Consequently, by (\ref{ystar3}), (\ref{ene-3}), (\ref{defM}) and (\ref{Fy}), one has \begin{align*} \frac{1}{p+1} \|u(t)\|_{p+1}^{p+1} =\mathscr E(t) - E(t) \geq y_1-F(y_1) = \frac{1}{p+1} (2\gamma^2y_1)^{\frac{p+1}{2}}, \end{align*} which can be reduced to \begin{align} \label{upp} \|u(t)\|_{p+1}^{p+1} \geq (2\gamma^2 y_1)^{\frac{p+1}{2}}, \text{\;\;\;\;\;for\;\;} t\in [0,T_{max}). \end{align} Now we set $\mathcal G(t) = M - E(t)>0$ and $N(t)=\frac{1}{2}\|u(t)\|_2^2$ for $t\in [0,T_{max})$. We aim to show that \begin{align} \label{def-Y'} \mathcal Y(t)=\mathcal G(t)^{1-\alpha} + \epsilon N'(t) \end{align} blows up in finite time, for some $\alpha\in (0,1)$ and $\epsilon>0$, which will be selected later. By differentiating both sides of (\ref{def-Y'}) and using (\ref{doub}), one has \begin{align} \label{tilY} \mathcal Y'(t) = (1-\alpha) \mathcal G(t)^{-\alpha} \mathcal G'(t) + \epsilon \Big(&\|u_t\|_2^2 - \|\nabla u\|_2^2 + \int_0^{\infty} k'(s) \int_{\Omega} \nabla u(t) \cdot \nabla w(t,s) dx ds \notag\\ &- \int_{\Omega} |u_t|^{m-1} u_t u dx + \|u\|_{p+1}^{p+1}\Big). \end{align} By using (\ref{ene-3}) and (\ref{defM}) we obtain \begin{align*} \mathcal G(t) = M - E(t) &= M - \mathscr E(t) + \frac{1}{p+1} \|u(t)\|_{p+1}^{p+1} \notag\\ &\leq y^*\left(\frac{p-\sqrt{k(0)}}{p+1}\right) - y_1 + \frac{1}{p+1} \|u(t)\|_{p+1}^{p+1} \notag\\ &=(y^*-y_1)-y^*\left(\frac{\sqrt{k(0)}+1}{p+1}\right) + \frac{1}{p+1} \|u(t)\|_{p+1}^{p+1} \notag\\ &<-y^*\left(\frac{\sqrt{k(0)}+1}{p+1}\right) + \frac{1}{p+1} \|u(t)\|_{p+1}^{p+1}, \end{align*} since $y_1>y^*$. The last inequality can be expressed as \begin{align} \label{upp-1} \|u(t)\|_{p+1}^{p+1}>(p+1)\mathcal G(t) + y^*(\sqrt{k(0)}+1). \end{align} Also, since $\mathcal G(t)=M-E(t)$ then by the energy identity (\ref{EI-1}), we have \begin{align} \label{tilG} \mathcal G'(t) = - E'(t)= \|u_t\|_{m+1}^{m+1}-\frac{1}{2}\int_0^{\infty} \|\nabla w(t,s)\|_2^2 \mu'(s) ds \geq \|u_t\|_{m+1}^{m+1}, \end{align} where we have used the assumption $\mu'(s)\leq 0$. Note that (\ref{tilG}) shows that $\mathcal G(t)$ is nondecreasing for $t\in [0,T_{max})$. By employing (\ref{upp-1}) as well as (\ref{tilG}), we can carry out the same estimate used in (\ref{ut}), (\ref{ut-0})-(\ref{ut-1}) to obtain \begin{align} \label{ut-2} \left|\int_{\Omega} u |u_t|^{m-1} u_t dx \right| \leq \lambda \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}} \|u\|_{p+1}^{p+1} + C_{\lambda} \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha} \mathcal G(t)^{-\alpha} \mathcal G'(t), \end{align} where as before, we choose $0<\alpha<\frac{1}{m+1}-\frac{1}{p+1}$, and $\lambda$ is a positive constant which will be selected later. By applying the estimates (\ref{ut-2}) and (\ref{ks}) to the identity (\ref{tilY}), we have \begin{align} \label{Y-4} \mathcal Y'(t) \geq & \left[1-\alpha- \epsilon C_{\lambda} \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha}\right] \mathcal G(t)^{-\alpha} \mathcal G'(t) \notag\\ &+ \epsilon\Big[ \|u_t\|_2^2 - \left(\frac{k(0)-1}{4\delta}+1\right) \|\nabla u\|_2^2 - \delta \int_0^{\infty} \|\nabla w(t,s)\|^2_2 \mu(s) ds \notag\\ &\;\;\;\;\;\;\;\;\;+(1-\lambda \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}} )\|u\|_{p+1}^{p+1}\Big], \text{\;\;\;for\;\;} t\in [0,T_{max}). \end{align} By (\ref{to-ene}) we see that \begin{align*} \int_0^{\infty} \norm{\nabla w(t,s)}_2^2 \mu(s) ds = 2E(t) - \|u_t\|_2^2 - \|\nabla u\|_2^2 + \frac{2}{p+1}\|u\|_{p+1}^{p+1}, \end{align*} which can be substituted into (\ref{Y-4}) to obtain, \begin{align} \label{Y-5} \mathcal Y'(t) \geq &\left[1-\alpha- \epsilon C_{\lambda} \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha}\right] \mathcal G(t)^{-\alpha} \mathcal G'(t) + \epsilon\Bigg[ \Big(\delta-\frac{k(0)-1}{4\delta}-1\Big) \|\nabla u\|_2^2 \notag\\ & + (1+\delta)\|u_t\|_2^2 +\Big(1-\frac{2\delta}{p+1}-\lambda \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}} \Big)\|u\|_{p+1}^{p+1} - 2\delta E(t) \Bigg], \end{align} for $t\in [0,T_{max})$. Now we choose \begin{align*} \delta=\frac{\sqrt{k(0)}+1}{2}, \end{align*} so that $\delta-\frac{k(0)-1}{4\delta}-1=0$, and thus the inequality (\ref{Y-5}) takes the form \begin{align} \label{Y-6} \mathcal Y'(t) \geq &\left[1-\alpha- \epsilon C_{\lambda} \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha}\right] \mathcal G(t)^{-\alpha} \mathcal G'(t) + \epsilon\Bigg[ \frac{\sqrt{k(0)}+3}{2}\|u_t\|_2^2 \notag\\ & +\left(\frac{p-\sqrt{k(0)}}{p+1}-\lambda \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}} \right)\|u\|_{p+1}^{p+1} - \left(\sqrt{k(0)}+1\right) E(t) \Bigg], \end{align} for $t\in [0,T_{max})$, where we require $p>\sqrt{k(0)}$. Next, we aim to show that $$\frac{p-\sqrt{k(0)}}{p+1} \|u\|_{p+1}^{p+1} - \left(\sqrt{k(0)}+1\right) E(t) > c\|u\|_{p+1}^{p+1}, \text{\;\;\;for all\;\;}t\in [0,T_{max}),$$ for some $c>0$. For the sake of convenience, we put \begin{align} \label{C0} C_0=(2\gamma^2 y_1)^{\frac{p+1}{2}}. \end{align} Then, it follows from(\ref{EI-1}), (\ref{ystar3'}) and (\ref{Fy}) that, \begin{align} \label{Fy-2} E(t)\leq E(0)=F(y_1)=y_1-\frac{1}{p+1} (2\gamma^2 y_1)^{\frac{p+1}{2}}=y_1-\frac{1}{p+1}C_0, \end{align} for $t\in [0,T_{max})$. Now we split the term $\frac{p-\sqrt{k(0)}}{p+1}\|u\|_{p+1}^{p+1}$ into two positive parts: \begin{align} \label{split} \frac{p-\sqrt{k(0)}}{p+1}\|u\|_{p+1}^{p+1} =&\left(\frac{p-\sqrt{k(0)}}{p+1}-\frac{C_0-(\sqrt{k(0)}+1)y_1}{2C_0}\right)\|u\|_{p+1}^{p+1} \notag\\ &+\frac{C_0-(\sqrt{k(0)}+1)y_1}{2C_0} \|u\|_{p+1}^{p+1}. \end{align} The fact that the two terms on the right-hand side of (\ref{split}) are both positive comes from the following straightforward calculations. Indeed, by (\ref{C0}) and the fact that $y_1>y_0=\frac{1}{2} \gamma^{-\frac{2(p+1)}{p-1}}$ as well as the assumption $p>\sqrt{k(0)}>1$, we compute \begin{align} \label{posi} &\frac{p-\sqrt{k(0)}}{p+1}-\frac{C_0-(\sqrt{k(0)}+1)y_1}{2C_0} \notag\\ &=\frac{C_0(p-2\sqrt{k(0)}-1)+(\sqrt{k(0)}+1)y_1(p+1)}{2C_0(p+1)} \notag\\ &>\frac{y_1\left[(2\gamma^2)^{\frac{p+1}{2}}y_0^{\frac{p-1}{2}}(p-2\sqrt{k(0)}-1)+(\sqrt{k(0)}+1)(p+1)\right]}{2C_0(p+1)} \notag\\ &=\frac{y_1\left[3(p-\sqrt{k(0)})+p\sqrt{k(0)}-1\right]}{2C_0(p+1)}>0. \end{align} Also, thanks to (\ref{C0}) and the fact that $y_1>y^*=(\sqrt{k(0)}+1)^{\frac{2}{p-1}} (2\gamma^2)^{-\frac{p+1}{p-1}}$, we see that \begin{align} \label{bdefc} C_0-(\sqrt{k(0)}+1)y_1>\left[ (2\gamma^2)^{\frac{p+1}{2}} (y^*)^{\frac{p-1}{2}}- (\sqrt{k(0)}+1) \right]y_1=0. \end{align} Thus, we can define the positive constant $c$ as \begin{align} \label{def-c} c:=\frac{C_0-(\sqrt{k(0)}+1)y_1}{2C_0}>0. \end{align} Applying (\ref{posi}) and (\ref{def-c}) along with the fact that $\|u(t)\|_{p+1}^{p+1} \geq C_0$ for $t\in [0,T_{max})$ from (\ref{upp}), we obtain from (\ref{split}) that \begin{align} \label{psk} \frac{p-\sqrt{k(0)}}{p+1}\|u\|_{p+1}^{p+1}\geq\left(\frac{p-\sqrt{k(0)}}{p+1}-\frac{C_0-(\sqrt{k(0)}+1)y_1}{2C_0}\right)C_0+c \|u\|_{p+1}^{p+1}. \end{align} By using (\ref{Fy-2}) and (\ref{psk}), we calculate \begin{align} \label{pk1} &\frac{p-\sqrt{k(0)}}{p+1}\|u\|_{p+1}^{p+1} - (\sqrt{k(0)}+1) E(t) \notag\\ &\geq \left(\frac{p-\sqrt{k(0)}}{p+1}-\frac{C_0-(\sqrt{k(0)}+1)y_1}{2C_0}\right)C_0 +c\|u\|_{p+1}^{p+1} \notag\\ & \hspace{1 in}- (\sqrt{k(0)}+1) \left(y_1 - \frac{1}{p+1} C_0\right) \notag\\ &=\frac{C_0-(\sqrt{k(0)}+1)y_1}{2}+ c\|u\|_{p+1}^{p+1} \notag\\ &> c\|u\|_{p+1}^{p+1}, \end{align} where the last inequality follows from (\ref{bdefc}). Applying (\ref{pk1}) to (\ref{Y-6}) yields \begin{align} \label{Y-7} \mathcal Y'(t) > &\left[1-\alpha- \epsilon C_{\lambda} \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha}\right] \mathcal G(t)^{-\alpha} \mathcal G'(t)\notag\\ &+\epsilon\left[ \frac{\sqrt{k(0)}+3}{2}\|u_t\|_2^2 +\left(c-\lambda \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}} \right)\|u\|_{p+1}^{p+1} \right]. \end{align} Now, we choose $\lambda>0$ such that $\lambda \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}}=\frac{c}{2}$ and select $\epsilon>0$ sufficiently small so that $\epsilon C_{\lambda} \mathcal G(0)^{\frac{1}{p+1}-\frac{1}{m+1}+\alpha}\leq 1-\alpha$, we obtain from (\ref{Y-7}) that \begin{align} \label{Y-8} \mathcal Y'(t) > \frac{\epsilon}{2}\left[ \left(\sqrt{k(0)}+3\right)\|u_t(t)\|_2^2 + c \|u(t)\|_{p+1}^{p+1} \right], \text{\;\;\;\;\;for\;\;} t\in [0,T_{max}). \end{align} Combining the estimates (\ref{Y-8}) and (\ref{upp-1}) yields that \begin{align} \label{Y-9} \mathcal Y'(t) > \frac{\epsilon}{2}\left[ \left(\sqrt{k(0)}+3\right)\|u_t(t)\|_2^2 + \frac{c}{2} \|u(t)\|_{p+1}^{p+1} + \frac{c}{2}(p+1) \mathcal G(t) \right]>0, \end{align} for $t\in [0,T_{max})$, where the last inequality is due to the fact $\mathcal G(t)=M-E(t)>0$. Notice that $\mathcal Y(0)=\mathcal G(0)^{1-\alpha}+\epsilon N'(0)$, and if $N'(0)<0$, then we shall further impose the restriction $0<\epsilon\leq -\frac{\mathcal G(0)^{1-\alpha}}{2N'(0)}$ so that $\mathcal Y(0)\geq \frac{1}{2} \mathcal G(0)^{1-\alpha}$. Since $\mathcal Y(t)$ is increasing on $[0,T_{max})$ by virtue of (\ref{Y-9}), it follows that \begin{align} \label{Y-11} \mathcal Y(t)\geq \mathcal Y(0)\geq \frac{1}{2} \mathcal G(0)^{1-\alpha}>0, \text{\;\;\;\;\;for\;\;} t\in [0,T_{max}). \end{align} Also, by following the estimates (\ref{Y-2})-(\ref{Y-3}) in the proof of Theorem \ref{thm-blow}, and by imposing the additional restrictions on $\alpha$ and $\epsilon$, namely, $0<\alpha<\frac{p-1}{2(p+1)}$ and $0<\epsilon \leq \min\{\mathcal G(0),1\}$, we obtain \begin{align} \label{Y-10} \mathcal Y(t)^{\frac{1}{1-\alpha}} \leq C \epsilon^{-\sigma} \left(\mathcal G(t) + \norm{u_t(t)}_2^2 +\norm{u(t)}_{p+1}^{p+1} \right), \text{\;\;\;\;\;for\;\;} t\in [0,T_{max}), \end{align} where $\sigma=1-\frac{2}{(1-2\alpha)(p+1)}>0$. By taking account of inequalities (\ref{Y-9}) and (\ref{Y-10}), we see that \begin{align*} \mathcal Y'(t) \geq \epsilon^{1+\sigma} C(k(0),p,E(0)) \mathcal Y(t)^{\frac{1}{1-\alpha}}, \text{\;\;\;\;for\;\;} t\in [0,T_{max}), \end{align*} and since $\frac{1}{1-\alpha}>1$, we conclude that $T_{max}$ is necessarily finite. More precisely, \begin{align*} T_{max}< \frac{1-\alpha}{\alpha}\epsilon^{-(1+\sigma)}C(k(0),p, E(0)) \mathcal Y(0)^{-\frac{\alpha}{1-\alpha}} \leq \frac{1-\alpha}{\alpha}\epsilon^{-(1+\sigma)}C(k(0),p, E(0)) \mathcal G(0)^{-\alpha}, \end{align*} where the last inequality comes from (\ref{Y-11}). Finally, by adopting the same argument as in the proof of Theorem \ref{thm-blow}, we conclude that $\limsup_{t\rightarrow T_{max}^-}\norm{\nabla u(t)}_2=\infty$ and $\limsup_{t\rightarrow T_{max}^-}\norm{u(t)}_{p+1}=\infty$. \end{proof} \vspace{0.05 in} We remark that, if the condition $\mathscr E(0) > y_0$ in Theorem \ref{thm-blow2} is replaced with a different assumption $\norm{u_0(0)}_{p+1}^{p+1} > \norm{\nabla u_0(0)}_2^2$, then the solution still blows up in finite time. Specifically, we have the following corollary of Theorem \ref{thm-blow2}. Please refer to \cite{ACCRT,BRT,GR2} for comparable results concerning blow-up of wave equations with nonlinear sources and damping (but without memory) by using a different approach which involves a contradiction argument. \begin{corollary} \label{cor1} In addition to the validity of the Assumption \ref{ass}, we assume that $p>\max\{m,\sqrt{k(0)}\}$. Also, we suppose that $\norm{u_0(0)}_{p+1}^{p+1} > \norm{\nabla u_0(0)}_2^2$, and \begin{align*} 0\leq E(0)<M:=(\sqrt{k(0)}+1)^{\frac{2}{p-1}} (2\gamma^2)^{-\frac{p+1}{p-1}}\left(\frac{p-\sqrt{k(0)}}{p+1}\right). \end{align*} Then the weak solution $u$ of the system (\ref{1.1}) blows up in finite time. More precisely, $\limsup_{t\rightarrow T_{\max}^-} \|\nabla u(t)\|_2=\infty$, for some $T_{\max}\in (0,\infty)$. \end{corollary} \begin{proof} It is sufficient to show that the condition $\norm{u_0(0)}_{p+1}^{p+1} > \norm{\nabla u_0(0)}_2^2$ implies that $\mathscr E(0) > y_0$. To this end, let us recall that $J(u)=\frac{1}{2} \norm{\nabla u}_2^2 - \frac{1}{p+1} \norm{u}_{p+1}^{p+1}$, then the maximum value of $J(\lambda u_0(0))$ for $\lambda \geq 0$ occurs at $\lambda_0$ such that $\norm{\nabla u_0(0)}_2^2 = \lambda_0^{p-1} \norm{u_0(0)}_{p+1}^{p+1}$. Also, since $\norm{u_0(0)}_{p+1}^{p+1} > \norm{\nabla u_0(0)}_2^2$, it follows that $\lambda_0<1$. Consequently, by (\ref{mount}), we obtain \begin{align*} d\leq \sup_{\lambda\geq 0} J(\lambda u_0(0))= J(\lambda_0 u_0(0)) &=\frac{1}{2} \lambda_0^2 \norm{\nabla u_0(0)}_2^2 - \frac{1}{p+1} \lambda_0^{p+1} \norm{u_0(0)}_{p+1}^{p+1} \notag\\ &=\lambda_0^2 \left(\frac{1}{2}-\frac{1}{p+1}\right) \norm{\nabla u_0(0)}_2^2 \notag\\ &< \left(\frac{1}{2}-\frac{1}{p+1}\right) \norm{\nabla u_0(0)}_2^2. \end{align*} This shows that \begin{align*} \norm{\nabla u_0(0)}_2^2 > \frac{2(p+1)}{p-1}d=\gamma^{-\frac{2(p+1)}{p-1}}=2y_0, \end{align*} where we have used (\ref{con-1}) and (\ref{con}). Thus, $\mathscr E(0)>y_0$. \end{proof} \begin{remark} Since it has been shown that the condition $\norm{u_0(0)}_{p+1}^{p+1} > \norm{\nabla u_0(0)}_2^2$ implies that $\mathscr E(0) > y_0$, one realizes that the assumptions of Theorem \ref{thm-blow2} are weaker than the assumptions of Corollary \ref{cor1}, which often appear in the literature (see for instance \cite{ACCRT,BRT,GR1}). Also, the assumption that $\mathscr E(0) > y_0$ contains all of the past history from $-\infty$ to $0$, which is a more appropriate assumption for a system with delay, compared to the condition that $\norm{u_0(0)}_{p+1}^{p+1} > \norm{\nabla u_0(0)}_2^2$ which involves partial information of the initial datum only at $t=0$. On the other hand, it is worth mentioning that, if the initial datum satisfies that $0\leq E(0)<M$ and $\norm{u_0(0)}_{p+1}^{p+1} > \norm{\nabla u_0(0)}_2^2$, then $\norm{u(t)}_{p+1}^{p+1} > \norm{\nabla u(t)}_2^2$ for all time $t$ before the formation of singularity. Indeed, if there exists $t_1>0$ such that $\norm{u(t_1)}_{p+1}^{p+1} = \norm{\nabla u(t_1)}_2^2$, then \begin{align*} J(u(t_1))=\frac{1}{2} \norm{\nabla u(t_1)}_2^2 - \frac{1}{p+1} \norm{u(t_1)}_{p+1}^{p+1}=\left(\frac{1}{2}-\frac{1}{p+1}\right)\norm{\nabla u(t_1)}_2^2. \end{align*} It follows that \begin{align*} \norm{\nabla u(t_1)}_2^2 \leq \frac{2(p+1)}{p-1}J(u(t_1))\leq \frac{2(p+1)}{p-1}E(t_1)\leq \frac{2(p+1)}{p-1}E(0). \end{align*} Hence, by Sobolev inequality $\norm{u}_{p+1} \leq \gamma \norm{\nabla u}_2$, we obtain \begin{align} \label{contr} \norm{u(t_1)}_{p+1}^{p+1} &\leq \gamma^{p+1} \left(\norm{\nabla u(t_1)}_2^2\right)^{\frac{p-1}{2}} \norm{\nabla u(t_1)}_2^2 \notag\\ &\leq \gamma^{p+1} \left(\frac{2(p+1)}{p-1}E(0)\right)^{\frac{p-1}{2}} \norm{\nabla u(t_1)}_2^2 \notag\\ &<\norm{\nabla u(t_1)}_2^2 \end{align} where the last inequality follows from $E(0)<M<d=\left(\frac{1}{2}-\frac{1}{p+1}\right)\gamma^{-\frac{2(p+1)}{p-1}}$. However, (\ref{contr}) contradicts the assumption that $\norm{u(t_1)}_{p+1}^{p+1} = \norm{\nabla u(t_1)}_2^2$, and so, it must be the case that $\norm{u(t)}_{p+1}^{p+1} > \norm{\nabla u(t)}_2^2$, for all $t\in [0,T_{max}) $. \end{remark} \bibliographystyle{amsplain}
\section{\label{Sec:Introduction}Introduction} The extraordinary success of ultracold quantum gases largely relies on their simple description. Notably the actual inter-particle interactions, which might be complex or even unknown at short range, are very well captured in terms of simple mean-field (MF) potentials, proportional to the local particle density, $n$, and accounting for the average mutual effect of all neighboring particles\,\cite{Pitaevskii:2003}. In particular, the MF contact interaction is solely parametrized by the $s$-wave scattering length, $\ensuremath{a_{\rm s}}$, which in turn can be widely tuned by means of Feshbach resonances (FRs)\,\cite{Chin:2010}. The MF treatment of a Bose gas leads to the famous Gross-Pitaevskii equation (GPE), which is very powerful in describing the underlying ground-state physics of a Bose-Einstein condensate (BEC), whereas the Bogoliubov-de Gennes (BdG) spectrum of collective modes thoughtfully accounts for excitations in the BEC \,\cite{Pitaevskii:2003}. Beyond the great achievements of dilute gases as testbed for MF theories, the quest for beyond-MF effects has triggered great interest in the ultracold community. The general question of how the many-body ground-state of bosons is modified by quantum fluctuations~(QFs) of elementary excitations was first addressed by Lee, Huang, and Yang~(LHY) in the 1950's~\cite{LHY:1957}. The so-called LHY term, which accounts for the first-order correction to the condensate energy, scales for a contact-interacting gas as $\ensuremath{a_{\rm s}} n \sqrt{n \ensuremath{a_{\rm s}}^3}$. While in the weakly-interacting regime the effect of QFs is negligible and difficult to isolate from MF contributions, it can be sufficiently amplified by increasing $\ensuremath{a_{\rm s}}$ via a FR. Based on this concept, recent beautiful experiments with alkali have observed clear shifts of the BdG spectrum and equation of state caused by the LHY term in strongly-interacting Fermi\,\cite{Altmeyer:2007,Shin:2008,Navon:2010} and Bose gases\,\cite{Papp:2008,Navon:2011}. While in these measurements the role of QFs remains ancillary, it has been recently pointed out\,\cite{Petrov:2015} that in systems with various tunable interactions of different origin, the overall MF energy can be made small and the LHY term becomes dominant. In this extreme regime, a novel phase of matter is expected to appear, namely a liquid-like droplet state. For purely contact-interacting gases, this situation is hardly realizable since it would require, for instance, Bose-Bose mixtures with coincidental overlapping FRs\,\cite{Petrov:2015}. In contrast, dipole-dipole interaction (DDI) offers genuinely this possibility in a single-component atomic gas by competing with the isotropic MF contact interaction\,\cite{Lahaye:2009,Baranov:2012}. In the MF picture, a paradigm of the competition between DDI and contact interaction is embodied by the ability of quenching a dipolar BEC to collapse by varying $\varepsilon_{\rm dd} =\ensuremath{a_{\rm dd}}/\ensuremath{a_{\rm s}}$, where $\ensuremath{a_{\rm dd}}=\mu_0\mu^2m/12\pi\hbar^2$ is a characteristic length set by the DDI, with $m$ the mass and $\mu$ the magnetic moment of the atoms\,\cite{Koch:2008,Lahaye:2008}. Here $\hbar$ stands for the reduced Planck constant and $\mu_0$ for the vacuum permeability. In general, because of the special geometrical tunability of DDI with the external trapping potential and dipole orientation, the stability and phase diagram remarkably depend on $\lambda=\nu_{\mathbin{\!/\mkern-5mu/\!}}/\nu_{\perp}$, where $\nu_{\mathbin{\!/\mkern-5mu/\!}}$ ($\nu_{\perp}$) is the trapping frequency along (perpendicular to) the dipole orientation\,\cite{Baranov:2012,Koch:2008,Metz:2009}. In parallel, recent breakthrough experiments with an oblate dysprosium (Dy) dipolar BEC ($\lambda>1$) have shown that when quenching up $\varepsilon_{\rm dd}$, the system, instead of collapsing, forms a metastable state of several small droplets\,\cite{Kadau, Igor}. This observation has triggered an intense debate on the nature of such a state and its underlying stabilization mechanism\,\cite{Xi:2016,Bisset:2015,Blakie:2016,Waechtler:2016,Bisset:2016,Waechtler:2016b,Baillie:2016}. These works have eventually converged in confirming a scenario based on QFs\,\cite{Igor,Waechtler:2016,Bisset:2016} and meanwhile raise fundamental questions on the parameter space of the effect, the single-to-multi droplet phase diagram, and the lifetime of the state. Aside from the Dy specificity, will other dipolar systems, lying in different parameter ranges - \emph{e.g.} different dipolar strength ($\ensuremath{a_{\rm dd}}$), geometry ($\lambda$) or atom number $N$ - form a droplet state? When does QF bear stabilization and when does this picture break down? The fundamental questions of the actual ground-state and of the resulting phase diagram as a function of $\lambda$, $\varepsilon_{\rm dd}$ and $N$, remain widely unanswered beyond the quench dynamics and metastablity. The present work addresses these questions using a BEC of erbium (Er) atoms \footnote{Note that Er offers a system of intermediate dipolar strength ($\ensuremath{a_{\rm dd}}=65.5a_0$) between Cr ($\ensuremath{a_{\rm dd}}=15a_0$) and Dy ($\ensuremath{a_{\rm dd}}=132a_0$).}, confined in a cigar-shaped harmonic trap with large elongation along the dipole orientation ($\lambda \ll 1$). In this condition, the DDI is strongly attractive, imposing a stringent condition to the system stability: already at $\varepsilon_{\rm dd}\approx 1$, a dipolar BEC of about $10^5$ atoms should readily collapse within the MF description\,\cite{Lahaye:2009,Koch:2008}. We explore the behavior of the dipolar gas by studying both the ground-state evolution and the dynamics when increasing $\varepsilon_{\rm dd}$. Our work, based on complementary observations on density distributions, elementary excitations of the BdG spectrum, expansion dynamics, and lifetime of the dipolar quantum gas, show the existence of a crossover from a dilute BEC to a dense single droplet solution and quantitatively identify the driven role of QFs in the system dynamics. \section{\label{Sec:ExpSetup}Experimental Procedures} \begin{figure} \includegraphics{Fig1_Conversion_v8.pdf} \caption{\label{fig:setup} (color online) {\bf Scattering length in $^{166}$Er}: $\ensuremath{a_{\rm s}}$ as a function of $B$. The data points (circles) are extracted from spectroscopic measurements in a lattice-confined gas and the solid line is a fit to the data with its statistical uncertainty (grey shaded region\,\cite{suppmat}). (Upper inset) Zoom in of $\varepsilon_{\rm dd}$ as a function B. The grey dashed line marks $\varepsilon_{\rm dd}=1$; see also the other figures. The lower inset illustrates the geometry of our experimental setup, the relevant axes ($x$,$y$,$z$), the crossed-optical-dipole-trap beams (shaded regions), the magnetic field orientation (green arrow), and the $\mathbin{\!/\mkern-5mu/\!}$- and $\perp$-imaging view axes (blue arrows). } \end{figure} The atomic properties of Er offer a privileged platform to explore a variety of interaction scenarios. Beside its strongly magnetic character and its many FRs\,\cite{Frisch:2014}, Er has several stable isotopes. This feature adds an important flexibility in term of the choice of the background $\ensuremath{a_{\rm s}}$\,\cite{us:inPrepapration}. In our early work on Er BECs, we employed the $^{168}{\rm Er}$ isotope, which has a background $\ensuremath{a_{\rm s}}$ of about twice as large as the dipolar length, $\ensuremath{a_{\rm dd}}=65\,a_0$\,\cite{Aikawa:2012,Baier:2015}. In the work reported here, we produce and use a BEC of \ensuremath{^{166}{\rm Er}} \ in the lowest internal state. This isotope provides us with two major advantages. First, its background $\ensuremath{a_{\rm s}}$ is comparable to its dipolar length, $\ensuremath{a_{\rm dd}}= 65.5\,a_0$, realizing $\varepsilon_{\rm dd}=\ensuremath{a_{\rm dd}}/\ensuremath{a_{\rm s}}\approx 1$ without the need of Feshbach tuning. Second, \ensuremath{^{166}{\rm Er}} \ features a very convenient FR at ultralow magnetic-field values, $B$. To precisely map $\ensuremath{a_{\rm s}}$ as a function of $B$, we use a spectroscopic technique based on the measurement of the energy gap of the Mott insulator state in a deep three-dimensional optical lattice\,\cite{Mark:2011, Baier:2015}. A detailed description is given in the Supplementary Material\,\cite{suppmat}. Between $0$ and $3\,$G we observe a smooth variation of $\ensuremath{a_{\rm s}}$, which results from two low lying FRs whose centers are fitted to $0.05(5)$\,G and $3.0(1)$\,G respectively; see Fig.\,\ref{fig:setup}. This feature gives an easy access into the $\varepsilon_{\rm dd}>1$ regime, allowing variation of $\varepsilon_{\rm dd}$ from $0.70(2)$ to $1.58(18)$ by changing $B$ from 2.5\,G to 0.15\,G; see Fig.\,\ref{fig:setup} upper inset. By fitting our data\,\cite{Chin:2010}, we extract $\ensuremath{a_{\rm s}}(B)$ valid for $B$ in the $[0.15,2.5]-$G range, which we will use along this manuscript\,\cite{suppmat}. We achieve Bose-Einstein condensation of \ensuremath{^{166}{\rm Er}} \ using an all-optical scheme very similar to Ref.\,\cite{Aikawa:2012} with cooling parameters optimized for \ensuremath{^{166}{\rm Er}}\,\cite{suppmat}. In brief, we drive forced evaporative cooling at a magnetic field $B=1.9\,{\rm G}$, corresponding to $\ensuremath{a_{\rm s}}=81(2)a_0$ ($\varepsilon_{\rm dd}=0.81(2)$). In this phase $B$ is oriented along the vertical $z$ axis. At the end of the evaporation, we obtain a BEC of $N=1.2 \times 10^5$ atoms with a condensed fraction above $80\%$. To reach the $\lambda\ll 1$ regime, we slowly modify, in the last step of the evaporation, the confining potential to the final cigar shape, with typical frequencies $(\nu_x,\nu_y,\nu_z)=(156(1),17.2(4),198(2))\,$Hz. Simultaneously, we decrease $B$ to 0.8\,G ($\ensuremath{a_{\rm s}}=67(2)\,a_0$) and then change the magnetic-field orientation to the weak trapping axis ($y$) while keeping its amplitude constant\,\cite{suppmat}. Finally, we ramp $B$ to the desired target value (and equivalently $\ensuremath{a_{\rm s}}$) in $t_{\rm r}$\,\cite{suppmat}, hold for a time $t_{\rm h}$ and perform absorption imaging of our gas after a time-of-flight (ToF) of $t_{\rm ToF}$. Two imaging setups are used in order to measure either the density distribution integrated along the dipoles ($\mathbin{\!/\mkern-5mu/\!}$-imaging) or perpendicular to them ($\perp$-imaging)\,\cite{suppmat}. Figure\,\ref{fig:setup} (lower inset) illustrates the final geometry of our system with $\nu_{\mathbin{\!/\mkern-5mu/\!}}=\nu_y$, $\nu_{\perp}=\sqrt{(\nu_x^2+\nu_z^2)/2}$ giving $\lambda=0.097(3)$, and defines the relevant axes. \begin{figure} \includegraphics{Fig2_v8.pdf} \caption{\label{fig:density_profile} (color online) {\bf Density profiles in the BEC-to-droplet crossover }: (a-c) 2D column density distributions probed with $\mathbin{\!/\mkern-5mu/\!}$-imaging and (d) corresponding central cuts along the $x=0$ line (dots) after a ramp of $t_{\rm r}=10\,$ms and holding of $t_{\rm h}=6\,$ms to different $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$: $93\,a_0$ ((a) and circles in (d)), $57\,a_0$ ((b) and diamonds in (d)), $50\,a_0$ ((c) and triangles in (d)). Each distribution is obtained by averaging 4 absorption images taken after $t_{\rm ToF}=27\,$ms. In (d), the lines show the central cuts of the 2D bimodal fit results. The solid (resp. dashed-dotted) lines show the fit to a two-Gaussian (resp. MF TF plus Gaussian) distribution and the dashed (resp. dotted) lines show the broad thermal Gaussian of the corresponding fits. For visibility, not all MF TF plus Gaussian bimodal fits are shown.} \end{figure} Here, we explore the properties of the system when the DDI is made attractive enough to overcome the repulsive MF contact interaction ($\lambda\ll 1$, $\varepsilon_{\rm dd} > 1$), after adiabatically changing ($t_{\rm r}\geq 45\,$ms) or quenching ($t_{\rm r}= 10\,$ms) $\ensuremath{a_{\rm s}}$ to its target value\,\cite{suppmat}. For $t_{\rm r} \geq 45\,$ms, the system evolves following its ground state and gives access to the slow dynamics, whereas for the $t_{\rm r}= 10\,$ms case we can probe the fast dynamics and study the relaxation towards an equilibrium. The key question is whether QFs protect the system from collapsing. Indeed, in this regime, the MF treatment would imply that the attractive BEC becomes unstable, leading to a two-fold dramatic consequence\,\cite{Pitaevskii:2003}. First, some modes of the BdG spectrum acquire complex frequencies. Second, in a trap, the density distribution of the cloud undergoes a marked change on short time scales ($\leq 1/\nu_\perp$), described as a ``collapse", which can develop into a rapid loss of coherence\,\cite{Roberts:2001,Koch:2008}, and pattern formations, such as anisotropic atom bursts ("Bosenova") and special $d$-wave-type structures, as observed in rubidium \,\cite{Donley:2001} and dipolar gases of chromium\,\cite{Koch:2008,Lahaye:2008}, respectively. This fast dynamics has been proved to be well encompassed by GPE simulation \cite{Ueda:2003,Lahaye:2008,Metz:2009}. \section{\label{Sec:DensityDistr}Density Distribution} In a first set of experiments, we study the evolution of the ToF density distribution of our dipolar Er BEC with $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$. Figure \ref{fig:density_profile}\,(a-c) shows the 2D column density profiles acquired with $\mathbin{\!/\mkern-5mu/\!}$-imaging for $t_{\rm r}=10\,$ms and $t_{\rm h}=6\,$ms ($\gtrsim 1/\nu_\perp$), and for different $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$. To analyze our data, we fit the 2D density profiles to bimodal distributions. We illustrate their results on the central cuts ($x=0$) in Fig.\,\ref{fig:density_profile}(d). For $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}>\ensuremath{a_{\rm dd}}$ (a), the density distribution follows the one of a dilute BEC with the expected MF Thomas-Fermi (TF) profile on top of a broad Gaussian distribution, accounting for the thermal atoms. When lowering $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$ below $\ensuremath{a_{\rm dd}}$, we observe a drastic change of the density profile marked by the shaping of a narrower and denser central core (b-c), whose profile starts to deviate from the usual MF TF one. Indeed, the $\mathbin{\!/\mkern-5mu/\!}$-images are better described by the sum of two Gaussian functions already for $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}<70\,a_0$ as the fit to this distribution gives a smaller residue than the MF TF plus Gaussian bimodal fit; see Fig.\,\ref{fig:density_profile}\,(d). In contrast with the evolution of the central peak, the distribution of the thermal atoms, encompassed by the broad Gaussian function, remains mainly unaffected by the change of $\ensuremath{a_{\rm s}}$. This remarkable behavior evidences an absence of a sizable heating and an apparent decoupling of the evolution of the coherent and thermal parts. The central peak remains visible down to $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}} \sim 50\,a_0$ ($\varepsilon_{\rm dd} \sim 1.3$) (c), and exhibits a long-lived character from several tens to hundreds of ms. As discussed in details later and suggested in Ref.\,\cite{Baillie:2016}, three-body (3B) collisions regulate the lifetime of the high-density component, as this loss mechanism exhibits a high-power dependence on the density. We note that we observe a similar qualitative behavior of the density distribution when using an adiabatic ramp of $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$. However, in this case 3B losses already sets in during the ramp reducing the importance of the central peak. Being a smoking-gun for long-range phase coherence, the survival of a bimodal profile in the ToF distribution suggests a persistent coherent behavior far beyond the MF instability threshold. The absence of a collapse advocates the outbreak of an additional stabilization mechanism. \section{\label{Sec:CollectiveOsc}Collective Oscillation} \begin{figure} \includegraphics{Fig3_Osc_v12 \caption{\label{fig:modes} (color online) {\bf Axial mode}: (a) Illustration of the axial mode in our experimental setup. The black arrows sketch the oscillations of the widths of the coherent gas along the characteristic axes of the trap, with weights indicating their relative amplitudes. (b-c) Measured $\ensuremath{\nu_{\rm axial}}/\nu_{\mathbin{\!/\mkern-5mu/\!}}$ (squares) as a function of $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$ together with the theoretical predictions, including (solid line) or not (dashed lines) the LHY term for $t_{\rm r}=100\,$ms (b) and $t_{\rm r}=10\,$ms (c). In the latter case, quenches to small $\ensuremath{a_{\rm s}}$ excite higher-energy modes and the system is not anymore in the linear response regime (open squares). The inset in (b) exemplifies a measurement of $R_{\mathbin{\!/\mkern-5mu/\!}}$ (triangles) and its fit to a damped-sine (solid line) for $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}=80\,a_0$. We typically fit 4 to 5 oscillations for all our $\ensuremath{a_{\rm s}}$. } \end{figure} In a second set of experiments, we unveil the origin of stabilization mechanism by studying the elementary excitations of the coherent cloud. This is a very powerful probe of the fundamental properties in quantum degenerate gases~\cite{Pitaevskii:2003,Grimm:2007}. In particular, collapse is intimately related to the softening of some collective modes at the MF-instability threshold. We focus here on the axial mode, which is the lowest-lying excitation in the system. It corresponds to a collective oscillation of the condensate length along $y$~($R_{\mathbin{\!/\mkern-5mu/\!}}$) with frequency $\nu_{axial}$. The axial oscillation comes along with a smaller-amplitude oscillation of the radial sizes in phase-opposition; see Fig.\,\ref{fig:modes}(a). As a result, this mode has a mixed character between a compression and a surface mode~\cite{Pitaevskii:2003}. The compression character is particularly relevant since it involves a change in the density and it is therefore sensitive to the LHY corrections \cite{PhysRevLett.81.4541}. We excite the axial mode either by ramping $B$ during the final preparation stage or by transiently increasing the power of the vertical optical dipole trap (ODT) beam, after ramping $B$ to $\ensuremath{B_{\rm f}}$. Here $\nu_{\mathbin{\!/\mkern-5mu/\!}}$ is abruptly changed from 17\,Hz to typically 21\,Hz, kept at this higher value for 8\,ms and finally set back to 17\,Hz. Following the excitation, we let the cloud evolve for a variable $t_{\rm h}$ and image its ToF density distribution with $\perp$-imaging. To extract $\ensuremath{\nu_{\rm axial}}$, we probe the axial width $R_{\mathbin{\!/\mkern-5mu/\!}}$ of the central coherent component of the gas\,\cite{suppmat} with $t_{\rm h}$ and fit it to a damped-sine; see inset in Fig.\,\ref{fig:modes}(b). Figure \ref{fig:modes} shows the observed $\ensuremath{\nu_{\rm axial}}$ normalized to the trapping frequency $\nu_{\mathbin{\!/\mkern-5mu/\!}}$ \footnote{$\nu_{\mathbin{\!/\mkern-5mu/\!}}$ is determined from the center-of-mass oscillations along $y$, which are simultaneously excited with the axial breathing mode.} as a function of $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$ for adiabatic (b) and non adiabatic (c) ramps. Both cases exhibit a similar qualitative behavior. For $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}>\ensuremath{a_{\rm dd}}$, the oscillations shows a smooth dependence on $\varepsilon_{\rm dd}$ with $\ensuremath{\nu_{\rm axial}}$ increasing by about $5\%$ around $1.70\,\nu_{\mathbin{\!/\mkern-5mu/\!}}$. When lowering $\ensuremath{a_{\rm s}}$, the oscillation of the coherent part remains visible well below the $\varepsilon_{\rm dd}= 1$ threshold and $\ensuremath{\nu_{\rm axial}}$ exhibits a marked increase. $\ensuremath{\nu_{\rm axial}}/\nu_{\mathbin{\!/\mkern-5mu/\!}}$ grows up to $2.6(1)$ at $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}=54\,a_0$ for $t_{\rm r}=100\,$ms (b). For $t_{\rm r}=10\,$ms (c), $\ensuremath{\nu_{\rm axial}}/\nu_{\mathbin{\!/\mkern-5mu/\!}}$ first increases similarly to the adiabatic case (b), reaches a maximum of $\sim 2.13(7)$ at $57\,a_0$ ($\varepsilon_{\rm dd}=1.15$), and finally decreases for even smaller $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$ (open squares). The latter behavior can be explained by the fact that the larger quenches in the interaction excites additional high-energy modes while it drives the system away from the linear response regime \footnote{We indeed observe high-energy mode in which the high-density core splits and recombine in a damped oscillating manner. }. \section{\label{Sec:Theory}Theory} To account for our observation and discern between the MF instability picture and QF mechanisms, we develop a beyond-MF treatment of our system at $T=0$. The coherent gas is described here by means of the generalized non-local nonlinear-Schr\"odinger equation~(gNLNLSE), which includes the first-order correction from QF, i.\,e.\,the LHY term, and 3B loss processes. The gNLNLSE reads as ~\cite{Waechtler:2016,Baillie:2016} \begin{equation} \label{eq:H} {\mathrm i}\hbar\frac{\partial\psi}{\partial t}=\left[\hat{H}_0 +\mu_\text{MF}(n,\epsilon_{dd})+\Delta\mu(n,\epsilon_{dd})-{\mathrm i}\hbar \frac{L_3}{2}n^2 \right]\psi, \end{equation} where $\hat H_0=\frac{-\hbar^2\Delta}{2m}+V(\ensuremath{{\boldsymbol r}})$ is the non-interacting Hamiltonian and $V(\ensuremath{{\boldsymbol r}})=2\pi^2m \sum_{\eta=x,y,z}\nu_\eta^2 \eta^2$ the harmonic confinement with $\eta=x,y,z$. The MF chemical potential, $\mu_\text{MF}(n({\mathbf r}),\epsilon_{dd})=gn({\mathbf r})+\int d^3 r' V_{\rm dd}({\mathbf r}-{\mathbf r}')n({\mathbf r}')$, results from the competition between short-range interactions, controlled by the coupling constant $g=4\pi \hbar^2 \ensuremath{a_{\rm s}}/m$, and the DDI term with $V_{\rm dd}({\mathbf r})=\frac{\mu_0\mu^2}{4\pi r^3}(1-3\cos^2\theta)$ and $\theta$ the angle sustained by ${\mathbf r}$ and the dipole moment ${\mathbf \mu}$. Here $n({\mathbf r})=|\psi({\mathbf r})|^2$. The beyond-MF physics is encoded in the LHY term, leading to an additional repulsive term in the chemical potential , $\Delta \mu (n,\epsilon_{dd})=\frac{32}{3\sqrt{\pi}}gn\sqrt{na^3}F(\epsilon_{dd})$. The function $F(\epsilon_{dd})=\frac{1}{2}\int d\theta_k \sin{\theta_k} (1+\epsilon_{dd}(3\cos^2\theta_k-1))^{5/2}$ is obtained from the LHY correction in homogeneous 3D dipolar BECs~\cite{Pelster:2011,Pelster:2012} using local-density approximation \footnote{Our experiments, performed in cigar-shape traps with relatively large condensates, are well within the validity regime of this approach, which has been discussed in detail in Refs.\,\cite{Waechtler:2016,Waechtler:2016b}.}. The last non-Hermitian term in Eq.\,\eqref{eq:H} accounts for 3B loss processes\,\cite{Kagan:1998}. In our calculations, we use the experimentally determined values of the 3B recombination rate of the condensate, $L_3 (\ensuremath{a_{\rm s}})$ \cite{suppmat}. As discussed in Refs.\,\cite{Waechtler:2016b,Baillie:2016}, due to the repulsive LHY term, Eq.\,\eqref{eq:H} sustains stable ground-state solutions for any $\ensuremath{a_{\rm s}}$ and $\lambda$. For pancake traps ($\lambda>1$), the solution of Eq.\,(\eqref{eq:H}) is not unique. The phase diagram reveals three types of solutions: the one of a dilute BEC, a single droplet solution, and a third one, which separates the previous two phases, that corresponds to a metastable region of multi-droplet states. The latter has been observed in Dy experiments \cite{Kadau}. However, the single droplet solution appears difficult to access because of the overhead multi-droplet state and the stringent 3B loss mechanisms. Remarkably, in cigar-shaped traps ($\lambda<1$) Eq.\,\eqref{eq:H} has only one possible solution. In the $\varepsilon_{\rm dd}$ parameter space, the corresponding wave function exhibits a smooth crossover from a dilute BEC to a single, high-density, macro droplet solution for increasing $\varepsilon_{\rm dd}$. It is worth to notice that the crossover physics, e.\,g.\,the formation and lifetime of the droplet state, is expected to crucially depend on the 3B collisional processes. In the following, we will concentrate on the $\lambda<1$ case, which corresponds to our experimental setting. The continuous and smooth change of the static properties of the system with increasing $\varepsilon_{\rm dd}$ is consistent with our observations on the evolution from a dilute into an high-density state; see Fig.\,\ref{fig:density_profile}. Based on Eq.\,\eqref{eq:H}, we theoretically investigate the dynamics of the coherent gas. In order to compare as close as possible to our experimental results, we precisely account for the experimental sequence by performing real time evolution (RTE) starting from the ground state of Eq.\,\eqref{eq:H} at $\ensuremath{a_{\rm s}}=67\,a_0$ with $N=1.2\times 10^5$ atoms. We simulate a linear ramp in $\ensuremath{a_{\rm s}}$ from $67\,a_0$ to a variable final value of $\ensuremath{a_{\rm s}}$ in $t_{\rm r}$, followed by a compression of the axial trap from $\nu_{\mathbin{\!/\mkern-5mu/\!}}=17.3$ Hz to $21$ Hz during $8$ ms. We record then the axial width from the standard deviation of $n(\ensuremath{{\boldsymbol r}})$, $\sigma_y=\sqrt{\langle y^2 \rangle}$, as a function of the subsequent holding time. The evolution of $\sigma_y$ is well fit by a sinusoidal function, whose frequency constitutes our theoretical prediction of $\ensuremath{\nu_{\rm axial}}$. In Fig.\,\ref{fig:modes}, we present our calculations with and without the LHY term. From a direct comparison with the experiments, one observes an excellent agreement of the theory including QFs, thus ruling out the MF scenario. In quench experiments (c), the effect of QFs is particularly evident since 3B losses do not have enough time to fully develop at the end of $t_{\rm r}$, leaving the system in the high-density regime. In this condition, QFs play the crucial role of stabilizing the system, and drive the formation of a special coherent state, namely a single macro-droplet\,\cite{Waechtler:2016,Bisset:2016,Waechtler:2016b,Baillie:2016}. This provides a qualitatively different phase diagram than the one from the MF treatment, which predicts a collapse at $\ensuremath{a_{\rm s}}\approx 64\,a_0$. For $t_{\rm r}=100$\,ms, a more stringent interplay between QFs and 3B losses arises, both mechanisms being able to drive the system out of the instability region. Although the system is expected to be stable even within the MF description down to $\ensuremath{a_{\rm s}}\approx 57 a_0$, the effect of QFs is visible in a sizable shift of $\ensuremath{\nu_{\rm axial}}$, which better matches the experimental data; see Fig.\,\ref{fig:modes}(b). \section{\label{Sec:Losses}Lifetime of the high-density state} \begin{figure} \includegraphics{Fig4_AtomLoss_v12.pdf \caption{\label{fig:losses} (color online) {\bf Lifetime and in-situ density of the high-density core}. (a-b) Measured $N_{\rm core}$ (squares) and $N_{\rm th}$ (circles) versus $\ensuremath{a_{\rm s}}$ after (a) a non-adiabatic ($t_{\rm r}=10\,$ms, $t_{\rm h}=8\,$ms) and (b) an adiabatic ($t_{\rm r}=45\,$ms, $t_{\rm h}=0\,$ms) ramps. The data show a better agreement with the theory with the LHY term (solid line) as compared to the MF theory (dashed line). (c) Time decay of $N_{\rm core}$ for $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}=65 a_0$ (triangles), $57 a_0$ (circles), and $50 a_0$ (squares) after quenching $\ensuremath{a_{\rm s}}$ ($t_{\rm r}=10\,$ms). We fit a double exponential function to the data (solid lines) \cite{suppmat}. (d) From the fit, we deduct the mean in-situ density of the core, $\bar{n_c}$ (see text), for $t_{\rm h}=4\,$ms (triangles) and $16\,$ms (squares) and as a function of $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$. The error bars include the statistical errors on the fit and on $L_3$. The solid lines show results of the RTE including the LHY correction for the $t_{\rm h}=0\,$ms (red), $t_{\rm h}=25\,$ms (blue). } \end{figure} To further investigate the respective roles of 3B losses and QFs, we study the time evolution of the atom number of both the central core ($N_{\rm core}$) and thermal ($N_{\rm th}$) components along the BEC-to-droplet crossover. Since in the droplet regime the core density $n_{\rm core}(r)$ dramatically increases, 3B losses are expected to play an important role even for moderate and low values of $L_3$ \cite{Baillie:2016}. Notwithstanding, 3B losses and QFs exhibit different power dependencies on $n(r)$ (see Eq.\,\eqref{eq:H}) and thus the atom-loss dynamics should disclose the competition between diluteness and a droplet character. Figure \ref{fig:losses}\,(a-b) shows $N_{\rm core}$ and $N_{\rm th}$, extracted from the double Gaussian fit as a function of $\ensuremath{a_{\rm s}}$ after a non-adiabatic (a) and adiabatic (b) change of $\ensuremath{a_{\rm s}}$. Both cases show a similar evolution. When lowering $\ensuremath{a_{\rm s}}$, $N_{\rm core}$ is first constant for $\ensuremath{a_{\rm s}} > \ensuremath{a_{\rm dd}}$, then shows a sharp drop starting around $\ensuremath{a_{\rm s}} \sim \ensuremath{a_{\rm dd}}$ and finally saturates for lower $\ensuremath{a_{\rm s}}$. We note that in the non-adiabatic case, $N_{\rm core}$ decreases slower as compared to the adiabatic case because of the shorter timing involved. Remarkably, $N_{\rm th}$ remains mainly unaltered over the whole range of $\ensuremath{a_{\rm s}}$ and the whole system does not show any appreciable heating. This suggests that the condensed atoms, which are ejected from in the core, leave the trap instead of being transfer to the thermal component, confirming a picture in which the thermal and the condensed component have uncoupled dynamics. We now compare the experiment with the theory, which, as previously, precisely accounts for the experimental sequence and its timing by performing RTE along Eq.\,\eqref{eq:H}. We compute here the final atom number $N=\int n({\ensuremath{{\boldsymbol r}}}) {\rm d}^3 r$ as a function of $\ensuremath{a_{\rm s}}$ with and without the LHY term. Remarkably, the observed evolution of $N_{\rm core}$ is very well reproduced by our beyond-MF calculations (solid lines), whereas in absence of the LHY stabilization, the calculations predict losses in the condensed core to occur at values of $\ensuremath{a_{\rm s}}$ too large compared to the measured ones; see Fig.\,\ref{fig:losses}(a,b,d). Finally, we investigate the in-trap time evolution of $N_{\rm core}$ after quenching $\ensuremath{a_{\rm s}}$ in the droplet regime; see Fig.\,\ref{fig:losses}\,(c). Our measurements reveal three different timescales for the losses. At very short $t_{\rm h}$ ($\approx 0-8$\,ms), $N_{\rm core}$ is constant and the droplet state preserves its high density. It follows a fast decay dominated by 3B ($\approx 8-25$\,ms), having the effect of ejecting atoms from the core until $N_{\rm core}$ decreases slightly below $10^4$ atoms. At this point, the loss dynamics substantially slows down ($\approx 25-1000$\,ms). Using the relation $\frac{1}{N_{\rm core}}\frac{{\rm d}N_{\rm core}}{dt_{\rm h}}=- L_3 \bar{n}^2$, we extract the mean in-situ density $\bar{n}=\sqrt{\langle n(r)^2 \rangle}$ of the high-density component in the BEC-to-droplet crossover. Figure\,\ref{fig:losses}\,(d) shows our results for $t_{\rm h}=4,\, 16\,$ms. We observe a prominent increase of $\bar{n}$ across the threshold $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}} \sim \ensuremath{a_{\rm dd}}$, and a surviving high density state deep into the MF instability regime. The formation of the droplet state is particularly visible for the $t_{\rm h}=4$-ms case. Here, $\bar{n}$ grows from $6.2(9)\times 10^{20}\,{\rm m}^{-3}$ at $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}=67\,a_0$ to a maximum of $35(7)\times 10^{20}\,{\rm m}^{-3}$ at $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}=57\,a_0$, while it is slightly reduced to $\sim 24\times 10^{20}\,{\rm m}^{-3}$ at $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}\sim 46\,a_0$. These observations are qualitatively reproduced by our simulations including the LHY correction and 3B losses. Our results together with the good agreement between theory and experiments provide an alternative confirmation of the central role of beyond-mean-field physics. The lifetime of the high-density core reveals, on the one hand, the activation of the LHY term and the crossover toward a dense droplet state, and on the other hand the counteracting role of 3B losses in regulating the maximum density in the droplet regime. \section{\label{Sec:ExpansionDynamics}Expansion Dynamics} \begin{figure} \includegraphics{Fig5_Velocity_v9c.pdf} \caption{\label{fig:expansion} (color online) {\bf Expansion dynamics across the BEC-to-droplet crossover}. (a) ToF evolution of the width, $\sigma_x$, of the high-density component for $\ensuremath{a_{\rm s}}= 93\,a_0$ (squares), $64\,a_0$ (circles), $55.5\,a_0$ (triangles). The lines are fit to the data using $\sigma_x(t_{\rm ToF})=\sqrt{\sigma_{x,0}^2+v_x^2t_{\rm ToF}^2}$, from which we extract $v_x$. (b) $v_x$ as a function of $\ensuremath{a_{\rm s}}$ (squares). For comparison, the $\ensuremath{a_{\rm s}}$-independent expansion velocities of the thermal component are also shown (circles). The experimental data are in in very good agreement with our parameter-free theory from RTE simulations including LHY term (solid line) and rule out the MF scenario (dotted line). For clarity, we only show $v_x$, similar results are found for $v_y$. } \end{figure} % Besides their unlike stability diagram, collective excitations, and density distribution, a dilute BEC in the MF regime and a quantum droplet are also expected to exhibit a markedly different expansion dynamics. While the first is confined by an external trapping potential and thus freely expands in its absence, a droplet state is self-bound by its underlying interaction in analogy with the He-droplet case \cite{Waechtler:2016, Bisset:2016, Waechtler:2016b, Baillie:2016}. As in our previous discussions, the evolution from a trap-bound to a self-bound solution is expected to be regulated by the interplay between QFs and 3B loss processes. We investigate the expansion dynamics of our system for various $\ensuremath{a_{\rm s}}$. To preserve the high density of the coherent component, our measurements focus on short timescales with $t_{\rm r}=10\,$ms and $t_{\rm h}=5\,$ms. After preparing the system at the desired $\ensuremath{a_{\rm s}}$, we abruptly switch off the ODT, let the gas expand for a variable $t_{\rm ToF}$, and probe the cloud width using the $\mathbin{\!/\mkern-5mu/\!}$-imaging. We fit the observed density distribution to a double-Gaussian function, as previously described. To extract the width $\sigma_\eta$ of the high-density core ($n_{\rm core}$), we compute the second moments $\sigma_\eta^2= \int \eta^2 n_{\rm hG}(\ensuremath{{\boldsymbol r}})d\ensuremath{{\boldsymbol r}}$ along $\eta=x,z$. Figure \ref{fig:expansion}\,(a) exemplifies the ToF evolution of $\sigma_{\eta=x}$ at $\ensuremath{a_{\rm s}}=93 a_0$, $64 a_0$, and $55.5 a_0$. When entering the $\varepsilon_{\rm dd}>1$ regime, atoms in the high-density core exhibits a marked slowing down of the expansion dynamics, which can not be explained within the MF approach. To systematically study this effect, we repeat the above measurements for different values of $\ensuremath{a_{\rm s}}$ (i.\,e.\,$\varepsilon_{\rm dd}$). From $\sigma_x(t_{\rm ToF})$, we extract the value of the expansion velocity, $v_x$, by fitting the data to $\sigma_x(t_{\rm ToF})=\sqrt{\sigma_{x,0}^2+v_x^2t_{\rm ToF}^2}$. Figure \ref{fig:expansion}\,(b) shows $v_{x}$ in an $\varepsilon_{\rm dd}$ range from $0.7$ to $1.5$. When the system approach the droplet regime with decreasing scattering length ($\ensuremath{a_{\rm s}} < \ensuremath{a_{\rm dd}}$), $v_\eta$ undergoes a strong reduction and drops to a minimum equal to $v_{x}=0.40(2)\,\mu{\rm m}/{\rm ms}$ at about $56\,a_0$ ($\varepsilon_{\rm dd}\sim 1.17$). For further lowering of $\ensuremath{a_{\rm s}}$, $v_x$ starts to increase again. A similar behavior is observed for $v_y$. We note that only the high-density component reveals this intriguing dependency on $\ensuremath{a_{\rm s}}$, whereas the thermal part shows a mainly constant expansion velocity. Our observations agree well with the theory including the LHY term; see solid line in Fig.\,\ref{fig:expansion}(b). The ToF evolution is calculated using a multi-grid numerical scheme\,\cite{suppmat}. We record the evolution of $\sigma_\eta$ with $t_{\rm ToF}$ and extract the corresponding expansion velocities from the asymptotic behavior of ${{\rm d }\sigma_\eta}/{{\rm d} t_{\rm ToF}}$. Our simulations show a slowing down with a minimum of $v_x=0.32\,\mu{\rm m}/{\rm ms}$ at $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}\sim 56\,a_0$ ($\varepsilon_{\rm dd}\sim 1.17$), followed by an increase at lower $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}$ \footnote{We note that the small offset between the theoretical and experimental data can be due to systematics effects in our imaging, e.\,g.\,final resolution of the imaging system and stray fields during ToF \cite{suppmat}.}. In contrast, calculations in absence of beyond-MF corrections fail to reproduce the experimental data. Here, the velocity is first more drastically reduced above the MF instability threshold $\varepsilon_{\rm dd} \sim 1$ than it is expected with LHY corrections, it then already increases at this threshold. The first point relies on the trivial slowing down of a BEC whose mean repulsion energy is weakened (by reducing $\ensuremath{a_{\rm s}}$ or decreasing its population $N_{\rm core}$). The second point reveals a collapsing behavior that gives rise to an explosive evolution of the density profile. The minimal velocity is here found to be $v_x=0.56\,\mu{\rm m}/{\rm ms}$ at $\ensuremath{a_{\rm s}}}%{\ensuremath{a_{\rm s}^{\rm (f)}}=68\,a_0$, which is a much higher value than both our experimental results and our theory predictions including the LHY correction. The expansion behavior can be qualitatively well understood considering the so-called released, or internal energy, $E_{\rm R}$. This is the energy of the system when substracting the energy related with the confinement \cite{Pitaevskii:2003}. In the MF scenario, $E_{\rm R}>0$ as long as the ground state is stable. The BEC expands ballistically and $v_\eta$ decreases for decreasing $\ensuremath{a_{\rm s}}$ and $N$. In the unstable regime, the expansion velocity depends crucially on the value of $t_{\rm h}$ at which the trap is switched off due to the occurrence of an in-situ collapse dynamics. Contrary, in the presence of QF, a stable ground state always exists. The sharp variability in $t_{\rm h}$ is expected to be suppressed. Assuming a fixed $N_{\rm core}$~(\emph{i.e.} no 3B losses), one can show that $E_{\rm R}$ decreases with decreasing $\ensuremath{a_{\rm s}}$ and eventually reaches $E_{\rm R}<0$ for $\ensuremath{a_{\rm s}}<a_{\rm SB}$, marking the onset of the self-bound (SB) solution~(e.g. $a_{\rm SB}=56a_0$ for $N=1.2\times 10^5$) \cite{suppmat}. However, in stark contrast to the MF case, $E_{\rm R}$ increases with decreasing $N_{\rm core}$ in the droplet regime. We note that $a_{\rm SB}$ is then shifted to lower values when $N_{\rm core}$ gets reduced by 3B losses, thus affecting the lifetime of the self-bound solution. The existence of a minimal expansion velocity is thus a direct consequence of the competition between the decrease of $E_{\rm R}$ for decreasing $\ensuremath{a_{\rm s}}$ at a fixed $N_{\rm core}$, and the increase of $E_{\rm R}$ for decreasing $N_{\rm core}$ in the droplet regime. In the crossover regime, the system smoothly evolves towards a fully self-bound state ($v_\eta=0$) until 3B losses, occurring in trap or in the initial phase of the expansion, set in to unbind the system and to reduce the lifetime of the droplet state. \section{\label{Sec:Conclusion}Conclusion} In summary, we have demonstrated the existence of the crossover from a dilute BEC to a quantum droplet state driven by QFs. Our experiments not only demonstrate that LHY stabilization is a general feature of strongly dipolar gases, but show as well an excellent quantitative agreement with our parameter-free theory, which is based on a generalized GP equation with LHY correction. The agreement concerns the lowest-lying excitation mode, the evolution of the atom losses, and the ToF expansion. Concerning the latter, we observe a prominent reduction of the expansion velocity to a minimum value, which provides a fingerprint of the competition between 3B losses and LHY stabilization. \section*{\label{Sec:Acknowledgement}Acknowledgement} We thank M.\,Baranov, R.\,van Bijnen, R.\,N.\,Bisset and B.\,Blakie, E.\,Demler, R.\,Grimm, T.\,Pfau and the Stuttgart Dy team for multiple useful discussions. We thank G.\,Faraoni for her support in the final stage of the experiment. The Innsbruck group thanks the European Research Council within the ERC Consolidator Grant RARE no. 681432. LC is supported within the Marie Curie Project DIPPHASE no. 706809 of the European Commission. The Hannover group thanks the support of the DFG (RTG 1729). Both groups acknowledge the support of the DFG/FWF (FOR 2247).
\subsection{Algorithms, simulation parameters, and autocorrelations} In this work we simulated with a modified version of the \texttt{openQCD v1.0} package~\cite{Luscher:2012av}, using a Hasenbusch-type splitting of the quark determinant for two of our mass-degenerate quarks~\cite{Hasenbusch:2001ne,Hasenbusch:2002ai}, and an RHMC~\cite{Kennedy:1998cu,Clark:2006fx} for the third one. Apart from boundary terms, we have the same action as \texttt{CLS.} The interested reader may find it useful to consult~\cite{Bruno:2014jqa}, where those simulations are described. Here we focus on some peculiarities of our finite volume simulations: the projection to the zero topological charge sector, the scaling of the spectral gap of the Dirac operator, and the behavior of the integrated autocorrelation times of the renormalized coupling. The latter characterize the performance of the algorithm and hence the effort which we put into the computation. \subsubsection{Algorithms} An important speed up in HMC simulations is gained by splitting the contribution of two of the quarks, $(\det D)^2=\det(D^\dagger D)$, into several factors~\cite{Hasenbusch:2001ne}, and representing each factor by a separate pseudo-fermion field. For our expensive simulations with $L/a=24,32$, we used three factors. More precisely, the splitting is characterized by the mass-parameters: $\mu_0=0$, $\mu_1=0.1$, and $\mu_2=1.2$, in the notation of~\cite{Luscher:2012av}. Having $\mu_0=0$ means that twisted mass reweighting, which is also implemented in the package, is not used. We find that this is not necessary, as the finite volume operator $D^\dagger D$ has a sufficiently stable gap. We shall show results for the gap in \App{a:gap}. A peculiar aspect of our finite volume renormalization scheme is that we are only interested in expectation values obtained in the zero topological sector (see eq.~\eqref{eq:coupling}). On the lattice, this is implemented by using the definition of the topological charge at positive flow time (see eqs.~(\ref{eq:qtop}--\ref{eq:deltaq}) and~\cite{Ce:2015qha} for more information). We explored two possibilities in order to obtain these expectation values: \begin{description} \item[\texttt{Algorithm A:}] Use a standard simulation and include the term $\hat \delta(Q)$, \eq{eq:deltaq}, as part of the definition of the observable. \item[\texttt{Algorithm B:}] Include the factor $\hat\delta(Q)$ as part of the Boltzmann weight and generate an ensemble that only contains configurations with $|Q|<0.5$. This is easily implemented by adding an accept/reject step after each trajectory. \end{description} A consistency check between the two procedures was performed by generating two ensembles at $L/a=8$, $\beta= 3.556470$: one with \texttt{Algorithm A}, and a second with \texttt{Algorithm B}, obtaining respectively $\gbar_{\rm GF}^2(2L)=11.54(11)$ and $\gbar_{\rm GF}^2(2L)=11.39(11)$. The average is given in table~\ref{tab:Sigma}. In our tables we use $N_Q$ to denote the number of configurations that have $|Q|\ge 0.5$, and therefore do not contribute to the determination of expectation values. The symbol $\emptyset$, instead, denotes an ensemble produced with \texttt{Algorithm B}. These ensembles have $|Q|<0.5$ throughout. A downside of \texttt{Algorithm B} is that the acceptance rate can drop significantly below 1, with our lowest value being~$0.65$. This low acceptance rate is due to attempts of the algorithm to enter other topological sectors, and not to large violations of the HMC energy conservation. As this happens only at the coarse lattice spacings, one can usually choose an efficient algorithm between \texttt{A} and \texttt{B} for a given choice of parameters; at least in the range we considered. \begin{figure} \centering \begin{subfigure}[b]{0.48\textwidth} \includegraphics[width=\textwidth]{plots/ra_g} \caption{$T \lambda_a^{\rm min}/\pi$ as a function of $\bar g^2_{\rm GF}(L)$ for our larger lattices $L/a=24,32$.} \end{subfigure} \begin{subfigure}[b]{0.48\textwidth} \includegraphics[width=\textwidth]{plots/rb_g} \caption{$a \lambda_b^{\rm max}$ as a function of $\beta$ for our larger lattices $L/a=24,32$.} \end{subfigure} \caption{Scaling of $\lambda_a^{\rm min}$ and $\lambda_b^{\rm max}$ determining the spectral range of the operator $\sqrt{\hat D^{\dagger} \hat D}$ entering the RHMC algorithm.} \label{fig:rarb} \end{figure} \subsubsection{Rational approximation and spectral gap of the Dirac operator} \label{a:gap} The RHMC algorithm uses a Zolotarev approximation~\cite{zolo} in the interval $[r_a, r_b]$ for the operator $R=({\hat D}^\dag{\hat D})^{-1/2}$, which enters the decomposition, \begin{equation} \label{eq:detq2} {\rm det}\,D = {\rm det}(1_e + D_{oo})\,{\rm det}\,{\hat D},\qquad {\rm det}\,{\hat D} = W {\rm det}\,R^{-1}. \end{equation} Here ${\hat D} = D_{ee}- D_{eo}D^{-1}_{oo}D_{oe}$ denotes the even-odd preconditioned Dirac operator, and $1_e$ is the projector to the subspace of quark fields that vanish on the odd sites of the lattice. The operators $D_{ee}$, $D_{eo}$, $D_{oo}$, and $D_{oe}$ refer to the even-even, even-odd, odd-odd, and odd-even parts of the Dirac operator, respectively. The residual factor $W = {\det}(DR)$, instead, is considered as a reweighting factor which corrects possible (small) errors in the approximation of $R$; we estimate this using two random sources (cf. \texttt{rhmc.pdf} of the documentation of the \texttt{openQCD} package for more detail information). The precision of our rational approximations with parameters in \tab{tab:rarb} is very high. Consequently the reweighting taking into account the factor $W$ has very little effect. Figure~\ref{fig:rarb} summarizes the values for the smallest, $\lambda_a^{\rm min}$, and largest, $\lambda_b^{\rm max}$, eigenvalues of $\sqrt{{\hat D}^\dag{\hat D}}$, measured during our most challenging runs (those with sizes $L/a=24,32$). More quantitative information is found in table~\ref{tab:rarb}. The main conclusion is that even at the largest volumes, our choice of boundary conditions ensures the existence of a gap in the Dirac operator, and with our chosen values of $r_a$, $r_b$ the simulations are safe. \begin{table} \small \centering \begin{tabular}{cllcllcll}\toprule $L/a$ & $\beta$ & $\tauint$ & $L/a$ & $\beta$ & $\tauint$ & $L/a$ & $\beta$ & $\tauint$ \\\cmidrule(lr){1-3}\cmidrule(lr){4-6}\cmidrule(lr){7-9} $16$ & $3.556470$ & $60(17)^*$ & $24$ & $3.735394$ & $175(63)^*$ & $32$ & $3.900000$ & $ 111(37)^*$ \\ $16$ & $3.556470$ & $36(8)$ & $24$ & $3.793389$ & $122(40)^*$ & $32$ & $3.976400$ & $\pz 89(27)^*$ \\ $16$ & $3.653850$ & $32(7)$ & $24$ & $3.833254$ & $\pz 59(15)^*$ & $32$ & $4.000000$ & $ 144(50)^*$ \\ $16$ & $3.754890$ & $26(5)$ & $24$ & $3.936816$ & $\pz 36(8)^*$ & $32$ & $4.100000$ & $\pz 82(22)$ \\ $16$ & $3.947900$ & $15(2)$ & $24$ & $4.128217$ & $\pz 36(8)$ & $32$ & $4.300000$ & $\pz 82(17)$ \\ $16$ & $4.151900$ & $11(2)$ & $24$ & $4.331660$ & $\pz 30(6)$ & $32$ & $4.500000$ & $\pz 38(7)$ \\ $16$ & $4.457600$ & $\pz 9(1)$ & $24$ & $4.634654$ & $\pz 17(3)$ & $32$ & $4.800000$ & $\pz 40(7)$ \\ $16$ & $4.764900$ & $\pz 7.8(9)$ & $24$ & $4.938726$ & $\pz 18(3)$ & $32$ & $5.100000$ & $\pz 34(5)$ \\ $16$ & $5.071000$ & $\pz 7.1(8)$ & $24$ & $5.242465$ & $\pz 14(2)$ & $32$ & $5.400000$ & $\pz 21(3)$ \\ $16$ & $5.371500$ & $\pz 6.2(7)$ & $24$ & $5.543070$ & $\pz 15(8)$ & $32$ & $5.700000$ & $\pz 23(3)$ \\ \bottomrule \end{tabular} \caption{Integrated autocorrelation times measured in the simulations performed to determine the step scaling function $\Sigma$. Measurements of $\gbar_{\rm GF}^2(L)$ with $L/a=16,24$ were separated by 10 MDU's, while those at $L/a=32$ are separated by 20 MDU's. Accordingly some of the determined $\tau_{\rm int}$ are below one in units of measurements, which introduces a (small) bias. Values marked with an $*$ corresponds to ensembles generated with \texttt{Algorithm B}.} \label{tab:tauint} \end{table} \subsubsection{Scaling of autocorrelation times} \begin{figure} \centering \includegraphics[width=0.7\textwidth]{plots/tauint} \caption{Scaling of $\tau_{\rm int}$ as a function of $\bar g^2(L)$ for different $L/a$.} \label{fig:tauint} \end{figure} Once more we focus on the more challenging simulations and discuss the scaling of the integrated autocorrelation times in our simulations with lattice sizes $L/a=16,24,32$. Table~\ref{tab:tauint} shows the autocorrelation times, determined as in \cite{Wolff:2003sm} in molecular dynamic units, while fig.~\ref{fig:tauint} indicates that they roughly follow the expected scaling with $a^{-2}$ \cite{Luscher:2011kk} at constant $\gbar_{\rm GF}^2(L)$ i.e. in fixed physical volume. Even the deviations from scaling seen at the larger coupling have a plausible explanation in terms of a correction to scaling. When the lattice spacing is bigger than around 0.05~fm, the standard HMC still shows topological activity\cite{Schaefer:2010hu}. \texttt{Algorithm B} will therefore have a number of attempts to change topology, which increases with the lattice spacing. These attempts are vetoed by the acceptance step, reducing the acceptance rate and increasing the autocorrelations. This easily explains the three highest lying points in the figure, but of course the quality of the data is not good enough for a quantitative statement. The length of our Monte Carlo chains is always between $200\,\tau_{\rm int}$ and $2000\,\tau_{\rm int}$. Despite the expectation that autocorrelations will eventually scale rather differently in large volume compared to our situation with Schr\"odinger functional boundary conditions, the longest autocorrelation times of our finite volume simulations are comparable to the longest ones observed in large volume in \cite{Bruno:2014jqa}. \subsubsection{The critical lines} \label{ap:tuning} \begin{table}[th] \centering \small \begin{tabular}{cccc} \toprule coeff. & $L/a=8$ & $L/a=12$ & $L/a=16$ \\ \midrule $\zeta_0$ & $+1.005834130000000$ & $+1.002599440000000$ & $+1.001463290000000$ \\ $\mu_0$ & $-0.000022208694999$ & $-0.000004812471537$ & $-0.000001281872601$ \\ $\mu_1$ & $-0.202388398516844$ & $-0.201746020772477$ & $-0.201520105247962$ \\ \cmidrule(lr){1-4} $\zeta_1$ & $-0.560665657872021$ & $-0.802266237327923$ & $-0.892637061391273$ \\ $\zeta_2$ & $+3.262872842957498$ & $+4.027758778155415$ & $+5.095631719496583$ \\ $\zeta_3$ & $-5.788275397637978$ & $-6.928207214808553$ & $-8.939546687871335$ \\ $\zeta_4$ & $+4.587959856400246$ & $+5.510985771180077$ & $+7.046607832794273$ \\ $\zeta_5$ & $-1.653344785588201$ & $-2.076308895962694$ & $-2.625638312722623$ \\ $\zeta_6$ & $+0.227536321065082$ & $+0.320430672213824$ & $+0.405387660384441$ \\ $\mu_2$ & $+0.090366980657738$ & $+0.128161834555849$ & $+0.139461345465939$ \\ $\mu_3$ & $-0.600952105402754$ & $-0.681097059845447$ & $-0.847457204378732$ \\ $\mu_4$ & $+0.934252532135398$ & $+0.991316994385556$ & $+1.261676178806362$ \\ $\mu_5$ & $-0.608706158693056$ & $-0.606597739050552$ & $-0.754644691612547$ \\ $\mu_6$ & $+0.140501978953879$ & $+0.129031928169091$ & $+0.153135714480269$ \\ \bottomrule \end{tabular} \caption{Coefficients for the parameterization eq.~\eqref{eq:amcresult}. The three leading coefficients $\zeta_0$, $\mu_0$ in the upper part of the table are combinations of known perturbative coefficients while the others were determined by a fit~\cite{Nf3tuning}. } \label{tab:fitparams} \end{table} Since we work in a massless renormalization scheme, we need to define and know the critical line in the space of bare lattice parameters $(\beta,\kappa,L/a)$; or equivalently $(g_0^2,am_0,L/a)$ with \begin{align}\label{eq:} g_0^2 = 6/\beta \,, \qquad am_0 = (2\kappa)^{-1} - 4 \;. \end{align} The critical line, $am_0=a\mcr(g_0,a/L)$, is defined by $m_1=0$, where $m_1$ is a current quark mass in an $(L/a)^4$ lattice. Making $\mcr$ dependent on $L/a$ in this way and using the same $L/a$ in this definition as in $\Sigma$, the cutoff effects are guaranteed to disappear as $\rmO(a^2)$ in the improved theory. Details on $m_1$ as well as on the many precise simulations done to find the critical lines by interpolation can be found in~\cite{Nf3tuning}. For completeness we here list the results needed to compute $\mcr$. In \Tab{tab:fitparams} we provide the coefficients of the interpolating functions for the critical lines, \begin{align}\label{eq:amcresult} a\mcr(g_0,a/L) &= \left( {\sum}_{k=0}^{6} \mu_k\, g_0^{2k} \right) \times \left( {\sum}_{i=0}^{6} \zeta_i \, g_0^{2i} \right)^{-1} \,, \end{align} at a given value of $L/a$, valid for all values of $g_0^2$ used in this paper. These parameterizations guarantee $m_1 L < 0.005$. With these coefficients the reader can reconstruct the input mass-parameter $\kappa_{\rm cr}$ corresponding to our simulations. \vskip1em \subsection{Tuning to selected couplings.} \label{ap:tuning_gbar} In \tab{tab:smallL} we collect our raw data for $\gbar^2_{\rm GF}(L)$ on the small lattices. \input{tables/raw_tuning.tex} As explained in the main text, we make maximum use of these data by performing smooth interpolations for $L/a=8,12$. This enables a very precise determination of $\gbar_{\rm GF}^2(L)$ for those bare parameters where we have computed $\gbar_{\rm GF}^2(2L)$. At fixed $L/a$ we fit \begin{equation} v(\beta) = 1/\gbar^2_{\rm GF}(L)\,, \end{equation} to a Pad\'e ansatz of degrees $[n_1,n_2]$, \begin{equation} v(\beta) = \frac{\sum_{n=0}^{n_1} a_n\beta^n}{1 + \sum_{n=1}^{n_2} b_n\beta^n}\,, \end{equation} and obtain predictions $\gbar_{\rm GF}^2(L)$ at the desired $\beta$ from the fit and their errors from the covariance matrix of the fit parameters. In fig.~\ref{fig:fit8} we show a couple of typical fits of all the $L/a=8$ data to a $[4,0]$ Pad\'e and a $[1,2]$ one. These fits have a good quality. Other fit functions were tested with the result that, once the fits have a reasonable number of degrees of freedom and a good $\chi^2$, the interpolated values of $\gbar_{\rm GF}^2(L)$ are entirely stable within their errors. This holds also for the $L/a=12$ data. As final description of our $L/a=8,12$ data we use the $[4,0]$ and $[3,0]$ Pad\'e, i.e. a simple polynomial of degree three and four, respectively. These choices yield the values of $\gbar_{\rm GF}^2(L)$ listed in \tab{tab:Sigma}. \begin{figure} \centering \includegraphics[width=0.8\textwidth]{plots/tuning8} \caption{$\frac{1}{\gbar_{\rm GF}^2}-\frac{\beta}{6}$ as a function of $\beta$ for $L/a=8$. The simulation points are fitted to a $[1,2]$ Pad\'e ($\chi^2=17.05$ for 18 degrees of freedom) and a $[4,0]$ Pad\'e ($\chi^2=15.42$ for 17 degrees of freedom). The different fit functions are hard to distinguish.} \label{fig:fit8} \end{figure} \subsection{Boundary $\rmO(a/L)$ effects} \label{s:boundary} With our choice of SF boundary conditions eqs.~(\ref{eq:linksbc}, \ref{eq:fermionbc}), the complete removal of $\rmO(a)$ cutoff effects requires not only the non-perturbative value of the coefficient $\csw$~\cite{Bulava:2013cta}, but also the determination of the boundary coefficients $\ct,\cttil$. These are known only to one-loop for our choice of lattice action~\cite{Takeda:2003he,pol,Nf3tuning} \begin{equation} \begin{split} \ct &= 1 + \ct^{(1)}g_0^2 + {\rm O}(g_0^4)\,, \qquad \ct^{(1)} = 0.0326718\,, \\ \cttil &= 1 + \cttil^{(1)}g_0^2 + {\rm O}(g_0^4)\,,\qquad \cttil^{(1)} = -0.01505\,, \\ \end{split} \end{equation} and therefore we have to estimate the possible effects of higher order terms in the coupling. For this purpose it is convenient to recall that our GF coupling is defined at time-slice $x_0=T/2$, and with our choice $c=0.3$ and $T=L$ the smearing radius is $\sqrt{8t} = cL = 0.3T$. Therefore we expect boundary effects to be suppressed, since our observable is localized at the center of the lattice, away from the boundaries. The issue was investigated in \cite{Luscher:2014kea} with the conclusion that indeed these boundary contributions are small. Here we estimate the effect quantitatively and specifically for our observable. We first quote the linear $a$-effects at leading order in perturbation theory. They are obtained by expanding the tree-level norm $\cal N$ in $\ct-1$, treating $\ct = 1 + \rmO(g_0^2)$. The result is \begin{eqnarray} \label{e:deltact} \Sigma(u,a/L) &=& \Sigma(u,a/L)_{\ct=1} + \frac{\ct-1}{g_0^2 \ct^{(1)}} \Delta^{\ct} \Sigma(u,a/L)\,, \\ \Delta^{\ct} \Sigma(u,a/L) &=& r_1^{(1)}\, \Sigma^2\, \frac{a}{2L} \, + \rmO(\Sigma^3), \label{e:deltact} \end{eqnarray} with $r_1^{(1)} = -0.013$ in the relevant range of $L/a \geq 8$. We have normalized by the one-loop contribution to $\ct$, using the known $\ct^{(1)}$. In this way, $\Delta^{\ct}\Sigma$ gives the effect in $\Sigma$ if one takes as an uncertainty the one-loop term in the perturbative series of $\ct$. As here the one-loop term is the last known one, this is exactly what we want to do in this work. As a check on the use of perturbation theory, we performed simulations on our smallest lattice $L/a=8$ at $\bar g^2 \sim 4.5$ with three different values of $\ct$ around the one-loop one. We found that the effective coefficient \begin{equation} r_1^{\rm eff} \equiv \frac{2L}{a} \Sigma^{-2} \frac{\partial \Sigma}{\partial \ct} \,, \end{equation} evaluates to \begin{equation} r_1^{\rm eff} = -0.0121(5) \frac{ g_0^2 \ct^{(1)}}{\Sigma^2}, \end{equation} when we estimate it from a numerical derivative at our central simulation point $\ct=1+\ct^{(1)}g_0^2$. The agreement with lowest order perturbation theory is good enough to just take \eq{e:deltact} as our estimate of the uncertainty. We propagate (by quadrature) the full one-loop effect of this boundary counterterm eq.~\eqref{e:deltact} to our error on $\Sigma(u,a/L)$. Note that this effect is sub-dominant in comparison with our statistical accuracy. The corresponding uncertainty due to $\cttil$ will be neglected since it is suppressed by a further power of $g^2$. \subsection{Continuum} We work in 4-dimensional Euclidean space and consider standard SF boundary conditions with zero background field~\cite{Luscher:1992an,Sint:1993un}. In summary, gauge fields are periodic in the three spatial directions with period $L$, and the spatial components $k=1,2,3$ of the gauge field satisfy homogeneous Dirichlet boundary conditions in time, \begin{equation} A_k(0,\vecx)=A_k(T,\vecx) = 0\,. \end{equation} Fermion fields are required to obey periodic boundary conditions in space up to a phase, \begin{equation} \begin{split} \psi(x+L\hat k) &= e^{\imath \theta}\psi(x)\,,\\ \psibar(x+L\hat k) &= e^{-\imath \theta}\psibar(x)\,. \\ \end{split} \end{equation} We choose the value $\theta =1/2$~\cite{Sint:1998iq}. Defining the projectors $P_{\pm} = \frac{1}{2}(1\pm \gamma_0)$, the time boundary conditions read \begin{equation} \label{eq:fermionbc} \begin{split} P_+\psi(0,\vecx) = &\,0 =\, \bar \psi(0,\vecx)P_- \,,\\ P_-\psi(T,\vecx) = &\, 0 =\, \bar \psi(T,\vecx)P_+ \,.\\ \end{split} \end{equation} The GF~\cite{Narayanan:2006rf,Luscher:2010iy} defines a family of gauge fields $B_\mu(t,x)$ parametrized by the flow time $t\geq0$ via the equation\footnote{Unless stated otherwise, repeated Greek indices are summed from 0 to 3. Repeated Latin indices are either summed from 1 to 8 ($a,b,\ldots$) or from 1 to 3 ($i,j,\dots$).} \begin{equation} \label{eq:flow} \partial_t B_\mu(t,x) = D_\nu G_{\nu\mu}(t,x)\,, \qquad B_\mu(0,x) = A_\mu(x)\,, \end{equation} where $D_\mu = \partial_\mu + [B_\mu, \cdot]$ is the covariant derivative, and $G_{\mu\nu}(t,x)$ is the field strength tensor of the flow field, \begin{equation} G_{\mu\nu} = \partial_\mu B_\nu - \partial_\nu B_\mu + [B_\mu,B_\nu]\,. \end{equation} Gauge invariant composite operators defined from the flow field $B_\mu(t,x)$ are renormalized observables, see~\cite{Luscher:2011bx}. In particular, our definition of a running coupling follows the proposal of using the action density at positive flow time~\cite{Luscher:2010iy}. In a finite volume and with our choice of boundary conditions the running coupling was defined in~\cite{Fritzsch:2013je} \begin{equation} \label{eq:coupling} \bar g^2_{\rm GF}(L) = \mathcal N^{-1}(c)\frac{t^2}{4} \frac{\langle G_{ij}^a(t,x)G_{ij}^a(t,x)\, \delta_{Q,0}\rangle}{\langle \delta_{Q,0} \rangle} \Big|_{\sqrt{8t}=cL,\,x_0=T/2} \,, \end{equation} where $\mathcal N(c)$ is a known function~\cite{Fritzsch:2013je}. Note that we use only the spatial components of the field strength tensor to define the coupling. As argued in~\cite{Fritzsch:2013je} boundary effects are smaller for this particular coupling definition, while we have observed that one does not lose numerical precision. The coupling is defined by projecting to the sector of vanishing topological charge, $Q=\frac{1}{32 \pi^2} \int_x \epsilon_{\mu\nu\rho\sigma} G_{\mu\nu}^a(t,x) G_{\rho\sigma}^a(t,x)$, via the insertion of $\delta_{Q,0}$ into the path integral expectation values. This choice is convenient because lattice simulations with SF boundary conditions suffer from the topology freezing problem at small lattice spacing~\cite{DelDebbio:2004xh,Schaefer:2010hu,Fritzsch:2013yxa}. Projecting to the zero charge sector avoids this problem~\cite{Fritzsch:2013yxa}. The renormalization scheme is completely defined by adding that we use \begin{equation} T=L \;\text{ and }\; c=0.3\,. \end{equation} This choice is fixed in this work, apart from \sect{sec:cont} where we also consider other values of $c$. \subsection{Lattice} For our lattice computations we work on a $(L/a)^3\times (T/a)$ lattice with lattice spacing $a$. We use the tree-level improved Symanzik gauge action~\cite{Luscher:1985zq}. With $\mathcal S_0$ and $\mathcal S_1$ denoting the set of $1\times 1$ and $2\times 1$ oriented loops respectively, we have \begin{equation} \label{eq:Sgauge} S_\mathrm{G}[U] = \frac{1}{g_0^2}\sum_{k=0}^1 c_k \sum_{\mathcal C \in \mathcal S_k} w_k(\mathcal C){\rm tr} [1 - U(\mathcal C)]\,, \end{equation} where $U(\mathcal C)$ denotes the product of the link variables $U_\mu(x)$ around the loop $\mathcal C$. Tree-level $\rmO(a^2)$ bulk improvement is guaranteed by choosing $c_0=5/3$ and $c_1=-1/12$. Modifications of the gauge action near the time boundaries $x_0=0,T$ lead to Schr\"odinger Functional boundary conditions in the continuum. We stick to {\sf option B} of reference~\cite{Aoki:1998qd} and choose the weights $w_k(\mathcal C)$ as follows:\footnote{All simulations were performed with a modified version of the \texttt{openQCD v1.0} package~\cite{Luscher:2012av}. The documentation of the package provides useful information for the interested reader.} \begin{subequations} \begin{equation} w_0(\mathcal C) = \left\{ \begin{array}{ll} 1/2, & \text{all links in $\mathcal C$ are on the time boundary}\\ \ct(g_0), & \text{$\mathcal C$ has one link on the time boundary}\\ 1, & \text{otherwise}\\ \end{array} \right.\,, \end{equation} \begin{equation} w_1(\mathcal C) = \left\{ \begin{array}{ll} 1/2, & \text{all links in $\mathcal C$ are on the time boundary}\\ 3/2, & \text{$\mathcal C$ has two links on the time boundary}\\ 1, & \text{otherwise}\\ \end{array} \right.\,. \end{equation} \end{subequations} The improvement coefficient $\ct$ is inserted with the available one-loop precision, see \sect{s:boundary}. We simulate three massless flavors of non-perturbatively $\rmO(a)$-improved Wilson fermions with action \begin{equation} \label{eq:Sfermion} S_\mathrm{F}[U,\overline\psi,\psi] = a^4 \sum_{i=1}^{\nf} \sum_{x} \overline \psi_i(x) (D+m_0)\psi_i(x) \,, \end{equation} where $m_0$ is the bare quark mass that we set to the critical value $\mcrit$. The Dirac operator can be decomposed as \begin{equation} D = D_\mathrm{w} + \delta D_{\rm sw} + \delta D_{\rm bnd}, \\ \end{equation} where $D_\mathrm{w}$ is the usual lattice Wilson--Dirac operator, \begin{equation} \delta D_{\rm sw} \psi(x) = ac_{\rm sw}\frac{\imath}{4} \sigma_{\mu\nu}F_{\mu\nu}^{\rm cl}(x)\,\psi(x), \end{equation} is the Sheikholeslami--Wohlert term~\cite{Sheikholeslami:1985ij} with $F_{\mu\nu}^{\rm cl}$ being the lattice clover discretized version of the field strength tensor, and finally \begin{equation} \delta D_{\rm bnd}\psi(x) = (\cttil-1)\frac{1}{a} (\delta_{x_0/a,1} + \delta_{x_0/a,\;T/a-1}) \psi(x), \end{equation} is the contribution of the fermionic boundary counterterm~\cite{Luscher:1996sc}. We use the non-perturbatively determined $c_{\rm sw}(g_0)$~\cite{Bulava:2013cta}. Except at the time boundaries, our action is the same as the one used by the \texttt{CLS} collaboration~\cite{Bruno:2014jqa}. With our choice of boundary conditions in time, the complete removal of $\rmO(a)$ effects requires the knowledge of the boundary improvement coefficients $\ct, \cttil$. We use their values determined in perturbation theory. As an estimate of the uncertainty of perturbation theory we use the last known term in the perturbative series, the one-loop term (cf. \sect{s:boundary}). Details will be discussed later. SF boundary conditions on the lattice are imposed in complete analogy to the continuum counterparts. The gauge links obey \begin{equation} \label{eq:linksbc} \left.U_k(x)\right|_{x_0=0,T} = 1\,,\qquad k=1,2,3\,, \end{equation} while the fermion boundary conditions remain the same as in the continuum, eq.~\eqref{eq:fermionbc}. There is much freedom when translating the GF equation eq.~\eqref{eq:flow}, and the energy density used to define the coupling (see eq.~\eqref{eq:coupling}) to the lattice. Different choices differ only by cutoff effects, but these can be substantial. A popular choice is the Wilson flow (no summation over $\mu$) \begin{equation} \label{eq:wflow} a^2\left(\partial_t V_\mu(t,x)\right) V_\mu(t,x)^\dagger = -g_0^2 \partial_{x,\mu} S_{\rm W}[V],\qquad V_\mu(0,x) = U_\mu(x) \,, \end{equation} where $V_\mu(t,x)$ are the links at positive flow time and $\partial_{x,\mu} S_{\rm W}[V]$ is the force deriving from the Wilson plaquette gauge action (i.e. eq.~\eqref{eq:Sgauge} with the choices $c_0=1, c_1=0$). It has been shown~\cite{Ramos:2015baa} that this choice introduces $\rmO(a^2)$ cutoff effects when integrating the flow equation. They can be avoided by using the Symanzik $\rmO(a^2)$ improved ``Zeuthen flow'' equation (no summation over $\mu$) \begin{equation} a^2\left(\partial_t V_\mu(t,x)\right) V_\mu(t,x)^\dagger = -g_0^2 \left(1 + \frac{a^2}{12}\Delta_\mu \right) \partial_{x,\mu} S_{\rm LW}[V],\qquad V_\mu(0,x) = U_\mu(x) \,, \end{equation} where $\partial_{x,\mu} S_{\rm LW}[V]$ is the force deriving from the Symanzik tree-level improved (L\"uscher-Weisz) gauge action eq.~\eqref{eq:Sgauge} (see~\cite{Ramos:2015baa} for more details). We insert the correction term $\Delta_\mu=\nabla_\mu^\ast\nabla_\mu^{}$ into the flow equation for all links $(x,\mu)$ except for those links $(x,0)$ where an end-point touches one of the SF boundaries $x_0=0,T$. For those links we simply choose~$\Delta_0=0$. The discretized observable is defined to be the action density derived from the L\"uscher-Weisz gauge action (i.e. eq.~\eqref{eq:Sgauge}). Our choices guarantee that, neglecting small terms coming from the time boundaries at $x_0=0,T$, we do not introduce any $\rmO(a^2)$ cutoff effects neither through the flow equation nor through the definition of the observable. The remaining cutoff effects in our flow quantities are hence produced by our lattice action eqs.~(\ref{eq:Sgauge},\ref{eq:Sfermion}) and by the initial condition for the flow equation at $t=0$~\cite{Ramos:2015baa}. Although this is our preferred setup, in several parts of the work we will compare the results with the more standard Wilson flow / clover-observable discretization. At non-zero $a/L$ our coupling definition reads \begin{equation} \label{eq:coupling1} \gbar^2_{\rm GF}(L) = \gbar^2_{0.3}(L) \end{equation} with \begin{equation} \gbar^2_{c}(L) = t^2\hat{\mathcal N}^{-1}(c,a/L) \frac{\langle E_\mathrm{mag}(t,x) \hat\delta(Q)\rangle}{\langle \,\hat\delta(Q) \rangle} \Big|_{\sqrt{8t}=cL,\, x_0=T/2} \,, \label{eq:lattcoupling} \end{equation} and \begin{equation} E_\mathrm{mag}(t,x) = \frac{1}{4}[G_{ij}^a(t,x)G_{ij}^a(t,x)]^{\rm LW}. \end{equation} Several comments are in order. We have chosen to define the coupling through just the magnetic part $E_\mathrm{mag}$ of $E$ since this choice has a lower sensitivity to the boundary improvement coefficient $\ct$, and because its (tree-level) $\rmO(a^2)$ improvement does not need any further terms\footnote{In contrast, the electric components would require additional terms to cancel total derivative contributions that do not vanish because of our Schr\"odinger Functional boundary conditions~\cite{Ramos:2015baa}. }. As in \cite{Fritzsch:2013je} the normalization factor $\hat{\mathcal N}(c,a/L)$ is computed on the lattice with our choices of discretization (action, flow and observable), such that in the relation $\gbar^2_{\rm GF}=g_0^2+\rmO(g_0^4)$ the leading term has all lattice artifacts removed. Due to the fact that we use a tree-level improved action, and neither the Zeuthen flow equation nor the L\"uscher-Weisz observable discretization introduce any $\rmO(a^2)$ artifacts, we furthermore have \begin{equation} \delta(c,a/L) \equiv \frac{\hat{\mathcal N}(c,a/L)}{\mathcal N(c)} - 1 = {\rm O}((a/L)^4)\,\,, \label{e:delta} \end{equation} i.e. the lattice normalization in fact only corrects sub-leading $\rmO((a/L)^4)$ terms. Finally, on the lattice one has to clarify what is meant by projecting to zero topology. We define the topological charge by \cite{Luscher:2010iy} \begin{equation} \label{eq:qtop} Q = \frac{1}{32\pi^2}\sum_x \epsilon_{\mu\nu\rho\sigma}\, [G_{\mu\nu}^a(t,x) G_{\rho\sigma}^a(t,x)]^{\rm cl}\,, \end{equation} using the clover discretization of the field strength tensor of $V$. We then set $\sqrt{8t}=cL$ with $c=0.3$ and use the Zeuthen flow. With this definition the topological charge is not integer valued but approaches integers close to the continuum limit. Therefore, the Kronecker $\delta_{Q,0}$ of the continuum definition is replaced by \begin{equation} \label{eq:deltaq} \hat\delta(Q) = \begin{cases} 1\,, & \text{if } |Q|<0.5\\ 0\,, & \text{otherwise}\,. \end{cases} \end{equation} \subsection{Matching with the scale $1/L_0$} In this section we relate the scale $1/L_0$ defined in~\cite{Brida:2016flw} by the condition \begin{equation} \bar g_{\rm SF}^2(L_0) = 2.012\,, \end{equation} to the coupling in our GF scheme. More precisely, we define the function \begin{equation} \varphi(u) = \lim_{a/L\rightarrow 0} \Phi(u,a/L)\,, \end{equation} with \begin{equation} \Phi(u,a/L) = \gbar^2_{\rm GF}(2L) \Big|_{\gbar^2_{\rm SF}(L)=u, m=0}\,. \end{equation} Recall that the SF coupling is defined with a background field, while the boundary conditions of our gradient flow scheme correspond to a zero background field. The connection between the couplings goes through the common bare parameters defined by the condition $\gbar^2_{\rm SF}(L)=u, m=0$, together with the resolution $a/L$. We do not need the functional dependence on $u$, but rather just the single value $\varphi(2.012)$. We combine the change of schemes SF $\to$ GF with a scale change by a factor of two, because this avoids the disadvantages of both schemes at the same time: $\gbar^2_{\rm GF}$ has noticeable cutoff effects when $a/L$ is too small and $\gbar^2_{\rm SF}$ needs very large statistics if $L/a$ is too large. A last choice to make is the discretization. Here we choose the Wilson gauge action where the counter-terms (coefficients $\ct, \cttil$, see \cite{Brida:2016flw}) which cancel linear $a$ effects are perturbatively known, such that they are suppressed to the negligible level of $g^8 a/L$. The action as well as the definition of the critical line $m=0$ is exactly as in \cite{Brida:2016flw,paperSF}. In fact, with the exception of $L/a=16$, the numerical values of $\beta,\kappa,\gbar^2_\mathrm{SF}$ in \tab{t:switch} are taken from there, interpolated to the fixed value $\gbar_\mathrm{SF}^2=2.012$. More details will be given elsewhere~\cite{paperSF}. Our measurements of the GF coupling on the doubled lattices (``Zeuthen flow'') are listed in table~\ref{t:switch}. The errors in the last column include the errors of $\bar g^2_{\rm SF}(L_0)$ (column 4 of \tab{t:switch}). Like for the step-scaling function in \eq{e:shift}, we use the derivative $\partial_u \Phi(u,a/L)\simeq \Phi(u,a/L)^2/u^2$ for the Gaussian error propagation. The additional error does not depend very much on this particular ansatz and is subdominant, as can be also seen in table~\ref{t:switch} and in \fig{fig:Lsw} where the errors both before and after error propagation are shown. \begin{table}[t!] \small \centering \begin{tabular}{clccccc} \toprule $L/a$ & $\quad\beta$ & $\kappa$ & $\gbar_\mathrm{SF}^2(L)$ & $\gbar_\mathrm{GF}^2(2L)$ & $\Phi(u,a/L)$ & \\ \midrule 6& 6.2735 & 0.1355713 & 2.0120(27)& 2.7202(36)& 2.7202(61)& \\ 8& 6.4680 & 0.1352363 & 2.0120(30)& 2.7003(41)& 2.7003(68)& \\ 12&6.72995 & 0.1347582 & 2.0120(37)& 2.6912(45)& 2.6912(80)& \\ 16&6.9346 & 0.1344121 & 2.0120(17)& 2.6742(65)& 2.6742(72) \\ \midrule \multicolumn{4}{l}{continuum limit} && 2.6723(64) \\ \bottomrule \end{tabular} \caption{ Data for both the SF and GF couplings as required for the matching procedure. } \label{t:switch} \end{table} The continuum extrapolation of $\Phi$ can be seen in~\fig{fig:Lsw}. We also show results with the Wilson flow, but the Zeuthen flow eq.~\eqref{eq:lattcoupling} has smaller cutoff effects. Due to the very high statistical correlation of the numbers, a combination of the two discretizations of the flow observable does not lead to an improvement of the final errors. \begin{figure} \centering \includegraphics[width=0.8\textwidth]{plots/Lsw} \caption{Continuum extrapolation of $\bar g^2_{\rm GF}(2L_0)$ with the bare parameters determined by the condition $\bar g_{\rm SF}^2(L_0) = 2.012$. The continuum extrapolation is performed using both the Wilson flow/Clover discretization and our preferred setup Zeuthen flow/LW observable (the latter shows smaller discretization effects). The two types of error bars for each data point correspond to the inclusion or not of the propagated error for the SF coupling, cf.~text.} \label{fig:Lsw} \end{figure} We therefore quote only the continuum limit from the Zeuthen flow. The main result of this section is then \begin{equation} \bar g_{\rm GF}^2(2L_0) = \varphi(2.012) = 2.6723(64)\,. \label{e:phi2} \end{equation} \subsection{The ratio $L_{\rm had} / L_0$ } Using our fits to the $\beta$-function, the scale factor $s=L_2/L_1$ between $g_2=\gbar(L_2)$ and $g_1=\gbar(L_1)$ can be easily computed via \begin{eqnarray} \log(s(g_1^2,g_2^2)) = \int_{g_1}^{g_2}\rmd x \frac{P(x^2) }{x^3} = \frac{p_0}{2g_1^2} - \frac{p_0}{2g_2^2} + p_1 \log\left(\frac{g_2}{g_1}\right) + \sum_{n=1}^{n_\mathrm{max}} \frac{p_{n+1}}{2n} [g_2^{2n} - g_1^{2n}] \,. \end{eqnarray} Numbers for $s$ from the various fits are shown in the last column of \tab{tab:ui}. They refer to our default value $g_2^2=\gbar_{\rm GF}^2(L_{\rm had})=11.31$ defining $L_\mathrm{had}$ and $g_1^2=\gbar_{\rm GF}^2(2L_0)=2.6723$ given by the central value of $\varphi(2.012)$ determined above. The error of $\varphi$ can be propagated straightforwardly, yielding \begin{equation} L_\mathrm{had}/L_0 = 21.86(42)\,. \label{e:LhadL0} \end{equation} As $\Lambda_{\msbar}^{(3)} = 0.0791(21)/ L_0 $ is known~\cite{Brida:2016flw}, the last step on the way to a determination of the $\Lambda$-parameter in physical units is the computation of a physical observable of dimension mass in large volume and at the physical masses of the three quarks. This has to be combined with $L_\mathrm{had}/a$ at identical bare couplings and extrapolated to $a=0$. Passing this last milestone still needs input from the \texttt{CLS} ensembles \cite{Bruno:2014jqa}. \section{Introduction} \input{intro.tex} \section{The running coupling} \label{sec:coupling} \input{coupling.tex} \section{General considerations on the continuum limit of flow quantities} \label{sec:cont} \input{continuum.tex} \section{Continuum extrapolations and the $\beta$-function} \label{sec:step} \input{step.tex} \section{Connection of scales $1/L_0$ and $1/L_\mathrm{had}$} \label{sec:scales} \input{matchL0.tex} \label{sec:L0} \section{Discussion} \label{sec:conclusions} \input{conclusions.tex} \addcontentsline{toc}{section}{Acknowledgement} \begin{acknowledgement} We thank our colleagues in the ALPHA collaboration, in particular C.~Pena, S.~Schaefer, H.~Simma, and U.~Wolff for many useful discussions. We would also like to show our gratitude to S. Schaefer and H. Simma for their invaluable contribution regarding important modifications to the \texttt{openQCD} code. Furthermore, we have benefited from the joint production of gauge field ensembles with a project computing the running of quark masses. We thank I. Campos, C. Pena and D. Preti for this collaboration. We also thank Pol Vilaseca who computed the used one-loop coefficient of $\cttil$. We thank the computer centres at HLRN (bep00040) and NIC at DESY, Zeuthen for providing computing resources and support. We are indebted to Isabel Campos and thank her and the staff at the University of Cantabria at IFCA in the Altamira HPC facility for computer resources and technical support. R.S. acknowledges support by the Yukawa Institute for Theoretical Physics at Kyoto University, where part of this work was carried out. S.S. acknowledges support by SFI under grant 11/RFP/PHY3218. P.F. acknowledges financial support from the Spanish MINECO's ``Centro de Excelencia Severo Ochoa'' Programme under grant SEV-2012-0249, as well as from the grant FPA2015-68541-P (MINECO/FEDER). This work is based on previous work \cite{Sommer:2015kza} supported strongly by the Deutsche Forschungsgemeinschaft in the SFB/TR~09. \end{acknowledgement} \newpage \subsection{Strategy and data set} In practice these conditions have to be implemented by a tuning of the bare parameters such that the renormalized ones are fixed as described. We briefly explain our strategy to arrive at a precise tuning for a few appropriate values of $u$ and the estimates of $\Sigma$. \input{tables/Sigma.tex} \begin{enumerate} \item The tuning of the bare mass $m_0$ was already carried out in \cite{Nf3tuning} for the full range of bare couplings and $a/L$ considered. In the continuum limit the chiral point of vanishing quark mass is unique; the $a/L$-dependence is a cutoff effect. However, in order to have a smooth extrapolation to the continuum limit, one first defines exactly which mass is set to zero at a fixed $a/L$ and then determines the function $m_{\rm cr}(g_0,a/L)$. In the cited reference this task was carried out with high precision. As a result we can neglect any deviations from the exact critical line. The used functions $m_{\rm cr}(g_0,a/L)$ are listed in \App{ap:simulation}. \item As a next step we performed 9 precise simulations with $L/a=16$. These determine 9 values of $u=v_i, \; i=1,\ldots,9$, which we take as our prime targets to compute $\sigma(\utarg_i)$. We further need values of $\beta$ for $L/a=8,12$ such that $\gbar_{\rm GF}^2$ equals our target values $\utarg_i$. This is achieved by an interpolation of several simulations described in detail in appendix~\ref{ap:tuning_gbar}. At this point we found for each $L/a=8,12,16$ nine values of $\beta$ where couplings $\gbar_{\rm GF}^2(L)$ match rather well. These $\beta$-values are listed in \tab{tab:Sigma}. \item We then carried out simulations on the doubled lattices at the same values of $\beta,m_0$, see columns 4-6 in \tab{tab:Sigma}. The data for $\gbar_{\rm GF}^2(2L)$ in the table are estimates of the step scaling function $\Sigma(u,a/L)$ at $u=\gbar_{\rm GF}^2(L)_{\beta,L/a}$. As our estimates for $\gbar_{\rm GF}^2(L)$ we could take the numbers from the interpolation in step 2. These are simply the same as those at $L/a=16$. However, in order to enhance the precision, we perform separately at each $L/a=8,12$ an interpolating fit to all available data of \tab{tab:smallL}. These fits determine $\gbar_{\rm GF}^2(L)$ in \tab{tab:Sigma}. Details on the very well determined interpolation are given in \App{ap:tuning_gbar}. \item As a last step we propagate the errors of $\gbar_{\rm GF}^2(L)$ into those of $\Sigma$. As we will see in section~\ref{sec:ubyu} our non-perturbative data is well described by the functional form \begin{equation} \frac{1}{\Sigma} - \frac{1}{u} = {\rm constant}\,, \label{e:shift} \end{equation} which suggests to use the derivative, $\partial \Sigma / \partial u = \Sigma^2/u^2$ for the error propagation. This yields the last column of \tab{tab:Sigma}, where $u$ is the central value of $\gbar_{\rm GF}^2$ without error. The difference of the errors in columns 4 and 7 is mostly due to the uncertainty of $\rmO(a)$ improvement, \eq{e:deltact}; a small part of the uncertainty is also contributed by the propagated errors of $\gbar_{\rm GF}^2(L)$. \end{enumerate} The last two rows in \tab{tab:Sigma} are from additional simulations performed with the aim of having $\gbar_{\rm GF}^2(2L)\approx 11.3$. They will also be useful below. \subsection{Continuum extrapolation of the step scaling function} \label{s:fits} The results at finite resolution need to be extrapolated to the continuum. It is apparent from \tab{tab:Sigma} that this is an essential step, since $\Sigma$ changes by up to 20\% in the accessible range of $a/L$ -- far outside the statistical errors. However, our investigation in \sect{sec:cont} showed that the cutoff effects are strongly dominated by the $(a/L)^2$ terms, which motivates extrapolations linear in this variable. Given the high precision which we achieve, this is a crucial part of this work, and a detailed analysis will follow. In particular, we first study the systematic effects in the continuum determination of $\sigma(u)$ by performing independent extrapolations at 9 fixed values of $u$. These can transparently be illustrated by simple graphs. \subsubsection{$\sigma(u)$ and systematic effects in the continuum extrapolations} \label{sec:sys} \label{sec:ubyu} \begin{figure} \centering \includegraphics[width=0.9\textwidth]{plots/sigma.pdf} \caption{Continuum extrapolation of $\Sigma$ of data shifted to 9 different values of $u$. } \label{f:Sigma} \end{figure} Apart from the last two rows of \tab{tab:Sigma}, the deviations of $\gbar_{\rm GF}^2(L)$ from the 9 target values $\utarg_i$ (the ones at $L/a=16$) are very small. We can therefore simply shift the data for $\Sigma$ using \eq{e:shift}. The resulting data is shown in \fig{f:Sigma}. Within the uncertainties, linearity in $a^2$ is perfect and we extrapolate by \begin{eqnarray} \Sigma(\utarg_i,a/L) &=& \sigma_i + \tilde r_i \times (a/L)^2 \, , \label{e:fitGF2a} \end{eqnarray} at each value $\utarg_i$. The quality of the fits is very good with a total $\chi^2$ of 6.3 with 9 degrees of freedom. The fit parameters $\sigma_i$, second column of \tab{t:sigmai}, are first estimates of the continuum step scaling function. It turns out that the non-perturbative results are well described by $1/\sigma_i - 1/\utarg_i \approx -0.083$ (see last two columns of~\tab{t:sigmai}), which is the functional form of one-loop perturbation theory, but with a coefficient slightly different from the perturbative $-0.0790$. This surprising behavior holds out to $\sigma(u) = \rmO(10)$. We will come to a comparison with perturbation theory later. For now this suggests to fit also \begin{eqnarray} 1/\Sigma(\utarg_i,a/L) &=& 1/\sigma_i + r_i \times (a/L)^2 \,. \label{e:fitGF2b} \end{eqnarray} The quality of these fits is as good as the previous ones ($\chi^2 = 6.3$ for 9 degrees of freedom). Discriminating statistically between the two fit forms would require far higher precision than we have. An implicit assumption behind \eq{e:fitGF2a} and \eq{e:fitGF2b} is that higher orders in $a^2$ are negligible. When this is the case, the fit-parameters $\sigma_i$ have to agree between the two fits (see \tab{t:sigmai}). There is agreement at the level of one standard deviation. However, the difference between the two extrapolations is of course systematic: $\sigma_i$ are always larger when they are extrapolated following \eq{e:fitGF2b}. This is also apparent in \fig{f:Sigma}. Furthermore, when nonlinearities in $a^2$ are negligible, there is the more stringent condition $r_i = - \tilde r_i/\sigma_i^2$. As expected, we find more significant differences between these slope parameters\footnote{Note that the determination of asymptotic values of $r_i$ or $\tilde r_i$ is not our goal. We only discuss them because they show that differences between the continuum limits estimated from \eq{e:fitGF2a} and \eq{e:fitGF2b} have to be taken into account.} (see \fig{f:rhoi}). Note that the difference between the functional forms of \eq{e:fitGF2a} and \eq{e:fitGF2b} is of order $a^4$. Due to the relatively large $\rmO(a^2)$ effects, these are not negligible at large values of the coupling (at small values of $u$ we have good agreement between both type of fits). It is this ${\rmO}(a^4)$ effect that produces a systematic shift in the parameters $\sigma_i, r_i$. \begin{figure}[tb] \centering \includegraphics[width=0.75\textwidth]{plots/slopes} \caption{Slopes $r_i$ of \eq{e:fitGF2b} and the in leading order in $a^2$ equivalent $-\tilde r_i/\sigma_i^2$ with $\tilde r_i$ of \eq{e:fitGF2b}. } \label{f:rhoi} \end{figure} \begin{table}[t!] \small \centering \begin{tabular}{lllll}\toprule $\utarg_i$ &\multicolumn{2}{c}{ $\sigma_i$ } &\multicolumn{2}{c}{ $(1/\sigma_i - 1/\utarg_i)\times 10^{2}$ } \\ & \protect\eq{e:fitGF2a} & \protect\eq{e:fitGF2b} & \protect\eq{e:fitGF2a} & \protect\eq{e:fitGF2b} \\ \midrule 6.5489 & $ 14.005(175)$ & $ 14.184(197)$ & $-8.13(10)$ & $ -8.22(12)$ \\ 5.8673 & $ 11.464(123)$ & $ 11.654(146)$ & $-8.32(10)$ & $ -8.46(13)$ \\ 5.3013 & $\pz 9.371(\pz 79)$ & $\pz 9.468(\pz 89)$ & $-8.19(11)$ & $ -8.30(12)$ \\ 4.4901 & $\pz 7.139(\pz 47)$ & $\pz 7.181(\pz 51)$ & $-8.26(11)$ & $ -8.34(12)$ \\ 3.8643 & $\pz 5.622(\pz 28)$ & $\pz 5.641(\pz 30)$ & $-8.09(10)$ & $ -8.15(14)$ \\ 3.2029 & $\pz 4.354(\pz 19)$ & $\pz 4.367(\pz 21)$ & $-8.25(12)$ & $ -8.32(13)$ \\ 2.7359 & $\pz 3.541(\pz 14)$ & $\pz 3.550(\pz 15)$ & $-8.31(12)$ & $ -8.38(13)$ \\ 2.3900 & $\pz 2.991(\pz 10)$ & $\pz 2.996(\pz 10)$ & $-8.40(12)$ & $ -8.46(13)$ \\ 2.1257 & $\pz 2.575(\pz\pz 9)$ & $\pz 2.578(\pz\pz 9)$ & $-8.21(14)$ & $ -8.26(14)$ \\ \midrule \multicolumn{3}{l}{Constant fit:} & $-8.233(37)$ & $-8.316(42)$ \\ \bottomrule \end{tabular} \caption{Examples for the continuum limits of the step scaling function\\ $\sigma_i=\lim_{a/L\to0}\Sigma(v_i,a/L)$ obtained by various extrapolations at fixed values of $u=v_i$. The last row shows fits of columns 4 and 5 to a constant. These fits to a constant provide an excellent description of our data. } \label{t:sigmai} \end{table} A fit of $1/\sigma(u) - 1/u$ to a constant provides a good description of our continuum data ($\chi^2/{\rm dof}< 1$) in the whole range $u\in[2.1\,,\,6.5]$. Although the systematic difference between the continuum fits \eq{e:fitGF2a} and \eq{e:fitGF2b} was point by point in $\sigma_i$ below our statistical accuracy, the uncertainty in a constant fit to $1/\sigma(u) - 1/u$ is reduced by a factor 3 due to the fact that we use 9 independent values to determine it. The systematic effect then becomes clearly noticeable. \subsubsection{Fitting strategy} \label{sec:sys2} The previous considerations illustrate that the ${\rmO}(a^4)$ effects are not large, but still cannot simply be ignored. The size of the $\rmO(a^2)$ term, that amounts to 20\% at the largest value of the coupling $u_{\rm max}=6.5$ at $L/a=8$, suggests that there the $\rmO(a^4)$ effects are around 5\%. Taking into account that a $u$-independent term is removed by the normalization of the coupling, this translates into the rough scaling \begin{equation} \Delta^{\rm sys} \Sigma_i = 0.05\,\Sigma_i\, \bigg(8\frac{a}{L}\bigg)^4\, \frac{u}{u_{\rm max}}\,. \end{equation} This systematic effect is negligible compared with our statistical accuracy for the lattices with $L/a\ge 12$ at all values of $u$ (in fact the differences seen in \tab{t:sigmai} become insignificant when we perform the extrapolations with just $L/a \ge 12$), but it becomes dominant at $L/a=8$ and large values of $u$. When fitting to some particular functional form one performs a minimization of a $\chi^2$ function, defined as \begin{equation} \chi^2(p_\alpha) = \sum_{i=1}^{N_{\rm data}} W_i\,\big[f(x_i;p_\alpha) - y_i\big]^2\,, \label{e:chisq} \end{equation} where $p_\alpha$ represent the parameters that describe the function $f(x_i;p_{\alpha})$, and $x_i,y_i$ are the independent and dependent variables, respectively. The weight, $W_i$, of each data point, is usually taken from their uncertainty, but here we should take into account that we cannot expect our data to be more accurately described by a linear function in $a^2$ than $\Delta^{\rm sys}\Sigma_i$. For the following we therefore define the weights by \begin{equation} \label{eq:fitw} W_i^{-1} = (\Delta\Sigma_i)^2 + (\Delta^{\rm sys}\Sigma_i)^2 \,, \end{equation} which strongly reduces the weights of the points further away from the continuum. Note that we distinguish the weights of the fits from the errors $\Delta\Sigma_i$ of the data (statistical and the one due to the uncertainty in $\ct$), which enter the error propagation from the data to the parameters of the fit. As an example for the consequences of introducing $W_i$, we repeat fits \eq{e:fitGF2a} and \eq{e:fitGF2b}. We obtain continuum values $1/\sigma(u)-1/u$ which are still perfectly described by a constant, but now the values of the constants are $-0.0824(5)$ and $-0.0830(6)$, respectively. Comparing with the last row of \tab{t:sigmai} we see that uncertainties have increased and central values are closer. Now both types of fits agree within one standard deviation. \subsubsection{Determination of $\sigma(u)$} \begin{figure}[tb] \centering \includegraphics[width=\textwidth]{plots/fit_global} \caption{Comparison between different determinations of the continuum step scaling function $\sigma(u)$. Continuum extrapolations at fixed values of $u$ as described in \eq{e:fitGF2a} and \eq{e:fitGF2b} are labeled $\Sigma$ and $1/\Sigma$ respectively. A global fit with $\nsig=n_\rho=2$ is also shown, cf. \eq{eq:global}. The figure shows good agreement. } \label{f:global} \end{figure} As already noted, our non-perturbative data is very well described by an effective one-loop functional form. This suggests two strategies to determine the continuum step scaling function. First we can perform continuum extrapolations at constant values of $u$ as suggested in the previous sections (\eq{e:fitGF2a} and \eq{e:fitGF2b}). The continuum values of $\sigma(\utarg_i)$ can then be fitted to a functional form \begin{equation} \frac{1}{\sigma(\utarg_i)} - \frac{1}{\utarg_i} = Q(\utarg_i)\,, \qquad Q(u)= \sum_{k=0}^{\nsig-1} c_k u^k\,. \label{e:Qfit} \end{equation} The number of parameters $\nsig$ is varied in order to check the stability of the procedure. Second, one can also consider the possibility of combining the ansatz for the cutoff effects immediately with the parametrization of the continuum function $\sigma(u)$ \begin{equation} \label{eq:global} \frac{1}{\Sigma(u,a/L)} - \frac{1}{u} = Q(u) + \rho(u) (a/L)^2\,. \end{equation} Apart from checking the stability of the procedure, advantages of this global fit are as follows. The shifts to common values of $u$ for different $a/L$ are not needed and the data in the last two rows of \tab{tab:Sigma} are easily included. Also more general forms of cutoff effects can be tried. Our investigation suggests that \begin{eqnarray} \rho(u) =\sum_{i=0}^{n_\rho-1} \rho_i u^i\,, \label{e:rho} \end{eqnarray} is a good parametrization of $\rho$ when at least $n_\rho =2$ terms are included. Figure~\ref{f:global} shows a comparison between the individual extrapolations at fixed $u$ according to \eq{e:fitGF2a} and \eq{e:fitGF2b}, and a global fit \eq{eq:global} with $\nsig=n_\rho=2$. We recall that all fits are performed with the weights of \eq{eq:fitw}. \begin{table}[t!] \small \centering \begin{tabular}{cccc|llllll} \toprule Fit& $\nsig$& $n_\rho$& $W_i$ & $u_1$&$u_2$&$u_3$& $u_4$ & $s(g_1^2,g_2^2)$\\ \midrule $\Sigma$,$\sigma$ &3& -- & $\Delta \Sigma_i^{-2}$ & $ 5.866(21)$ & $ 3.955(17)$ & $ 2.981(13)$ & $ 2.392(11)$ & -- \\ $\Sigma$, $Q$ &3&--& $\Delta \Sigma_i^{-2}$ & $ 5.867(21)$ & $ 3.956(16)$ & $ 2.981(14)$ & $ 2.391(12)$ & -- \\ $1/\Sigma$, $Q$ &3&--& $\Delta \Sigma_i^{-2}$ & $ 5.832(21)$ & $ 3.927(17)$ & $ 2.960(13)$ & $ 2.374(11)$ & -- \\ $1/\Sigma$, $P$ &2& -- & $\Delta \Sigma_i^{-2}$ & $ 5.832(21)$ & $ 3.927(15)$ & $ 2.959(13)$ & $ 2.374(11)$ & $ 10.82(14)$ \\ $1/\Sigma$, $P$ &3& -- & $\Delta \Sigma_i^{-2}$ & $ 5.831(21)$ & $ 3.926(17)$ & $ 2.959(13)$ & $ 2.374(11)$ & $ 10.82(15)$ \\ \midrule $\Sigma$, $P$ &3& -- & (\ref{eq:fitw}) & $ 5.870(28)$ & $ 3.954(22)$ & $ 2.976(17)$ & $ 2.385(15)$ & $ 11.00(20)$ \\ $1/\Sigma$, $P$ &1&3 & (\ref{eq:fitw}) & $ 5.843(20)$ & $ 3.939(18)$ & $ 2.971(16)$ & $ 2.385(13)$ & $ 10.96(18)$ \\ $1/\Sigma$, $P$ &2&3 & (\ref{eq:fitw}) & $ 5.864(26)$ & $ 3.944(19)$ & $ 2.968(16)$ & $ 2.378(14)$ & $ 10.90(18)$ \\ $1/\Sigma$, $P$ &3&3 & (\ref{eq:fitw}) & $ 5.864(27)$ & $ 3.944(21)$ & $ 2.968(17)$ & $ 2.378(14)$ & $ 10.90(19)$ \\ \eqref{eq:global2}, $P$ &2&2& (\ref{eq:fitw}) & $ 5.872(27)$ & $ 3.949(19)$ & $ 2.971(16)$ & $ 2.379(14)$ & $ 10.93(19)$ \\ \eqref{eq:global2}, $P$ &3&3& (\ref{eq:fitw}) & $ 5.874(28)$ & $ 3.951(22)$ & $ 2.972(17)$ & $ 2.379(14)$ & $ 10.93(20)$ \\ \bottomrule \end{tabular} \caption{Coupling sequence \eq{e:recurs} with $u_0=11.31$ and scale factors $s(g_1^2,g_2^2)$ for $g_1^2=2.6723,\,g_2^2=11.31$ for different fits to cutoff effects and the continuum $\beta$-function. Fits are labelled by $\Sigma$ or $1/\Sigma$ for continuum extrapolations according to \eq{e:fitGF2a} or \eq{e:fitGF2b} respectively while the parametrization of the continuum step scaling function is labelled as $\sigma$ for $\sigma(u)=u+s_0u^2 + s_1u^3 + u^3\sum_{n=1}^\nsig c_n u^n$ and labelled as $Q$ for \eq{e:Qfit}. Fits to the $\beta$-function (\eq{e:betafct}) are labelled $P$. For global fits we specify $n_\rho$, of \eq{e:rho}, while its absence indicates a fit of data extrapolated to the continuum at each value of $u=v_i$. The weights $W_i$ refer to the definition of $\chi^2$, \eq{e:chisq}. } \label{tab:ui} \end{table} A more quantitative test of the agreement between the $\sigma$ obtained from different analysis is through the sequence $u_0=11.31,\, u_{i\geq1}$, \eq{e:recurs}. We collect this information in \tab{tab:ui}. Once the polynomial is not too restricted, the results depend very little on the number of terms $\nsig$ since we use this polynomial interpolation only in the range where data are available. \subsection{Determination of the $\beta$-function} \begin{figure}[t] \centering \includegraphics[width=0.9\textwidth]{plots/beta} \caption{Comparison between two different fits to the $\beta$-function. They corresponds to the results quoted in the last two rows of table~\ref{tab:ui}.} \label{fig:beff} \end{figure} Since our main goal is the determination of the scale factor $L_{\rm had}/L_0$ (see \eq{e:scalefactor}) it is very convenient to replace the parametrization of $\sigma(u)$ by a parametrization of the $\beta$-function. Namely, we write \begin{eqnarray} \beta(g) = - \frac{g^3}{P(g^2) }\,,\quad P(g^2) = p_0 +p_1 g^2 + p_2 g^4 + \ldots\,. \label{e:betafct} \end{eqnarray} The one-loop effective $\beta$-function just corresponds to the choice $P(u) = p_0$, while higher order terms parameterize possible (obviously small) deviations useful for a more detailed analysis and an estimate of uncertainties. The step scaling function is then given by \begin{eqnarray} \label{e:sigmaint} \begin{split} \log(2) &= -\int_{\sqrt{u}}^{\sqrt{\sigma(u)}} \frac{\rmd x}{\beta(x)} = \int_{\sqrt{u}}^{\sqrt{\sigma(u)}}\rmd x \frac{P(x^2) }{x^3}\\ &= -\frac{p_0}{2}\left[\frac{1}{\sigma(u)} - \frac{1}{u}\right] + \frac{p_1}{2} \log\left[\frac{\sigma(u)}{u}\right] + \sum_{n=1}^{n_\mathrm{max}} \frac{p_{n+1}}{2n} \left[\sigma^{n}(u) - u^{n}\right]\,, \end{split} \end{eqnarray} where $\nsig$ parameters correspond to $n_\mathrm{max} = \nsig-2$. The parameters $p_i,\,i=0,\ldots, \nsig-1$ in \eq{e:betafct} can be obtained by fitting our data for $\sigma(u)$ to \eq{e:sigmaint}. Any of our previous methods to extrapolate the lattice step scaling function $\Sigma(u,a/L)$ to the continuum can be used. In the case of the global fits, we make use of a further variant to parametrize the cutoff effects by fitting \begin{equation} \label{eq:global2} \log(2) + \widetilde \rho(u)(a/L)^2 = -\int_{\sqrt{u}}^{\sqrt{\Sigma(u,a/L)}} \frac{\rmd x}{\beta(x)}\,. \end{equation} Note that this fit ansatz differs from other global fits only by terms $\rmO(a^4)$. Comparing the different approaches provides an additional check that these effects are under control (see discussion in sections~\ref{sec:sys}, \ref{sec:sys2}). Solving numerically \eq{e:sigmaint} for $u$ we then compute the series of couplings $u_i$. In table~\ref{tab:ui} we compare the results to those obtained via the parameterizations of the step scaling function. There is good agreement between different types of fits. Figure~\ref{fig:beff} shows a comparison of the $\beta$-function obtained with two different fits. Their agreement underlines that all uncertainties have been taken care of and that the small difference to the one-loop $\beta$-function is significant. At couplings $g^2\sim 3$ and larger, including the universal two-loop term, $b_1 g^5$, in the $\beta$-function enlarges the difference. Therefore, perturbation theory is of little use in our range of couplings. In the following we will use as our central result and uncertainty the fit in the last row of the table. It has the largest uncertainties and parameters \begin{equation} p_0 = 16.26(69)\,,\quad p_1 = 0.12(26)\,,\quad p_2=-0.0038(211)\,, \end{equation} with covariance matrix \begin{equation} {\rm cov}(p_i,p_j) = \left( \begin{array}{rrr} 4.78071\times 10^{-1}& -1.76116\times 10^{-1}& 1.35305\times 10^{-2}\\ -1.76116\times 10^{-1}& 6.96489\times 10^{-2}& -5.54431\times 10^{-3}\\ 1.35305\times 10^{-2}& -5.54431\times 10^{-3}& 4.54180\times 10^{-4}\\ \end{array} \right)\,. \end{equation}
\section{Introduction} Nonlinear optical technologies allow for fine control over the phase, frequency and polarization of light that cannot be achieved through any other means\cite{boyd09.01}. Ultra-fast applications require the electronic mechanism, which originates in the virtual deformation of the electron cloud\cite{chang14.01}. The magnitude of the nonlinear optical response of microscopic systems has grown steadily, but due to the suboptimal use of the electron oscillator strength in reported quantum system, the response is still orders of magnitude from the fundamental limits.\cite{kuzyk01.01, kuzyk13.01}. While many investigations into microscopic nonlinear polarizabilities have focused on molecular systems, and in larger plasmonic-type systems\cite{litch15.01} at the other extreme, combinations of such systems have not been systematically studied. We propose that breakthroughs can be made by considering a class of hybrid materials that are based on coupling small molecular systems with nanostructures as they approach the quantum size regime. Monte Carlo investigations have shown that the maximum intrinsic nonlinear responses require energy differences which scale at least as $n^2$, termed superscaling\cite{shafe11.01}. Nanostructures are an example of a class of systems that exhibit superscaling characteristics. However, superscaling is not a sufficient condition. In addition, the electronic transition strengths must also be tailored to optimize wave function overlap between states, requiring additional features to be added to the underlying electronic potential. Interactions with a dipolar molecular system as a source of an external electric field can provide nontrivial electron dynamics within the framework determined by nanostructure boundary conditions. This new paradigm for device fabrication could result in considerable impact on future development of nanostructure materials for nonlinear optical applications, as well as motivate efforts toward developing plasmonic devices approaching the quantum regime. Our theoretical materials discovery program has found that the hyperpolarizability of a cylindrical nanowire with an aspect ratio of at least 10:1, which is attached to a permanent electric dipole with an inert spacer bridge, yields a first hyperpolarizability near the fundamental limit. The ideal configuration is found by varying the dipole strength and distance between the molecule and nanowire while calculating the off-resonant electronic response of an electron using the finite-difference time-domain (FDTD) technique\cite{sulli16.01}. While many theoretical models yield a hyperpolarizability near the limit, the system proposed here is within reach of modern nano-fabrication techniques. \begin{figure} \includegraphics[width=\linewidth]{DipoleWireFigCol_labels} \caption{The proposed nanostructure is displayed from three perspectives: (a) a two dimensional cross-section of the single particle wavefunction; (b) a three dimensional representation of the physical system with a wave function contour; and (c) a two dimensional cross-section of the underlying electronic potential used to model the molecule-nanowire structure. } \label{fig:colfig} \end{figure} \subsection{Hyperpolarizabilities} When the applied electric field is small, the polarization response to an optical field can be approximated by the expansion \begin{equation} P_i = P_i^{(0)}+\chi^{(1)}_{ij}\E_j+\chi^{(2)}_{ijk}\E_j\E_k+\dots \label{eq:polarization} \end{equation} where $i,j,k$ are Cartesian tensor components of the external electric field $\E_i$ and the resulting polarization of the material, $P_i$. The nonlinear susceptibilities $\chi^{(\mu)}$ completely characterize a material's response to an external field in the dipole approximation and will depend on the arrangement, number density, and fundamental response of the microscopic systems which make up the material -- to name a few. Nonlinear optical technologies which respond on the fastest timescales rely on the electronic response of the microscopic constituents, which form the bulk materials. These microscopic responses are defined by an expansion similar to Eq. \ref{eq:polarization} but for the quantum expectation value of the molecular dipole moment, \begin{equation} \mu(\E) = e\langle x\rangle = \mu_0 + \alpha_{ij}\E_j+\beta_{ijk}\E_j\E_k+\dots, \label{eq:dipexp} \end{equation} where $\alpha$ is the polarizability and $\beta$ is the first hyperpolarizability. When these units are on molecular size scales, the nonlinear coefficients are calculated from the quantum expectation value of the molecular dipole moment in the presence of the electric filed. As in the macroscopic case, the expansion coefficients fully characterize the microscopic units. Maximizing the first hyperpolarizability is the goal of this work. \subsection{Characteristics of the optimum hyperpolarizability} The quantum mechanical oscillator strength is the fundamental measure of the strength of light-matter interactions and is limited by the Thomas-Reich-Kuhn sum rules\cite{bethe77.01}, which can be derived directly by evaluating the commutator $ \langle l|[x,[x,H]]|p \rangle$, which yields \begin{equation}\label{eq:sumrules} \sum_{n} x_{ln}x_{np}\left(E_n-\frac{1}{2}(E_l+E_p)\right) = \frac {\hbar^2N} {2m}\delta_{lp} , \end{equation} where $N$ is the number of electrons, $m$ their mass, and the mechanical Hamiltonian is of the form $H = p^2/2m + V(\mathbf{r})$. Note that Eq. \ref{eq:sumrules} holds for any quantum system described by a mechanical Hamiltonian. It has been shown\cite{kuzyk00.01} that these sum rules can be used to determine a limit on the hyperpolarizabilities under the assumption that the nonlinear response is maximized when the oscillator strength is concentrated amongst three states. This assumption along with Eq. \ref{eq:sumrules} determine a maximum hyperpolarizability allowed by quantum mechanics to be \begin{equation} \beta_\text{max} = \sqrt[4]{3}\left(\frac{e\hbar}{\sqrt{m}}\right)^3\frac{N^{3/2}} {E_{10}^{7/2}} \label{eq:betamax} , \end{equation} where $E_{10}$ is the first energy difference $E_1-E_0$. For the remainder of this work all calculations of the hyperpolarizability will be normalized to this maximum and therefore represent the intrinsic value $\beta_\text{int} = \beta/\beta_\text{max}$, which is invariant under a global length scale change. Through extensive potential optimization\cite{zhou06.01,burke13.01,lytel13.01} it has become clear that there exists an apparent limit to the hyperpolarizability of real systems which is $0.7089\beta_\text{max}$, while molecules engineered for nonlinear-optical applications are often a factor of 30 below the fundamental limit. However, by sampling random transition moments and energy spectra constrained only by the sum-rules, Shafei, et al.,\cite{shafe11.01} showed that the fundamental limit is achievable in principal only by energy spectra which scale as $n^2$ or faster. Additionally, a large hyperpolarizability requires a careful balance of charge transfer and wave function overlap in the first few populated states. Applying an external field to the system is one way to tune these characteristics of the system. Thus, a quantum confined system provides the necessarily This motivates the use of a nanowire to attain such a spectrum. The static dipole, on the other hand, affects the overlap between the wave functions without a significant effect on the energy spectrum. \section{Hybrid Nanowire and Dipolar Molecule} The choice of hybrid system is motivated by the requirements of a large nonlinear-optical response -- attempting to take advantage of the superscaling behavior of quantum confined systems, the charge transfer of long and narrow structures, and the tantalizing scaling characteristics of the $1/x^2$ potential. The desirable $n^2$ energy spectrum is achieved in a cylindrical nanowire by confining electrons on a quantum scale. A permanent electric dipole produces an effective $1/x^2$ potential and provides additional controllable parameters that break the symmetry of the electron wavefunctions and allow for optimized transition characteristics. This system can be produced in practice using a cylindrical metallic nanowire, which we fix at 10\AA\ in diameter and 100\AA\ in length so that the dominant excitations are concentrated along the applied electric field; and, a molecule with a permanent electric dipole in close proximity to one end as schematically shown in Fig. \ref{fig:colfig}. The distance and strength of the physical dipole, modelled as two point charges of opposite charge, is varied to determine where the response of the system is optimized. We simulate this structure in full 3D as a single electron in an finite cylindrical well, taking the depth to be the work function of silver, though the result is rather insensitive to the precise depth of the well. The ground state solution, physical system, and spatial potential are shown in Fig. \ref{fig:colfig} and the problem space is shown schematically in Fig. \ref{fig:simdiagram}. The outermost boundary of the problem space consists of a 3 \AA\ thick perfectly matched layer (PML) as described in Appendix \ref{sec:FDTD}. A cross section of the ground state wavefunction is shown in Fig. \ref{fig:colfig}a. \begin{figure} \includegraphics[width=\linewidth]{WireSchematic} \caption{A finite cylindrical well in a 120x30x30 problem space with well dimensions of 100x10x10 cells, where each cell is $1 \mbox{\AA}^3$ volume. A perfectly matched layer prevents probability amplitude from reflecting back into the problem space. The dipole need not be included in the problem space as its static field affects the electron in the well without contributing to the dynamics.} \label{fig:simdiagram} \end{figure} \section{Results and Discussions} The Schrodinger Equation is solved using Finite Difference Time Domain (FDTD), a technique described in Appendix \ref{sec:FDTD}. Appendix \ref{sec:CHO} applies the technique to the clipped harmonic oscillator, which has analytical solutions. The numerical results produced using FDTD agree with the analytical solutions, showing that the technique's viability in calculating nonlinear susceptibilities. Appendix C\ref{sec:FF} describes how the hyperpolarizability is calculated from the expectation value of the dipole operator using the finite field method. These techniques were applied to the proposed hybrid system. The ground state and first excited state eigenvalues in the absence of an applied field are found to be $E_0 = 0.5896$ eV and $E_1 = 0.6053$ for a 9.6 D dipole at a separation distance of 16 \AA. Next, the induced dipole moment as a function of the applied electric field is determined, from which the hyperpolarizability is calculated by taking the second derivative. The optimum static field range for getting accurate derivatives was determined to be from -0.025 to 0.025 mV/\AA, within which 5,000 dipole moment data points were taken and the hyperpolarizability calculated. \begin{figure} \includegraphics{beta_dist_dipole_2} \caption{The intrinsic hyperpolarizability as a function of the dipole strength (when the distance is 16 \AA) and the distance of the dipole from the end of the wire (when the dipole moment is 9.6 D) showing that the system can be optimized to yield the apparent limit.} \label{fig:betawiredipole} \end{figure} This calculation was repeated for a range of dipole moment strengths, which were varied by adjusting the point charges representing the molecule, and the distance between the dipoles and the edge of the nanowire. The data generated are shown in Fig. \ref{fig:betawiredipole}. The hyperpolarizability peaks when $\mu = 9.6 D$ and $d = 15 \mbox{\AA}$. There are two significant features of note; the hyperpolarizability peaks and the peak value is at the apparent limit. All measured molecules and quantum systems -- with the exception of small twisted molecules reported by Kang et al\cite{kang05.01,Kang07.01} -- fall far short of this upper bound; and, it is not clear if the hyperpolarizability scales favorable in the best existing molecules. Our results suggest that any molecule would do in combination with the nanowire provided that the primary excitation is in the nanowire and that the dipole moment and its distance from the wire meets the conditions at the peaks shown in Fig. \ref{fig:betawiredipole}, i.e. where $\mu = 9.6 D$ and $d = 15 \mbox{\AA}$. As such, this hybrid system is a highly flexible paradigm for the fundamental unit of nonlinear response that should scale favorably. It is important to stress the conditions of validity of our model. First, the dipole moment must be static and the primary excitation must reside in the nanowire. For this to be the case, the energy difference between the first excited state and ground state of the molecule must be larger than that for the nanowire. Fig. \ref{fig:Energy} shows an example of an energy-level diagram that meets the requirements. \begin{figure} \includegraphics{Energy} \caption{The energy difference between ground and first excited state of the molecule must be greater that of the wire and there should be no available states for charge transfer between the two.} \label{fig:Energy} \end{figure} Implicit in these discussions is the requirement that the wire be small enough to support quantum excitations. Also, the energy levels must be arranged in a way that there cannot be charge transfer between the two. For example, in Fig. \ref{fig:Energy}, the highest occupied level in the molecule is higher than in the wire, but because its state is filled with the maximum number of electrons, Pauli exclusion prevents charge transfer. Finally, the most blaring deficit of our calculations may appear to be in the fact that only one electron is included. Clearly, one cannot accurately calculate the nonlinear response of a real system with one electron. However, it has been shown that the peak values of the nonlinear response are unchanged when another electron is added, nor when interactions between them are included.\cite{watki11.01} Therefore, the important result is that a peak exists, though it will most likely not be at the predicted values given here. Thus, our work is intended to show that a fabrication effort of such hybrid systems based on dipoles and nanwires is likely to be fruitful in producing quantum systems that have record nonlinear response. \section{Real Systems} There are many possible ways to implement the hybrid systems that we propose here, though some methods may require a more sophisticated analytical approach to model. For example, density functional theory could be used to treat systems with fabrication methods that rely on the adsorption of a molecule onto the surface by van der Waals forces or ionic binding. The latter would employ charge transfer that would drastically effect both the Fermi level and the static dipole moment. We suggest the use of less invasive methods such as employing an inert spacer group -- which is electronically stable, allows for binding to metals such as silver without complication, and trivializes the problem of relative Fermi level imbalance. For example, it has been known for over 6000 years that silver tarnishes, a chemical process that leads to a coating of silver. Silver's affinity for sulfur can be used as a method for anchoring a spacer group to the end of a nanowire. Fu and Lakowicz, for example, demonstrated that fluorescing molecules could be attached to 50nm diameter spherical silver nanoparticles using sulphur at the attachment point.\cite{fu07.03} The fluorescence yield of an attached fluorophore was shown to be enhanced 15-fold over the single molecule. We stress that our proposal for the nanowire hybrid differs greatly from the work of Fu. In our case, the excitations take place in the metal, the response is quantum in nature, and the role of the molecule is passive. Fu's system, on the other hand, uses the classical surface plasmon to enhance the light in the vicinity of the molecule. It has been demonstrated that classical effects take hold for particle sizes above 20nm,\cite{scholl12.01} so our system -- being a factor of two below the threshold size -- should exhibit the required quantum behavior. The magnitude of the required dipole moment is within the range of typical organic molecules, and tethers with sulphur end groups are commonly synthesized, so there should be no obstacles to making nanowire-molecular composites whose nonlinear-optical response attains the apparent limit. \section{Conclusions} We have demonstrated through FDTD computations that a hybrid quantum system made of a 100 \AA\ silver nanowire and connected with a tether to a molecule with suitable dipole moment can lead to a hyperpolarizability at the apparent limit. The prospect for such a large nonlinearity makes fabrication investigations worthwhile to identify the ideal structural parameters for attaining this limit. \section{Acknowledgements} SM and MGK thank the National Science Foundation (ECCS-1128076) for generously supporting this work. \section{Appendix} \subsection{A. Finite Difference Time Domain}\label{sec:FDTD} To determine the electronic ground state for a particular system, we employ a finite difference method which uses the time evolution of an initial pulse to determine the stationary state solutions.\cite{sulli16.01} The FDTD method benefits from being computationally efficient while being fully generalizable for solving the Schr\"odinger equation for arbitrary potentials in three dimensions. We begin with the time-dependent Schr\"odinger equation \begin{align} -i\hbar\frac{\partial\psi(x,y,z;t)}{\partial t} = \frac{\hbar^2}{2m}&\nabla^2\psi(x,y,z;t)\nonumber\\ &+V(x,y,z;t). \end{align} Separating the solution into real and imaginary parts produces two coupled equations: \begin{subequations} \begin{align} \frac{\partial\psi_\text{real}(x,y,z,t)}{\partial t} = -\frac{\hbar}{2m_e} &\nabla^2\psi_\text{imag}(x,y,z;t)\\ &+\frac{1}{\hbar}V(x,y,z;t)\psi_\text{imag}(x,y,z;t),\nonumber\\ \frac{\partial\psi_\text{imag}(x,y,z;t)}{\partial t} = \frac{\hbar}{2m_e} &\nabla^2\psi_\text{real}(x,y,z;t)\\ &-\frac{1}{\hbar}V(x,y,z;t)\psi_\text{real}(x,y,z;t).\nonumber \end{align} \label{eqs:spaceandtime} \end{subequations} These equations are then discretized in space and time by choosing a finite grid of size $\Delta x$ and $\Delta t$. Once a cubic grid is defined by the choice of $\Delta x$, a $\Delta t$ is chosen to be small enough to maintain stability. Then alternating iterations of Eqns. \ref{eqs:spaceandtime} simulate the motion of the waveform in time\cite{sulli02.01, soria04.01, ren04.01,ren08.01,sulli05.01,sulli12.01}. It is also necessary to prevent the outgoing waveforms from being reflected by the boundaries back into the problem space without making the problem space unrealistically large. This is accomplished with a perfectly matched layer (PML)\cite{beren94.01,sulli12.02,zheng07.01}: a region within the simulation space which behaves like a perfect absorber, damping outgoing waveforms in such a way that does not affect the interior of the problem space. Under these boundary conditions, we are able to verify that our solutions are bound without interacting with the PML by monitoring the normalization of the solution over time iterations. The simulation is initialized by beginning with an arbitrary pulse and evolving it in time. This pulse is chosen arbitrarily except that it is not orthogonal to the true ground state solution that we are seeking. As time evolves, the pulse evolves and disperses as determined by its spectral decomposition in the eigenstate basis determined by the problem space potential. Some of the pulse will propagate into the PML, effectively leaving the problem space. The waveform which remains can be described as \begin{equation} \psi(x,y,z;t) = \sum_{n=0}^N\phi_n(x,y,z)e^{-iE_nt/\hbar} \end{equation} where $\phi_n(x,y,z)$ are the eigenfunctions and $E_n$ are the corresponding eigenenergies. The eigenenergies can be determined by monitoring the time-domain data at a single point, $r_0$, and taking the Fourier transform \begin{align} \mathfrak{F}\left\{\psi(r_0;t)\right\}&=\int_{-\infty}^\infty dt \left[\sum_{n=0}^N\phi_n(r_0)e^{-iE_nt/\hbar}\right]e^{i\omega t}\\ &=\sum_{n=0}^N\phi_n(r_0)\delta\left(\omega-E_n/\hbar\right) \end{align} producing a series of delta functions in the frequency domain corresponding to the eigenenergies of the system in question. The eigenfunctions are then recovered by taking a discrete Fourier transform waveform at the frequency $\omega_m=E_m/\hbar$ at every point in the problem space: \begin{align} \text{DFT}&\left\{\psi(r;t)\right\}_{\omega_m}=\int_{-\infty}^\infty dt \left[\sum_{n=0}^N\phi_n(r)e^{-iE_nt/\hbar}\right]e^{iE_mt/\hbar}\\ &=\int_{-\infty}^\infty dt \left[\sum_{n=0}^N\phi_n(r)e^{-i(E_n-E_m)t/\hbar}\right]=\phi_m(r). \end{align} \subsection{B. Calculating the hyperpolarizability in a clipped harmonic oscillator} \label{sec:CHO} In this section, we apply the FDTD method described above to the clipped harmonic oscillator and use those solutions to calculate the first hyperpolarizability $\beta$. A clipped harmonic oscillator is a three-dimensional harmonic oscillator centered at zero but confined to the positive $X$, $Y$, and $Z$ octant. We use this potential because an analytic solution is known with which we may determine the accuracy of the method. \begin{figure}[H] \centering \includegraphics[width=0.7\linewidth]{CHOpotential} \caption{The potential in the $X$ and $Y$ directions of a three-dimensional clipped harmonic oscillator defined by a 30 eV energy scale. The planes at $x=0$, $y=0$, and $z=0$ are fixed at infinite potential. The boundaries at $x$, $y$, and $z=2.5$\AA\ have a three cell PML.} \label{fig:CHOpotential} \end{figure} We limit ourselves to a diagonal tensor component of the hyperpolarizability, as will be of most interest for the wire system, by taking all polarizations and fields to be along one cartesian direction. We are looking to calculate \begin{equation} \beta = \left.\frac{1}{2}\frac{\partial^2 p(\mathcal{E})}{\partial\mathcal{E}^2}\right|_{\mathcal{E}\to 0} \label{eq:beta} \end{equation} where $\mathcal{E}$ is a constant electric field across the problem space. We calculate the above derivative directly by computing the ground state dipole moment for a variety of electric field strengths, extract the second order fitting parameter, and express the result in intrinsic units as mentioned following Eq. \ref{eq:betamax}. The maximum hyperpolarizability can be expressed in these units as \begin{equation} \beta_\text{max} = 27.68278(\epsilon_1-\epsilon_0)^{-7/2} \left[\frac{e\text{\AA}^3}{\text{V}^2}\right] \label{eq:betamax_units} \end{equation} where $\epsilon_0$ and $\epsilon_1$ are the ground state energy and first excited state energy, respectively, in eV. \begin{figure} \includegraphics[width=\linewidth]{clippedHOinit} \caption{A test function is initialized in the problem space for the clipped harmonic oscillator. As the FDTD method proceeds, the waveform spreads out.} \label{fig:clippedHOinit} \end{figure} The first step is to find the energies $\epsilon_0$ and $\epsilon_1$ that will be needed in Eq. \ref{eq:betamax_units}. We start by initializing a test function as shown in Fig. \ref{fig:clippedHOinit}. The simulation is run for 10,000 iterations, storing the time-domain data at the point where the test function was initialized. The time-domain data and the corresponding Fourier transform are shown in Fig. \ref{fig:clippedHOtimedata}. The resulting eigenenergies are $\epsilon_0=0.225$ eV and $\epsilon_1=0.325$ eV. \begin{figure} \includegraphics[width=\linewidth]{clippedHOtimedata} \caption{(a) The stored time-domain data for the real and imaginary amplitude at the initialization point. (b) The Fourier transform. The energies are negative.} \label{fig:clippedHOtimedata} \end{figure} To construct the wavefunctions corresponding to the energy eigenvalues indicated by peaks in the Fourier transform, the original test function is initialized in the problem space as before, but as the simulation proceeds, a discrete Fourier transform at the frequency of the desired state is taken at every cell in the problem space. The process is repeated for each eigenstate we have identified. The results are shown in Fig. \ref{fig:CHOstates}. \begin{figure} \includegraphics[width=\linewidth]{CHOstates} \caption{The ground and first excited wavefunctions for the clipped harmonic oscillator, corresponding to the energy peaks appearing in Fig. \ref{fig:clippedHOtimedata}b. } \label{fig:CHOstates} \end{figure} \subsection{C. Calculating the hyperpolarizability}\label{sec:FF} Now that we have established the FDTD method for determining the ground state wavefunction, we apply a finite fields (FF) algorithm to determine the first hyperpolarizability. To do this, we numerically determine the second derivative of the polarizability given in Eq. \ref{eq:beta} by evaluating the ground state wavefunction after applying a range of static electric fields to the problem space. We begin this process by applying a voltage of -0.5 mV/\AA\ along the long axis of the wire structure. The FDTD algorithm is initialized with the same test function as used previously and the ground state wavefunction is determined under the influence of the small static field. We then initialize the next simulation using the ground state wave function determined for the first static field measurement, then over 50,000 iterations the static field is varied from $-0.5$ to 0.5 mV/\AA. Every one hundred time steps the dipole moment is calculated to determine the curve $\mu(\E)$. To determine the most accurate value of the hyperpolarizability, we reduce the maximum magnitude of the electric fields applied to the system until numerical instabilities become apparent. For this harmonic oscillator, the optimum range of applied fields was found to be from -1 to 1 mV/\AA. The resulting curve is then fit to a fourth order polynomial, where the second order coefficient determines the first hyperpolarizability. Table \ref{tab:betaFF} shows the results of the analysis on the clipped harmonic oscillator in 3D with analysis to determine the effect of the numerical cell size. We determine the this method can determine the first hyperpolarizability to within 1\%. \begin{table} \begin{tabular}{|c|c|c|} \hline Cell Size [\AA]& $E_{10}=E_1-E_0$ [eV] & $\beta_\text{int}$ \\ \hline 1.0 & 0.09981 & 0.5716 \\ 0.9 & 0.09983 & 0.5717 \\ 0.8 & 0.09982 & 0.5716 \\ 0.7 & 0.09985 & 0.5720 \\ 0.6 & 0.09982 & 0.5714 \\ - & 0.1 & 0.5707 \\ \hline \end{tabular} \caption{The finite field results for the 3D, clipped harmonic oscillator using the FDTD method of determining the ground state wave function. The sensitivity of the result to changing cell size is explored and compared with the fully analytic result.} \label{tab:betaFF} \end{table}
\section{Introduction} \label{sec:intro} Measuring extragalactic chemical abundances is the key to deciphering a wide variety of physical and evolutionary processes occurring inside and between galaxies. For star-forming systems the investigation of the present-day abundances of the interstellar medium (ISM), photoionized by young massive stars, holds a prominent place in modern astronomy, laying the foundations of our understanding of the chemical evolution of the Universe. Regrettably, despite decades of observational and theoretical work, we still lack an absolute abundance scale, which is necessary for a complete and coherent picture of how the chemical elements are processed and moved around by galactic flows. The gas-phase metallicity, identified with the abundance of oxygen, the most common heavy element in the ISM, can be derived from forbidden, collisionally excited lines ({\sc cel} s) present in \mbox{\ion{H}{2}}\ region optical spectra. Such evaluation depends critically on the knowledge of the physical conditions of the gas, in particular the electron temperature $\mathrm {T_e}$, because of the strong temperature sensitivity of the metal line emissivities (see the monograph by \citealt{Stasinska:2012} for a review). In the so-called {\em direct} method $\mathrm {T_e}$\ is obtained by the classical technique (\citealt{Menzel:1941}) that utilizes {\sc cel} s originating from transitions involving different energy levels of the same ions. The intensity ratio of the auroral \mbox{[\ion{O}{3}]}\lin4363 to the nebular \mbox{[\ion{O}{3}]}\llin4959,\,5007 lines can be used to measure the temperature of the high-excitation zone, especially at low metallicities, where the weak auroral lines are more easily observed. The \mbox{[\ion{N}{2}]}$\,\lambda$ 5755/\lin6584 ratio is generally used for the low excitation zone. Around the solar metallicity and above, as the increased gas cooling quenches the auroral lines, statistical methods, first introduced by \citet{Pagel:1979} and \citet{Alloin:1979}, relying on easily observed strong emission lines, complement or supplant altogether the use of the direct technique. As is well known, different strong-line diagnostics and calibration methodologies (e.g.\ photoionization models vs.\ empirical $\mathrm {T_e}$\ derivations) yield substantial systematic offsets in the inferred gas metallicities (\citealt{Kennicutt:2003a, Moustakas:2010, Lopez-Sanchez:2012}), reaching values up to 0.7~dex (\citealt{Kewley:2008}). Methods calibrated from $\mathrm {T_e}$\ measurements tend to occupy the bottom of the abundance scale. Small-scale departures from homogeneity in the thermal (\citealt{Peimbert:1967}) and chemical abundance (\citealt{Tsamis:2003}) structure of photoionized nebulae, combined with the pronounced temperature dependence of {\sc cel} s, can bias the results obtained from the direct method to low values. A similar effect can also originate at high metallicity from large-scale temperature gradients (\citealt{Stasinska:2005}). Estimations of temperature fluctuations, parameterized by the mean square value $t^2$ (\citealt{Peimbert:1967}), indicate that optical {\sc cel} s underestimate the oxygen abundances by 0.2--0.3 dex (\citealt{Esteban:2004, Peimbert:2005}). This effect is usually regarded responsible for the systematic oxygen abundance offset of the same magnitude found between measurements from the direct method and the \mbox{\ion{O}{2}}\ recombination lines ({\sc rl} s; \citealt{Peimbert:1993a, Garcia-Rojas:2007, Esteban:2009}). Discrepancies of comparable sizes are also obtained when the $\mathrm {T_e}$-based nebular abundances are compared to a theoretical analysis of the emission-line spectra (\citealt{Blanc:2015, Vale-Asari:2016}). Such differences can also result from a non-thermal distribution of electron energies (\citealt{Nicholls:2012}). For the widely-used direct method the crux of the matter remains the fact that, with the presence of these effects, the $\mathrm {T_e}$\ values we measure from optical {\sc cel} s tend to overestimate the nebular temperatures, leading to systematically underestimated gas-phase metallicities. While the situation described above seems to spell doom for the direct method and its ability to produce correct nebular abundances, at least at high metallicity, there are various considerations that warrant further investigations involving $\mathrm {T_e}$-based abundances. These include the existence of still poorly understood systematic uncertainties in photoionization models (\citealt{Blanc:2015}), the lack of clearly identified causes for temperature fluctuations in ionized nebulae (although several processes have been proposed, see \citealt{Peimbert:2006a}) and the possibility that recombination lines overestimate gas-phase oxygen abundances (\citealt{Ercolano:2007, Stasinska:2007a}). We also note that theoretical and observational considerations argue against the $\kappa$ electron velocity distribution (\citealt{Nicholls:2012, Nicholls:2013}) as a solution for the abundance discrepancies observed in photoionized nebulae (\citealt{Zhang:2016, Ferland:2016}). \smallskip In light of these difficulties, a complementary approach for the investigation of present-day abundances in galaxies is the analysis of the surface chemical composition of early-type (OBA) stars, which in virtue of their young ages share the same initial chemical composition as their parent gas clouds and associated \mbox{\ion{H}{2}}\ regions. This is true in particular for elements, such as oxygen and iron, whose surface abundances are not significantly altered by evolutionary processes during most of the stellar lifetimes. Oxygen abundance comparisons between nearby B stars and \mbox{\ion{H}{2}}\ regions, as in the well-studied case of the Orion nebula (\citealt{Simon-Diaz:2011}), offer support for the nebular abundance scale defined by {\sc rl} s rather than {\sc cel} s. A salient consideration is that the systematic chemical abundance uncertainty for B- and A-type stars is on the order of 0.1~dex (\citealt{Przybilla:2006, Nieva:2012}), much smaller than for the analysis of nebular spectra. For more than a decade our collaboration has focused on a project of stellar spectroscopy in nearby star-forming galaxies, with distances up to a few Mpc, selected for a long-term investigation of the distance scale (\citealt{Gieren:2005}), in order to measure the metal content of bright blue supergiant stars and their distances (see \citealt{Kudritzki:2016} and \citealt{Urbaneja:2016} for the most recent results and references). In comparing stellar with nebular abundances we found a varying degree of agreement, ranging from excellent (e.g.\ in the case of NGC~300, \citealt{Bresolin:2009a}) to modest (with offsets $\sim$0.2 dex, as in the case of NGC~3109, \citealt{Hosek:2014}). There are also indications that especially for systems of relatively high metallicity, such as M31 (\citealt{Zurita:2012}) and the solar neighbourhood (\citealt{Simon-Diaz:2011, Garcia-Rojas:2014}), the $\mathrm {T_e}$\ method underestimates the stellar abundances. \smallskip In this paper we analyze new stellar spectra of blue supergiant stars obtained in the spiral galaxy M83 (NGC~5236), at a distance of 4.9~Mpc (\citealt[$1'' = 23.8$~pc]{Jacobs:2009}). Our main motivation is to extend our stellar work to a galactic environment characterized by a high level of chemical enrichment, i.e.~super-solar in the central regions, as already indicated by work on \mbox{\ion{H}{2}}\ regions (\citealt{Bresolin:2002, Bresolin:2005}) and a single super star cluster (\citealt{Gazak:2014}). This is the metallicity regime where the systematic biases of the direct method should be more evident. We thus compare stellar and nebular metallicities using the $\mathrm {T_e}$\ method and a variety of strong line diagnostics, aiming to clarify how abundances inferred from the latter relate to the metallicities measured in young stars. In a nutshell, we find that $\mathrm {T_e}$-based abundances fare reasonably well in comparison with stellar metallicities across a wide range of abundances, but nevertheless that existing empirical calibrations of strong line methods can significantly underestimate the stellar abundances in the high-metallicity regime. We describe our observational material and the data reduction in Sect.~2, and the spectral analysis in Sect.~3. We derive a spectroscopic distance to M83 in Sect.~4. In Sect.~5 the stellar metallicities are used to discuss the mass-metallicity relation for nearby galaxies and to compare with a variety of nebular abundance diagnostics. We develop a chemical evolution model to reproduce the radial metallicity distribution in M83 in Sect.~6. In our discussion in Sect.~7 we focus on the comparison of metallicities derived from the direct method, the blue supergiants and {\sc rl} s in a number of nearby galaxies, based on results published in the literature. In Sect.~8 we summarize our main conclusions. \section{Observations and data reduction} \label{sec:data} Blue supergiant candidates were identified from broadband {\em Hubble Space Telescope} ({\em HST}) Wide Field Camera 3 (WFC3) images obtained as part of the Early Release Science Program (ID 11360; PI: R. O'Connell) and the General Observer Program 12513 (PI: W. Blair), presented by \citet{Blair:2014}. Our selection was based on magnitudes and colors (e.g.\ F438W$-$F814W) that we deemed compatible with those expected for B and A supergiants at the distance of M83, moderately affected by interstellar extinction. We attempted to minimize the contaminating effects of \mbox{\ion{H}{2}}\ region line emission, by inspecting images in the F657N filter, as well as of close projected companion stars. The stellar magnitudes were measured with the {\sc Dolphot 2.0} package, a modified version of {\sc HST}phot (\citealt{Dolphin:2000}). Spectra of our best candidates were obtained with the FOcal Reducer and low-dispersion Spectrograph FORS2 attached to the European Southern Observatory (ESO) Very Large Telescope (VLT) UT1 (Antu) telescope on Cerro Paranal. Two separate observing runs, on April 3-4, 2013 and April 22-23, 2015, provided data for two separate, single pointings, each covering a $6\farcm8 \times 6\farcm8$ field of view. We used the Mask eXchange Unit (MXU) with 1 arc second slits to carry out multi-object spectroscopy of 42 and 24 targets for the two pointings, respectively (several slits were centered on \mbox{\ion{H}{2}}\ regions or late-type stars, and were not used for our analysis). The 600B grism yielded spectra with a resolution of 5\,\AA\ in the approximate wavelength range 3500--6000\,\AA. We executed a series of 45 minute exposures throughout the duration of the observing runs, aiming at a good signal-to-noise ratio for our blue supergiant candidates. Degradation of the image quality at the higher airmasses and during spells of bad seeing or cloudy conditions limited our `effective' integration times, defined by the amount of useable spectra, to 12 hours (Apr 2013) and 7.5 hours (Apr 2015). We reduced the data with the ESO Recipe Execution (EsoRex) tool, which provided us with wavelength-calibrated, two-dimensional spectra of each target. Standard {\sc iraf} routines were then used for the extraction and coaddition of the final spectra. During the examination of these final products we discarded a number of objects from further analysis due to poor signal-to-noise ratio, strong nebular contamination and the fact that some of the targets were of late spectral type (typically F), unsuited for our analysis techniques. We retained a total of 14 bona fide blue supergiants, nine from the April 2013 run and five from April 2015, having a signal-to-noise ratio in the continuum near H$\gamma$\ higher than 45. Their celestial coordinates and magnitudes, measured from the {\em HST}\ images and converted to the Johnson-Cousins system, are summarized in Table~\ref{table:1}. The spectral types, ranging from B8 to A5, were estimated from a comparison with Galactic stellar templates. A map of the distribution of the stars in our final sample is shown in Fig.~\ref{fig:image}. The disk parameters used for the deprojection to galactocentric distances are given at the foot of Table~\ref{table:1}. \begin{figure} \center \includegraphics[width=1.01\columnwidth]{f1}\medskip \caption{The location of the blue supergiants analyzed in this work, shown on a $B$-band image taken with FORS2. The curve is drawn at a projected radius of 0.5\,$R_{25}$. North is at the top, east on the left.}\label{fig:image} \end{figure} \floattable \begin{deluxetable}{cCCccRcl} \tablecolumns{8} \tablewidth{0pt} \tablecaption{Blue supergiants: observational properties.\label{table:1}} \tablehead{ \colhead{ID} & \colhead{R.A.} & \colhead{DEC} & \colhead{$R$/$R_{25}$} & \colhead{$V$} & \colhead{$B-V$} & \colhead{$V-I$} & \colhead{Spectral}\\[0.5mm] \colhead{} & \colhead{(J2000.0)} & \colhead{(J2000.0)} & \colhead{} & \colhead{} & \colhead{} & \colhead{} & \colhead{type} } \startdata \\[-4mm] 01 & 13\, 36\, 49.11 & -29\, 51\, 54.4 & 0.42 & 20.16 & 0.12 & \nodata & B8 \\ 02 & 13\, 36\, 50.50 & -29\, 51\, 14.7 & 0.39 & 20.64 & 0.13 & \nodata & A2-A5 \\ 03 & 13\, 36\, 54.83 & -29\, 51\, 25.7 & 0.24 & 21.48 & 0.12 & \nodata & A2 \\ 04 & 13\, 36\, 55.05 & -29\, 50\, 36.4 & 0.31 & 19.90 & 0.15 & \nodata & A2 \\ 05 & 13\, 36\, 56.80 & -29\, 48\, 11.9 & 0.64 & 21.43 & -0.01 & \nodata & B9-A0 \\ 06 & 13\, 36\, 58.64 & -29\, 49\, 36.9 & 0.39 & 20.94 & \nodata & 0.42 & A5 \\ 07 & 13\, 37\, 01.08 & -29\, 50\, 43.4 & 0.20 & 20.94 & \nodata & 0.39 & A2 \\ 08 & 13\, 37\, 01.16 & -29\, 52\, 23.7 & 0.08 & 20.51 & \nodata & 0.38 & A2-A5 \\ 09 & 13\, 37\, 02.46 & -29\, 51\, 00.4 & 0.15 & 20.95 & \nodata & 0.22 & A0 \\ 10 & 13\, 37\, 03.15 & -29\, 52\, 48.5 & 0.17 & 20.67 & \nodata & 0.23 & B8-B9 \\ 11 & 13\, 37\, 05.27 & -29\, 52\, 05.2 & 0.16 & 20.59 & \nodata & 0.30 & A0 \\ 12 & 13\, 37\, 06.84 & -29\, 50\, 55.1 & 0.25 & 20.71 & \nodata & 0.40 & A5 \\ 13 & 13\, 37\, 07.41 & -29\, 52\, 57.3 & 0.30 & 20.26 & \nodata & 0.48 & B9-A0 \\ 14 & 13\, 37\, 09.86 & -29\, 51\, 11.7 & 0.33 & 20.38 & \nodata & 0.55 & A2 \\[1mm] \enddata \tablecomments{$R$/$R_{25}$\ calculated adopting the following disk geometry: i\,=\,24~deg, PA\,=\,45~deg (\citealt{Comte:1981}), $R_{25}$\,=\,6.44 arcmin (\citealt{de-Vaucouleurs:1991})~=~9.18~kpc.} \end{deluxetable} \floattable \begin{deluxetable}{cRCCRCCR} \tablecolumns{8} \tablewidth{0pt} \tablecaption{Blue supergiants: derived quantities.\label{table:2}} \tablehead{ \colhead{ID} & \colhead{$\rm T_{\!\mbox{\scriptsize eff}}$} & \colhead{$\log g$} & \colhead{$\log g_F$} & \colhead{[Z]} & \colhead{$\rm m_{bol}$} & \colhead{$E(B-V)$} & \colhead{BC}\\[0.5mm] \colhead{} & \colhead{K} & \colhead{cgs} & \colhead{cgs} & \colhead{dex} & \colhead{mag} & \colhead{mag} & \colhead{mag} } \startdata \\[-4mm] 01 & 11050^{+100}_{-100} & 1.36 & 1.19^{+0.05}_{-0.05} & 0.05\pm 0.07 & 19.14\pm0.057 & 0.15\pm 0.01 & -0.52\pm 0.04 \\ 02 & 8470^{+200}_{-200} & 1.13 & 1.42^{+0.13}_{-0.13} & 0.19\pm 0.12 & 20.38\pm 0.08 & 0.08\pm 0.02 & 0.02\pm 0.05 \\ 03 & 9100^{+200}_{-250} & 1.45 & 1.61^{+0.10}_{-0.12} & 0.12\pm 0.10 & 21.00\pm 0.06 & 0.12\pm 0.01 & -0.09\pm 0.05 \\ 04 & 9000^{+120}_{-120} & 1.10 & 1.28^{+0.07}_{-0.07} & 0.17\pm 0.05 & 19.45\pm 0.05 & 0.11\pm 0.01 & -0.10\pm 0.04 \\ 05 & 9800^{+300}_{-300} & 1.51 & 1.55^{+0.07}_{-0.08} &-0.10\pm 0.12 & 21.16\pm 0.07 & 0.01\pm 0.01 & -0.24\pm 0.06 \\ 06 & 8300^{+100}_{-100} & 1.00 & 1.32^{+0.09}_{-0.09} & 0.00\pm 0.06 & 20.13\pm 0.07 & 0.25\pm 0.02 & 0.03\pm 0.04 \\ 07 & 9800^{+200}_{-200} & 1.31 & 1.35^{+0.07}_{-0.07} & 0.21\pm 0.10 & 19.83\pm 0.06 & 0.27\pm 0.01 & -0.23\pm 0.05 \\ 08 & 8500^{+100}_{-70 } & 0.85 & 1.13^{+0.07}_{-0.06} & 0.25\pm 0.06 & 19.85\pm 0.07 & 0.18\pm 0.01 & -0.05\pm 0.05 \\ 09 & 11350^{+200}_{-200} & 1.50 & 1.28^{+0.05}_{-0.05} & 0.28\pm 0.08 & 19.81\pm 0.06 & 0.18\pm 0.01 & -0.52\pm 0.05 \\ 10 & 11100^{+200}_{-200} & 1.45 & 1.27^{+0.05}_{-0.05} & 0.15\pm 0.07 & 19.59\pm 0.06 & 0.18\pm 0.01 & -0.49\pm 0.05 \\ 11 & 10000^{+150}_{-150} & 1.35 & 1.35^{+0.06}_{-0.06} & 0.33\pm 0.05 & 19.63\pm 0.04 & 0.21\pm 0.01 & -0.26\pm 0.04 \\ 12 & 7900^{+200}_{-200} & 0.90 & 1.31^{+0.20}_{-0.24} & 0.22\pm 0.20 & 20.05\pm 0.11 & 0.24\pm 0.02 & 0.12\pm 0.08 \\ 13 & 9775^{+250}_{-250} & 1.20 & 1.24^{+0.07}_{-0.07} & 0.23\pm 0.09 & 18.92\pm 0.08 & 0.33\pm 0.01 & -0.25\pm 0.07 \\ 14 & 9000^{+300}_{-300} & 1.00 & 1.18^{+0.09}_{-0.08} & 0.15\pm 0.11 & 19.11\pm 0.10 & 0.34\pm 0.01 & -0.13\pm 0.09 \\[1mm] \enddata \end{deluxetable} \section{Spectral analysis} For the quantitative analysis of the stellar spectra of our A-type stars we followed the procedure explained in detail by \citet{Kudritzki:2014} and \citet{Hosek:2014}. We present here only a brief outline, and refer to those papers for an in-depth discussion of the methodology we employ. The essence of the procedure is represented by a comparison between the observed, normalized spectra of our blue supergiants to a grid of line-blanketed model spectra, described by \citet{Kudritzki:2008, Kudritzki:2012}, which include a non-LTE line formation treatment based on the work of \citet{Przybilla:2006}. Firstly, the surface gravity ($\log g$) is derived as a function of stellar temperature ($\rm T_{\!\mbox{\scriptsize eff}}$), utilizing high-order Balmer lines (this choice minimizes the potential contamination by nebular emission). This step yields the $\log g$--$\rm T_{\!\mbox{\scriptsize eff}}$\ locus for each star. An example of line fitting is shown in Fig.~\ref{fig:balmer} for the mid-A star 02 (following the identification provided in Table~\ref{table:1}) and the Balmer spectral lines $\rm H_5$ to $\rm H_{10}$. The best-fitting model spectrum is drawn with the red continuous curve, flanked by models calculated using a $\pm0.05$ dex difference in $\log g$. Subsequently, we focus on the spectral lines produced by various chemical species present in 11 spectral windows in the wavelength range 3990--6000~\AA. We search for the best match between observed and synthetic spectra, varying the model metallicity and temperature values. The minimum $\chi^2$ value and the $\Delta\chi^2$ isocontours around this minimum allow us to define our adopted values for the metallicity and $\rm T_{\!\mbox{\scriptsize eff}}$\ and the associated uncertainties, as exemplified in Fig.~\ref{fig:iso}. The $\log g$--$\rm T_{\!\mbox{\scriptsize eff}}$\ relation derived in the first step finally provides us with the adopted surface gravity. The uncertainties in the stellar parameters are estimated from the $\chi^2$ procedure, adopting the $\Delta\chi^2 = 3$ isocontour as the 1-$\sigma$ uncertainty (\citealt{Hosek:2014}). In the case of $\log g$, the errors are derived from the uncertainty in $\rm T_{\!\mbox{\scriptsize eff}}$\ and a nominal error of 0.05~dex in the $\log g$--$\rm T_{\!\mbox{\scriptsize eff}}$\ relation. Fig.~\ref{fig:metals} illustrates the quality of the overall fit of the calculated metal line strengths to the observed spectra of stars 02 and 07 in three different wavelength ranges. We point out that the metallicity derived from our spectral synthesis procedure is a measure of the integrated chemical abundances of various elements, including both iron peak (Fe, Cr) and $\alpha$-elements (e.g.\ Mg, Ca, Si, Ti). In our models we do not attempt to vary the $\alpha$/Fe abundance ratio. This aspect is relevant for the comparison with the nebular oxygen abundances carried out in Sect.~\ref{sec:hii}. \begin{figure*} \center \includegraphics[width=1.5\columnwidth]{f2}\medskip \caption{Comparison between the observed high-order Balmer lines ($\rm H_5$ to $\rm H_{10}$) of star 02 (black profile) to the best-fitting synthetic spectrum (red profile). The dashed curves represent models deviating by $\pm0.05$ in $\log g$\ from the accepted solution.}\label{fig:balmer} \end{figure*} Finally, comparing the observed colors to the spectral energy distribution of the best-fitting stellar model provides us with the reddening $E(B-V)$, assuming a total-to-selective absorption ratio $R_V = A_V/E(B-V) = 3.3$. The selected model also yields the bolometric correction (BC) used for the calculation of the bolometric magnitude ($\rm m_{bol}$). The stellar parameters derived for our supergiant sample are summarized in Table~\ref{table:2}, where we express the metallicity with the standard notation $\rm [Z] = \log Z/Z_\odot$, but emphasizing that this is not strictly equivalent to the iron abundance. We also report the flux-weighted gravity $\log g_F$ = $\log g$ $-4\log$\,($\rm T_{\!\mbox{\scriptsize eff}}$/$10^4\,K$), that is used in Sect.~\ref{sec:fglr} to derive a spectroscopic distance to M83. \begin{figure} \center \includegraphics[width=1.01\columnwidth]{f3}\medskip \caption{$\Delta\chi^2$ isocontours in the metallicity-effective temperature plane for star 02. The curves are drawn for $\Delta\chi^2 = 3$ (inner, red), 6 (middle, blue) and 9 (outer, black). The adopted solution is [Z]~=~$0.19\pm0.12$, $\rm T_{\!\mbox{\scriptsize eff}}$~=~$8470\pm200$~K.}\label{fig:iso} \end{figure} \begin{figure*} \center \includegraphics[width=1.5\columnwidth]{f4a}\medskip \center \includegraphics[width=1.5\columnwidth]{f4b}\medskip \caption{Comparison of the observed normalized spectra (black) with synthetic spectra (red) calculated with the adopted stellar parameters. The two panels show different wavelength ranges, given in \AA\ along the $x$-axis. In each panel star 02 is at the top, star 07 at the bottom. The main atomic species responsible for the spectral lines calculated in the models are indicated.}\label{fig:metals} \end{figure*} \subsection{Evolutionary status} The distance-independent spectroscopic Hertzsprung-Russell diagram of our targets, relating the flux-weighted gravity $g_F$\ to the effective temperature $\rm T_{\!\mbox{\scriptsize eff}}$, following \citet{Langer:2014}, is displayed in Fig.~\ref{fig:shrd}. The stellar tracks for solar metallicity and including stellar rotation from \citet{Ekstrom:2012} are also shown, for masses between 12~$M_\odot$\ and 40~$M_\odot$. The diagram clearly illustrates the advanced evolutionary stage that pertains to these late-B--early-A supergiant stars. The tracks indicate that the supergiants in our sample have initial main sequence masses comprised approximately between 15 and 32~$M_\odot$, in line with our previous investigations of blue supergiants in other nearby galaxies (e.g.\ \citealt{Kudritzki:2012,Kudritzki:2013,Kudritzki:2014, Hosek:2014}). \begin{figure} \center \includegraphics[width=1.01\columnwidth]{f5}\medskip \caption{Spectroscopic Hertzsprung-Russell diagram for our blue supergiant sample (dots with error bars). The curves represent stellar tracks (\citealt{Ekstrom:2012}) calculated for the initial masses indicated (in $M_\odot$). }\label{fig:shrd} \end{figure} \section{Spectroscopic distance}\label{sec:fglr} As shown by \citet{Kudritzki:2003,Kudritzki:2008} the flux-weighted--luminosity relationship ({\sc fglr}), i.e.\ the relation between $g_F$\ and $\rm m_{bol}$, provides an independent method to measure extragalactic distances that utilizes medium-resolution spectra of blue supergiants. Among the advantages of this technique is the possibility of deriving both the reddening and the metallicity of the individual targets from the spectral analysis, allowing for tests of the dependence of other popular extragalactic distance indicators on, for example, chemical composition. In the series of papers from our group already mentioned (see \citealt{Kudritzki:2016} for a recent application) we have demonstrated how the {\sc fglr}\ provides distances that are generally in good agreement with the Cepheid period-luminosity (P-L) relation and the tip of the red giant branch ({\sc trgb}) methods. To determine a {\sc fglr}-based distance to M83 we adopted the recent calibration of the technique published by \citet{Urbaneja:2016}, based on spectroscopic observations of 90 supergiants in the Large Magellanic Cloud, adopting a distance modulus to the LMC of $\rm \mu_{LMC} = 18.494$ from \citet{Pietrzynski:2013}. The distance to M83 is obtained by fitting their template {\sc fglr}\ to our individual stellar $\log g_F$\ and $\rm m_{bol}$\ values. The result is shown in Fig.~\ref{fig:fglr}, where the steepening of the {\sc fglr}\ at high luminosities (small $\log g_F$) found by \citet{Urbaneja:2016} is evident. From our procedure we obtain a distance modulus to M83 of $\rm \mu_{FGLR} = 28.47 \pm 0.10$ ($D = 4.9 \pm 0.2$~Mpc), where the error accounts for the observational uncertainties and those in the {\sc fglr}\ parameters. Our independent determination of the distance modulus to M83 is in good agreement with the Cepheid P-L method, $\rm \mu_{P\textnormal{-}L} = 28.32 \pm 0.13$ (\citealt[28.27 if we adjust for our adopted LMC distance]{Saha:2006}), the {\sc trgb}\ method, $\rm \mu_{TRGB} = 28.45 \pm 0.04$ (\citealt{Jacobs:2009}) and the planetary nebula luminosity function, $\rm \mu_{PNLF} = 28.43 \pm 0.06$ (\citealt{Herrmann:2008}). \begin{figure} \center \includegraphics[width=1.01\columnwidth]{f6}\medskip \caption{The {\sc fglr}\ of our supergiants (red dots) and the fit to the calibrating relation by \citet[green line]{Urbaneja:2016}, used to derive the distance modulus $\rm \mu_{FGLR} = 28.47 \pm 0.10$.}\label{fig:fglr} \end{figure} \section{Metallicity}\label{sec:metals} In this section we take a detailed look at the metal content of blue supergiant stars in M83, one of our main motivations being the comparison with the chemical abundances of the ionized gas. First we discuss M83 in the context of the mass-metallicity relation derived from stellar spectroscopy. The stellar mass of M83 has been determined following the procedure outlined by \citet{Kudritzki:2015}, using infrared surface photometry from the {\em Wide-field Infrared Survey Explorer} (WISE; \citealt{Wright:2010}) and the {\em Spitzer} Infrared Nearby Galaxies Survey (SINGS: \citealt{Kennicutt:2003a}). We obtained $\log M/M_\odot = 10.55$, adopting the spectroscopic distance from Sect.~\ref{sec:fglr}. The recent stellar mass analysis by \citet{Barnes:2014}, based on deep Spitzer Space Telescope imaging at 3.6~$\mu$m, yields $\log M/M_\odot = 10.72$, in good agreement with our result. In the rest of the paper we will express the oxygen abundances with the notation $\rm \epsilon(O)$\,=\,12\,+\,log(O/H). \subsection{Mass-metallicity relation} The mass-metallicity relation (MZR; \citealt{Lequeux:1979, Tremonti:2004}) is an important diagnostic tool for galactic evolution studies, offering valuable insights into the star formation processes, the galactic wind outflows and the inflows that profoundly affect the chemical enrichment of the interstellar medium of star-forming galaxies (\citealt{Finlator:2008, Lilly:2013}), as well as into the redshift evolution of these mechanisms ({\citealt{Zahid:2014a, Sanders:2015}). While this relation is obtained almost exclusively from the emission-line analysis of star-forming galaxies, in our long-term project on extragalactic B- and A-type supergiants we have shown that a MZR can be defined for local galaxies using metallicities measured from young supergiant stars. Of course, the scope of this endeavor is not to compete with emission line studies, for the obvious reason that our sample size is orders of magnitude smaller. Our aim is to provide an independent look at this fundamental relation, based on a metallicity diagnostic for the young population that is completely distinct from the systematic uncertainties affecting the nebular abundances. In this context, this view of the MZR offers a first-order comparison between stellar and gaseous chemical abundances, adopting integrated metallicity values. In the following section we will consider a more detailed comparison, based on a spatially-resolved analysis of individual stars and \mbox{\ion{H}{2}}\ regions. In Fig.~\ref{fig:mz} we show the MZR we have obtained from stellar chemical abundance studies, including all the galaxies in Table~10 of \citet{Hosek:2014}, with the addition of NGC~3621 (\citealt{Kudritzki:2014}), NGC~55 (\citealt{Kudritzki:2016}), and M83 (this study, red dot). The metallicity scale on the right axis is drawn adopting the solar oxygen abundance $\rm \epsilon(O)_\odot$\,=\,8.69 from \citet{Asplund:2009}. In the case of spiral galaxies, where the metallicity decreases with distance from the center, we adopt the characteristic value measured at 0.4~$R_{25}$, based on the conclusion from \citet{Zaritsky:1994} and \citet{Moustakas:2006} that it coincides with the integrated metallicity. For comparison, in Fig.~\ref{fig:mz} we also include the relations defined with the direct method using galaxy stacks from the Sloan Digital Sky Survey (SDSS, Data Release~7, \citealt{Abazajian:2009}) by \citet[labeled as `SDSS']{Andrews:2013} and from a sample of dwarf irregular galaxies by \citet[labeled as `dIrr']{Lee:2006}. The curves defined using SDSS galaxies with four different strong-line nebular diagnostics, taken from \citet{Kewley:2008}, are also included. The four diagnostics are: N2, O3N2 (as calibrated by \citealt{Pettini:2004}), N2 (as calibrated combining photoionization models and empirical direct measurements by \citealt{Denicolo:2002}, labeled as D02) and R23\ (calibrated theoretically by \citealt{McGaugh:1991}, labeled as M91). \\ \begin{figure} \center \includegraphics[width=1.01\columnwidth]{f7}\medskip \caption{The mass-metallicity relation determined from blue supergiant spectroscopy in 15 galaxies (dots). M83 is represented by the red dot. The lines show the relations defined by the direct method in galaxy stacks (\citealt[continuous green curve]{Andrews:2013}) and dwarf galaxies (\citealt[dashed orange line]{Lee:2006}), and the relations defined from SDSS galaxies using four different strong-line diagnostics, taken from \citet[dashed lines]{Kewley:2008}.}\label{fig:mz} \end{figure} We highlight the following results from the comparison shown in Fig.~\ref{fig:mz}: \begin{itemize} \item qualitatively the MZR based on stellar spectroscopy (`stellar' MZR) is similar to the relation obtained from nebular spectra, with a relatively modest scatter. There is not much evidence for a turnover or flattening of the MZR, except perhaps at high masses, which could be due to the unfavorable statistics. \item in the high-mass regime ($\log M/M_\odot > 9.5$) the stellar MZR agrees significantly better with the MZR derived using the N2 and O3N2 diagnostics rather than theoretical calibrations of abundance indicators such as R23\ (\citealt{McGaugh:1991}). \item at intermediate masses ($8 < \log M/M_\odot < 9.5$) the stellar MZR deviates more significantly from the $\mathrm {T_e}$-based result by \citet{Andrews:2013} than at lower or higher masses. This suggests that the turnover in the stellar MZR occurs at higher masses, as also observed from the strong-line diagnostics. There is a better agreement with the curves obtained from both N2 and O3N2, and with the regression to the dwarf galaxy data by \citet{Lee:2006}. \item at the lowest masses ($\log M/M_\odot < 9.5$) there is marginal agreement of the stellar MZR with \citet{Lee:2006} and \citet{Andrews:2013}. \item the stellar MZR extends over a wide galactic stellar mass (3.5 dex), in fact extending to higher masses (and metallicities) than possible with the direct method, where the auroral lines become unmeasurable even in very high signal-to-noise SDSS spectral stacks. \end{itemize} We focus briefly on the comparison with \citet{Andrews:2013}, who have presented a recent determination of the MZR for star-forming galaxies in the local Universe, based on the stacking analysis of $\sim$200,000 SDSS galaxies. Since blue supergiants tend to provide {\em higher} metallicities than the direct analysis of \mbox{\ion{H}{2}}\ regions in M83 (as shown in the next section), the fact that in Fig.~\ref{fig:mz} the stellar abundances appear offset to $\sim$0.2 {\em lower} abundances instead (at least for $\log M/M_\odot < 10$), might appear as inconsistent. The more likely explanation is the effect of the star formation rate on the MZR calibrated by \citet{Andrews:2013}. These authors (see also \citealt{Brown:2016}) show how an increase of the SFR over the sample median shifts the MZR to lower O/H values. In fact, the average star-forming galaxy from the SDSS has a lower excitation than the \mbox{\ion{H}{2}}\ regions used to calibrate the strong-line abundance indicators (\citealt{Pilyugin:2010a}), which produces the observed systematic metallicity offset. This seems to be consistent with the fact that the dwarf irregular galaxies studied by \citet{Lee:2006}, in which the $\mathrm {T_e}$-based metallicity is generally measured from very few high-excitation \mbox{\ion{H}{2}}\ regions, define a MZR that is displaced to lower metallicities than the SDSS galaxies, except perhaps at the lowest masses, as shown in Fig.~\ref{fig:mz}. We conclude that the stellar MZR cannot be used to reliably infer which nebular abundance diagnostic yields metallicities that best match those of the supergiants. This is best done through a comparative, spatially-resolved analysis between supergiants and \mbox{\ion{H}{2}}\ regions, as done in the next section. \subsection{Comparison with gas abundances}\label{sec:hii} Emission line fluxes of \mbox{\ion{H}{2}}\ regions in M83 have been taken from the following works: \citet{Bresolin:2002}, \citet{Bresolin:2005} and \citet{Bresolin:2009}. The former two focused on nebulae located in the inner disk ($R$ $<$ $R_{25}$), while the latter studied the oxygen abundances in the extended, outer disk. We retain the full sample here, comprising 81 objects, even though the stars we studied are all situated at $R$ $<$ 0.64~$R_{25}$. We calculated strong-line abundances consistently, using a variety of methods, as described below. Direct abundances, based on the detection of auroral lines, are available for nine \mbox{\ion{H}{2}}\ regions, from \citet[5 objects in the inner disk]{Bresolin:2005} and \citet[4 objects in the outer disk]{Bresolin:2009}, including one in the nucleus of the galaxy, with a reported $\rm \epsilon(O)$\,=\,$8.94\pm0.09$ from \citet{Bresolin:2005}. As explained in Sect.~\ref{Sec:discussion}, we have redetermined the $\mathrm {T_e}$-based abundances, adopting a more recent set of atomic data, based on the references given in Table~5 of \citet{Bresolin:2009a}, and the \ion{O}{3} collision strengths from \citet{Palay:2012}. We now obtain $\rm \epsilon(O)$\,=\,$8.99\pm0.09$ for the central \mbox{\ion{H}{2}}\ region. We also note that for the inner disk regions the electron temperature has been measured based on the \mbox{[\ion{N}{2}]}\lin5755 and \mbox{[\ion{S}{3}]}\lin6312 auroral lines. The \mbox{[\ion{O}{3}]}\lin4363 line has been detected in the outer disk \mbox{\ion{H}{2}}\ regions instead. We also include in our comparison the young super star cluster (SSC) located near the center of the galaxy ($R$\,=\,0.06 $R_{25}$), whose $J$-band spectral analysis has been presented by \citet{Gazak:2014}. These authors determined a metallicity [Z]\,=\,$0.28\pm0.14$, or 1.9$\times$ solar, which corresponds to $\rm \epsilon(O)$\,=\,$8.97\pm0.14$, confirming the high central metallicity indicated by the auroral lines detected in the nucleus. We revise this value to $\rm \epsilon(O)$\,=\,$8.88\pm0.14$, to account for the difference in the solar chemical composition adopted by us and the lower value adopted in the spectral synthesis based on MARCS models (\citealt{Gustafsson:2003}) carried out by \citet{Gazak:2014}. In Fig.~\ref{fig:hii} we display metallicities, expressed as $\rm \epsilon(O)$, as a function of galactocentric distance, for the blue supergiants (star symbols), the SSC (cross symbol), \mbox{\ion{H}{2}}\ regions using the direct method (triangles) and \mbox{\ion{H}{2}}\ regions using different strong-line methods (circles). In each panel we vary the method used to derive the \mbox{\ion{H}{2}}\ region abundances, choosing, among the variety of indicators available in the literature, a representative set (both theoretically and empirically calibrated) that span the range of output abundance values. Before looking in more detail at the strong-line methods, we make a couple of remarks. Near the center of M83 the stellar metallicities are in very good agreement with both the SSC analyzed by \citet{Gazak:2014} and the central \mbox{\ion{H}{2}}\ region auroral line analysis by \citet{Bresolin:2005}, with values $\rm \epsilon(O)$\,$\simeq$\,8.9--9.0 (1.6--2.0$\times$ solar). Of the remaining four \mbox{\ion{H}{2}}\ regions having auroral line detections and galactocentric radii in the range spanned by the blue supergiants, two have O/H values that are in good agreement with the stellar metallicities, while two have O/H values that are $\sim$0.3 dex below the stellar values. The radial decrease in metallicity in the inner disk appears to be steeper for the blue supergiants compared to the \mbox{\ion{H}{2}}\ regions, except perhaps for the case where the direct abundances are considered (but in this case the statistics is poor). It is certainly possible that this really depends on the limited range of galactocentric distances of the stars in our sample. \subsubsection{Strong-line abundances}\label{sec:sl} In this section we select a few representative strong-line diagnostics and compare the chemical abundances they predict from the published line fluxes of \mbox{\ion{H}{2}}\ regions in M83, in order to understand how they compare with the metallicities we have derived for the blue supergiants. It is not our scope to examine these diagnostics in detail, and we refer the interested reader to other discussions in the literature (e.g.~\citealt{Moustakas:2010, Lopez-Sanchez:2012, Blanc:2015}). The strong-line abundance methods used in Fig.~\ref{fig:hii} are listed below (with the respective calibration paper given in brackets). We include two methods calibrated theoretically from photoionization model grids: \bibpunct[\,]{(}{)}{,}{a}{}{;} \renewcommand{\theenumi}{\alph{enumi}} \begin{enumerate} \item R23\ = (\mbox{[\ion{O}{2}]}\lin3727\,+\,\mbox{[\ion{O}{3}]}\llin4959,\,5007)/H$\beta$ (\citealt[=\,M91]{McGaugh:1991}) -- The calibration, in the analytical form given in \citet{Kuzio-de-Naray:2004}, accounts for changes in the ionization parameter, through the \mbox{[\ion{O}{3}]}/\mbox{[\ion{O}{2}]}\ line ratio. \item O2N2 = \mbox{[\ion{N}{2}]}\lin6584/\mbox{[\ion{O}{2}]}\lin3727\ (\citealt[=\,KD02]{Kewley:2002}) -- We adopt the calibration for a constant value of the ionization parameter $q = 2\times 10^7~ \rm cm\, s^{-1}$. This particular choice has little effect on the results, because of the weak effect of $q$ at high metallicities. \end{enumerate} \begin{figure*} \center \includegraphics[width=2\columnwidth]{f8}\medskip \caption{Oxygen abundance vs. galactocentric distance, normalized to the isophotal radius, as determined from blue supergiants (red star symbols) and \mbox{\ion{H}{2}}\ regions in M83. The super star cluster studied by \citet{Gazak:2014} is shown by the green cross. For \mbox{\ion{H}{2}}\ regions we plot direct (green triangles) and strong-line (blue circles) abundances. In each panel the nebular strong-line abundances were determined from a different diagnostic, as labeled (see text for more details). Linear regressions are shown for the different samples with dot-dashed lines. The slope ($a$) and the zero-point ($b$) of the regressions to the strong-line abundances are indicated in each panel, with errors in brackets. The horizontal line represents the adopted solar oxygen abundance.}\label{fig:hii} \end{figure*} Our stellar abundances lie 0.2--0.3 dex below the nebular metallicities calculated from both these diagnostics, except in the very central regions of M83, where the stellar and R23\ abundances converge.\\ The next two diagnostics were calibrated from a combination of theoretical models (at high metallicities) and empirical, $\mathrm {T_e}$-based abundances (at lower metallicities): \begin{enumerate} \setcounter{enumi}{2} \item O3N2 = \mbox{[\ion{O}{3}]}\lin5007/H$\beta$\ $\cdot$ H$\alpha$/\mbox{[\ion{N}{2}]}\lin6584\ (\citealt[=\,PP04]{Pettini:2004}) -- The calibration is based on 131 extragalactic \mbox{\ion{H}{2}}\ regions with direct abundances, supplemented with six nebulae whose oxygen abundances were determined with photoionization models. Four of these effectively shape the calibration at high metallicity, near $\rm \epsilon(O)$~$\simeq$~9.0. \item N2 = \mbox{[\ion{N}{2}]}/H$\alpha$\ (\citealt[=\,D02]{Denicolo:2002}) -- This is also a hybrid calibration, composed of \mbox{[\ion{O}{3}]}\lin4363-based abundances and model results at higher metallicities. This diagnostic tends to saturate at metallicities above solar. This behavior can be associated to the limited O/H dynamic range observed in Fig.~\ref{fig:hii} with respect to the previous methods. The effect is even stronger considering the calibrations by \citet{Pettini:2004} and \citet{Marino:2013} (not shown). \end{enumerate} Using these two diagnostics yields the best agreement between nebular and stellar metallicities in M83, a somewhat surprising result when considering the more recent or updated abundance diagnostics presented below. On the other hand, the agreement with the direct method abundances, shown by the green triangles, is overall rather poor. This is also unexpected, since both these calibrations are tied, except at high metallicities, to measurements of the auroral lines.\\ The remaining methods we consider are based on empirical calibrations, i.e.\ on samples of extragalactic \mbox{\ion{H}{2}}\ regions where direct measurements of their oxygen abundances are available. \begin{enumerate} \setcounter{enumi}{4} \item O3N2 (\citealt[=\,M13]{Marino:2013}) -- The recalibration of the O3N2 and N2 diagnostics by these authors is based on a compilation of direct abundances comprising 603 \mbox{\ion{H}{2}}\ regions. The result is a weaker dependence of these indices on metallicity compared to \citet{Pettini:2004}, producing the shallow abundance gradient in M83 seen in Fig.~\ref{fig:hii} (N2 yields a similar result). The stellar and nebular metallicities progressively diverge from each other with decreasing galactocentric radius, reaching a difference of $\sim$0.3 dex near the galaxy center. \item O2N2 (\citealt[=\,B07]{Bresolin:2007}) -- About 140 direct abundance determinations were used in this case. This index seems to provide the best fit to the auroral line-based abundances among the indicators shown in Fig.~\ref{fig:hii}, albeit not perfect. The behavior of the abundance gradient at small galactocentric distance resembles what is seen in the case of O3N2 (M13), with a central discrepancy relative to the supergiants of $\sim$0.25 dex. \item ONS (\citealt[=\,P10]{Pilyugin:2010}) -- This diagnostic, making use of the strengths of the \mbox{[\ion{O}{2}]}\lin3727, \mbox{[\ion{O}{3}]}\llin4959,\,5007, \mbox{[\ion{N}{2}]}\llin6548,\,6584 and \mbox{[\ion{S}{2}]}\llin6717,\,6731 emission lines, provides results in the inner disk that are similar to the previous two. The comparison with the outer disk direct abundances is rather poor. \item $R$ (\citealt[=\,PG16]{Pilyugin:2016}) -- The $R$ calibration makes use of the same lines as the ONS method, except for the exclusion of the \mbox{[\ion{S}{2}]}\ lines, and is based on a sample of 313 reference \mbox{\ion{H}{2}}\ regions of the `counterpart' method by the same authors (\citealt{Pilyugin:2012a}). Again, the overall outcome is comparable to the previous examples shown in Fig.~\ref{fig:hii}, the main difference being the extremely small abundance scatter obtained in the inner disk. We also tested the $S$ calibration (using \mbox{[\ion{S}{2}]}\ in place of \mbox{[\ion{N}{2}]}) from the same authors, and found results that are consistent with the $R$ calibration. \end{enumerate} \bigskip \bibpunct[, ]{(}{)}{,}{a}{}{;} Each panel of Fig.~\ref{fig:hii} reports the values of the slope and the zero point, with their errors in brackets, of a linear regression of the form $\rm \epsilon(O)$\,=\,a ($R/$$R_{25}$)\ + b to the data points corresponding to the adopted strong-line indicator, for $< R/$$R_{25}$. Our choice of the upper limit of the galactocentric distance range is somewhat arbitrary, but is necessary in order to exclude the outer disk \mbox{\ion{H}{2}}\ regions, which follow a flat radial abundance distribution (\citealt{Bresolin:2009}). Black dot-dashed lines visualize the calculated regressions. Each plot also shows linear regressions to the blue supergiant metallicities (red line), for which we obtain \begin{equation} \rm \epsilon(O) = -0.66~ (\pm 0.13)~ {\it R/R}_{25} + 9.04~ (\pm 0.04) \end{equation} and to the \mbox{\ion{H}{2}}\ region direct abundances (green line, only for $< R/$$R_{25}$): \begin{equation} \rm \epsilon(O) = -0.81~ (\pm 0.57)~ {\it R/R}_{25} + 8.96~ (\pm 0.21) \end{equation} Keeping in mind the uncertainties due to the limited radial coverage of both the blue supergiants and the \mbox{\ion{H}{2}}\ regions with available $\mathrm {T_e}$-based abundances, these regressions show that {\em all} the strong-line indicators we included in Fig.~\ref{fig:hii} produce \mbox{\ion{H}{2}}\ region abundance gradients that are significantly shallower than either the blue supergiants or the direct method. We stress that this can be due to the small number of objects considered. Blue supergiants and \mbox{\ion{H}{2}}\ regions with $\mathrm {T_e}$-based abundances have consistent slopes within the (large) uncertainties, with the stars offset by $\sim$0.1 dex to higher metallicity. On the other hand, panel $c$ of Fig.~\ref{fig:hii} also suggests that the radial metallicity distribution and the scatter of our stellar targets are not dissimilar from what can be obtained from \mbox{\ion{H}{2}}\ region data and the O3N2 PP04 method. The measurement of blue supergiant abundances at larger galactocentric distances would be necessary to draw firmer conclusions regarding the stellar metallicity gradient in M83. \bigskip We emphasize that in our comparison between stellar and nebular abundances we have not accounted for the effect of oxygen depletion onto interstellar dust grains, which in the interstellar medium in the solar neighbourhood is on the order of 0.1--0.2~dex (\citealt{Cartledge:2006, Jenkins:2009}). While the treatment of dust physics, including depletion, can be incorporated in photoionization models (\citealt{Groves:2004}), for a meaningful comparison with the stellar metallicities an upward correction to the gas-phase oxygen abundances due to dust depletion should be made when these have been derived via an empirical calibration or a direct measurement. In the model grid by \citet{Kewley:2002}, used to calibrate the N2O2 method shown in panel b of Fig.~\ref{fig:hii}, the adopted oxygen depletion factor at solar metallicity is $-0.22$ dex, while more recently \citet{Dopita:2013} used $-0.07$ dex. Empirical determinations in \mbox{\ion{H}{2}}\ regions by \citet{Mesa-Delgado:2009} and \citet{Peimbert:2010} provide depletion factors that are between $-0.08$ and $-0.12$~dex. The study of the Orion OB1 association by \citet{Simon-Diaz:2011} indicates a factor of approximately $-0.15$~dex. In the following discussion for simplicity we adopt a value of $-0.1$ dex. Accounting for dust depletion would generally bring the nebular data shown in Fig.~\ref{fig:hii} in better agreement with the stellar data in an absolute sense when considering empirically-calibrated abundance diagnostics, reducing the systematic discrepancy by $\sim$0.1 dex. Uncertainties in the amount of oxygen locked up in dust grains ultimately limit the precision with which we can compare gas-phase and stellar abundances. More optimistically, in the future we can also hope to learn about variations of dust depletion effects in different environments (e.g.\ varying the metallicity) from this kind of comparisons. \section{A chemical evolution model for M83} In this section we introduce a chemical evolution model which reproduces the present-day spatial metallicity distribution over the entire disk of M83, as obtained both from blue supergiants and \mbox{\ion{H}{2}}\ regions. In order to apply the model, we require observed galactocentric radial profiles of the stellar and interstellar gas mass column densities, because the present-day metallicity reflects the continuous cycle of conversion of interstellar gas into stars and the recycling of nuclear processed stellar material back to the interstellar gas phase. In the inner disk the ISM gas mass column density is dominated by molecular gas. We use the map of CO (1-0) emission at 115 GHz obtained by \citet{Crosthwaite:2002} with the NRAO 12m telescope at Kitt Peak and measure de-projected line intensities from a set of 10 arcsec-wide concentric tilted rings, which are then converted into azimuthally averaged $\rm H_2$ mass column densities, assuming the standard $X_{\rm CO}$ of $2\times10^{20}~\rm cm^{-2}~(K~km~s^{-1})^{-1}$, as described in \citet{Schruba:2011} and \citet{Kudritzki:2015}. For the neutral ISM gas component we re-analyze the map of \mbox{\ion{H}{1}}\ 21 cm line emission observed with the NRAO Very large Array (VLA) as part of the THINGS survey \citep{Walter:2008} and obtain line intensities (again from 10 arcsec-wide tilted rings), which are then turned into neutral hydrogen mass column densities as described in \citet{Kudritzki:2015}, following the prescriptions in \citet{Walter:2008} (see also \citealt{Leroy:2008} and \citealt{Bigiel:2010}). For the azimuthal averaging we follow \citet{Bigiel:2010}, who noted that in the strongly inhomogeneous filamentary distribution of \mbox{\ion{H}{1}}\ in the outer disk ($R \ge 0.6$\,$R_{25}$) only regions with a mass column density larger than 0.5\,$M_\odot$~pc$^{-2}$ correlate with the star formation activity. Thus, only pixels with column densities larger than this value were taken into account in the azimuthal \mbox{\ion{H}{1}}\ average. To convert the ISM hydrogen masses into total gas masses, including helium and heavy metals, a multiplicative factor of 1.36 was applied. Stellar mass column densities are measured by surface photometry of mid-infrared images observed by the {\em Wide-field Infrared Survey Explorer} (WISE; \citealt{Wright:2010}, see also Sect.~\ref{sec:metals}) in the W1 band at 3.4$\mu$ and by Spitzer/IRAC at 3.6$\mu$. Again, the same set of tilted rings as for the ISM gas is used with a conversion of surface magnitudes into mass column densities as described in \citet{Kudritzki:2015}. In this way a direct measurement of stellar mass is obtained in the range $0 \le R/R_{25} \le 1.15$. For the outer disk ($1.5 \le R/R_{25} \le 3.0$), where the stellar mass column density is below the detection limit}, we use the observation by \citet{Bigiel:2010} that the star formation rate column density is closely correlated with the \mbox{\ion{H}{1}}\ mass column density via the proportionality \begin{equation} \rm \Sigma_{SFR} = {1 \over \tau_{depl}}~ \Sigma_{H\,I} \end{equation} where $\rm \tau_{depl} \approx$ 70 Gyr is the \mbox{\ion{H}{1}}\ depletion time. Assuming constant star formation as a function of time one can then approximate the present stellar mass column density in the outer disk by \begin{equation} \rm \Sigma_{\star} = {\tau_{disk} \over \tau_{depl}}~ \Sigma_{H\,I}. \end{equation} \noindent $\rm \tau_{disk}$ is the age of the outer disk, for which we assume 5 Gyr. For the transition region ($1.15 \le R/R_{25} \le 1.5$) we adopt an exponential decline with a scale length of 0.1078 in $R$/$R_{25}$\ units, until the column density level of the outer disk is reached. The resulting profiles of stellar, total gas, neutral and molecular gas masses are shown in Fig.~\ref{fig:mass_profiles}. For our modelling effort we use the chemical evolution model developed by \citet{Kudritzki:2015}. Contrary to the simple, closed box description, in which the evolution of the metallicity is tied solely to the ratio of stellar to gas mass (\citealt{Pagel:1975}), this model accounts for effects of gas inflows and outflows in regulating the radial distribution of metals, and oxygen in particular (e.g.\ \citealt{Edmunds:1990}). For simplicity, it assumes time- and location-invariant rates of mass infall $\Lambda = \dot{M}_{\rm accr}/\psi$ and mass outflow due to galactic winds $\eta = \dot{M}_{\rm loss}/\psi$ as a function of the star formation rate $\psi$. The observed galactic radial metallicity distribution is then described analytically as a function of the stellar and gas radial mass profiles, with the infall and outflow rates as free parameters, derived from comparing the observed metallicity radial profile with the model. In a first step, we calculate a simple closed box model with $\eta = 0$ and $\Lambda = 0$, adopting the stellar and gas masses of Fig.~\ref{fig:mass_profiles} and the chemical yields and stellar mass return fractions of \citet{Kudritzki:2015}. The predicted oxygen abundance is shown in Fig.~\ref{fig:model} by the dashed cyan line. The observations are displayed as green dots (strong-line abundances from the N2O2 B07 method, selected because of the small abundance scatter compared to other methods), green squares (auroral lines), blue dots (stellar metallicities) and a single red dot (the inner SSC). We adjusted the nebular N2O2 strong line abundances by $+0.2$~dex to account for the systematic difference found in Sect.~\ref{sec:sl}. The auroral abundances were shifted by $+0.1$~dex to compensate for the effects of dust depletion (see Sect.~\ref{sec:hii} and \ref{Sec:discussion}). In the inner region, $R/R_{25} \le 0.5$, the closed box model is only marginally off, predicting metallicities slightly too large when compared with most of the observed objects, while for $0.5 \le R/R_{25} \le 1.0$ the model metallicities are clearly too high. For the outer disk the closed box model produces metallicities that are almost an order of magnitude too low. The failure of the closed box model in the outer disk has already been pointed out by \citet{Bresolin:2012}, who postulated that the elevated levels of metal enrichment found in the extended UV disks of a few spiral galaxies, including M83, are consistent with an enriched infall scenario, in which metal-enriched gas inflows are responsible for the observed abundances, while the constant ratio of the star formation rate to gas surface densities (i.e.\ the star formation efficiency) would explain the flat outer gradient (see also \citealt{Kudritzki:2014} for the spiral galaxy NGC~3621). Our modeling now allows us to test these ideas, and to assign meaningful constraints to the metallicity of the infalling gas. In the next step we apply an improved model which accounts for galactic wind outflows and accretion infall. We assume that the metallicity of the outflowing gas is equal to the actual metallicity of the ISM, whereas infall happens with a fixed metallicity, which could either be zero in case the galaxy accretes pristine gas from the cosmic web or larger than zero, if matter falls in from a halo enriched by mass outflow from the inner galactic disk. For the latter case we modify the analytical model by \citet{Kudritzki:2015} by replacing the yield $y_{\rm Z}$ in their equations (18), (21), (22) by $\tilde{y}_{\rm Z} = y_{\rm Z} + Z_{\rm infall}\, \Lambda$, where $Z_{\rm infall}$ is the metallicity mass fraction of the infalling gas. We divide the radial range into three separate zones, in which we vary the mass outflow and inflow rates, and the metallicity of the infalling gas. In our modeling we find that the best-fitting solution requires no infall ($\Lambda = 0$) and moderate rates of outflow $\eta$ in the inner disk. The observations of the outer disk, on the other hand, require significant infall with gas which is already metal enriched to the level of a typical Local Group dwarf galaxy. Our adopted solution has the following parameters: \smallskip \begin{tabular}{l c c c c} Zone & $R$/$R_{25}$\ & $\rm \epsilon(O)$$_{\rm infall}$ & $\Lambda$ & $\eta$ \\[2pt] I & 0.0 -- 0.5 & 0.00 & 0.00 & 0.12 \\ II & 0.5 -- 1.3 & 0.00 & 0.00 & 0.50 \\ III & 1.3 -- 3.0 & 8.20 & 1.00 & 0.00 \\ \end{tabular} \medskip \begin{figure} \center \includegraphics[width=1.01\columnwidth]{f9}\medskip \caption{Logarithm of M83 radial column density mass profiles for the different components used in the chemical evolution model. The gas masses have been corrected to account for the presence of helium and heavy metals. }\label{fig:mass_profiles} \end{figure} Our model fit is displayed in Fig.~\ref{fig:model}. The model reproduces the spatial distribution of metallicity nicely. The case for an enrichment of the infalling gas, presumably coming from matter previously ejected by the inner regions of the disk, is evident. The O/H spike at $R=1.3$ $R_{25}$\ is an artefact of the modeling procedure occurring at the beginning of zone III, where the ratio of stellar to gas mass still declines rapidly, while the metal enriched infall has already started. We also note that the model fit of zone III is not unique. As can be shown analytically from the modified equations in \citet{Kudritzki:2015}, every model with $\rm \epsilon(O)$$_{\rm infall} = 8.20 - \log(\Lambda) (\Lambda \neq 1)$ produces a similar fit. However, we can set an upper limit to $\Lambda$ for this degeneracy. For very high infall rates $\Lambda$ the chemical evolution model has solutions only for ratios of stellar to gas mass limited to \begin{equation} \rm \frac{\Sigma_{\star}}{\Sigma_{H\,I}} \le \frac{1}{\frac{5}{3}\Lambda - 1} \end{equation} (see \citealt{Kudritzki:2015}, Sect.~3, their case $\alpha \lneqq -1$). For the outer disk this limits the infall rate to \begin{equation} \rm \Lambda \le \frac{3}{5} \left ( \frac{\tau_{depl}}{\tau_{disk}} + 1 \right ) = 9 \end{equation} and the minimum metallicity of the infalling gas to $\rm \epsilon(O)$$_{\rm infall}$ = 7.25, comparable to an extremely metal-poor dwarf galaxy such as I~Zw~18. Independent of this degeneracy, the chemical evolution modeling procedure we carried out demonstrates two important requirements to reproduce the abundances in the outer disk of M83: a chemically enriched gas inflow and a star formation efficiency that is roughly constant with radius, in line with the suggestions made by \citet{Bresolin:2012}. It also indicates that a linear fit to the observations with a single gradient in the inner region might be too simple an approach to capture the underlying physics responsible for the spatial distribution of metallicity. \begin{figure} \center \includegraphics[width=1.01\columnwidth]{f10}\medskip \caption{{Comparison between the observed metallicities in M83 and our chemical evolution model. The data refer to the strong-line abundances obtained from the N2O2 diagnostic (B07 calibration, green dots), the auroral line-based abundances (green squares), the stellar metallicities (blue dots) and the central super star cluster (red dot). Models: accounting for inner galactic winds and outer enriched infall (orange full line, see text) and closed-box model without outflow and infall (dashed cyan line).}}\label{fig:model} \end{figure} \section{Discussion}\label{Sec:discussion} \subsection{Strong-line methods} The comparison we carried out in Sect.~\ref{sec:hii} reveals that most of the nebular diagnostics we considered yield abundances that do not agree with the metallicities of the blue supergiant stars in M83. This appears to be true for both empirically- and theoretically-calibrated diagnostics. The potential perils of systematic uncertainties, although difficult to estimate, should be kept in mind. For example, abundance offsets could result from a significant mismatch in physical properties between the nebulae in M83 and the calibrating samples or models used for the abundance diagnostics. In this regard, we do note that the nebular N/O ratio in M83 appears to be higher than average (\citealt{Bresolin:2005}), albeit the uncertainties are large, and this could affect the abundances derived from diagnostics involving the nitrogen lines. However, a higher N/O ratio would lead to overestimate the nebular O/H ratio (\citealt{Perez-Montero:2009a}), opposite to what the comparison with the stellar metallicities suggests. For systematics concerning stellar abundances, we refer to \citet{Przybilla:2006} and \citet{Nieva:2012} and references therein. Panels a--d in Fig.~\ref{fig:hii} indicate that at the highest metallicities considered in this work on M83 (nearly 2$\times$ solar) some of the theoretical calibrations can produce nebular abundances in good agreement with the stellar metallicities we measured, in particular, the O3N2 method (panel c), whose calibration by \citet{Pettini:2004} at the high-metallicity end relies on photoionization models (this holds also after adding 0.1 dex to the nebular abundances to account for dust depletion on dust grains). On the other hand, panels e--h show that empirical, $\mathrm {T_e}$-based calibrations of strong-line methods yield results that, approximately above the solar O/H value, lie $\sim$0.2~dex below the stellar metallicities. At the same time, some of the auroral line-based nebular abundances appear to agree with the stellar metallicities even very close to the center of M83, where the metallicity is highest. \medskip At face value, and considering the blue supergiant surface chemical abundances to be representative of the `true' metallicity of the young populations of M83, these results suggest the existence of a problem with the empirical calibrations, i.e.\ that they progressively underestimate O/H with increasing metallicity, by $\sim$0.1--0.2 dex around 2$\times$ the solar value (correcting for 0.1 dex due to dust depletion). If in the following we assume this to be correct, this could result from the well-known difficulty for the empirical methods to establish the calibrating samples of high-metallicity \mbox{\ion{H}{2}}\ regions, which rely on the detection of faint auroral lines and somewhat uncertain relationships used to infer, for example, the temperature of the \mbox{[\ion{O}{3}]}-emitting nebular zone from the temperature measured for the \mbox{[\ion{S}{3}]}- or \mbox{[\ion{N}{2}]}-emitting zones (e.g.\ \citealt{Garnett:1992}). It is thus possible that the empirical calibrations are affected by a selection bias, whereby the \mbox{\ion{H}{2}}\ regions with the strongest auroral lines (corresponding to higher gas electron temperatures and lower metallicities) are preferentially measured at high oxygen abundances. While a few high-metallicity \mbox{\ion{H}{2}}\ regions could still be providing reliable abundances, as seen also in the case of M83, more generally the calibrating samples could be biased to low abundances. A completely different interpretation is that we might be detecting the bias predicted by \citet{Stasinska:2005} to occur due to \mbox{\ion{H}{2}}\ region temperature stratification. According to this work, the direct method could underestimate the abundance by 0.2~dex or more above the solar value. Nebular abundances that are systematically higher than those derived from the direct method are also obtained from the use of recombination lines (as formalized by the presence of an abundance discrepancy factor ADF, \citealt{Garcia-Rojas:2007}), by an amount that is comparable to the difference we observe in the central regions of M83. The most popular interpretation for this discrepancy is given in terms of temperature fluctuations (\citealt{Peimbert:1967, Peimbert:2013}), but other explanations have also been proposed, such as the presence of metal-rich inclusions (\citealt{Tsamis:2003, Stasinska:2007a}). Alternatively, deviations from the thermal electron velocity distribution commonly assumed for ionized nebulae have been invoked (\citealt{Nicholls:2012, Nicholls:2013}). \medskip \subsubsection{A recommended strong-line method?} It bears on the initial motivation of our work to try and identify which, if any, of the strong-line methods we looked at can be recommended for extragalactic emission-line abundance studies in order to obtain metallicities that are in agreement, in an absolute sense, with current and published results based on stellar spectroscopy. We emphasize again that such an approach is encouraged by the relatively small systematic uncertainties in the stellar abundances, and the good agreement for the metallicities determined independently for massive hot and cool stars, from analyses carried out in different wavelength regimes (\citealt{Gazak:2014, Gazak:2015, Davies:2015}), which boosts our confidence on the metallicity scale defined by massive stars. From our discussion in Sect.~\ref{sec:hii} the O3N2 diagnostic calibrated by \citet{Pettini:2004} stands out as the only one providing \mbox{\ion{H}{2}}\ region abundances that are consistent with our stellar metallicities in M83, which are all but one above the solar value. In the similarly high metallicity ($\rm \epsilon(O)$\ $>$ 8.6) environment of the galaxy M81 we reach the same conclusion, analyzing the supergiant data from \citet{Kudritzki:2012} and the nebular emission fluxes from \citet{Patterson:2012} and \citet{Arellano-Cordova:2016}. Keeping in mind the statistical nature of strong-line diagnostics (i.e.\ the fact that they can fail on individual objects) we can extend this statement to include lower metallicities by looking, for example, at our study of NGC~300 (\citealt{Bresolin:2009a}). We find that in this case ($\rm \epsilon(O)$\ $<$ 8.6) the radial trend of the stellar metallicities is equally well reproduced by O3N2 (PP4), the ONS and the $R$ methods, if a modest dust depletion factor is introduced. In summary, the use of O3N2 (PP4) for extragalactic \mbox{\ion{H}{2}}\ regions provides $\rm \epsilon(O)$\ values that are consistent with the metallicity scale defined by our stellar work across a wide metallicity range, 8.1 $\lesssim$ $\rm \epsilon(O)$\ $\lesssim$ 9. \floattable \begin{deluxetable}{lccccccccc} \tablecolumns{10} \tablewidth{0pt} \tablecaption{Abundance data for objects with stellar and nebular abundance information.\label{table:celrl}} \tablehead{ \colhead{Object} & \multicolumn{3}{c}{$\rm\epsilon(O)$: R\,=\,0} & \multicolumn{3}{c}{$\rm\epsilon(O)$: R\,=\,0.4~$R_{25}$} & \multicolumn{3}{c}{References}\\[0.5mm] \colhead{} & \colhead{stars} & \multicolumn{2}{c}{\mbox{\ion{H}{2}}\ regions} & \colhead{stars} & \multicolumn{2}{c}{\mbox{\ion{H}{2}}\ regions} & \colhead{stars} & \colhead{{\sc cel}} & \colhead{{\sc rl}}\\[0.5mm] \colhead{} & \colhead{} & \colhead{{\sc cel}} & \colhead{{\sc rl}} & \colhead{} & \colhead{{\sc cel}} & \colhead{{\sc rl}} & \colhead{} & \colhead{} & \colhead{} } \startdata \\[-4mm] Sextans A & $7.70 \pm 0.07$ & $7.49 \pm 0.06$ & \nodata & \nodata & \nodata & \nodata & K04 & K05 & \\ WLM & $7.82 \pm 0.06$ & $7.82 \pm 0.09$ & \nodata & \nodata & \nodata & \nodata & U08 & L05 & \\ IC~1613 & $7.90 \pm 0.08$ & $7.78 \pm 0.07$ & \nodata & \nodata & \nodata & \nodata & B07 & B07 & \\ NGC~3109 & $8.02 \pm 0.13$ & $7.81 \pm 0.08$ & \nodata & \nodata & \nodata & \nodata & H14 & P07 & \\ ~~~~~'' & $7.76 \pm 0.07$ & $7.81 \pm 0.08$ & \nodata & \nodata & \nodata & \nodata & E07 & P07 & \\ NGC~6822 & $8.08 \pm 0.21$ & $8.14 \pm 0.08$ & $8.37 \pm 0.09$ & \nodata & \nodata & \nodata & P15 & L06 & P05 \\ SMC & $8.06 \pm 0.10$ & $8.05 \pm 0.09$ & $8.24 \pm 0.16$ & \nodata & \nodata & \nodata & H07 & B07 & PG12 \\ LMC & $8.33 \pm 0.08$ & $8.40 \pm 0.10$ & $8.54 \pm 0.05$ & \nodata & \nodata & \nodata & H07 & B07 & P03 \\ NGC~55 & $8.32 \pm 0.06$ & $8.21 \pm 0.10$ & \nodata & \nodata & \nodata & \nodata & K16 & T03 & \\ NGC~300 & $8.59 \pm 0.05$ & $8.59 \pm 0.02$ & $8.71 \pm 0.10$ & $8.42 \pm 0.06$ & $8.43 \pm 0.02$ & $8.65 \pm 0.12$ & K08 & B09 & T16 \\ M33 & $8.78 \pm 0.04$ & $8.51 \pm 0.04$ & $8.76 \pm 0.07$ & $8.49 \pm 0.05$ & $8.36 \pm 0.05$ & $8.63 \pm 0.09$ & U09 & B11 & T16 \\ M31 & $8.99 \pm 0.10$ & $8.74 \pm 0.20$ & $8.94 \pm 0.03$ & $8.74 \pm 0.10$ & $8.51 \pm 0.21$ & $8.69 \pm 0.03$ & Z12 & Z12 & E09 \\ M81 & $8.98 \pm 0.06$ & $8.86 \pm 0.13$ & \nodata & $8.81 \pm 0.07$ & $8.72 \pm 0.13$ & \nodata & K12 & P12 & \\ M42 & $8.74 \pm 0.04$ & $8.53 \pm 0.01$ & $8.65 \pm 0.03$ & \nodata & \nodata & \nodata & S11 & E04 & S11 \\ M83 & $9.04 \pm 0.04$ & $8.90 \pm 0.19$ & \nodata & $8.78 \pm 0.07$ & $8.73 \pm 0.27$ & \nodata & This & work & \\ [1mm] \enddata \tablerefs{{\sc Stars:} K04: \citet{Kaufer:2004}; U08: \citet{Urbaneja:2008}; B07: \citet{Bresolin:2007a}; H14: \citet{Hosek:2014}; E07: \citet{Evans:2007}; P15: \citet{Patrick:2015}; H07: \citet{Hunter:2007}; K16: \citet{Kudritzki:2016}; K08: \citet{Kudritzki:2008}; U09: \citet{U:2009}; Z12: \citet{Zurita:2012}; K12: \citet{Kudritzki:2012}; S11: \citet{Simon-Diaz:2011}. ~---{{\sc cel}:} K05: \citet{Kniazev:2005}; L05: \citet{Lee:2005}; B07: \citet{Bresolin:2007a}; P07: \citet{Pena:2007}; L06: \citet{Lee:2006}; T03: \citet{Tullmann:2003}; B09: \citet{Bresolin:2009a} B11: \citet{Bresolin:2011a}; Z12: \citet{Zurita:2012}; P12: \citet{Patterson:2012}; E04: \citet{Esteban:2004}. ~---{{\sc rl}:} P05: \citet{Peimbert:2005}; PG12: \citet{Pena-Guerrero:2012}; P03: \citet{Peimbert:2003}; T16: \citet{Toribio-San-Cipriano:2016}; E09: \citet{Esteban:2009}; S11: \citet{Simon-Diaz:2011}.} \tablecomments{All {\sc cel}-based abundances redetermined with consistent and updated atomic data (see text).} \end{deluxetable} \subsection{Stellar vs.\ nebular abundances: auroral and recombination lines} Despite the complexity of the physics of ionized nebulae, which hinders the resolution of issues related to their temperature and density structure, and in view of the urgency to understand how to select the correct absolute abundance scale, it is worthwile to test empirically whether the difference between stellar and nebular direct abundances remains constant with metallicity, as is the case for the difference obtained using {\sc cel} s and {\sc rl} s ($\sim$0.2 dex, \citealt{Garcia-Rojas:2007}). For this purpose, we have assembled published data on stellar abundances for young stars and \mbox{\ion{H}{2}}\ regions in nearby galaxies and the Milky Way, as summarized in Table~\ref{table:celrl}. The nebular oxygen abundances refer to {\sc cel}-based determinations and, for seven objects, {\sc rl}-based results. The latter refer mostly to single \mbox{\ion{H}{2}}\ regions in different galaxies, while {\sc cel}\ measurements are typically available for several \mbox{\ion{H}{2}}\ regions. For irregular galaxies, due to their spatially homogeneous abundance distribution or their flat/very shallow metallicity gradients, we report mean abundance values, while for spirals we use the available radial gradient information to obtain the metallicity both at the center and at 0.4~$R_{25}$. For several of the galaxies reported in Table~\ref{table:celrl} we used the data compilation from \citet{Bresolin:2011}, who re-analyzed published emission line fluxes in order to homogenize the derived abundances, using a set of atomic data consistent with the work on NGC~300 by \citet{Bresolin:2009a}. For the present work we re-determined all the $\mathrm {T_e}$-based abundances using IRAF's {\em nebular} package, with the atomic parameters used in \citet[Table~5]{Bresolin:2009a} but updating the \ion{O}{3} collision strengths from \citet{Palay:2012}, and re-deriving radial gradients when necessary. The updated \ion{O}{3} collision strengths determined an increase in $\rm \epsilon(O)$\ of typically 0.02--0.04~dex. It is worth pointing out that our comparison is mostly of a statistical nature, because the ideal situation in which stellar and nebular abundances are simultaneously available for young stars and their parent gas cloud, as in the case of the Orion nebula in the Milky Way, is still not realized with current data in extragalactic systems. \begin{figure*} \center \includegraphics[width=1.7\columnwidth]{f11}\medskip \caption{Difference in metallicity between young stars and ionized gas for a sample extracted from the literature and the M83 data presented here. We have added 0.1 dex to the gas metallicities reported in Table~\ref{table:celrl} to account for dust depletion. For spiral galaxies the metallicities correspond to the central values. We use blue circles and orange squares for nebular oxygen abundances determined from the direct method and from recombination lines, respectively. The adopted solar O/H value is shown by the vertical line.}\label{fig:hiistars} \end{figure*} \medskip In Fig.~\ref{fig:hiistars} we show the difference between stellar and nebular abundances as a function of stellar metallicity. We added 0.1~dex to the \mbox{\ion{H}{2}}\ region abundances included in Table~\ref{table:celrl} to account for the effect of depletion onto dust grains. For spiral galaxies we use the central metallicity values (our main conclusions do not change if we use the characteristic metallicity at 0.4~$R_{25}$). The blue dots refer to the quantity $\rm \Delta\epsilon(O)_{CEL}$, the (stars$-$gas) metallicity difference, using direct abundances for \mbox{\ion{H}{2}}\ regions. The orange open square symbols are used for the corresponding quantity $\rm \Delta\epsilon(O)_{RL}$ using the nebular {\sc rl} s instead to estimate the gaseous abundances. In order to support our interpretation, we comment on the following objects: \let\origdescription\description \renewenvironment{description}{ \setlength{\leftmargini}{0em} \origdescription \setlength{\itemindent}{0em} } \begin{description} \item[\rm Sextans~A] The spectral data we used for the nebular abundance of three \mbox{\ion{H}{2}}\ regions, from \citet{Kniazev:2005}, do not cover the \mbox{[\ion{O}{2}]}\lin3727 line, and the resulting $\rm O^+/H^+$ abundance relies on the \mbox{[\ion{O}{2}]}\llin7320--7330 auroral lines instead, and as such we suspect that it is subject to a higher level of uncertainty than reported (see \citealt{Kennicutt:2003}). \item[\rm NGC~3109] There is a discrepancy between the metallicities of B- and A-type supergiants from \citet{Evans:2007} and \citet{Hosek:2014}, respectively. We use both measurements in Fig.~\ref{fig:hiistars}, using the stellar type (B or A) as a subscript to the galaxy name. \item[\rm NGC~6822] We use the mean metallicity of the 11 red supergiants studied by \citet{Patrick:2015}, with a $-0.086$~dex correction to account for the difference in the adopted solar metallicity value (see Sect.~\ref{sec:hii} with respect to the MARCS model atmospheres used for red supergiants). Although we are not using blue supergiants for this galaxy, we point out that red supergiants have been shown by \citet{Gazak:2015} to provide chemical abundances that are in excellent agreement with blue supergiants. \item[\rm SMC] We use the {\sc rl}\ measurements from \citet{Pena-Guerrero:2012} for the two \mbox{\ion{H}{2}}\ regions NGC~456 and NGC~460, taking the weighted average of the published, gas-phase results. We do not include the study of N66 by \citet{Tsamis:2003}, which is highly discrepant relative to the stellar and {\sc cel}-based metallicities, with $\rm \epsilon(O)$\,=\,8.47, but without an estimate of the uncertainty. \item[\rm M31] The abundance gradient in the Andromeda Galaxy is still quite uncertain. For the estimation of the quantities in Table~\ref{table:celrl} we relied on the gradient determined from {\sc cel}\ by \citet{Zurita:2012}, and used the same slope to estimate the values for {\sc rl} s and stars. Based on \citet{Zurita:2012} and \citet{Esteban:2009} we used a value $\rm \Delta\epsilon(O)$ relative to the {\sc cel} s of +0.25~dex and +0.2~dex for stars and {\sc rl} s, respectively. \item[\rm M42] We include data for the Orion nebula and the Orion OB1 stellar association in the Milky Way. The abundance results for this object are consistent with other measurements of the chemical abundances in the local neighbourhood (e.g.\ \citealt{Nieva:2012, Garcia-Rojas:2014}), not included in the figure for clarity. We re-derived the {\sc cel}-based nebular oxygen abundance using the data by \citet{Esteban:2004}, and following the same procedure as in \citet{Simon-Diaz:2011}, i.e.\ using the \mbox{[\ion{N}{2}]}\ temperature for the $\rm O^+$ region, and the electron density from the \mbox{[\ion{O}{2}]}\ 3726/3727~\AA\ line ratio. The effect of the updated \ion{O}{3} collision strengths on the final oxygen abundance is minor ($\sim 0.01$~dex). \item[\rm M83] As we mentioned earlier, the auroral line-based gradient, that we used to estimate the central abundance, is quite uncertain. Nevertheless, the central abundance that we adopt is close to the value we measure for the central \mbox{\ion{H}{2}}\ region. \end{description} \bigskip Focusing on $\rm \Delta\epsilon(O)_{CEL}$ first, we note that this quantity appears to be largely independent of metallicity. Fig.~\ref{fig:hiistars} suggests that the direct method yields metallicities that could lie, on average, below the stellar ones at high metallicity, but does not seem to be true for all objects. We divided (arbitrarily) the sample at $\rm \epsilon(O)$\,=\,8.7 and performed a weighted mean for different metallicity ranges, as summarized below: \smallskip \begin{tabular}{l c} Range & $\rm \Delta\epsilon(O)_{CEL}$ -- Weighted mean \\[2pt] $\rm \epsilon(O) < 8.7$ & $-0.05 \pm 0.09$ \\ $\rm \epsilon(O) > 8.7$ & $+0.12 \pm 0.04$ \\ All & $+0.03 \pm 0.11$ \\ \end{tabular} \medskip The difference between high and low metallicity is marginally significant ($\sim 1 \sigma$). The point remains that for some objects with small observational errors (M33, M42 and other Galactic objects not included in Fig.~\ref{fig:hiistars}, e.g.\ the Cocoon Nebula, \citealt{Garcia-Rojas:2014}) the direct method underestimates the stellar metallicity by $\sim$0.1~dex, even considering the dust depletion correction. Turning to $\rm \Delta\epsilon(O)_{RL}$, as shown by the seven open square symbols in Fig.~\ref{fig:hiistars}, we notice a somewhat opposite behavior. The agreement with the stellar metallicities is excellent in the high-abundance regime, a result that has been pointed out already by several authors (e.g.\ \citealt{Simon-Diaz:2011}). At lower metallicities, however, the {\sc rl}-based nebular abundances tend to diverge from the stellar ones. The mean offset for the four data points at $\rm \epsilon(O)$\,$<8.7$ is $-0.28 \pm 0.05$, after the 0.1~dex correction for dust depletion. To our knowledge, this is the first time that this effect has been identified or emphasized. We examine here briefly the four data points in Fig.~\ref{fig:hiistars} that indicate a significant difference between stellar and {\sc rl}-based metallicities.\\ \noindent SMC and LMC: The stellar metallicities and mean $\rm \epsilon(O)$\ values of the Small and Magellanic Clouds are known to quite good precision from the VLT-FLAMES survey (\citealt{Hunter:2007}), in which the chemical abundances of B-type stars are obtained with the same non-LTE {\sc fastwind} code (\citealt{Puls:2005}) utilized for other objects included in Fig.~\ref{fig:hiistars} (e.g.\ M42, NGC~300, WLM, NGC~3109), which ensures some level of homogeneity in our analysis. We also note that for the LMC the \citet{Hunter:2007} metallicity agrees very well with the most recent study of 90 blue supergiants by \citet{Urbaneja:2016}. The {\sc rl} s have been studied in the two SMC nebulae mentioned earlier and in 30~Dor for the LMC. \\ \noindent NGC~300: \citet{Bresolin:2009a} found very good agreement between the absolute abundances determined from A and B supergiants, which rely upon different diagnostic lines as well as stellar models. Moreover, \citet{Urbaneja:2016} demonstrated the absence of systematic effects when the spectral analysis is carried out from spectra of high (as used in the LMC/SMC) or medium (as used in NGC~300) resolution. The $\rm \Delta\epsilon(O)_{RL}$ value we used for this galaxy does not depend on the use of central abundances only, as can be seen from the work on the metal {\sc rl} s by \citet{Toribio-San-Cipriano:2016}\\ \noindent NGC~6822: We have used the recent metallicities for 11 red supergiants from \citet{Patrick:2015}, which are in good agreement with the overall metallicity obtained from B-type supergiants by \citet{Muschielok:1999} and from 2 A-type supergiants by \citet{Venn:2001}.\\ \smallskip We note that the mean difference between {\sc rl}- and {\sc cel}-based abundances is 0.16\,$\pm$\,0.05 for the seven objects included in Fig.~\ref{fig:hiistars}, consistent with the value for the oxygen ADF\,=\,0.26\,$\pm$\,0.09 measured by \citet{Esteban:2009} for a sample of extragalactic \mbox{\ion{H}{2}}\ regions and with other determinations in the Milky Way (e.g.\ \citealt{Garcia-Rojas:2007}). \smallskip An in-depth discussion of our results within the context of the non-equilibrium $\kappa$ electron energy distribution lies outside the scopes of this paper. However, it is worth recalling that the assumption of a $\kappa$ distribution has a profound impact on the abundances derived from {\sc cel} s, due to the strong sensitivity of these lines to the gas temperature (see \citealt{Nicholls:2012, Nicholls:2013} for details). In fact, the assumption of even a moderate deviation from the Maxwellian energy distribution can explain the ADF observed in Galactic and extragalactic \mbox{\ion{H}{2}}\ regions, and similarly the abundance offset between theoretically-calibrated strong line abundance determination methods and the direct method. We do note however that the photoionization models presented by \citet[see their Fig.~32]{Dopita:2013}, calculated for $\kappa = 20$, predict that this offset, which is roughly constant with metallicity below the solar value, increases rapidly for higher metallicities. \citet[Fig.~9]{Blanc:2015} also illustrated a difference between {\sc rl}\ abundances and those derived from photoionization models that increases with metallicity. We suggest that this effect, that appears to be on the order of 0.2 dex, mirrors the behavior of $\rm \Delta\epsilon(O)_{RL}$ seen in Fig.~\ref{fig:hiistars}. \section{Summary} In this paper we have highlighted the importance of carrying out stellar spectroscopy of individual massive stars in nearby galaxies as a means to test the poorly understood systematic uncertainties of present-day nebular abundance diagnostics currently in use. This approach appears to be particularly relevant in a high metallicity, super-solar galactic environment, as encountered in the relatively nearby galaxy M83, because abundance biases that can affect the direct method should be more easily detected. Within the context of a long-term program based on the quantitative stellar spectroscopy of blue supergiant stars in nearby galaxies, we have measured stellar parameters and metallicities for 14 A-type supergiants in the inner disk of M83. We have derived a spectroscopic distance to M83, based on the flux-weighted--luminosity relationship, finding an excellent agreement with alternative extragalactic distance determination methods. We have used the metallicity information to provide a new data point in a version of the local galaxy mass-metallicity relation that avoids the use of \mbox{\ion{H}{2}}\ region emission line data, and discussed how this can be useful for an independent test of the shape and zero-point of the relation itself. We presented a chemical evolution model, tailored to reproduce the radial abundance gradient of this galaxy out to almost 3\,$R_{25}$, that is able to quantify the metallicity of the gas infalling into the outer regions, and that is responsible for the chemical enrichment of the outer disk, as observed by \citet{Bresolin:2009}. We then focused on the comparative analysis of present-day metallicities in M83, from measurements based on \mbox{\ion{H}{2}}\ regions (using the direct method and six different strong line diagnostics) and blue supergiants. We found that $\mathrm {T_e}$-based abundances determined in the inner disk of M83 are in relatively good agreement with the stellar metallicities, once a $\sim$0.1 dex correction to the nebular oxygen abundance due to dust depletion is accounted for. However, around the solar metallicity and above oxygen abundances estimated from most strong line methods calibrated empirically from \mbox{\ion{H}{2}}\ regions where the direct method can be applied tend to underestimate the stellar abundances. We argue that this can be related to difficulties in selecting the appropriate calibration samples at high metallicity. We find that among existing strong-line methods, O3N2 as calibrated by \citet{Pettini:2004} gives nebular abundances that are in best agreement with the stellar metallicities when radial abundance gradients are analyzed. We confirm that metal recombination lines are in excellent agreement with stellar abundances for high metallicity systems (e.g.\ the Orion nebula), but provide evidence that in more metal-poor environments they tend to underestimate the stellar metallicities by a significant amount, while the direct method does not seem to be systematically offset from the stars, except at high metallicity. Future observations of {\sc rl}-based abundances in selected low-metallicity galaxies would be helpful to shed light on this point. \acknowledgments FB and RPK acknowledge support by the National Science Foundation under grants AST-1008789 and AST-1108906. RPK, MAU, WG were supported by the Munich Institute for Astro- and Particle Physics (MIAPP) of the DFG cluster of excellence ''Origin and Structure of the Universe''. WG and GP gratefully acknowledge financial support for this work received from the BASAL Centro de Astrof\'isica y Tecnolog\'ias Afines (CATA), PFB-06/2007. WG also acknowledges support from the Millenium Institute of Astrophysics (MAS) of the Iniciativa Cient\'ifica Milenio del Ministerio de Econom\'ia, Fomento y Turismo de Chile, grant IC120009. In addition, support from the Ideas Plus grant of the Polish Ministry of Science and Higher Education and TEAM subsidies of the Foundation for Polish Science (FNP) is acknowledged by GP. This work is based on observations collected at the European Organisation for Astronomical Research in the Southern Hemisphere under ESO programmes 091.D-0147(B) and 095.D-0021(B).\\ \vspace{5mm} \facilities{VLT:Antu (FORS2), HST (WFC3)} \software{PyRAF, SM, IDL, DOLPHOT, APLpy} \bibliographystyle{aasjournal}
\section{Introduction} Photoionization processes play an important role in chemical physics as a fundamental probe of the structural and dynamical properties of many-body systems. Photoelectron spectroscopy is often applied to identify the electronic structure of materials in different fields as well as in different contexts. For example, photoelectron spectroscopy is used in astrophysics, aeronomy, radiation chemistry, environmental and atmospheric chemistry, metrology, surface science and catalysis and new material development in order to obtain detailed information about the energy levels and electronic wavefunctions of molecules and ions, as well as their interactions with radiation. The development of theoretical models of electrodynamical processes in complex systems is driven primarily by the development in experimental techniques. Synchrotron radiation sources and the recent emergence of high-brightness x-ray free electron laser sources has stimulated renewed research activity in the area of molecular photoionization, which impacts the achievable resolution of methods of structure determination in molecules and clusters. A theoretical method suitable for the calculation of electrodynamical processes in molecules or clusters ultimately depends on the availability of the appropriate transition matrix elements involving continuous states, obtained either by detailed calculation or by some approximation scheme. One of the unresolved issues in scattering theory in general, and photoionization theory in particular, involves the representation of the photoelectron wavefunction in a continuum state. The available theoretical methods for calculating the transition matrix can be broadly characterized as either employing a projection of the continuum wavefunction onto a square integrable ($L^2$) basis set or the construction of a true continuum wavefunction with appropriate boundary conditions \cite{Richards1984,Carravetta93b}. For molecules, the lack of spherical symmetry and the need to generate delocalized bound-state functions as initial states has led to a highly developed technology for generating electronic structures using $L^2$ basis sets, typically involving Gaussian functions. This technology is almost wholly independent of any method that attempts to construct a true scattering type solution, so performing all determinations of electrodynamic processes for molecules within an $L^2$ basis seems to be preferable if it can be made to be feasible and accurate. The simplest model within the assumptions of strong orthogonality and the use of a single-centre expansion of the photoelectron wavefunction to impose appropriate spherical boundary conditions far from the interacting system involves either the use of a plane or Coulomb wave representation. Some recent developments implement \cite{Gozem15,Oana07,Oana09} this simple model along with correlated Dyson orbital, representing the initial and final state of the system. This method provides a reasonably accurate molecular photoinization cross sections of polyatomic systems. The exchange interaction of the photoelectron with the residual core in this model is accounted for by the use of a partial effective charge of the core. While this procedure is motivated by physical intuition the selection of the effective charge parameters is largely empirical. A mathematical technique that exploits $L^2$ wavefunctions is based on Stieltjes moment theory, which is not directly related to the explicit representation of the continuum state. In this method, the final state of the photoelectron wavefunction is sampled by the discretized representation of the complete spectrum. The discrete transition matrix elements obtained from these $L^2$ states are used to extract the oscillator strength density in the continuum. In this way, the Stieltjes method avoids the need for the solution of the scattering equations by extracting cross sections from spectral moments of an oscillator strength distribution. The discretized samples of the continuum states are the excited states calculated using any $L^2$ method. Any electronic structure method that generates a discretized representation of the complete spectrum can be used, in principle, to calculate the photoionization cross section, of any other continuum process, using the Stieljes imaging method. This approach has been led by Langhoff and collaborators \cite{Langhoff1973a,Hermann1981,Langhoff1996,Langhoff79}. Further developments and applications of this method based on various \textit{ab-initio} electronic structure theory have been performed recently \cite{Ruberti2013,Cukras13,Ruberti2014,Ruberti2014a}. A number of other approaches based on $L^2$ discretizaton methods have also been reported, including the complex coordinate methods \cite{Rescigno1988a} and the reactance or K-matrix method \cite{Fano68}. The accurate representation of the true continuum states in the field of residual molecular region can be achieved by allowing non-orthogonality of the photoelectron wavefunction \cite{Han2012} and exploiting variational techniques or by considering extra bound electron configurations in the wavefunctions, such as is implemented in R-matrix methods \cite{Tennyson2010}. The variational principle provides a powerful way of solving a wide range of differential and integral equations involved in calculating collision and photoionization cross sections \cite{nesbet80book}. The Kohn variational principle is probably the most widely used variational principle in describing collision phenomena \cite{Rescigno95}, though there are at least two major difficulties associated with implementations of this method. The first of these is the occurrence of anomalous singularities in the reactants or K-matrices that make these techniques difficult to apply in large scale calculations. The second problem concerns computational difficulties associated with the evaluation of multi-centre integrals involving both bound and continuum functions \cite{Schneider1986a,Schneider1989,Schneider1989a,Schneider90}. These issues have been addressed since the late 1980s and have been further developed into the complex Kohn method for electron-molecule scattering in recent years. McKoy and co-workers \cite{McKoy1984,Takatsuka1981,Watson1979,Lucchese1980a,Lucchese1986,Lucchese1999} have developed methods that are based on, or in some way related to, the Schwinger variational principle or extensions of it that rely on the Lippmann-Schwinger scattering equation. The major disadvantage of this method is the occurrence of the Green`s function in this variational principle which is known in closed form only in some special cases, such as the free-particle case. This method does have some advantages, however, including automatic incorporation of the correct boundary conditions. The method then requires trial wave functions only in the region where the scattering potential is non-vanishing, allowing the exclusive use of discrete basis functions as trial functions in the solution. This feature is particularly desirable in applications to the scattering of low-energy electrons by the nonspherical force fields of molecules and molecular ions. In the present work, however, we have applied sampling theory methods originally developed for the signal processing and information theory to construct matrix elements involving continuum state amplitudes from discrete representations of the complete set of eigenfunctions of the electronic spectrum. The calculations were carried out for hydrogen and sodium atoms. These systems are well-studied and are widely used as a benchmark for photoionization calculations. Another model, discussed in detail, involves a hydogenic initial state and a final state that is free particle. This model allows a simple analytic solution and may be used for illustrative purposes. The proposed approach significantly simplifies the computational labour and remains open to further development for application to molecular systems where sampling of a discrete representation of the complete spectrum is effectively mandatory. \section{Theory} The photoionization cross-section in the dipole approximation is given by \cite{BetheSalpeterBook} \begin{equation}\label{PhotoIon} \sigma(\omega) = 2\pi \alpha \omega \sum_f |\left \langle i|\vec r \,|f\rangle \right|^2, \end{equation} where $\alpha$ is the fine structure constant, $\omega$ is the photon frequency, $| i \rangle$ is the initial state of the system, and $\left|f\rangle\right.$ is the final state. Conservation of energy, $\hbar\omega = E_f-E_i$, is assumed to be fulfilled while the effect of recoil is ignored. In the case of atoms and molecules, the initial state in Eq. (\ref{PhotoIon}) is a bound state that can be calculated using number of well established methods. For simple systems, such as light atoms and molecules, K-matrix \cite{Cacelli1991, Cacelli2000} and R-matrix \cite{BurkeBook} methods can be employed to calculate the final state wavefunction, as well as convergent close-coupling \cite{Kheifets1998, Kheifets2009}. In general, however, these methods are limited by the rapid growth of computational complexity with the increase in the number of atoms and technical difficulties that arise through the loss of spherical symmetry. Hybrid basis set approaches have been proposed to tackle this problem \cite{Marante2014}, which aim to provide accurate representations of the continuum wavefunction within a finite box using B-spline functions and appropriate boundary conditions. This flexibility is achieved, however, at the expense of a very large basis set dimension and the need to calculate new types of interaction integral, which complicates its implementation within existing quantum chemistry packages. Rather than attempting to construct an accurate representation of a molecular continuum state wavefunction, it seems preferable to deduce the values of matrix elements involved in Eq. (\ref{PhotoIon}) by some other means that is more consistent with the $L^2$ methods that are used to generate the target bound-states. As will be shown below, this can be achieved with the help of conventional $L^2$ Gaussian basis set that is widely used in the molecular structure calculations that form the practical basis of much of quantum chemistry. Such calculations are of particular importance for investigation of photoionization in medium to large size molecules which takes place in a number of applications such as the radiation damage processes that influence the quality of single molecule imaging algorithms \cite{Quiney2011}. Briefly, these $L^2$ methods solve the generalized matrix eigenvalue equations \begin{equation}\label{DiagHam} \mathbf{H}\mathbf{c}_{\epsilon} = E_{\epsilon}\mathbf{S}\mathbf{c}_{\epsilon} \end{equation} where $H_{\mu \nu}=\langle \mu | \hat H | \nu\rangle$ is a matrix element of Hamiltonian, $\hat{H}$ of the system, $| \mu \rangle$ and $| \nu \rangle$ are the basis states, $c_{\mu \epsilon}$ is an element of the eigenvector, $\mathbf{c}_{\epsilon}$, $E_{\epsilon}$ is an eigenvalue and $S_{\mu\nu} = \langle\mu| \nu\rangle$ is an overlap matrix elements involving $|\mu \rangle$ and $ \nu\rangle$. The eigenstates of the Hamiltonian are $|\epsilon\rangle = \sum_{\mu} c_{\mu, \epsilon}|\mu\rangle$. Within the Hartree-Fock approximation, the system of equations defined by (\ref{DiagHam}) is referred to as the Hartree-Fock-Roothaan equations or, simply, the Roothaan equations \cite{Roothaan1951}. Use of $L^2$ discretized ``pseudo-states" as a basis to extract information about continuum processes is not a new idea. For example Heller, Reinhardt, and Yamani \cite{Heller1973} applied this method using a matrix representation of the free-particle and hydrogenic Hamiltonians in Laguerre-Sturmian basis. In these cases, basis set matrix diagonalization can be carried out analytically, allowing a comprehensive study to be performed. Here, we generalize their approach in a manner that does not rely on a particular choice of basis set but which does require, as is always the case in molecular electronic structure calculations, a numerical diagonalization of the matrix representation of the Hamiltonian. Suppose one needs to estimate a matrix element $\langle i|\hat A|k\rangle$ of some operator $\hat A$ for the system of interest, for example an atom or a molecule. The final state of the photoelectron, $|k\rangle$, has positive energy, so that \begin{align} & \hat H |k\rangle = \frac{k^2}{2}|k\rangle,\label{HamCont}\\ & \langle k'|k\rangle = \delta(k'-k),\label{ComplCont} \end{align} where $\delta(x)$ is the Dirac delta function, $k$ is the wavenumber and $k^2/2 = E > 0$ is the asymptotic kinetic energy of the continuum state. In addition, we assume that (\ref{DiagHam}) has been solved in some $L^2$ finite basis set, yielding the solutions \begin{align} & \hat H |m\rangle = E_m |m\rangle,\label{HamPseudo}\\ & \langle n|m\rangle = \delta_{nm},\label{ComplPseudo} \end{align} where $\delta_{nm}$ is Kronecker delta function. The continuum states $|m\rangle$ are identified as the ``positive-energy" solutions of the above equation, for which $E_m = k_m^2/2$. Functions $|m\rangle$ are not the actual eigenstates $|k\rangle$, but rather some wavepacket representation of them, so we shall refer to these discretized positive energy states as ``pseudo-states". The identity (\ref{ComplPseudo}) can then be rewritten as \begin{equation}\label{DiracKronecher} \int\limits_0^{\infty}\langle n|k\rangle\langle k|m\rangle dk \approx \delta_{nm}. \end{equation} In the case of the free-particle Hamiltonian the states $|k\rangle$ form a complete set and Eq.(\ref{DiracKronecher}) is a strict equality. In other cases, however, the partitioning of the spectrum into ``positive" and ``negative" energy parts renders (\ref{DiracKronecher}) an approximation. It proves to be, however, an excellent approximation if $|m\rangle$ and $|n\rangle$ are discrete states that are classified, on the basis of their respective energies, as being of positive-energy type. The integral in (\ref{DiracKronecher}) can then be approximated using \begin{align}\label{3integralAppr} & \int\limits_0^{\infty}\langle n|k\rangle \langle k| m\rangle dk \approx \sum\limits_{l=1}^{N}\langle n|k_l\rangle\langle k_l| m\rangle \omega_k^{(l)},\\ & \omega_k^{(l)} = \left.\frac{dk}{ds}\right|_{s=l}, \end{align} where $s$ $\epsilon$ $[1, N]$. For integer values $s = m$, the interpolation $k(s)$ consequently takes values $k(m)=k_m$ that correspond to positive-energy solutions of (\ref{HamPseudo}). Substituting Eq. (\ref{3integralAppr}) into Eq. (\ref{DiracKronecher}) we arrive at the system of equations \begin{equation} \sum\limits_{l=1}^{N} \langle n|k_l\rangle\langle k_l| m\rangle \omega_k^{(l)} =\delta_{nm}, \end{equation} where $\langle n|k_l\rangle$ are unknowns. The solutions of these equations are of the form \begin{equation}\label{SFnodes} \langle n|k_l\rangle = \frac{ \delta_{nl}}{\sqrt{\omega_k^{(l)}}} = \delta_{nl}\left.\sqrt{\frac{ds}{dk}}\right|_{k=k_l}. \end{equation} Equation (\ref{SFnodes}) allows one to evaluate the matrix element $\langle i|\hat A|k_n\rangle$ if one knows the value of $\langle i|\hat A|n\rangle$: \begin{equation}\label{HellerGen} \langle i|\hat A|k_m\rangle = \sum\limits_{n=1}^N \langle i|\hat A|n\rangle\langle n|k_m\rangle=\langle i|\hat A|m\rangle\left.\sqrt{\frac{ds}{dk}}\right|_{k=k_m}, \end{equation} where $s = s(k)$ is a smooth interpolation on the points $\{k_n, n\}$. The above result generalizes a method described by \citet{Heller1973} for a discrete set of wavepackets $\{|n\rangle\}$ obtained by discretizing a Hamiltonian in a finite basis set. The quality of the result obtained using (\ref{HellerGen}) depends on the completeness of the basis set $\{|n\rangle\}$, which was established in the particular case of a complete Laguerre-Sturmian basis in Refs.~\onlinecite{Heller1973,Yamani1975}. For the application of photoionization processes in (\ref{HellerGen}) we take $\hat A = \hat E1$, where $\hat {E1}$ is the electric dipole transition operator. For bound-continuum electric dipole matrix elements and the transition from a bound-state to a continuum pseudo-state of corresponding energy, we have \begin{align}\label{HellerE1} & \langle i|\hat {E1}|k_m\rangle = \langle i|\hat {E1}|m\rangle\left.\sqrt{\frac{ds}{dk}}\right|_{k=k_m},\\ & \left.\langle i|\hat {E1}|k\rangle\right|_{k=k_m} \equiv \langle i|\hat {E1}|k_m\rangle \end{align} where $k_m$ is the wavenumber corresponding to the eigenvalue of pseudo-state $|m\rangle$, $s=s(k)$ is a smooth interpolation on the points $\{k_m, m\}$ and $|i\rangle$ is the initial bound state of the atom or molecule. Note that $ds/dk|_{k=k_n}\Delta k$ can be interpreted as the number of pseudo-states in the interval $\Delta k$ in the vicinity of $k = k_n$ (see for example Fig. \ref{DensityFree}) and that, therefore, $ds/dk|_{k=k_n}$ represents the density of pseudo-states in the vicinity of $k_n$. If the square-integrable basis set tends towards completeness, the density of pseudo-states tends to infinity for any wavenumber $k$. In order to calculate $\langle i|\hat {E1}|k\rangle$ for all values of $k$ and not just those values equal to the wavenumbers $k_m$ of pseudo-states, one can use a simple spline or other kind of polynomial interpolation. A more powerful way of calculating $\langle i|\hat {E1}|k\rangle$ within the approximations that have been imployed uses the Kramer sampling theorem \cite{Kramer1957}. Within this formalism, the matrix element for electric dipole transitions can be written as \begin{equation}\label{IntTransf} \langle i|\hat {E1}|k\rangle = \lim_{N\rightarrow \infty} \sum_{m=1}^N \langle i|\hat {E1}|m\rangle \langle m| k\rangle, \end{equation} where the completeness condition $\sum |m \rangle \langle m| = 1$ has been used. Using (\ref{HellerE1}) the above equation can be written as \begin{align} & \langle i|\hat {E1}|k\rangle = \lim_{N\rightarrow \infty} \sum_{m=1}^N \langle i|\hat {E1}|k_m\rangle S(k, k_m),\label{KramerT} \\ & S(k, k_m) = \langle m| k\rangle \left/ \sqrt{\frac{ds}{dk}}\right|_{k=k_m},\label{SFdef} \end{align} \\ where $s = s(k)$ is defined as in (\ref{HellerE1}). We shall refer to the functions $S(k, k_m)$ as ``Kramer sampling functions" and to the functions $\langle m | k\rangle$, which are the projections of pseudo-states onto the continuum states, as ``sampling functions". The Kramer sampling theorem formulated in the form of (\ref{KramerT}) allows one to calculate the matrix elements $\langle i|\hat {E1}|k\rangle$ for any value of the wavenumber $k$ if one knows the values of matrix elements for some discrete set of points ${k_m}$ called sampling points. In a particular case when the sampling points are equally spaced $s(k) = k$ and the continuum states are free-particle spherical outgoing s-type waves confined in the spherical box of radius $r_{max} = 2\pi$, the Kramer sampling formula reduces to well-known Whittaker-Shannon-Kotel'nikov sampling theorem and $S(k, k_m) \sim \text{sinc}(\pi k - \pi k_n)$. In the general case, the functions $S(k, k_m)$ are unknown. In the limit of a complete $L^2$ basis functions, the functions defined in (\ref{SFdef}) satisfy the conditions \begin{align} & S(k_n, k_m) = \delta_{nm} \label{SFconditions1}\\ & \int S^*(k, k_m)S(k, k_n) \left.\frac{ds}{dk}\right|_{k=k_n} dk = \delta_{nm}.\label{SFconditions2} \end{align} Some examples of these functions, their properties, as well as more rigorous and detailed formulation of Kramer sampling theorem can be found in Refs.~\onlinecite{ZayedBook, Higgins1972}. It is shown in Ref.~\onlinecite{ZayedBook} that the replacement of the exact functions $S(k, k_m)$ given by (\ref{SFdef}) by functions which correspond to a different set of continuum states, leads to the same result in the limit of the infinite number of sampling points. In the present case we restrict our focus to atoms, so it is more convenient to use sampling functions derived from Bessel-Hankel transform \cite{Higgins1972} given by \begin{equation}\label{SFmodel} \tilde S(y, y_m) = \frac{2(y y_m)^{1/2}J_{\nu}(y)}{J'_{\nu}(y_m)(y^2-y_m^2)}, \end{equation} where $y_n$ are solutions of $J_{\nu}(y)=0$. To construct suitable sampling function from (\ref{SFmodel}) one can use the relation \begin{equation}\label{SFmodelBad} S(k, k_m) =\tilde S(y(k), y_m)\sqrt{\frac{dy}{dk}} \left/ \sqrt{\frac{dy}{dk}}\right|_{k=k_m}, \end{equation} where $y = y(k)$ is a smooth interpolation of points $\{k_n, y_n\}$. This function can be shown to satisfy (\ref{SFconditions1}), but in general, it doesn't satisfy (\ref{SFconditions2}). In the above equation function the limit of $dy/dk$ is $\pi ds/dk$ for $k \gg k_1$. For small wavenumbers, $dy/dk$ depends strongly on the interpolation procedure employed and varies dramatically between different orders of Bessel function in (\ref{SFmodel}). In calculations it is more convenient to construct sampling functions using \begin{equation}\label{SFmodelGood} S(k, k_m) =\tilde S(y(k), y_m)\sqrt{\frac{ds}{dk}}\left/ \sqrt{\frac{ds}{dk}}\right|_{k=k_m}, \end{equation} where, as above, $y = y(k)$ and $s = s(k)$ provide smooth interpolations of the points $\{k_n, y_n\}$ and $\{k_n, n\}$, respectively. For the function defined by (\ref{SFmodelGood}), condition (\ref{SFconditions1}) is satisfied exactly, while (\ref{SFconditions2}) holds only approximately, though to good accuracy, according to our numerical calculations. Summarizing these results, Eq. (\ref{KramerT}, \ref{SFdef}, \ref{SFmodel}, \ref{SFmodelGood}) may be used to construct an approximation to the matrix element of the electric dipole operator according to \begin{align} & \langle i|\hat {E1}|k\rangle = \sum\limits_{n=1}^N \langle i|\hat {E1}|n\rangle \langle n|k\rangle \label{IntpForm},\\ & \langle n|k\rangle = \frac{2(y(k)y_n)^{1/2}J_{\nu}(y(k))}{J'_{\nu}(y_n)(y^2(k)-y_n^2)} \sqrt{\frac{ds}{dk}}\label{SFfree}. \end{align} We denote the function $\langle n|k\rangle$ in (\ref{SFfree}) a ``Bessel-Hankel sampling function'', to reflect its relation to the Kramer sampling function $S(k, k_m)$ and the Bessel-Hankel transformation from which it is derived. The sign of $\langle n|k\rangle$ is undetermined, so for later convenience we impose the convention that $\langle r| n\rangle > 0$ for $r\to 0$. \begin{figure}[t] \center{\includegraphics[width=1\linewidth]{FreeDensityStates} } \caption{Interpolation $s = s(k)$ (black line) of points $\{k_n, n\}$ (black dots) used for construction of sampling function (\ref{SFfree}) for free particle final state. Red line represents the derivative $ds/dk$. Values of $k_n$ were obtained by diagonalizing free particle Hamiltonian with 30 p-type Gaussian functions.} \label{DensityFree} \end{figure} \section{Free particle photoionization} It is convenient to start our analysis of photoionization using a simple model, in which initial state is a ground-state of hydrogen atom and final state is a free particle. This model has being discussed in Ref.~\onlinecite{LandauBook3} and treats potential energy as a perturbation. Its advantage is that most of the results can be obtained analytically, allowing direct comparison with our numerical approach. In the free-particle basis, the reduced electric-dipole transition matrix element is \begin{equation}\label{AnalytFree} \langle 1s\|r\|k p_{fp}\rangle =16\sqrt{ \frac{2}{\pi}} \frac{k^2}{(1+k^2)^3}, \end{equation} where $|1s\rangle$ represents the ground state of hydrogen atom and $\left|k p_{fp}\rangle \right.$ is p-type free particle final state with wavenumber $k = \sqrt{2E_f}$. At the same time, one can apply Eq. (\ref{IntpForm}) to calculate the matrix element (\ref{AnalytFree}) with functions $\left|m\rangle\right.$ obtained via diagonalization of the free particle Hamiltonian $\hat H_{fp} = -\nabla^2/2$ using p-type Gaussian basis functions \begin{align} & \langle 1s\|r\|k p_{fp}\rangle = \sum_m \langle 1s\|r\|m\rangle \langle m | k p_{fp}\rangle,\label{MEdecomp}\\ & \left\langle r |m\rangle\right. = \sum_{a=1}^N C_{ma} \frac{2^{\frac{11}{4}} \alpha_a^{\frac{5}{4}}}{\sqrt{3}\pi^{\frac{1}{4}}} r \text{exp}[-\alpha_a r^2]\label{FreeExp} \end{align} where $k_m = \sqrt{2E_m}$, and the expansion coefficients, $C_{ma}$, are obtained by solving the Roothaan equations, (\ref{DiagHam}), in the $p$-type Gaussian basis set. A total of $N=30$ basis set exponents with $\alpha_a = \alpha \beta^{a-1}$, $\alpha = 0.01$, and $\beta = 1.5$ were used; Convergence and linear dependence properties of this basis set are discussed in Ref.~\onlinecite{WilsonBook}. Note that in the case of a free particle all energies $E_m$ are positive in the final state. Since we know the exact solution for the final state wavefunction it is possible to calculate the sampling functions $\langle m | k p_{fp}\rangle$, using (\ref{FreeExp}) \begin{multline}\label{AnalytSF} \langle m | k p_{fp}\rangle = \int\limits_0^{\infty} dr \langle m | r \rangle r\sqrt{kr} J_{3/2}(kr) = \\ \sum_{a=1}^N C_{ma} \left(\frac{2}{\pi}\right)^{\frac{1}{4}}\frac{k^2}{\sqrt{3}\alpha_a^{\frac{5}{4}}}e^{-\frac{k^2}{4\alpha_a}}. \end{multline} \begin{figure*}[t] \begin{minipage}[t]{0.49\linewidth} \center{\includegraphics[width=1\linewidth]{FreeWavelets} } \caption{ Sampling functions $\langle m | k\rangle$ given by (\ref{AnalytSF}). Solid lines represent the following functions: $\langle 1 | kp_{fp}\rangle$ (red), $\langle 5 | kp_{fp}\rangle$ (blue), $\langle 6 | kp_{fp}\rangle$ (brown). Solid black dots are the eigenvalues $k_m = \sqrt{2E_m}$ obtained from diagonalization of the free particle Hamiltonian. } \label{FreeSF} \end{minipage} \hfill \begin{minipage}[t]{0.49\linewidth} \center{\includegraphics[width=1\linewidth]{Free} } \caption{Matrix element for transition from hydrogen ground state to spherical plane wave. Solid line represents analytic formula (\ref{AnalytFree}), dashed line represents numerical result using Gaussians (\ref{MEdecomp}). Solid black dots represent matrix elements with $k=k_m$ given by (\ref{MEdecomp}) with a single term $\langle m | k_m p_{fp}\rangle$ included.} \label{Free} \end{minipage} \end{figure*} Some of the sampling functions (\ref{AnalytSF}) are shown in Fig \ref{FreeSF}. For the sake of brevity we use a simplified notation, so that $\langle m | k p_{fp}\rangle \equiv \langle m | k\rangle $. Substitution of sampling functions (\ref{AnalytSF}) in (\ref{MEdecomp}) leads to the representation of the matrix elements using discrete positive energy solutions. The results are presented in Fig. \ref{Free}. Note that the exact free particle continuum states were used to calculate sampling functions. As one can see the agreement between matrix elements calculated using Eq. (\ref{AnalytFree}) and Eq. (\ref{MEdecomp}) is quite good up to $k\approx 10$ a.u., which corresponds to energies of about $E_f = 600$ eV. For higher values of $k$, the interpolation procedure is unsatisfactory and inaccurate. This reveals a fundamental limitation about the particular basis set, rather than the use of $L^2$ amplitudes to extract information about continuum processes. In order to expand a rapidly oscillating continuum function using pseudo-states (\ref{FreeExp}) one needs a very dense set of $\alpha_a$ corresponding to $\beta\to 1$, but that leads to a well known problem of the linear dependence of the basis \cite{WilsonBook}. While this problem may be circumvented entirely using the Laguerre-Sturmian basis, the Gaussian basis is intrinsically limited in this regard. \begin{figure*}[t] \begin{minipage}[t]{0.49\linewidth} \center{\includegraphics[width=1\linewidth]{SFreeWaveletFit} a) } \center{\includegraphics[width=1\linewidth]{PFreeWaveletFit} b) } \center{\includegraphics[width=1\linewidth]{DFreeWaveletFit} c) } \caption{Comparison of ``exact" sampling function $\langle 1 | k\rangle$ given by the Eq. (\ref{AnalytSF}) and Bessel-Hankel sampling functions (\ref{SFfree}) with a) $\nu = 1/2$, b) $3/2$, c) $5/2$ from top to bottom respectively. Solid red line represents function given by the Eq. (\ref{AnalytSF}), dashed black line is Bessel-Hankel sampling function (\ref{SFfree}). Solid black dots are the eigenvalues $k_m = \sqrt{2E_m}$ obtained from diagonalization of the free particle Hamiltonian. } \label{SFcompare} \end{minipage} \hfill \begin{minipage}[t]{0.49\linewidth} \center{\includegraphics[width=1\linewidth]{SFreeFitting} a) } \center{\includegraphics[width=1\linewidth]{PFreeFitting} b) } \center{\includegraphics[width=1\linewidth]{DFreeFitting} c) } \caption{Reduced matrix element for electric dipole transition from hydrogen ground state to free spherical wave. Solid red line represents analytic formula (\ref{AnalytFree}), dashed black line represents result of fitting using Eq. (\ref{IntpForm}) and (\ref{FreeExp}), whith correspond to Bessel-Hankel sampling function of the order a) $\nu = 1/2$, b) $3/2$, c) $5/2$. Solid black dots are matrix elements given by Eq. (\ref{HellerGen}). } \label{FreeFit} \end{minipage} \end{figure*} The method proposed in the previous section is now applied to the calculation of the matrix element defined by (\ref{AnalytFree}). In equation (\ref{MEdecomp}) we take the sampling functions $\langle m | k p_{fp}\rangle \equiv \langle m | k\rangle$ given by Eq. (\ref{SFfree}). Fig. \ref{DensityFree} represents the smooth interpolation, $s(k)$, of the set of points $\{k_n, n\}$ so that $s(k_n) = n$. Function $y(k)$ interpolates the set of points $\{k_n, y_n\}$, where $y_n$ is $n^{th}$ zero of the Bessel function of the order $\nu$, so that $y(k_n) = y_n$. Fig. \ref{SFcompare} compares the Bessel-Hankel sampling functions with $m=1$ and parameter $\nu=0.5, 1.5, 2.5$ with the exact $\langle 1 | k \rangle$ given by (\ref{AnalytSF}). One can see that those functions almost coincide exactly for $\nu=1.5$, while for $\nu=0.5, 2.5$ there are small deviations. It is clearly seen that the zeros of the exact function (\ref{FreeExp}) only approximately coincide with eigenvalues $k_n$, while those of Bessel-Hankel sampling functions coincide {\em exactly}. Another important difference is that the number of zeros for the exact sampling function (\ref{AnalytFree}) equals to the number of eigenvalues $N$, while Bessel-Hankel sampling functions have an infinite number of zeroes. We expect, therefore, both functions to coincide in the limit of a complete basis set with a dense distribution of eigenvalues and for the fitting to be accurate for a finite-dimensional representation except in the high-energy limit. Fig. \ref{FreeFit} presents the result of interpolation of the reduced electric dipole matrix element $\langle 1s\|r\|k p_{fp}\rangle$ using (\ref{MEdecomp}) with Bessel-Hankel sampling functions. The fitting deviates from the exact solution as the wavenumber $k$ increases, but replicates the behavior of the exact fitting (\ref{MEdecomp}) to a very good approximation, as shown in Fig. \ref{Free}. The best results are obtained for $\nu=1.5$, which has the same asymptotic behavior as the exact p-type free particle wavefunction. One can see, however, that s-type ($\nu=1/2$) and d-type ($\nu=5/2$) fitting functions give a good fit as well. In fact the difference between s,d, and p-type fittings is noticeable only for small kinetic energies, where the sampling functions are proportional to $k^{(\nu + 1/2)}$. \begin{figure}[t] \includegraphics[width=1\linewidth]{Hydrogen} \caption{Squared matrix element for electron electric dipole transition from hydrogen ground state to continuum. Solid line represents analytic formula (\ref{HAnalyt}), dashed line represents numerical result using Gaussians (\ref{HMEdecomp}). Solid black dots represent matrix elements with $k=k_m$ given by (\ref{HMEdecomp}) with a single term $\langle m | k_m p_{fp}\rangle$ included. } \label{Hydrogen} \end{figure} \section{Hydrogen and Sodium photoionization} In order to demonstrate the efficiency of the proposed method for calculation of photoionization matrix elements, we consider next the hydrogen atom. The exact expression for the reduced electron dipole matrix element is given by \cite{BetheSalpeterBook} \begin{equation}\label{HAnalyt} \langle 1s\|r\|k p_{H}\rangle^2 = 2^8 \frac{k}{(1+k^2)^5}\frac{e^{-{\frac{4\text{arctan}(k)}{k}}}}{1- e^{-2\pi/k}}. \end{equation} To obtain the hydrogen continuum pseudo-states we used p-type even tempered Gaussian basis set with $N=35$ basis set functions with $\alpha_a = \alpha \beta^{a-1}$, $\alpha = 0.001$, and $\beta = 1.5$. The six lowest-energy p-type states obtained using this basis set have negative energies and correspond to bound states. Therefore unlike the example described in the previous section, where all the states had positive energies, the negative-energy states are excluded from the summation in (\ref{MEdecomp}). This leads to the expression for wavepacket representation of hydrogen photoionization matrix elements given by \begin{equation}\label{HMEdecomp} \langle 1s\|r\|k p_{H}\rangle = \sum_{(m=1 | E_m > 0)}^N \langle 1s\|r\|m\rangle \langle m | k\rangle, \end{equation} \begin{figure*}[t] \begin{minipage}[t]{0.49\linewidth} \includegraphics[width=1\linewidth]{Sodium} \caption{Matrix element for electric dipole transition of valence $3s$ electron from sodium ground state to continuum. Solid line represents finite difference solution of Hartree-Fock equations, dashed line represents numerical result using Hartree-Fock-Roothaan method with Gaussian basis set and (\ref{IntpForm}). Solid black dots represent matrix elements with $k=k_m$ given by (\ref{MEdecomp}) with a single term $\langle m | k_m p_{Na}\rangle$ included. } \label{Sodium} \end{minipage} \hfill \begin{minipage}[t]{0.49\linewidth} \includegraphics[width=1\linewidth]{SodiumCrossection} \caption{Sodium photoionization cross section of valence $3s$ electron as a function of photoelectron energy. Solid red line represents finite difference solution of Hartree-Fock equations, dashed black line represents numerical result using Hartree-Fock-Roothaan method with Gaussian basis set and (\ref{IntpForm}). Solid black dots represent matrix elements with $k=k_m$ given by (\ref{MEdecomp}) with a single term $\langle m | k_m p_{\text{Na}}\rangle$ included. Thin solid blue line represents interpolation black dots with third order B-splines.} \label{SodiumCross} \end{minipage} \end{figure*} \noindent where the sampling functions $\langle m | k\rangle$ are given by Eq. (\ref{SFfree}) with $\nu=1/2$, and $m=1$ denotes the lowest positive energy pseudo-state. The result for hydrogen is shown in Fig. \ref{Hydrogen}. As in the previous example of free particle final state, one can notice rapidly accumulating error of the interpolation for values of $k \approx10$ a.u. due to the reasons outlined in previous section. Also some new deviations of interpolation from an exact solution (\ref{HAnalyt}) can be observed for interpolation on the range of eigenvalues $k_1 < k < k_4$. Deviation in that region was barely noticeable in Fig. \ref{FreeFit} since the sampling function, especially with $\nu=3/2$ replicated the behavior of exact functions $\langle m | k\rangle$ to a very good approximation. Kramer theorem \cite{Kramer1957} indicates that if one would have a large number of sampling points $\langle 1s\|r\|m\rangle$ in the limit of small kinetic energy, the deviation in that region would vanish; but for finite basis sets one does not enjoy the same close match between the sampling scheme and the asymptotic behaviour of the matrix elements. For a small number of Gaussian basis functions we always have only a few pseudo-states with small eigenvalues for which $k_m \gg 1$, so the interpolation experiences some undersampling. One could expect the same thing to happen at the other end of the energy range, but Gaussian solutions tend to fail in describing rapid oscillation of continuum states $| k \rangle$ before that happens. We also performed interpolation with sampling functions (\ref{SFmodel}) with $\nu=3/2, 5/2$, but it didn't increase the quality of the interpolation. This occurs because Bessel-Hankel sampling functions with $\nu=3/2$ don't have the same asymptotic behavior near the origin as the actual sampling functions $\langle m | k\rangle$ for hydrogen (see Fig. \ref{SFcompare} b) ). For more complex systems with many electrons additional terms due to electron-electron interaction arise in the Hamiltonian of the system. For such systems no analytic solutions exists. Discrete states can be calculated to a very good precision by diagonalizing the Hamiltonian in a sufficiently large basis set. While the few lowest negative energy solutions are usually associated with bound state orbitals, the positive energy states are used mainly in the finite summations over virtual states that arise in perturbation theory. Using methods developed in this work we can extract some information, such as photoionization matrix elements, from these positive energy solutions, which we shall show in the case of the sodium atom. We use the simplest Hartree-Fock method for calculations of its ground state electronic structure and employ the frozen core approximation for calculations of the valence electron states (see for example \cite{Dzuba2005}). In this approximation the states of the valence electron are calculated in the Hartree-Fock potential of the closed-shell electrons of sodium ion. Continuum pseudo-states were calculated with the same primitive Gaussian basis set as was used for hydrogen atom. Approximately 3\% accuracy in the energy of $3s$ orbital can be achieved using this method, although more sophisticated and precise approaches give considerably better precision \cite{Saha1988, Safronova1998}. The result of interpolation on the photoionization matrix element in the length form of the dipole operator for sodium is shown in Fig. \ref{Sodium}. One can see that the fitted curve follows the finite difference solution very accurately up to the lowest energy eigenvalue. Fig. \ref{SodiumCross} represents photoionization cross-section obtained by substituting interpolated matrix element into expression (\ref{PhotoIon}). Note that the original derivative method by \citet{Heller1973} allows one to carry out interpolation of the squared matrix elements only. The results for this method are added for comparison as a thin solid blue line in Fig. \ref{SodiumCross}. Third-order B-splines were used to carry out interpolation since higher order splines give worse accuracy. \section{Conclusions} We have demonstrated how the Kramer sampling theorem can be used to recover photoionization matrix elements from conventional $L^2$ discretization of electronic spectra, such as one obtains from the positive energy solutions of the Roothaan equations. This procedure has being demonstrated and discussed for hydrogen and sodium, but can be easily applied to more complex atoms and molecules. The main advantage of proposed method over the spline interpolation is that it is globally defined withing the eigenvalue range of up to few hundred eV. The proposed method has a close connection with Shannon-Nyquist sampling theorem widely used in digital signal sampling and processing. Therefore some important refining techniques that are widely used in signal processing can be adopted to refine the evaluation of continuum processes in complex quantum systems. Here, we have solely considered atomic radiative transitions, but the Gaussian basis set methods of quantum chemistry have been developed for molecular applications. Decomposition of molecular states into their atomic constituents is always possible, so that the atomic sampling methods developed here may be applied to each atomic component and convolved to produce molecular information by superimposing quantum mechanical amplitudes. The implementation of these ideas is the subject of ongoing research that will be reported in future publications. \section*{Acknowledgements} The authors acknowledge the support of the Australian Research Council through the Centres of Excellence for Coherent X-ray Science and Advanced Molecular Imaging. A. K. is grateful to Daniel Lewis for a useful discussion during the work on this manuscript.
\section{Introduction and main results} There exists a large literature on stochastic comparisons between order statistics arising from possibly heterogeneous populations, see Balakrishnan and Zhao (2013) for a review. In reliability theory, order statistics play a prominent role as the lifetime of a $k$-out-of-$n$ system can be represented by the $n-k+1$th order statistic of the $n$ component lifetimes. Because of the complexity of the distribution of order statistics arising from heterogeneous populations, stochastic comparisons with those from a homogeneous population are helpful, and can provide bounds on tail probabilities and hazard rates. Of particular interest is the following result of Bon and P\v{a}lt\v{a}nea (2006). Let $X_1,\ldots, X_n$ be independent exponential random variables with rates $\lambda_1,\ldots, \lambda_n$ respectively. Let $Y_1,\ldots, Y_n$ be another set of independent exponential random variables with a common rate $\gamma$. Then the $k$th order statistic of the heterogeneous sample is larger than that of the homogeneous sample in the usual stochastic order, that is, $Y_{k:n}\leq_{\rm st} X_{k:n}$, if and only if \begin{equation} \label{paltanea} \gamma\geq \left({n \choose k}^{-1} s_k(\lambda_1,\ldots, \lambda_n)\right)^{1/k}, \end{equation} where $s_k$ denotes the $k$th elementary symmetric function. For the sample maximum, Khaledi and Kochar (2000) showed that (\ref{paltanea}) with $k=n$ implies that $X_{n:n}$ is larger than $Y_{n:n}$ according to both the hazard rate order and the dispersive order. In the context of failsafe systems, P\v{a}lt\v{a}nea (2008) showed that (\ref{paltanea}) with $k=2$ is equivalent to $Y_{2:n}\leq_{\rm hr} X_{2:n}$. In the $k=2$ case, Zhao et al. (2009) obtained related results for the likelihood ratio ordering. In this paper we aim to extend such results to general $k$. Specifically, we have \begin{theorem} \label{thm1} For each $1\leq k\leq n$, (\ref{paltanea}) is equivalent to $Y_{k:n}\leq_{\rm hr} X_{k:n}$, and also equivalent to $Y_{k:n}\leq_{\rm disp} X_{k:n}$. \end{theorem} The statement concerning $\leq_{\rm hr}$ in Theorem~\ref{thm1} confirms a conjecture of P\v{a}lt\v{a}nea (2008). Theorem~\ref{thm1} is established by considering the star order between $X_{k:n}$ and $Y_{k:n}$. For random variables $X$ and $Y$ supported on $(0, \infty)$ with distribution functions $F$ and $G$ respectively, we say $X$ is smaller than $Y$ in the star order, denoted by $X\leq_* Y$ (or $F\leq_* G$), if $G^{-1}F(x)/x$ is increasing in $x>0$, where $G^{-1}$ denotes the right continuous inverse of $G$. Equivalently, $X\leq_* Y$ if and only if, for each $c>0$, $F(cx)$ crosses $G(x)$ at most once, and from below, as $x$ increases on $(0, \infty)$. For definitions and properties of various stochastic orders including $\leq_*$, see Shaked and Shanthikumar (2007). Kochar and Xu (2009) showed $Y_{n:n}\leq_* X_{n:n}$, a key result that allowed Xu and Balakrishnan (2012) to obtain stochastic comparison results for the ranges of heterogeneous exponential samples; see Genest et al. (2009) for related work. Our Theorem~\ref{thm2} confirms the conjecture of Xu and Balakrishnan (2012) (see also Balakrishnan and Zhao (2013), Open Problem 5). A special case of our Theorem~\ref{thm2} was obtained by Kochar and Xu (2011) for multiple-outlier models. \begin{theorem} \label{thm2} For each $1\leq k\leq n$, we have $Y_{k:n}\leq_* X_{k:n}$. \end{theorem} The star ordering is a strong variability ordering. It implies the Lorenz ordering $\leq_{\rm L}$, which in turn implies the ordering of the coefficients of variation. Our Theorem~\ref{thm2} is a strengthening of the main result of Da et al. (2014) who showed $Y_{k:n}\leq_{\rm L} X_{k:n}$. Theorems~\ref{thm1} and \ref{thm2} can be extended from order statistics to general spacings. \begin{corollary} \label{coro1} For $1\leq m< k \leq n$ we have $Y_{k:n} - Y_{m:n} \leq_* X_{k:n} - X_{m:n}$. \end{corollary} \begin{proposition} \label{prop1} For $1\leq m < k\leq n$ we have $Y_{k:n} - Y_{m:n} \leq_{\rm order} X_{k:n} - X_{m:n}$ if and only if \begin{equation} \label{char} {n-m\choose k-m} \gamma^{k-m} \geq \sum_{\mathbf{r}} s_{k-m}^{[\mathbf{r}]}(\lambda) \prod_{j=1}^m \frac{ \lambda_{r_j}}{\Lambda -\sum_{i=1}^{j-1} \lambda_{r_i}} \end{equation} where $\mathbf{r} = (r_1, \ldots, r_m)$, the outer sum is over all permutations of $\{1, \ldots, n\}$ using $m$ at a time, $\lambda = (\lambda_1, \ldots, \lambda_n)$, $\Lambda=\sum_{i=1}^n \lambda_i$, $s_{k-m}^{[\mathbf{r}]}(\lambda) = s_{k-m}(\lambda\backslash\{\lambda_{r_1}, \ldots,\lambda_{r_m}\})$, and $\leq_{\rm order}$ is any of $\leq_{\rm st}, \leq_{\rm hr}$ or $\leq_{\rm disp}$. \end{proposition} In the special case of $m=1$ and $k=n$, which corresponds to comparing the sample ranges, the condition (\ref{char}) reduces to $$\gamma \geq \left(\frac{\prod_{i=1}^n \lambda_i}{\Lambda / n} \right)^{1/(n-1)},$$ and we recover Theorem~4.1 of Xu and Balakrishnan (2012). In the case of ordinary spacings, that is, $k=m+1$, Proposition~\ref{prop1} can also be derived using the log-concavity arguments of Yu (2009). As noted by P\v{a}lt\v{a}nea (2011), however, it is difficult to implement such an argument in general. In Section~2 we prove Theorem~\ref{thm2}, from which Theorem~\ref{thm1}, Corollary~\ref{coro1} and Proposition~\ref{prop1} are deduced. We refer to P\v{a}lt\v{a}nea (2008) for numerical illustrations and Da et al. (2014) for potential applications of these results. It would be interesting to see if results similar to Theorem~\ref{thm1} and Proposition~\ref{prop1} can be obtained for the likelihood ratio order, for which Theorem~\ref{thm2}, based on the star order, is not helpful. \section{Derivation of main results} We need the following closure property of the star order with respect to mixtures. \begin{lemma}[Lemma~3.1 of Xu and Balakrishnan (2012)] \label{lem1} Let $F$ be a distribution function with density $f$ supported on $(0, \infty)$ such that $f(e^x)$ is log concave in $x\in\mathbb{R}$. Let $G_1,\ldots, G_n$ be distribution functions with densities $g_1,\ldots, g_n$ supported on $(0,\infty)$ such that $F\leq_* G_i$ for each $i=1,\ldots, n$. Then $F\leq_* \sum_{i=1}^n p_i G_i$ for $p_i>0$ such that $\sum_{i=1}^n p_i =1$. \end{lemma} We also need the following representation of order statistics from heterogeneous exponential samples. \begin{lemma}[P\v{a}lt\v{a}nea (2011), Theorem~4.1] \label{lem2} Let $S=\{X_1, \ldots, X_n\}$ be a set of $n>1$ independent exponential random variables with rates $\lambda_1,\ldots, \lambda_n$ respectively. Denote $S^{[i]}=S \backslash \{X_i\}$ and let $X_{j:(n-1)}^{[i]}$ be the $j$th order statistic from $S^{[i]}$ with distribution function $F_{j:(n-1)}^{[i]}$ for $j\leq n-1$. Then for $k\leq n-1$ the $(k+1)$th order statistic $X_{(k+1):n}$ from $S$ is the sum of two independent random variables: $X_{1:n}$, which has an exponential distribution with rate $\Lambda = \sum_{j=1}^n \lambda_j$, and a mixture of order statistics with distribution function $\Lambda^{-1} \sum_{i=1}^n \lambda_i F_{k:(n-1)}^{[i]}$. \end{lemma} Finally, we need some stochastic comparison results concerning convolutions of gamma variables. For independent random variables $Z_1,\ldots, Z_n\sim {\rm gamma}(\alpha)$ let $F_\theta$ denote the distribution function of the weighted sum $\sum_{i=1}^n \theta_i Z_i$ where $\theta=(\theta_1,\ldots, \theta_n)$ is a vector of positive weights. We use $\prec_w$ to denote weak sub-majorization (Marshall et al. (2009)). The following Lemma is a consequence of Theorem~1 of Yu (2011). \begin{lemma} \label{lem.yu} For $\alpha >0$, if $\log \eta \prec_w \log \theta$ then $F_\eta\leq_{\rm st} F_\theta$. \end{lemma} Lemma~\ref{lem3} asserts a unique crossing between the distribution functions of two weighted sums of iid gamma variables when the weights form a special configuration. Lemma~\ref{lem3} is an important step in Yu's (2016) investigation of the unique crossing conjecture of Diaconis and Perlman (1990); it is also a key tool in deriving our main results (we only need the $\alpha=1$ case). \begin{lemma}[Theorem~1 of Yu (2016)] \label{lem3} Suppose $\alpha \geq 1$. Suppose $0<\theta_1\leq \cdots \leq \theta_n$ and $\eta_1\leq \cdots \leq \eta_n$ and (a) there exists $2\leq k\leq n$ such that $\theta_i<\eta_i$ for $i< k$ and $\theta_i > \eta_i$ for $i\geq k$; (b) $\prod_{i=1}^n \eta_i > \prod_{i=1}^n \theta_i$. Then there exists $x_0\in (0, \infty)$ such that $F_\eta(x) < F_\theta(x)$ for $x\in (0, x_0)$ and the inequality is reversed for $x> x_0$. \end{lemma} \begin{proof}[Proof of Theorem~\ref{thm2}] Let us use induction. The $k=1$ case is trivial. Suppose the claim holds for a certain $k\geq 1$ and all $n\geq k$. We shall prove that it holds for $k+1$ and all $n\geq k+1$. Assume $\lambda_i,\, i=1,\ldots,n,$ are not all equal, and let $F_{k:n}^{(\tau)}$ denote the distribution function of the $k$th order statistic from a sample of $n$ iid exponential variables with rate $\tau$. In the notation of Lemma~\ref{lem2}, the induction hypothesis yields $F_{k:(n-1)}^{(\tau)} \leq_* F_{k:(n-1)}^{[i]}$ for $\tau>0,\ n\geq k+1,$ and $i=1,\ldots, n$. As noted by Xu and Balakrishnan (2012), $F_{k:(n-1)}^{(\tau)}$ has a density $f$ such that $f(e^x)$ is log-concave. By Lemma~\ref{lem1}, we have \begin{equation} \label{star} F_{k:(n-1)}^{(\tau)} \leq_* \sum_{i=1}^n \frac{\lambda_i}{\Lambda} F_{k:(n-1)}^{[i]}. \end{equation} As noted by Da et al. (2014), when $x\downarrow 0$ we have $$F_{k:(n-1)}^{[i]}(x) = s_k^{[i]}(\mathbf{\lambda}) x^k + o(x^k),\quad F_{k:(n-1)}^{(\tau)} = {n-1 \choose k} \tau^k x^k + o(x^k),$$ where $\mathbf{\lambda} = (\lambda_1, \ldots, \lambda_n)$ and $s_k^{[i]}(\mathbf{\lambda}) = s_k(\mathbf{\lambda}\backslash \{\lambda_i\})$. Thus, if ${n-1 \choose k} \tau^k \geq \sum_{i=1}^n \lambda_i s_k^{[i]}(\mathbf{\lambda})/\Lambda $, or equivalently $\tau\geq \tau^*$ with $\tau^* = (n s_{k+1}(\mathbf{\lambda})/\Lambda /{n\choose k+1})^{1/k}$, then \begin{equation} \label{st} F_{k:(n-1)}^{(\tau)} \leq_{\rm st} \sum_{i=1}^n \frac{\lambda_i}{\Lambda} F_{k:(n-1)}^{[i]}. \end{equation} Analogous considerations as $x\to\infty$ (P\v{a}lt\v{a}nea, 2011) reveal that if $\tau \leq \tau_*\equiv \sum_{i=1}^{n-k} \lambda_{(i)}/(n-k)$, where $\lambda_{(1)}, \ldots, \lambda_{(n)}$ are $\lambda$ arranged in increasing order, then (\ref{st}) holds with the direction of $\leq_{\rm st}$ reversed. For $\tau\in (\tau_*, \tau^*)$, star ordering implies that there exists $x_0>0$ such that \begin{equation} \label{one.cross} F_{k:(n-1)}^{(\tau)}(x)\leq \sum_{i=1}^n \frac{\lambda_i}{\Lambda} F_{k:(n-1)}^{[i]}(x),\quad x\in (0, x_0), \end{equation} and the inequality is reversed if $x\in (x_0, \infty)$. One can show strict inequality, that is, the crossing point is unique. Indeed, if there exists another $\tilde{x}\in (0, x_0)$, for example, such that equality holds in (\ref{one.cross}) at $x=\tilde{x}$, then a slight increase in $\tau$ would produce at least two crossings, near $x_0$ and $\tilde{x}$, respectively (equality cannot hold for all $x\in [\tilde{x}, x_0]$ unless the two distributions are identical, because these distribution functions can be written as linear combinations of exponential functions and are therefore analytic). In view of Lemma~\ref{lem2}, we can convolve both sides of (\ref{star}) with an exponential with rate $\Lambda$ and obtain that ${\rm expo}(\Lambda) * F_{k:(n-1)}^{(\tau)}$ crosses $F_{(k+1):n}$ (the distribution function of $X_{(k+1):n}$) exactly once, and from below, for $\tau\in (\tau_*, \tau^*)$. That there is at most one crossing follows from variation diminishing properties of TP2 kernels (Karlin 1968). Upon close inspection there is exactly one crossing at a unique point. In particular, because $\Lambda > (n-k) \tau> (n-k) \tau_*$, convolving with ${\rm expo}(\Lambda)$ cannot reverse the sign of $F_{k:(n-1)}^{(\tau)}(x) - \Lambda^{-1} \sum_{i=1}^n \lambda_i F_{k:(n-1)}^{[i]}(x)$ as $x\to\infty$. We then recognize the crossing point, denoted by $x_*$, as a decreasing, continuous function of $\tau$, because $F_{k:(n-1)}^{(\tau)}$ stochastically decreases in $\tau$. Furthermore, the above analysis at the end points $\tau_*$ and $\tau^*$ shows that $x_*(\tau)\uparrow \infty$ as $\tau\downarrow \tau_*$ and $x_*(\tau)\downarrow 0$ as $\tau\uparrow \tau^*$. The distribution of $Y_{(k+1):n}$ is the convolution $$F_{(k+1):n}^{(\gamma)}= {\rm expo}(n\gamma) * {\rm expo}((n-1)\gamma) *\cdots * {\rm expo}((n-k)\gamma) .$$ Suppose $F_{(k+1): n}^{(\gamma)}$ crosses $F_{(k+1):n}$ at some $x^*>0$. Then we can choose $\tau\in (\tau_*, \tau^*)$ such that $x_*(\tau) = x^*$, that is, $ {\rm expo}(\Lambda) * F_{k:(n-1)}^{(\tau)}$ crosses $F_{(k+1):n}$ at exactly $x^*$, from below. If $\gamma \geq \Lambda/n$ then Maclaurin's inequality yields $\gamma\geq \tau^*> \tau$, which implies that \begin{equation} \label{no.cross} F_{(k+1):n}^{(\gamma)} \leq_{\rm st} {\rm expo}(\Lambda) * F_{k:(n-1)}^{(\tau)}, \end{equation} contradicting the existence of $x^*$. If $\gamma\leq \tau$ then the inequality (\ref{no.cross}) is reversed, and there is again no crossing. Thus we must have $\gamma\in (\tau, \Lambda/n)$. If $\prod_{i=0}^k ((n-i)\gamma) \geq \Lambda \prod_{i=1}^k ((n-i) \tau)$ then one can show (the $\log$ applies element-wise) $$-\log(n\gamma, (n-1)\gamma,\ldots, (n-k)\gamma)\prec_w -\log(\Lambda, (n-1)\tau, \ldots, (n-k)\tau), $$ which again implies (\ref{no.cross}) by Lemma~\ref{lem.yu}. For the remaining case, $\prod_{i=0}^k ((n-i)\gamma) < \Lambda \prod_{i=1}^k ((n-i) \tau)$, the conditions of Lemma~\ref{lem3} are satisfied. It follows that $F_{(k+1):n}^{(\gamma)}$ crosses ${\rm expo}(\Lambda) * F_{k:(n-1)}^{(\tau)}$ exactly once, from below, at the same point $x^*$. We deduce that $F_{(k+1):n}^{(\gamma)}$ crosses $F_{(k+1):n}$ exactly once, from below, at $x^*$. Since $\gamma>0$ is arbitrary, we have $Y_{(k+1):n}\leq_* X_{(k+1):n}$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm1}] Theorem~\ref{thm1} can be deduced from Theorem~\ref{thm2} as discussed by Xu and Balakrishnan (2012). Specifically, given $Y_{k:n}\leq_* X_{k:n}$, we have the equivalence $$Y_{k:n}\leq_{\rm st} X_{k:n}\Longleftrightarrow Y_{k:n}\leq_{\rm disp} X_{k:n}.$$ Since $Y_{k:n}$ has increasing failure rate, dispersive ordering implies hazard rate ordering. \end{proof} \begin{proof}[Proof of Corollary~\ref{coro1}] Extending Lemma~\ref{lem2} we can write the distribution function of $X_{k:n}-X_{m:n}$ as \begin{equation} \label{spacing} \sum_{\mathbf{r}} \prod_{j=1}^m \frac{\lambda_{r_j}}{\Lambda -\sum_{i=1}^{j-1} \lambda_{r_i}} F_{(k-m):(n-m)}^{[\mathbf{r}]}, \end{equation} where the notation is the same as in the statement of Proposition~\ref{prop1}, and $F_{(k-m):(n-m)}^{[\mathbf{r}]}$ denotes the distribution function of the $(k-m)$th order statistics of $\{X_1, \ldots, X_n\}\backslash\{X_{r_1}, \ldots, X_{r_m}\}$. The distribution of $Y_{k:n} - Y_{m:n}$ is simply $F_{(k-m):(n-m)}^{(\gamma)}$. The claim therefore follows from Theorem~\ref{thm2} and Lemma~\ref{lem1}. \end{proof} \begin{proof}[Proof of Proposition~\ref{prop1}] Given the star ordering, we can establish the characterization for $\leq_{\rm st}$ by examining the distribution function (\ref{spacing}) near $x=0$ (we did this for $m=1$ in the proof of Theorem~\ref{thm2}). Characterizations for $\leq_{\rm hr}$ and $\leq_{\rm disp}$ follow as in the proof of Theorem~\ref{thm1}. \end{proof}
\section{Introduction} The aim of this paper is to clarify the relationship between two families of Green functions, attached to special divisors on Shimura varieties of type $O(n,2)$ and $U(n,1)$, that appear frequently in the literature in the context of Kudla's programme. The first family, introduced by Kudla, is closely related to the theta series considered by Kudla and Millson \cite{kudlamillsonintersection}, while the second family was constructed by Bruinier \cite{brhabil} following ideas of Borcherds. The first step, which we expect to be of independent interest, is the study of a family of \emph{truncated Poincar\'e series}; we show that these series can be used to construct a section of the Maa\ss \ lowering operator on forms with certain growth conditions, and give a concrete characterization of the image of this section. We then show that Kudla's Green functions can be obtained by integrating (in a regularized sense, as in Borcherds \cite{boautgra}) truncated Poincar\'e series against Siegel theta functions. As a corollary, the generating series obtained by taking the differences of the two families of Green functions is a non-holomorphic modular form with trivial cuspidal holomorphic projection; this result can be viewed as a lifting of (a special case of) a theorem of Bruinier-Funke \cite{brfugeom} to the level of Green functions. Finally, we explore consequences of this discussion to arithmetic divisors on ${U(n-1,1)}$ Shimura varieties: each of the two families of Green functions gives rise to a formal arithmetic theta function, and we prove that their difference is modular. We also prove a version of Kudla's conjecture relating arithmetic heights to the derivative of an Eisenstein series; here, the Siegel-Weil formula and the characterization of our section of the lowering operator combine to give an heuristic explanation for the connection of Kudla's Green functions to the derivative of the Eisenstein series in this context. As a final application, we discuss a refinement of a formula due to Bruinier-Howard-Yang \cite{bruinier-howard-yang-unitary} on intersection numbers with small CM cycles. We now describe these results in more detail. Suppose $V$ is a quadratic space over $\Q$ and, for the purposes of the introduction, assume that $\dim V$ is even. Let $L \subset V$ be an even lattice with quadratic form $Q$ and dual lattice $L'$. For each coset $\mu \in L' / L$, define an element $\varphi_{\mu} \in S(V(\mathbb{A}_f))$ in the space of Schwartz-Bruhat functions on $V(\mathbb{A}_f):= V \otimes_{\Q} \mathbb A_f$ by setting \[ \varphi_{\mu} \ := \ \text{characteristic function of } \mu + L \otimes_{\Z} \widehat \Z. \] The finite-dimensional space \[ S(L) \ := \ \mathrm{span}_{\C} \left\{ \varphi_{\mu} , \, \mu \in L'/L \right\} \ \subset \ S(V(\mathbb A_f)) \] admits an action of $\SL_2(\Z)$, via the Weil representation, that we denote by $\rho_L$. Fix any $k \in \Z$. The point of departure is the introduction of the $m$'th \emph{truncated Poincar\'e} series $P_{m, w, \mu}$ of weight $k$ which is an $S(L)$-valued (discontinuous) function that transforms as a modular form of weight $k$, and depends on additional parameters $w \in \R_{>0}$ and $\mu \in S(L)$; it is defined by the formula \[ P_{m, w, \mu}(\tau) \ := \ \frac12 \sum_{\gamma \in \Gamma_{\infty} \backslash \SL_2(\Z) } \left( \sigma_w( \tau) \, q^{-m} \, \varphi_{\mu} \right)\mid_{k}[\gamma], \] where $q = e^{2 \pi i \tau}$ and $\sigma_w( \tau)$ is the cutoff function \[ \sigma_w( \tau) \ = \ \begin{cases} 1 , & \text{ if } \Im(\tau) \geq w \\ 0, & \text{ otherwise. } \end{cases} \] This definition can be extended, by linearity, to produce a function \[ P_{m,w} \colon \uhp \ \to \ S(L)^{\vee} \otimes_{\C} S(L) \] for every $m \in \Q$ and $w \in \R_{>0}$, cf.\ \Cref{rmk:intrinsicPoincare}. Note that there is a positive integer $N$, the level of $L$, such that $P_{m,w} = 0$ whenever $m \notin N^{-1} \Z$. Similarly, in \Cref{sec:relat-non-holom}, we construct a family of harmonic weak Maa\ss \ forms \[ F_{m} \colon \uhp \to S(L)^{\vee} \otimes_{\C} S(L) \] of weight $k$, indexed by $m \in \Q$. When $k < 0$ and $m> 0$, this form is an $S(L)^{\vee}\otimes_{\C} S(L)$-valued version of the Hejhal-Poincar\'e series as considered in \cite{brhabil}. In \Cref{sec:invert-xi}, we consider a space $\ALmod{\kappa}(\rho_L^{\vee})$ of $S(L)^{\vee}$-valued functions that transform as modular forms of weight $\kappa$, that are $C^{\infty}$, have at worst moderate (polynomial) growth towards $\infty$, and whose constant terms satisfy a certain technical condition, see \Cref{def:modgrowthforms}. \begin{theorem} \label{thm:introLsec} Suppose $f\in \ALmod{\kappa}(\rho_L^{\vee})$ and, for simplicity, that $\kappa>0$ (in the main text, we treat arbitrary weights $\kappa \in \frac12 \Z$, see Theorem \ref{thm:MaassSection}). For $\tau = u + iv \in \uhp$ and $q = e^{2 \pi i \tau}$, define the generating series \[ F(\tau) \ := \ \sum_{m} \langle P_{m, v} - F_m, \, f \rangle^{\mathrm{reg}} \ q^m \] whose terms are integrals of the form \[ \langle G, \, f \rangle^{\mathrm{reg}} \ := \ \int_{\SL_2(\Z) \backslash \uhp}^{\mathrm{reg}} \, G(\tau') \, f(\tau') \ d\mu(\tau') \] that are regularized as in \cite{boautgra}, see also \Cref{def:regpairing} below, and involve Poincar\'e series of weight $k = - \kappa$. Then $F(\tau)$ converges to a smooth function on $\uhp$ that can be characterized uniquely by the following properties: \begin{enumerate} \item $F$ is smooth and transforms as a modular form of weight $\kappa+2$; \item $F$ has at worst exponential growth at $\infty$; \item $\mathbf{L}(F) = -f$, where $\mathbf{L}$ is the Maa\ss\, lowering operator; and \item $F$ has trivial {principal part} and trivial {cuspidal holomorphic projection}\footnote{By the (cuspidal) holomorphic projection of $F$, we mean the cusp form representing the linear functional $g \mapsto \langle g,\, v^{p/2+1} \bar F\rangle^\mathrm{reg}$ on the space of cusp forms $S_{p/2+1}(\rho_L)$. See also \Cref{sec:holom-proj}. For the definition of the principal part, see \Cref{prop:uniquepreimage}.}. \end{enumerate} \end{theorem} When $\kappa \leq 0$ an additional normalization is required, on account of the presence of holomorphic modular forms of weight $-\kappa$. As a special case, suppose $f_0 \in M_k(\rho_L)$ is a holomorphic modular form, so that \[ f := - v^k \overline{f_0} \ \in \ \ALmod{-k}(\rho_L^{\vee}). \] Then the function $F\in \ALexp{2-k}(\rho_L^{\vee})$ determined by applying \Cref{thm:introLsec} to $f$ satisfies $\xi(F) = f_0$, where $\xi$ is the Bruinier-Funke operator \cite{brfugeom}, see also \Cref{sec:modforms}. It follows immediately that $F$ is a harmonic weak Maa\ss\ form in the terminology of \emph{loc.\ cit.} In this setting, Theorem \ref{thm:introLsec} implies that the generating series \[ \sum_{m \gg - \infty} \langle F_m, f \rangle \ q^m \] is a \emph{mock modular form}, see \cite{Zwegers:mocktheta, DIT-annals, DMZ-black-holes}, whose shadow is $f_0$. Turning to the geometric applications of this theorem, we now assume that the signature of $V$ is $(p,2)$. Let $\mathbb D^o(V)$ denote the locally symmetric space attached to $O(V)$, which we realize as the space of oriented negative-definite planes in $V\otimes_{\Q} \R$, and is a complex manifold of dimension $p$. If $x \in V$ has positive norm, then \[ Z(x) \ := \ \{ z \in \mathbb{D}^o(V) \ | \ x \perp z \} \ \subset \ \mathbb{D}^o(V) \] is a complex-codimension-one submanifold. For any $m \in \Q$, define an $S(L)^{\vee}$-valued cycle $Z(m)$ by the formula \[ Z(m)(\varphi) \ = \ \sum_{ \substack{x \in V \\ Q(x) = m}} \, \varphi(x) \, Z(x), \qquad \qquad \varphi \in S(L). \] This sum is locally finite, in the sense that for a given compact subset $K \subset \mathbb{D}^o(V)$, there will only be finitely many $x$'s appearing in the sum with $\varphi(x) \neq0 $ and $K \cap Z(x) \neq \emptyset$. Moreover, the condition that $V$ has signature $(p,2)$ implies that $Z(m) = 0$ whenever $m \leq 0$. In this context, we say that a current \[ \lie g \in D^{(0,0)}(\mathbb{D}^o(V))\otimes_{\C} S(L)^{\vee} \] is a $\log$-singular \emph{Green function} for $Z(m)$ if for every $\varphi \in S(L)$, it satisfies (i) $\ddc \lie{g} (\varphi)$ is dual to $Z(m)(\varphi)$ under Poincar\'e duality for each $\varphi\in S(L)$, and (ii) $\lie{g}(\varphi)$ is smooth on the complement $\mathbb{D}^o(V) - \abs{Z(m,\varphi)}$ with logarithmic singularities along $Z(m,\varphi)$. In \cite{kudla-annals-central-der}, Kudla constructs a family of {Green functions} $\KGr_o(m,v)$ for the cycle $Z(m)$, depending on a real parameter $v \in \R_{>0}$, and with the property that $\ddc \KGr_o(m,v)$ is the $m$'th Fourier coefficient of the Kudla-Millson theta function \cite{kudlamillsonintersection}. Our next result relates $\KGr_o(m,v)$ to the \emph{Siegel theta function} \[ \Theta_L( \tau, z) \colon \mathbb H \times \mathbb D^o(V) \ \to \ S(L)^{\vee} \] whose definition is recalled in \Cref{sec:arch}; for a fixed $z\in \mathbb{D}^o(V)$, the Siegel theta function is a non-holomorphic modular form $\Theta(\cdot, z) \in \ALmod{p/2-1}(\rho_L^{\vee})$ of moderate growth. \begin{theorem} \label{thm:introXiRegLift} For any $m \neq 0$ and $z \notin \abs{Z(m)}$, \[ \KGr_o(m,v)(z) \ = \ \langle P_{m,v}, \ \Theta_L(\cdot, z) \rangle^{\mathrm{reg}} , \] and \[ \KGr_o(0,v)(z) \ = \ \langle P_{0,v}, \ \Theta_L(\cdot, z) \rangle^{\mathrm{reg}} \ + \ \log(v) \, \varphi_0^{\vee} \] where $\varphi_0^{\vee} \in S(L)^{\vee}$ is the linear functional $\varphi \mapsto \varphi(0)$. Moreover, the right hand sides of these formulas are defined for all $z \in \mathbb{D}^o(V)$, and hence give a discontinuous extension of $\KGr_o(m,v)$. \end{theorem} Bruinier \cite{brhabil} showed that for $m>0$, \[ \BGrO{m}(z) \ := \ \langle F_m, \, \Theta_L(\cdot,z) \rangle^{\mathrm{reg}} \] is also a Green function for $Z(m)$. Combining these facts with \Cref{thm:introLsec}, we obtain \begin{theorem} \label{thm:introArchGenSer} For each fixed $z \in \mathbb{D}^o(V)$, the generating series \[ - \log v \, \varphi_0^{\vee} \ + \ \sum_{m} \, \left( \KGr_o(m,v) - \BGrO{m} \right)(z) \ q^m \] is a non-holomorphic modular form of weight $p/2+1$ with trivial cuspidal holomorphic projection. \end{theorem} The main result of \cite{brfugeom}, applied to the case at hand, implies the modularity of the generating series \[ \sum_{m} \, \ddc \left( \KGr_o(m,v) - \BGrO{m} \right) \, q^m \] valued in differential $(1,1)$-forms, with trivial cuspidal holomorphic projection. We might view \Cref{thm:introArchGenSer} as a `lifting' of their result to the level of Green functions; the title of the present paper reflects the role that their work played in motivating our investigation. Finally, we turn to an arithmetic-geometric version of this result. Fix an imaginary quadratic field ${\bm{k}}$ of odd discriminant, let $o_{\bm{k}}$ be the ring of integers, and suppose that $\mathcal{V}$ be a Hermitian vector space over ${\bm{k}}$ of signature $(n-1,1)$ that contains a self-dual lattice $\mathcal{L}$. Following \cite{KRunn2,howard-unitary-2}, we define a stack $\mathcal{M}_{\mathcal{V}}$ over $\Spec(o_{\bm{k}})$ via a moduli problem that parametrizes $n$-dimensional abelian varieties with an $o_{\bm{k}}$-action, and a compatible principal polarization, see \Cref{sec:arithUnitary}. There is a family of \emph{special divisors} \[ \{ \mathcal{Z}_{\mathcal{V}}(m) \}_{m \in \Q_{\neq 0}} \] on $\mathcal{M}_{\mathcal{V}}$, also defined via a moduli problem, and whose complex points can be described in terms of the cycles $Z(m)$ considered previously. In particular, the Green functions $\KGr_o(m,v)$ and $\BGrO{m}$ considered above descend to functions $\mathsf{Gr}^{\mathsf{K}}(m,v)$ and $\BGr{m}$ on $\mathcal{M}_{\mathcal{V}}(\C)$ with logarithmic singularities along $\mathcal{Z}_{\mathcal{V}}(m)(\C)$. Moreover, by the results \cite{howard-unitary-2}, the stack $\mathcal{M}_{\mathcal{V}}$ admits a canonical toroidal compactification $\mathcal{M}_{\mathcal{V}}^*$ whose boundary $\mathcal{M}_{\mathcal{V}}^* - \mathcal{M}_{\mathcal{V}}$ is a divisor. Howard also studies the boundary behaviour of $\mathsf{Gr}^{\mathsf{K}}(m,v)$, proving that after adding an explicit linear combination of boundary components, the pair \[ \widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v) \ : = \ \big( \mathcal{Z}_{\mathcal{V}}(m) \ + \ \text{boundary components} , \ \mathsf{Gr}^{\mathsf{K}}(m,v) \ \big) \] defines an element \[ \widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v) \ \in \ \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} \mathcal{S}^{\vee}, \] where $\mathcal{S} \subset S(\mathcal{L})$ is a certain $\SL_2(\Z)$-stable subspace of $S(\mathcal{L})$, and $\ChowHatC(\mathcal{M}_{\mathcal{V}}^*)$ is an \emph{arithmetic Chow group}; here we employ the $\log\text{-}\log$ singular version of this latter group, whose construction is detailed in \cite{bkk} and generalizes the arithmetic Chow groups of \cite{gillet-soule}. Similarly, work of Bruinier-Howard-Yang \cite{bruinier-howard-yang-unitary} shows that taking Bruinier's Green functions and making a (different) modification at the boundary yields classes \[ \widehat\Zed_{\calV}^{\, \mathsf{B}}(m) \ : = \ \big( \mathcal{Z}_{\mathcal{V}}(m) \ + \ \text{boundary components} , \ \BGr{m} \ \big) \ \in \ \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} \mathcal{S}^{\vee} \] for $m \neq 0$. For appropriate definitions in the case $m=0$, both constructions give rise to formal $q$-expansions \[ \widehat\Theta_{\calV}^{\mathsf{K}}(\tau) := \sum_{m} \widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v) \, q^m \qquad \text{and} \qquad \widehat\Theta_{\calV}^{\mathsf{B}}(\tau) := \sum_{m} \widehat\Zed_{\calV}^{\, \mathsf{B}}(m) \, q^m \] whose coefficients\footnote{If $n > 2$, then $\widehat\Zed_{\calV}^{\, \mathsf{B}}(m)$ vanishes for all $m < 0$. If $n = 2$, then $\widehat\Zed_{\calV}^{\, \mathsf{B}}(m)$ may be non-zero for at most finitely many $m<0$.} are valued in $\ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} \mathcal{S}^{\vee}$. \begin{theorem} The difference $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau)$ is a non-holomorphic modular form of weight $n$ with values in $\ChowHatC(\mathcal{M}_{\mathcal{V}}) \otimes_{\C} \mathcal{S}^{\vee}$, and has trivial cuspidal holomorphic projection. \qed \end{theorem} Some caution is required in interpreting this statement, since the coefficients of $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau)$ and $\widehat\Theta_{\calV}^{\mathsf{B}}(\tau)$ lie in the very large space $\ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} \mathcal{S}^{\vee}$. Roughly speaking, the assertion is that \begin{equation} \label{eqn:introArithThetaDiff} \widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau) \ = \ \sum_{i=1}^r \, f_i(\tau) \, \widehat\mathcal{Z}_i \ + \ (0, g(\tau,z)) \end{equation} for some $\mathcal{S}^{\vee}$-valued modular forms $ f_1(\tau)\, \dots f_r(\tau)$ and classes $\hat\mathcal{Z}_1, \dots \hat \mathcal{Z}_r \in \ChowHatC(\mathcal{M}_{\mathcal{V}}^*)$ , together with a family of `smooth classes' \[ \tau \ \mapsto \ (0, g(\tau, \cdot) ) \ \in \ \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} \mathcal{S}^{\vee} \] that transforms as a modular form in $\tau$; the equality \eqref{eqn:introArithThetaDiff} is to be interpreted as an equality of Fourier coefficients, with an appropriate notion of convergence for such Fourier series. We discuss this point in \Cref{def:ModularityDef} below. We also remark that an analogous modularity result was obtained by Berndt and K\"{u}hn \cite{kuehn-berndt-split} for Hecke correspondences on the self-product $X(1) \times X(1)$ of the full level modular curve. Finally, in \Cref{sec:arithHeights} and \Cref{sec:refBHY}, we put our results in the context of two conjectures on arithmetic intersections for unitary Shimura varieties. The first is Kudla's conjecture relating the \emph{arithmetic heights} of the special divisors to derivatives of Eisenstein series. Let \[ \widehat\omega \ \in \ \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \] denote the tautological bundle on $\mathcal{M}_{\mathcal{V}}^*$, equipped with an appropriate metric as in \cite{bruinier-howard-yang-unitary}; assuming that there is a reasonable arithmetic intersection theory\footnote{The $\log\text{-}\log$ theory of \cite{burgos-kramer-kuhn} is, strictly speaking, valid for arithmetic schemes; the present authors are unaware of a general theory that simultaneously allows for $\log\text{-}\log$ singularities, and is valid for Deligne-Mumford stacks such as $\mathcal{M}_{\mathcal{V}}^*$. See \Cref{sec:arithHeights} for more detail on this point.} for $\mathcal{M}_{\mathcal{V}}^*$, we can consider the `arithmetic height' \[ [ \widehat \mathcal{Z} : \widehat{\omega}^{n-1} ] \ \in \C, \qquad \text{ for } \widehat\mathcal{Z} \in \ChowHatC(\mathcal{M}_{\mathcal{V}}^*). \] Applying this to the coefficients of $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau)$, Kudla's conjecture in this setting predicts \[ [ \widehat\Theta_{\calV}^{\mathsf{K}}(\tau) : \, \widehat\omega ] \ \approx \ 2 \, \kappa \, E'_n(\tau, n-1) \ + \ (\text{correction terms}) \] up to some correction terms involving vertical and boundary components; here $\kappa$ is an explicit constant, and \[ E'_n(\tau, n-1) \ = \ \left[ \frac{\partial}{\partial s} \, E_n(\tau,s) \right]_{s = n-1} \] is a special value of the derivative of the standard Eisenstein series $E_n(\tau,s)$ of weight $n$ attached to $\mathcal{L}$. We prove that the integral of the archimedean component $g(\tau,z)$ in the difference of the theta functions \eqref{eqn:introArithThetaDiff} gives the main term in Kudla's conjecture. \begin{theorem} Suppose $n>2$. Then \begin{equation} \label{eqn:introGreenInt} \int_{\mathcal{M}_{\mathcal{V}}^*(\C)} g(\tau,z)\ c_1(\widehat\omega)^{n-1} \ = \ 2 \kappa \ E'_n(\tau, n-1) . \end{equation} Consequently, given the existence of a `reasonable' arithmetic intersection pairing on $\mathcal{M}_{\mathcal{V}}^*$, see \Cref{sec:arithHeights}, \[ [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau) : \widehat{\omega}^{n-1}] \ = \ 2 \, \kappa \, E_n'(\tau, n-1) \ + \ (\text{explicit boundary terms}). \] \end{theorem} It is perhaps worth mentioning that after justifying the interchange of integration over $\mathcal{M}_{\mathcal{V}}^*(\C)$ with the regularized integral defining the Green functions, the proof of the theorem follows very easily from the Siegel-Weil formula and the uniqueness statement in \Cref{thm:introLsec}, see \Cref{thm:GreenInt} in the text. As a final application, in \Cref{sec:refBHY} we give a refined version of a theorem of Bruinier-Howard-Yang \cite{bruinier-howard-yang-unitary} concerning intersection numbers between the arithmetic cycles $\widehat\Zed_{\calV}^{\, \mathsf{B}}(m)$ and a certain \emph{small CM cycle} $\mathcal Y$ attached to a positive definite Hermitian lattice $\Lambda$ of signature $(n-1,0)$. Their main result states that a prescribed linear combinations of these intersection numbers can be expressed as the central derivative of a convolution $L$-function involving the theta function $\Theta_{\Lambda}$, cf. \Cref{thm:BHY}. By combining \Cref{thm:introXiRegLift} and the Siegel-Weil formula, we prove the following refinement, see \Cref{thm:refBHY} of the text: \begin{theorem} \[ [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) : \mathcal{Y} ] \ = \ - \deg(\mathcal{Y}(\C)) \ \mathcal{E}_1'(\tau) \otimes \Theta_{\Lambda}(\tau) \] where $\mathcal{E}_1'(\tau)$ is the central derivative of an incoherent Eisenstein series of weight 1 associated with $\mathcal{Y}$. \qed \end{theorem} \subsection*{Acknowledgements} The authors thank J. Bruinier, G. Freixas and S. Kudla for helpful conversations, and especially J. Bruinier for suggesting the use of truncated Poincar\'e series in this context. The bulk of the work on this paper was conducted while the authors were at McGill University and the CRM; we thank both institutions for their hospitality. S.S. acknowledges financial support from NSERC. We would also like to thank the anonymous referees for their helpful comments. \section{Truncated Poincar\'e series and the Maa\ss \ lowering operator} \subsection{The Weil representation} \label{sec:WeilRep} The aim of this section is to fix notation; see \cite[\S 1.1]{brhabil} for a reference for the facts mentioned here, and \cite{gelbart-weilrep, fredrik-weilfqm, Weil} for a more general discussion of the Weil representation. Let $(V,Q)$ be a quadratic space over $\Q$ of signature $(p,q)$, and denote by $S(V(\mathbb A_f))$ the space of \emph{Schwartz-Bruhat functions} on $V(\mathbb A_f)$, i.e.\ the space of complex valued functions on $V(\mathbb A_f)$ that are locally constant and compactly supported. The \emph{Weil representation} is an action \[ \rho = \rho_f \colon \Mp_2(\mathbb A_f) \ \longrightarrow \ \Aut \, S(V(\mathbb A_f)), \] where $\Mp_2$ is the \emph{metaplectic extension} of $\SL_2$. Elements of $\Mp_2(\R)$ are represented by pairs $\tilde \gamma = (\gamma, \phi)$ where $\gamma = ( \begin{smallmatrix}a & b \\ c & d \end{smallmatrix})\in \SL_2(\R)$ and $\phi \colon \uhp \to \C$ is a holomorphic function satisfying $\phi(\tau)^2 = c \tau + d$. The product of two elements is given by \[ (\gamma_1, \phi_1) \cdot (\gamma_2, \phi_2) \ = \ \left(\gamma_1 \cdot \gamma_2, \, \phi_1(\gamma_2 \tau) \, \phi_2(\tau) \right). \] The group $\widetilde{\Gamma}:=\Mp_2(\Z)$, defined as the inverse image of $\Gamma:=\SL_2(\Z)$ under the covering map, is generated by the elements \[ \mathbf{S} \ := \ \left( \begin{pmatrix} & -1 \\ 1 & \end{pmatrix}, \, \sqrt{\tau} \right) \qquad \text{and} \qquad \mathbf{T} \ := \ \left( \begin{pmatrix} 1 & 1 \\ & 1 \end{pmatrix}, \, 1 \right). \] Suppose $L\subset V$ is an even integral lattice (i.e. $L$ is a free $\Z$-submodule for which $Q(x) \in \Z$ for all $x \in L$) and let $L'$ be the dual lattice. We let $\widehat{\mathbb{Z}} = \prod_p \Z_p$, where the product is over all rational primes, and define $\widehat{L} = L \otimes_\Z \widehat{\mathbb{Z}}$. For a coset $\mu \in L'/L \cong (\widehat{L})'/\widehat{L}$, let \[ \varphi_{\mu} \ := \ \text{ characteristic function of } \mu + \widehat{L} \ \in \ S(V(\mathbb A_f)) ; \] the finite-dimensional space \[ S(L) \ := \ \mathrm{span}_{\C} \left( \varphi_{\mu}, \ \mu \in L'/L \right) \ \simeq \ \C[L'/L] \] is stable under $\widetilde{\Gamma}$. The restriction is denoted \[ \rho_L \colon \widetilde{\Gamma} \ \to \ \Aut S(L). \] It can be seen, for example via the explicit formulas in \cite[\S 1.1]{brhabil}, that the image of $\rho_L$ is in fact a finite group. Moreover, when $\dim (V)$ is even, $\rho_L$ factors through the map $\widetilde{\Gamma} \to \SL_2(\Z)$, and we denote the resulting action of $\SL_2(\Z)$ on $S(L)$ by the same symbol $\rho_L$. For $v \in S(L)^\vee$ and $w \in S(L)$, we frequently simply write $v \cdot w$ or $vw$ for the image of an element $v \otimes w \in S(L)^\vee \otimes S(L)$ under the canonical contraction map $S(L)^{\vee} \otimes_{\C} S(L) \to \C$. Finally, it will be useful to introduce the Hermitian pairing (conjugate-linear in the second argument) \[ \langle \cdot, \cdot \rangle_{S(L)} \colon S(L) \times S(L) \to \C, \qquad \text{determined by } \langle \varphi_{\mu}, \, \varphi_{\nu} \rangle_{S(L)} \ = \ \delta_{\mu,\nu}. \] It is easily checked, for example by using the explicit formulas in \cite[\S 1]{brhabil} that the induced $\C$-linear isomorphism \begin{equation} \label{eqn:WeilRepDualConj} \overline{S(L)} \overset{\sim}{\longrightarrow} S(L)^{\vee} , \qquad w \mapsto \langle \cdot , \, w \rangle_{S(L)} \end{equation} identifies the conjugate representation $\overline{\rho_L}$ with the dual representation $\rho_L^{\vee}$. This discussion is intended to justify the following abuse of notation: if $\varphi \in S(L)$, let $\overline \varphi \in S(L)^{\vee}$ denote the linear functional $\langle \cdot, \varphi \rangle_{S(L)}$. \subsection{Some spaces of non-holomorphic modular forms} \label{sec:modforms} Suppose $(W,\rho)$ is a finite dimensional representation of $\widetilde{\Gamma} = \Mp_2(\Z)$. If $k \in \frac12 \Z$ and $\tilde \gamma = (\gamma, \phi) \in \widetilde{\Gamma}$, define the \emph{slash operator}\footnote{For brevity, we do not include the representation $\rho$ in the notation but of course the slash action does depend on $\rho$.} on functions $f \colon \uhp \to W$ by the formula \[ f\mid_{k}[\tilde \gamma] \, (\tau) \ := \ \phi(\tau)^{-2k} \cdot \rho(\tilde \gamma)^{-1} \, f \left( \frac{a \tau + b }{c\tau + d} \right), \] where $\gamma = \begin{pmatrix}a & b \\ c & d\end{pmatrix}$. We say that a function $f \colon \uhp \to W$ \emph{transforms as a modular form} of weight $k$ and representation $\rho$ if \begin{equation} \label{eq:modtrafo} f\mid_{k}[\tilde\gamma] \, (\tau) \ = \ f(\tau) \qquad \text{for all } \tilde\gamma \in \widetilde{\Gamma}. \end{equation} In this paper, we will primarily be interested in the case where $(W, \rho)$ is either $(S(L), \rho_L)$ or its dual. Suppose that $(W, \rho) = (S(L), \rho_L)$, and consider the element $ \mathbf Z = ( - \mathtt{Id}, i)$, so that $\mathbf Z^2 = ( \mathtt{Id}, -1)$. Then \[ f\mid_{k}[ \mathbf Z^2] \ = \ (-1)^{-2k + q - p} \, f, \] for any function $f \colon \uhp \to S(L)$, so there exist no non-zero functions satisfying \eqref{eq:modtrafo} unless $2k \equiv q-p \bmod 2$, in which case $\mid_{k}[\mathbf Z^2]$ acts trivially. Moreover, such functions then take values in the subspace of $S(L)$ spanned by the vectors \begin{equation} \label{eq:tildephi} \tilde\varphi_\mu \ := \ \frac12(\varphi_{\mu} + (-1)^{-k+\frac{q-p}{2}}\varphi_{-\mu}) \end{equation} for $\mu \in L'/L$. Note also that if $f \colon \uhp \to S(L)$ transforms as a modular form of weight $k$, then \[ g(\tau) := v^{k} \overline{f(\tau)} \] transforms as a modular form of weight $-k$ for the dual representation $\rho_L^{\vee}$. \begin{definition} \label{def:regpairing} Suppose $f \colon \uhp \to S(L)$ transforms as a modular form of weight $k$ with representation $\rho_L$, and $g \colon \uhp \to S(L)^{\vee}$ transforms with weight $-k$ and representation $\rho_L^{\vee}$, so that the product \[ f(\tau) \cdot g(\tau) \] is $\widetilde{\Gamma}$-invariant. Following \cite{boautgra}, we define the \emph{regularized pairing} of $f$ and $g$, when it exists, as \[ \langle f,g \rangle^\mathrm{reg} \ := \ \CT_{s=0}\ \left( \lim_{T \to \infty} \ \int_{\mathcal{F}_T} f(\tau) \ g(\tau) \ v^{-s} \ d\mu(\tau) \right), \] where $s \in \C$ is a complex parameter, $\CT_{s=0}$ stands for ``the constant term in the Laurent expansion at $s=0$", and for $T \in \R_{>0}$, \[ \mathcal{F}_T \ := \ \left\{ \tau = u+ iv \in \uhp\ | \ \abs{\tau} \geq 1, \ u \in \left[-\frac12, \frac12\right] \ \text{ and } v \leq T \right\} \] is a truncation of the standard fundamental domain for $\SL_2(\Z) \backslash \uhp$. We also write $d \mu(\tau) = du\cdot dv / v^2$ for the usual hyperbolic measure. We say the \emph{regularized pairing exists} if for $\Re(s)$ sufficiently large, the limit $T \to \infty$ defines a holomorphic function in $s$ that has a meromorphic continuation to $\Re(s)>-\epsilon$ for some $\epsilon>0$, and so the above definition makes sense. Similarly, if $f\colon \uhp \to S(L)$ and $g\colon \uhp \to S(L)$ both transform as modular forms of weight $k$ with representation $\rho_L$, we define the \emph{regularized Petersson pairing} \[ \langle f,\, g\rangle_{\mathrm{Pet}}^{\mathrm{reg}} \ := \ \langle f, \, v^{k} \, \overline g \rangle^{\mathrm{reg}} \] when it exists. If $f, g \in M_k(\rho_L)$ are holomorphic modular forms, and at least one of them is cuspidal, then $\langle f,\, g\rangle_{\mathrm{Pet}}^{\mathrm{reg}} = \langle f,\, g\rangle_{\mathrm{Pet}}$ agrees with the usual Petersson inner product. \end{definition} \begin{definition}[\cite{brfugeom}] Suppose $k \in \frac12 \Z$, and let $H_k(\rho_L)$ be the space of (twice continuously differentiable) functions $f \colon \uhp \to S(L)$ such that \begin{enumerate} \item $f \mid_{k} [\tilde\gamma] = f$ for all $\gamma \in \tilde\Gamma$; \item there is a $C>0$ such that\footnote{Throughout, when we employ the asymptotic notation $f(\tau) = O(g(\tau))$ for a vector-valued function $f$, we simply mean that the components of $f$ with respect to any basis satisfy the given asymptotic.} $f(u + iv)=O(e^{C v})$ as $v\to \infty$ uniformly in $u$; \item $\Delta_k f = 0$, where \begin{align*} \Delta_k := -v^2\left( \frac{\partial^2}{\partial u^2}+ \frac{\partial^2}{\partial v^2}\right) + ikv\left( \frac{\partial}{\partial u}+i \frac{\partial}{\partial v}\right) \end{align*} is the hyperbolic Laplace operator in weight $k$; \item and finally, that \[ \xi_k(f) \ := \ v^{k-2} \overline{\mathbf{L}(f)} \] is a holomorphic cusp form of weight $2 - k$ valued in $\rho_L^{\vee}$. Here \[ \mathbf{L} = - 2 i v^2 \frac{\partial}{\partial \overline \tau} \] is the Maa\ss\, lowering operator, and satisfies $ \mathbf{L}(g \mid_{k} [\tilde \gamma]) \ = \ \mathbf{L}(g)\mid_{k-2} [\widetilde \gamma]$ for any function $g \colon \uhp \to S(L)$; in particular, it lowers the weight by two. \end{enumerate} Functions satisfying $(i)$ -- $(iii)$ are called \emph{harmonic weak Maa\ss\ forms} of weight $k$, valued in $S(L)$. \end{definition} Contained in $H_k(\rho_L)$ is the space \[ M^!_k(\rho_L) \ := \ \ker(\xi_k) \] of \emph{weakly holomorphic forms}; these are precisely the forms of weight $k$ that are holomorphic on $\uhp$ and meromorphic at the cusp $\infty$. In turn, the space $M^!_k(\rho_L)$ contains the space of classical holomorphic modular forms $M_k(\rho_L)$, namely those forms that are holomorphic at $\infty$, and the space of cusp forms $S_k(\rho_L)$. We record some consequences of the definitions that will prove useful in the sequel, cf.\ \cite[\S 3]{brfugeom}. First, the Fourier expansion of $f \in H_k(\rho_L)$ admits a decomposition \begin{equation} \label{eqn:weakMaassDecomp} f(\tau) \ =\ f^+(\tau) \ + \ f^-(\tau) \end{equation} into its \emph{holomorphic} and \emph{non-holomorphic parts}, where the holomorphic part \[ f^+(\tau) \ = \ \sum_{m \gg - \infty} c_f^+(m) \, q^m \] has only finitely many negative terms. The non-holomorphic part \[ f^-(\tau) \ = \ \sum_{m < 0 } c_f^-(m) \ \Gamma(1-k, 4 \pi m v)\, q^m \] has non-zero Fourier coefficients only for negative indices; here \[ \Gamma(1-k, a ) = \int_{a}^\infty e^{-t}t^{k-2}\, dt . \] Moreover, a form $f$ is in $M^!_k(\rho_L)$ if and only if $f^- = 0$. Finally, we note that \begin{equation} \label{eqn:WHMPrincAsymp} f \ - \ \sum_{n\leq 0} c^+_f(n) \, q^n \ = \ O(e^{-Cv}) \qquad \text{ as } v \to \infty \end{equation} for some constant $C>0$. \subsection{A family of harmonic weak Maa\ss \ forms} \label{sec:relat-non-holom} In this section, we fix a special family $\{F_{m,\mu}\} \subset H_k(\rho_L)$ that will play an important role throughout. Suppose for the moment that $k <0$. Following \cite{brhabil}, if $m \in \Q_{> 0}$ and $\mu \in L'/L$ with $m \in Q(\mu) + \Z$, define \begin{equation} \label{eq:nhp-br} F_{m, \mu}(\tau) = \frac{(4 \pi m)^{1-k}}{4\cdot \Gamma(2-k)} \sum_{\tilde \gamma \in \widetilde{\Gamma}_\infty \backslash \widetilde{\Gamma}} \left( v^{1-k} \, M(1, 2- k , 4 \pi m v) \, e^{- 2 \pi i m u} \, \varphi_{\mu} \right) \Big\vert_{k} [\tilde \gamma] \end{equation} where $M(a,b,c)$ is Kummer's confluent hypergeometric function (see \cite{abst}, 13.1.2, 13.1.32); the observant reader will note that $F_{m,\mu}(\tau)$ differs from its namesake in \cite{brhabil} by a factor of $1/2$. The forms $F_{m, \mu}$ span $H_k(\rho_L)$ if $k<0$ (see Proposition 1.12 in \cite{brhabil}). The holomorphic part $F_{m,\mu}^+(\tau)$ is of the form \begin{equation} \label{eqn:FmHolPart} F_{m, \mu}^+(\tau) \ = \ q^{-m}\tilde\varphi_\mu \ + \ \sum_{ n \geq 0} \, c_{F_{m,\mu}}^+(n) \, e^{2 \pi i n \tau} \end{equation} for some coefficients $c_{F_{m,\mu}}^+(n)$ and where $\tilde\varphi_\mu = \frac12(\varphi_{\mu} + (-1)^{k+\frac{q-p}{2}}\varphi_{-\mu})$; in fact, $F_{m,\mu}$ is the unique harmonic weak Maa\ss\ form whose holomorphic part has this form \cite[Proposition 3.11]{brfugeom} and moreover $\xi(F_{m,\mu})$ is a (holomorphic, cuspidal) Poincar\'e series (cf. Remark 3.10 in \cite{brfugeom}). This observation suggests the following approach to defining an analogous function $F_{m,\mu}$ in the case that $k \geq 0$. We first recall the following \emph{modularity criterion}, due to Borcherds \cite{bogkz}. Let $\mathsf{Sing}_{2-k}(\rho_L)$ be the space of formal Fourier polynomials with negative indices that are invariant under the action of the elements $\mathbf Z$ and $\mathbf T$ of $\widetilde{\Gamma}$: \[ \mathsf{Sing}_{2-k}(\rho_L^{\vee}) \ \ := \ \left\{ P \ =\ \sum_{ m \leq 0} a_P(m) \, q^m \ \Big| \ a_P(m) \in S_L^{\vee},\ P\mid_{2-k}[\mathbf Z] \ = \ P\mid_{2-k}[\mathbf T] = P \right\} \] where $q = e^{2 \pi i \tau}$. We have a map \[ \psi\colon \mathsf{Sing}_{2-k}(\rho_L^{\vee}) \ \to \ M_{k}(\rho_L)^{\vee}, \qquad \psi(P)(g) \ = \ \sum_{m \leq 0} a_P(m) \cdot c_g(-m) , \] and also the \emph{principal part map} \[ P \colon H_{2-k}(\rho_L^{\vee}) \ \to \ \mathsf{Sing}_{2-k}(\rho_L^{\vee}), \ \qquad \ \ P(f) \ = \ \sum_{m \leq 0} c_f(m) \, q^m. \] Note that this latter map factors through the quotient by the space of cusp forms $S_{2-k}(\rho_L^{\vee})$. \begin{theorem}[{\cite[Theorem 3.1]{bogkz}}] \label{thm:serreduality} The sequence induced by the above maps \[ \begin{CD} 0 @>>> M^!_{2-k}(\rho_L^{\vee}) / S_{2-k}(\rho_L^{\vee}) @>P>> \mathsf{Sing}_{2-k}(\rho_L^{\vee}) @>\psi>> M_{k}(\rho_L)^{\vee} @>>> 0 \end{CD} \] is exact. \qed \end{theorem} This sequence will be used to normalize the forms $F_{m, \mu}$: for each $k$, fix a splitting \begin{equation}\label{eqn:etaSplitting} \begin{tikzcd} 0 \ar{r} & M^!_{2-k}(\rho_L^{\vee}) / S_{2-k}(\rho_L^{\vee}) \ar{r} & \mathsf{Sing}_{2-k}(\rho_L^{\vee}) \ar{r} & M_k(\rho_L)^{\vee} \ar{r} \ar[bend right, above]{l}{}[swap]{\eta} & 0. \end{tikzcd} \end{equation} The map $\psi^{\vee} \colon M_{k}(\rho_L) \to \mathsf{Sing}_{2-k}(\rho_L^{\vee})^{\vee}$ may be extended to $H_k(\rho_L)$, by setting \[ \psi^{\vee}(F)(P) \ := \ \sum_{m \leq 0} a_P(m) \cdot c_F^+(-m) , \qquad F \in H_k(\rho_L) \] where $c_F^+(-m)$ are Fourier coefficients of the holomorphic part $F^+$ of $F$. \begin{lemma} \label{lem:uniqueHPSeries} Suppose $m \in \Q$ and $\mu \in L'/L$ with $m \equiv Q(\mu) \bmod \Z$. For each $k \in \frac12\Z$, there is a unique element $F_{m,\mu} \in H_k(\rho_L)$ such that \begin{enumerate} \item The holomorphic part of $F_{m, \mu}$ has the form \[ F^+_{m,\mu} (\tau) \ = \ q^{-m}\tilde\varphi_\mu \ + \ \sum_{n \geq 0} c(n) \, q^n \ \qquad \text{ for some } c(n) \in S(L); \] \item and $\psi^{\vee}(F_{m,\mu})(P) = a_P(m)(\varphi_{\mu})$ for every $P \in \mathrm{im}(\eta)$. \end{enumerate} \end{lemma} \begin{remark}\label{rem:eta}\ \\ \begin{itemize} \item Note that if $k<0$ then $M_k(\rho_L) =\{ 0\}$ and $\eta = 0$, and condition {\it (ii)} is superfluous; in this case the construction of $F_{m,\mu}$ as in the lemma coincides with \eqref{eq:nhp-br} for $m>0$, and is identically zero for $m \leq 0$. \item In general, $F_{m,\mu} = 0$ for almost all negative $m$. \item The form $F_{m, \mu}$ will depend on the choice of $\eta$, but as this choice will not play a significant role in our applications, we omit this dependence from our notation. \item A natural choice of $\eta$ can be constructed as follows. For $m \in \Q$ and $\mu \in L'/L$, let $\phi_{m,\mu} \in M_{k}(\rho_L)^{\vee}$ denote the functional \[ \phi_{m,\mu}\colon f \mapsto a_{f}(m)(\mu), \qquad \text{for all } f(\tau) = \sum_{n} a_f(n) q^n \in M_k(\rho_L) . \] The collection of all $\{ \phi_{m,\mu}\}$ with $m \in \Q$ and $\mu \in L'/L$ spans the finite-dimensional space $M_k(\rho_L)^{\vee}$, and so there are positive integers $n_1 \leq \ldots \leq n_d$ and $\mu_1, \ldots, \mu_d \in L'/L$ such that $\{\phi_{n_i,\mu_i}\}$ is a basis of $M_k(\rho_L)^\vee$. Then a possible choice for $\eta$ is given by setting \[ \eta(\phi_{n_i, \mu_i}) = q^{-n_i} \tilde\varphi_{\mu_i}^{\vee} ,\] where \[ \tilde\varphi_{\mu_i}^{\vee} \ = \ \varphi_{\mu_i}^{\vee} \ + \ (-1)^{-k + \frac{q-p}{2}} \varphi_{-\mu_i}^{\vee} \ \in \ S(L)^{\vee}\] is the vector dual to $\tilde\varphi_{\mu_i}$ with respect to the basis $\{ \varphi_{\mu}\}$ of $S(L)$. Note that with this choice, we have $F_{m,\mu} = 0$ for $m \leq 0$ unless $m = -n_i$ for some $i \in \{1, \ldots, d\}$ and $\mu = \pm \mu_i$. Moreover, the family of non-zero $F_{m,\mu}$, over all $m \in \Q$ and $\mu \in L'/L$, form a basis of $H_k(\rho_L)$. If $k>2$ and $m<0$, the forms $F_{m,\mu}$ are (holomorphic) Poincar\'{e} series. \end{itemize} \end{remark} \begin{proof} The existence of a form $F \in H_{k}(\rho_L)$ satisfying $(i)$ follows from \cite[Proposition 3.11]{brfugeom}. Recall we had fixed a splitting morphism $\eta$ as in \eqref{eqn:etaSplitting}. Let \[ \phi_{m, \mu} \in \mathsf{Sing}_{2-k}(\rho_L^{\vee})^{\vee}, \qquad \phi_{m,\mu}(P) = a_P(m)(\varphi_{\mu}) \] and set \[ g \ = \ \eta^{\vee} \left( \psi^{\vee}(F) \ - \ \phi_{m,\mu} \right) \in M_k(\rho_L); \] then the difference $F - g$ satisfies the properties in the lemma, proving existence. To show uniqueness, suppose $F_1$ and $F_2$ satisfy both properties, and consider $F := F_1 - F_2$. Note that $P(F)$ is constant. We first claim that $F \in M_k(\rho_L)$. Indeed, by \cite[Proposition 3.5]{brfugeom}, \[ \langle \xi(F), h \rangle_{\mathrm{Pet}} \ = \ \sum_{m \leq 0} \ c_F^+(m) \cdot c_h(-m) \ \qquad \text{ for all } h \in M_{2-k}(\rho_L^{\vee}), \] where the left hand side is the usual Petersson pairing between $S_{2-k}(\rho_L^{\vee})$ and $M_{2-k}(\rho_L^\vee)$; note here that $\xi(F)$ is cuspidal. On the other hand, since $P(F)$ is constant this quantity vanishes if $h$ is cuspidal. Since the Petersson pairing is non-degenerate when restricted to cusp forms, it follows that $\xi(F) = 0$. Thus, $F \in M_k^!(\rho_L)$ and has constant principal part, which implies the stronger statement $F \in M_k(\rho_L)$. By the second property in the lemma, \[ 0 \ = \ (\eta^{\vee} \circ \psi^{\vee})(F) \ = \ F, \] proving uniqueness. \end{proof} When $m \notin Q(\mu) + \Z$, set $F_{m,\mu} = 0$. We may define an $S(L)^{\vee} \otimes_{\C} S(L)$-valued version \[ F_{m} \colon \mathbb H \ \to \ S(L)^{\vee} \otimes_{\C} S(L) \] by setting \[ F_{m}(\tau)(\varphi) \ = \ \sum_{\substack{\mu \in L'/L\\Q(\mu) \equiv m \bmod \Z}} a_{\mu} \, F_{m,\mu}(\tau) \] whenever $\varphi = \sum_{\mu} a_{\mu} \varphi_{\mu} \in S(L)$. \subsection{Truncated Poincar\'{e} series} \label{sec:trunc-poinc} \newcommand{\R_{>0}}{\R_{>0}} For a parameter $w \in \R_{>0}$ and $\tau = u+iv \in \uhp$, consider the cutoff function \[ \sigma_{w}(\tau) = \begin{cases} 1, & \text{ if } v \geq w,\\ 0, & \text{ if } v < w. \end{cases} \] Fix $w \in \R_{>0}$ and a half-integer $k \in \frac12 \Z$ such that $2 k \equiv p \bmod{2}$. For a coset $\mu \in L'/L$ and a rational number $m \in Q(\mu) + \Z$, define the \emph{truncated Poincar\'{e} series} $P_{m, w, \mu} \colon \uhp \to S(L)$ by the formula \begin{equation} \label{eqn:TPSdef} P_{m, w, \mu}(\tau)\ = \ \frac{1}{4} \, \sum_{ \tilde \gamma \in \widetilde{\Gamma}_\infty \backslash \widetilde{\Gamma}} \left( \sigma_{w}(\tau) \, e^{-2 \pi i m \tau }\, \varphi_{\mu} \right) \big\vert_{k}[\tilde \gamma], \end{equation} where $\widetilde{\Gamma}_\infty$ is the subgroup of $\widetilde{\Gamma}$ generated by $\mathbf T$. For a fixed $\tau$, there are only finitely many elements $\gamma \in \Gamma_{\infty} \backslash \SL_2(\Z)$ such that $\sigma_w(\gamma \tau) \neq 0$; thus the sum \eqref{eqn:TPSdef} is locally finite, and in particular, is absolutely convergent. By construction, $P_{m, w, \mu}(\tau)$ is evidently invariant under the weight $k$ slash operator, i.e.\ it is a (discontinuous!) ``modular form'' of weight $k$. \begin{remark} \label{rmk:intrinsicPoincare} It will be useful to give a more intrinsic definition for a truncated Poincar\'e series $P_{m,w}(\tau)(\varphi)$ valid for any $m \in \Q$ and $\varphi \in S(V(\mathbb A_f))$. Fix an integer $N \gg 0$ such that $m \in N^{-1}\Z$ and $\rho_L(\widetilde{\Gamma}_{\infty,N})$ acts trivially on $\varphi$, where $\widetilde{\Gamma}_{\infty,N} = \langle \mathbf T^N \rangle$. Then, for any fixed parameter $w \in \R_{>0}$, set \[ P_{m,w}(\tau)(\varphi)\ := \ \frac{1}{4N} \, \sum_{ \tilde \gamma \in \widetilde{\Gamma}_{\infty,N} \backslash \widetilde{\Gamma}} \left( \sigma_{w}(\tau) \, e^{-2 \pi i m \tau }\, \varphi \right) \big\vert_{k} [\tilde \gamma], \] which defines a map \[ P_{m,w}(\tau) \colon \uhp \ \to \ S(V(\mathbb A_f))^{\vee} \otimes_{\C} S(V(\mathbb A_f)). \] Since $S(L)$ is $\widetilde{\Gamma}$-invariant, restricting to $S(L)$ yields a map \[ P_{m,w}(\tau) \colon \uhp \ \to \ S(L)^{\vee} \otimes_{\C} S(L), \] denoted by the same symbol. We may thereby view $P_{m,w}(\tau)$ as valued in $S(L)^{\vee} \otimes_{\C} S(L)$, where $\widetilde{\Gamma}$ acts by $\rho^{\vee} \otimes 1$. Alternatively, if we define $P_{m, w, \mu}(\tau) = 0$ whenever $m \notin Q(\mu) + \Z$, then for any \[ \varphi \ = \ \sum_{\mu} \, a_{\mu} \, \varphi_{\mu} \ \in S(L), \] it is easy to check that \begin{equation} \label{eqn:PmwAltDef} P_{m,w}(\tau)(\varphi)\ = \ \sum_{\mu \in L'/L} \, a_{\mu} \, P_{m, w, \mu}(\tau) \ = \ \sum_{\substack {\mu \in L'/L \\ Q(\mu) \equiv m \bmod{\Z}}} a_{\mu} \, P_{m, w, \mu}(\tau) ; \end{equation} this provides an alternative definition of $P_{m,w}(\tau)(\varphi)$. \end{remark} \subsection{A section of the Maa\ss \ lowering operator} \label{sec:invert-xi} In this section, we show that for a form $f$ satisfying certain mild analytic conditions, our Poincar\'e series can be used to generate the Fourier coefficients of a distinguished preimage $F \in \mathbf{L}^{-1} (f)$ of $f$ under the Maa\ss \ lowering operator. We begin by fixing some notation. Suppose $L \subset V$ is an even integral lattice, and $\kappa \in \frac12 \Z$ with $2\kappa \equiv p-q \bmod{2}$. \begin{definition} \label{def:modgrowthforms} Let $\ALmod{\kappa}(\rho_L^{\vee})$ be the space of $\mathcal{C}^{\infty}$ functions \[ f \colon \uhp \ \to \ S(L)^{\vee} \] such that \begin{enumerate} \item $f\mid_{\kappa} [\tilde \gamma] (\tau) = f(\tau)$ for all $\tilde \gamma \in \widetilde{\Gamma}$; \item $f$ has at most `moderate growth at $\infty$', \\ i.e. for all $\alpha, \beta$, there is some $\ell \in \Z$ (possibly depending on $\alpha$ and $\beta$), such that $\frac{\partial^\alpha}{\partial u^\alpha}\frac{\partial^\beta}{\partial v^\beta}f(\tau) = O(v^{\ell})$ as $v \to \infty$. \item writing the Fourier expansion of $f$ as \[ f(\tau) \ = \ \sum_{m \in \Q} c(m, v) \, e^{2 \pi i m \tau} , \qquad \text{ with } c(m, v) \colon \R_{>0} \to S(L)^{\vee}, \] we require that the constant term $c(0, v)$ has the form \[ c(0, v) \ = \ \sum_{\mu \in L'/ L} \ \sum_{i=1}^r \, \alpha_{\mu,i} \, v^{\beta_{\mu,i}} \, \varphi_{\mu}^{\vee} \ + \ \tilde c(0,v) \] for some $\alpha_{i,\mu} \in \C$, $\beta_{\mu,i} \in \Q$, and a smooth function $\tilde c(0, v) \colon \uhp \to S(L)^{\vee}$ satisfying $\tilde c(0,v) = O(e^{-Cv})$ as $v \to \infty$ for some $C>0$. \end{enumerate} \end{definition} \begin{definition} Define another space $A_{\kappa}^{!}(\rho_L^{\vee})$, consisting of $\mathcal{C}^{\infty}$ functions $F \colon \uhp \to S(L)^{\vee}$ such that \begin{enumerate} \item $F(\tau)\mid_{\kappa} [\tilde \gamma] = F(\tau) $ for all $\widetilde \gamma \in \widetilde{\Gamma}$; \item $F$ has at worst `exponential growth at $\infty$', i.e.\ $F(\tau) = O(e^{Cv})$ as $v \to \infty$ for some constant $C>0$; and \item $\mathbf{L}(F) \in \ALmod{\kappa-2}(\rho_L^{\vee})$. \end{enumerate} Note that $A_{\kappa}^{!}(\rho_L^{\vee})$ contains $H_{\kappa}(\rho_L^{\vee})$ and therefore also $M^!_{\kappa}(\rho_L^{\vee})$. \end{definition} The following Proposition generalizes Theorem 3.7 in \cite{brfugeom}. \begin{proposition} \label{prop:Lexactseq} The following sequence is exact: \begin{equation} \label{eq:Lsurj} \xymatrix@1{ 0 \ar[r] & M_{\kappa}^!(\rho_L^{\vee}) \ar[r] & A_{\kappa}^{!}(\rho_L^{\vee}) \ar[r]^-{\mathbf{L}} &\ALmod{\kappa-2}(\rho_L^{\vee})\ar[r] & 0}. \end{equation} \end{proposition} \begin{proof}[Sketch of proof:] The proof proceeds along the same lines as \cite[Theorem 3.7]{brfugeom}, except we replace the sheaves of $\mathcal{C}^{\infty}$ forms appearing in \emph{op.~cit.} with the sheaves of $\log$-singular forms considered in \cite{bkk}. We sketch the argument here: fix a normal subgroup $\Gamma_0 \subset \widetilde{\Gamma} = \Mp_2(\Z)$ of finite index, such that $\Gamma_0$ acts freely on $\uhp$. Write $\mathcal{O}$ for the sheaf of holomorphic functions on the compactified curve $X = \Gamma_0 \backslash\uhp^*$, and $\mathscr{E}^{p,q} = \mathscr{E}^{p,q}\langle D \rangle$ for the sheaf of $\mathcal{C}^\infty$ differential forms of Hodge type $(p,q)$ and with `logarithmic growth along the cuspidal divisor $D$', as in \cite[Definition 2.2]{bkk}; using Theorem 2.13 of \emph{op.~cit.}, these sheaves can be identified with sheaves of differential forms generated by differentials of functions with moderate growth at the cusps. Let $\mathcal{L}_{\kappa,L}$ be the $\mathcal{O}$-module sheaf of modular forms of weight $\kappa$ and representation $\rho_L$ on $X$. The sections in $\mathcal{L}_{\kappa,L}(U)$ are given by holomorphic $S(L)$-valued functions on the preimage of $U$ under the canonical projection from $\uhp$ to $X$ that satisfy the usual transformation property with respect to $\Gamma_0$ and are holomorphic at the cusps. Let $n > 0$ be a positive integer. By the Dolbeault Lemma for the sheaves $\mathscr{E}^{p,q}$, see \cite[Lemma 2.44]{bkk}, the sequence of sheaves \begin{equation} \label{eq:resolution} \xymatrix{ 0 \ar[r] & \mathcal{L}_{\kappa,L} \otimes_{\mathcal{O}} \mathcal{O}_{nD} \ar[r] & \mathscr{E}^{0,0} \otimes_{\mathcal{O}} \mathcal{L}_{\kappa,L} \otimes_{\mathcal{O}} \mathcal{O}_{nD} \ar[r]^{\overline\partial} & \mathscr{E}^{0,1} \otimes_{\mathcal{O}} \mathcal{L}_{\kappa,L} \otimes_{\mathcal{O}} \mathcal{O}_{nD} \ar[r]& 0}, \end{equation} is exact. Moreover, since $\mathscr{E}^{p,q} \otimes_{\mathcal{O}} \mathcal{L}_{k,L} \otimes_{\mathcal{O}} \mathcal{O}_{nD}$ is a fine sheaf (as a module over the sheaf of $\mathcal{C}^\infty$ functions on $X$), taking global sections gives an exact sequence in cohomology \begin{equation} \label{eq:dolbeault} \xymatrix{ 0 \ar[r] & (\mathcal{L}_{k,L} \otimes \mathcal{O}_{nD})(X) \ar[r] & \mathscr{E}^{0,0}(X,\mathcal{L}_{k,L} \otimes \mathcal{O}_{nD}) \ar[r]^{\overline\partial} & \mathscr{E}^{0,1}(X,\mathcal{L}_{k,L} \otimes \mathcal{O}_{nD}) \ar[d]&\\ & & & H^1(X,\mathcal{L}_{k,L} \otimes \mathcal{O}_{nD}) \ar[r] & 0} \end{equation} For fixed $\kappa$, an application of Serre duality, as in the proof of \cite[Theorem 3.7]{brfu06}, implies that $H^1(X,\mathcal{L}_{\kappa,L} \otimes \mathcal{O}_{nD})$ vanishes for $n$ sufficiently large. We now show that $\mathbf{L}$ is surjective in the sequence \eqref{eq:Lsurj}. Let $n$ be a large enough positive integer such that $H^1(X,\mathcal{L}_{\kappa,L} \otimes \mathcal{O}_{nD}) = 0$ in the above discussion, and suppose $f \in \ALmod{\kappa-2}(\rho_L^{\vee})$. Since $f$ has moderate growth, \cite[Theorem 2.13]{bkk} implies that pullback of the differential form \[ \eta \ := \ v^{-2} \ f \ d \overline\tau \] along the covering map \[ X \to \widetilde{\Gamma} \backslash \uhp^*\] is a $ \widetilde{\Gamma} / \Gamma_0$-invariant global section in $\mathscr{E}^{0,1}(X, \mathcal{L}_{\kappa,L} \otimes \mathcal{O}_{n D})$. Therefore, taking $\widetilde{\Gamma}/\Gamma_0$-invariants in the exact sequence \eqref{eq:dolbeault}, there exists \[ F \ \in \ \mathscr{E}^{0,0}(X, \mathcal{L}_{\kappa,L} \otimes \mathcal{O}_{n D})^{\widetilde{\Gamma}/\Gamma_0} \] with $\overline \partial F = \eta$, or equivalently, $\mathbf{L}(F) = f$. Moreover, by construction $F$ may be written, in a neighbourhood of each cusp, as a sum of products of moderate growth and meromorphic forms, and so has at worst exponential growth approaching the cusps. Since $F$ is furthermore $\widetilde{\Gamma}/\Gamma_0$-invariant, it descends to $\widetilde{\Gamma} \backslash \uhp^*$, i.e.\ it is an element of $A_{\kappa}^{!}(\rho^{\vee}_L)$. \end{proof} Suppose $F \in A_{\kappa}^{!}(\rho_L^{\vee})$ and $f = \mathbf{L}(F) \in \ALmod{\kappa-2}(\rho_L^{\vee})$ with Fourier expansions \[ F(\tau) \ = \ \sum_m c_F(m,v) \, e^{2 \pi i m \tau} \qquad \text{and} \qquad f(\tau) \ = \ \sum_m c_f(m,v) \, e^{2 \pi i m \tau} \] where $\tau = u + i v$. The relation $\mathbf{L}(F) = f$ implies that for each $m$, \begin{equation} \label{eqn:cFlowering} c_F(m,v) \ = \ c_F(m,1) \ + \ \int_{1}^v c_f(m,t) \, t^{-2} \, dt . \end{equation} Since $f(u+it) = O(t^{l})$ as $t \to \infty$ by assumption, \begin{equation} \label{eqn:cfbound} | c_f(m,t) | \ = \ e^{2 \pi m t} \cdot \left| \int_{-1/2}^{1/2} \, f(u+it) \, e^{-2 \pi i m u} \, du \right| \ \ll \ e^{2 \pi m t} \cdot t^{l} \end{equation} for all $t>1$, where the implied constant is independent of $m$. In particular, for all $m<0$, substituting this bound in \eqref{eqn:cFlowering} gives \[ \kappa_F(m) \ := \ \lim_{v \to \infty} \, c_F(m,v) \ < \ \infty. \] Moreover, it follows from the assumption that $F$ has exponential growth that \[ \kappa_F(m) \ = \ 0 \qquad \text{ for all but finitely many } m <0. \] and \begin{equation} \label{eqn:cFstrong} c_F(m,v) - \kappa_F(m) \ = \ e^{-2 \pi (|m| - \epsilon) v} \cdot O(1) \end{equation} for any fixed $\epsilon > 0$, where the implied constant depends only on $\epsilon$ and $f$. Finally, we define $\kappa_F(0)\in S(L)^{\vee}$ by noting that \Cref{def:modgrowthforms}(iii) implies that $c_F(0,v)$ can be written in the form \begin{equation} \label{eq:cF0} c_F(0,v) \ = \ \kappa_F(0) \ + \ \sum_{\mu} \left[ \sum_{\substack{j \\ \beta_{j,\mu} \neq 1}} \frac{\alpha_{j,\mu}}{\beta_{j, \mu}-1} \, v^{\beta_{j,\mu}-1} \ + \ \gamma_{\mu}\log(v) \right] \varphi_{\mu}^{\vee} \ + \ O(e^{-cv}) \end{equation} for some $\gamma_{\mu} \in \C$ . In other words, $\kappa_F(0)$ is the constant part of the constant term. Recall that we had defined the regularized pairing $\langle f, g \rangle^{\mathrm{reg}}$ for functions $f$ and $g$ transforming of weight $k$ and $-k$ respectively, as in \Cref{def:regpairing}. Our next goal is to show this pairing exists in two particular situations. \begin{lemma} \label{lem:regPet} Suppose $F \in A_{\kappa}^{!}(\rho_L^{\vee})$ and that $G \in M_{\kappa}(\rho_L^{\vee})$ is a holomorphic modular form. Then the \emph{regularized Petersson pairing} $\langle F,\, G\rangle_{\mathrm{Pet}}^{\mathrm{reg}}$ (see \Cref{def:regpairing}) exists. \begin{proof} For $\Re(s)$ sufficiently large, we write \begin{align*} \lim_{T \to \infty} \, \int_{\mathcal{F}_T} \, F(\tau) \,&\overline{G(\tau)} \, v^{\kappa- s} \, d\mu(\tau) \\ &= \ \int\limits_{\mathcal{F}_1} F(\tau) \, \overline{G(\tau)} \, v^{\kappa- s} \, d\mu(\tau) \ + \ \lim_{T \to \infty} \, \int\limits_{\mathcal{F}_T - \mathcal{F}_1} F(\tau) \, \overline{G(\tau)} \, v^{\kappa-s} \, d \mu(\tau) . \end{align*} As $\mathcal{F}_1$ is compact, the first integral defines a holomorphic function for $s \in \C$. As for the second integral, we have \begin{align*} \lim_{T \to \infty} \, \int\limits_{\mathcal{F}_T - \mathcal{F}_1} F(\tau) \, \overline{G(\tau)} \, v^{\kappa-s} \, d \mu(\tau) \ =& \ \lim_{T \to \infty} \int_1^{T} \int_{-\frac12}^{\frac12} \, F(\tau) \, \overline{G(\tau)} \, v^{\kappa - s-2} \, du \, dv \\ =& \ \lim_{T \to \infty} \ \int_1^{T} \ \sum_{m \geq 0} c_F(m, v) \, \overline{c_G(m)} \, e^{-4 \pi m v} \, v^{\kappa-s-2} \, dv \end{align*} where in the second line, we inserted the Fourier expansions of $F$ and $G$, and took the integral over $u$. For $v > 1$, use \eqref{eqn:cFlowering} to write \[ c_F(m,v) \ =\ c_F(m,1) \ + \ O(e^{2 \pi m v} v^{\ell}) \qquad \text{ as } v \to \infty \] for some $\ell$, where the implied constant is independent of $m$. Note also that \[ \sum_{m > 0}| c_F(m,1) \, e^{- 2 \pi m v }|^2 \ < \ \sum_{m \in \Q} |c_F(m,1) \, e^{-2 \pi m }|^2 \ = \ \int_{-1/2}^{1/2} |F(u + i)|^2 du \] so $c_F(m,1) \cdot e^{- 2 \pi m v}$ is bounded by an overall constant independent of $v$ and $m$. Using the estimate $c_G(m) = O(m^{\kappa-1})$ for a holomorphic modular form, it is easy to verify that \[ \lim_{T \to \infty} \ \int_1^{T} \ \sum_{m > 0} c_F(m, v) \, \overline{c_G(m)} \, e^{-4 \pi m v} \, v^{\kappa-s-2} \, dv \] converges uniformly for all $s \in \C$ and thereby defines a holomorphic function in $s$. For the zeroth Fourier coefficient, writing $c_F(0,v)$ as in \eqref{eq:cF0} we see that \[ \lim_{T \to \infty} \ \int_1^{T} \, c_F(0,v) \ \overline{c_G(0)} \ v^{\kappa - s - 2} \ dv \] extends to a meromorphic function in $s \in \C$, as required. \end{proof} \end{lemma} \begin{remark} The proof of the proposition implies that if $G \in S_{\kappa}(\rho_L^{\vee})$, then \[ \langle F, G \rangle_{\mathrm{Pet}}^{\mathrm{reg}} \ = \ \lim_{T \to \infty} \, \int_{\mathcal{F}_T} F(\tau) \, v^{\kappa} \, \overline{ G(\tau)} \, d \mu(\tau). \] \end{remark} Recall the fixed splitting \begin{equation} \label{eqn:splittingRedux} \begin{tikzcd} 0 \ar{r} & M^!_{\kappa}(\rho_L^{\vee}) / S_{\kappa}(\rho_L^{\vee}) \ar{r}{}{P} & \mathsf{Sing}_{\kappa}(\rho_L^{\vee}) \ar{r} & M_{2 - \kappa}(\rho_L)^{\vee} \ar{r} \ar[bend right, above]{l}{}[swap]{\eta} & 0. \end{tikzcd} \end{equation} of the exact sequence in \Cref{thm:serreduality}; note that we have relabelled the subscripts here. Define an extension of the map $P$ to $A_{\kappa}^{!}(\rho_L^{\vee})$ by setting \[ P \colon A_{\kappa}^{!}(\rho_L^{\vee}) \ \to \ \mathsf{Sing}_{\kappa}(\rho_L^{\vee}), \ \qquad P(F) \ := \ \sum_{m \leq 0} \kappa_F(m) \cdot q^m . \] \begin{proposition} \label{prop:uniquepreimage} For any $f \in \ALmod{\kappa-2}(\rho_L^{\vee})$, there exists a unique $F \in A_{\kappa}^{!}(\rho_L^{\vee}) $ such that \begin{enumerate} \item $\mathbf{L}(F) = f$; \item $P(F) \in \mathrm{im}(\eta)$; and \item $F$ has `trivial cuspidal holomorphic projection', i.e., $\langle F, G\rangle^{\mathrm{reg}}_{\mathrm{Pet}} = 0$ for every $G \in S_{\kappa}(\rho_L^{\vee})$. \end{enumerate} We denote this unique preimage as $F = \Low^{\sharp}(f)$. \end{proposition} Note that when $\kappa > 2$, the space $M_{2-\kappa}(\rho_L) = \{0\}$ and so $\eta$ is identically zero. In this case, condition $(ii)$ asserts that $P(\Low^{\sharp}(f)) = 0$, i.e.\ $\Low^{\sharp}(f)$ has ``trivial principal part". \begin{proof} To prove the uniqueness statement, suppose $F_1$ and $F_2$ are as above, and set $F = F_1 - F_2$. Then $\mathbf{L}(F)=0$, and so $F$ is a weakly holomorphic form, i.e.\ $F \in M_{\kappa}^!(\rho_L^{\vee})$. Moreover $P(F) \in \mathrm{im}(\eta)$, which implies that $P(F) = 0$ by the exactness of \eqref{eqn:splittingRedux}, and hence $F \in S_{\kappa}(\rho_L^{\vee})$ is a cusp form. But $F$ is orthogonal to cusp forms, so $F = 0$. To show existence, we start by choosing any preimage $F_0$ of $f$, which exists by virtue of \Cref{prop:Lexactseq}. Appealing again to the exact sequence \eqref{eqn:splittingRedux}, there exists a form $G \in M^!_{\kappa}(\rho_L^{\vee})$ such that $P(F_0 - G) \in \mathrm{im}(\eta)$. Then, choosing an orthonormal basis $h_1, \dots, h_r \in S_{\kappa}(\rho_L^{\vee})$, the function \[ F(\tau) \ := \ F_0(\tau) \ - \ G(\tau) \ - \ \sum_i \langle F_0 - G, \ h_i\rangle^{\mathrm{reg}}_{\mathrm{Pet}} \ h_i(\tau) \ \in \ A_{\kappa}^{!}(\rho_L^{\vee}) \] satisfies the hypotheses in the Proposition. \end{proof} Our next aim to calculate regularized pairings against the harmonic Maa\ss{} forms of weight $ k = 2 - \kappa$ introduced previously. Fix $\mu \in L'/L$ and $m \in Q(\mu) + \Z$. For convenience, write the Fourier expansion of the weight $k$ Poincar\'e series $F_{m, \mu}(\tau)$, defined for all $m$ and all weights as in \Cref{lem:uniqueHPSeries}, as \begin{equation} \label{eqn:FmFourierExp} F_{m,\mu}(\tau) \ = \ \sum_{n} \, b_{m,\mu}(n,v) \, q^n. \end{equation} Recall from \Cref{sec:relat-non-holom} that $b_{m,\mu}(n,v)$ is independent of $v$ when $n \geq 0$. \begin{proposition} \label{prop:poincarereg} Let $f \in \ALmod{{\kappa-2} }(\rho_L^{\vee})$, and fix $\mu \in L'/L$ and $m \in Q(\mu) + \Z$. Then \begin{align*} \langle P_{m, w, \mu} - F_{m,\mu}, \, f\rangle^\mathrm{reg} \ &= \ \lim_{T \to \infty}\Big[ \int_{\mathcal{F}_T} \left( P_{m, w, \mu}(\tau) - F_{m,\mu}(\tau)\right) f(\tau) \, d\mu(\tau) \\ &\phantom{= \lim_{T\to\infty}\Big(}+ \int_{1}^T \left( b_{m,\mu}(0) - \delta_{m,0} \, \tilde\varphi_{\mu} \right) \cdot c_f(0,v) \, v^{-2}\,dv \Big] \\ &\phantom{= \lim_{T\to\infty}} - \CT_{s=0} \, \lim_{T \to \infty} \int_{1}^T \left( b_{m,\mu}(0) - \delta_{m,0} \, \tilde\varphi_{\mu} \right) \cdot c_f(0,v) \, v^{-s-2}\,dv. \end{align*} Here, \[ \tilde\varphi_{\mu} = \frac12 ( \varphi_{\mu}+ (-1)^{\kappa + (q-p)/2} \varphi_{-\mu}). \] In particular, the regularized integral exists. \begin{proof} Recalling the definition of the truncated Poincar\'e series \[ P_{m, w, \mu}(\tau) \ := \ \frac{1}{4} \, \sum_{ \tilde \gamma \in \widetilde{\Gamma}_\infty \backslash \widetilde{\Gamma}} \left( \sigma_{w}(\tau) \, e^{-2 \pi i m \tau }\, \varphi_{\mu} \right) \big\vert_{k} [\tilde \gamma], \] note that if $\Im(\tau) > w_0 := \max(w, 1/w)$, then \[ P_{m, w, \mu}(\tau) \ = \ e^{-2 \pi i m \tau} \, \tilde\varphi_\mu, \] In particular, if $v = \Im(\tau) > w_0$ then \begin{equation} \label{eqn:QExpDiffPoincare} P_{m, w, \mu}(\tau) \ - F_{m,\mu}(\tau) \ + \ b_{m,\mu}(0)\ - \ \delta_{m,0}\, \tilde\varphi_\mu \ = \ O(e^{-Cv}) \end{equation} for some $C>0$; indeed, when $\kappa>2$ and $m >0$, this bound follows from \eqref{eqn:WHMPrincAsymp}, since $ P_{m, w, \mu}(\tau) + b_{m,\mu}(0)$ is precisely the principal part of $F_{m,\mu}(\tau)$, and the bound is trivial to verify in all other cases. For convenience, set \[ \tilde b_{m,\mu}(0) \ := \ b_{m,\mu}(0) \ - \ \delta_{m,0}\, \tilde\varphi_\mu. \] For $\Re(s)$ sufficiently large, \begin{align} \lim_{T \to \infty} \int_{\mathcal{F}_T} & (P_{m, w, \mu}(\tau) - F_{m,\mu}(\tau))\, f(\tau) \ v^{-s} \ d\mu(\tau) \notag \\ &= \ \int_{\mathcal{F}_{w_0}} ( P_{m, w, \mu}(\tau) - F_{m,\mu}(\tau)) \, f(\tau) \ v^{-s} \ d\mu(\tau) \notag \\ & \qquad \qquad \ + \lim_{T \to \infty} \int\limits_{\mathcal{F}_T - \mathcal{F}_{w_0}} ( P_{m, w, \mu}(\tau) - F_{m,\mu}(\tau)) f(\tau) \ v^{-s} d \mu(\tau). \notag \end{align} As before, the integral over $\mathcal{F}_{w_0}$ is holomorphic in $s$, and contributes its value \[ I_0 := \int_{\mathcal{F}_{w_0}} ( P_{m, w, \mu}(\tau) - F_{m,\mu}(\tau)) \, f(\tau) \ d\mu(\tau) \] at $s=0$ to the regularized integral. For the other integral, inserting the Fourier expansion \eqref{eqn:QExpDiffPoincare} and carrying out the integral over $u=\Re(\tau)$ gives \begin{align*} \lim_{T \to \infty} \int\limits_{\mathcal{F}_T - \mathcal{F}_{w_0}} ( P_{m, w, \mu}(\tau) - F_{m,\mu}(\tau)) f(\tau) \ v^{-s} d \mu(\tau) \ = I_1(s) \ + \ I_2(s) \end{align*} where \[ I_1(s) \ = \ \lim_{T \to \infty} \int\limits_{\mathcal{F}_T - \mathcal{F}_{w_0}} \left( P_{m, w, \mu}(\tau) - F_{m,\mu}(\tau) + \tilde b_{m,\mu}(0) \right) \cdot f(\tau) \ v^{-s} d \mu(\tau) \] and \[ I_2(s) \ = \ - \lim_{T \to \infty} \int\limits_{\mathcal{F}_T - \mathcal{F}_{w_0}} \tilde b_{m,\mu}(0) \cdot f(\tau) v^{-s} d \mu(\tau) \ = - \lim_{T \to \infty} \ \int_{w_0}^{T} \ \tilde b_{m,\mu}(0) \, c_f(0,v) \, v^{-s-2} dv. \] It follows from \eqref{eqn:QExpDiffPoincare} that $I_1(s)$ defines a holomorphic function for $s \in \C$, and so contributes its value at $s=0$ to the regularized integral. On the other hand, the assumption in \Cref{def:modgrowthforms} for the shape of $c_f(0,v)$ immediately implies that $I_2(s)$ admits a meromorphic continuation to $s \in \C$. Therefore, the regularized pairing exists: \begin{equation} \label{eqn:regPoincareIntFinal} \langle P_{m, w, \mu} - F_{m,\mu}, \ f \rangle^{\mathrm{reg}} \ = \ I_0 \ + \ I_1(0) \ + \ \CT_{s=0} I_2(s). \end{equation} To conclude the proof, write \begin{align*} I_1(0) \ &= \ \lim_{T \to \infty} \ \int\limits_{\mathcal{F}_T - \mathcal{F}_{w_0}} \left( P_{m, w, \mu}(\tau) - F_{m,\mu}(\tau) \right) \, f(\tau) \ d\mu(\tau) \ + \ \int_{w_0}^T \tilde b_{m,\mu}(0) \, c_f(0,v) \, v^{-2} \, dv, \end{align*} and combining the first integral with $I_0$ gives \[ I_0 \ + \ I_1(0) \ = \ \lim_{T \to \infty} \ \int\limits_{\mathcal{F}_T} \left( P_{m, w, \mu}(\tau) - F_{m,\mu}(\tau) \right) \, f(\tau) \ d\mu(\tau) \ + \ \int_{w_0}^T \tilde b_{m,\mu}(0) \, c_f(0,v) \, v^{-2} \, dv \] Furthermore, observe that \[ \int_{w_0}^1 \tilde b_{m,\mu}(0) \, c_f(0,v) \, v^{-2} \, dv \ = \ \CT_{s=0} \int_{w_0}^1 \tilde b_{m,\mu}(0) \, c_f(0,v) \, v^{-s-2} \, dv ;\] adding and subtracting this quantity in \eqref{eqn:regPoincareIntFinal} gives the expression in the proposition. \end{proof} \end{proposition} We arrive at the \emph{raison d'\^etre} of this section: \begin{theorem} \label{thm:MaassSection} Suppose $f \in \ALmod{\kappa-2}(\rho_L^{\vee})$, and \[F \ = \ \Low^{\sharp}(f) \ \in \ A_{\kappa}^{!}(\rho_L^{\vee}) \] the preimage under $L$ as specified in \Cref{prop:uniquepreimage}. Then for any $\mu \in L'/L$ and $m \in \Q$, \begin{equation} \label{eqn:PRegmPos} \langle P_{m, w, \mu}- F_{m,\mu} , \ f \rangle^{\mathrm{reg}} \ = \ - c_F(m, w)(\varphi_{\mu}) \end{equation} \begin{proof} If $m \notin Q(\mu) + \Z$, then both sides of \eqref{eqn:PRegmPos} are easily seen to vanish; we assume that $m \in Q(\mu) + \Z$ from now on. We proceed by examining the various pieces appearing in \Cref{prop:poincarereg}. Starting with the truncated Poincar\'e series \[ P_{m, w, \mu}(\tau) \ := \ \frac{1}{4} \, \sum_{ \tilde \gamma \in \widetilde{\Gamma}_\infty \backslash \widetilde{\Gamma}} \left( \sigma_{w}(\tau) \, e^{-2 \pi i m \tau }\, \varphi_{\mu} \right) \big\vert_{k} [\tilde \gamma], \] note that for any fixed $T$, the restriction of $P_{m, w, \mu}(\tau)$ to the compact set $\mathcal{F}_T$ is a finite sum, and so \begin{align*} \int_{\mathcal{F}_T} \, P_{m, w, \mu}(\tau) \, f(\tau) \, d \mu(\tau) \ =& \ \frac14 \, \int_{\mathcal{F}_T} \sum_{ \tilde \gamma \in \widetilde{\Gamma}_\infty \backslash \widetilde{\Gamma}} \left( \sigma_{w}(\tau) \, e^{-2 \pi i m \tau }\, \varphi_{\mu} \right) \big\vert_{k} [\tilde \gamma] \, f(\tau) \ d \mu(\tau) \\ =& \ \frac14 \, \sum_{ \tilde \gamma \in \widetilde{\Gamma}_\infty \backslash \widetilde{\Gamma}} \int_{\gamma \cdot \mathcal{F}_T} \, \sigma_{w}(\tau) \, e^{-2 \pi i m \tau } \, f(\tau) (\varphi_{\mu}) \, d \mu(\tau). \\ =& \ \int_{\mathcal{F}_T} \sigma_{w}(\tau) \, e^{-2 \pi i m \tau } \, f(\tau)(\varphi_{\mu}) \, d \mu(\tau) \\ &\qquad \qquad + \ \frac14 \sum_{ \substack{ \tilde \gamma \in \widetilde{\Gamma}_\infty \backslash \widetilde{\Gamma} \\ \tilde\gamma \notin A}} \int_{\gamma \cdot \mathcal{F}_T} \, \sigma_{w}(\tau) \, e^{-2 \pi i m \tau } \, f(\tau) (\varphi_{\mu}) \, d \mu(\tau), \end{align*} where in the last line, we separate out the contributions from the subgroup \[ \mathcal{A} := \{ (\mathtt{Id}, 1) , \ (\mathtt{Id}, -1), \, (-\mathtt{Id}, i), \, ( - \mathtt{Id}, -i) \}, \] which acts trivially on $\uhp$, from the rest. For any coset $\tilde\gamma \in \widetilde{\Gamma}_\infty \backslash \widetilde{\Gamma}$ with $\tilde \gamma \notin \mathcal{A}$ and $\tau \in \uhp$, \[ \Im(\gamma \tau) \ = \ \frac{\Im(\tau)}{|c\tau + d|^2} \leq \frac{1}{\Im(\tau)}.\] It follows that when $T>\max(w,1/w)$, the intersection of the translates of $\mathcal{F}_T$ with the region where the cutoff function $\sigma_{w}(\tau)$ is nonzero fills out a rectangle: \begin{equation*} \left(\bigcup_{\gamma \in \widetilde{\Gamma}_\infty \backslash \widetilde{\Gamma}} \gamma(\mathcal{F}_T) \right) \ \bigcap \ \{ \Im(\tau) \geq w \} \ = \ \{ \Re(\tau) \in \left[ -1/2 , 1/2 \right], \ \Im(\tau) \in [w,T] \} \ =: \mathcal{R}_w^T. \end{equation*} Therefore, for all $T>\max(w,1/w)$, \begin{equation} \label{eqn:intPFT} \int_{\mathcal{F}_T} \, P_{m, w, \mu}(\tau) \, f(\tau) \, d \mu(\tau) \ = \ \int_{\mathcal{R}_w^T} e^{-2 \pi i m \tau} \, f(\tau)(\varphi_{\mu}) \, d\mu(\tau). \end{equation} We calculate the right hand side using a standard Stokes' theorem argument: since $\mathbf{L}(F) = f$, \begin{align*} d( e^{-2 \pi i m \tau} F \, d\tau) \ = \ - e^{-2 \pi i m \tau} \cdot \frac{\partial}{\partial \overline \tau} \, F \, d \tau \wedge d \overline\tau \ =& \ - e^{-2 \pi i m \tau} \, \mathbf{L}(F) \, d \mu(\tau) \\ =& \ - e^{-2 \pi i m \tau} \, f \, d \mu(\tau). \end{align*} Insert this expression into \eqref{eqn:intPFT} and use Stokes' theorem to integrate over the boundary $\partial \mathcal{R}_w^T$: the `vertical' segments cancel on account of the invariance of the integrand under $\tau \mapsto \tau+1$, while the `horizontal' segments give the Fourier coefficients of $F$, i.e. \begin{align*} \int_{\mathcal{F}_T} \, P_{m, w, \mu}(\tau) \, f(\tau) \, d \mu(\tau) \ =& \ - \int_{\partial \mathcal{R}_w^T} e^{-2 \pi i m \tau} \, F(\tau)(\varphi_{\mu}) \, d\tau \\ =& \ c_F(m,T)(\varphi_{\mu}) \ - \ c_F(m,w) (\varphi_{\mu}) . \label{eqn:TPunfoldfinal} \end{align*} Similarly, \begin{align} \int_{\mathcal{F}_T} F_{m,\mu}(\tau) \, f(\tau) \, d \mu(\tau) \ =& \ - \int_{\mathcal{F}_T} F_{m,\mu}(\tau) \, d\left( F(\tau) \,d \tau \right) \notag \\ =& \ \int_{\mathcal{F}_T} \, F \, d \left( F_{m,\mu}(\tau) \, d \tau \right) \ - \int_{\partial \mathcal{F}_T} F_{m, \mu}(\tau) \, F(\tau) \, d \tau. \end{align} We show the limit as $T \to \infty$ of the first integral vanishes: since $F_{m,\mu} \in H_{2 - \kappa}(\rho_L)$, it follows that $\xi(F_{m,\mu}) \in S_{\kappa}(\rho_L^{\vee})$, cf.\ \Cref{sec:relat-non-holom}. Therefore \begin{align*} \lim_{T \to \infty} \int_{\mathcal{F}_T} \, F \, d \left( F_{m,\mu}(\tau) \, d \tau \right) \ =& \ \lim_{T \to \infty} \int_{\mathcal{F}_T} F \, \overline{\xi(F_{m,\mu})} \, v^{\kappa} \, d \mu(\tau) \ = \ \langle F, \, \xi(F_{m,\mu}) \rangle_{\mathrm{Pet}}^{\mathrm{reg}} \ = \ 0 \end{align*} since $F$ was taken to be orthogonal to cusp forms. For the second integral, the modularity of the integrand implies that only the upper line segment of $\partial \mathcal{F}_{T}$ contributes; inserting the Fourier expansions of $F$ and of $F_{m,\mu}$, as in \eqref{eqn:FmFourierExp}, yields \[ - \int_{\partial \mathcal{F}_T} F_{m, \mu}(\tau) \, F(\tau) \, d \tau \ = \ \sum_{n \in \Q} b_{m,\mu}(n,T) \cdot c_F(-n, T) , \] which, by \Cref{lem:sumneq0coeffs} below, satisfies the asymptotic \[ \sum_{n} b_{m,\mu}(n,T) \cdot c_F(-n, T) \ = \ \sum_{n \leq 0} b^+_{m,\mu}(n) \cdot c_F(-n,T) \ + \ \sum_{n>0} b^+_{m,\mu}(n) \cdot \kappa_F(-n) \ + \ o(1) \] as $T \to \infty$. Putting these pieces back into \Cref{prop:poincarereg} gives \begin{align*} \langle P_{m, w, \mu}- F_{m,\mu} , \ f \rangle^{\mathrm{reg}} \ &= - c_F(m,w)(\varphi_{\mu}) \ - \ \sum_{n>0} b^+_{m,\mu}(n) \cdot \kappa_{F}(-n) \\ &\phantom{=} + \lim_{T \to \infty} \bigg[ c_F(m,T)(\varphi_{\mu}) - \sum_{n\leq 0} b^+_{m,\mu}(n) \cdot c_F(-n,T) \\ &\phantom{= + \lim_{T \to \infty}} + \tilde{b}_{m,\mu}(0) \cdot \left( \ \int_1^T c_f(0,v) \, v^{-2} dv \right) \bigg] \\ &\phantom{=} - \CT_{s=0} \, \tilde b_{m,\mu}(0) \int_1^{\infty} \, c_f(0,v) \, v^{-2-s}\, dv, \end{align*} where \begin{align*} \tilde b_{m,\mu}(0) \cdot c_f(0,v) \ =& \ \left( b_{m,\mu}(0) \ - \ \delta_{m,0}\, \tilde\varphi_\mu \right) \cdot c_f(0,v) \\ =& \ b_{m,\mu}(0) \cdot c_f(0,v) \ - \ \delta_{m,0} \, c_f(0,v)(\varphi_{\mu}). \end{align*} Furthermore, one may easily verify, via \eqref{eqn:cFlowering} and \Cref{def:modgrowthforms}(iii), that the relation $\mathbf{L}(F) = f$ implies \begin{align*} c_F(0,T) \ - \ \int_1^T c_f(0,v) \, v^{-2} dv & \ + \ \CT_{s=0} \int_1^{\infty} \, c_f(0,v) \, v^{-2-s} \ dv \ \\ =& \ c_F(0,1) \ + \ \CT_{s=0} \int_1^{\infty} \, c_f(0,v) \, v^{-2-s} \ dv \\ =& \ \kappa_F(0) \end{align*} and so \begin{align} \langle P_{m, w, \mu} - F_{m,\mu} , \ f \rangle^{\mathrm{reg}} \ = &- c_F(m,w)(\varphi_{\mu}) - \sum_{n \geq 0} b^+_{m,\mu}(n) \cdot \kappa_F(-n) \notag \\ &+ \lim_{T \to \infty} \bigg[ c_F(m,T)(\varphi_{\mu}) - \sum_{n<0} b^+_{m,\mu}(n) \cdot c_F(-n,T) \label{eqn:LSharpFourierComp1}\\ &\phantom{+ \lim_{T \to \infty} \bigg[} - \delta_{m,0}\, (c_F(m,T)(\varphi_{\mu}) - \kappa_F(0)(\varphi_{\mu}))\bigg]. \notag \end{align} Recall that the choice of $F$ in \Cref{prop:uniquepreimage} required \[ P(F) = \sum_{n\leq 0} \kappa_F(n) q^n \in \mathrm{im}(\eta) \] where $\eta$ was a choice of a section in \eqref{eqn:etaSplitting}. Thus the normalization imposed on $F_{m,\mu}$ in \Cref{lem:uniqueHPSeries} (ii) implies that \[ \sum_{n \geq 0} b^+_{m,\mu}(n) \cdot \kappa_F(-n) \ = \ \kappa_F(m)(\varphi_{\mu}); \] note that this is simply $0$ if $m> 0$. On the othe hand, the shape of the principal part of $F_{m,\mu}$ imposed in \Cref{lem:uniqueHPSeries}(i) and the invariance of $F$ under the action of $\mathbf Z \in \widetilde{\Gamma}$ imply that \[ \sum_{n<0} \, b^+_{m,\mu}(n) \, c_F(-n,T) \ = \ \begin{cases} c_F(m,T)(\varphi_{\mu} ), & \text{if } m > 0, \\ 0, & \text{if } m \leq 0. \end{cases} \] Therefore, when $m>0$ \[ \lim_{T \to \infty} \left[ c_F(m,T)(\varphi_{\mu}) - \sum_{n<0} b^+_{m,\mu}(n) \cdot c_F(-n,T) \right] \ = \ \lim_{T \to \infty} \left[ c_F(m,T)(\varphi_{\mu}) - c_F(m,T)(\varphi_{\mu}) \right] \ = \ 0 \] and when $m \leq 0$, the limit in \eqref{eqn:LSharpFourierComp1} equals \begin{align*} \lim_{T \to \infty} \Big[ c_F(m,T)(\varphi_{\mu}) - \delta_{m,0}\, (c_F(m,T)(\varphi_{\mu}) - \kappa_F(0)(\varphi_{\mu})) \Big] &= \lim_{T \to \infty} \begin{cases} c_F(m,T)(\varphi_{\mu}), & \text{if } m < 0, \\ \kappa_F(0)(\varphi_{\mu}) , & \text{ if } m=0 \end{cases} \\ &= \kappa_F(m)(\varphi_{\mu}); \end{align*} Thus, for all $m$, the limit in \eqref{eqn:LSharpFourierComp1} is equal to \[ \sum_{n \geq 0} b^+_{m,\mu}(n) \cdot \kappa_F(-n) \] and so \[ \langle P_{m, w, \mu} - F_{m,\mu} , \ f \rangle^{\mathrm{reg}} = - c_F(m,w)(\varphi_{\mu}), \] concluding the proof. \end{proof} \end{theorem} Extending the theorem to the $S(L)^{\vee} \otimes_{\C} S(L)$-valued Poincar\'e series $P_{m,v}$ and $F_m$ yields: \begin{corollary} \label{cor:vectorValLSec} For any $f \in \ALmod{\kappa - 2}(\rho_L^{\vee})$, the generating series \[ \sum_{ m \in\Q} \, \langle P_{m,v} - F_m , \, f \rangle^{\mathrm{reg}} \, q^m \] with $\tau = u+iv$ and $q = e^{2 \pi i \tau}$, is (the $q$-expansion of) an element of $A_{\kappa}^{!}(\rho_L^{\vee})$ . \end{corollary} It remains to prove the following lemma: \begin{lemma} \label{lem:sumneq0coeffs} Suppose \[G(\tau) = \sum_{m} c_G(m,v) \, q^m \in H_{2-\kappa}(\rho_L) \qquad \text{and} \qquad F(\tau) = \sum_m c_F(m,v) \, q^m \in A_{\kappa}^{!}(\rho_L^{\vee}) . \] Then \[ \sum_{n\in \Q} c_G(n,v) \cdot c_F(-n,v) \ = \ \sum_{n \leq 0} c^+_G(n) \cdot c_F(-n,v) \ + \ \sum_{n>0} c^+_G(n) \cdot \kappa_F(-n) \ + \ o(1) \qquad \text{ as } v \to \infty, \] where $G^+(\tau) = \sum c^+_G(n) q^n$ is the holomorphic part of $G$, cf.\ \Cref{sec:relat-non-holom}. Note that both sums appearing are finite sums. \begin{proof} We consider separately the terms $n> 0$ and $n \leq 0$ in the sum on the left hand side. Write $c_G(n,v) = c_G^+(n) + c_G^-(n,v)$ in terms of the decomposition $G= G^+ + G^-$. Recall, cf.\ \eqref{eqn:weakMaassDecomp}, that \[ c^-_G(n,v) \ = \ 0 \qquad \text{ for } n \geq 0. \] On one hand, we have the asymptotic $|c_G^+(n)| = O(e^{C \sqrt{n}})$ for $n > 0$, cf.\ \cite[Lemma 3.4]{brfugeom}. On the other hand, for $n > 0$, we have by \Cref{eqn:cFlowering} and the moderate growth of $\mathbf{L}(F)$ that \[ c_F(-n, v) \ - \ \kappa_F(-n) \ = \ O(e^{-2 \pi n v } v^{\ell} ). \] for some $\ell$. Thus \[ \sum_{n> 0} c_G(n,v) \cdot c_F(-n,v) \ =\ \sum_{n \geq 0} c^+_G(n,v) \cdot \kappa_F(-n) \ + \ o(1) \qquad \text{as } v \to \infty. \] Turning to the non-positive terms, we consider the contributions from $c^-_G(n,v)$, and write \begin{align} \left| \sum_{n\leq 0} c^-_G(n,v) \cdot c_{F}(-n,v) \right|^2 \ =& \ \left| \sum_{n\leq 0} \left( e^{-2\pi n v } \, c^-_G(n,v) \right) \cdot \left(e^{2 \pi n v} \, c_{F}(-n,v) \right) \right|^2 \notag \\ \leq& \ \left( \sum_{n\leq 0} \left| c^-_G(n,v) \, e^{-2 \pi n v} \right|^2\right) \cdot \left( \sum_{n \geq 0} \left| c_{F}(n,v) \, e^{-2 \pi n v} \right|^2\right). \label{eqn:negTermsParseval} \end{align} Note that the exponential growth condition implies that \[ G(\tau) \ - \ \sum_{n \leq 0} c_G^+(n) \, q^n \ = \ \sum_{n \leq 0} c^-_G(n) \, q^n \ + \ \sum_{n>0} c_G(n) \, q^n \ = \ O(e^{-Cv}) \] so, by Parseval's identity, \begin{align*} \sum_{n\leq 0} \left| c^-_G(n,v) \, e^{-2 \pi n v} \right|^2 \ \leq& \ \sum_{n\leq 0} \left| c^-_G(n,v) \, e^{-2 \pi n v} \right|^2 + \sum_{n>0} \left| c_G(n,v) \, e^{-2 \pi n v} \right|^2 \\ =& \ \int_{-1/2}^{1/2} \left| G(u+iv) - \ \sum_{n \leq 0} c_G^+(n) e^{- 2\pi n v} e^{2 \pi i u} \right|^2 \ du \ = \ O(e^{-Cv}). \end{align*} For the second sum in \eqref{eqn:negTermsParseval}, recall \[ c_F(n,T) \ = \ c_F(n,1) \ + \ \int_1^T c_f(n,v) \, \frac{dv}{v^2} \] where $f = \mathbf{L}(F)$ has at worst polynomial growth at $\infty$. Observe that for any $T>1$ \begin{align*} \sum_{n \geq 0} \left| c_{F}(n,1) \, e^{-2 \pi n T} \right|^2 \ \leq \ \sum_{n\geq0 } \left| c_{F}(n,1) \, e^{-2 \pi n } \right|^2 \ \leq \ \int_{-1/2}^{1/2} \, \left| F(u+i) \right|^2 \, du \ = \ O(1) \end{align*} by Parseval's identity, and \begin{align*} \sum_{n > 0} \left| \int_1^T c_{f}(n,v) \frac{dv}{v^2} \cdot e^{-2 \pi n T} \right|^2 \ \leq& \ \sum_{n > 0} \left| \int_1^T c_{f}(n,v) \, e^{- 2 \pi n v} \frac{dv}{v^2} \right|^2 \\ \leq& \ \int_1^T \, \int_{-1/2}^{1/2} \, \left| f(u+iv) \right|^2 v^{-2}\, du \, dv \ = \ O(T^{\ell}) \end{align*} for some $\ell$. Thus \[ \sum_{n\leq 0} c^-_G(n,v) \cdot c_{F}(-n,v) \ = \ o(1) ,\] proving the lemma. \end{proof} \end{lemma} \section{Green functions and Archimedean generating series} \label{sec:arch} In this section, we specialize to the case where $V$ is a quadratic space of signature $(p,2)$. Fix an even integral lattice $L \subset V$ and let $L'$ denote the dual lattice. Attached to $V$ is the \emph{symmetric space} \[ \mathbb{D}^o(V) := \{ z \subset V(\R) \text{ an oriented negative definite plane}. \} \] which is a model for the Hermitian symmetric domain attached to $SO(V)$; we use the superscript `$o$' to emphasize the connection to the orthogonal group. The map \begin{align*} \{ \zeta \in \mathbb P(V(\C)) \ | \ (\zeta, \zeta) = 0, \, (\zeta, \overline \zeta) < 0 \} \ \overset{\sim}{\longrightarrow}& \ \mathbb{D}^o(V) \\ \zeta \ \mapsto& \ z = \mathtt{span}_{\R}( \Re(\zeta), \, \Im(\zeta)) \end{align*} identifies $\mathbb{D}^o(V)$ as a submanifold of $\mathbb P(V(\C))$, and hence $\mathbb{D}^o(V)$ acquires the structure of a complex manifold. For a plane $z \in \mathbb{D}^o(V)$ and a vector $x \in V(\R)$, we define \[ R^o(x, z) \ = \ - 2 \, Q( \proj_z(x) ) \ \geq 0 \ , \] where $\proj_z(x)$ is the orthogonal projection of $x$ onto $z$; note that the quadratic form \[ Q_z(x) \ := \ R^o(x,z) + Q(x) \] is positive definite. When $x$ has positive norm, let $Z(x)$ denote the complex codimension 1 submanifold \[ Z(x) := \{ z \in \mathbb{D}^o(V) \ | \ z \perp x \} \ = \ \{ z \in \mathbb{D}^o(V) \ | \ R^o(x,z) = 0 \}. \] For convenience, if the norm of $x$ is non-positive, set $Z(x) = \emptyset$. If $m \in \Q$ and $\varphi \in S(L)$, define the \emph{special cycle} $Z(m , \varphi)$ to be the formal sum \[ Z(m, \varphi) \ := \ \sum_{\substack{x \in L' \\ Q(x) = m }} \, \varphi(x) \, Z(x). \] This sum is locally finite, in the sense that only finitely many $Z(x)$'s appearing in the sum will intersect a given compact subset of $\mathbb{D}^o(V)$. For an appropriate arithmetic subgroup $\Gamma \subset O(V)$, the quotient $[ \Gamma \backslash Z(m, \varphi)]$ defines a (rational) algebraic cycle on the Shimura variety $[\Gamma \backslash \mathbb{D}^o(V)]$, a point of view that we will take up in the next section. We say that a current $[\lie{g}] \in \D^{0,0}(\mathbb{D}^o(V))$ is a \emph{Green function} for the cycle $Z(m,\varphi)$ if \[ \ddc \, [\lie g] \ + \ \delta_{Z(m,\varphi)} \] is represented by a smooth $(1,1)$-form. \subsection{Kudla's Green function as a regularized theta lift} \label{sec:kg-theta} Let \[ \beta(r) \ := \ \int_r^{\infty} \, e^{-t} \frac {dt}{t} \ = \ \int_1^{\infty} e^{-rt} \, \frac{dt}{t} , \qquad \qquad \text{for } r>0, \] and note that $\beta(r) + \log(r) = O(1)$ as $r \to 0$. \begin{definition} For $m \in \Q$ with $m \neq 0$, $\varphi \in S(L)$ and a real parameter $w \in \R_{>0}$, define \emph{Kudla's Green function} as \[ \KGr_o(m, w, \varphi)(z) \ := \ \sum_{ \substack{x \in L' \\ Q(x) = m }} \, \varphi(x) \, \ \beta \big( 2 \pi w R^o (x, z)\big), \qquad \text{ for } z \in \mathbb{D}^o(V) \setminus Z(m, \varphi) \] which is a Green function for $Z(m, \varphi)$, cf.\ \cite{kudla-annals-central-der,kudla-integrals}; when $m<0$, this means that $\KGr_o(m, w, \varphi)$ is smooth. We also define \[ \KGr_o(0, w, \varphi)(z) \ := \ \sum_{ \substack{x \in L' \\ Q(x) = 0 \\ x \neq 0}} \, \varphi(x) \, \ \beta \big( 2 \pi w R^o (x, z)\big). \] \end{definition} For convenience, set \[ \KGr_o(m, w, \mu) \ := \ \KGr_o(m,w,\varphi_{\mu}) \qquad \text{and} \qquad Z(m,\mu) \ : = \ Z(m, \varphi_{\mu}) \] for any $\mu \in L'/L$. Our first aim is another construction of this Green function in terms of the \emph{Siegel theta function} \[ \Theta_L \colon \uhp \ \times \ \mathbb{D}^o(V) \ \to \ S(L)^{\vee} , \] which is defined by the formula \begin{align} \label{eq:siegeltheta} \Theta_L(\tau,z)(\varphi) \ :=& \ v \, \sum_{\lambda \in L'} \, \varphi(\lambda)\, e^{2 \pi i \, \left(Q(\proj_{z^{\perp}}(\lambda)) \, \tau \ + \ Q( \proj_z(\lambda))\, \bar{\tau} \right) } \\ =& \ v \, \sum_{m \in \Q} \, \left( \sum_{\substack{\lambda \in L' \\ Q(\lambda) = m}} \, \varphi(\lambda) \, e^{- 2 \pi v R^o(\lambda, z)} \right) \, q^m. \notag \end{align} For a fixed $z$, it is a standard fact that $\Theta_L(\tau,z)$ transforms as a modular form of weight $p/2-1$ with respect to the Weil representation, and straightforward estimates imply that $\Theta_L(\tau, z)$ is $O(v)$ as $v \to \infty$ and satisfies \Cref{def:modgrowthforms}(iii), which implies $\Theta(\tau,z) \in \ALmod{p/2-1}(\rho_L)$. For $\mu \in L'/L$, $m \in Q(\mu) + \Z$, and $w \in \R_{>0}$, consider the regularized pairing \begin{equation} \label{eq:regtheta-jump} \langle P_{m, w, \mu} , \ \Theta_L(\cdot, z) \rangle^{\mathrm{reg}} \ = \ \CT_{s=0} \left( \lim_{T \to \infty}\int_{\mathcal{F}_T} \, P_{m, w, \mu}(\tau) \, \Theta_L(\tau,z) \, v^{-s}\, d\mu(\tau)\right), \end{equation} where $P_{m, w, \mu}$ is the truncated Poincar\'{e} series of weight $k = 1-p/2$ and we view \eqref{eq:regtheta-jump} as a function in $z \in \mathbb{D}^o(V)$. \begin{lemma} \label{lem:xireg} The regularized integral \eqref{eq:regtheta-jump} exists for each $ z \in \mathbb{D}^o(V)$ and \begin{equation} \label{eq:Xireg} \langle P_{m, w, \mu} , \ \Theta_L(\cdot, z) \rangle^{\mathrm{reg}} = \lim_{T \to \infty} \left(\int_{\mathcal{F}_T} P_{m, w, \mu}(\tau) \, \Theta_L(\tau,z) \, d\mu(\tau) \ - \ S_{m,\mu}(z) \, \log(T)\right), \end{equation} where $S_{m,\mu}(z) = \#\{ \lambda \in \mu +L \mid\ Q(\lambda) = m \text{ and } R^o(\lambda,z) = 0\}$. \begin{proof} Let $w_0 = \max(w, 1/w)$ so that \[ P_{m, w, \mu}(\tau) = q^{-m} \, \tilde\varphi_{\mu} = \frac{1}{2} q^{-m} \, (\varphi_{\mu} +\varphi_{-\mu}) \] whenever $\Im(\tau) > w_0$. Recall we assume that the signature of $V$ is $(p,2)$ and that $k = p/2 - 1$, so $\tilde\varphi = \frac12(\varphi_{\mu} + \varphi_{-\mu})$, cf.\ \eqref{eq:tildephi}. Thus, abbreviating $P = P_{m, w, \mu}$, \begin{align*} \CT_{s=0} \, \lim_{T \to \infty} \,& \int_{\mathcal{F}_T} \, P(\tau) \, \Theta_L(\tau,z) \, v^{-s} \, d \mu(\tau) \\ &= \ \CT_{s=0} \, \int_{\mathcal{F}_{w_0}} \, P(\tau) \, \Theta_L(\tau,z) \, v^{-s} \, d \mu(\tau) \ + \ \CT_{s=0} \, \lim_{T \to \infty} \, \int_{\mathcal{F}_T - \mathcal{F}_{w_0}} P(\tau) \, \Theta_L(\tau,z) \, v^{-s} \, d \mu(\tau) \end{align*} The first integral defines a holomorphic function in $\C$, and contributes its value at $s=0$ to the regularized integral. For the second integral, observe that $\Theta_L(\tau, z)(\varphi_{\mu}) = \Theta_L(\tau,z)(\varphi_{-\mu})$ and substitute the Fourier expansion of $\Theta(\tau, z)(\varphi_{\mu})$ to obtain \begin{align*} \CT_{s=0} \, \lim_{T \to \infty} \, \int_{\mathcal{F}_T - \mathcal{F}_{w_0}} P(\tau)\, & \Theta_L(\tau,z) \, v^{-s} \, d \mu(\tau) \\ =& \ \CT_{s=0} \, \lim_{T \to \infty} \int_{w_0}^T \, \sum_{\substack{ \lambda \in \mu + L \\ Q(\lambda) = m }} e^{-2 \pi v R^o(\lambda,z)} \, v^{-s-1} \, d v \\ =& \ \CT_{s=0} \, \lim_{T \to \infty} \int_{w_0}^T \, \left( \sum_{\substack{ \lambda \in \mu + L \\ Q(\lambda) = m \\ R^o(\lambda,z) \neq 0 }} e^{-2 \pi v R^o(\lambda,z)} + S_{m,\mu}(z) \right) \, v^{-s-1} \, d v \end{align*} The sum over $\{R^o(\lambda,z) \neq 0\}$ is $O(e^{-Cv})$ and so the corresponding integral is holomorphic in $s$ for all $s \in \C$; it therefore contributes its value at $s=0$ to the regularized integral. Thus \begin{align} \CT_{s=0} \, \lim_{T \to \infty} \, & \int_{\mathcal{F}_T - \mathcal{F}_{w_0}} P(\tau)\, \Theta_L(\tau,z) \, v^{-s} \, d \mu(\tau) \notag \\ =& \ \lim_{T \to \infty} \int_{w_0}^T \, \sum_{\substack{ \lambda \in \mu + L \\ Q(\lambda) = m \\ R^o(\lambda,z) \neq 0 }} e^{-2 \pi v R^o(\lambda,z)} \, v^{-1} \, d v \ + \ S_{m,\mu}(z) \cdot \CT_{s=0} \, \lim_{T \to \infty} \int_{w_0}^T v^{-s-1} \, dv . \label{eqn:PThetaRegAlt} \end{align} Since \[ \CT_{s=0} \, \lim_{T \to \infty} \int_{w_0}^T v^{-s-1} \, dv \ = \ \CT_{s=0} \, \lim_{T \to \infty} \frac{T^{-s} - w_0^{-s}}{-s} \ = \ - \log(w_0) , \] we may continue \begin{align*} \eqref{eqn:PThetaRegAlt} \, =& \ \lim_{T \to \infty} \int_{w_0}^T \, \sum_{\substack{ \lambda \in \mu + L \\ Q(\lambda) = m \\ R^o(\lambda,z) \neq 0 }} e^{-2 \pi v R^o(\lambda,z)} \, v^{-1} \, d v \ - S_{m,\mu}(z) \cdot \log w_0 \\ =& \ \lim_{T \to \infty} \int_{w_0}^T \, \left( \sum_{\substack{ \lambda \in \mu + L \\ Q(\lambda) = m \\ R^o(\lambda,z) \neq 0 }} e^{-2 \pi v R^o(\lambda,z)} + S_{m,\mu}(z) \right) v^{-1} \, d v \ - S_{m,\mu}(z) \cdot \log T \\ =& \, \lim_{T\to\infty} \, \int_{\mathcal{F}_T - \mathcal{F}_{w_0}} \, P(\tau) \, \Theta_L(\tau) d \mu(\tau) \ - \ S_{m,\mu}(z) \, \log T. \end{align*} The lemma follows immediately. \end{proof} \end{lemma} \begin{theorem} \label{thm:Xitheta} If $z \in \mathbb{D}^o(V) \setminus Z(m,\varphi_{\mu})$ and $m \neq 0$, then \[ \KGr_o(m, w, \mu)(z) = \langle P_{m, w, \mu} , \ \Theta_L(\cdot, z) \rangle^{\mathrm{reg}}. \] In particular, $\langle P_{m, w, \mu} , \ \Theta_L(\cdot, z) \rangle^{\mathrm{reg}}$ provides a (discontinuous!) extension of $\KGr_o(m, w, \mu)$ to all $ z \in \mathbb{D}^o(V)$. Similarly, \[ \KGr_o(0, \mu, w)(z) \ = \langle P_{0,\mu,w}, \ \Theta(\cdot, z) \rangle^{\mathrm{reg}} + \delta_{\mu,0}\, \log(w). \] \begin{proof} First consider the case $m \neq 0$. Since $z \notin Z(m, {\mu})$, it follows that $S_{m,\mu}(z) = 0$, so \[ \langle P_{m, w, \mu}, \ \Theta_L(\cdot, z) \rangle^{\mathrm{reg}} = \lim_{T \to \infty} \int_{\mathcal{F}_T} P_{m, w, \mu}(\tau) \, \Theta_L(\tau,z) \, d \mu(\tau). \] Arguing as in the proof of \Cref{thm:MaassSection} to unfold the Poincar\'e series, see \eqref{eqn:intPFT}, \begin{align*} \lim_{T \to \infty} \int_{\mathcal{F}_T} P_{m, w, \mu}(\tau) \, \Theta(\tau,z) \, d \mu(\tau) \ =& \ \lim_{T \to \infty} \int_{\mathcal{R}_w^T} e^{-2 \pi i m \tau} \, \Theta_L(\tau,z)(\varphi_{\mu}) \, d\mu(\tau) \\ =& \ \lim_{T \to \infty} \int_w^T \, \sum_{ \substack{\lambda \in \mu+L \\ Q(\lambda) = m} } e^{-2 \pi v R^o(\lambda, z)} \, \frac{dv}v. \\ =& \ \sum_{\substack{\lambda \in L' \\ Q(\lambda) = m}} \, \varphi_{\mu}(\lambda) \, \beta(2 \pi w R^o(\lambda, z)) \ = \ \KGr_o(m, w, \mu )(z). \end{align*} The case $m=0$ follows from similar considerations. \end{proof} \end{theorem} The natural $S(L)^{\vee} \otimes S(L)$-valued version holds as well. Define \[ \KGr_o(m,w) \colon \mathbb{D}^o(V) \setminus \left( \bigcup_{\mu} \, Z(m,\mu) \right) \ \to \ S(L)^{\vee} , \qquad \KGr_o(m,w)(z)(\varphi) \ = \ \KGr_o(m, w, \varphi), \] which defines a Green function for the $S(L)^{\vee}$-valued cycle \[ Z(m) \colon \varphi \mapsto Z(m,\varphi). \] Upon extending $S_{m,\mu}(z)$ to a functional $S_m(z) \in S(L)^{\vee} $ by linearity, the regularized theta lift \[ \langle P_{m,w}, \ \Theta_L(\cdot, z) \rangle^{\mathrm{reg}} = \lim_{T \to \infty} \left(\int_{\mathcal{F}_T} P_{m,w}(\tau) \, \Theta_L(\tau,z) \, d\mu(\tau) \ - \ S_{m}(z) \, \log(T)\right) \] gives an extension of $\KGr_o(m,w)$ to all $z \in \mathbb{D}^o(V)$ when $m \neq 0$; similarly, \[ \langle P_{0,w} , \ \Theta_L(\cdot, z) \rangle^{\mathrm{reg}} + \log w \, \varphi_0^{\vee} \] gives an extension of $\KGr_o(0,w)$. \subsection{Bruinier's Green functions and the Archimedean generating series} \label{sec:relat-borch-lift} The second family of Green functions arise as regularized theta lifts of the harmonic Maa\ss{} forms $F_{m,\varphi}$ of weight $k = 1-p/2$: for $m \in \Q$ and $\varphi\in S(L)$, define \emph{Bruinier's Green function} \[ \BGrO{m,\varphi}(z) := \ \langle F_{m, \varphi} , \, \Theta(\cdot, z) \rangle^{\mathrm{reg}}. \] By analyzing the singularities of this function, as in \cite[Chapter 2]{brhabil}, one finds that it defines a Green function for the cycle $Z(m,\varphi)$; this construction generalizes that of \cite{boautgra}, where weakly holomorphic forms were used. Note that we are extending the definition to the case that $m \leq 0$, where $\BGrO{m,\varphi}$ is zero for all but finitely many $m \leq 0$ and is moreover a smooth function in this case, i.e. a Green function for the zero cycle. As usual, there is an $S(L)^{\vee}$-valued version \[ \BGrO{m}(z) \colon \varphi \mapsto \BGrO{m, \varphi}(z), \] defining an $S(L)^{\vee}$-valued Green function for $Z(m)$. The statement analogous to \Cref{lem:xireg} holds for $\BGrO{m,\mu}$, and can be proved in much the same manner; see also \cite[Lemma 4.5]{bryfaltings} and \cite[Lemma 2.19]{schofer} for the corresponding statement at a CM point. \begin{lemma} \label{lem:Breg} The regularized integral $\BGrO{m}(z) = \langle F_m, \Theta_L(\cdot, z) \rangle^{\mathrm{reg}}$ exists for all $z \in \mathbb{D}^o(V)$, and \begin{equation} \label{eq:Breg} \BGrO{m}(z) = \lim_{T \to \infty} \left(\int_{\mathcal{F}_T} F_{m}(\tau)\, \Theta_L(\tau,z) \, d\mu(\tau) \ - \ [S_{m}(z)-\delta_{m,0}\ \varphi_0^{\vee} \ + \ \varphi_0^{\vee} \cdot c_{F_m}(0)] \log(T)\right). \end{equation} Here $c_{F_m}(0) \in S(L)^{\vee} \otimes_{\C} S(L)$ is the zeroth Fourier coefficient of $F_m$, so that \[ \varphi_0^{\vee} \cdot c_{F_m}(0) \in S(L)^{\vee} \qquad \text{ is the functional } \qquad \varphi \ \mapsto \ c_{F_{m,\varphi}}(0)(0). \] \qed \end{lemma} \begin{corollary} \label{cor:ArchDiffRegLift} For each $m \in \Q$ and parameter $v\in \R_{>0}$, the function \[ \langle P_{m,v}, \Theta(\cdot,z) \rangle^{\mathrm{reg}} - \langle F_{m}, \Theta(\cdot,z) \rangle^{\mathrm{reg}} \] extends to a smooth function on $\mathbb{D}^o(V)$, given by \begin{align*} \langle &P_{m,v} - F_{m}, \Theta(\cdot,z) \rangle^{\mathrm{reg}} \\ &= \ \lim_{T \to \infty} \left(\int_{\mathcal{F}_T} \left( P_{m,v}(\tau') - F_{m}(\tau')\right) \Theta(\tau',z) \, d\mu(\tau') \ -(\delta_{m,0}\ \varphi_0^{\vee} - \ \varphi_0^{\vee} \cdot c_{F_m}(0)) \, \log(T)\right). \end{align*} \begin{proof} Up to a constant (when $m=0$), $\langle P_{m,v}, \Theta(\cdot,z) \rangle^{\mathrm{reg}} - \langle F_{m}, \Theta(\cdot,z) \rangle^{\mathrm{reg}}$ equals the difference $\KGr_o(m,v) - \BGrO{m}$ by \Cref{thm:Xitheta}, which is a Green function for the zero cycle. Hence, it is smooth by regularity for the elliptic differential $\ddc$. The given expression for the difference follows from \Cref{lem:xireg} and \Cref{lem:Breg}. \end{proof} \end{corollary} Our next aim is to identify the differences of these Green functions as Fourier coefficients of a (non-holomorphic) modular form. \begin{theorem} \label{thm:OrthModGenSeries} For each $z \in \mathbb D^o(V)$, the $q$-series \[ - \log v \, \varphi_0^{\vee} \ + \ \sum_{m } \, (\KGr_o(m,v) - \BGrO{m})(z) \, q^m \] is the $q$-expansion of an element of $A_{\kappa}^{!}(\rho_L^{\vee})$ of weight $\kappa = p/2+1$. Here $q = e^{2 \pi i \tau}$ with $\tau = u + iv \in \uhp$. \begin{proof} By \Cref{thm:Xitheta} and the definition of $\BGrO{m}$, this generating series is \[ \sum_{m} \langle P_{m,v} - F_m, \Theta_L(\cdot, z) \rangle^{\mathrm{reg}} \, q^m. \] Since $\Theta_L(\cdot,z) \in \ALmod{p/2-1}(\rho_L^{\vee})$, the result follows immediately from \Cref{cor:ArchDiffRegLift}. \end{proof} \end{theorem} \section{Arithmetic theta functions on unitary Shimura varieties} \label{sec:arithUnitary} In this section, we consider applications of our analytic calculations to the arithmetic geometry of unitary Shimura varieties. The two families of Green functions considered in the previous section turn out to be Green functions for special cycles on unitary Shimura varieties, which we will consider in this section. We then define \emph{arithmetic theta series} attached to each of the two families of Green functions, and show that the difference of these two series transforms as a modular form. We also prove that this latter form is orthogonal to cusp forms under the Petersson inner product; this can be viewed as a holomorphic projection formula. Finally, we show that pairing the difference against a certain `arithmetic volume form' gives the Fourier coefficients of derivatives of Eisenstein series, providing further evidence for Kudla's conjecture in this context. We also describe a refinement of a theorem of Bruinier-Howard-Yang on intersection numbers with CM cycles. Throughout, we fix an imaginary quadratic field ${\bm{k}}$ with ring of integers $o_{\bm{k}}$, and assume that the discriminant $d_{\bm{k}}$ is odd. Let $\partial_{\bm{k}}$ be the different, and fix a generator $\delta_{\bm{k}}$. The non-trivial Galois automorphism of ${\bm{k}}$ is denoted by $a \mapsto a'$. Fix once and for all an embedding $o_{\bm{k}} \hookrightarrow \C$, which allows us in particular to view $\Spec(\C)$ as an object in the category of $o_{\bm{k}}$-schemes; on those rare occasions in which we need to distinguish the two choices, we write $\C_{\sigma}$ for the field of complex numbers viewed as an $o_{\bm{k}}$-algebra by an embedding $\sigma \colon o_{\bm{k}} \to \C$. \subsection{Unitary Shimura varieties} \label{sec:UModProb} For any integer $n\geq 1$, consider the functor $\mathcal{M}^{\Kra} (n-1,1)$ over $\Spec o_{\bm{k}}$ defined by the following moduli problem: for any scheme $S$ over $o_{\bm{k}}$ with structure map $\tau_S \colon o_{\bm{k}} \to \mathcal O_S$, the $S$-points $\mathcal{M}^{\Kra}(n-1,1)(S)$ comprise the category \[ \mathcal M^{\Kra}(n-1,1) (S) \ = \ \{ \underline A = (A, i, \lambda, \lie{F}) \}, \] where \begin{enumerate} \item $A$ is an abelian scheme over $S$ of relative dimension $n$; \item $i \colon o_{\bm{k}} \to \End(A)$ is an $o_{\bm{k}}$-action; \item $\lambda$ is a principal polarization such that $\lambda \circ i(a) \ = \ i(a')^{\vee} \circ \lambda$ for all $a \in o_{\bm{k}}$; and \item (\emph{Kr\"amer's condition} \cite{kramer}) $\lie{F}$ is a locally free subsheaf of $\mathsf{Lie}(A) $ of rank $n-1$ such that for all $a \in o_{\bm{k}}$, the induced map $\mathsf{Lie}(i(a))$ agrees with $\tau_S(a) $ on $\lie{F}$, and with $\tau_S(a')$ on $\mathsf{Lie}(A) / \lie{F}$. \end{enumerate} This moduli problem is represented by a Deligne-Mumford stack, which we also denote by ${\mathcal{M}^{\Kra}(n-1,1)}$, which is regular, flat over $\Spec(o_{\bm{k}})$, and smooth over $\Spec o_{\bm{k}}[1/d_{\bm{k}}]$. \begin{remark} Replacing the condition (iv) above with the perhaps more familiar \emph{determinant condition} as in e.g.\ \cite[\S 2.1]{KRunn2} yields a space $\mathcal M^{\mathrm{naive}}(n-1,1)$ that is in general neither flat nor regular at primes dividing $d_{\bm{k}}$; thus, for the purposes of arithmetic intersection theory, Kr\"amer's model $\mathcal M^{\Kra}$ is more suitable. \end{remark} Similarly, we may consider the moduli space $\mathcal{M}(1,0)$ parametrizing principally polarized elliptic curves $E$ with complex multiplication by $o_{\bm{k}}$, where the action is normalized to coincide with the structural morphism on $\mathsf{Lie}(E)$. This stack is smooth and proper of relative dimension 0 over $\Spec(o_{\bm{k}})$ \cite[Proposition 2.1.2]{howard-unitary-2}. Finally, let \[ \mathcal{M} \ = \ \mathcal{M}(1,0) \times_{\Spec(o_{\bm{k}})} \mathcal{M}^{\Kra}(n-1, 1). \] One of the main results of \cite{howard-unitary-2} is the construction of a canonical toroidal compactification of $\mathcal{M}$, obtained by extending the moduli problem to generalized abelian varieties; its properties are summarized in the following proposition. \begin{proposition}[{\cite[Theorem A]{howard-unitary-2}}] The canonical toroidal compactification of $\mathcal M$ is a DM stack $\mathcal M^*$ that is regular of dimension $n$, proper and flat over $\Spec o_{\bm{k}}$, and which contains $\mathcal{M}$ as an open dense substack. Moreover, the boundary $\partial \mathcal{M}^* = \mathcal{M}^* \setminus \mathcal{M}$ is a divisor on $\mathcal{M}^*$. \end{proposition} The stack $\mathcal{M}$ admits a decomposition \begin{equation} \label{eqn:MDecomp} \mathcal{M} \ = \ \coprod_{[\mathcal{V}]} \ \mathcal{M}_\mathcal{V} \end{equation} where $[\mathcal{V}]$ runs over the (finite) set of isomorphism classes of Hermitian vector spaces over ${\bm{k}}$ of signature $(n-1,1)$ that contain a self-dual lattice, see \cite{KRunn2, bruinier-howard-yang-unitary}. More precisely, suppose $z \in \mathcal{M}(\C)$ corresponds to a pair of complex abelian varieties $(\underline E, \underline A)$, equipped with $o_{\bm{k}}$-actions and polarizations. These additional structures endow the homology groups $H_1(E(\C), \Q)$ and $H_1(A(\C),\Q)$ with ${\bm{k}}$-Hermitian forms. The component $\mathcal{M}_\mathcal{V}$ is then characterized by the property that for any complex point $z \in \mathcal{M}_\mathcal{V}(\C)$ corresponding to $(\underline E, \underline A)$, there is an isomorphism \[ \Hom_k \big( H_1(E(\C), \Q) , \, H_1(A(\C), \Q)\big) \ \simeq \ \mathcal{V} \] of Hermitian vector spaces. As a consequence of \eqref{eqn:MDecomp}, there is a decomposition \[ \mathcal{M}^* \ = \ \coprod_{\mathcal{V}} \mathcal{M}_\mathcal{V}^*, \] where $\mathcal{M}^*_\mathcal{V} $ is the Zariski closure of $\mathcal{M}_\mathcal{V} $ in $\mathcal{M}^*$. Next, we recall the complex uniformizations of $\mathcal{M}_\mathcal{V}$ and $\mathcal{M}_\mathcal{V}^*$. For any Hermitian space $\mathcal{V}$ of signature $(n-1,1)$, let \[ \mathbb D (\mathcal{V}) \ := \ \{ z \subset \mathcal{V} \otimes_{\Q} \R \ \text{ a negative definite } {\bm{k}} \otimes_{\Q} \R \text{-line}\}. \] This is a complex manifold of dimension $n-1$, and is a model for the locally symmetric space attached to $GU(\mathcal{V})$. If $\mathcal{L}_0$ and $\mathcal{L}_1$ are self-dual Hermitian $o_{\bm{k}}$-lattices of signature $(1,0)$ and $(n-1,1)$ respectively, and \[ \mathcal{V}_{\mathcal{L}_0, \mathcal{L}_1} \ := \ \Hom_{o_{\bm{k}}}(\mathcal{L}_0, \mathcal{L}_1)\otimes_{\Z} \Q, \] then the group \[ \Gamma_{\mathcal{L}_0,\mathcal{L}_1} \ := \ \Aut(\mathcal{L}_0) \times \Aut(\mathcal{L}_1) \] acts on $\mathcal{V}_{\mathcal{L}_0, \mathcal{L}_1}$ by unitary transformations, and hence on $\mathbb D(\mathcal{V}_{\mathcal{L}_0,\mathcal{L}_1})$. We obtain a \emph{complex uniformization} as in \cite[\S 3.2]{bruinier-howard-yang-unitary}, see also \cite[\S 3]{KRunn2}, \begin{equation} \label{eqn:MCpxUnif} \mathcal{M}_\mathcal{V}(\C) \ \simeq \ \coprod_{[\mathcal{L}_0, \mathcal{L}_1]} \left[ \Gamma_{\mathcal{L}_0,\mathcal{L}_1} \big\backslash \mathbb D(\mathcal{V}) \right] \end{equation} where the disjoint union is taken over isomorphism classes of pairs of lattices $\mathcal{L}_0$ and $\mathcal{L}_1$ such that $\mathcal{V}_{\mathcal{L}_0,\mathcal{L}_1} \simeq \mathcal{V}$. Implicitly in this statement, we have fixed a set of representatives $\{ (\mathcal{L}_0, \mathcal{L}_1) \}$ and for each such pair, we view \[ \Hom_{o_{{\bm{k}}}}(\mathcal{L}_0, \mathcal{L}_1) \ \subset \ \mathcal{V} \] as a lattice in $\mathcal{V}$ via a fixed isomorphism $\mathcal{V}_{\mathcal{L}_0,\mathcal{L}_1} \simeq \mathcal{V}$; in particular, the group $\Gamma_{\mathcal{L}_0,\mathcal{L}_1}$ acts on $\mathbb{D}(\mathcal{V})$ via this fixed isomorphism. \subsection{Kudla-Rapoport divisors} We now turn to the definition of the Kudla-Rapoport divisors, following \cite{KRunn2, bruinier-howard-yang-unitary}. Suppose $(\underline E, \underline A) \in \mathcal M(S)$ for some base scheme $S$; then the $o_{\bm{k}}$-module \[ L(E,A) \ := \ \Hom_{o_{\bm{k}},S}(E,A) \] admits an $o_{\bm{k}}$-Hermitian form, defined by the formula \begin{equation} \label{eqn:defHomHerm} (y_1,y_2) \ := \ \ \lambda_E^{-1} \circ y_2^{\vee} \circ \lambda_A \circ y_1 \ \in \ \End_{o_{\bm{k}}}(E) \ \stackrel{i_E^{-1}}{\simeq} o_{\bm{k}}. \end{equation} For each $m \in \Q_{>0}$ and ideal $\lie{a} \subset o_{\bm{k}} $ dividing $\partial_{\bm{k}}$, let $\mathcal{Z}(m, \lie a)$ be the Deligne-Mumford stack over $\Spec(o_{\bm{k}})$ representing the following moduli problem: for a scheme $S / \Spec(o_{\bm{k}})$, the points of $\mathcal{Z}(m, \lie a)$ comprise the category \[ \mathcal{Z}(m, \lie a)(S) \ = \ \left\{ (\underline E, \underline A, y) \right\}, \] where \begin{itemize} \item $\underline E = (E, i_E, \lambda_E) \in \mathcal M(1,0)(S)$ and $\underline A = (A, i_A, \lambda_A, \lie{F}) \in \mathcal M^{\mathrm{ Kra}}(n-1,1)(S) $ \item $y \in \lie a^{-1} \, L(E, A)$ with $(y,y) = m$, and such that \[ \Lie( i(\delta_k) \circ y ) \colon \Lie(E) \ \to \ \Lie(A) \] induces the trivial map $\Lie(E) \to \Lie(A) / \lie{F} $. \end{itemize} The forgetful map $\mathcal{Z}(m, \lie a) \to \mathcal{M}$ defines a divisor on $\mathcal{M}$, cf.\ \cite[\S 3.1]{bruinier-howard-yang-unitary}, which we denote by the same symbol $\mathcal{Z}(m, \lie a)$ in a hopefully mild act of violence against notation. Setting $\mathcal{Z}_\mathcal{V}(m, \lie a) = \mathcal{Z}(m, \lie a) \times_\mathcal{M} \mathcal{M}_\mathcal{V}$, there is a complex uniformization \begin{equation} \label{eqn:ZmCpxUnif} \mathcal{Z}_\mathcal{V}(m,\lie a)(\C) \ \simeq \ \coprod_{[\mathcal{L}_0], [\mathcal{L}_1] } \, \left[ \Gamma_{\mathcal{L}_0,\mathcal{L}_1} \Bigg\backslash \coprod_{ \substack{y \in \lie a^{-1} \Hom(\mathcal{L}_0,\mathcal{L}_1) \\ (y,y)=m }} \mathbb D_y \right]; \end{equation} here \[ \mathbb D_y := \{z \in \mathbb D( \mathcal{V}) \ |\ z \perp y \}. \] This uniformization is compatible with \eqref{eqn:MCpxUnif}, in the sense that the map $\mathcal{Z}_\mathcal{V}(m,\lie a)(\C) \to \mathcal{M}_\mathcal{V}(\C)$ is induced by the inclusions $\mathbb D_y \hookrightarrow \mathbb D(\mathcal{V})$. \begin{definition} Let $\mathcal{Z}^*(m, \lie{a})$ be the Zariski closure of $\mathcal{Z}(m, \lie{a})$ in $\mathcal{M}^*$, and \[ \mathcal{Z}_\mathcal{V}^*(m,\lie{a}) \ := \ \mathcal{Z}^*(m, \lie{a}) \times_{\mathcal{M}^*} \mathcal{M}^*_\mathcal{V} .\] \end{definition} It will be useful to take a `vector-valued' approach, as follows. Suppose $\mathcal{L} \subset \mathcal{V}$ is a Hermitian self-dual lattice, and $\mathcal{L}_{[\Z]}$ the $\Z$-lattice of signature $(2n-2,2)$ obtained by taking the trace of the Hermitian form. Then the $\Z$-dual $\mathcal{L}_{[\Z]}^{\vee}$ satisfies \[ \mathcal L_{[\Z]}^{\vee} = \ \diffinv{{\bm{k}}} \mathcal L \] and in particular there is an action of $\SL_2(\Z)$ on \[ S(\mathcal{L}) := S(\mathcal{L}_{[\Z]}) \ \cong \ \C[ \diffinv{{\bm{k}}} \mathcal L / \mathcal L] \] via the Weil representation, as in \Cref{sec:WeilRep}. For each $\overline{m} \in \Q / \Z$ and $ \lie a | \partial_k$, define \[ \varphi_{\overline{m},\lie a} \ = \ \text{characteristic function of } \left\{ x \in \mathfrak{a}^{-1} \mathcal{L} / \mathcal{L} , \, (x,x) \equiv \overline{m} \bmod \Z \right\} \in S(\mathcal{L}); \] note that $\varphi_{\overline{m}, \lie a} = 0$ if $m \notin d_{\bm{k}}^{-1} \Z / \Z$. By \cite[Remark 3.9]{bruinier-howard-yang-unitary}, the set $\{\varphi_{\overline{m},\lie a} \ | \ \delta_k \subset \lie a, \, \overline{m} \in N(\lie a)^{-1} \Z / \Z \}$ forms a basis for the space \begin{equation} \label{eqn:SDefn} \mathcal{S} \ := \ S(\mathcal{L})^{ \Aut(\diffinv{{\bm{k}}} \mathcal L / \mathcal L)} \end{equation} of $\Aut(\diffinv{{\bm{k}}} \mathcal{L} / \mathcal{L})$ invariant functions. The Weil representation commutes with $\Aut(\diffinv{{\bm{k}}} \mathcal L / \mathcal L)$, and so $\mathcal S$ inherits an action of $\SL_2(\Z)$; furthermore, this action depends only on $\mathcal{V}$ and not the choice of lattice $\mathcal{L}$, since any two self-dual lattices in $\mathcal{V}$ are in the same genus. We define \emph{vector-valued special cycles} \[ \mathcal{Z}_\mathcal{V}(m) \in \Div_{\C} \mathcal{M}_\mathcal{V} \otimes_{\C}\mathcal S^{\vee}\qquad \text{and} \qquad \mathcal{Z}^*_\mathcal{V}(m) \in \Div_{\C} \mathcal{M}^*_\mathcal{V} \otimes_{\C} \mathcal S^{\vee} \] by the formulas \begin{equation} \label{eqn:vectorValDivs} \mathcal{Z}_\mathcal{V}(m) \ = \ \sum_{\lie a | \partial_k} \, \mathcal{Z}_\mathcal{V}(m, \lie a) \otimes \varphi_{\overline{m},\lie a}^{\vee} \qquad \text{and} \qquad \mathcal{Z}_\mathcal{V}^*(m) \ = \ \sum_{\lie a | \partial_k} \, \mathcal{Z}_\mathcal{V}^*(m, \lie a) \otimes \varphi_{\overline{m}, \lie a}^{\vee}. \end{equation} For future use, we also define $\mathcal{Z}_\mathcal{V}(m) = \mathcal{Z}_\mathcal{V}^*(m) = 0$ whenever $m \leq 0$. \begin{remark} \label{rem:cycleorth}The complex cycles $\mathcal{Z}(m)(\C)$ are closely related to the cycles introduced in \Cref{sec:arch}. Let $\mathcal{V}_{[\Q]}$ denote the quadratic space of signature $(2n-2,2)$ over $\Q$ obtained by viewing $\mathcal{V}$ as a vector space over $\Q$ with quadratic form $Q(x) = (x,x)$. Then, the set \[ \mathbb D^o(\mathcal{V}_{[\Q]}) \ := \ \left\{ \zeta \subset \mathcal{V} \otimes_{\Q} \R \text{ a negative definite } \R \text{-plane} \right\} \] is a model for the symmetric space attached to $O(\mathcal{V}_{[\Q]})$. There is a natural embedding \[ \mathbb D(\mathcal{V}) \ \hookrightarrow \ \mathbb D^o(\mathcal{V}_{[\Q]}). \] given by viewing a negative definite ${\bm{k}}_{\R}$-line $z \in \mathbb{D}(\mathcal{V})$ as a real plane. Let $ \mathcal{L} = \Hom(\mathcal{L}_0, \mathcal{L}_1)$ and assume $\mathcal{V} = \mathcal{L}_{\Q}$. Recall that for $m \in \Q$, we had defined $S(\mathcal{L})^{\vee}$-valued cycles $Z(m)$ on $\mathbb{D}^o(\mathcal{V}_{[\Q]})$ by the formula \[ Z(m)(\varphi) \ = \ \sum_{\substack{x \in \diffinv{{\bm{k}}}\mathcal{L} \\ Q(x) = m}} \, \varphi(x) \, Z(x), \] where $Z(x) := \{ z \in \mathbb{D}^o(\mathcal{V}_{[\Q]}) \, | \, z \perp x \} $. Note by construction, if $\varphi \in \mathcal{S}$, then this sum is invariant under automorphisms of $\mathcal{L}$, and hence under $\Gamma_{\mathcal{L}_0, \mathcal{L}_1}$. Thus, the complex uniformization \eqref{eqn:ZmCpxUnif} can be rephrased as saying that the restriction of the cycle $\mathcal{Z}_{\mathcal{V}}(m)(\C)$ to the component $[ \Gamma_{\mathcal{L}_0, \mathcal{L}_1} \backslash \mathbb{D}(\mathcal{V})]$ is given by: first restricting $Z(m)$ to $\mathcal{S}^{\vee}$, then pulling back to the unitary symmetric space $\mathbb{D}(\mathcal{V})$, and finally taking the image in the quotient $[\Gamma_{\mathcal{L}_0, \mathcal{L}_1}\backslash \mathbb{D}(\mathcal{V})]$. \end{remark} \subsection{Classes in arithmetic Chow groups} \label{sec:arithChow} In this section, we recall two ways of equipping the divisors $\mathcal{Z}_\mathcal{V}^*(m,\lie a)$ with Green functions to obtain classes in the arithmetic Chow group $\ChowHatC(\mathcal{M}_\mathcal{V}^*)$. Here and throughout we work with the $\log\text{-}\log$ singular version due to Burgos Gil-Kramer-K\"uhn \cite{burgos-kramer-kuhn}, or more precisely, the `stacky' extension described in \cite[\S 3.1]{howard-unitary-2}. Roughly speaking, the extended Chow group $\ChowHatC(\mathcal{M}_\mathcal{V}^*)$ is a complex vector space spanned by elements of the form \[ (Z, \, g_Z) \] where $Z$ is a $\C$-divisor on $\mathcal{M}^*_\mathcal{V}$ (i.e.\ a formal $\C$-linear combination of closed substacks, each of which is \'etale locally cut out by a single non-zero equation), and $g_Z$ is a current on $\mathcal{M}^*_\mathcal{V}(\C)$ that is \begin{enumerate} \item smooth outside the support of $Z(\C) \cap \mathcal{M}_{\mathcal{V}}(\C)$ with logarithmic singularities along this support; \item has, along with its derivatives, at worst `$\log$-$\log$' singularities along the boundary $\partial \mathcal{M}^*_{\mathcal{V}}(\C)$, cf.\ \cite[Definition 7.1]{burgos-kramer-kuhn}; and \item satisfies Green's equation \[ \ddc[g_Z] \ + \ \delta_{Z(\C)} \ = \ [\omega] \] for some $(1,1)$ differential form $\omega$ that is smooth on $\mathcal{M}_{\mathcal{V}}(\C)$. \end{enumerate} \begin{remark} Strictly speaking, the analytic aspects of \cite{burgos-kramer-kuhn} are applicable to manifolds, and not orbifolds like $\mathcal{M}_{\mathcal{V}}^*(\C)$. To circumvent this technicality, note that by fixing additional level structure in the moduli problem, one can find a manifold $M$ and a finite group $K$ acting on it, such that $\mathcal{M}^*_{\mathcal{V}}(\C) = [K \backslash M]$. By pulling back the cycles $\mathcal{Z}_{\mathcal{V}}(m)(\C)$ along the projection \[ M \ \to \ [K\backslash M ] \ = \ \mathcal{M}_{\mathcal{V}}^*(\C) \] we may interpret $(i)-(iii)$ in terms of $K$-invariant currents on $M$. In the sequel we will gloss over this technicality, and refer the reader to \cite[Section 3.1]{howard-unitary-2} for a more careful treatment of this issue. \end{remark} As with ordinary Chow groups, the principal divisors are deemed equivalent to zero: more precisely, if $f \in \Q(\mathcal{M}_{\mathcal{V}}^*)^{\times}$ is a global rational function, then the divisor \[ \widehat{\divisor}(f) \ := \ (\mathrm{div} f, \, - \log|f|^2) \] is called principal. The group $\ChowHatC(\mathcal{M}_{\mathcal{V}}^*)$ is then defined to be the quotient of the space of arithmetic divisors by the subspace spanned by principal divisors. We begin with the construction of Kudla's Green functions $\mathsf{Gr}^{\mathsf{K}}(m,v)$. In light of the complex uniformization \eqref{eqn:MCpxUnif}, it suffices to specify $\mathsf{Gr}^{\mathsf{K}}(m,v)$ on each component $[\Gamma_{\mathcal{L}_0, \mathcal{L}_1} \backslash \mathbb D(\mathcal{V})]$ where, as before, \[ \mathcal{L} = \Hom(\mathcal{L}_0, \mathcal{L}_1) \hookrightarrow \mathcal{V} . \] In \Cref{sec:kg-theta}, we defined an $S(\mathcal{L})^{\vee}$-valued current $\KGr_o(m,v)$ on $\mathbb{D}^o(\mathcal{V}_{[\Q]})$, with singularities along the cycle $Z(m)$; here $\mathcal{V}_{[\Q]}$ is the space $\mathcal{V}$ viewed as a quadratic space over $\Q$ of signature $(2n-2,2)$. In parallel with \Cref{rem:cycleorth}, we may restrict $\KGr_o(m,v)$ to $\mathcal{S}^{\vee}$, and pull back to the unitary Grassmannian $\mathbb{D}(\mathcal{V})$ to obtain a $\Gamma_{\mathcal{L}_0, \mathcal{L}_1}$-invariant function on $\mathbb{D}(\mathcal{V})$; descending to the quotient $[\Gamma_{\mathcal{L}_0, \mathcal{L}_1} \backslash \mathbb{D}(\mathcal{V})]$ gives a function $\mathsf{Gr}^{\mathsf{K}}(m,v)$ with singularities along the pullback of $\mathcal{Z}_{\mathcal{V}}(m)$ to $[\Gamma_{\mathcal{L}_0, \mathcal{L}_1} \backslash \mathbb{D}(\mathcal{V})]$. Putting the components together in the complex uniformization \eqref{eqn:MCpxUnif}, we obtain a function $\mathsf{Gr}^{\mathsf{K}}(m,v)$ on $\mathcal{M}_{\mathcal{V}}(\C)$ with logarithmic singularities along $\mathcal{Z}_{\mathcal{V}}(m)(\C)$. Note that if $m\leq0$, then $\mathsf{Gr}^{\mathsf{K}}(m,v)$ is smooth. As we wish to work with the toroidal compactification $\mathcal{M}_{\mathcal{V}}^*$, we also need to understand the behaviour of $\mathsf{Gr}^{\mathsf{K}}(m,v)$ at the boundary. By the discussion in \cite[\S 2.6]{howard-unitary-2}, the components of the boundary $ \partial \mathcal{M}^*_{\mathcal{V}} = \mathcal{M}_{\mathcal{V}}^* - \mathcal{M}_{\mathcal{V}}$ are parametrized by the set of isomorphism classes of triples \[ \mathcal B_{\mathcal{V}} \ : = \ \left\{ \ ( \mathcal{L}_0, \, \lie{m} \subset \mathcal{L}_1) \ \Big| \ \begin{matrix} \lie{m} \text{ is an isotropic rank-1 direct summand of } \mathcal{L}_1 \text{ and } \\ \mathcal{V}_{\mathcal{L}_0,\mathcal{L}_1} \simeq \mathcal{V} \end{matrix} \right\} /_{\simeq}\] If $B=(\mathcal{L}_0, \lie{m}\subset \mathcal{L}_1) \in \mathcal B_{\mathcal{V}}$, then \[ \lie{n} := \Hom_{o_{\bm{k}}} ( \mathcal{L}_0, \lie{m}) \] is an isotropic rank-1 submodule of $\mathcal L = \Hom_{o_{\bm{k}}}(\mathcal{L}_0, \mathcal{L}_1)$, and \[ \Lambda_B \ := \ \lie{n}^{\perp} / \lie{n} \] is a self-dual Hermitian $o_{\bm{k}}$-lattice of signature $(n-2,0)$. There is a contraction map \[ \mathbf c_{B} \colon S(\mathcal L) \to S(\Lambda_B) \] defined by the formula \begin{equation} \label{eqn:ContractionMap} \mathbf c_{B} (\varphi)(\nu) \ = \ \sum_{\substack{\mu \in \diffinv{{\bm{k}}} \mathcal L/ \mathcal L \\ \mu|_{\lie{n}^{\perp}} = \nu } } \, \varphi(\mu), \qquad \varphi \in S(\mathcal L) , \end{equation} and is equivariant for the action of the Weil representation on $S(\mathcal L)$ and $S(\Lambda_B)$, cf.\ \cite[\S5]{boautgra}. In the above sum, the equality $\mu|_{\lie n^{\perp}} = \nu$ is to be interpreted as follows: a coset $ \mu \in \diffinv{{\bm{k}}} \mathcal{L} / \mathcal{L}$ determines a map \begin{equation} \label{eqn:contractionMapDef} {\mu}|_{\lie n^{\perp}} \in \Hom_{o_{\bm{k}}} \left( \lie n^{\perp}, \ \diffinv{{\bm{k}}} / o_{\bm{k}} \right) \end{equation} by choosing any representative $\tilde \mu \in \diffinv{{\bm{k}}} \mathcal{L}$ and sending $x \in \lie n^{\perp}$ to the image of $\langle x, \tilde\mu \rangle$ in $ \diffinv{{\bm{k}}} / o_{\bm{k}}$. This is clearly independent of the choice of $\tilde \mu$. On the other hand, a coset $\nu \in \diffinv{{\bm{k}}} \Lambda_B / \Lambda_B$ determines an element of $\Hom(\Lambda_B, \diffinv{{\bm{k}}}/o_{\bm{k}})$ by sending $\lambda \in \Lambda_B$ to the image of $\langle \lambda, \tilde \nu \rangle$ in $\diffinv{{\bm{k}}}/o_{\bm{k}}$, for any representative $\tilde \nu$ of $\nu$. Pulling back along the projection $\lie n^{\perp} \to \Lambda_B$ defines an element of $\Hom(\lie n^{\perp}, \diffinv{{\bm{k}}} / o_{\bm{k}})$, and the equation $\mu|_{\lie n^{\perp}} = \nu$ is interpreted as the equality of this element with the map \eqref{eqn:contractionMapDef}. Let $\vartheta_{\Lambda_B} \in M_{n-2}(S(\Lambda_B)^{\vee})$ denote the theta function attached to $\Lambda_B$; it is a vector-valued modular form of weight $n-2$ defined by the formula \[ \vartheta_{\Lambda_B}(\tau)(\varphi) \ = \ \sum_{\lambda \in \diffinv{{\bm{k}}} \Lambda_B } \varphi (\lambda) \, q^{(\lambda, \lambda)}. \] Pulling back along the map $\mathbf c_{B} \colon S(\mathcal L) \to S(\Lambda_B)$ and restricting to $\mathcal{S} \subset S(\mathcal L)$, yields a theta function \[ \Theta_{\Lambda_B}(\tau) \ \in \ M_{n-2}(\mathcal S^{\vee}), \] whose Fourier expansion we write as \begin{equation} \label{eqn:bdyThetaFn} \Theta_{\Lambda_B}(\tau) \ = \ \sum_{m \in \Q_{\geq 0}} \, \mu_B(m) \, q^m \end{equation} with coefficients $\mu_B(m) \in \mathcal S^{\vee}$. Concretely, a straightforward computation yields \[ \mu_B(m) \ = \ \sum_{\lie a} \, N(\lie a) \cdot \# \{ \lambda \in \lie{a}^{-1} \Lambda \ | \ (\lambda,\lambda) = m \} \cdot \varphi_{\overline{m},\lie a}^{\vee}. \] \begin{remark} \label{rmk:nEquals2} Suppose $n = 2$, so that $\mathcal{V}$ is either anisotropic or has Witt rank equal to one (i.e. is split). In the first case $\mathcal M_{\mathcal{V}} = \mathcal{M}_{\mathcal{V}}^*$ is proper over $\Spec o_{\bm{k}}$, and in particular there are no boundary components ($\mathcal B_{\mathcal{V}} = \emptyset$). In the second case, the lattice $ \Lambda_B$ attached to a boundary component $B \in \mathcal B_{\mathcal{V}}$ is trivial, and so concretely \[ \mu_B(m) \ = \ \begin{cases} 0 & m \neq 0 \\ \sum_{\lie a} N(\lie a) \cdot \varphi_{0,\lie a}^{\vee} & m = 0 \end{cases} \] in this case. \end{remark} \begin{proposition} For any $v \in \R_{>0}$, $m \in \Q$, the current $\mathsf{Gr}^{\mathsf{K}}(m, v)$ extends to an $\mathcal S^{\vee}$-valued current -- also denoted by $\mathsf{Gr}^{\mathsf{K}}(m,v)$ -- with logarithmic singularities on $\mathcal M_{\mathcal{V}}^*$, and is a Green current for the cycle \[ \mathcal{Z}_{\mathcal{V}}^*(m) \ + \ \frac{1}{4 \pi v} \ \sum_{B \in \mathcal B_V} \ \mu_B(m) \ [B], \] where for $B \in \mathcal B_{\mathcal{V}}$, we write $[B]$ for the corresponding boundary component. Recall that $\mathcal{Z}_{\mathcal{V}}^*(m) = 0$ whenever $m \leq 0$ by definition; in particular, if $m<0$ then $\mathsf{Gr}^{\mathsf{K}}(m,v)$ is a Green function for the zero cycle on $\mathcal{M}_{\mathcal{V}}^*$. \begin{proof} It suffices to check the claim after evaluating at each of the basis elements $\{\varphi_{\overline{m}, \lie a} \}$ of $\mathcal S$. The case where $\overline{m} \equiv 0$ and $\lie a = o_{\bm{k}}$ is proved in \cite[Theorem 3.4.7]{howard-unitary-2}, and the same proof works with only minor modifications in general. \end{proof} \end{proposition} As a consequence, for $v \in \R_{>0}$ and $ m \in \Q_{\neq 0}$ we obtain classes \[ \widehat\Zed_{\calV}^{\, \mathsf{K}}(m, v) \ = \left( \mathcal{Z}_{\mathcal{V}}^*(m) \ + \ \frac1{4 \pi v } \sum_{B \in \mathcal{B}_{\mathcal{V}}} \, \mu_B(m)\, [B], \, \mathsf{Gr}^{\mathsf{K}}(m, v) \right) \ \in \ \ChowHatC(\mathcal M_{\mathcal{V}}^*) \otimes_{\C} \mathcal S^{\vee}. \] Here the superscript $\mathsf{K}$ serves as a reminder that Kudla's Green functions are being used. Note if $m \notin d_{\bm{k}}^{-1} \Z$ then $\widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v) = 0$. It remains to define the `constant term' $\widehat\Zed_{\calV}^{\, \mathsf{K}}(0,v)$, a task we will return to shortly. Turning to Bruinier's automorphic Green functions, suppose $m \in \Q_{\neq 0}$. Recall that in \Cref{sec:relat-borch-lift}, we had considered the $S(\mathcal{L})^{\vee}$-valued current $\BGrO{m}$ on $\mathbb D^o(\mathcal{V}_{[\Q]})$, defined via the regularized theta lift against the Siegel theta function. \[ \BGrO{m}(z) \ = \ \langle F_m, \, \Theta_L(\cdot, z) \rangle^{\mathrm{reg}}; \] here $F_m(\tau)$ is the unique weak harmonic Maa\ss\, form of weight $2-n$ specified in \Cref{sec:relat-non-holom}. Restricting $\BGrO{m}$ to $\mathcal{S}^{\vee} \subset S(\mathcal{L})^{\vee}$, and then to the unitary Grassmannian \[ \mathbb D(\mathcal{V}) \subset \mathbb D^o(\mathcal{V}_{[\Q]}), \] yields a $\Gamma_{\mathcal{L}_0,\mathcal{L}}$-invariant current on $\mathbb D(\mathcal{V})$, which can be viewed as living on the component $[\Gamma_{\mathcal{L}_0,\mathcal{L}} \backslash \mathbb D(\mathcal{V})]$; repeating this construction for all the components appearing in \eqref{eqn:MCpxUnif} yields an $\mathcal S^{\vee}$-valued current on $\mathcal{M}_{\mathcal{V}}(\C)$ that we denote by $\BGr{m}$, with logarithmic singularities along $\mathcal{Z}_{\mathcal{V}}(m)(\C)$. Included in the following proposition is a description of the behaviour of $\BGr{m}$ at the boundary. \begin{proposition}[{\cite[Theorem 4.10]{bruinier-howard-yang-unitary}}] \label{prop:BHYbdy} Suppose $m \in \Q_{\neq 0}$. Then $\BGr{m}$ is a Green function for the cycle \[ \mathcal{Z}^*_{\mathcal{V}}(m) \ + \ \sum_{B \in \mathcal B_{\mathcal{V}}} \eta_B(m) \, [B] \] where \[ \eta_B(m) \ := \ \frac{1}{4 \pi} \, \langle F_m, \, \Theta_{\Lambda_B} \rangle^{\mathrm {reg}} . \] \qed \end{proposition} \begin{remark} Via \cite[Remark 4.11]{bruinier-howard-yang-unitary}, we may express $\eta_B(m)$ more explicitly: if $n>2$, then \[ \eta_B(m) = \frac{ m}{n-2} \, \mu_B(m). \] If instead $n=2$ and $\mathcal{V}$ is isotropic, then \[ \eta_B(m) \ = \ -2 \left( \sum_{\lie a | \partial_k} N(\lie a) \, \sigma_1(m) \, \varphi_{\overline m, \lie a}^{\vee} \ + \ \mathbf c_{B}\left( c_{F_m}^+(0) \right) \right) \] If $n=2$ and $\mathcal{V}$ is anisotropic, then $\mathcal B_{\mathcal{V}} = \emptyset$ and $\BGr{m}$ is a Green function for the cycle $\mathcal{Z}^*(m) = \mathcal{Z}(m)$. \end{remark} Thus for each $m \in \Q$, we may define an $\mathcal S^{\vee}$-valued arithmetic cycle \[ \widehat\Zed_{\calV}^{\, \mathsf{B}}(m) \ = \ \left( \mathcal{Z}^*_{\mathcal{V}}(m) \, + \, \sum_{B} \eta_B(m) \, [B], \, \BGr{m} \right) \ \in \ \ChowHatC(\mathcal{M}_V^*) \otimes_{\C} \mathcal S^{\vee} \] where the superscript $\mathsf{B}$ reminds us that we are using Bruinier's automorphic Green functions. Finally, we turn to the constant terms. Let $ \widehat{\omega}^{\mathsf{taut}}$ denote the \emph{tautological bundle} on $\mathcal{M}_{\mathcal{V}}^*$ viewed as an element of $\ChowHatC(\mathcal{M}_{\mathcal{V}})$. As this bundle plays only a marginal role in our present work, we refer the reader to \cite[\S6]{bruinier-howard-yang-unitary} for its construction, and content ourselves with the remark that when restricted to the open part $\mathcal{M}_{\mathcal{V}}(\C)$, the first Chern form $c_1({ \widehat{\omega}^{\mathsf{taut}}}|_{\mathcal{M}_{\mathcal{V}}(\C)})$ is a K\"ahler form. Set \[ \widehat\Zed_{\calV}^{\, \mathsf{B}}(0) \ := \ - \widehat{\omega}^{\mathsf{taut}} \otimes \varphi_{\overline{0}, o_{\bm{k}}}^{\vee} + \, \left(\sum_{B} \eta_B(0) \, [B], \, \BGr{0}\right), \] and similarly, for $v \in \R_{>0}$, let \[ \widehat\Zed_{\calV}^{\, \mathsf{K}}(0,v) \ := \ - \widehat{\omega}^{\mathsf{taut}} \otimes \varphi_{\overline{0}, o_{\bm{k}}}^{\vee} \ + \ \left( \frac{1}{4 \pi v} \sum_{B \in \mathcal B_{\mathcal{V}}} \mu_B(0) \, [B], \, \mathsf{Gr}^{\mathsf{K}}(0,v) \right) \ -\ (0, \log v) \otimes \varphi_{\overline{0}, o_{\bm{k}}}^{\vee}. \] \begin{definition} For $\tau = u + i v \in \uhp$ and $q = e^{2 \pi i \tau}$, define formal $q$-expansions \[ \widehat\Theta_{\calV}^{\mathsf{K}}(\tau) \ := \ \sum_{m \in \Q} \, \widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v) \, q^m \qquad \text{and} \qquad \widehat\Theta_{\calV}^{\mathsf{B}}(\tau) \ := \ \sum_{m \in \Q} \, \widehat\Zed_{\calV}^{\, \mathsf{B}}(m) \, q^m, \] with coefficients valued in $\ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} \mathcal S^{\vee}$; these are the Kudla and Bruinier \emph{arithmetic theta functions}, respectively. \end{definition} \subsection{Modularity results} Our main results involve viewing the generating series $\widehat\Theta_{\calV}^{\mathsf{K}}$ and $\widehat\Theta_{\calV}^{\mathsf{B}}$ as $\ChowHatC(\mathcal{M}_{\mathcal{V}}^*)\otimes_{\C} \mathcal S^{\vee}$-valued functions; it may be helpful at this juncture to elaborate on what this notion might mean and what it means for such a function to be modular. Let $(W, \rho)$ be a finite-dimensional complex representation of $\SL_2(\Z)$. Recall that a smooth function $f \colon \uhp \to W$ is said to \emph{transform as a modular form} of weight $k$ and representation $(W, \rho)$ if it is invariant under the weight $k$ slash operator \[ f\mid_{k}[\gamma](\tau) \ := \ (c \tau + d)^{-k} \cdot \rho(\gamma^{-1}) f( \gamma \tau) \] for each $\gamma = (\begin{smallmatrix} a&b\\c&d \end{smallmatrix}) \in \SL_2(\Z)$. Denote the space of such functions by $A_k(\rho)$, which is typically infinite-dimensional. Now suppose $\{ \widehat\phi_m(\tau) \}_{m \in \Q}$ is a collection of functions \[ \widehat{\phi}_m \colon \uhp \ \to \ \ChowHatC(M^*_{\mathcal{V}}) \otimes_{\C} W \] and consider the formal series \[ \widehat{\phi}(\tau) \ = \ \sum_{m \in \Q} \, \widehat{\phi}_m(\tau) \, q^m. \] \begin{definition} \label{def:ModularityDef} We say that $\widehat{\phi}(\tau)$ \emph{transforms as a modular form} of weight $k$ and representation $(W, \rho)$ if for each $m$, there is a decomposition \[ \widehat{\phi}_m(\tau) \ = \ \widehat{\phi}_m^{\natural}(\tau) \ + \ (0, g_m(\tau) ) \] such that the following two conditions hold. \begin{enumerate} \item Roughly speaking, the formal generating series $\sum_{m} \widehat{\phi}_m^{\natural} q^m$ lies in $\ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} A_k(\rho)$. More precisely, there are finitely many elements \[ \widehat\mathcal{Z}_1, \dots, \widehat\mathcal{Z}_r \in \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \] and functions \[ c_{i,m}(\tau) \colon \uhp \to W, \qquad \text{for all }i =1, \dots, r \ \text{and} \ m \in \Q, \] such that \[ \widehat{\phi}_m (\tau) \ = \ \widehat\mathcal{Z}_1 \otimes c_{1,m} (\tau) \ + \ \cdots \ + \ \widehat\mathcal{Z}_r \otimes c_{r,m}(\tau) \] and for each $i = 1, \dots, r$, the formal series \[ f_i(\tau) := \sum_m c_{i,m}(\tau) \, q^m \] converges to a function $f_i \in A_k(\rho)$. For convenience, we abuse notation and write \[ \sum_{m} \widehat{\phi}_m^{\natural} q^m \ = \ \widehat \mathcal{Z}_1 \otimes f_1(\tau) \ + \ \cdots \ + \ \widehat \mathcal{Z}_r \otimes f_r(\tau). \] \item For each $m$ and $\tau$, the function $g_m(\tau,z)$ is a $W$-valued Green function for the zero cycle; i.e.\ it is a smooth function \[ g_m(\tau,z) \colon \uhp \times \mathcal{M}_{\mathcal{V}}(\C) \ \to \ W \] that extends, pointwise in $\tau$, to a function with at worst $\log\text{-}\log$ singularities along the boundary of $\mathcal{M}_{\mathcal{V}}^*$. We then require that there is a function $s(\tau,z)$ on $\uhp \times \mathcal{M}_{\mathcal{V}}(\C)$ such that: \begin{itemize} \item for each fixed $\tau$, the function $s(\tau,z)$ and its derivatives in $z$ are smooth on $\mathcal{M}_{\mathcal{V}}(\C)$ and have at worst $\log-\log$ singularities at the boundary; \item for any smooth differential form $\eta \in A^{2n-2}(\mathcal{M}_{\mathcal{V}}^*(\C))$, the value of the current \[ [s(\tau, z)](\eta) \ := \ \int_{\mathcal{M}_{\mathcal{V}}^*(\C)} s(\tau, z) \wedge \eta \] defines a function $[s(\tau, z)](\eta) \in A_k(\rho)$. \item for each fixed $\tau$, the sum $\sum_{m} [g_m(\tau,z)] q^m$ converges weakly to $[s(\tau, z)]$, i.e.\ \[ \lim_{N \to \infty} \sum_{|m| \leq N} \, [g_m(\tau,z)](\eta) \ q^m \ = \ [s(\tau,z)](\eta) \] for every $\eta \in A^{2n-2}(\mathcal{M}_{\mathcal{V}}^*(\C))$ as above. \end{itemize} \end{enumerate} \end{definition} \begin{remark} (i) If we so desire, we may impose further analytic conditions in the previous definition (e.g.\ holomorphicity, real analyticity, etc.) by replacing $A_k(\rho)$ with the corresponding spaces of modular forms, which we then call the type of $\widehat{\phi}$; thus we may, for example, speak of spaces of holomorphic $W \otimes \ChowHatC(\mathcal{M}_V^*)$-valued modular forms (i.e.\ of type $M_k(\rho)$), or with a type given by one of the spaces considered in Section 2. (ii) If a generating series $\widehat{\phi}(\tau)$ is modular as in the above definition, it defines a map (denoted by the same symbol) \[ \widehat{\phi} \colon \uhp \to \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} W, \qquad \widehat{\phi}(\tau) := \sum_{i=1}^r \widehat \mathcal{Z}_i \otimes f_i(\tau) \ + \ (0, s(\tau,z)) \] which satisfies \[ \widehat{\phi}(\tau)\mid_{k}[\gamma] \ = \ (c \tau + d)^{-k} \ \left(1 \otimes \rho(\gamma^{-1})\right) \widehat{\phi}(\tau) \] for all $\gamma = (\begin{smallmatrix} a & b \\ c & d \end{smallmatrix})$, and is independent of the choices of $\widehat\mathcal{Z}_i, f_{m,i}$ and $g_m$ above. The upshot of this definition is that given a ``reasonable" pairing \[ \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \times {\widehat{\mathsf{CH}}{}^{n-1}_{\C}}(\mathcal{M}_{\mathcal{V}}^*) \to \C, \qquad [\widehat\mathcal{Z}_1 : \widehat\mathcal{Z}_2] \ := \ \widehat\deg \, \left(\widehat\mathcal{Z}_1 \cdot \widehat\mathcal{Z}_2 \right) \] cf.\ \Cref{hyp:arithInt} below, and any fixed class $\widehat\mathcal{Y} \in{\widehat{\mathsf{CH}}{}^{n-1}_{\C}}(\mathcal{M}_{\mathcal{V}}^*)$, the expression $[\widehat{\phi}(\tau) \colon \widehat \mathcal{Y}]$ defines an element of $A_{k}(\rho)$ with $q$-expansion \[ [\widehat{\phi}(\tau) : \widehat \mathcal{Y}] \ = \ \sum_{m} \, [ \widehat \phi_m(\tau) : \widehat \mathcal{Y}] \, q^m. \] \end{remark} We now come to the main theorem of this section. \begin{theorem} \label{thm:ArithModularity} The difference $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau)$ transforms as a $\ChowHatC(\mathcal{M}_{\mathcal{V}}^*)$-valued form of type $\mathcal{A}_n^!(\mathcal{S}^{\vee})$. \end{theorem} For the proof we first set \[ \widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau) \ =: \ \widehat\phi(\tau)\ = \ \sum_{m} \widehat\phi_m(\tau) \, q^m \] where, for $m \neq 0$, \begin{align*} \widehat\phi_m(\tau) \ = \ \left( \sum_{B \in \mathcal B_V} \left( \frac{1}{4 \pi v} \mu_B(m) - \eta_B(m) \right) \cdot [B], \ \mathsf{Gr}^{\mathsf{K}}(m,v) - \BGr{m} \right). \end{align*} Since $\mathcal{M}_\mathcal{V}^*$ is projective, there is a Green function $\lie g_B$ for each boundary component $[B$] that has $C^{\infty}$ regularity on $\mathcal{M}_\mathcal{V}(\C)$, and may be normalized so that \[ \int\limits_{\mathcal{M}_\mathcal{V}^*(\C)} \lie g_B \, \mathrm d\Omega \ = \ 0 \] for the measure $\mathrm d \Omega = \wedge^{n-1} c_1(\widehat\omega_{/ \C} ) $ induced by top wedge power of the Chern form of the tautological bundle. These Green functions define classes \[ \widehat{[ B ]} \ := \ (B, \lie g_B) \in \ChowHatC(\mathcal{M}_{\mathcal{V}}^*). \] Thus for each $m \neq 0$, we may write \begin{equation} \label{eq:PhiHatDecomp} \widehat\phi_m(\tau) \ = \ \widehat\phi_{m}^{\natural}(\tau) \ + \ (0, g_{m}(\tau,z) ), \end{equation} where \[ \widehat\phi_{m}^{\natural}(\tau) \ = \ \sum_{B \in \mathcal B_{\mathcal{V}}} \ \widehat{[ B]} \otimes \left( \frac{\mu_B(m)}{4 \pi v} - \eta_B(m) \right) \ \in \ \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes \mathcal S^{\vee} \] and \begin{equation} \label{eqn:gmDef} g_{m}(\tau,z) \ = \ \mathsf{Gr}^{\mathsf{K}}(m, v)(z) - \BGr{m}(z) - \sum_{B \in \mathcal B_{\mathcal{V}}} \left( \frac{\mu_B(m)}{4 \pi v} - \eta_B(m) \right) \lie g_B(z) \end{equation} Similarly, when $m=0$, \begin{align} \notag \widehat\phi_0(\tau) \ =& \ \left( \sum_{B \in \mathcal B_V} \left(\frac{\mu_B(0)}{4 \pi v}-\eta_B(0)\right) \, [B]\ , \ \mathsf{Gr}^{\mathsf{K}}(0,v)-\BGr{0} \right) \ - \ (0, \log v) \otimes \varphi_{\overline{0}, o_{\bm{k}}}^{\vee} \\ \notag =& \ \sum_B \, \widehat{[B]} \otimes \left( \frac{\mu_B(0)}{4 \pi v} -\eta_B(0)\right)\ \\ &\quad + \ \left( 0, \, \mathsf{Gr}^{\mathsf{K}}(0,v)(z) - \BGr{0} \ - \ \sum_B \left( \frac{\mu_B(0)}{4\pi v} - \eta_B(0) \right) \mathfrak{g}_B(z) \ - \ \log v \cdot \varphi_{\overline{0}, o_{\bm{k}}}^{\vee} \right) \notag\\ \label{eqn:g0def} =&: \ \widehat\phi^{\natural}_0(v) \ + \ (0, g_0(v,z)) . \end{align} We first show the coefficients of the boundary components are already the coefficients of modular forms. \begin{lemma} \label{lem:bdyFourierMod} For any boundary component $B$, \[ \sum_{m \geq 0} \left( \frac{\mu_B(m)}{4 \pi v } \ - \ \eta_B(m) \right) \, q^m \ = \ - \frac{1}{4 \pi} \Low^{\sharp}\left(\Theta_{\Lambda_B} \right), \] where $\Low^{\sharp}\left(\Theta_{\Lambda_B} \right)$ denotes the normalized preimage under the lowering operator as defined in \Cref{prop:uniquepreimage}. In particular, the left hand side defines a form in $\mathcal{A}_n^{\mathrm{mod}}(\mathcal{S}^{\vee}) \subset\mathcal{A}_n^!(\mathcal{S}^{\vee}) $. \begin{proof} We apply \Cref{thm:MaassSection} to $\Theta_{\Lambda_B}(\tau)$, so that the $m$'th Fourier coefficient of $-\Low^{\sharp}(\Theta_{\Lambda_B})$ is given by \[ \langle P_{m,v} - F_m , \, \Theta_{\Lambda_B} \rangle^{\mathrm{reg}} \] Since $\eta_B(m) = \frac{1}{4 \pi} \langle F_m, \, \Theta_{\Lambda_B} \rangle^{\mathrm{reg}}$, it will suffice to show that \[ \langle P_{m,v}, \, \Theta_{\Lambda_B} \rangle^{\mathrm{reg}} \ \stackrel{?}{=} \ \frac{\mu_B(m)}{v} \] for all $m \in \Q$; note that $\mu_B(m) = 0$ when $m < 0$. For convenience, set \[P_{m,v,\lie a}(\tau') = P_{m,v}(\tau')(\varphi_{\overline m, \lie a}) \] for a (non-zero) element $\varphi_{\overline m, \lie a}$ and $\tau' \in \mathbb H$. Recall that if $ v_0 := \max(v,1/v)$, then \[ P_{m,v,\lie a}(\tau') \ = \ (q')^{-m} \cdot \varphi_{\overline{m}, \lie a} \qquad \ \text{ whenever } \Im(\tau') > v_0. \] Therefore, on the set $v' > v_0$, the integral \[ \int_{-1/2}^{1/2} P_{m,v,\lie a}(u' + i v') \cdot \Theta_{\Lambda_B}(u'+iv') d u' \ = \ \mu_B(m)(\varphi_{\overline{m}, \lie a}) \] is bounded uniformly. It follows that the meromorphic function in $s$ whose constant term at $s=0$ defines the regularized integral \[ \langle P_{m,v,\lie a}, \, \Theta_{\Lambda_B} \rangle^{\mathrm{reg}} \ = \ \CT_{s=0} \, \lim_{T \to \infty} \, \int_{\mathcal{F}_T} P_{m,v,\lie a}(\tau') \cdot \Theta_{\Lambda_B}(\tau') \, \frac{ d \mu(\tau')}{(v')^s} \] is holomorphic at $s=0$, i.e.\ \[ \langle P_{m,v,\lie a}, \, \Theta_{\Lambda_B} \rangle^{\mathrm{reg}} \ = \ \lim_{T \to \infty} \int_{\mathcal{F}_T} P_{m,v,\lie a}(\tau') \cdot \Theta_{\Lambda_B}(\tau') \, d \mu(\tau') . \] Unfolding the Poincar\'e series, as in the proof of \Cref{thm:MaassSection}, then gives \begin{align*} \lim_{T\to\infty} \int_{\mathcal{F}_T} P_{m,v,\lie a}(\tau') \cdot \Theta_{\Lambda_B}(\tau') \, d \mu(\tau') \ =& \ \int_{0}^{\infty} \int_{-1/2}^{1/2} \ \sigma_v(\tau') \ (q')^{-m} \ \Theta_{\Lambda_B}(\tau')(\varphi_{\overline{m}, \lie a}) \ \frac{du' \, dv' }{(v')^2} \\ =& \ \int_v^{\infty} \int_{-1/2}^{1/2} \ (q')^{-m} \ \Theta_{\Lambda_B}(\tau')(\varphi_{\overline{m}, \lie a}) \ \frac{du' \, dv' }{(v')^2} \\ =& \ \mu_{B}(m)(\varphi_{\overline{m}, \lie a}) \cdot \int_v^{\infty} \frac{dv'}{(v')^2} \\ =& \ \frac{\mu_{B}(m) (\varphi_{\overline{m}, \lie a}) }{v} \end{align*} as required. The fact that $\Low^{\sharp}(\Theta_{\Lambda_B})$ has moderate growth can be easily deduced from the Fourier expansion. \end{proof} \end{lemma} \begin{remark} Observe that we can also identify the sum on the left-hand side in Lemma \ref{lem:bdyFourierMod} as (up to a non-zero constant) the image of $\Theta_{\Lambda_B}$ under the weight $n-2$ raising operator. \end{remark} \begin{corollary} \label{cor:ArithBdyMod} The formal generating series $ \widehat\phi^{\natural}(\tau)$ is an element of $ \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} \mathcal{A}^{\mathrm{mod}}_n(\mathcal S^{\vee})$ in the sense of \Cref{def:ModularityDef}(i). \begin{proof} This follows immediately from the previous lemma, since \[ \widehat\phi^{\natural}(\tau) \ = \ - \frac1{4 \pi} \sum_{B} \, [\widehat{B}] \otimes \Low^{\sharp}(\Theta_{\Lambda_B}) . \] \end{proof} \end{corollary} \begin{proof}[Proof of \Cref{thm:ArithModularity}] In view of \Cref{cor:ArithBdyMod} and the decomposition \eqref{eq:PhiHatDecomp}, it remains to prove the modularity, in the sense of \Cref{def:ModularityDef}(ii), of the ``archimedean part" \[ \widehat{\phi}(\tau) \ - \ \widehat\phi^{\natural}(\tau) \ = \ \sum_m ( 0, g_m(v,z)) \, q^m \] where \[ g_m(v,z) \ =\ \mathsf{Gr}^{\mathsf{K}}(m, v)(z) - \BGr{m}(z) - \sum_{B \in \mathcal B_{\mathcal{V}}} \left( \frac{\mu_B(m)}{4 \pi v} - \eta_B(m) \right) \lie g_B(z) - \delta_{m,0} \log v \cdot \varphi_{\overline{0}, o_{\bm{k}}}^{\vee}. \] Note that for fixed $z$, we may consider the $q$-series \begin{align*} g(\tau,z) \ := \ \sum_m \, g_m(v,z) q^m \ = \ - \log(v) \, \varphi_{\bar0, o_{\bm{k}}}^{\vee} & \ + \ \sum_{m} \left( \mathsf{Gr}^{\mathsf{K}}(m,v) - \BGr{m} \right)(z) \, q^m \\ & - \frac{1}{4 \pi} \sum_B \Low^{\sharp}(\Theta_{\Lambda_B})(\tau) \cdot \lie g_B(z); \end{align*} since the Green functions $\mathsf{Gr}^{\mathsf{K}}(m,v)$ and $\BGr{m}$ are obtained by restricting their orthogonal counterparts along $\mathbb{D}(\mathcal{V}) \hookrightarrow \mathbb{D}^o([\mathcal{V}]_{\Q})$, the pointwise-in-$z$ modularity of $g(\tau,z)$ follows immediately from \Cref{thm:OrthModGenSeries}, which in turn relies on our abstract characterization of $\Low^{\sharp}$. Unfortunately, the methods of \Cref{sec:invert-xi} do not give us any information for its behaviour as $z$ varies, while \Cref{def:ModularityDef}(ii) requires more control in this aspect; we will therefore need to be somewhat indirect in our approach. Consider the Kudla-Millson theta function \cite{kudlamillsonintersection} \[ \Theta_{KM}(\tau) \colon \uhp \ \to \ Z^{(1,1)}(\mathcal{M}_{\mathcal{V}}(\C)) \otimes_{\C} \mathcal{S}^{\vee} \] which we view as a non-holomorphic form of weight $n$ in $\tau$, valued in the tensor product of the space of closed (smooth) differential forms of degree $(1,1)$ on $\mathcal{M}_{\mathcal{V}}(\C)$ and $\mathcal{S}^{\vee}$. Its Fourier expansion is \begin{equation} \label{eqn:KMThetaFourier} \Theta_{KM}(\tau) \ = \ - \ \varphi_0^\vee \cdot c_1(\omega^{\mathrm{taut}}) \ + \ \sum_{m \in \Q} \, \omega_{\mathsf{Gr}^{\mathsf{K}}(m,v)} \, q^m, \end{equation} where \[ [\omega_{\mathsf{Gr}^{\mathsf{K}}(m,v)}] \ = \ \ddc [\mathsf{Gr}^{\mathsf{K}}(m,v)] \ + \ \delta_{\mathcal{Z}(m)(\C)} \qquad \text{on } \mathcal{M}_{\mathcal{V}}(\C). \] Moreover, \begin{equation} \label{eqn:LowerThetaKM} \mathbf{L}(\Theta_{KM})(\tau) \ = \ \ddc \Theta_L(\tau) \end{equation} where $\Theta_L(\tau)$ is the Siegel theta function, as in \eqref{eq:siegeltheta}; this relation can be extracted from the Fock model construction of $\Theta_{KM}(\tau)$ in \cite{kudlamillsonintersection}, see also \cite[\S 7]{brfugeom}. More precisely, if $\mathbf z = ( z_1, \dots, z_{n-1})$ is a local coordinate on some small open set $U \subset \mathcal{M}_{\mathcal{V}}(\C)$, then we may write \[ \Theta_{KM}(\tau) \ = \ \sum_{i,j} f_{ij}(\tau, \mathbf z) \, d z_i \wedge d \overline{z_j} \] for a family of forms $f_{ij}(\cdot, \mathbf z) \in A_n^{!}(\mathcal{S}^{\vee})$ varying smoothly in $\mathbf z$. Then \eqref{eqn:LowerThetaKM} asserts that at a given fixed point $\mathbf z_0 \in U$, \[ \mathbf{L}(\Theta_{KM})(\tau)|_{\mathbf z_0} \ = \ \sum_{i,j} \ \mathbf{L} \left( f_{ij}(\cdot, \mathbf z_0) \right)(\tau) \ d z_i \wedge d \overline{z_j} \ = \ \ddc \Theta_L(\tau)|_{\mathbf z_0}. \] Moreover, it follows easily from \eqref{eqn:KMThetaFourier} that \[ \kappa_{\Theta_{KM}}(m) \ = \lim_{T \to \infty} c_{\Theta_{KM}}(m, T) \ = \ \begin{cases} - \ \varphi_0^\vee \cdot \Omega & \text{ if } m = 0 \\ 0 & \text{ if } m < 0, \end{cases} \] where we have abbreviated $\Omega = c_1(\widehat \omega^{\mathrm{ taut}})$. Thus, there is a holomorphic modular form $G(\tau) \in M_{n}(\mathcal{S}^{\vee})$ and an orthonormal basis of cusp forms $f_1, \dots f_t \in S_n(\mathcal{S}^{\vee})$ such that \begin{align*} H(\tau) \ :=& \ \Theta_{KM}(\tau) \ - \ G(\tau) \cdot \Omega \ - \ \sum_i \langle \Theta_{KM} \, - \, G \cdot \Omega, \ f_i \rangle_{\mathrm{Pet}}^{\mathrm{reg}} \ f_i(\tau) \\ =& \ \mathbf{L}^{\sharp} \left( \ddc \Theta_L \right). \end{align*} Writing the Fourier expansion \[ H(\tau) = \sum_{m} c_H(m,v) \, q^m, \qquad \text{ where } c_H(m,v) \in Z^{(1,1)}(\mathcal{M}_{\mathcal{V}}(\C)) \otimes_{\C} \mathcal{S}^{\vee}, \] \Cref{thm:MaassSection} implies that \[ c_H(m,v) \ = \ \langle P_{m,v} \, - \, F_m, \ \ddc \Theta_L \rangle^{\mathrm{reg}}. \] On the other hand, by using \Cref{cor:ArchDiffRegLift}, it can be easily shown that the $\ddc$ operator commutes with taking the regularized integral, so \[ c_H(m,v) \ = \ \ddc \, \langle P_{m,v} \, - \, F_m, \ \Theta_L \rangle^{\mathrm{reg}} \ = \ \ddc \left( \mathsf{Gr}^{\mathsf{K}}(m,v) \ - \BGr{m}) \right), \] so \[ H(\tau) \ = \ \sum_m \ddc \left( \mathsf{Gr}^{\mathsf{K}}(m,v) \ - \ \BGr{m} \right) \ q^m \] on $\mathcal{M}_{\mathcal{V}}(\C)$; the key point here is that for a fixed $\tau$, the generating series on the right defines a smooth $(1,1)$ form on $\mathcal{M}_{\mathcal{V}}(\C)$. Now consider \[ H^*(\tau) \ := \ H(\tau) \ - \ \frac{1}{4 \pi} \sum_{B} \, \Low^{\sharp}(\Theta_{\Lambda_B})(\tau) \cdot \omega_{B} \] where $\omega_{B} = \ddc [\lie g_B] \ - \ \delta_{B(\C)}$ is a smooth $(1,1)$ form on the compactification $\mathcal{M}^*_{\mathcal{V}}(\C)$. Note that $H^*(\tau)$ is a smooth closed form on $\mathcal{M}_{\mathcal{V}}(\C)$. A rather tedious but straightforward calculation reveals that $\Theta_{KM}(\tau)$, and hence $H^*(\tau)$, is $\log\text{-}\log$ singular at the boundary, and so defines a closed current \[ [H^*(\tau)] \ \in \ \mathcal{D}^{(1,1)}(\mathcal{M}^*_{\mathcal{V}}(\C)) \] cf.\ \cite[Proposition 2.26]{bkk}; moreover, for any smooth differential form $\phi$ on $\mathcal{M}_{\mathcal{V}}^*(\C)$ of degree $(n-2, n-2)$, the integral \[ [H^*(\tau)](\phi) = \int_{\mathcal{M}_{\mathcal{V}}^*(\C)} H^*(\tau) \wedge \phi \] defines a moderate growth form $[H^*(\tau)](\phi) \in \ALmod{n}(\mathcal{S}^{\vee})$. By construction, the Fourier coefficients of $[H^*(\tau)]$ are given by \[ c_{H^*}(m,v) \ = \ \left[ \ddc \left( \mathsf{Gr}^{\mathsf{K}}(m,v) \ - \ \BGr{m}\ - \ \sum_B \left( \frac{\mu_B(m)}{4 \pi v} - \eta_B(m) \right) \lie g_B \right) \right] \ = \ [\ddc g_m(v)]. \] Since $\ddc g_m(v,z)$ is cohomologically trivial (i.e.\ $g_m(v,z)$ is a Green function for the zero cycle), it follows that for any closed differential form $\phi$ on $\mathcal{M}^*_{\mathcal{V}}(\C)$, \begin{align*} [H^*(\tau)](\phi) \ = \ \int_{\mathcal{M}^*_{\mathcal{V}}(\C)} H^*(\tau) \wedge \phi \ =& \ \sum_m \ \int_{\mathcal{M}^*_{\mathcal{V}}(\C)} \ddc g_m(v,z) \wedge \phi \ q^m \\ =& \ \sum_m \int_{\mathcal{M}^*_{\mathcal{V}}(\C)} g_m(v,z) \wedge \ddc \phi \ \ q^m \\ =& \ 0. \end{align*} Thus, for each fixed $\tau$, the current $[H^*(\tau)]$ is closed and exact. Hence, by the $\ddc$ lemma and \cite[Theorem 2.23]{bkk}, for each fixed $\tau$ there exists a smooth function $S_0(\tau,z)$ on $\mathcal{M}_{\mathcal{V}}(\C)$ with $\log\text{-}\log$ singularities at the boundary, such that \[ \ddc [S_0(\tau,z)] \ = \ [\ddc S_0(\tau,z)] \ = \ [H^*(\tau)]. \] For each connected component $X_i \subset \mathcal{M}^*_{\mathcal{V}}(\C)$, fix a K\"ahler form $\omega_i$ such that $\vol(X_i, \omega_i^{n-1})= 1$; if we further impose the normalization \begin{equation} \label{eqn:StauNormalize} \int_{ X_i} \, S_0(\tau,z) \ \omega_i^{ n-1} \ = \ 0 \end{equation} for all $i$, then $S_0(\tau,z)$ is unique. This normalization also forces the current $[S_0(\tau,z)]$ to transform as a modular form in $\tau$. More precisely, given a smooth form $\eta \in A^{n-1, n-1}(\mathcal{M}_{\mathcal{V}}^*(\C))$, use the Hodge decomposition and the $\ddc$-lemma to write $\eta = \sum a_i \omega_i^{n-1} + \ddc \phi$ for some scalars $a_i$ and a smooth form $\phi$, so that \begin{equation} \label{eqn:SisModGrowth} [S_0(\tau,z)](\eta) \ = \ [H^*(\tau)](\phi) \ \in \ \ALmod{n}(\mathcal{S}^{\vee}). \end{equation} In particular, taking the Fourier expansion $[S_0(\tau,z)] = \sum_m [c_{S_0}(m,v)] q^m$, we find \[ \ddc [c_{S_0}(m,v)] \ = \ [c_{H^*}(m,v)] \ = \ \ddc [g_m(v,z)] , \] so for each fixed $\tau$, there is a locally constant function $a_m(\tau)$ on $\mathcal{M}_{\mathcal{V}}^*(\C)$, valued in $ \mathcal{S}^{\vee}$, such that \[ [g_m(v,z)] \ = \ [c_{S_0}(m,v)] \ + \ [ a_m(\tau)]. \] We now show that for fixed $\tau$, the sum $ \sum_m a_m(\tau) q^m $ converges to a form of at worst exponential growth (viewed as a locally constant function). Fix a component $X_i \subset \mathcal{M}_{\mathcal{V}}^*(\C)$, and a smooth differential form $\eta_0$ on $X_i$ of degree $(n-1,n-1)$. For convenience, we may choose $\eta_0$ to have compact support contained in the interior $\mathcal{M}_{\mathcal{V}}(\C) \cap X_i$, and such that \[ \int_{X_i} \eta_0 \neq 0. \] Therefore \[ a_m(\tau)|_{X_i} \cdot \int_{X_i} \eta_0 \ = \ [g_m(v,z)](\eta_0) - [c_{S_0}(m,v)](\eta_0). \] We may write (using \Cref{thm:Xitheta}) \begin{align*} [g_m(v,z)](\eta_0 ) = \int_{X_i} \langle P_{m,v} - F_m , \Theta_L \rangle^{\mathrm{reg}}\, \eta_0 \ - \ \sum_B \left( \frac{\mu_B(m)}{4 \pi v} - \eta_B(m) \right) \int_{X_i} \lie g_B \, \eta_0; \end{align*} recall that the second factor $\frac{\mu_B(m)}{4 \pi v} - \eta_B(m)$ is the $m$'th coefficient of $\Low^{\sharp}(\Theta_{B_{\Lambda}})$, so the corresponding sum on $m$ of these terms converges. On the other hand, as $\eta_0$ is compactly supported on $\mathcal{M}_{\mathcal{V}}(\C)$, an easy estimate using \Cref{cor:ArchDiffRegLift} allows us to interchange the regularization with the integral over $X_i$. As a consequence, \[ \int_{X_i} \langle P_{m,v} - F_m , \Theta_L \rangle^{\mathrm{reg}} \, \eta_0 \ = \ \langle P_{m,v} - F_m, \mathcal{I}_{\eta_0}(\tau) \rangle^{\mathrm{reg}} \ = \ m\text{'th coefficient of } \Low^{\sharp}\left(\mathcal{I}_{\eta_0}(\tau) \right), \] where \[ \mathcal{I}_{\eta_0} (\tau) := \int_{X_i} \Theta_L(\tau,z) \, \eta_0 \ \in \ \ALmod{n}(\mathcal{S}^{\vee}). \] Finally, by \eqref{eqn:SisModGrowth}, we have \[ \sum [c_{S_0}(m,v)](\eta_0) q^m = [S_0(\tau,z)](\eta_0) \in \ALmod{n}(\mathcal{S}^{\vee}), \] and so, for our choice of $\eta_0$ as above, we may write \[ \sum_m \, a_m(\tau)|_{X_i} \, q^m \ = \ \left( \int_{X_i} \eta_0 \right)^{-1} \cdot \left[ \Low^{\sharp}(\mathcal{I}_{\eta_0})(\tau) - \sum_{B} \Low^{\sharp}(\Theta_{B_{\Lambda}}) \, \int_{X_i} \lie g_B \, \eta_0 \ - \ [S_0(\tau,z)](\eta_0) \right]. \] In particular, $a(\tau) = \sum_m a_m(\tau) q^m \in \ALexp{n}(\mathcal{S}^{\vee})$, viewed as a locally constant function on $\mathcal{M}^*_{\mathcal{V}}(\C)$. Thus, setting \[ S(\tau,z) \ :=\ S_0(\tau,z) + a(\tau), \] it follows that for any smooth differential form $\eta$ on $\mathcal{M}_{\mathcal{V}}^*(\C)$, \[ \lim_{N \to \infty} \ \sum_{|m| \leq N} [g_m(\tau, v)](\eta) = [S(\tau,z)](\eta), \] and $S(\tau,z)$ satisfies the conditions in \Cref{def:ModularityDef}(ii). This concludes the proof of modularity. \end{proof} \begin{remark} \label{rmk:FormsOnSL2} (i) In very recent work, Bruinier-Howard-Kudla-Rapoport-Yang \cite{BHKRY1} establish the modularity of $\widehat\Theta_{\calV}^{\mathsf{B}}(\tau)$ when $n>2$; in conjunction with \Cref{thm:ArithModularity}, this implies the modularity of $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau)$ (see Theorem 7.4.1 of \cite{BHKRY1}). An analogous modularity statement for divisors on (the interior of) orthogonal Shimura varieties, equipped with Bruinier's Green functions, has been established by Howard-Madapusi Pera \cite{HMP}. We expect, but have not checked the details, that an analogue of \Cref{thm:ArithModularity} holds on the open Shimura variety. A major obstacle in formulating an extension to the compactification is that the analytic behaviour of both families of Green functions near the boundary is substantially more delicate than in the unitary setting; these complications are already evident in work by Berndt-K\"uhn \cite{kuehn-berndt-split}, which studied Kudla's Green functions on the Shimura variety attached to the quadratic space $(M_2(\Q),\det)$. (ii) Strictly speaking, we should view $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau)$ as a form for the group $ U(1,1)$, in order to be consistent with the philosophy that it defines an arithmetic analogue of the theta correspondence for the dual pair $(U(1,1), U(V))$. Let $V_0$ be the standard split Hermitian space over $k$ of signature (1,1) and let $\mathbf G = U(V_0)$ viewed as a group over $\Q$. Upon choosing a basis so that $V_0$ has the Hermitian form $(\begin{smallmatrix} & \delta_{\bm{k}} \\ - \delta_{\bm{k}} & \end{smallmatrix})$, it is easily seen that \[ 1 \ \to \ \SL_2 \ \to \ \mathbf G \ \to \ U(1) \ \to \ 1 \] is an exact sequence of algebraic groups over $\Q$, where $U(1)(R) \ = \ \{ x \in R \otimes_\Q {\bm{k}} \, | \, x \bar x = 1 \}$ for any $\Q$-algebra $R$. As we now explain, modular forms on $\mathbf G$ of the type we are considering are determined by their restriction to $\SL_2$. The choice of an idele class character $\eta \colon \mathbb A_k^{\times} / {\bm{k}}^{\times} \ \to \ \C^{\times}$ induces a splitting of the metaplectic cover of $\mathbf G$, and in particular determines a unitary Weil representation $\rho_{\mathbf G} = \rho_{\mathbf G, \eta}$ of $\mathbf G(\mathbb A)$ on $S(V(\mathbb A))$, see \cite{Harris-Kudla-Sweet}. If we further assume that $\eta|_{\mathbb A_{\Q}^{\times}} = (\chi_k)^{\dim V}$ where $\chi_k$ is the character attached to ${\bm{k}}/\Q$, then the restriction of $\rho_{\mathbf G}$ to $\SL_2(\mathbb A)$ coincides with the Weil representation for the dual pair $(\SL_2, O(V))$. Also note that the choice of basis for $V_0$ above gives an integral structure for $\mathbf G$, and $\mathcal S \subset S(V(\mathbb A_f))$ is stable under the action of $\mathbf G(\widehat\Z)$. Consider the maximal compact subgroup \[ K_{\infty} \ = \ \left( U(1) \times U(1) \right) (\R) \ \hookrightarrow \ \mathbf G(\R), \qquad \ (e^{i \theta}, e^{i \varphi}) \ \mapsto \ e^{i\theta} \begin{pmatrix} \cos \varphi & - \sin \varphi \\ \sin \varphi & \cos \varphi \end{pmatrix}; \] there is a bijection $\uhp \overset{\sim}{\longrightarrow} \mathbf G(\R) / K_{\infty}$ that identifies $\tau = u + i v$ with \[ g_{\tau}\ : = \ \begin{pmatrix} v^{1/2} & v^{-1/2} u \\ & v^{-1/2} \end{pmatrix}. \] Now suppose $F$ is an automorphic form for $\mathbf G$ of weight $n$, whose $K_f$-type is $(\rho_{\mathbf G}^{\vee}, \mathcal S^{\vee})$, and with central character $\eta$. In other words, $F \colon \mathbf G(\Q) \backslash \mathbf G(\mathbb A) \to \mathcal S^{\vee}$ is a function satisfying \begin{enumerate} \item $ F(z \cdot g) \ = \ \eta(z) F(g)$ for all $z \in Z(\mathbb A)$; \item $F (g \cdot k_{\infty} ) \ =\ \eta_{\infty}(e^{i\theta}) \ e^{-i n \varphi} \ F(g)$ for all $k_{\infty} = (e^{i \theta}, e^{i \varphi}) \in K_{\infty}$; and \item $ F(g\cdot k_f) \ = \ \rho_{\mathbf G}^{\vee}(k_f^{-1}) F(g) $ for all $k_f \in \mathbf G(\widehat\Z)$, \end{enumerate} along with certain analytic conditions that we ignore. If we define a map $f \colon \uhp \to \mathcal S^{\vee}$ by the formula \[ f(\tau) \ = v^{-n/2} F(g_{\tau}), \] then the conditions (i)--(iii) imply that $f$ satisfies the usual transformation law \begin{equation} \label{eqn:SL2translaw} f(\gamma \tau) \ = (c \tau + d)^n \, \rho^{\vee}(\gamma) \, f (\tau) \qquad \text{for all } \gamma \in \mathbf G(\widehat \Z) \cap \mathbf G(\Q) \ = \ \SL_2(\Z). \end{equation} In other words, $f$ transforms as a vector-valued modular form for $\SL_2(\Z)$ in the usual sense. Conversely, the fact that there is a single genus of self-dual lattices in $V_0$ implies that \[ \mathbf G(\mathbb A) \ = \ \mathbf G(\Q) \cdot \left( \mathbf G(\R) \times \mathbf G(\widehat\Z)\right); \] a straightforward, though somewhat tedious, verification then implies that any function $f$ for $\SL_2$ satisfying \eqref{eqn:SL2translaw} determines an automorphic function $F$ on $\mathbf G$ satisfying (i) - (iii) above. \end{remark} \subsection{Holomorphic projection} \label{sec:holom-proj} Suppose $\widehat\phi(\tau)$ is modular of weight $k$ in the sense of \Cref{def:ModularityDef}, so that we may write \[ \widehat\phi(\tau) \ = \ \sum_i f_i(\tau) \otimes \widehat\mathcal{Z}_i \ + \ (0, g(\tau, z)) \] for some forms $f_i(\tau)$ and $g(\tau, z)$ and arithmetic classes $\widehat\mathcal{Z}_i$. If $G \in S_k( \mathcal S^{\vee})$, we define a Petersson pairing \[ \langle \widehat\phi(\tau), G \rangle_{\mathrm{Pet}} \ := \ \sum_i \langle f_i, G \rangle_{\mathrm{Pet}} \cdot \widehat\mathcal{Z}_i \ + \ \left(0, \, \langle g(\cdot, z), G \rangle_{\mathrm{Pet}} \right) \ \in \ \ChowHatC(\mathcal{M}_V^*) \] where on the right hand side, we have the usual Petersson pairing between modular forms, and provided that all these latter pairings exist. We may relax this definition to the case where the Petersson pairings exist in the regularized sense, as in \Cref{lem:regPet}. \begin{theorem} \label{thm:arithHolProj} For every $G \in S_n(\mathcal S^{\vee})$, \[ \langle \widehat\Theta_{\calV}^{\mathsf{K}} - \widehat\Theta_{\calV}^{\mathsf{B}}, \, G \rangle^{\mathrm{reg}}_{\mathrm{Pet}} \ = \ 0 .\] In particular, the cuspidal holomorphic projections of $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau)$ and $\widehat\Theta_{\calV}^{\mathsf{B}}(\tau)$ coincide. \begin{proof} Write \[ \widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau) \ = \ - \frac{1}{4\pi} \sum_B \, [\widehat B] \otimes \Low^{\sharp}( \Theta_{\Lambda_B})(\tau) \ + \ (0, g(\tau,z)). \] By construction of the section $\Low^{\sharp}$, the terms $\Low^{\sharp}(\Theta_{\Lambda_B})$ are orthogonal to cusp forms, cf. \Cref{prop:uniquepreimage}. On the other hand, for a fixed $z \in \mathbb{D}(\mathcal{V})$, we have already seen that \[ g(\tau,z) = - \Low^{\sharp}\left(\Theta_L(\cdot,z)\right) (\tau) \] for the Siegel theta function $\Theta_L(\tau,z)$, and is therefore also orthogonal to cusp forms. \end{proof} \end{theorem} \subsection{The arithmetic height generating series} \label{sec:arithHeights} A particularly striking aspect of Kudla's programme is a set of conjectures relating certain height pairings involving arithmetic special cycles and special values of derivatives of Eisenstein series, see \cite{kudla-special-eisenstein-imrn} for an overview; these conjectures are generalizations of the Gross-Zagier theorem \cite{grosszagier} to higher dimensional Shimura varieties. Suppose $\mathcal{X}^*$ is an $n$-dimensional arithmetic variety over $o_{{\bm{k}}}$, i.e. a regular scheme, flat and proper over $o_{{\bm{k}}}$, and suppose furthermore that $\mathcal{X} \subset \mathcal{X}^*$ is a dense open subvariety such that the boundary $\partial \mathcal{X}^* = \mathcal{X}^* - \mathcal{X}$ is a divisor. As described in \cite{burgos-kramer-kuhn}, its arithmetic Chow groups (with $\log\text{-}\log$ singular Green objects along $\partial \mathcal{X}^*$) are equipped with an intersection product \[ {\widehat{\mathsf{CH}}{}^{p}_{\C}}(\mathcal{X}^*) \ \times \ {\widehat{\mathsf{CH}}{}^{q}_{\C}}(\mathcal{X}^*) \ \to \ {\widehat{\mathsf{CH}}{}^{p+q}_{\C}(\mathcal{X}^*)} \] and a pairing \[ \ChowHatC(\mathcal{X}^*) \times {\widehat{\mathsf{CH}}{}^{n-1}_{\C}}(\mathcal{X}^*) \to \C, \qquad [\widehat\mathcal{Z}_1 : \widehat\mathcal{Z}_2] \ := \ \widehat\deg \, \left(\widehat\mathcal{Z}_1 \cdot \widehat\mathcal{Z}_2 \right) \] that generalize the structures constructed by Gillet-Soul\'e \cite{gillet-soule} to the $\log\text{-}\log$ singular setting. As a special case, if $(0,g) \in \ChowHatC(\mathcal{X}^*)$ and $\widehat\mathcal{L}$ is a metrized line bundle, then \begin{equation} \label{eqn:arithIntGreenHeight} \left[(0,g) : \widehat\mathcal{L}^{n-1}\right] \ = \ \frac12 \sum_{\sigma \colon k \to \C} \ \int\limits_{\mathcal{X}^*(\C_{\sigma})} g \cdot c_1(\widehat\mathcal{L})^{\wedge n-1} . \end{equation} The authors are unaware of an arithmetic intersection theory applicable to Deligne-Mumford stacks, such as $\mathcal{M}_{\mathcal{V}}^*$, that also allows for $\log\text{-}\log$ singular Green functions. However, as this technicality is tangential to the main thrust of the present work, we will carry on assuming that such a generalization exists: \begin{hypothesis} \label{hyp:arithInt} There are well-defined products $ {\widehat{\mathsf{CH}}{}^{p}_{\C}}(\mathcal{M}_V^*) \ \times \ {\widehat{\mathsf{CH}}{}^{q}_{\C}}(\mathcal{M}_V^*) \ \to \ {\widehat{\mathsf{CH}}{}^{p+q}_{\C}(\mathcal{M}_V^*)}$ and a pairing \[ \ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \times {\widehat{\mathsf{CH}}{}^{n-1}_{\C}}(\mathcal{M}_{\mathcal{V}}^*) \to \C, \qquad [\widehat\mathcal{Z}_1 : \widehat\mathcal{Z}_2] \ := \ \widehat\deg \, \left(\widehat\mathcal{Z}_1 \cdot \widehat\mathcal{Z}_2 \right) \] such that \eqref{eqn:arithIntGreenHeight} continues to hold. \end{hypothesis} With this assumption in place, we describe the content of Kudla's conjecture. Consider the generating series \[ [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau): \widehat\omega^{n-1}] \ := \ \sum_{m} \, [\widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v) : \widehat\omega^{n-1}] \, q^m \] whose terms are obtained by pairing the special cycles against a power of the tautological bundle $\widehat\omega = \widehat\omega^{\mathsf{taut}}$. Form a generating series $[ \widehat\Theta_{\calV}^{\mathsf{B}}(\tau) : \widehat\omega^{n-1}]$ in the same way. On the other hand, consider the family of Eisenstein series $E_k(\tau,s)$, which are $\mathcal S^{\vee}$-valued forms defined as follows: for a weight $k \in \Z$ and a complex parameter $s \in \C$, define \[ E_k(\tau,s) \ = \ \sum_{\gamma \in \Gamma_{\infty} \backslash \SL_2(\Z) } \left( v^{\frac{s+1 - k}{2} } \ \varphi_{\overline{0}, o_{\bm{k}}}^{\vee} \right)\mid_k [\gamma]. \] This sum defines a holomorphic function for $\Re(s)>1$, and admits a meromorphic extension to $\C$. Strictly speaking, in what follows we should view $E_k(\tau,s)$ as a form for $U(1,1)$, but \Cref{rmk:FormsOnSL2} applies here as well. Of particular interest is the special value at $s = n-1$ of the derivative \[ E'_{n}(\tau, n-1) \ := \ \left[ \frac{\partial}{\partial s} E_n(\tau, s) \right]_{s = n-1} \] of the weight $n$ Eisenstein series. \begin{conjecture}[Kudla] \label{conj:KudlaArVol} Up to some correction terms, \[ [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau): \widehat\omega^{n-1}] \ \stackrel{?}{=} \ 2 \, \kappa \, E_n'(\tau, n-1) \ + \ \left( \begin{matrix} \text{`vertical'}\\ \text{correction terms} \end{matrix}\right) \ + \ \left( \begin{matrix} \text{'boundary'} \\ \text{correction terms} \end{matrix} \right) \] where \[ \kappa \ =\ \vol(\mathcal{M}_{\mathcal{V}}^*(\C_{\sigma}), \, \mathrm d \Omega) \ := \ \int_{\mathcal{M}_{\mathcal{V}}^*(\C)} \, \mathrm d \Omega \] is the `stacky' volume\footnote{The reader is cautioned that by our definition, $\kappa$ may be positive or negative according to the parity of $n$.} of $\mathcal{M}_{\mathcal{V}}^*(\C_{\sigma})$ with respect to the measure $\mathrm d \Omega = c_1(\widehat \omega)^{\wedge n-1}$ determined by $\widehat \omega$. \end{conjecture} Though these correction terms have not been explicitly spelled out in the literature, experience from low-dimensional settings, e.g.\ \cite{kry-special} suggest that holomorphic Eisenstein series encoding contributions arising from primes of bad reduction should appear in the formula, and \Cref{thm:DiffHeight} below suggests that contributions from the boundary also play a role. The main results of this section concern the difference $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau)$, which we write as \begin{equation}\label{eqn:arithDiff} \widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau) \ = \ - \frac{1}{4 \pi} \sum_{B \in \mathcal B_{\mathcal{V}}} \, \Low^{\sharp} \Theta_{\Lambda_B}(\tau) \otimes \widehat{[B]} \ + \ (0, g(\tau, z)) \end{equation} where $g(\tau,z)$ is as in the proof of \Cref{thm:ArithModularity}. The following theorem, which would form the archimedean component of a putative intersection pairing, shows that the integral of $g(\tau,z)$ already contributes the `main term' in \Cref{conj:KudlaArVol}. We exclude the case $n=2$ because the proof invokes the Siegel-Weil formula; we expect, though we have not checked the details, that a regularized version of the Siegel-Weil formula can be employed to prove the $n=2$ case. \begin{theorem} \label{thm:GreenInt} Suppose $n>2$. Then \[ \frac12 \sum_{\sigma \colon k \to \C} \ \int\limits_{\mathcal{M}_{\mathcal{V}}^*(\C_{\sigma})} g(\tau, z) \cdot c_1(\widehat\omega)^{n-1} \ = \ 2 \, \kappa \, E'_n(\tau, s_0) . \] \end{theorem} \begin{proof} Write $g(\tau,z) = \sum g_m(\tau,z) q^m$, where \[ g_m(\tau,z) \ = \ \mathsf{Gr}^{\mathsf{K}}(m,v)(z) \ - \ \BGr{m}(z) \ - \ \delta_{m,0} \varphi^{\vee}_{\overline{0}, o_{\bm{k}}} \, \log v \ - \ \sum_{B}\, c(m,v) \, \lie g_B(z), \] and $c(m,v)$ is the $m$'th Fourier coefficient of $\frac{-1}{4 \pi} \Low^{\sharp}\Theta_{\Lambda_B}(\tau)$. Moreover, by assumption, \[ \int_{\mathcal{M}_{\mathcal{V}}^*(\C_{\sigma})} \lie g_B \, d \Omega = 0\] for each embedding $\sigma \colon {\bm{k}} \to \C$, and so we only need to compute the integrals of $\mathsf{Gr}^{\mathsf{K}}(m,v)$ and $\BGr{m}$; here we abbreviated $d \Omega = c_1(\widehat\omega)^{n-1}$. We begin by recalling that the Green functions were obtained by the regularized integral \[ \mathsf{Gr}^{\mathsf{K}}(m,v) - \BGr{m} - \delta_{m,0}\, \varphi^{\vee}_{\overline{0}, o_{\bm{k}}} \log v = \langle P_{m,v} - F_m, \, \Theta_L \rangle^{\mathrm{reg}}. \] By \Cref{lem:IntGFTheta} below, whose proof we defer momentarily, we may interchange the integral on $\mathcal{M}^*_{\mathcal{V}}(\C_{\sigma})$ with the regularized pairing above to obtain \[ \int_{\mathcal{M}^*_{\mathcal{V}}(\C_{\sigma}) } \mathsf{Gr}^{\mathsf{K}}(m,v) - \BGr{m} \ d \Omega - \vol(\mathcal{M}_{\mathcal{V}}^*(\C_{\sigma}))\, \log(v)\, \delta_{m,0}\, \varphi_{0,o_{\bm{k}}}^{\vee} \ = \ \langle P_{m,v} \ - \ F_m , \, I(\Theta_L) \rangle^{\mathrm{reg}} \] where \[ I(\Theta_L)(\tau) \ := \ \int_{\mathcal{M}^*_{\mathcal{V}}(\C_{\sigma}) } \Theta_L(\tau,z) \, d \Omega. \] Thus \[ I(g)(\tau) := \int_{\mathcal{M}^*_{\mathcal{V}}(\C_{\sigma}) } g(\tau,z) \ d \Omega \ = \ \sum_{m} \langle P_{m,v}- F_m , \, I(\Theta_L) \rangle^{\mathrm{reg}} \, q^m. \] Then, by \Cref{cor:vectorValLSec}, \[ I(g)(\tau) \ = \ - \Low^{\sharp} \, I(\Theta_L) ; \] to conclude the proof, we need to identify $\Low^{\sharp} I(\Theta_L)$ as the derivative of the Eisenstein series. The \emph{unitary Siegel-Weil formula} \cite{ichino-SW} gives \begin{equation} \label{eqn:SeigelWeil} I(\Theta_L)(\tau) \ = \ \kappa \ E_{n-2}(\tau, n-1). \end{equation} A direct computation, most easily carried out in the ad\`elic framework as in \cite[(2.17)]{kudla-integrals}, implies \begin{equation} \label{eqn:LEisenstein} \mathbf{L}( E_k(\tau, s) ) \ = \ - \frac12 (s - (k-1)) \, E_{k-2}(\tau, s); \end{equation} the Eisenstein series $E_{n-2}(\tau,s)$ is holomorphic at $s=n-1$, and so \[ \mathbf{L}(E'_k(\tau, n-1)) \ = \ - \frac12 \, E_{n-2}(\tau, n-1) . \] Moreover, by \cite[Theorem 2.11]{kudla-integrals}, the principal part of $E'_n(\tau, n-1)$ vanishes, and $E'_n(\tau,n-1)$ can easily be seen to be orthogonal to cusp forms, by unfolding. Therefore, by the uniqueness statement in \Cref{prop:uniquepreimage}, we have identified \[ 2 \, \kappa \, E'_n(\tau, n-1) \ = \ - \Low^{\sharp}(I(\Theta_L)) \ = \ I(g)(\tau). \] Since our original formula involves half the sum over both embeddings ${\bm{k}} \hookrightarrow \C$, the theorem follows. \end{proof} As a consequence of the previous theorem and \eqref{eqn:arithDiff}, we obtain the following (putative) intersection formula: \begin{corollary} \label{thm:DiffHeight} Suppose $n>2$. Assuming the existence of a suitable intersection theory on $\mathcal{M}_{\mathcal{V}}^*$, as in \Cref{hyp:arithInt}, we have \[ [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau): \widehat{\omega}^{n-1}] \ = \ 2 \, \kappa \, E_n'(\tau, n-1) \ - \frac{1}{4 \pi} \ \sum_{B \in \mathcal B_{\mathcal{V}}} \Low^{\sharp} \Theta_{\Lambda_B}(\tau) \cdot \left[ \widehat{[B]} :\widehat \omega^{n-1} \right]. \] \qed \end{corollary} It remains to prove the following lemma: \begin{lemma} \label{lem:IntGFTheta} Suppose $n>2$. For any $m \in \Q$, we have \[ \int_{\mathcal{M}^*_{\mathcal{V}}(\C)} (\mathsf{Gr}^{\mathsf{K}}(m,w) - \BGr{m})\, d\Omega - \vol(\mathcal{M}_{\mathcal{V}}^*(\C))\, \log(w)\, \delta_{m,0}\, \varphi_{0,o_{\bm{k}}}^{\vee} = \langle P_{m,v}-F_{m}, I(\Theta_L) \rangle^{\mathrm{reg}}. \] \end{lemma} \begin{proof} We have by \Cref{cor:ArchDiffRegLift} that \begin{equation*} \mathsf{Gr}^{\mathsf{K}}(m,w)(z) -\BGr{m} - \log(w)\, \delta_{m,0}\, \varphi_0^{\vee}\ = \ \lim_{T \to \infty} \left(\int_{\mathcal{F}_T} \mathcal{F}_{m,w}(\tau) \, \Theta_L(\tau,z) \, d\mu(\tau) \ -A(T) \right), \end{equation*} with $A(T) = (\delta_{m,0}\, \varphi_0^{\vee} - \varphi_0^{\vee} \cdot c_{F_m}(0)) \, \log(T)$, and $\mathcal{F}_{m,w}(\tau) = P_{m,w}(\tau) - F_m(\tau)$. Our goal is to prove \begin{align} &\int_{\mathcal{M}_{\mathcal{V}}^*(\C) } \ (\mathsf{Gr}^{\mathsf{K}}(m,w) -\BGr{m})\ d \, \Omega \ - \vol(\mathcal{M}_{\mathcal{V}}^*(\C))\, \log(w)\, \delta_{m,0}\, \varphi_0^{\vee}\ \notag\\ =\ &\int_{\mathcal{M}_{\mathcal{V}}^*(\C) } \left(\lim_{T \to \infty} \, \int_{\mathcal{F}_T} \mathcal{F}_{m,w}(\tau) \, \Theta_L(\tau,z) \, d\mu(\tau)-A(T)\right) \ d \Omega \notag \\ \label{eqn:interchangeLemma} \stackrel{?}{=} \ &\lim_{T \to \infty}\Bigg( \, \int_{\mathcal{F}_T}\mathcal{F}_{m,w}(\tau) \, \Big( \int _{\mathcal{M}_{\mathcal{V}}^*(\C)}\Theta_L(\tau,z) d \Omega \Big) \,d\mu(\tau) -A(T)\vol(\mathcal{M}_\mathcal{V}^*(\C)) \Bigg), \notag \end{align} i.e., we need to justify the interchange of integral and limit in the third line. Write \begin{align*} \int_{\mathcal{F}_T} \mathcal{F}_{m,w}(\tau) \, & \Theta_L(\tau,z) \, d\mu(\tau) \\ =& \ \int_{\mathcal{F}_{w_0}} \, \mathcal{F}_{m,w}(\tau) \, \Theta_L(\tau,z) \, d \mu(\tau) \ + \ \int_{\mathcal{F}_T - \mathcal{F}_{v_0}} \mathcal{F}_{m,w}(\tau) \, \Theta_L(\tau,z) \, d\mu(\tau), \end{align*} where $w_0 := \max(w, 1/w)$; since $\Theta_L(\tau,z)$ is absolutely integrable on $M_\mathcal{V}(\C)$ and $\mathcal{F}_{w_0}$ is compact, \begin{align*} \int_{\mathcal{M}_{\mathcal{V}}^*(\C)} \int_{\mathcal{F}_{w_0}} \, \mathcal{F}_{m,w}(\tau) \, \Theta_L(\tau,z) \, d \mu(\tau) \, d \Omega \ =& \ \int_{\mathcal{F}_{w_0}} \int_{\mathcal{M}_{\mathcal{V}}^*(\C)} \, \mathcal{F}_{m,w}(\tau) \, \Theta_L(\tau,z) \, d \Omega \, d \mu(\tau) \\ =& \ \int_{\mathcal{F}_{w_0}} \,\mathcal{F}_{m,w}(\tau) \, I( \Theta_L)(\tau) \, d \mu(\tau). \end{align*} Therefore, in order to justify interchanging integral and limit, we need to prove that \begin{equation*} \abs{\int_{\mathcal{F}_T - \mathcal{F}_{w_0}} \, \mathcal{F}_{m,w}(\tau) \cdot \Theta_L(\tau,z) \, d \mu(\tau) -A(T)}, \end{equation*} evaluated at any basis element $\varphi_{\overline{m},\mathfrak{a}}$, is bounded by an integrable function, uniformly in $T$. We let \[ \mathcal{G}_{m,w}(\tau) = \mathcal{F}_{m,w}(\tau) - \delta_{m,0}\sum_{\mathfrak{a} \mid \diffinv{{\bm{k}}}} \varphi_{0,\mathfrak{a}}^\vee \otimes \varphi_{0,\mathfrak{a}} + c_{F_m}(0), \] which is of exponential decay; i.e. there is a constant $C>0$, s.t. $\abs{\mathcal{G}_{m,w}(\tau)(\varphi_{\overline{m},\mathfrak{a}})} \leq e^{-Cv}$ for all $\tau \in \mathcal{F}$. We obtain that \begin{align} \abs{\int_{\mathcal{F}_T - \mathcal{F}_{w_0}} \, \mathcal{G}_{m,w}(\tau) \Theta_L(\tau,z) \, d \mu(\tau)} &\leq \int_{\mathcal{F}_T - \mathcal{F}_{w_0}} \, e^{-Cv}\abs{\Theta_L(\tau,z)} \, d \mu(\tau) \notag\\ &\leq \int_{\mathcal{F}} \, e^{-Cv}\Theta_L(iv,z) \, d \mu(\tau), \label{eq:expTheta_Liv} \end{align} where we understand the inequalities again as valid after evaluating at any basis element $\varphi_{\overline{m},\mathfrak{a}}$. The function in \Cref{eq:expTheta_Liv} is integrable since, by the Siegel-Weil formula \[ \int_{\mathcal{F}} \, e^{-Cv}\int_{\mathcal{M}_{\mathcal{V}}^*(\C)}\Theta_L(iv,z)\, d \Omega \, d \mu(\tau) = \kappa\, \int_{\mathcal{F}} \, e^{-Cv}E_{n-2}(iv, n-1) \, d \mu(\tau), \] which is finite because the integrand is bounded on $\mathcal{F}$ and $\mathcal{F}$ has finite volume. The remaining term gives for $\varphi = \varphi_{\overline{m},\mathfrak{a}}$, \begin{gather*} \abs{\int_{\mathcal{F}_T - \mathcal{F}_{w_0}} \, (\delta_{m,0}\varphi_{0,\mathfrak{a}} - c_{F_{m,\varphi}}(0)) \cdot \Theta_L(\tau,z) \, d \mu(\tau) -A(T)} \\ \\ = \abs{\int_{w_0}^T \, \sum_{\substack{\lambda \in \mathfrak{a}^{-1}\mathcal{L} \\ Q(\lambda)=0}} (\delta_{m,0}\varphi_{0,\mathfrak{a}}(\lambda) - c_{F_{m, \varphi}}(0)(\lambda))e^{-4\pi R(\lambda,z)v} \frac{dv}{v} -A(T)} \\ \leq \abs{\mathsf{Gr}^{\mathsf{K}}(0,w_0)(\delta_{m,0}\varphi_{0,\mathfrak{a}} - c_{F_{m, \varphi}}(0))} \, + \delta_{\mathfrak{a}, o_{\bm{k}}}\abs{\delta_{m,0} - c_{F_{m,\varphi}}(0)(0)} \log(w_0). \end{gather*} Since $\mathsf{Gr}^{\mathsf{K}}(0,w_0)$ is a Green function (for the zero-cycle), it is integrable and this finishes the proof of the lemma. \end{proof} \subsection{A refined Bruinier-Howard-Yang theorem} \label{sec:refBHY} As a final application of our results, we describe a refined version of the main theorem of \cite{bruinier-howard-yang-unitary}; we briefly recall the setup. For an integer $m>0$, let $\mathcal M_{(m,0)}$ denote the moduli stack over $\Spec(o_{\bm{k}})$ whose $S$-points comprise the category of triples $\underline A = (A,i, \lambda)$, where: \begin{enumerate} \item $A$ is an abelian scheme of dimension $m$ over $S$ \item $i \colon o_{\bm{k}} \to \End(A)$ is an $o_{\bm{k}}$-action such that the induced action on $\Lie(A)$ coincides with the structural morphism $o_{\bm{k}} \to \mathcal{O}_S$; \item $\lambda$ is a principal polarization such that the induced Rosati involution coincides with Galois conjugation on the image $i(o_{\bm{k}})$. \end{enumerate} Similarly, we define the moduli stack $\mathcal{M}_{(0,m)}$ to be the moduli space of triples $\underline A = (A, i, \lambda)$ as above, except that the $o_{\bm{k}}$ action on $\Lie(A)$ is required to coincide with the conjugate of the structural map. By \cite[Proposition 2.1.2]{howard-unitary-2}, the spaces $\mathcal{M}_{(m,0)}$ and $\mathcal{M}_{(0,m)}$ are proper and \'etale over $\Spec(o_{\bm{k}})$, and therefore the same is true for \[ \mathcal Y \ := \ \mathcal{M}_{(1,0)} \ \times_{o_{\bm{k}}} \ \mathcal{M}_{(0,1)} \ \times_{o_{\bm{k}}} \ \mathcal{M}_{(n-1,0)}. \] For a fixed self-dual Hermitian $o_{\bm{k}}$-lattice $\Lambda$ of signature $(n-1,0)$, consider the substack $\mathcal{Y}_{\Lambda} \subset \mathcal{Y}$ defined as the locus of triples $(\underline E_0, \underline E_1, \underline B)$ such that \[ \Hom_{o_{\bm{k}}}(E_0, B) \ \simeq \ \Lambda ; \] here we view $\Hom_{o_{\bm{k}}}(E_0, B)$ as a Hermitian lattice via the formula \eqref{eqn:defHomHerm}. Note that this substack is merely a union of connected components of $\mathcal Y$, cf.\ \cite[Proposition 5.2]{bruinier-howard-yang-unitary} There is a morphism (the \emph{small CM cycle} in the terminology of \emph{op.~cit.}) \[ \mathcal Y_{\Lambda} \ \to \ \mathcal M = \mathcal{M}_{(1,0)} \times \mathcal{M}^{\text{Kr\"a}}_{(n-1,1)} \] defined, at the level of moduli, by sending a point $ ( \underline A_0, \underline A_1, \underline B) $ of $\mathcal{Y}$ to the tuple \[ (\underline A_0, \underline{A_1 \times B}, \Lie(B)); \] here the $n$-dimensional abelian variety $A_1 \times B$ is equipped with the product $o_{\bm{k}}$-action and polarization, and we view $\Lie(B) \subset \Lie(A_1 \times B)$ as a subsheaf satisfying Kr\"amer's condition as in \Cref{sec:UModProb}. Consider the restriction \[ \mathbf y \colon \ \mathcal{Y}_{\mathcal{V},\Lambda} \ \to \ \mathcal{M}_{\mathcal{V}}, \qquad \mathcal{Y}_{\mathcal{V}, \Lambda} := \ \mathcal{Y}_{\Lambda} \times_{\mathcal{M}} \mathcal{M}_{\mathcal{V}}, \] where $\mathcal{M}_{\mathcal{V}}$ is a component in the decomposition \eqref{eqn:MDecomp} indexed by a Hermitian vector space $\mathcal{V}$ of signature $(n-1,1)$; this restriction is non-empty precisely when there exists an isometric embedding $\Lambda \subset \mathcal{V}$. For the remainder of this section, fix self-dual Hermitian lattices $\Lambda_0$ and $\Lambda$ of signature $(0,1)$ and $(n-1,0)$ respectively, and set \[ \mathcal{L} \ := \ \Lambda_0 \oplus \Lambda \qquad \text{and} \qquad \mathcal{V} := \mathcal{L} \otimes_{\Z} \Q. \] Thus, by taking the pullback of an arithmetic divisor along the composition \[ \mathcal{Y}_{\mathcal{V}, \Lambda} \to \mathcal{M}_{\mathcal{V}} \subset \mathcal{M}_{\mathcal{V}}^*\] and then applying the arithmetic degree map $\widehat{\deg} \colon \ChowHatC(\mathcal{Y}_{\mathcal{V}, \Lambda}) \to \C$, we obtain the linear functional \[ [ \bullet : \mathcal{Y}_{\mathcal{V}, \Lambda} ] \colon \ChowHatC(\mathcal{M}^*_{\mathcal{V}}) \to \C, \qquad \qquad [\widehat\mathcal{Z}:\mathcal{Y}_{\mathcal{V},\Lambda}] \ = \ \widehat{\deg} \, (\mathbf y^* \widehat\mathcal{Z}). \] Note that since $\mathcal{Y}$ is proper, the subtleties involving Green functions that are $\log\text{-}\log$-singular at the boundary do not play a significant role, and this height pairing is indeed well-defined; see \cite[\S 3.1]{howard-unitary-2} for a more careful treatment of this point. The main result of \cite{bruinier-howard-yang-unitary} is a formula, originally conjectured by Bruinier-Yang \cite{bryfaltings}, relating the quantities $[\widehat\Zed_{\calV}^{\, \mathsf{B}}(m):\mathcal{Y}_{\mathcal{V},\Lambda}]$ to the special values of the derivative of a \emph{Rankin-Selberg convolution $L$-function}, defined as follows. Consider the $S(\Lambda(\mathbb A_f))^{\vee}$-valued theta function \[ \Theta_{\Lambda}(\tau) \colon \varphi \ \mapsto \ \sum_{\lambda \in \Lambda_{\Q}} \varphi(\lambda) \, q^{(\lambda, \lambda)} \qquad \text{for } \varphi \in S(\Lambda(\mathbb A_f)). \] For $g \in S_{n}(\mathcal S^{\vee})$ with Fourier coefficients $ c_g(m) \in \mathcal{S}^{\vee}$, recall that we may view $\overline{c_g(m)} \in \mathcal{S}$ as in \Cref{eqn:WeilRepDualConj}, and consider the Rankin-Selberg $L$-function \[ L(s, g, \Theta_{\Lambda}) \ := \ \frac{\Gamma(s/2 + n -1)}{(4 \pi )^{s/2 + n-1}} \, \sum_{m>0} \frac{ \left(\varphi_0^\vee \otimes c_{\Theta_{\Lambda}}(m) \right) \cdot \overline{c_g(m)} }{m^{s/2 + n -1}}. \] In the following theorem, we restrict to the case $n>2$ for convenience. As a consequence, the forms $F_m$ that were constructed in \Cref{sec:relat-non-holom}, and were used to define the cycles $\widehat\Zed_{\calV}^{\, \mathsf{B}}(m)$, coincide with the weak Maa\ss\ forms described in \cite[Lemma 3.10]{bruinier-howard-yang-unitary}. Note in particular $F_m = 0$ for $m \leq 0$. \begin{theorem}[{Bruinier-Howard-Yang, \cite[Theorem A]{bruinier-howard-yang-unitary}}] \label{thm:BHY} Suppose $n>2$. Let $f \in H_{2-n}(\mathcal{S})$. Then \[ \sum_{m \geq 0} c_f^+(-m) \cdot [\widehat\Zed_{\calV}^{\, \mathsf{B}}(m) : \mathcal{Y}_{\mathcal{V}, \Lambda}] \ = \ - \deg_{\C}(\mathcal{Y}_{ \mathcal{V}, \Lambda}(\C)) \cdot L'(0, \xi(f), \Theta_{\Lambda}). \] where $c_f^+(-m) \in \mathcal{S} $ are the coefficients of the holomorphic part of $f$, cf.\ \eqref{eqn:weakMaassDecomp}. \end{theorem} This formula follows from combining the geometric contributions (whose determination forms the bulk of \cite{bruinier-howard-yang-unitary}) with the results of \cite{bryfaltings} detailing the contributions arising from the Green functions $\BGr{m}$; if we instead consider Kudla's Green functions $\mathsf{Gr}^{\mathsf{K}}(m,v)$, we arrive at the following refinement. For each weight $k$, there is an Eisenstein series \[ E_{k, \Lambda_{0}}(\tau,s) \ := \ \sum_{\gamma \in \Gamma_{\infty} \backslash \SL_2(\Z) } \left( v^{s/2+k-1} \varphi_0^\vee \right) \Big\vert_{k} [\gamma] \ = \ \sum_{\gamma \in \Gamma_{\infty} \backslash \SL_2(\Z) } \frac{\Im(\gamma \tau)^{s/2+k-1}}{(c\tau + d)^k} \, \rho_{\Lambda_0}^{\vee}(\gamma)^{-1} \cdot \varphi_0^\vee \] valued in $S(\Lambda_{0,\mathbb A_f})^{\vee}$. We may then view \[ E_{k,\Lambda_0}(\tau,s) \otimes \Theta_{\Lambda}(\tau) \] as an $\mathcal{S}^{\vee}$-valued modular form, of weight $k+n-1$, by pulling back via \[ \mathcal{S} \ \subset \ S(\mathcal{L}) \ \simeq \ S(\Lambda_0) \otimes_{\C} S(\Lambda)\ \subset \ S(\Lambda_{0,\mathbb A_f}) \otimes_{\C} S(\Lambda(\mathbb A_f)). \] \begin{theorem} \label{thm:refBHY} For any $n \geq 1$, consider the $\mathcal{S}^{\vee}$-valued generating series \[ [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau): \mathcal{Y}] \ := \ \sum_m \ [\widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v):\mathcal{Y}] \ q^m, \] where we have abbreviated $\mathcal{Y} = \mathcal{Y}_{\mathcal{V}, \Lambda}$. Then \[ [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) : \mathcal{Y}] = - \deg_{\C}(\mathcal{Y}(\C)) \ E_{1,\Lambda_0}'(\tau,0) \otimes \Theta_{\Lambda}(\tau). \] \begin{proof} First suppose $m \in \Q$ with $m \neq 0$, and decompose \[ [ \widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v) : \mathcal{Y} ] \ = \ [ \mathcal{Z}(m) : \mathcal{Y}]_{\mathsf{fin}} \ + \ \mathsf{Gr}^{\mathsf{K}}(m,v)(\mathcal{Y}(\C)) \] into the geometric and archimedean contributions, the latter given by the weighted sum of the values of $\mathsf{Gr}^{\mathsf{K}}(m,v)$ at the points comprising $\mathcal{Y}(\C)\subset\mathcal{M}_{\mathcal{V}}(\C)$. Note that as $\mathcal{Y} $ is disjoint from the boundary $\partial \mathcal{M}^*_{\mathcal{V}}$, the boundary components of $\widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v)$ play no role. Recall the complex uniformization \[ \mathcal{M}_{\mathcal{V}}(\C) \ = \ \coprod_{[\mathcal{L}_0, \mathcal{L}_1]} \ \left[ \Gamma_{[\mathcal{L}_0, \mathcal{L}_1]} \ \big\backslash \ \mathbb{D}(\mathcal{V}) \right] \] as in \eqref{eqn:MCpxUnif}, where the union is taken over isomorphism classes of pairs $(\mathcal{L}_0, \mathcal{L}_1)$ of self-dual Hermitian lattices of signature $(1,0)$ and $(n-1,1)$ respectively, and such that $\mathcal{V} \simeq \Hom(\mathcal{L}_0, \mathcal{L}_1)_{\Q}$. This can also be expressed as follows: note that for a fixed $L_0$, the collection of lattices $\{ \Hom(\mathcal{L}_0, \mathcal{L}_1)\}$ obtained by varying $\mathcal{L}_1$ is simply the set of isomorphism classes of self-dual lattices $\{ \mathcal{L}' \subset \mathcal{V} \}$. Since $d_{\bm{k}}$ is odd, there is a single genus of such lattices \cite{jacobowitz}, and so \eqref{eqn:MCpxUnif} may be rewritten as \begin{equation} \label{eqn:MNewCpxUnif} \mathcal{M}_{\mathcal{V}}(\C) \ = \ \coprod_{[\mathcal{L}_0]} \ \left[ \left( o_{k}^{\times} \times U_{\mathcal{V}}(\Q) \right) \ \Big\backslash \ \mathbb{D}(\mathcal{V}) \times U_{\mathcal{V}}(\mathbb A_f) \ \Big/ \ K_{\mathcal{L}} \right] , \end{equation} where $\mathcal{L} = \Lambda_0 \oplus \Lambda \subset \mathcal{V}$ is our previously fixed lattice, $K_{\mathcal{L}} = \mathrm{Stab}(\mathcal{L} \otimes_{\Z} \widehat\Z) \subset U_{\mathcal{V}}(\mathbb A_f)$, and the factor $o_{\bm{k}}^{\times}$ acts trivially. On the other hand, the complex points $\mathcal{Y}(\C)$ can be written as a disjoint union of $\#\{ [L_0]\}$ many copies \[ \mathcal{Y}(\C) \ = \ \coprod_{[L_0]} \left[ \left( o_{\bm{k}}^{\times} \times \Aut(\Lambda) \times U_{\Lambda_0}(\Q) \right) \ \Big\backslash \ \{ \mathtt z_0 \} \times U_{\Lambda_0}(\mathbb A_f) \ \Big/ \ K_{\Lambda_0} \right] \] where $\mathtt z_0$ is the negative definite line \[ \mathtt z_0 \ = \ \Lambda_0 \otimes_{\Z} \R \ = \ \Lambda^{\perp} \ \in \ \mathbb{D}(\mathcal{V}), \] and \[ K_{\Lambda_0} \ = \ \mathrm{Stab}(\Lambda_0 \otimes \widehat \Z) \ \subset \ U_{\Lambda_0}(\mathbb A_f), \] and $o_{\bm{k}}^{\times} \times \Aut(\Lambda)$ acts trivially. In these terms, the map $\mathcal{Y}(\C) \to \mathcal{M}_{\mathcal{V}}(\C)$ is given, on each component indexed by an $[L_0]$, by the map \[ [\mathtt z_0, h_0] \ \mapsto \ \left[ \mathtt z_0, (\sm{ h_0 & \\ & \mathsf{Id}_{\Lambda}}) \right] ; \] all these facts may be inferred from the discussion in \cite[\S 5.3]{bruinier-howard-yang-unitary}. In particular, noting that the cardinality of the automorphism group of each point of $\mathcal{Y}(\C)$ is the same, the (stacky) degree is given by \begin{align*} \deg(\mathcal{Y}(\C)) \ =& \ \sum_{[\mathcal{L}_0]} \ \frac{1}{|o_{\bm{k}}^{\times}| \cdot | \Aut(\Lambda)|} \cdot \frac{1}{\# U_{\Lambda_0}(\Q) \cap K_{\Lambda_0}} \# \left( U_{\Lambda_0}(\Q) \backslash U_{\Lambda_0}(\mathbb A_f) / K_{\Lambda_0} \right) \\ =& \frac{\# \{[\mathcal{L}_0]\}}{|o_{\bm{k}}^{\times}|^2 \cdot |\Aut(\Lambda)|} \cdot \# \left( U_{\Lambda_0}(\Q) \backslash U_{\Lambda_0}(\mathbb A_f) / K_{\Lambda_0} \right). \end{align*} In fact, this quantity is equal to $\frac{2^{1- o(d_{\bm{k}})} h_k^2}{|o_{\bm{k}}^{\times}|^2 |\Aut(\Lambda)|}$, but we will not need this fact. The values of $\mathsf{Gr}^{\mathsf{K}}(m,v)$ may be re-expressed in terms of the uniformization \eqref{eqn:MNewCpxUnif} as follows. Extend the Siegel theta function, as in \eqref{eq:siegeltheta}, to an $ S(\mathcal{V}(\mathbb A_f))^{\vee}$-valued function, by setting \[ \Theta_{\mathcal{V}}(\tau', [z,h])(\varphi) \ := \ v' \, \sum_{x \in \mathcal{V}} \varphi(h^{-1} x) \, e^{-2 \pi v' R(x, z)} \, q'^{(x,x)} \] for a Schwartz function $\varphi \in S(\mathcal{V}(\mathbb A_f))$ and a pair $(z,h) \in \mathbb{D}(\mathcal{V}) \times U_{\mathcal{V}}(\mathbb A_f)$. If $\varphi$ is $K_{\mathcal{L}}$-invariant, then this construction yields a well-defined function on (each component of) the right hand side of \eqref{eqn:MNewCpxUnif}. Now suppose $\varphi \ \in \ \mathcal{S}$, which we may view as a Schwartz function in $ S(\mathcal{V}(\mathbb A_f))^{K_{\mathcal{L}}} $. Then the truncated Poincar\'e series $P_{m,v, \varphi}$ takes values in $ S(\mathcal{V}(\mathbb A_f))^{K_{\mathcal{L}}} $ as well, and, by tracing through the definition of $\mathsf{Gr}^{\mathsf{K}}(m,v)$ in \Cref{sec:arithChow} and applying \Cref{lem:xireg} and \Cref{thm:Xitheta} gives \begin{align*} \mathsf{Gr}^{\mathsf{K}}(m,v)([z,h])(\varphi) \ &= \ \left\langle P_{m,v, \varphi} , \ \Theta_{\mathcal{V}}(\cdot, [z,h]) \right\rangle^{\mathrm{reg}} \\ &= \ \lim_{T \to \infty} \int_{\mathcal{F}_T} \, P_{m,v,\varphi}(\tau') \cdot \Theta_{\mathcal{V}}(\tau', [z,h]) \, d \mu(\tau') \ - \ S_m([z,h])(\varphi) \cdot \log T \end{align*} on each component in \eqref{eqn:MNewCpxUnif}; here \[ S_m([z,h])(\varphi) \ := \ \sum_{\substack{ x \in z^{\perp} \cap \mathcal{V} \\(x,x)=m}} \varphi( h^{-1} x) . \] We now consider evaluating at a point in $\mathcal{Y}(\C)$. Supposing \[ \varphi = \varphi_0 \otimes \varphi_1 \in S(\mathcal{V}(\mathbb A_f)) \simeq S(\Lambda_0( \mathbb A_f)) \otimes S(\Lambda(\mathbb A_f)) , \] it follows immediately from definitions that upon evaluating at a point in $\mathcal{Y}(\C)$, the Siegel theta function decomposes as \[ \Theta_{\mathcal{V}}(\tau', [\mathtt z_0, (\sm{h_0&\\& 1})])(\varphi) \ = \ \Theta_{\Lambda_0}(\tau')(\varphi_0\circ h_0^{-1}) \ \cdot \ \Theta_{\Lambda}(\tau')( \varphi_1 ) \] where $\Theta_{\Lambda}(\tau')$ is the weight $n-1$ theta function attached to $\Lambda$, and \[ \Theta_{\Lambda_0}(\tau')(\varphi_0 \circ h_0^{-1}) \ = \ v' \sum_{a \in \Lambda_{0,\Q} } \ \varphi_0(h_0^{-1}a) \, e^{2 \pi v' Q(a) } \, e^{2 \pi i \tau' Q(a) } \ = \ v' \sum_a \, \varphi_0( h_0^{-1}a) \, e^{2 \pi i Q(a) \overline{\tau'}} \] is the (non-holomorphic) Siegel theta function of weight $-1$ attached to the signature $(0,1)$ Hermitian space $\Lambda_{0,\Q}$. The \emph{Siegel-Weil formula} for $\Lambda_{0,\Q}$, cf.\ \cite[Proposition 6.2]{ichinoSWreg}, then implies \[ \int_{U_{\Lambda_0}(\Q) \backslash U_{\Lambda_0}(\mathbb A_f)} \, \Theta_{\Lambda_0}(\tau')( \varphi_0 \circ h_0^{-1}) \, d h_0 \ = \ \frac12 \ E_{-1, \Lambda_0}(\tau', 0) (\varphi_0) \] where $d h_0$ is the Haar measure normalized so that $\mathrm{vol}(U_{\Lambda_0}(\Q) \backslash U_{\Lambda_0}(\mathbb A_f))=1$. If we further assume that $\varphi_0$ is $K_{\Lambda_0}$-invariant, then summing over a set of representatives \[ h_{0,1}, \dots, h_{0,t} \ \in \ U_{\Lambda_0}(\Q) \backslash U_{\Lambda_0}(\mathbb A_f) / K_{\Lambda_0} \] gives \begin{align*} \sum_{i} \Theta_{\Lambda_0}(\tau')(\varphi_0 \circ h_{0,i}) \ =& \ \frac{\#(U_{\Lambda_0}(\Q) \cap K_{\Lambda_0})}{\vol(K_{\Lambda_0})} \cdot \int\limits_{U_{\Lambda_0}(\Q) \backslash U_{\Lambda_0}(\mathbb A_f)} \, \Theta_{\Lambda_0}(\tau')( \varphi_0 \circ h_0^{-1}) \, d h_0 \\ =& \ \# \left( U_{\Lambda_0}(\Q) \backslash U_{\Lambda_0}(\mathbb A_f) / K_{\Lambda_0} \right) \ \cdot \ \frac12 \ E_{-1, \Lambda_0}(\tau', 0) (\varphi_0). \end{align*} Putting everything together, and keeping track of automorphisms, \begin{align*} \Theta_{\mathcal{V}}(\mathcal{Y}(\C)) \ =& \ \frac{\#{[\mathcal{L}_0]}}{|o_{\bm{k}}^{\times}| \cdot |\Aut(\Lambda)|} \, \frac1{\#(U_{\Lambda_0}(\Q) \cap K_{\Lambda_0})} \sum_{i} \Theta_{\mathcal{V}}(\tau',[\mathtt z_0, (\sm{h_{0,i} & \\ & 1 })]) \\ =& \ \frac{\deg(\mathcal{Y}(\C))}{2} \ \left( E_{-1,\Lambda_0}(\tau', 0) \otimes \Theta_{\Lambda}(\tau') \right) \end{align*} as linear functionals on $(S(\Lambda_0(\mathbb A_f)) \otimes S(\Lambda(\mathbb A_f))^{K_{\Lambda_0} \times K_{\Lambda}} $. Note that if $\varphi = \varphi_0 \otimes \varphi_1$, then \[ S_m([\mathtt z_0, (\sm{h_0 & \\ & 1})])(\varphi_0\otimes\varphi_1) \ = \ \varphi_0(0) \cdot \sum_{\substack{x \in \Lambda_{\Q} \\ (x,x) = m}} \, \varphi_1(x) \ = \ \varphi_0(0) \cdot c_{\Theta_{\Lambda}}(m)(\varphi_1). \] Therefore we obtain \begin{align*} \frac{\mathsf{Gr}^{\mathsf{K}}(m,v)(\mathcal{Y}(\C))}{ \deg(\mathcal{Y}(\C))} = \lim_{T\to \infty} \bigg( &\frac{1}{2} \int_{\mathcal{F}_T}P_{m,v}(\tau') \cdot \left(E_{-1,\Lambda_0}(\tau',0) \otimes \Theta_{\Lambda}(\tau')\right) d \mu(\tau') \\ &- \left(\varphi_0^\vee \otimes c_{\Theta_{\Lambda}}(m) \right)\log T \bigg). \end{align*} In order to evaluate this integral, note that the relation \eqref{eqn:LEisenstein} implies, in the same way as in \Cref{thm:DiffHeight}, that \[ L\left( E'_{1, \Lambda_0}(\tau',0) \right) \ = - \frac12 \,E_{-1, \Lambda_0}(\tau',0) \] and so, since $\Theta_{\Lambda}$ is holomorphic, \[ L\left( E'_{1, \Lambda_0}(\tau',0) \otimes \Theta_{\Lambda}(\tau') \right) \ = - \frac12 \,E_{-1, \Lambda_0}(\tau',0) \otimes \Theta_{\Lambda}(\tau'). \] This in turn implies that \[ d( E'_{1, \Lambda_0}(\tau',0) \otimes \Theta_{\Lambda}(\tau') \, d\tau') \ = \ \frac12 \, E_{-1, \Lambda_0}(\tau',0) \otimes \Theta_{\Lambda}(\tau') \ d\mu(\tau'), \] and so, unfolding the Poincar\'e series as in the proof of \Cref{thm:MaassSection}, cf.\ \eqref{eqn:TPunfoldfinal}, we find that for $T \gg 0$, \[ \int_{\mathcal{F}_T} P_{m,v}(\tau') \left( E_{-1,\Lambda_0}(\tau',0) \otimes \Theta_{\Lambda}(\tau') \right) d \mu(\tau') \ = \ 2 \left( c_{E'\otimes\Theta_{\Lambda}}(m,T) - c_{E'\otimes\Theta_{\Lambda}}(m,v) \right), \] where we abbreviated $E'_{1, \Lambda_0}(\tau',0) \otimes \Theta_{\Lambda} = E' \otimes \Theta_{\Lambda}$. Thus \[ \frac{\mathsf{Gr}^{\mathsf{K}}(m,v)(\mathcal{Y}(\C))}{\deg(\mathcal{Y}(\C))}\ = \ - c_{E' \otimes \Theta_{\Lambda}}(m,v) \ + \ \lim_{T \to \infty} \left( c_{E' \otimes \Theta_{\Lambda}} (m, T) - \varphi_0^\vee \otimes c_{\Theta_{\Lambda}}(m) \cdot \log T \right). \] On the other hand, the essence of the main theorem of \cite{bruinier-howard-yang-unitary} is the computation of the finite intersection $[\mathcal{Z}(m): \mathcal{Y}]_{\mathsf{fin}}$, which, after a straightforward translation, can be expressed as \[ [ \mathcal{Z}(m): \mathcal{Y}]_{\mathsf{fin}} \ = \ - \deg(\mathcal{Y})(\C) \cdot \lim_{T \to \infty} \left( c_{E' \otimes \Theta_{\Lambda}} (m, T) - \varphi_0^\vee \otimes c_{\Theta_{\Lambda}}(m) \cdot \log T \right) . \] Thus, \[ [\widehat\Zed_{\calV}^{\, \mathsf{K}}(m,v): \mathcal{Y}] \ = \ \mathsf{Gr}^{\mathsf{K}}(m,v)(\mathcal{Y}(\C)) \ + \ [\mathcal{Z}(m): \mathcal{Y}]_{\mathsf{fin}} \ = \ - \deg(\mathcal{Y}(\C)) \, c_{E' \otimes \Theta_{\Lambda}}(m,v) \] as required. Turning to the $m=0$ term, by definition \[ [ \widehat\Zed_{\calV}^{\, \mathsf{K}}(0,v) : \mathcal{Y} ] \ = \ - [ \widehat\omega : \mathcal{Y}]\, \varphi_0^{\vee} \ + \ \left( \mathsf{Gr}^{\mathsf{K}}(0,v) - \log v \otimes \varphi_0^{\vee} \right) (\mathcal{Y}(\C)). \] A similar argument as above yields \begin{align*} \frac{\left( \mathsf{Gr}^{\mathsf{K}}(0,v) - \log v \otimes \varphi_0^{\vee} \right) (\mathcal{Y}(\C))}{\deg(\mathcal{Y}(\C))} \ = \ - & c_{E' \otimes \Theta_{\Lambda}} (0,v) \\ &+ \ \lim_{T \to \infty} \left( c_{E' \otimes \Theta_{\Lambda}} (0, T) - \varphi_0^\vee \otimes c_{\Theta_{\Lambda}}(0) \cdot \log T \right). \end{align*} On the other hand, translating \cite[Theorem 6.4]{bruinier-howard-yang-unitary} into our notation gives \[ [ \widehat \omega : \mathcal{Y}] \, \varphi_0^{\vee} \ = \ \deg_{\C}(\mathcal{Y}(\C)) \cdot \lim_{T \to \infty} \left( c_{E' \otimes \Theta_{\Lambda}} (0, T) - \varphi_0^\vee \otimes c_{\Theta_{\Lambda}}(0) \cdot \log T \right); \] this relation follows from the Chowla-Selberg formula and the choice of the metric on $\widehat \omega$. Thus \[ [ \widehat\Zed_{\calV}^{\, \mathsf{K}}(0,v):\mathcal{Y} ] \ = \ c_{E'\otimes \Theta_{\Lambda}}(0,v) \] as required. \end{proof} \end{theorem} \begin{remark}{\ } \emph{(i)} We explain how \Cref{thm:BHY} follows from \Cref{thm:refBHY}. Suppose that $n>2$, and recall that the difference $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau)$ is modular of weight $n$, valued in $\ChowHatC(\mathcal{M}_{\mathcal{V}}^*) \otimes_{\C} \mathcal{S}^{\vee}$. As \Cref{thm:refBHY} shows that $[\widehat\Theta_{\calV}^{\mathsf{K}}(\tau):\mathcal{Y}_{\mathcal{V}, \Lambda}]$ is modular, it follows that \[ [\widehat\Theta_{\calV}^{\mathsf{B}}(\tau) : \mathcal{Y}_{\mathcal{V}, \Lambda}] \ := \ \sum_{m \geq 0} [ \widehat\Zed_{\calV}^{\, \mathsf{B}}(m) : \mathcal{Y}_{\mathcal{V}, \Lambda}] \, q^m \] is a (holomorphic) modular form as well. Moreover, since $\widehat\Theta_{\calV}^{\mathsf{K}}(\tau) - \widehat\Theta_{\calV}^{\mathsf{B}}(\tau)$ has trivial cuspidal holomorphic projection, cf.\ \Cref{thm:arithHolProj}, \[ \left\langle [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau):\mathcal{Y}_{\mathcal{V}, \Lambda}] , \ g \right\rangle_{\mathrm{Pet}}^{\mathrm{reg}} \ = \ \left\langle [\widehat\Theta_{\calV}^{\mathsf{B}}(\tau):\mathcal{Y}_{\mathcal{V}, \Lambda}] , \ g \right\rangle_{\mathrm{Pet}}^{\mathrm{reg}} \] for every cusp form $g \in S_n(\mathcal{S}^{\vee})$. By \Cref{thm:refBHY}, the left hand side is \begin{align*} \left\langle [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau):\mathcal{Y}_{\mathcal{V}, \Lambda}] , \ g \right\rangle_{\mathrm{Pet}}^{\mathrm{reg}} \ =& \ - \deg(\mathcal{Y}_{\mathcal{V}, \Lambda}(\C)) \int_{\SL_2(\Z) \backslash \uhp} \left( E'_{1,\Lambda_0}(\tau,0) \otimes \Theta_{\Lambda}(\tau) \right)\cdot \overline{g(\tau)} \ v^{n} \ d\mu(\tau) . \end{align*} Applying the standard unfolding argument for the Eisenstein series $E_{1,\Lambda_0}(\tau, s)$ for $\Re(s) \gg 0$ gives \begin{align*} \int_{\SL_2(\Z) \backslash \uhp} \left( E_{1,\Lambda_0}(\tau,s) \otimes \Theta_{\Lambda}(\tau) \right)\cdot \overline{g(\tau)} \ v^{n} \ d\mu(\tau) \ = \ L(s, g, \Theta_{\Lambda}), \end{align*} so \begin{equation} \label{eqn:refBYKudla} \left\langle [\widehat\Theta_{\calV}^{\mathsf{K}}(\tau):\mathcal{Y}_{\mathcal{V},\Lambda}] , \ g \right\rangle_{\mathrm{Pet}}^{\mathrm{reg}} \ = \ - \deg(\mathcal{Y}_{\mathcal{V},\Lambda}(\C)) \, L'(0, g, \Theta_{\Lambda}). \end{equation} On the other hand, if \[ H(\tau) \ = \ \sum_{m \geq 0} \ c_H(m) q^m \ \in \ M_n(\mathcal S^{\vee}) \] is any holomorphic modular form and $g = \xi(f) \in S_n(\mathcal S^{\vee})$ for some $f \in H_{2-n}(\mathcal S)$, then \cite[Proposition 3.5]{brfu06} gives \[ \langle H, \, g \rangle^{\mathrm{reg}}_{\mathrm{Pet}} \ = \ \sum_{m \geq 0} c_H(m) \cdot c^+_f(-m) \] where $c^+_f(-m)$ are the coefficients of non-positive index of the holomorphic part of $f$, cf.\ \Cref{sec:modforms}. Applying this observation to the form $H(\tau) = [\widehat\Theta_{\calV}^{\mathsf{B}}(\tau):\mathcal{Y}_{\mathcal{V}, \Lambda}]$ gives \[ \left\langle [\widehat\Theta_{\calV}^{\mathsf{B}}(\tau):\mathcal{Y}_{\mathcal{V},\Lambda}] , \ g \right\rangle_{\mathrm{Pet}}^{\mathrm{reg}} \ = \ \sum_{m \geq 0} c_f^+(-m) \cdot [\widehat\Zed_{\calV}^{\, \mathsf{B}}(m):\mathcal{Y}_{\mathcal{V},\Lambda}] . \] Equating this expression with \eqref{eqn:refBYKudla} then yields \Cref{thm:BHY}. \emph{(ii)} The analogue of \Cref{thm:BHY} for orthogonal Shimura varieties of signature $(n,2)$ has been formulated and proven by Andreatta-Goren-Howard-Madapusi Pera \cite{AGHMP-orthogonal}. The corresponding version of \Cref{thm:refBHY} is also true, and can be proven in exactly the same way by employing the finite intersection calculation of \emph{op.~cit.} A version of this result can also be formulated, and proved in the same manner, for \emph{big CM cycles}, using the finite intersection calculations appearing in \cite{AGHMP-bigCM}. \end{remark} \printbibliography \end{document}
\section{Introduction} All graphs considered in this paper are finite, and have no loops or parallel edges. We begin with some definitions. Let $G$ be a graph. The \dfn{complement} $\overline{G}$ of $G$ is the graph with vertex set $V(G)$, such that two vertices are adjacent in $G$ if and only if they are non-adjacent in $\overline{G}$. A \dfn{clique} in $G$ is a set of vertices all pairwise adjacent. A \dfn{stable set} in $G$ is a set of vertices all pairwise non-adjacent. We use $\chi(G)$, $\omega(G)$, and $\alpha(G)$ to denote the chromatic number, the clique number, and the independence number of $G$, respectively. Given a graph $H$, we say that $G$ is \dfn{$H$-free} if $G$ has no induced subgraph isomorphic to $H$. For a family $\mathcal{F}$ of graphs, we say that $G$ is $\mathcal{F}$-free if $G$ is $F$-free for every $F\in \mathcal{F}$. A graph $H$ is a \dfn{minor} of a graph $G$ if $H$ can be obtained from a subgraph of $G$ by contracting edges. In those circumstances we also say that $G$ has an $H$ \dfn{minor}. \medskip In 1943, Hadwiger~\cite{had} conjectured that for every integer $t\ge0$, every graph either can be $t$-colored or has a $K_{t+1}$ minor. Hadwiger's conjecture is perhaps the most famous conjecture in graph theory, as pointed out by Paul Seymour in his recent survey~\cite{Seymour}. It suggests a far reaching generalization of the Four Color Theorem~\cite{4ct1,4ct2,4ct3}. Hadwiger's conjecture is trivially true for $t\le2$, and reasonably easy for $t=3$, as shown by Dirac~\cite{Dirac1952}. However, for $t\ge4$, Hadwiger's conjecture implies the Four Color Theorem. Wagner~\cite{wagner} proved that the case $t=4$ of Hadwiger's conjecture is, in fact, equivalent to the Four Color Theorem, and the same was shown for $t=5$ by Robertson, Seymour, and Thomas~\cite{RST} in 1993. Hadwiger's conjecture remains open for $t\ge6$. As pointed out by Paul Seymour~\cite{Seymour} in his recent survey on Hadwiger's conjecture, proving that graphs with no $K_7$ minor are $6$-colourable is thus the first case of Hadwiger's conjecture that is still open. It is not even known yet whether every graph with no $K_7$ minor is $7$-colorable. Kawarabayashi and Toft~\cite{kt} proved that every graph with no $K_7$ or $K_{4,\, 4}$ minor is $6$-colorable. Jakobsen~\cite{Jakobsen1972, Jakobsen1983} proved that every graph with no $K_7^{=}$ minor is $6$-colorable and every graph with no $K_7^{-}$ minor is $7$-colorable, where for any integer $p>0$, $K_p^{-}$ (resp. $K_p^{=}$) denotes the graph obtained from $K_p$ by removing one edge (resp. two edges). Recently Albar and Gon\c calves~\cite{AG2015} proved that every graph with no $K_7$ minor is $8$-colorable and every graph with no $K_8$ minor is $10$-colorable. Their proof is computer-assisted. In~\cite{roleksong2}, Rolek and the first author obtained a short and computer-free proof of Albar and Gon\c calves' results and extended it to the next step by showing that every graph with no $K_9$ minor is $12$-colorable. Rolek and Song~\cite{roleksong2} also proved that every graph with no $K_8^=$ minor is $8$-colorable and every graph with no $K_8^-$ minor is $9$-colorable. For more information on Hadwiger's conjecture, the readers are referred to an earlier survey by Toft~\cite{Toft} and a very recent informative survey due to Seymour~\cite{Seymour}. \medskip Hadwiger's conjecture has also been verified to be true for some special classes of graphs. In 2004, Reed and Seymour~\cite{rs2004} proved that Hadwiger's conjecture holds for line graphs (possibly with parallel edges). A graph $G$ is a \dfn{quasi-line graph} if for every vertex $v$, the set of neighbors of $v$ can be covered by two cliques, namely the vertex set of the neighborhood of $v$ can be partitioned into two cliques. A graph $G$ is \dfn{claw-free} if $G$ does not contain $K_{1,3}$ as an induced subgraph. It is easy to verify that the class of line graphs is a proper subset of the class of quasi-line graphs, and the class of quasi-line graphs is a proper subset of the class of claw-free graphs. Recently quasi-line graphs attracted more attention, see~\cite{CP, CF2007, CF2008, ELTquasi}. In particular, Chudnovsky and Seymour~\cite{CP} gave a constructive characterization of quasi-line graphs; Chudnovsky and Fradkin~\cite{CF2008, CF2010} proved in 2008 that Hadwiger's conjecture holds for quasi-line graphs and proved in 2010 that if $G$ is claw-free, then $G$ contains a clique minor of size at least $\lceil\frac{2}3\chi(G)\rceil$. \medskip One particular interesting case of Hadwiger's conjecture is when graphs have independence number two. It has attracted more attention recently (see Section~4 in Seymour's survery~\cite{Seymour} for more information). As stated in his survey, Seymour believes that if Hadwiger's conjecture is true for graphs $G$ with $\alpha(G)=2$, then it is probably true in general. Plummer, Stiebitz, and Toft~\cite{pst} proved that Hadwiger's conjecture holds for every $H$-free graph $G$ with $\alpha(G)=2$, where $H$ is any graph on four vertices and $\alpha(H)=2$. Later, Kriesell~\cite{kriesell} extended their result and proved that Hadwiger's conjecture holds for every $H$-free graph $G$ with $\alpha(G)=2$, where $H$ is any graph on five vertices and $\alpha(H)=2$. \medskip One strengthening of Hadwiger's conjecture is to consider the odd-minor variant of Hadwiger's conjecture. We say that a graph $G$ has an \dfn{odd clique minor} of size at least $k$ if there are $k$ vertex-disjoint trees in $G$ such that every two of them are joined by an edge, and in addition, all the vertices of the trees are two-colored in such a way that the edges within the trees are bichromatic, but the edges between trees are monochromatic (and hence the vertices of all trivial trees must receive the same color, where a tree is \dfn{trivial} if it has one vertex only). We say that $G$ has an \dfn{odd $K_k$ minor} if $G$ has an odd clique minor of size at least $k$. It is easy to see that any graph that has an odd $K_k$ minor certainly contains $K_k$ as a minor. \medskip Gerards and Seymour (see \cite{jt}, page 115.) proposed a well-known strengthening of Hadwiger's conjecture: for every integer $t\ge0$, every graph either can be $t$-colored or has an odd $K_{t+1}$ minor. This conjecture is referred to as ``the odd Hadwiger's conjecture". The odd Hadwiger's conjecture is substantially stronger than Hadwiger's Conjecture. It is trivially true for $t\le 2$. The case $t=3$ was proved by Catlin~\cite{catlin} in 1978. Guenin~\cite{guenin} announced at a meeting in Oberwolfach in 2005 a solution of the case $t=4$. It remains open for $t\ge5$. Kawarabayashi and the first author~\cite{ks2} proved that every graph $G$ on $n$ vertices with $\alpha(G)\ge2$ has an odd clique minor of size at least $\lceil n/(2\alpha(G)-1)\rceil$. For more information on the odd Hadwiger's conjecture, the readers are referred to the very recent survey of Seymour~\cite{Seymour}. \medskip In this paper, we establish more evidence for Hadwiger's conjecture and the odd Hadwiger's conjecture. We first prove that if a graph $G$ with independence number $\alpha(G)$ has no induced cycles of length between $4$ and $2\alpha(G)$, then $G$ satisfies the odd Hadwiger's conjecture. We then prove that if a graph $G$ with independence number $\alpha(G)\ge3$ has no induced cycles of length between $4$ and $2\alpha(G)-1$, then $G$ satisfies Hadwiger's conjecture. We prove these two results in Section 2.\medskip We need to introduce more notation. Given a graph $G$, the \dfn{Hadwiger number} (resp. \dfn{odd Hadwiger number}) of $G$, denoted by $h(G)$ (resp. $oh(G)$), is the largest integer $k$ such that $G$ contains the complete graph $K_k$ as a minor (resp. an odd minor). We use $|G|$, $\delta(G)$, and $\Delta(G)$ to denote the number of vertices, the minimum degree, and the maximum degree of $G$, respectively. Given vertex sets $A, B \subseteq V(G)$, we say that $A$ is \dfn{complete to} (resp. \dfn{anti-complete to}) $B$ if for every $a \in A$ and every $b \in B$, $ab \in E(G)$ (resp. $ab \notin E(G)$). The subgraph of $G$ induced by $A$, denoted $G[A]$, is the graph with vertex set $A$ and edge set $\{xy \in E(G) : x, y \in A\}$. We denote by $G \backslash A$ the subgraph of $G$ induced on $V(G) \backslash A$. If $A = \{a\}$, we simply write $G \backslash a$. An \dfn{$(A,B)$-path} of $G$ is a path with one end in $A$, the other end in $B$, and no internal vertices in $A\cup B$. A graph $G$ is \dfn{$t$-critical} if $\chi(G)=t$ and $\chi(G\backslash v)<t$ for any $v\in V(G)$. One can easily see that for any $t$-critical graph $G$, $\delta(G)\ge t-1$. A \dfn{hole} in a graph $G$ is an induced cycle of length at least four. An \dfn{antihole} in $G$ is an induced subgraph isomorphic to the complement of a hole. A graph $G$ is \dfn{perfect} if $\chi(H)=\omega(H)$ for every induced subgraph $H$ of $G$. We use $C_k$ to denote a cycle on $k$ vertices. We shall need the following two results. Theorem~\ref{spgt} is the well-known Strong Perfect Graph Theorem~\cite{spgt} and Theorem~\ref{quasi} is a result of Chudnovsky and Fradkin~\cite{CF2008}. \begin{thm}\label{spgt} A graph $G$ is perfect if and only if it has no odd hole and no odd antihole. \end{thm} \begin{thm}\label{quasi} If $G$ is a quasi-line graph, then $h(G)\ge\chi(G)$. \end{thm} We shall need the following corollary. \begin{cor}\label{spgt1} If $G$ is $\{C_4, C_5, C_7, \dots, C_{2\alpha(G)+1}\}$-free, then $G$ is perfect. \end{cor} \bigskip\noindent {\emph{Proof.}}~~ One can easily see that $G$ is $C_k$-free for all $k \ge 2\alpha(G) +2$. Since $G$ is $C_4$-free, we see that $G$ is $\overline{C}_k$-free for all $k \ge 7$. Note that $C_5=\overline{C}_5$. Hence $G$ is $C_k$-free and $\overline{C}_k$-free for all $k \ge 5$ odd and so $G$ is perfect by Theorem~\ref{spgt}, as desired. \hfill\vrule height3pt width6pt depth2pt\\ \section{Main Results} A graph $G$ is an \dfn{inflation of a graph $H$} if $G$ can be obtained from $H$ by replacing each vertex of $H$ by a clique of order at least one and two such cliques are complete to each other if their corresponding vertices in $H$ are adjacent. Under these circumstances, we define $s(G)$ to be the size of the smallest clique used to replace a vertex of $H$. We first prove a lemma. \begin{lem}\label{inflation} Let $G$ be an inflation of an odd cycle $C$. Then $\chi(G)\le \omega(G)+s(G)$ and $oh(G)\ge\chi(G)$. \end{lem} \bigskip\noindent {\emph{Proof.}}~~ Let $G$ and $C$ be given as in the statement and let $x_0, x_1, x_2, \dots, x_{2t}$ be the vertices of $C$ in order, where $t\ge1$ is an integer. The statement is trivially true when $t=1$. So we may assume that $t\ge2$. Let $A_0, A_1, A_2, \dots, A_{2t}$ be vertex-disjoint cliques such that $A_i$ is used to replace $x_i$ for all $i\in\{0,1, \dots, 2t\}$. We may assume that $s(G)=|A_0|$. Then $|A_0|=\min\{|A_i|: \, 0\le i\le 2t\}$. Since $t\ge2$, we have $\omega(G)=\omega(G\backslash A_0)$. One can easily see that $G\backslash A_0$ is an inflation of a path on $2t$ vertices and so $\chi(G\backslash A_0)=\omega(G\backslash A_0)$. Therefore $\chi(G)\le\chi(G\backslash A_0)+|A_0|\le\omega(G\backslash A_0)+|A_0|=\omega(G)+s(G)$. \medskip We next show that $G$ contains an odd clique minor of size $\omega(G)+|A_0|$. Without loss of generality, we may assume that $\omega(G\backslash A_0)=|A_1|+|A_2|$. By the choice of $|A_0|$, there are $|A_0|$ pairwise vertex-disjoint $(A_0, A_3)$-paths (each on $2t -1$ vertices) in $G\backslash (A_1\cup A_{2})$. Let $T_1, \dots ,T_{|A_0|}$ be $|A_0|$ such paths and let $T_{|A_0|+1}, \dots, T_{|A_0|+\omega(G)}$ be $\omega(G)$ pairwise disjoint trivial trees (i.e., trees with one vertex only) in $A_1\cup A_2$. Now coloring all the vertices in $A_{4} \cup A_{6} \cup \cdots \cup A_{2t}$ by color 1 and all the other vertices in $G$ by color 2, we see that $T_1, \dots , T_{|A_0|}, T_{|A_0|+1}, \dots , T_{|A_0|+\omega(G)}$ yield an odd clique minor of size $|A_0|+\omega(G)\ge \chi(G)$, as desired. \hfill\vrule height3pt width6pt depth2pt\\ We next use Lemma~\ref{inflation} to prove that every graph $G$ with $\alpha(G)\ge2$ and no hole of length between $4$ and $2\alpha(G)$ satisfies the odd Hadwiger's conjecture, the following.\medskip \begin{thm}\label{t1} Let $G$ be a graph with $\alpha(G) \ge 2$. If $G$ is $\{C_4, \,C_5, \, C_6, \, \dots , \, C_{2\alpha(G)}\}$-free, then $oh(G)\ge\chi(G)$. \end{thm} \bigskip\noindent {\emph{Proof.}}~~ Let $\alpha = \alpha(G)$. We first assume that $G$ contains no odd hole of length $2\alpha +1$. By Corollary~\ref{spgt}, $G$ is perfect and so $G$ contains a clique (and thus an odd clique minor) of size $\chi(G)$. So we may assume that $G$ contains an odd hole of length $2\alpha +1$, say $C$, with vertices $ v_0, v_1, \dots, v_{2\alpha}$ in order. We next prove that for every $w\in V(G\backslash C)$, $w$ is either complete to $C$ or adjacent to exactly three consecutive vertices on $C$. Since $\alpha(G)=\alpha$, we see that $w$ is adjacent to at least one vertex on $C$. If $w$ is complete to $C$, then we are done. So we may assume that $wv_0\notin E(G)$ but $wv_1\in E(G)$. Then $w$ is not adjacent to $v_{2\alpha}, v_{2\alpha -1}, \dots , v_4$ as $G$ is $\{C_4, \,C_5, \, \dots , \, C_{2\alpha}\}$-free. Hence $w$ must be adjacent to $v_2, v_3$ because $\alpha(G)=\alpha$. This proves that for any $w\in V(G\backslash C)$ not complete to $C$, $w$ is adjacent to precisely three consecutive vertices on $C$. \medskip Let $J$ (possibly empty) denote the set of vertices in $G$ that are complete to $C$, and $A_i$ (possibly empty) denote the set of vertices in $G$ adjacent to $v_i, v_{i+1}, v_{i+2}$, where $i=0,1,\dots, 2\alpha$ and all arithmetic on indices here and henceforth is done modulo $2\alpha +1$. Since $G$ is $C_4$-free, we see that $G[J]$ is a clique and $G[A_i]$ is a clique for all $i\in\{0,1,\dots, 2\alpha\}$. Note that $\{J, V(C), A_0, A_1, \dots , A_{2\alpha}\}$ partitions $V(G)$. Since $\alpha(G) = \alpha$ and $G$ is $\{C_4, \,C_5, \, \dots , \, C_{2\alpha}\}$-free, one can easily check that $A_i$ is complete to $A_{i+1}\cup A_{i-1}$, and anti-complete to all $A_j$, where $j\ne i+1,i, i-1$. We now show that $J$ is complete to all $A_i$. Suppose there exist $a\in J$ and $b\in A_i$ for some $i\in\{0, 1,\dots ,2\alpha\}$, say $i=0$, such that $ab\notin E(G)$. Then $G[\{a, v_0, b, v_2\}]$ is an induced $C_4$, a contradiction. Thus $J$ is complete to all $A_i$ and so $J$ is complete to $V(G)\backslash J$. Let $A_i^*=A_i\cup \{v_{i+1}\}$ for $i=0, 1, \dots ,2\alpha$. Then $A_i^*\not= \emptyset$ for all $i\in\{0,1,\dots, 2\alpha\}$ and $G\backslash J$ is an inflation of an odd cycle of length $2\alpha +1$. By Lemma~\ref{inflation}, $oh(G\backslash J)\ge \chi(G\backslash J)$ and so $oh(G)\ge oh(G\backslash J)+|J|\ge\chi(G\backslash J)+|J|=\chi(G)$, as desired. \medskip This completes the proof of Theorem~\ref{t1}. \hfill\vrule height3pt width6pt depth2pt\\ Finally we prove that every graph $G$ with $\alpha(G)\ge3$ and no hole of length between $4$ and $2\alpha(G)-1$ satisfies Hadwiger's conjecture.\medskip \begin{thm}\label{main} Let $G$ be a graph with $\alpha(G)\ge 3$. If $G$ is $\{C_4, \, C_5, C_6, \dots, C_{2\alpha(G)-1}\}$-free, then $h(G)\ge \chi(G)$. \end{thm} \setcounter{counter}{0} \bigskip\noindent {\emph{Proof.}}~~ Suppose for a contradiction that $h(G)< \chi(G)$. Let $G$ be a counterexample with $|V(G)|$ as small as possible. Let $n :=|V(G)|$, $t :=\chi(G)$, and $\alpha :=\alpha(G)$. By Theorem~\ref{spgt} and the fact that $h(G)\ge\omega(G)$, $G$ is not perfect. Since $G$ is $\{C_4, \, C_5, C_7, \dots, C_{2\alpha-1}\}$-free, by Corollary~\ref{spgt1}, we see that $G$ must contain an odd hole, say $C$, with $2\alpha+1$ vertices. \medskip \noindent \refstepcounter{counter}\label{e:mindeg} (\arabic{counter}) $G$ is $t$-critical and so $\delta(G)\ge t-1$. \bigskip\noindent {\emph{Proof.}}~~ Suppose that there exists $x\in V(G)$ such that $\chi(G\backslash x)=t$. If $\alpha(G\backslash x)=\alpha$, then $G\backslash x$ is $\{C_4, \, C_5, C_6, \dots, C_{2\alpha(G\backslash x)-1}\}$-free. By the minimality of $G$, we have $h(G\backslash x)\ge \chi(G\backslash x)=t$ and so $h(G)\ge h(G\backslash x)\ge t$, a contradiction. Thus $\alpha(G\backslash x)=\alpha-1$. Then $G\backslash x$ is $\{C_4, \, C_5, C_7, \dots, C_{2\alpha(G\backslash x)+1}\}$-free. By Corollary~\ref{spgt1}, $G\backslash x$ is perfect and so $h(G)\ge h(G\backslash x)\ge\omega(G\backslash x)=\chi(G\backslash x)=t$, a contradiction. Thus $G$ is $t$-critical and so $\delta(G)\ge t-1$. \hfill\vrule height3pt width6pt depth2pt\medskip \noindent \refstepcounter{counter}\label{e:maxdeg} (\arabic{counter}) $\Delta(G)\le n-2$. \bigskip\noindent {\emph{Proof.}}~~ Suppose there exists a vertex $x$ in $G$ with $d(x)=n-1$. Then $\chi(G\backslash x)=t-1$ and by the minimality of $G$, $h(G\backslash x)\ge \chi(G\backslash x)=t-1$ and so $h(G)\ge h(G\backslash x) +1\ge (t-1)+1=t$, a contradiction. \hfill\vrule height3pt width6pt depth2pt\medskip \noindent \refstepcounter{counter}\label{e:clique} (\arabic{counter}) $\omega(G)\le t-2$. \bigskip\noindent {\emph{Proof.}}~~ Suppose that $\omega(G)\ge t-1$. Since $h(G)< t$, we see that $ \omega(G)=t-1$. Let $H\subseteq G$ be isomorphic to $K_{t-1}$. Then $C$ and $H$ have at most two vertices in common, and if $|C\cap H|=2$, then the two vertices in $C\cap H$ must be adjacent on $C$. Let $P$ be a subpath of $C\backslash H$ on $2\alpha-1$ vertices. Then $P$ is an induced path in $G\backslash H$. Since $\alpha(G)=\alpha$, we see that every vertex in $H$ must have a neighbor on $P$. By contracting the path $P$ into a single vertex, we see that $h(G)\ge t$, a contradiction. \hfill\vrule height3pt width6pt depth2pt\\ Let $ v_0, v_1, \dots, v_{2\alpha}$ be the vertices of $C$ in order. We next show that \medskip \noindent \refstepcounter{counter}\label{e:nbr} (\arabic{counter}) For every $w\in V(G\backslash C)$, either $w$ is complete to $C$, or $w$ is adjacent to exactly three consecutive vertices on $C$, or $w$ is adjacent to exactly four consecutive vertices on $C$. \bigskip\noindent {\emph{Proof.}}~~ Since $\alpha(G)=\alpha$, we see that $w$ is adjacent to at least one vertex on $C$. Suppose that $w$ is not complete to $C$. We may assume that $wv_0\notin E(G)$ but $wv_1\in E(G)$. Then $w$ is not adjacent to $v_{2\alpha}, v_{2\alpha -1}, \dots , v_5$ because $G$ is $\{C_4, \,C_5, \, \dots , \, C_{2\alpha-1}\}$-free. If $wv_4\in E(G)$, then $w$ must be adjacent to $v_2, v_3$ because $G$ is $\{C_4, \, C_5\}$-free. If $wv_4\notin E(G)$, then again $w$ must be adjacent to $v_2, v_3$ because $\alpha(G)=\alpha$. Thus $w$ is adjacent to either $v_1, v_2, v_3$ or $v_1, v_2,v_3, v_4$ on $C$, as desired. \hfill\vrule height3pt width6pt depth2pt\medskip Let $J$ denote the set of vertices in $G$ that are complete to $C$. For each $i\in I : =\{0,1,\dots, 2\alpha\}$, let $A_i\subseteq V(G\backslash C)$ (possibly empty) denote the set of vertices in $G$ adjacent to precisely $v_i, v_{i+1}, v_{i+2}$ on $C$, and let $B_i\subseteq V(G\backslash C)$ (possibly empty) denote the set of vertices in $G$ adjacent to precisely $v_i, v_{i+1}, v_{i+2}, v_{i+3}$ on $C$, where all arithmetic on indices here and henceforth is done modulo $2\alpha+1$. By \pr{e:nbr}, $\{J, V(C), A_0, A_1, \dots, A_{2\alpha}, B_0, B_1, \dots, B_{2\alpha}\}$ partitions $V(G)$. \medskip \noindent \refstepcounter{counter}\label{e:J} (\arabic{counter}) $J=\emptyset$. \bigskip\noindent {\emph{Proof.}}~~ Suppose that $J\not=\emptyset$. Let $a\in J$. By \pr{e:maxdeg}, there exists $b\in V(G)\backslash (V(C)\cup J)$ such that $ab\notin E(G)$. By \pr{e:nbr}, we may assume that $b$ is adjacent to $v_0, v_1, v_2$. Then $G[\{a, v_0, b, v_2\}]$ is an induced $C_4$ in $G$, a contradiction. \hfill\vrule height3pt width6pt depth2pt\medskip The fact that $\alpha(G) = \alpha$ implies that \\ \noindent \refstepcounter{counter}\label{e:ABclique} (\arabic{counter}) For each $i\in I$, both $G[A_i]$ and $G[B_i]$ are cliques; and $A_i$ is complete to $A_{i-1}\cup A_{i+1}$.\\ Since $G$ is $\{C_4, \,C_5, \, \dots , \, C_{2\alpha-1}\}$-free, one can easily check that \\ \noindent \refstepcounter{counter}\label{e:Aac} (\arabic{counter}) For each $i\in I$, $A_i$ is anti-complete to each $A_j$, where $j\in I\backslash\{i-2, i-1, i, i+1, i+2\}$; and \\ \noindent \refstepcounter{counter}\label{e:Bac} (\arabic{counter}) For each $i\in I$, $B_i$ is complete to $B_{i-1}\cup A_{i}\cup A_{i+1}\cup B_{i+1}$ and anti-complete to each $B_j$, where $j\in I\backslash\{ i-1, i, i+1\}$.\\ We shall also need the following:\\ \noindent \refstepcounter{counter}\label{e:oneneighbor} (\arabic{counter}) For each $i\in I$, if $B_i\not=\emptyset$, then $B_{j}=\emptyset$ for any $j\in I\backslash\{i-2, i-1, i, i+1, i+2\}$. \bigskip\noindent {\emph{Proof.}}~~ Suppose $B_j$ is not empty for some $j\in I\backslash\{ i+2, i+1, i, i-1, i-2\}$. We may assume that $j>i$. Let $a\in B_i$ and $b\in B_{j}$. Then $G[\{v_i, a, v_{i+3},\dots, v_j, b, v_{j+3}, \dots, v_{i-1}\}]$ is an odd hole with $2\alpha-1$ vertices if $ab\notin E(G)$, and $G[\{v_i, a, b, v_{j+3}, \dots, v_{i-1}\}]$ is a hole with $2\alpha+1-j+i\ge4$ vertices if $ab\in E(G)$. In both cases, we obtain a contradiction. \hfill\vrule height3pt width6pt depth2pt\\ With an argument similar to that of \pr{e:oneneighbor}, we see that \\ \noindent \refstepcounter{counter}\label{e:Nneighbor} (\arabic{counter}) For each $i\in I$, if $B_i\not=\emptyset$, then $B_{i}$ is anti-complete to $A_j$ for any $j\in I\backslash\{i-1, i, i+1, i+2\}$.\\ We next show that \\ \noindent \refstepcounter{counter}\label{e:partition} (\arabic{counter}) For any $i\in I$, if $A_i\ne\emptyset$, then each vertex in $A_i$ is either anti-complete to $A_{i+2}$ or anti-complete to $A_{i-2}$. \bigskip\noindent {\emph{Proof.}}~~ Suppose there exists a vertex $x\in A_i$ such that $x$ is adjacent to a vertex $y\in A_{i-2}$ and a vertex $z\in A_{i+2}$. Then $G[ \{x, y,z\}\cup (V(C)\backslash \{v_{i-1}, v_i, v_{i+1}, v_{i+2}, v_{i+3}\})]$ is an odd hole with $2\alpha-1$ vertices, a contradiction. \hfill\vrule height3pt width6pt depth2pt\\ \noindent \refstepcounter{counter}\label{e:A{j-1}A{j+2}} (\arabic{counter}) For any $i\in I$, if $B_i\ne\emptyset$, then every vertex in $B_i$ is either complete to $A_{i-1}$ or complete to $A_{i+2}$. \bigskip\noindent {\emph{Proof.}}~~ Suppose for a contradiction, say $B_2\ne\emptyset$, and there exists a vertex $b\in B_2$ such that $b$ is not adjacent to a vertex $a_1\in A_1$ and a vertex $a_4\in A_4$. By \pr{e:Aac}, $A_1$ is anti-complete to $A_4$. Thus $G$ contains a stable set $\{b, a_1, a_4,v_0\}$ of size four if $\alpha=3$ or stable set $\{b, a_1, a_4, v_0, v_7, v_9, \dots, v_{2\alpha-1}\}$ of size $\alpha+1$ if $\alpha\ge4$, a contradiction. \hfill\vrule height3pt width6pt depth2pt\\ \noindent \refstepcounter{counter}\label{e:3B} (\arabic{counter}) There exists an $i\in I$ such that $B_j= \emptyset$ for any $j\in I\backslash \{i, i+1, i+2\}$. \bigskip\noindent {\emph{Proof.}}~~ This is obvious if $B_k=\emptyset$ for any $k\in I$. So we may assume that $B_k\ne\emptyset$ for some $k\in I$, say $B_2\neq \emptyset$. Then by \pr{e:oneneighbor}, $B_j=\emptyset$ for all $j=5, 6, \dots, 2\alpha$. By \pr{e:oneneighbor} again, either $B_0\ne \emptyset$ or $B_4\ne \emptyset$ but not both. By symmetry, we may assume that $B_4=\emptyset$. Similarly, either $B_0\ne \emptyset$ or $B_3\ne \emptyset$ but not both. Thus either $B_j=\emptyset$ for all $j\in I\backslash \{0,1,2\}$ or $B_j=\emptyset$ for all $j\in I\backslash \{1,2, 3\}$. \hfill\vrule height3pt width6pt depth2pt\\ By \pr{e:3B}, we may assume that $B_j=\emptyset$ for all $j\in I\backslash \{1,2,3\}$. For any $A_i\ne\emptyset$, where $i\in I$, let $A_i^1=\{a\in A_i: a \text{ has a neighbor in } A_{i-2}\}$, $A_i^3=\{a\in A_i: a\, \text{ has a neighbor in } A_{i+2}\}$, and $A_i^2=A_i\backslash (A_i^1\cup A_i^3)$. Then $A_i^2$ is anti-complete to $A_{i-2}\cup A_{i+2}$. By \pr{e:partition}, $A_i^1$ is anti-complete to $A_{i+2}$ and $A_i^3$ is anti-complete to $A_{i-2}$. Clearly, $\{A_i^1, A_i^2, A_i^3\}$ partitions $A_i$. Next, for any $B_j\ne\emptyset$, where $j\in \{1,2,3\}$, by \pr{e:A{j-1}A{j+2}}, let $B_j^1=\{b\in B_j: b\, \text{ is complete to } A_{j-1}\}$ and $B_j^2=\{b\in B_j: b\, \text{ is complete to } A_{j+2}\}$. Clearly, $B_j^1$ and $B_j^2$ are not necessarily disjoint. Note that $B_j^1$ and $B_j^2$ are not symmetrical because $B_j^1$ is complete to $A_{j-1}$ and $B_j^2$ is complete to $A_{j+2}$. \\ \noindent \refstepcounter{counter}\label{e:BjA{j-1}} (\arabic{counter}) For any $j\in\{1,2,3\}$, $B_j$ is anti-complete to $A_{j-1}^1\cup A_{j+2}^3$. \bigskip\noindent {\emph{Proof.}}~~ Suppose there exist a vertex $b\in B_j$ and a vertex $a\in A_{j-1}^1\cup A_{j+2}^3$ such that $ba\in E(G)$. By the definitions of $A_{j-1}^1$ and $A_{j+2}^3$, we see that $a$ has a neighbor, say $c$, in $A_{j-3}$ if $a\in A_{j-1}^1$, or in $A_{j+4}$ if $a\in A_{j+2}^3$. Now $G[ \{b, a,c\}\cup (V(C)\backslash \{v_{j-2}, v_{j-1}, v_j, v_{j+1}, v_{j+2}\})]$ is an odd hole of length $2\alpha-1$ if $a\in A_{j-1}^1$, or $G[ \{b, a,c\}\cup (V(C)\backslash \{v_{j+1}, v_{j+2}, v_{j+3}, v_{j+4}, v_{j+5}\})]$ is an odd hole of length $2\alpha-1$ if $a\in A_{j+2}^3$. In either case, we obtain a contradiction. \hfill\vrule height3pt width6pt depth2pt\\ \noindent \refstepcounter{counter}\label{e:quasi-line} (\arabic{counter}) $G$ is a quasi-line graph. \bigskip\noindent {\emph{Proof.}}~~ It suffices to show that for any $x\in V(G)$, $N(x)$ is covered by two cliques. By \pr{e:J}, $J=\emptyset$. Since $B_j^1$ and $B_j^2$ are not symmetrical for all $j\in\{1,2,3\}$, we consider the following four cases. \\ \noindent{\bf Case 1:} $x\in A_i$ for some $i\in I\backslash\{0, 1,2,3,4,5\}$.\\ In this case, $x\in A_i^k$ for some $k\in\{1,2,3\}$. We first assume that $k=1$. Then $x\in A_i^1$. By \pr{e:partition} and the definition of $A_i^1$, $x$ is anti-complete to $A_{i+2}$ and so $N[x]\subseteq A_{i-2}\cup A_{i-1}\cup A_i\cup A_{i+1}\cup\{v_{i}, v_{i+1}, v_{i+2}\}$. We see that $N(x)$ is covered by two cliques $G[(A_{i-2}\cap N(x))\cup A_{i-1}\cup \{v_i\}]$ and $G[(A_i\backslash x)\cup A_{i+1}\cup\{v_{i+1}, v_{i+2}\}]$. By symmetry, the same holds if $k=3$. So we may assume that $k=2$. By the definition of $A_i^2$, $x$ is anti-complete to $A_{i-2}\cup A_{i+2}$. Thus $N[x]=A_{i-1}\cup A_i\cup A_{i+1}\cup\{v_i, v_{i+1}, v_{i+2}\}$ and so $N(x)$ is covered by two cliques $G[A_{i-1}\cup (A_i\backslash x)\cup\{v_i\}]$ and $G[A_{i+1}\cup \{v_{i+1}, v_{i+2}\}]$. \\ \noindent{\bf Case 2:} $x\in A_i$ for some $i\in \{0,1,2,3,4,5\}$.\\ In this case, we first assume that $i=0$. Then $x\in A_0^k$ for some $k\in\{1,2,3\}$. Assume that $x\in A_0^1$. Then $x$ is anti-complete to $B_1$ by \pr{e:BjA{j-1}} and anti-complete to $A_2$ by \pr{e:partition}. Thus $N[x]\subseteq A_{2\alpha-1}\cup A_{2\alpha}\cup A_0\cup A_1\cup \{v_0, v_1, v_2\}$. One can see that $N(x)$ is covered by two cliques $G[(A_{2\alpha-1}\cap N(x))\cup A_{2\alpha}\cup \{v_0\}]$ and $G[(A_0\backslash x)\cup A_1\cup\{v_1, v_2\}]$. It can be easily checked that $N(x)$ is covered by two cliques $G[A_{2\alpha}\cup (A_0\backslash x)\cup\{v_0\}]$ and $G[A_1\cup (B_1\cap N(x))\cup\{v_1, v_2\}]$ if $k=2$; and by two cliques $G[A_{2\alpha}\cup (A_0\backslash x)\cup\{v_0\}]$ and $G[A_1\cup (B_1\cap N(x))\cup(A_2\cap N(x))\cup\{v_1, v_2\}]$ if $k=3$. \\ Next assume that $i=1$. Then $x\in A_1^k$ for some $k\in\{1,2,3\}$ and $N[x]\subseteq A_{2\alpha}\cup A_0\cup A_1\cup B_1\cup A_2\cup B_2\cup A_3\cup\{v_1, v_2, v_3\}$. One can see that $N(x)$ is covered by two cliques $G[(A_{2\alpha}\cap N(x))\cup A_0\cup \{v_1\}]$ and $G[(A_1\backslash x)\cup B_1\cup A_2\cup\{v_2, v_3\}]$ if $k=1$; by two cliques $G[A_0\cup (A_1\backslash x)\cup \{v_1\}]$ and $G[B_1\cup A_2\cup (B_2\cap N(x))\cup\{v_2, v_3\}]$ if $k=2$; and two cliques $G[A_0\cup (A_1\backslash x)\cup B_1^1\cup\{v_1, v_2\}]$ and $G[B_1^2\cup A_2\cup (B_2\cap N(x))\cup (A_3\cap N(x))\cup\{ v_3\}]$ if $k=3$. \medskip Assume that $i=2$. Then $x\in A_2^k$ for some $k\in\{1,2,3\}$ and $N[x]\subseteq A_{0}\cup A_{1}\cup B_{1}\cup A_2\cup B_2\cup A_{3}\cup B_{3}\cup A_4\cup\{ v_2, v_3, v_4\}$. One can check that $N(x)$ is covered by two cliques $G[(A_0\cap N(x))\cup A_1\cup B_1^1\cup \{v_2\}]$ and $G[(A_2\backslash x)\cup B_1^2\cup B_2\cup A_3\cup\{v_3, v_4\}]$ if $k=1$; by two cliques $G[A_1\cup B_1\cup (A_2\backslash x)\cup \{v_2\}]$ and $G[B_2\cup A_3\cup (B_3\cap N(x))\cup\{v_3, v_4\}]$ if $k=2$; and by two cliques $G[A_1\cup B_1\cup (A_2\backslash x)\cup B_2^1\cup\{v_2, v_3\}]$ and $G[B_2^2\cup A_3\cup (B_3\cap N(x))\cup (A_4\cap N(x))\cup\{ v_4\}]$ if $k=3$. \\ Assume that $i=3$. Then $x\in A_3^k$ for some $k\in\{1,2,3\}$ and $N[x]\subseteq A_1\cup B_{1}\cup A_2\cup B_2\cup A_{3}\cup B_{3}\cup A_4\cup A_5\cup\{ v_3, v_4, v_5\}$. One can check that $N(x)$ is covered by two cliques $G[(A_1\cap N(x)) \cup (B_1\cap N(x))\cup A_2\cup B_2^1\cup \{v_3\}]$ and $G[B_2^2\cup (A_3\backslash x)\cup B_3\cup A_4\cup\{v_4, v_5\}]$ if $k=1$; and by two cliques $G[(B_1\cap N(x))\cup A_2\cup B_2\cup \{v_3\}]$ and $G[(A_3\backslash x)\cup B_3 \cup A_4\cup\{v_4, v_5\}]$ if $k=2$. So we may assume that $x\in A_3^3$. By \pr{e:BjA{j-1}}, we have $A_3^3$ is anti-complete to $B_1$. Thus $N(x)$ is covered by two cliques $G[A_2\cup B_2\cup (A_3\backslash x)\cup B_3^1\cup\{v_3, v_4\}]$ and $G[B_3^2\cup A_4\cup (A_5 \cap N(x))\cup\{ v_5\}]$ if $k=3$. \\ Assume that $i=4$. Then $x\in A_4^k$ for some $k\in\{1,2,3\}$ and $N[x]\subseteq A_2\cup B_{2}\cup A_3\cup B_3\cup A_4\cup A_5\cup A_6\cup\{ v_4, v_5, v_6\}$. One can see that $N(x)$ is covered by two cliques $G[(A_2\cap N(x)) \cup (B_2\cap N(x))\cup A_3\cup B_3^1\cup \{v_4\}]$ and $G[B_3^2\cup (A_4\backslash x)\cup A_5\cup\{v_5, v_6\}]$ if $k=1$, and by two cliques $G[(B_2\cap N(x))\cup A_3\cup B_3\cup \{v_4\}]$ and $G[(A_4\backslash x) \cup A_5\cup\{v_5, v_6\}]$ if $k=2$. So we may assume that $x\in A_4^3$. By \pr{e:BjA{j-1}}, we have $A_4^3$ is anti-complete to $B_2$. Thus $N(x)$ is covered by two cliques $G[A_3\cup B_3\cup (A_4\backslash x)\cup\{v_4, v_5\}]$ and $G[ A_5\cup (A_6 \cap N(x))\cup\{ v_6\}]$ if $k=3$. \\ Finally assume that $i=5$. Then $x\in A_5^k$ for some $k\in\{1,2,3\}$ and $N[x]\subseteq A_3\cup B_{3}\cup A_4\cup A_5\cup A_6\cup A_7\cup\{ v_5, v_6, v_7\}$. One can check that $N(x)$ is covered by two cliques $G[(A_3\cap N(x)) \cup (B_3\cap N(x))\cup A_4\cup \{v_5\}]$ and $G[(A_5\backslash x)\cup A_6\cup\{v_6, v_7\}]$ if $k=1$, and by two cliques $G[(B_3\cap N(x))\cup A_4\cup \{v_5\}]$ and $G[(A_5\backslash x) \cup A_6\cup\{v_6, v_7\}]$ if $k=2$. So we may assume that $x\in A_5^3$. By \pr{e:BjA{j-1}}, we have $A_5^3$ is anti-complete to $B_3$. Thus $N(x)$ is covered by two cliques $G[ A_4\cup (A_5\backslash x)\cup \{v_5, v_6\}]$ and $G[ A_6\cup (A_7\cap N(x))\cup\{v_7\}]$ if $k=3$. \medskip This completes the proof of Case 2. \\ \noindent{\bf Case 3:} $x\in B_j$ for some $j\in \{1,2,3\}$.\\ In this case, first assume that $j=1$. Then $x\in B_1^k$ for some $k\in\{1,2\}$, and $N[x]\subseteq A_0\cup A_1\cup B_1\cup A_2\cup B_2\cup A_3\cup\{v_1, v_2, v_3, v_4\}$. We see that $N(x)$ is covered by two cliques $G[A_0\cup A_1\cup (B_1^1\backslash x)\cup \{v_1, v_2\}]$ and $G[B_1^2\cup A_2\cup B_2\cup (A_3\cap N(x))\cup\{v_3, v_4\}]$ if $k=1$; and by two cliques $G[(A_0\cap N(x))\cup A_1\cup B_1^1\cup \{v_1, v_2\}]$ and $G[(B_1^2\backslash x)\cup A_2\cup B_2\cup A_3\cup\{v_3, v_4\}]$ if $k=2$. \medskip Next assume that $j=2$. Then $x\in B_2^k$ for some $k\in\{1,2\}$, and $N[x]\subseteq A_1\cup B_1\cup A_2\cup B_2\cup A_3\cup B_3\cup A_4\cup \{ v_2, v_3, v_4, v_5\}$. One can see that $N(x)$ is covered by two cliques $G[A_1\cup B_1\cup A_2\cup (B_2^1\backslash x)\cup \{v_2, v_3\}]$ and $G[B_2^2\cup A_3\cup B_3\cup (A_4\cap N(x))\cup\{v_4, v_5\}]$ if $k=1$; and by two cliques $G[(A_1\cap N(x))\cup B_1\cup A_2\cup B_2^1\cup \{v_2, v_3\}]$ and $G[(B_2^2\backslash x)\cup A_3\cup B_3\cup A_4\cup\{v_4, v_5\}]$ if $k=2$. \medskip Finally assume $j=3$. Then $x\in B_3^k$ for some $k\in\{1,2\}$, and $N[x]\subseteq A_2\cup B_2\cup A_3\cup B_3\cup A_4\cup A_5\cup \{v_3, v_4, v_5, v_6\}$. We see that $N(x)$ is covered by two cliques $G[A_2\cup B_2\cup A_3\cup (B_3^1\backslash x)\cup \{v_3, v_4\}]$ and $G[B_3^2\cup A_4\cup (A_5\cap N(x))\cup\{v_5, v_6\}]$ if $k=1$; and by two cliques $G[(A_2\cap N(x))\cup B_2\cup A_3\cup B_3^1\cup \{v_3, v_4\}]$ and $G[(B_3^2\backslash x)\cup A_4\cup A_5\cup\{v_5, v_6\}]$ if $k=2$. \\ \noindent{\bf Case 4:} $x\in V(C)$. \\ In this case, let $x=v_i$ for some $i\in I$. First assume that $i\ne 1,2,3,4,5,6$. Then $N(v_{i})=A_{i-2}\cup A_{i-1}\cup A_{i}\cup\{v_{i-1}, v_{i+1}\}$ and so $N(v_{i})$ is covered by two cliques $G[A_{i-2}\cup A_{i-1}\cup\{v_{i-1}\}]$ and $G[A_{i}\cup\{ v_{i+1}\}]$. Next assume that $i\in\{ 1,2,3,4,5,6\}$. One can easily check that $N(v_1)$ is covered by two cliques $G[A_{2\alpha}\cup A_0\cup\{v_0\}]$ and $G[A_1\cup B_1\cup\{v_2\}]$; $N(v_2)$ by two cliques $G[A_{0}\cup A_1\cup\{v_1\}]$ and $G[B_1\cup A_2\cup B_2\cup\{v_3\}]$; $N(v_3)$ by two cliques $G[A_{1}\cup B_1\cup A_2\cup\{v_2\}]$ and $G[B_2\cup A_3\cup B_3\cup\{v_4\}]$; $N(v_4)$ by two cliques $G[ B_1\cup A_2\cup B_2\cup\{v_3\}]$ and $G[A_3\cup B_3\cup A_4\cup\{v_5\}]$; $N(v_5)$ by two cliques $G[ B_2\cup A_3\cup B_3\cup\{v_4\}]$ and $G[A_4\cup A_5\cup\{v_6\}]$; and $N(v_6)$ by two cliques $G[ B_3\cup A_4\cup\{v_5\}]$ and $G[A_5\cup A_6\cup\{v_7\}]$, respectively. \medskip This proves that $G$ is a quasi-line graph. \hfill\vrule height3pt width6pt depth2pt\\ By \pr{e:quasi-line}, $G$ is a quasi-line graph. By Theorem~\ref{quasi}, $h(G)\ge \chi(G)=t$, a contradiction. This completes the proof of Theorem~\ref{main}. \hfill\vrule height3pt width6pt depth2pt\\ \noindent {\bf Remark.} We made no use of the fact $\omega(G)\le t-2$ in the proof of Theorem~\ref{main}. We kept it in the proof in the hope that one might be able to find a short proof of Theorem~\ref{main} without using the fact that Hadwiger's conjecture is true for quasi-line graphs (namely Theorem~\ref{quasi}). \section*{Acknowledgements} The authors would like to thank the anonymous referee for many helpful comments.
\section{Introduction} Flux backgrounds received considerable attention in recent years, while developing superstring theory and its viable phenomenological applications to model building for elementary particle physics (for reviews see \cite{Grana:2005jc,Blumenhagen:2006ci}). T-duality transformations in the presence of fluxes, such as Neveu-Schwarz fluxes associated to a closed 3-form $H$, were used to exhibit that not only the geometry but also the topology of space in which strings propagate are not perceived as in ordinary point-particle theories, since T-duality relates backgrounds with different topologies. As an important example, T-duality of string flux backgrounds that are $\mathrm{U}(1)$-fibrations over a base manifold $M$ provides non-geometric flux backgrounds, which in turn lead to new phenomena like non-commutativity and non-associativity of coordinates in the context of closed string theory \cite{Lust:2010iy,Blumenhagen:2010hj,Blumenhagen:2011ph}. In particular, for $n=2$ (hereafter called the non-geometric $Q$-flux background), the resulting closed string background is only locally geometric, but not globally, since the transition functions between two coordinate patches are prescribed in terms of T-duality transformations and not in terms of diffeomorphisms. Then, because of non-trivial monodromies characterizing the $T^2$ fibration over $S^1$ in the $Q$-flux model, the coordinates become non-commutative and the appropriate mathematical structure is that of a non-commutative 2-torus fibred over $S^1$. For $n = 3$ (called the non-geometric $R$-flux background) the situation becomes even more interesting as non-geometric closed string $R$-flux backgrounds exhibit a non-associative structure. Here the resulting closed string $R$-flux background not only fails to be globally geometric, but also locally. Similar results based on somewhat less explicit methods appeared in the literature before \cite{Bouwknegt:2003vb,Bouwknegt:2003zg,Bouwknegt:2004ap,Bouwknegt:2004tr,Mathai:2005fd}, while studying the action of topological T-duality on torus fibrations with fluxes. The emergence of closed string non-commutativity and non-associativity was shown in explicit string and CFT models \cite{Lust:2010iy,Blumenhagen:2011ph,Condeescu:2012sp,Andriot:2012vb,Blair:2014kla,Bakas:2015gia}, where the non-geometric structures are due to left-right asymmetric world-sheet constructions, which are very similar to asymmetric orbifold compactifications. Furthermore the non-associative deformation of geometry was also discussed in the context of double field theory \cite{Blumenhagen:2013zpa}, where non-associativity arises after some violation of the strong constraint by the $R$-flux background geometry. Finally the non-associative $R$-flux algebra was also derived from a membrane sigma-model \cite{Mylonas:2012pg,Mylonas:2014aga}. Here we are going to focus on the prototypical non-geometric models, namely the so-called parabolic non-geometric string $R$-flux models on a three-torus with constant fluxes, where we have the following non-trivial commutation relations among the closed string coordinates and momenta \begin{equation} \left[ x^i, x^j \right] = i \frac{l_s^3}{\hbar} R^{ijk} p_k \,, \label{commclosed} \end{equation} whereas the remaining commutation relations retain their standard form, \begin{equation} \left[x^i, p^j\right]=i \hbar \delta^{ij}\,, \quad \left[p^i, p^j\right]=0 \,. \label{commclo23} \end{equation} It follows that the Jacobiator among the closed string coordinates is non-vanishing: \begin{equation} \left[ x^i, x^j, x^k\right] \equiv \frac13 \left[\left[x^1, x^2\right], x^3\right]+{\rm cycl.~perm.} = l_s^3 R^{ijk}\, , \label{asso} \end{equation} which demonstrates that the underlying algebra is not only non-commutative but also intrinsically non-associative. We should note that non-commutativity and non-associativity have been known to arise in the description of electrically charged particles moving in the field of magnetic charge. As was shown a long time ago the commutator of velocities of an electron moving in the field of a point-like magnetic monopole do not satisfy the Jacobi identities at the point of the monopole \cite{Lipkin:1969ck}. The mathematical description of charged particles moving in the field of magnetic charge involves nontrivial three-cocycles which were studied in \cite{Grossman:1984fs,Jackiw:1984rd,Jackiw:1985hq,Wu:1984wr,Mylonas:2012pg,Bakas:2013jwa}. For a charged particle moving in the field of constant magnetic charge distribution the velocities and coordinates form a non-Lie Malcev algebra as was shown in \cite{Gunaydin:1985ur}, and which the authors referred to as a ``magnetic algebra''. This implies that the corresponding quantum mechanical description of the magnetic algebra can not be achieved in terms of linear operators acting on a Hilbert space which are necessarily associative. More recently it was pointed out that the magnetic algebra of \cite{Gunaydin:1985ur} is isomorphic to the R-flux algebra for constant R-flux with the roles of coordinates and momenta interchanged \cite{Gunaydin:2013nqa,Bakas:2013jwa}. On the mathematical side, the algebra of octonions is a prime example of a non-associative algebra, which however has so far not been related to the non-associative $R$-flux algebra displayed above or the magnetic algebra of \cite{Gunaydin:1985ur}. The algebra of octonions, which we briefly review in appendix B, is closely related to already known associative structures in M-theory, in particular to the compactification on a seven sphere with torsion whose isometry groups contain the automorphism group $G_2$ of octonions \cite{Gunaydin:1983mi,deWit:1983gs}, to compactifications on $G_2$-holonomy manifolds and to some of the non-associative three-algebras, which were found in the context of multiple membranes in M-theory as well as in ${\cal N}=6$ Chern-Simon gauge theories in three dimensions. Furthermore, the continuous U-duality groups of maximal supergravity\cite{Cremmer:1979up} and exceptional supergravity \cite{Gunaydin:1983rk} in $d=5,4$ and $3 $ dimensions are the exceptional groups of the E-series that can be realised geometrically via the exceptional Jordan algebra and its associated Freudenthal triple system defined over the split and real octonions, respectively\footnote{ The exceptional Jordan algebra of $3\times 3$ Hermitian octonionic matrices is the unique Jordan algebra that has no realization in terms of associative matrices with the symmetric Jordan product taken as the anti-commutator. We refer to \cite{Gunaydin:2000xr,Gunaydin:2005zz} and the review \cite{Gunaydin:2009pk} and references therein for geometric realizations of exceptional groups over Jordan algebras and Freudenthal triple systems. }. The purpose of our paper is two-fold: first we will demonstrate that the non-associative $R$-flux algebra in eqs. \eqref{commclosed}-\eqref{asso} is indeed very closely related to the algebra of octonions $\mathbb{O}$. More specifically we will show that a suitable contraction of the non-commutative and non-associative algebra generated by the seven imaginary units $e_A$ of octonions precisely reproduces the algebra \eqref{commclosed}-\eqref{asso}. Given that the non-associative string theory $R$-flux algebra is obtained by a contraction of the Malcev algebra of imaginary octonions, we then ask what role the full uncontracted algebra plays. Our second goal is to propose that the uplift of the string $R$-flux algebra to M-theory is described by the simple Malcev algebra generated by the uncontracted division algebra of octonions. We will show, in particular, that the resulting uplift is compatible with the uplift of the non-geometric fluxes to M-theory within the context of exceptional field theory \cite{Blair:2014zba}. We substantiate this proposal further by studying a four-dimensional toy model for an $R$-flux background which is dual to a twisted torus. We show that the locally non-geometric background is ``missing'' a momentum mode and as a result the phase space is seven-, not eight-dimensional as would be naively expected. This allows us to identify the phase space variables, four coordinates and three momenta, with the seven imaginary units of octonions. In this way we provide evidence that M-theory with non-geometric fluxes also exhibits non-associativity among its coordinates which correctly reduces down to the string theory non-associative algebra when performing a suitable contraction. The parameter which we introduce for the contraction of the full octonionic algebra takes within the M-theory uplift the role of the string coupling constant $g_s$, in other words the radius of the circle in the 11th direction of M-theory. The present paper is organised as follows. Starting from T-duality and non-geometric fluxes on the three-torus $T^3$, we will review in the next chapter how the non-geometric fluxes get uplifted to M-theory on four-dimensional spaces. In particular this uplift is described using the $\mathrm{SL}(5)$ exceptional field theory, which extends the $\mathrm{Spin}(3,3) \simeq \mathrm{SL}(4)$ double field theory of string theory on three-dimensional spaces. We then discuss in section \ref{s:Contraction} how the non-associative string $R$-flux algebra can be obtained by a contraction of the algebra generated by imaginary octonions under commutation. In section \ref{s:MNonAssoc} we conjecture that the full uncontracted algebra of imaginary octonions provides the uplift of the string $R$-flux algebra to M-theory. In particular, we revisit the four-dimensional locally non-geometric M-theory toy-model to show that a momentum mode is missing and hence that the phase space is seven-dimensional. This allows us to identify the seven imaginary octonions with the phase space variables and provides evidence for our conjecture. Finally, we conclude in section \ref{s:Discussion}. \section{The $R$-flux background and its uplift to M-theory and exceptional field theory} \label{s:ToyModels} In order to give the reader a feel for what a locally non-geometric background is we start by reviewing a toy model for such backgrounds in string theory \cite{Kachru:2002sk,Hull:2004in,Shelton:2005cf,Dabholkar:2005ve} and its uplift to M-theory \cite{Blair:2014zba}. This toy model will also guide us when we look to generalise the non-associative algebra for locally non-geometric M-theory backgrounds in section \ref{s:MNonAssoc}. \subsection{The $T^3$ duality chain in string theory} \label{s:StringToyModel} Let us start by recalling the standard chain of dualities for string theory on $T^3$ \cite{Kachru:2002sk,Hull:2004in,Shelton:2005cf,Dabholkar:2005ve}: \begin{equation}\label{eq:TdualityChain} H_{ijk} \stackrel{T_{i}}{\longrightarrow} f^{i}_{jk} \stackrel{T_{j}}{\longrightarrow} Q_{k}^{ij} \stackrel{T_{k}}{\longrightarrow} R^{ijk}\, ,\quad (i,j,k=1,\dots , 3)\,, \end{equation} where $T_i$ denotes a T-duality along the $x^i$ direction. Note that only the first background describes a torus, with the other backgrounds being more general $\mathrm{U}(1)$-fibrations, which in the latter two cases can be defined over the ``doubled space'' of double field theory. \paragraph{$T^3$ with $H$-flux:} The $T^3$ duality chain starts with a 3-torus with $H$-flux \begin{equation} ds^2 = \left(\dx\right)^2 + \left(\dy\right)^2 + \left(\dz\right)^2 \,, \qquad B_{12} = N x^3 \,, \label{eq:HFlux} \end{equation} where the Kalb-Ramond two-form $B_{12}$ is not globally well-defined and hence there is a non-zero $H$-flux through the $T^3$ given by \begin{equation} H_{123} = N \,. \end{equation} \paragraph{Twisted torus:} We now perform a duality along the $x^1$ direction and obtain a twisted torus with no $H$-flux. \begin{equation} ds^2 = \left( d\x - Nx^3d\y \right)^2 + \left(\dy\right)^2 + \left(\dz\right)^2 \,, \qquad B_{2} = 0 \,. \label{eq:Twist3Torus} \end{equation} We denote the twisted torus as $\tilde{T}^3$, where the coordinate $x^1$ of the twisted torus corresponds to the dual coordinates $\tilde x_1$ of the $H$-flux background. The coordinates of the twisted torus are to be identified as \begin{equation} \left( x^1,x^2,x^3 \right) \sim \left( x^1 + 1,x^2,x^3 \right) \sim \left( x^1,x^2 + 1,x^3 \right) \sim \left( x^1 + N x^2,x^2,x^3 + 1 \right) \,. \end{equation} One can understand this as follows: while in the $H$-flux background, $B$ gets patched by a gauge transformation, after a T-duality this patching gets shifted into the diffeomorphism group of the torus. As a result the twisted torus $\tilde{T}^3$ can be viewed as a $\mathrm{U}(1)$-bundle over $T^2$ with non-vanishing first Chern class. Alternatively, since $\tilde{T}^3$ is parallelisable we can describe the ``twist'' using the spin connection. Denoting the three globally well-defined one-forms as \begin{equation} \eta^1 = d\x - Nx^3d\y \,, \qquad \eta^2 = d\y \,, \qquad \eta^3 = d\z \,, \label{eq:TwistedTorus1Forms} \end{equation} we find \begin{equation} d\eta^1 = N \eta^2 \wedge \eta^3 \,, \qquad d\eta^2 = d\eta^3 = 0 \,. \end{equation} As a result the spin connection, defined as \begin{equation} d\eta^i = \omega^i_{jk} \eta^j \wedge \eta^k \,, \end{equation} becomes \begin{equation} \omega^{1}_{23} = N \,, \end{equation} and we see that the $H$-flux has turned into the ``geometric flux'' which we here identify with the spin-connection $f^i_{jk} = \omega^i_{jk}$. \paragraph{$Q$-flux background:} Performing another T-duality in the $x^2$-direction we get a background that is not globally well-defined. The metric and two-form would be given as \begin{equation} ds^2 = \frac{\left(\dx\right)^2 + \left(\dy\right)^2}{1+N^2\left(x^3\right)^2} + \left(\dz\right)^2 \,, \qquad B_{23} = \frac{Nx^3}{1+N^2\left(x^3\right)^2} \,. \label{eq:QFlux} \end{equation} Now the coordinate $x^2$ of the $Q$-flux background corresponds to the dual coordinates $\tilde x_2$ of the twisted torus. This is clearly not well-defined in conventional geometry but instead the background is patched with an element of the $\mathrm{SO}(3,3)$ duality group as $x^3 \rightarrow x^3+1$. Such a background is called a T-fold and is expected to belong to a class of permissible string backgrounds. The metric and Kalb-Ramond two-form are actually not the correct variables to describe the Q-flux background \eqref{eq:QFlux} since they are not globally well-defined. Instead, the background can be expressed in terms of a bivector $\beta^{ij}$ which is well-defined, and is related by a field redefinition \cite{Duff:1989tf,Grana:2008yw,Andriot:2011uh,Andriot:2012wx,Andriot:2012an,Blumenhagen:2013aia,Andriot:2013xca} (or equivalently in the context of generalised geometry and double field theory an $\mathrm{O}(3) \times \mathrm{O}(3)$ rotation which relates different parameterisations of the generalised vielbein) \begin{equation} \begin{split} \beta^{ij} &= \frac12 \left( \left( g - B \right)^{-1} - \left( g+B \right)^{-1} \right) \,, \\ \hat{g} &= \frac12 \left( \left(g - B\right)^{-1} + \left(g + B\right)^{-1} \right)^{-1} \,. \label{eq:betaFieldRedefinition} \end{split} \end{equation} The metric and bivector are then given by \begin{equation} \hat{ds}^2 = \left(\dx\right)^2 + \left(\dy\right)^2 + \left(\dz\right)^2 \,, \qquad \beta^{12} = Nx^3 \,, \label{eq:QFluxBeta} \end{equation} with $\hat{ds}^2$ the line element of $\hat{g}$. The field redefinition \eqref{eq:betaFieldRedefinition} is of course not globally well-defined and there is a clearer way to see that the ``non-geometric frame'' with the bivector $\beta$ is preferred, as we briefly discuss in \ref{s:DFTQFluxBackgrounds}. Finally, we wish to note that this field redefinition does not somehow ``cure'' the non-geometry and that as a result the resulting theory cannot simply be thought of as a gravitational theory with some different matter. This background is classified by its ``$Q$-flux'' which is a spacetime tensor \cite{Andriot:2012wx,Andriot:2013xca} and is in this case given by \begin{equation} Q_i^{jk} = \partial_i \beta^{jk} \,. \label{eq:QFluxDef} \end{equation} For the background \eqref{eq:QFluxBeta} its only non-zero components are \begin{equation} Q_3^{12} = N \,. \end{equation} Again, we can see that the duality along the $x^2$-direction has pushed the patching from the diffeomorphism group into an element of $\mathrm{SO}(3,3)$ which is not an element of the geometric subgroup of diffeomorphisms and gauge transformations. We discuss a clear way to see this from a generalised geometry \cite{Grana:2008yw} and double field theory point of view in appendix \ref{s:DFTQFluxBackgrounds}. Finally, it is important to emphasise the importance of performing a duality along the $x^2$-direction, where $x^2$ is not a globally well-defined coordinate. Thus $\partial_{2}$ is not a globally well-defined vector field. If we had chosen a globally well-defined vector-field the duality would not have resulted in a non-geometric background. \paragraph{$R$-flux background:} Finally, we can perform a duality along the remaining direction, $x^3$. This is no longer an isometry and so the usual Buscher procedure fails. However, double field theory gives a framework in which this ``generalised T-duality'' \cite{Dabholkar:2005ve} can be made sense of.\footnote{Recent progress has been made in understanding such generalised T-dualities from non-linear sigma models \cite{Chatzistavrakidis:2015lga,Chatzistavrakidis:2016jci,Chatzistavrakidis:2016vsy}.} It boils down to applying the Buscher rules as if we had dualised along an isometry and also exchanging the coordinate $x^3$ with its ``dual coordinate'' $\tilde{x}_3$. In the new coordinate system we would thus have that ${x^3} \longrightarrow \tilde{x}_3$ is a dual coordinate on which the background will now depend. After duality the metric and $\beta$-field are given by \begin{equation} \hat{ds}^2 = \left(dx^2\right)^2 + \left(dx^2\right)^2 + \left(dx^3\right)^2 \,, \qquad \beta^{12} = N \tilde{x}_3 \,. \label{eq:RFluxT3} \end{equation} The $R$-flux is defined by \cite{Andriot:2011uh,Andriot:2012wx} \begin{equation} R^{ijk} = 3 \hat{\partial}^{[i} \beta^{jk]} \,, \end{equation} with $\hat{\partial}^{i} = \tilde{\partial}^{i} + \beta^{ij} \partial_j$ and is here given by \begin{equation} R^{123} = N \,. \end{equation} The backgrounds given here do not define CFTs and hence serve only as a toy-model. However, we expect these effects to be realised in CFTs as well because the non-geometry arises by dualising along a vector field, here $\partial_2$ which is not globally-well defined. This is what causes the dual theory to be ``non-geometric''. In the language of double field theory, the corresponding section which is parameterised by the coordinates $x^1$, $x^2$ and $\tilde{x}_3$, is not globally well-defined and this generates the non-geometry. Similarly, the $R$-flux background arises because of the dualisation along a direction which is not an isometry. Starting from the twisted torus, the $R$-flux background is generated by dualising along one direction which is not globally well-defined and one which is not an isometry. In fact, the so-called exotic branes of de Boer and Shigemori \cite{deBoer:2010ud,deBoer:2012ma} and the ``$Q$-branes'' and ``$R$-branes'' \cite{Hassler:2013wsa,Bakhmatov:2016kfn} realise the above duality chain at the level of supergravity solutions, see for example \cite{Blair:2014zba}. Furthermore, it was shown in \cite{Condeescu:2013yma} that in specific left-right asymmetric orbifold constructions the non-geometric $R$-flux emerges in the context of the gauged supergravity algebra after dimensional reduction. \subsection{Uplift of the string theory duality chain} \label{s:MToy} Now we wish to describe how these fluxes and the associated T-duality transformations are embedded in M-theory or, respectively, exceptional field theory. The M-theory uplift of the above string compactifications is described by the $\SL{5}$ exceptional field theory, which governs compactifications to seven dimensions. The non-geometric fluxes of the $\SL{5}$ exceptional field theory were described in \cite{Blair:2014zba} and we follow the notation of that paper. If we were considering only IIA backgrounds (the argument can of course be repeated for IIB), we would require two T-dualities so that the above duality chain splits into \begin{equation}\label{eq:TdualityChainSplit} H_{ijk} \stackrel{T_{ij}}{\longrightarrow} Q_k^{ij} \,, \qquad f^i_{jk} \stackrel{T_{jk}}{\longrightarrow} R^{ijk}\,. \end{equation} When we uplift to M-theory, two T-dualities become three U-dualities with the third duality along the M-theory circle, ensuring the right dilaton shift. Thus when considering 11-dimensional backgrounds, we need to perform three U-dualities. Then in order to obtain the 11-dimensional analogue of the $R$-flux background we need to act with three U-dualities on a background with geometric flux. Let us thus consider the internal space of a twisted torus times a circle, $\tilde{T}^3 \times S^1$, so that \begin{equation} ds_4^2 = \left(\dy\right)^2 + \left(\dz\right)^2 + \left(\dw\right)^2 + \left(d\x - Nx^3d\y \right)^2 \,, \qquad C_3 = 0 \,, \label{eq:TwistedTorusMetric} \end{equation} with the identifications \begin{equation} \begin{split} \left( x^1,x^2,x^3,x^4 \right) &\sim \left( x^1 + 1,x^2,x^3,x^4 \right) \sim \left( x^1,x^2 + 1,x^3,x^4 \right) \sim \left( x^1 + N x^2,x^2,x^3 + 1,x^4 \right) \\ & \sim \left( x^1,x^2,x^3,x^4 + 1 \right) \,. \end{split} \end{equation} In order to obtain the locally non-geometric R-flux background we must dualise along the coordinates $x^2$, $x^3$ and $x^4$. Because of the duality along the $x^3$ direction, the $x^3$ appearing in the metric \eqref{eq:TwistedTorusMetric} will become a dual coordinate $\tilde{x}_{24}$, in the $R$-flux background. This is analogous to what we saw for the string $R$-flux background. In fact, the resulting space is now fibred over the dual circle parameterised by $\tilde{x}_{24}$ making the background locally non-geometric. Furthermore, the $R$-flux background cannot be described using a metric and three-form $C_3$ since these would be ill-defined -- even on an ``extended space''. If one tried one would find \begin{equation} \begin{split} ds_{11}^2 &= \left( 1 + N^2 \tilde{x}_{24}^2 \right)^{1/3} ds_7^2 + \left( 1 + N^2 \tilde{x}_{24}^2 \right)^{1/3} \left(\dz\right)^2 \\ & \quad + \left(1+N^2\tilde{x}_{24}^2\right)^{-2/3} \left( \left(\dx\right)^2 + \left(\dy\right)^2 + \left(\dw\right)^2 \right) \,, \\ C_3 &= \frac{N\tilde{x}_{24}}{1+N^2 \tilde{x}_{24}^2} d\x\wedged\z\wedged\w \,, \label{eq:MRFluxBF} \end{split} \end{equation} where we have included the external part of the metric to highlight the warping. This is ill-defined along the $\tilde{x}_{24}$ circle (albeit this is now in the dual space), where one would have to patch with a U-duality as $\tilde{x}_{24} \longrightarrow \tilde{x}_{24} + 1$. Completely analogous to the string-theory case, we can instead use a trivector, which can be related by a field redefinition (or equivalently in exceptional generalised geometry or exceptional field theory by a $\mathrm{SO}(5)$ rotation, which changes the parameterisation of the generalised vielbein) \cite{Blair:2014zba} \begin{equation} \begin{split} \hat{g}_{\alpha\beta} &= \left( 1 + V^2 \right)^{-1/3} \left[ \left(1+V^2\right) g_{\alpha\beta} - V_\alpha V_\beta \right] \,, \\ \Omega^{\alpha\beta\gamma} &= \left( 1 + V^2 \right)^{-1} g^{\alpha\rho} g^{\beta\sigma} g^{\gamma\delta} C_{\rho\sigma\delta} \,, \\ \hat{ds}_7^2 &= \left(1+V^2\right)^{-1/3} ds_7^2 \,. \label{eq:FieldRedef} \end{split} \end{equation} Here the indices $\alpha, \beta = 1, \ldots, 4$ and $V^\alpha = \frac{1}{3!|e|} \epsilon^{\alpha\beta\gamma\delta} C_{\beta\gamma\delta}$ with $\epsilon^{\alpha\beta\gamma\delta} = \pm 1$ the tensor density. Also we defined $V^2 = V^\alpha V^\beta g_{\alpha\beta}$. Using these fields, the background is given by \begin{equation} \hat{ds}_{11}^2 = ds_7^2 + \left(\dx\right)^2 + \left(\dy\right)^2 + \left(\dz\right)^2 + \left(\dw\right)^2 \,, \qquad \Omega^{134} = N \tilde{x}_{24} \,, \label{eq:MRFluxGF} \end{equation} and is clearly well-defined. The $R$-flux in M-theory is defined as \cite{Blair:2014zba} \begin{equation} R^{\alpha,\beta\gamma\delta\rho} = 4 \hat{\partial}^{\alpha[\beta} \Omega^{\gamma\delta\rho]} \,, \end{equation} where $\hat{\partial}^{\alpha\beta} = \partial^{\alpha\beta} + \Omega^{\alpha\beta\gamma} \partial_\gamma$, with \begin{equation} \partial^{\alpha\beta} = \frac{\partial}{\partial x_{\alpha\beta}} \,, \end{equation} the derivative with respect to the dual coordinates. The derivative $\hat{\partial}^{\alpha\beta}$ is an ``improved dual derivative'' \cite{Blair:2014zba} in order to obtain a spacetime tensor. We summarise this and other relevant results of \cite{Blair:2014zba} in Appendix \ref{s:A2}. Thus we find \begin{equation} R^{4,1234} = N \,. \end{equation} In the case at hand, the field redefinition, or equivalently the $\mathrm{SO}(5)$ transformation, \eqref{eq:FieldRedef} is globally ill-defined since it relates an ill-defined frame \eqref{eq:MRFluxBF} to a well-defined one \eqref{eq:MRFluxGF}. A more careful analysis would observe that using the globally well-defined 1-forms of the twisted torus we can write down a globally well-defined generalised vielbein in the ``geometric frame'' \begin{equation} E_a{}^{\bar{a}} = e^{1/10} \begin{pmatrix} e_\alpha{}^{\bar{\alpha}}/\sqrt{e} & 0 \\ V^{\bar{\alpha}} & \sqrt{e} \end{pmatrix} \,, \label{eq:StdGeneralisedVielbein} \end{equation} where $\alpha = 1, \ldots, 4$ denotes spacetime indices, $\bar{\alpha}$ are the spacetime indices flattened by the spacetime vielbein $e_\alpha{}^{\bar{\alpha}}$. $e$ denotes the determinant fo the vielbein and $V^\alpha = \frac{1}{3!|e|} \epsilon^{\alpha\beta\gamma\delta} C_{\beta\gamma\delta}$ is the dualised 3-form, with $\epsilon^{\alpha\beta\gamma\delta} = \pm 1$ the alternating tensor density. We thus have for the twisted torus \begin{equation} \left(E^{TT}\right)_a{}^{\bar{a}} = \begin{pmatrix} 1 & 0 & 0 & 0 & 0 \\ - Nx^3 & 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 1 \end{pmatrix} \,, \end{equation} where the $TT$ superscript stands for ``twisted torus''. Dualising to the $R$-flux background we have \begin{equation} \left(E^R\right)_a{}^{\bar{a}} = \begin{pmatrix} 1 & 0 & 0 & 0 & - N \tilde{x}_{24} \\ 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 1 \end{pmatrix} \,, \end{equation} and we see that the parameterisation of the generalised vielbein \eqref{eq:StdGeneralisedVielbein} is not globally well-defined. However, there is a different parameterisation, also known as the ``non-geometric frame'' given by \begin{equation} E_a{}^{\bar{a}} = e^{1/10} \begin{pmatrix} e_\alpha{}^{\bar{\alpha}}/\sqrt{e} & W_\alpha \\ 0 & \sqrt{e} \end{pmatrix} \,, \label{eq:NGGeneralisedVielbein} \end{equation} where $W_\alpha = \frac{|e|}{3!} \epsilon_{\alpha\beta\gamma\delta} \Omega^{\beta\gamma\delta}$ is dual to a trivector, the generalisation of the bivector $\beta^{ij}$ of string theory. We see immediately that this parameterisation is globally well-defined leading to \eqref{eq:MRFluxGF}. \section{The non-associative algebras generated by octonions and their contractions} \subsection{The Malcev algebra of imaginary octonions} \label{s:OctAssoc} The imaginary units $e_A$, (with $A = 1, \ldots, 7$) of octonions generate a simple Malcev algebra under the commutator product which is non-commutative and non-associative, and which we will often refer to as the algebra of imaginary octonions. For readers unfamiliar with the octonions, we summarise their relevant features in appendix \ref{s:AppOctonions}, including their multiplication rules in \ref{s:AppOctMult} following \cite{Gunaydin:1973rs} and the definition of a Malcev algebra in \ref{s:AppMalcev}. For the applications considered in this paper we shall relable three of the imaginary units as follows \begin{equation} e_{(i+3)} = f_i \,, \qquad \textrm{for } i = 1, 2, 3 \,. \end{equation} In terms of $e_i, f_i$ and $e_7$ the multiplication table of octonions $\mathbb{O}$ takes the form \begin{equation} \begin{split} e_i e_j &= - \delta_{ij} + \epsilon_{ijk} e_k\,, \\ e_i f_j &= \delta_{ij} e_7 - \epsilon_{ijk} f_k\,, \\ f_i f_j &= - \delta_{ij} - \epsilon_{ijk} e_k\,, \\ e_7 e_i &= f_i\,, \qquad f_i e_7 = e_i \,, \end{split} \end{equation} with $e_A e_B = - e_B e_A$ whenever $A \neq B$. The commutators of the imaginary octonions in this basis are given by \begin{equation} \begin{split} \left[ e_i, e_j \right] &= 2 \epsilon_{ijk} e_k \,, \qquad \left[ e_7, e_i \right] = 2 f_i \,, \\ \left[ f_i, f_j \right] &= - 2 \epsilon_{ijk} e_k \,, \qquad \left[ e_7, f_i \right] = - 2 e_i \,, \\ \left[ e_i, f_j \right] &= 2 \delta_{ij} e_7 - 2 \epsilon_{ijk} f_k \,. \label{eq:OctCommut} \end{split} \end{equation} We define the associator for any three imaginary octonions $e, f, g \in \mathbb{O}$ as \begin{equation} \left[ e, f, g \right] = 2 (ef)g - 2 e(fg) \,. \label{eq:OctTriple} \end{equation} Note that with this convention the associator of the octonions is related to the Jacobiator by \begin{equation} \left[ e, f, g \right] = \frac{1}{3} \left( \left[ \left[ e, f\right], g \right] + \left[ \left[g, e\right], f \right] + \left[ \left[ f, g\right], e \right] \right) = \frac13 \mathrm{Jac}\left(e,f,g\right) \,. \end{equation} The associator of the three imaginary units of any given quaternion subalgebra, such as that spanned by the $e_i$, ($i=1,2,3$) vanishes. The non-vanishing associators of the imaginary units of $\mathbb{O}$ in the above basis are as follows: \begin{equation} \begin{split} \left[e_i, e_j, f_k\right] &= 4 \epsilon_{ijk} e_7 - 8 \delta_{k[i} f_{j]} \,, \\ \left[e_i, f_j, f_k \right] &= -8 \delta_{i[j} e_{k]} \,,\\ \left[f_i,f_j, f_k\right] &= -4 \epsilon_{ijk} e_7 \,,\\ \left[e_i, e_j, e_7\right] &= -4 \epsilon_{ijk} f_k \,,\\ \left[e_i, f_j, e_7\right] &= -4 \epsilon_{ijk} e_k \,,\\ \left[f_i, f_j, e_7\right] &= 4\epsilon_{ijk} f_k \,. \label{eq:OctAssoc} \end{split} \end{equation} \subsection{Contraction of the Malcev algebra of octonions to the string $R$-flux algebra} \label{s:Contraction} We will now show that the string $R$-flux algebra can be obtained by contracting the octonionic Malcev algebra given in equations \eqref{eq:OctCommut} and \eqref{eq:OctAssoc}. Recall that the coordinates and momenta of strings in the $R$-flux background, $x^i$ and $p_i$, have been shown to form a non-associative algebra \cite{Lust:2010iy,Blumenhagen:2010hj,Blumenhagen:2011ph,Lust:2012fp,Blumenhagen:2013aia}\footnote{This algebra also shows up in the other T-duality frames with $H$-, $f$- and $Q$-flux respectively \cite{Blumenhagen:2011ph} as it is clear also from the view point of double field theory \cite{Bakas:2013jwa,Blumenhagen:2013zpa}, but we restrict the discussion to the $R$-flux background.} whose only non-vanishing relations are \begin{equation} \left[ x^i, x^j, x^k \right] = R^{ijk} \,, \qquad \left[ x^i, x^j \right] = i R^{ijk} p_k \,, \qquad \left[ x^i, p_j \right] = i \delta^i_j \,.\label{onestring} \end{equation} The triple-bracket here is the associator defined in terms of commutators as \begin{equation} \left[ x^1, x^2, x^3 \right] = \frac13 \left( \left[ \left[ x^1, x^2\right], x^3 \right] + \left[ \left[x^3, x^1\right], x^2 \right] + \left[ \left[ x^2, x^3\right], x^1 \right] \right) \,. \end{equation} For the moment we have set the constants $\hbar$ and $l_s$, which appeared in equations \eqref{commclosed}-\eqref{asso}, to unity but we will comment on them later on. For the parabolic $R$-flux model on $T^3$, the $R$-flux is just proportional to the epsilon tensor: $R^{ijk} = N \epsilon^{ijk}$. In order to recover this algebra from the Malcev algebra generated by imaginary octonions we define the three string momenta $p_i$ as the contraction of the three imaginary units $e_i$ and the three string coordinates $x^i$ as a contraction of the three imaginary unites $f_i$ as follows \begin{equation} p_i = - i \lambda \frac{1}{2} e_i \, ,\qquad x^i = i \lambda^{1/2} \frac{\sqrt{N}}{2} f_i \,, \label{cona} \end{equation} where in a moment we will take the limit $\lambda\rightarrow 0$. Furthermore, we define the contraction of the seventh imaginary unit as \begin{equation} I = i \lambda^{3/2} \frac{\sqrt{N}}{2} e_7 \, .\label{conb} \end{equation} Now the contraction of the octonionic algebra is defined by taking the limit $\lambda\rightarrow 0$. In this way we obtain \begin{equation} \left[f_i , f_j\right] = - 2 \epsilon_{ijk} e_k\quad \Longrightarrow \quad [ x^i ,x^j ] = i N \epsilon^{ijk} p_k \,, \end{equation} and \begin{equation} \left[e_i , e_j\right] = 2 \epsilon_{ijk} e_k \quad \Longrightarrow\quad [ p_i ,p_j ] = 0 \,, \end{equation} which shows that the quaternionic subalgebra of the momenta becomes completely commuting after contraction. Finally due to the contraction of the seventh imaginary unit one derives \begin{equation} \begin{split} \left[x^i , p_j\right] &= \lim_{\lambda \rightarrow 0} \left( \frac{\lambda^{3/2}\sqrt{N}}{4} \left[ f_i , e_j \right]\right) = \lim_{\lambda \rightarrow 0} (\frac{\lambda^{3/2}\sqrt{N}}{2} ) \left[ -\delta^{i}_{j} e_7 + \epsilon^{i}{}_{jk} f_k \right] \\ &= i \delta^{i}_{j} I + \lim_{\lambda \rightarrow 0} \epsilon^{i}{}_{jk} ( \lambda x_k) = i \delta^{i}_{j} I \,, \label{eq:xpstringJ} \end{split} \end{equation} and \begin{equation} \left[ x_i , I\right] =0 = \left[p_i , I \right] \,. \end{equation} $I$ is thus a central element of the contracted algebra and can be taken to be the identity operator. Finally, the only non-vanishing associator after contraction is that of three coordinates \begin{equation} \left[f_i,f_j, f_k\right] = -4 \epsilon_{ijk} e_7 \quad \Longrightarrow \quad \left[x^i, x^j, x^k \right] = N \epsilon^{ijk} I \,. \end{equation} Now by replacing $N\epsilon^{ijk}$ with $R^{ijk}$ we see that the contracted algebra is indeed the string theory $R$-flux algebra \eqref{onestring}. \subsection{The M-theory $R$-flux algebra} \label{s:MNonAssoc} Given that the non-associative string $R$-flux algebra is recovered by a contraction of the Malcev algebra of imaginary octonions, it is natural to ask what, if any, role the full uncontracted algebra of imaginary octonions plays. Here we propose that it gives the uplift of the string $R$-flux algebra to M-theory. That is, we conjecture that M-theory with locally non-geometric flux also has a non-associative structure which for four-dimensional backgrounds is given by the Malcev algebra of imaginary octonions as we will make precise in section \ref{s:MAlgebra}. First we wish to address how one can identify the seven imaginary octonions $e_i$, $f_i$ and $e_7$ with the phase space of membranes moving in a four-dimensional M-theory background. Naively, this is not possible as one would expect the phase space to be eight-dimensional. However, we will now show that the phase space for locally non-geometric backgrounds is indeed seven-dimensional, providing evidence for our conjecture. \subsubsection{A lack of momentum} Let us consider the toy model discussed in section \ref{s:MToy} where a locally non-geometric M-theory background is obtained by U-duality from a twisted torus. We will show that in this case the locally non-geometric background is ``missing'' a momentum mode, and this allows us to identify the seven imaginary octonions with the phase space variables, consisting of four coordinates $X^\alpha$ and three momenta $P_i$. Under U-duality momentum modes are exchanged with wrapping numbers, which are classified by homology. As a result, the homology of the twisted torus also determines the possible momenta of the $R$-flux background. A ``missing'' cycle in the homology -- compared to a toroidal background -- implies that the dual background is missing a momentum mode, compared to naive expectations. This phenomenon occurs for the M-theory twisted torus and its dual locally non-geometric background as we will now explain. Under U-duality along the $x^2$, $x^3$, $x^4$ directions, the following wrapping numbers of the twisted torus, where they exist, become momenta of the $R$-flux background \begin{equation} W^{23} \longrightarrow P_4 \,, \qquad W^{42} \longrightarrow P_3 \,, \qquad W^{34} \longrightarrow P_2 \,. \end{equation} The twisted background \eqref{eq:TwistedTorusMetric} is just $ \tilde{T}^3\times S^1$, where $S^1$ is the $x^4$-circle and $\tilde{T}^3$ is the twisted torus parameterised by the $(x^1,x^2,x^3)$ coordinates. Therefore the 2-cycles corresponding to $W^{42}$ and $W^{34}$ are the tori whose 1-cycles are the $x^4$-cycle and $x^2$-/$x^3$-cycles, respectively, of the $\tilde{T}^3$. On the other hand, the cycle of $W^{23}$ corresponds to the $(x^2x^3)$ 2-cycle of $\tilde{T}^3$. However, for there to be a wrapping number for these cycles, they need to be homologically non-trivial. We will now see that this is the case for the $(\wx^2)$- and $(x^3x^4)$-cycles but not for the $(x^2x^3)$-cycles, and so there is no $W^{23}$ wrapping number. Let us begin by studying the deRham cohomology of $\tilde{T}^3$. Recall from \eqref{eq:TwistedTorus1Forms} that the globally well-defined 1-forms on $\tilde{T}^3$ are \begin{equation} \eta^1 = d\x - N x^3 d\y \,, \qquad \eta^2 = d\y \,, \qquad \eta^3 = d\z \,. \end{equation} None of these are exact but not all three are closed since \begin{equation} d\eta^2 = d\eta^3 = 0 \,, \qquad d\eta^1 = N d\y \wedge d\z \neq 0 \,. \end{equation} Thus $H^1(\tilde{T}^3,\mathbb{R}) = \mathbb{R}^2$ and is generated by the $x^2$- and $x^3$-cycles so there are wrapping numbers $W^{42}$ and $W^{34}$. For the second cohomology we could just apply Poincar\'{e} duality to see that there is no $(x^2x^3)$-cycle and so $H^2(\tilde{T}^3,\mathbb{R}) = \mathbb{R}^2$. Equivalently, we can consider the three globally-defined two-forms \begin{equation} \begin{split} \kappa^{12}& = \eta^1\wedge\eta^2 = d\x \wedge d\y \,, \\ \kappa^{13} &= \eta^1\wedge\eta^3 = d\x \wedge d\z - Nx^3d\y\wedged\z \,, \\ \kappa^{23} &= \eta^2\wedge\eta^4 = d\y \wedge d\z \,. \end{split} \end{equation} While these are all closed, $\kappa^{23} = \frac{1}{N} d\eta^1$ is exact. So as expected there are only two elements of the second deRham cohomology, generated by $\kappa^{12}$ and $\kappa^{13}$. There is no $(x^2x^3)$-cycle and consequently no wrapping number $W^{23}$. The above argument is actually naive because the wrapping numbers take values in the integer homology groups and these can have torsion parts. In fact $H_1(\tilde{T}^3,\mathbb{Z}) = \mathbb{Z}^2 \oplus \mathbb{Z}_N$, as can be seen from Hurewicz's theorem for path-connected spaces $X$, which says \begin{equation} H_1(X,\mathbb{Z}) \simeq \pi_1^{ab}(X) \,, \end{equation} i.e. the integral first homology group is the abelianisation of the fundamental group. Here this is easily seen to be $\pi_1^{ab}(\tilde{T}^3) = \mathbb{Z}^2 \oplus \mathbb{Z}_N$, see for example \cite{Kachru:2002sk}. The $\mathbb{Z}^2$ in this case is generated by the $x^2$ and $x^3$-cycles so that we still have wrapping numbers $W^{42}$ and $W^{34}$, which are now quantised as expected.\footnote{The torsion part corresponds to the $x^1$-direction and plays a role in string theory compactified on the twisted torus, as discussed in \cite{Kachru:2002sk}. There the finite order of windings along the $x^1$-direction, taking values in $\mathbb{Z}_N$, are dual to momenta in the $T^3$ background with $H$-flux which are only conserved modulo $N$ due to the $B$-field.} However, $H_2(\tilde{T}^3,\mathbb{Z})$ cannot have torsion since $\tilde{T}^3$ is oriented. This follows from the fact that for any $n$-dimensional oriented topological space $X$, $H_{n-1}(X,\mathbb{Z})$ must be torsion-free. Therefore, the naive deRham cohomology computation is correct in this case. As a result there is no momentum $P_4$ along the $x^4$ directions in the dual $R$-flux background and this is a key insight to allow us to identify the non-associative $R$-flux algebra with that of octonions discussed in section \ref{s:OctAssoc}. The fact that there is no momentum in the $X^4$ direction means that in the appropriate string theory picture there cannot be D0-branes. Indeed, this agrees with \cite{Wecht:2007wu} where it is argued that there are no D0-branes in the string $R$-flux model because D3-branes cannot wrap a $T^3$ with $H$-flux due to the Freed-Witten anomaly. By applying three T-dualities to the $T^3$ with $H$-flux one obtains the string $R$-flux background and, conversely, D0-branes in the $R$-flux backgrounds would be dual to D3-branes on $T^3$ with $H$-flux which do not exist. Hence the $R$-flux background cannot support D0-branes. Our M-theory consideration lead to the same conclusion if we take the $X^4$ direction to be a vanishing circle. Motivated by our findings for this toy model we postulate that for a general background with $R$-flux $R^{\alpha,\beta\gamma\delta\rho}$, the momenta satisfy the constraints \begin{equation} P_\alpha R^{\alpha,\beta\gamma\delta\rho} = 0 \,, \label{eq:MomentumConstraint} \end{equation} which implies that some momentum modes are missing. Indeed, one could more generally consider dualising a $\mathrm{U}(1)$-fibration with non-vanishing 1st Chern Class in such a way as to obtain a locally non-geometric background. Because the 1st Chern Class is trivial in the total space of the $\mathrm{U}(1)$-fibration we again expect a missing momentum mode in the dual $R$-flux background. As discussed above, this lack of momentum implies there can be no D0-branes in the string theory limit, and this in turn is related to the Freed-Witten anomaly by duality. This suggests that the M-theory constraint \eqref{eq:MomentumConstraint} may be related to a membrane anomaly cancellation condition and we would hope that a duality-invariant study of membranes leads to a constraint of the form of \eqref{eq:MomentumConstraint}. \subsubsection{The M-theory $R$-flux algebra} \label{s:MAlgebra} As we have just shown the phase space of the locally non-geometric background is seven-dimensional. In light of the contraction to the string algebra, discussed in \ref{s:Contraction}, we now conjecture that for the parabolic model the coordinates and momenta are given in terms of the imaginary octonions by \begin{equation} X^i = \frac12 i \sqrt{N} f_i \,, \qquad X^4 = \frac12 i \sqrt{N} e_7 \,, \qquad P_i = - \frac12 i e_i \,, \label{eq:XPnodimensions} \end{equation} where $i = 1, \ldots, 3$. Here the non-vanishing $R$-flux is given by (see section \ref{s:MToy} and appendix \ref{s:AppRflux} ) \begin{equation} R^{4,\alpha\beta\gamma\delta} = N \epsilon^{\alpha\beta\gamma\delta} \,, \end{equation} so that the above parameterisation of the phase space \eqref{eq:XPnodimensions} satisfies the constraint \eqref{eq:MomentumConstraint}. We will also write the four coordinates as $X^{\alpha} = \left( X^i, X^4 \right)$ with $\alpha = 1, \ldots, 4$. These variables now generate a non-commutative and non-associative algebra with commutators \begin{equation} \begin{split} \left[ X^i, X^j \right] &= i N \epsilon^{ijk} P_k \,, \qquad \left[X^4, X^i \right] = i N P^i \,, \\ \left[ P_i, P_j \right] &= - i \epsilon_{ijk} P^k \,, \qquad \left[ P_i, X^4 \right] = i X_i \,, \\ \left[ X^i, P_j \right] &=i \delta^i_j X^4 + i \epsilon^{i}{}_{jk} X^k \,, \end{split} \end{equation} and non-vanishing associators \begin{equation} \begin{split} \left[ X^\alpha, X^\beta, X^\gamma \right] &= N \epsilon^{\alpha\beta\gamma\delta} X_\delta \,, \\ \left[ P_i, X_j, X_k \right] &= 2 N \delta_{i[j} P_{k]} \,, \\ \left[ P_i, X_j, X_4 \right] &= N \epsilon_{ijk} P^k \,, \\ \left[ P_i, P_j, X_\alpha \right] &= - \epsilon_{ij\alpha\beta} X_\beta + 2 \delta_{\alpha[i} X_{j]} \,. \label{eq:MAlgebraNoUnits} \end{split} \end{equation} The $P_i$ define a Lie subalgebra with vanishing Jacobiators. Throughout we raise and lower indices with $\delta_{\alpha\beta}$. This makes sense because the $\mathrm{SO}(4)$ subgroup of the $\textrm{G}_2$ automorphism group of octonions preserves the above split into momenta and coordinates. We rewrite the algebra in a manifestly $\mathrm{SO}(4)$-invariant manner in appendix \ref{s:AppSO4}. We now recognise the combinations $N \epsilon^{\alpha\beta\gamma\delta} = R^{4,\alpha\beta\gamma\delta}$ as the $R$-flux tensor and thus we write the algebra as \begin{equation} \begin{split} \left[ X^i, X^j \right] &= i R^{4,ijk4} P_k \,, \qquad \left[X^4, X^i \right] = i R^{4,1234} P^i \,, \\ \left[ P_i, P_j \right] &= -i \epsilon_{ijk} P^k \,, \qquad \left[ P_i, X^4 \right] = i X_i \,, \\ \left[ X^i, P_j \right] &= i \delta^i_j X^4 + i \epsilon^{i}{}_{jk} X^k \,, \\ \left[ X^\alpha, X^\beta, X^\gamma \right] &= R^{4,\alpha\beta\gamma\delta} X_\delta \,, \\ \left[ P_i, X^j, X^k \right] &= 2 R^{4,1234} \delta_{i}^{[j} P^{k]} \,, \\ \left[ P^i, X^j, X^4 \right] &= R^{4,ijk4} P_k \,, \\ \left[ P_i, P_j, X_\alpha \right] &= - \epsilon_{ij\alpha\beta} X_\beta + 2 \delta_{\alpha[i} X_{j]} \,. \label{eq:MAlgebraR} \end{split} \end{equation} We see that the algebra is compatible with the form of the $R$-flux tensor as given by exceptional field theory \cite{Blair:2014zba}. In particular the relationship \begin{equation} \left[ X^\alpha, X^\beta, X^\gamma \right] = R^{4,\alpha\beta\gamma\delta} X_\delta \,, \end{equation} is a natural generalisation of \eqref{onestring}. The algebra \eqref{eq:MAlgebraR} given in the form above is expressed in terms of preferred coordinates, where we have broken the diffeomorphism-invariance by solving the missing-momentum constraint \eqref{eq:MomentumConstraint} explicitly. There is no three-dimensional representation of $\SL{4}$ and hence solving this constraint so that only three momenta survive necessarily leads to an algebra which is not $\SL{4}$-invariant. Indeed, the above algebra is invariant under $\mathrm{SO}(4)$, as further discussed in \ref{s:AppSO4}, which does have a three-dimensional representation. However, this $\mathrm{SO}(4)$ group does not act on the spacetime indices in a consistent way since it treats $X^\alpha$ as a vector while leaving $R^{4,\alpha\beta\gamma\delta} = \epsilon^{\alpha\beta\gamma\delta}$ invariant. It is not clear to us whether this $\mathrm{SO}(4)$ symmetry is physical. One should also note that the algebra \eqref{eq:MAlgebraR} is not invariant under $\SL{3}$ either but that this symmetry is restored upon contraction as we have seen in section \ref{s:Contraction}. We have used dualities to justify our conjectured constraint \eqref{eq:MomentumConstraint} which produces a seven dimensional phase space. However, it would be nice to understand the constraint in an appropriate mathematical framework, given its unusual feature of producing an \emph{odd}-dimensional phase space. For example, one may wonder whether there is a way of implementing the constraint \eqref{eq:MomentumConstraint} in a covariant manner, say by some form of ``Nambu-Dirac bracket'' which implements the phase space constraint while still violating the Jacobi identity. This presumably should allow us to rewrite \eqref{eq:MAlgebraR} in a manifestly diffeomorphism-invariant manner where indices are not raised or lowered by $\delta_{\alpha\beta}$. It would then be interesting to see how such a Nambu-Dirac bracket reduces the phase-space dimension by an odd number and what the corresponding notion of first- and second-class constraints are. We also note that there are two kinds of modifications of the phase space algebra compared to the flat-space case \begin{equation} \left[ X^\alpha, X^\beta \right] = \left[ P_\alpha, P_\beta \right] = 0 \,, \qquad \left[ X^\alpha, P_\beta \right] = i \delta^\alpha_\beta \,. \end{equation} One is proportional to $R^{4,\alpha\beta\gamma\delta}$ and increases as $N$ increases, while the other modification is independent of $N$ (though of course requires $N \neq 0$). While the first modification is linear in the flux and survives the contraction process, the second modification is due to the fact that there is a missing momentum mode and will not survive the contraction process. Finally, let us note that both of these modifications are necessary in order for the algebra to be invariant under $\mathrm{SO}(4)$. \subsubsection{The dimensionful M-theory algebra} \label{s:DimAlgebra} We have seen that the string $R$-flux algebra can be obtained as a contraction of the algebra of imaginary octonions and we proposed that the uncontracted algebra of imaginary octonions is the uplift of the $R$-flux algebra to M-theory. Thus we see that $\lambda\rightarrow 0$ plays the role of going from M-theory to the type IIA string by taking the limit of weak string coupling $g_s\rightarrow 0$ or equivalently the limit of vanishing radius of the 11th direction $R_{11}\rightarrow0$. Hence it is natural to identify the contraction parameter $\lambda$ with the string coupling constant, with $g_s \rightarrow 0$ as $\lambda \rightarrow 0$. However, there may not be a simple polynomial relationship between $\lambda$ and $g_s$. Instead $\lambda$ may approach a finite value as $g_s \rightarrow \infty$. Now we can finally go back to uncontracted algebra \eqref{eq:MAlgebraR} and introduce $\lambda$, as follows from the contraction \eqref{cona} and \eqref{conb}. We conjecture $\lambda$ to be related to the string coupling constant $g_s$ as discussed above, with $\lambda \rightarrow 0$ as $g_s \rightarrow 0$. Furthermore we also want to re-introduce $\hbar$ and string length $l_s$ at their relevant positions. This involves defining the positions and momenta in terms of the imaginary octonions as \begin{equation} X^i = \frac12 i \sqrt{N} l_s^{3/2} \lambda^{1/2} f_i \,, \qquad X^4 = \frac12 i \sqrt{N} l_s^{3/2} \lambda^{3/2} e_7 \,, \qquad P^i = - \frac12 i \hbar \lambda e_i \,. \end{equation} Then the full non-associative M-theory algebra takes the following final form: \begin{equation} \begin{split} \left[ P_i, P_j \right] &= - i \lambda \hbar \epsilon_{ijk} P^k \,, \qquad \left[ X^4, P_i \right] = i \lambda^2 \hbar X_i \,, \\ \left[ X^i, X^j \right] &= \frac{il_s^3}{\hbar} R^{4,ijk4} P_k \,, \qquad \left[ X^4, X^i \right] = \frac{i \lambda l_s^3}{\hbar} R^{4,1234} P^i \,, \\ \left[ X^i, P_j \right] &= i \hbar \delta^{i}_{j} X^4 + i \lambda \hbar \epsilon^{i}{}_{jk} X^k \,, \\ \left[ X^i, X^j, X^k \right] &= l_s^3 R^{4,ijk4} X_4 \,, \\ \left[ X^i, X^j, X^4 \right] &= - \lambda^2 l_s^4 R^{4,ijk4} X_k \,, \\ \left[ P_i, X^j, X^k \right] &= 2 \lambda l_s^3 R^{4,1234} \delta_{i}^{[j} P^{k]} \,, \\ \left[ P^i, X^j, X^4 \right] &= \lambda^2 l_s^3 R^{4,ijk4} P_k \,, \\ \left[ P_i, P_j, X_k \right] &= - \lambda^2 \hbar^2 \epsilon_{ijk} X^4 + 2 \lambda \hbar^2 \delta_{k[i} X_{j]} \,, \\ \left[ P_i, P_j, X_4 \right] &= \lambda^3 \hbar^2 \epsilon_{ijk} X_k \,, \\ \left[ P_i, P_j, P_k \right] &= 0 \,. \label{eq:FullMAlgebra} \end{split} \end{equation} As shown before, in the limit $\lambda \rightarrow 0$ (i.e. $g_s\rightarrow 0$) this M-theory algebra correctly reduces to the string $R$-flux algebra. While we do not know the precise relationship between $\lambda$ and $g_s$, we speculate that $\lambda$ has a finite value as $g_s \rightarrow \infty$ so that the above algebra could still be made sense of in the strong-coupling regime.\footnote{One may wonder how one should define non-geometric fluxes in a non-compact setting, where the usual picture of a U-duality valued monodromy fails. We note that one could consider the duality with the twisted torus as a definition. A careful analysis shows that the value of $\Omega^{ijk}$ remains finite in the limit that the volume of the dual twisted torus is taken to vanish. $\Omega^{ijk}$ is in fact independent of the dual volume.} \section{Discussion} \label{s:Discussion} In this paper, we have shown how the non-associative phase space algebra for string $R$-flux backgrounds can be obtained by a contraction of the imaginary octonions. We further proposed that the full uncontracted algebra of imaginary octonions provides an uplift of the $R$-flux algebra to M-theory. We thus conjecture that locally non-geometric M-theory backgrounds also exhibit non-associativity amongst their coordinates. We then showed using a four-dimensional background which is dual to a twisted torus and serves as a toy-model for a locally non-geometric M-theory background that there is a missing momentum mode. As a result, the phase space is indeed seven-dimensional and substantiates our non-associative proposal for M-theory. The algebra, as we have written it, is not invariant under diffeomorphisms, because of the lack of the momentum mode. A crucial aspect of our proposal is the missing momentum mode for the locally non-geometric background which we proposed can in general be implemented as a constraint on phase space of the form \begin{equation} R^{\alpha,\beta\gamma\delta\rho} P_\alpha = 0 \,. \end{equation} This arises because the dual background, the twisted torus, is \emph{not} a torus. The missing momentum is also related by duality to the Freed-Witten anomaly. We hope that this constraint can be recovered in this way from a duality-invariant study of membranes, although the M-theory lift of the Freed-Witten anomaly is very subtle \cite{Diaconescu:2000wy}. It would also be interesting to understand if the missing momentum constraint can be imposed in a covariant manner by some form of ``Nambu-Dirac bracket'', and how this leads to the unusual feature of producing an \emph{odd}-dimensional phase space. We also hope that this would lead to a diffeomorphism-invariant form of the non-associative algebra we propose \eqref{eq:FullMAlgebra}. A natural question arising out of this work is how the algebra given above generalises to higher dimensions. In this context we should note that the 27-dimensional auxiliary space of double field theory relevant to supergravity in five-dimensions can be identified with the generalised space-time coordinatised by the exceptional Jordan algebra over split octonions. The generalised diffeomorphism group of this generalised space-time is the exceptional group $E_{6(6)}$ which is the U-duality group of five-dimensional maximal supergravity\footnote{The concept of generalised space-times coordinatised by Jordan algebras was introduced in the early days of space-time supersymmetry \cite{Gunaydin:1975mp}. For the explicit construction of the symmetry groups defined over the split exceptional Jordan algebra we refer to \cite{Gunaydin:2000xr,Gunaydin:2009zza} and the references therein.}. Due to intrinsic non-associativity of the exceptional Jordan algebra we expect the corresponding non-geometric phases of the uplift to M-theory to describe the extensions of the results of this paper. Finally, we believe that the missing momentum we observe also clarifies the meaning of the doubled and extended coordinates in double and exceptional field theory, especially when the background is not a torus. In the original work of Hull and Zwiebach \cite{Hull:2009mi} the doubled coordinate space was understood as dual to the momenta and winding modes of strings propagating on a torus. With this interpretation it is not immediately clear what the ``extra'' coordinates mean when the background is topologically not a torus. Here we propose that the coordinates are not necessarily linked to the topology of the background. Instead one can, in double field theory, view them as constants of integration of independent left/right-movers of the worldsheet CFT. We also expect that a similar interpretation of extended coordinates of exceptional field theory will arise from an appropriate quantum theory. With this interpretation there is a dual background parameterised by the extra coordinates, and as we have explained, if the original background is not a torus, then its dual will in general have missing momentum modes. A similar effect has also been observed when dualising along an isometry which has singular points \cite{Rocek:1991ps}. There, it was argued that the dual background to flat space is a singular throat which has no normalisable momentum modes, but does have winding modes. The effect we observe here is similar in spirit, but occurs for non-singular, albeit locally non-geometric backgrounds. \section*{Acknowledgements} We would like to thank Daniel Waldram for helpful correspondence, Erik Plauschinn for discussions and Oleksandr Pavlyk for his help with figure 1. MG would also like to thank the hospitality of Ludwig-Maximilians-Universit\"at M\"unchen and NORDITA, Stockholm for their hospitality where part of this work was performed. The research of MG was supported in part under DOE Grant No: de-sc0010534. The work of EM and DL is supported by the ERC Advanced Grant ``Strings and Gravity" (Grant No. 32004).
\section{Introduction} It may seem odd, if not presumptuous, to write a paper about the Euler equations in 2016. A quantitative theory of Newtonian fluids was given by Stokes in 1845 \citep{Stokes45}, which gave us a way to implement Leibniz {\em calculemus} dictum to fluids. The acceptance of vector calculus in the late 19th century resulted in the formulation found in countless publications, which is simply a rewriting of Stokes' original equations with a more compact notation, though we still often see in publications and lectures the equations {\em just as Stokes wrote them} close to two centuries ago. It is certainly a testament to the genius of Stokes (and Heaviside and Gibbs, who introduced vector calculus) that his equations have stood the test of time. There is another reason, however, why the Navier-Stokes equations stand out. In the history of physical sciences, the norm is that the language used to formulate theories evolves. One the one hand, this makes harder to access the original literature without a proper training. This is why it is very hard, for example, to read Galileo or Newton, since our calculus-imbued mental processes have a hard time adjusting to the geometrical, proportion-based exposition typical of these authors\footnote{Newton is credited to invent calculus, but it took nearly a century and a half and the development of analysis to arrive at the logically consistent notion of limit we enjoy today.}. On the other hand, it is only through the continuous interplay of the physical concepts and the mathematics that we use to describe them that both evolve. In this respect, the Navier-Stokes equations stands as the exception. From a theoretical point of view, vector calculus suffers several drawbacks, some of which can be ameliorate by switching to tensor calculus, of which vector calculus is a subset. However, tensor calculus cannot avoid seeing physically relevant quantities through the lens of a particular sets of coordinates. In other words, the primal idea that the laws of physics should not depend on the specific choice of coordinates that we use to map space (e.g., Cartesian vs. spherical) is obfuscated by the tensor approach. Starting with the work of H. Poincar\'e, \'E. Goursat and especially E. Cartan, there has been a push to recover a coordinate-free formulation of differential geometry, which stands at the foundation of any field theory, using {\em exterior calculus}. Physical laws formulated with the language of exterior calculus express ideas on a level abstracted from any particular coordinate system that an observer may use to describe her space. This frees us to explore the properties that derives from the laws {\em qua} laws (e.g., conserved quantities, symmetries,\ldots), as opposed to particular properties that emerge only when the laws, expressed in a suitable coordinate system, are applied to a {\em sui generis} problem. The impetus for arriving at an exterior calculus formulation of fluid dynamics is not purely theoretical. Over the last 20 years a discrete counterpart of exterior calculus, the so-called discrete geometry has emerged \cite{Desbrun05,JPO}. The goal is to have discrete objects that satisfy as many (if not all) of the same algebraic properties of their continuum counterparts. This offers the tantalizing prospect of being able to discretize conservation laws in a way that respects the underlying symmetries {\em regardless} of the geometry of the manifold. The use exterior calculus also brings a logical clarity that vector calculus lacks. For example, consider an intensive quantity such as temperature, and an extensive quantity such as the internal energy. In vector calculus, we represent both with the same object, a scalar field. The objects of exterior calculus, called $p-$forms, where $p$ ranges from zero the the dimension of the manifold, belong to a graded algebra. As we shall see, intensive quantities are handled with $0-$forms, whereas intensive quantities are handled by $n-$forms. Likewise, velocity and vorticity are handled by vector calculus with the same object, a vector\footnote{Technically, vorticity is a pseudo-vector, but we assume that the manifold is orientable, and we select an orientation {\em ab initio}, thus rendering the distinction moot.}, whereas in exterior calculus they are handled with $1-$ and $2-$forms respectively. Further, the use of exterior calculus eliminates a rarely mentioned, by nonetheless real, logical inconsistency in the standard derivation. When formulating the conservation of momentum in the standard approach, we arrive at integrals over surfaces and volumes of vector quantities. But such integrals make no sense on general manifolds. For example, using spherical coordinates, how do we make sense of \textit{adding} vectors defined over an extended region?\footnote{Tensor calculus tells us how to calculate \textit{differences} between nearby vectors.} Normally, we retreat to Cartesian coordinates, but that leaves open the question of validity of the resulting equations in general coordinates. On the other hand, there is not problem with forms, because exterior calculus is the theory that formalizes the notion of integrals over $p-$dimensional surfaces. It is possible to find "translations" of the Navier-Stokes equations into exterior calculus language \citep[see, e.g. ref. ][p. 484--487]{Westenholz81}, but they are formulated with \textit{vector}-valued forms. The goal of this paper, which is more pedagogical, is to provide a derivation, as opposed to a translation, of the Euler equations entirely contained within the landscape of the exterior calculus of \textit{scalar}-valued forms. The rest of the paper is organized as follows: In Section 2, we begin by introducing the Cartan derivative, which specializes the Lie derivative\footnote{Which, in turns, extends the concept of material derivative to forms} to the appropriate subspace of $p-$forms in classical space-time. We then look at conservation laws for intensive and extensive quantities, how they relate to each other, which lead to the equation for mass conservation. We then switch to the structures ($1-$ and $2-$forms) that encode kinematic quantities (circulation and vorticity). Using an axiomatic approach based on Kelvin's theorem, we derive equations for the vorticity and circulation that express the dynamics. At this point we are in a position to derive equations for energy, potential vorticity and helicity. Abstracted from the spatial coordinates, it will become clear how the law of motion of fluid still depend on the relative motion of different observers (now seen as entities in space-time), leading to the introduction of a generalized Coriolis force that applies to arbitrary frames. The latter, as far as we know, is a novel result presented in section 3, followed by a brief summary. For the readers who may not be familiar with exterior calculus and differential forms, an Appendix provides a quick survey of the concepts, operators and notation of exterior calculus. \section{Euler equations with exterior calculus} While it is certainly possible to "translate" the fluid dynamics equations from their usual vector-calculus based formulation to a formulation based on exterior calculus, we prefer to derive a theory of fluid dynamics using only the tools of exterior calculus. A complete theory requires the use of \textit{vector}-valued differential forms, but this greatly increases the technical background. For this reason, in this paper we will restrict to systems that can be described solely with \textit{scalar}-valued differential forms. Also, we neglect diabatic processes (e.g., friction and diffusive processes). Since the focus is on the basic kinematic structures, this is not an overly restrictive simplification. \subsection{A few conventions regarding notation} In the following, we will assume that the reader has a working knowledge of exterior calculus and the theory of Lie groups. Readers who may not have had previous exposure to exterior calculus should consider reading Appendix A and B first, which provide a quick summary to the relevant concepts and notation. While physical applications of the theory are restricted to 2- and 3-dimensional spaces, one of the (many) advantages of exterior calculus is that the algebraic properties of the operators do not depend on the dimension of the underlying manifold. Therefore, there is no real advantage in specifying at the onset the dimensionality of the physical space. Thus, in the following, we adopt the convention of using $n$ to denote the number of spatial dimensions. A Greek lowercase letter with a superscript $p$ will indicate a generic $p-$form. Lowercase Greek letters without a superscript will denote 1-forms, Greek uppercase letters will denote 2-forms, while Fraktur letters will be used for $n-$forms. Finally, scalars (0-forms) will be denoted with Latin letters. There are a few exceptions to this rule: The letter $d$ is of course reserved for the exterior derivative; $\rho$ has long been used to denote the scalar density field and we do not depart from that convention. The fluid occupies a spatial manifold which will be assumed to be oriented, endowed with a metric structure, and whose volume element is $\mathfrak{V}$. \subsection{Classical space-time: the Cartan derivative} A $p-$form $\alpha^p$ associates to a $p-$surface belonging to a generic $n-$dimensional manifold $\mathbb{M}$ (with $n\geq p$) a value. Consider a 1-parameter Lie group of transformations of $\mathbb{M}$ onto itself, described by its operator ${\bf v}\equiv v^i\bm{\partial/}\bm{\partial x}^i$ (in general, boldface notation will denote vector, understood as linear functionals on the space of $1-$forms). The Lie derivative ${\cal L}_{\bf v}(\alpha^p)$ measures the rate of change of $\int\alpha^p$ under the action of the 1-parameter Lie group whose operator is ${\mathbf{v}}$. Here, we consider how this notion specializes to the case where the manifold describes classical space-time. In classical space-time time plays a special, absolute role: the time lapsed between two events is {\em the same} for all possible observers, regardless of their relative state. We can also introduce a distance between events provided both events occur {\em at the same time}. However, it is meaningless to ask what is the distance between two events which occur at different times. Thus, the defining characteristic of classical space-time is that if two events are simultaneous for one observer, they are simultaneous for {\em all} observers. Put it succinctly, we speak of absolute simultaneity. In order to conduct experiments, a generic observer associates to each point $P$ of space-time a set of spatial coordinates (observer will be used a shorthand for a set of coordinates). That is, the observer is endowed with one or more charts that locally assign a correspondence between points of the manifolds $\mathbb{M}$ to points in one or more subsets of $\mathbb{R}^n$. The charts are completely arbitrary, and they can depend on time, in the sense that what one observer perceives as the same point in that its coordinates do not change with time, another observer may not, and are subject only to the standard requirement of continuity. Time, on the other hand is, aside from a shift, the same for all observers. For such an observer, classical space-time is $\mathbb{G}=\mathbb{R}\times \mathbb{M}$, and we call this a classical observer, or just an observer. Of the $(n+1)$ coordinates, $x^0,x^1,\ldots,x^n$, let $x^1,\ldots,x^n$ be the spatial coordinates and $x^0$ the time coordinate, which, when needed, we relabel $t$ to highlight its special role. By convention Greek indexes will run from $0$ to $n$, whereas Latin indexes will span only the spatial coordinates. If $x^\alpha$'s are the coordinates of a point $P$ for one observer, the coordinates of the same point $\hat{x}^\alpha$ for a different observer are given by \begin{equation} \hat{x}^\alpha=F^\alpha(x^0,\ldots,x^n). \end{equation} The absolute nature of simultaneity means that the $F^i$'s can be arbitrary functions of the spatial coordinates and time (e.g., a Galileian boost), whereas $F^0(x^0,\ldots,x^n)=x^0+s$, where $s$ is an arbitrary constant. We call the transformations of space-time that maintain absolute simultaneity {\em Ersatz} Gauge Transformations (EGTs)\footnote{Ersatz in the sense that they are not on the same plane as the Gauge transformations that grown up physicists use.}. Of particular interest are sets of EGTs that are Lie groups: The standard 10-parameter Galileo group provides such an example; another example, important for the discussion to follow, is the one-parameter Lie group whose operator is \begin{equation} {\bf v}\equiv \frac{\bm{\partial}}{\bm{\partial t}}\unboldmath +v^i\bm{\frac{\partial}{\partial x^i}} \end{equation} where the $v^i$'s are as smooth as necessary functions of space-time. We call this a \textit{flow}. Another way to look at a flow is as the vector field in space-time tangent to the trajectory of particles carried by the flow, measured by an observer who parameterizes the trajectory with the time coordinate, that is \begin{equation} 1=v^0=\frac{dt}{ds},\,v^i=\frac{dx^i}{ds}. \end{equation} Since the goal is to build a physical theory of fluids based on forms, we now consider some of the implications of the specific nature of classical space-time to forms. We denote with \begin{equation} G\equiv\overset{n+1}{\underset{p=0}{\oplus}}\bigwedge^p\mathbb{G} \end{equation} the graded algebra of forms in classical space-time. For an observer, we define the 1-parameter family of inclusion maps \begin{equation} i_s: \mathbb{M}\to \mathbb{R}\times\mathbb{M}; (x^1,\ldots,x^n) \to (s,x^1,\ldots,x^n) \end{equation} where $s\in\mathbb{R}$ is the parameter. We leave to the reader to prove that the set of forms \begin{equation} T=\{\alpha^p\in G: \forall s, i_s^*\alpha^p=0\} \end{equation} is an ideal of $G$.\footnote{An ideal of an algebra is a subalgebra of elements of the algebra which is closed relative to addition and scalar multiplication, and such that the product of an element of the ideal with an element of the algebra belongs to the ideal. } Here $i_s^*$ is the pullback induced by the inclusion map. Furthermore, it is not difficult to realize that the ideal $T$ is closed under the action of an EGT (this is because under an EGT $dt\to dt$), and so all classical observers agree on $T$, meaning that if $\alpha^p\in T$ for one observer, its pullback to the coordinates of another observer belongs to $T$ as well. Next, we consider the quotient ring of G relative to $T$ which we denote with $G/T$.\footnote{An ideal $T$ can be used to introduce a notion of congruence. So two forms $\alpha$ and $\beta$ are congruent if $\alpha-\beta\in T$, and one can say that $\alpha$ and $\beta$ belong to the same equivalence class. The union of all such equivalence classes is the quotient ring of the algebra relative to $T$. } The main assumption is that \textit{physical quantities are encoded by forms that belong to} $G/T$: Because simultaneity is absolute, {\em all observers can compare measurements} (here, intended as values of forms) {\em taken at the same time}. Table~\ref{tab:1} lists the different types of physical quantities and the corresponding forms in $G/T$ (Note that $\bigwedge^{n+1}\mathbb{G}\,\mbox{modulo}\, T =\emptyset$, thus we consider only forms of grade no greater than $n$). \begin{table} \begin{tabular}{c |c |c} \hline Type & Example & Form\\ \hline \hline intensive quantities & temperature, entropy, potentials,\ldots & 0\\ line integrals & forces, action,\ldots & 1\\ angular velocities & vorticity & 2\\ fluxes & mass flux, energy flux,\ldots & $n-1$\\ extensive quantities & energy density, mass density, volume,\ldots & $n$\\ \hline \end{tabular} \caption{\label{tab:1} Physical quantities and the forms that encode them.} \end{table} We are going to consider how forms in $G/T$ behave under the action of a flow as defined above. We introduce the special notation \begin{equation} \dot{d}\equiv\left(dt\frac{\partial}{\partial t}+dx^i\frac{\partial}{\partial x^i}\right), \end{equation} while \begin{equation} d\equiv\left(dx^i\frac{\partial}{\partial x^i}\right). \end{equation} Note that on the $(n+1)-$dimensional manifold $\mathbb{G}$, $\dot{d}$ is the standard exterior derivative. We state the main result as two theorems, which are left to the reader to prove:\\ \textbf{Theorem I} \\ \textit{ Let \begin{equation} \dot{\bf v}=\left(\bm{\frac{\partial}{\partial t}}+v^i\bm{\frac{\partial}{\partial x^i}}\right) \end{equation} be a flow in classical space-time. For a generic form $\alpha^p\in\mathbb{G}$ the Lie derivative \begin{equation} \dot{d}i_{\dot{\bf v}}(\alpha^p\wedge dt)+i_{\dot{\bf v}}\dot{d}(\alpha^p\wedge dt)=(-1)^p\frac{\partial\alpha^p}{\partial t}\wedge dt+d(i_{\bf v}\alpha^p)\wedge dt. \end{equation} From this, it follows that the ideal $T$ is closed relative to $i_{\dot{\bf v}}\dot{d}+\dot{d}i_{\dot{\bf v}}$, that is $i_{\dot{\bf v}}\dot{d}(T)+\dot{d}i_{\dot{\bf v}}(T)\subseteq T$. } \\ Hint: a generic non-zero element of $T$ is the exterior product of a member of the quotient ring with $dt$. \\ \textbf{Theorem II} \\ \textit{ If $\alpha^p\in G/T$ and $\dot{{\bf v}}$ is a flow in classical space-time, then \begin{equation} i_{\dot{\bf v}}\dot{d}\alpha^p+\dot{d}i_{\dot{\bf v}}\alpha^p=\frac{\partial\alpha^p}{\partial t}+i_{\bf v}d\alpha^p+di_{\bf v}\alpha^p\,\,\mathrm{modulo}\,\,T, \end{equation} where \begin{equation} {\bf v}= v^i\bm{\frac{\partial}{\partial x^i}} \end{equation} } (the partial derivative $\partial /\partial t$ means that the coefficients are to be derived in time, but no $dt$'s appear). Thus, for forms in the quotient ring, the action of a flow modulo $T$ is given by the operator \begin{equation} \dot{\cal L}_{\bf v}\equiv \frac{\partial}{\partial t}+{\cal L}_{\bf v}, \label{eq:Cartan} \end{equation} where ${\cal L}_{\bf v}$ is the Lie derivative acting on the spatial coordinates alone. We call $\dot{\cal L}_{\bf v}$ the Cartan derivative. The Cartan derivative satisfies the Leibniz rule. However, it is {\em not} linear in ${\bf v}$, unless the form is constant in time. It does commute with $d$ (recall that $d$ is restricted to $x^1,\ldots,x^n$), but it does not commute with $i_{\bf v}$ unless both the form and the flow are $t$ independent. {\em To summarize, in a physical theory that encodes information in forms that belong to $G/T$, that is, all physically relevant information is "read" from forms via an inclusion pullback $i_s^*$ at a given time $s$, then the Cartan derivative is the operator that gives the rate of change of physical forms under a flow.} When applied to a $0-$form (i.e., a scalar field), the Cartan derivative coincides with the standard material (Lagrangian) derivative of fluid mechanics. It extends the material derivative concept to forms of higher grade, just as the exterior derivative $d$ subsumes the operators gradient, divergence and curl into a unified operator. \subsection{Lagrangian Invariants and Conserved Currents} Intensive quantities (e.g., temperature, enthropy,...) are described by $0-$forms. {\em A Lagrangian Invariant (LI) of the flow ${\bf v}$ is any $0-$form $a$ that satisfies} \begin{equation} \dot{\cal L}_{\bf v}(a)=0 \end{equation} {\em everywhere on the manifold.} As the name suggests, a LI is an intensive quantity that remains unchanged when measured by an instrument that moves with the flow.\\ Extensive quantities are by definition properties of a volume of matter that can be added (e.g., kinetic energy). We describe them with $n-$forms. \\ {\em A Conserved Current (CC) of the flow ${\bf v}$ is a pair of $n-$forms $(\mathfrak{A},\mathfrak{B})$ which satisfy } \begin{equation} \frac{\partial}{\partial t}(\mathfrak{A})=-{\cal L}_{\bf v}(\mathfrak{B}) \end{equation} {\em everywhere on the manifold.} A CC is the volumetric density of a property A such that the only way to change the amount of $A$ within a {\em fixed} volume is by material fluxes of the property B in and out of the boundary of the volume. A special case is when the second element of the pair is equal to the first. In such case, we call $\mathfrak{A}$ a Materially Conserved Current (MCC). We see here an example of a more general situation. Intensive and extensive quantities are conceptually distinct entities. In the standard vector calculus approach, they are both described by scalar fields. With exterior calculus, they are described by different spaces of the graded algebra, $0-$forms for intensive quantities, $n-$forms for extensive quantities. We leave to the reader to verify the following propositions:\\ \textbf{Proposition I} Let ${\mathfrak{A}}$ be a MCC whose scalar concentration is $A=\star\mathfrak{A}$. Then \begin{equation} \frac{\mathrm{d}}{\mathrm{d}t}\int_V (A\mathfrak{V})=- \int_{\partial V}(A\Phi), \end{equation} where the form $\Phi\equiv i_{\bf v}\mathfrak{V}$ and $V$ is a volume fixed in space. Hence, the corresponding flux across across an oriented surface $S$ is $A\Phi$.\footnote{Technically, fluxes are pseudo $(n-1)-$forms, unlike for example the vorticity, which is always a $2-$form. In practice, once we choose an orientation for the manifold (provided it is orientable!), pseudo forms and forms cannot be distinguished. } \\ \textbf{Proposition II} If the volume $n-$form is an MCC, the Hodge star of a LI is a MCC and vice-versa. \\ \textbf{Proposition III} Let $\mathfrak{B}$ be an MCC, and $(\mathfrak{A},\mathfrak{J+A})$ a CC. Let $r=\star\mathfrak{A}/(\star\mathfrak{B})$. Then \begin{equation} \dot{\cal L}_{\bf v}(r)=\frac{1}{(\star\mathfrak{B})}[\star{\cal L}_{\bf v}(\mathfrak{J})]. \end{equation} It follows that if ${\mathfrak{J}=0}$, so that ${\mathfrak{A}}$ is a MCC, then the ratio of the Hodge star of two MCCs is a LI. \subsection{Mass conservation} The prototypical example of a MCC in fluid dynamics is the mass $n-$form $\mathfrak{M}$, which associates to a volume the mass contained in the volume. In classical physics mass is strictly conserved. Imagine that at a certain arbitrary time $t_0$ an observer tags a certain volume, e.g. by assigning a certain value to a LI (e.g., a die). Due to the absolute nature of simultaneity, all observers can agree on what has been tagged, even though different observers will described the evolution of the region differently. Conservation of mass under a physically admissible flow ${\bf v}$ requires \begin{equation} {\dot{\cal L}_{\bf v}(\mathfrak{M})=0.} \label{eq:CAI} \end{equation} It is worth to recall that the Cartan derivative measures the rate of change of a $p-$form integrated over an arbitrary $p-$surface as both evolve under the flow. Therefore the meaning of (\ref{eq:CAI}) is that the total mass contained in an arbitrary volume does not change even as the volume is distorted by the flow. To the mass form we can associate its Hodge dual $\rho=\star\mathfrak{M}$, the scalar density. Note that in general \begin{equation} \dot{\cal L}_{\bf v}(\rho)\neq0. \end{equation} If and only if (see Proposion II of previous section) \begin{equation} \dot{\cal L}_{\bf v}(\mathfrak{V})=0, \label{eq:inc1} \end{equation} then \begin{equation} \dot{\cal L}_{\bf v}(\rho)=0. \label{eq:inc2} \end{equation} Equations (\ref{eq:inc1}) or (\ref{eq:inc2}) above shows how the incompressibility condition is written in the language of forms\footnote{It may be worthwhile to point out the difference between an incompressible fluid and an incompressible flow. The former is a thermodynamic property of the fluid expressed as $dp/d\rho=\infty$, while the latter means $dp/d(\rho v^2)\gg1$.}. Note that in conventional fluid dynamics, the notion of incompressibility is usually associated with the idea that ${\rm div}\,{\bf v}=0$, where ${\rm div}$ is the covariant divergence. But that is not true in general terms. A (necessarily non-inertial) observer, whose metric tensor is time dependent, will not, in general, report that ${\rm div}\,{\bf v}=0$, though it will report that $\dot{\cal L}_{\bf v}(\mathfrak{V})=0$ when observing an incompressible fluid. This is not a pathological condition. For instance, a fluid with a free surface can be very naturally studied with so-called $\sigma-$coordinates, whereby the free surface is described by a fixed coordinate. For such an observer, $\sqrt{g}=h(x,y,t)$, where $h$ is the function that describes the position of the surface as seen by an inertial observer. \\ \subsection{Kinematics} The trajectories of ideal Lagrangian drifters define the vector field $\mathrm{d}{x}^i/\mathrm{d}t={ v}^i$ on the space tangent to the manifold. To ${\bf v}$ we associate a flow in spacetime $\bm{\partial/\partial t}+{\bf v}$, whereas on the manifold, where we have an Euclidean structure, we can associate the action\footnote{The name stems from the fact that modulo $T$, $\lambda$ is the action per unit mass. } $1-$form $\lambda\equiv\mathbf{v}^\flat$ via musical isomorphism. The exact (and thus closed) 2-form $\Omega\equiv d\lambda$ encodes, via Stokes theorem applied to the action integrated over closed loops (that is, the circulation), the vorticity. Unless otherwise state, when $\mathbf{v}$, $\lambda$ and/or $\Omega$ appear in the same equation, it will be understood that $\Omega=d\lambda$ and $\lambda=\mathbf{v}^\flat$. The $(n-1)-$form $\Phi$, the flux form, can be defined as \begin{equation} \Phi\equiv i_{\bf v}\mathfrak{V}, \label{eq:Sigmadef} \end{equation} where ${\mathfrak{V}}$ is the volume element n-form, or equivalently as \begin{equation} \Phi=\star(\mathbf{v}^\flat). \end{equation} Since we assume \textit{ab initio} that $\mathbb{M}$ is orientable, we will use the following basis of the graded algebra in three dimensions \begin{equation} (1,dx^1,dx^2,dx^3,dx^1dx^2,dx^2dx^3,dx^3dx^1,dx^1dx^2dx^3). \end{equation} (Note the cyclic nature of the index order). Also, in keeping with standard practice, we omit $\wedge$ when taking the exterior product of differentials (as there is no other meaning for the product). Here, the $x^i$'s are arbitrary coordinates. To completely characterize the coordinates, we need to specify the metric tensor $g_{ij}$, so that we the volume form is $\mathfrak{V}\equiv\sqrt{|g|}dx^1dx^2dx^3$. \subsection{Dynamics} One of the canonical ways to build a theory of fluids is to start from conservation of momentum. This requires vector-valued forms. Here, we shift the focus to vorticity, the advantage being that vorticity can be encoded with a scalar-valued 2-form. Kelvin's theorem implies that there exists a set of observers for which kinematics alone cannot change the circulation along a close path, a statement about vorticity. We will show how to extend this law to all observers later. For now, we take Kelvin's theorem axiomatically, i.e. we assume that at least for some observers it holds, so that we can write \begin{equation} \dot{\cal L}_{\bf v}(\Omega)=\Gamma \label{eq:vorticity} \end{equation} where the 2-form $\Gamma$ may depend only on thermodynamic variables. For simplicity, we limit to the simplest possible thermodynamic system close to equilibrium. In this case, we know from the state postulate of thermodynamics that the state is completely specified by two independent intensive quantities. Here by independent we mean that in general changes in one variable do not necessarily imply in changes in the other. We do not mean independent in the geometric sense (i.e. the exterior product of their exterior derivatives can be zero). Being intensive, we describe them with 0-forms. We choose the pressure $p$ as one of the two, and let the other be denoted with $b$. The precise nature of $b$ will determine the appropriate equation of state. Regardless, the most general expression for $\Gamma$ is\footnote{More precisely, this is the expression of the pullback $\phi^*\Gamma$, where $\phi: {\bf x} \to (p({\bf x}),b({\bf x}))$, to the thermodynamic space.} \begin{equation} \Gamma=h(b,p)dbdp. \label{eq:Gammapb} \end{equation} It follows immediately that $\Gamma$ is a closed 2-form, and by applying $d$ to both sides of (\ref{eq:vorticity}) we see that if $\Omega$ is closed at $t=0$, it remains so at any later time. The converse of Poincar\`e lemma ensures that we can write\footnote{The above statement is valid locally. Globally, it depends on the topology of the manifold, as required by de Rahm's cohomology theory. The topology of the manifold may of course change with time, e.g. if singularities develop: this is related to the existence and uniqueness of solutions. We are staying well clear of that for now.} \begin{equation} \Gamma=d(g(b,p)dp-df),\,g(b,p)=\int^bh(s,p)ds, \end{equation} where $f$ is an arbitrary 0-form. Then, from (\ref{eq:vorticity}) and the properties of the Cartan derivative, we can immediately write an equation for the action \begin{equation} \dot{\cal{L}_{\bf v}}(\lambda)=-df'+g(b,p)dp. \end{equation} The term $df'$ includes the effects of a conservative external field with potential ${\cal Z}$, and therefore we can write it as $f'={\cal Z}+f''$, where $f''$ is an unknown scalar function with the property that $f''=0$ for a fluid at rest. For a non-interacting gas of free particles (a pressure-less inviscid gas (thus $p=0$) in free space, so that ${\cal Z}=0$) the rate of change of the action form $\lambda-E_kdt$ (with $E_k\equiv i_{\lambda^\sharp}\lambda/2$) {\em in } $\mathbb{G}$ \footnote{In an inertial space-time frame, which is where Kelvin's theorem holds} must be $\dot{d}E_k$ \citep{flanders_differential_1989}, implying that $\dot{\cal L_{\bf v}}(\lambda)=dE_k$, which is satisfied if $f''=-E_k$. At rest, we postulate a hydrostatic balance, i.e., $dp=-\rho d{\cal Z}$, and thus \begin{equation} \rho g(b,p)=-1, \end{equation} that is $g(b,p)=-\rho^{-1}$. Therefore, under the following \textit{a priori} assumptions: \begin{enumerate} \item Kelvin's theorem; \item The State Postulate; \item Conservation of energy in free systems; \item Hydrostatic balance at rest; \end{enumerate} the action equation assumes the following form \begin{equation} {\dot{\cal L}_{\bf v}(\lambda)=d(E_k-{\cal Z})-\frac{dp}{\rho}.}\label{eq:lambda} \end{equation} The first term on the r.h.s. is the differential of the Lagrangian per unit mass. To facilitate comparison with the vector-calculus formulation, we can rewrite (\ref{eq:lambda}) as \begin{equation} \frac{\partial\lambda}{\partial t}=-i_{\bf v}\Omega-d({\cal Z}+E_k)-\rho^{-1}dp. \label{eq:lambda1} \end{equation} Expressed on a Cartesian basis, (here and thereafter $(\cdot)_{,j}\equiv \partial\cdot/\partial x^j$ ) \begin{equation} \begin{split} i_{\bf v}\Omega=i_{\bf v}((v_{2,1}-v_{1,2})dx^1dx^2+(v_{3,2}-v_{2,3})dx^2dx^3+(v_{1,3}-v_{3,1})dx^3dx^1)\\ =(v^3(v_{1,3}-v_{3,1})-v^2(v_{2,1}-v_{1,2}))dx^1+(v^1(v_{2,1}-v_{1,2})-v^3(v_{3,2}-v_{2,3}))dx^2\\+(v^2(v_{3,2}-v_{2,3})-v^1(v_{1,3}-v_{3,1}))dx^3 =v^iv_{j,i}dx^j-E_{k,j}dx^j,\, \end{split} \end{equation} which substituted in (\ref{eq:lambda1}) gives \begin{equation} \left(\frac{\partial v_j}{\partial t}+v^iv_{j,i}+{\cal Z}_{,j}+\frac{p_{,j}}{\rho}\right)dx^j=0. \end{equation} To be identically zero on the manifold, the components (i.e., the bracketed terms) must be zero, and we recover the standard Euler equations for the Cartesian components of the velocity vector. To complete the description, we need a constitutive relationship \begin{equation} {f(p,\rho,b)=0}\label{eq:state} \end{equation} which depends on the choice of $b$. Finally, we need an equation for $b$, which we can take of the form \begin{equation} {\dot{\cal L}_{\bf v}(b)=S,}\label{eq:thermo} \end{equation} where $S$ may represent internal processes. In simple cases, (e.g., an isentropic or isothermal fluid) we can set $S=0$ in which case $b$ is a LI. Eq. (\ref{eq:CAI},\ref{eq:lambda},\ref{eq:state},\ref{eq:thermo}) constitute a set of prognostic equations for the 4 unknowns. \subsubsection{Boundary conditions} Let the $n-1$ dimensional solid boundary be described by a (set) of functions $S(i): (x^1,\ldots,x^{n-1})\to (y^1,\ldots,y^n)$. The no-flux condition becomes a condition on the pullback of the flux form $S^\star\Phi=0$. \subsection{Some conservation laws} The algebraic nature of exterior calculus makes the derivations of conserved quantities very straightforward. Few passages are involved, and in a truly coordinate-free way (i.e., the results are guaranteed not to be dependent on a particular choice of coordinates). \subsubsection{Energy $n-$forms} Assuming that the metric tensor is time independent, we apply $i_{\bf v}$ to both sides of (\ref{eq:lambda}). It is a matter of straightforward algebraic manipulations (recall that the Lie derivative commute with the interior product of the field, and $i_{\bf v}\lambda=2E_k$) to show that \begin{equation} \dot{\cal L}_{\bf v}(E_k)=-\dot{\cal L}_{\bf v}({\cal Z})-\rho^{-1}{\cal L}_{\bf v}(p)+\frac{\partial{\cal Z}}{\partial t}, \end{equation} and multiplying both sides by the mass 3-form CAI defined in (\ref{eq:CAI}) \begin{equation} \dot{\cal L}_{\bf v}(\mathfrak{E}_k+\mathfrak{E}_p)=-{\cal L}_{{\bf v}}(\mathfrak{p})+pd\Phi+\frac{\partial{\cal Z}}{\partial t}\mathfrak{M}. \label{eq:KE_PE} \end{equation} Here $\mathfrak{E}_{k}\equiv E_k\mathfrak{M}$ and $\mathfrak{E}_p\equiv {\cal Z} \mathfrak{M}$ are the Kinetic and Potential energy n-forms, and $\mathfrak{p}\equiv p\mathfrak{V}$ is the energy $n-$form associated to the pressure. As expected, even in the adiabatic case considered here, the sum of Kinetic and Potential energy is not a CC. Introducing the internal energy $\mathfrak{E}_I$, which satisfies in the adiabatic case \begin{equation} \dot{\cal L}_{\bf v}(\mathfrak{E}_I)=-pd\Phi \end{equation} (essentially, this is $pdV$ from elementary thermodynamics), we arrive at \begin{equation} \dot{\cal L}_{\bf v}(\mathfrak{E}_k+\mathfrak{E}_p+\mathfrak{E}_I)=-{\cal L}_{\bf v}(\mathfrak{p})+\frac{\partial{\cal Z}}{\partial t}\mathfrak{M} \label{eq:Bernoulli} \end{equation} If the external potential is time independent, then the sum of kinetic, potential and internal energy, is a CC, which in steady flows becomes a MCC with the addition of the pressure form. In the latter case (steady flow in steady external potential), using Proposition III from the previous section, we obtain immediately that the Bernoulli function \begin{equation} B\equiv E_k+{\cal Z}+E_I+\rho^{-1}p, \end{equation} is a LI. \subsubsection{Potential vorticity} Let us assume that one of the thermodynamic variables (let it be $s$) is a LI, i.e. $\dot{\cal L}_{\bf v}(s)=0$. Exterior multiplying (\ref{eq:vorticity}) by $ds$, and using the fact that by the state postulate $ds\wedge\Gamma=0$, we have \begin{equation} \begin{split} 0=ds\wedge\dot{\cal L}_{\bf v}(\Omega)=\dot{\cal L}_{\bf v}(ds\wedge\Omega)-\dot{\cal L}_{\bf v}(ds)\wedge\Omega= \dot{\cal L}_{\bf v}(ds\wedge\Omega)-d(\dot{\cal L}_{\bf v}(s))\wedge\Omega=\dot{\cal L}_{\bf v}(ds\wedge\Omega). \end{split} \label{eq:PVder} \end{equation} Here we have fastidiously written all the passages to indicate how effortless the derivation is. On a three-dimensional manifold, the 3-form $\mathfrak{P}\equiv ds\wedge\Omega$ is a MCC, and therefore the scalar $q\equiv \star\mathfrak{P}/\star\mathfrak{M}$, which is called with a particularly unfortunate choice of words Potential Vorticity (PV), is a LI. Not to be overlooked is that fact that (\ref{eq:PVder}) holds as long as the dimension of the manifold is equal to or greater than three, but it can be associated to a LI only in a three-dimensional space. \subsection{Helicity} We know that $\Gamma$ in (\ref{eq:vorticity}) must be closed, and thus locally exact by the converse of Poincar\'e lemma. Let $\Gamma=d\gamma$. If we right multiply (\ref{eq:lambda}) by $\Omega=d\lambda$ and left multiply (\ref{eq:vorticity}) by $\lambda$, we obtain \begin{equation} \dot{\cal L}_{\bf v}(\lambda\wedge\Omega)=d(\lambda\wedge\gamma). \end{equation} The 3-form $\lambda\wedge\Omega$ is called the helicity. If the flow is barotropic, i.e. $\gamma=dg$ for some $0-$form $g$, then the r.h.s of the above equation is not only exact (this must be expected, as every $n-$form via Hodge decomposition is exact\footnote{Assuming the manifold is not overly pathological.}), but can be written as $-d(g\Omega)$. Hence, if $V$ is a volume centered on a region where vorticity is localized, i.e. $\Omega=0$ on the boundary $\partial V$, the helicity integrated over $V$ is conserved. Because of the r.h.s., the Helicity is not a CC, hence it is not possible in 3-D to associate a scalar LI to the helicity as we did for the potential vorticity. \subsection{A final comment} In the last few sections we have derived several conservation laws. The readers should now appreciate how natural the derivation of these laws is. It is usually a matter of hitting the equations with $d$'s or $i_{\bf v}$'s and carry out almost embarrassingly trivial exterior algebraic manipulations. For the sake of comparison, contrast how PV conservation is derived with exterior calculus (Eq.~\ref{eq:PVder}) with the derivation based on vector calculus \citep[see, e.g., ref.][p. 38--43]{pedlosky_geophysical_1986}. Even spelling out {\em all} passages, it takes {\em one} line to show that $ds\wedge\Omega$ is an MCC with the present formalism, as opposed to one full page using vector calculus, not to mention the fact that in Pedlosky a crucial (and cumbersome) part of the derivation is left to the reader. It is telling that to give a physical interpretation of the derivation, Pedlosky with considerable acumen, resorts to a geometrical interpretation based implicitly on a volume integral, \textit{de facto} recognizing the 3-form nature of PV. With exterior calculus, this interpretation is self evident (it is a 3-form!). Of course, an argumentative reader may retort that to derive conservation of PV in one line requires a (modest) mastery of exterior calculus, which shifts the intellectual cost elsewhere. However, while the intellectual resources expended in deriving PV conservation cannot be "recycled" elsewhere, exterior calculus is a powerful general purpose tool, which requires a one-time investment but can be used time and again in a variety of settings. Moreover, while it is true that exterior calculus is by all account a very profound way to look at geometry, the rules of symbolic manipulation (that is, its algebra \textit{sensu lato}) are rather easy to master and very intuitive. \section{Observers in inertial and non-inertial frames} In (\ref{eq:lambda}) the apparatus of exterior calculus is restricted to the spatial dimensions, and as such this law involves elements of the graded algebra over a manifold $\mathbb{M}^n$ and its tangent space. Eq.~(\ref{eq:lambda}), and any other equation written with exterior calculus objects, (e.g., (\ref{eq:CAI})), is coordinate-free in the following sense: if $S$ is a change of coordinates in the normal sense \begin{equation} S: \hat{\mathbb{M}}\to \mathbb{M}, x^i= x^i(\hat x^1,\ldots,\hat x^n), \label{eq:S} \end{equation} then the pullback $S^*$ acts in a transparent way on the operators, i.e., \begin{equation} S^*\dot{\cal L}_{{\bf v}}(\lambda)=\dot{\cal L}_{\hat{\bf v}}(S^*\lambda), \,S^*d(\alpha^p)=d(S^*\alpha^p),\ldots \end{equation} Therefore exterior calculus provides a description which is abstracted from any particular coordinate system that we may use to describe the spatial manifold. This is what we mean by a coordinate-free description. However, the stage of classical physics is $\mathbb{R}\times\mathbb{M}$. Consider an observer whose specific set of charts (the manifold may need more than one chart to cover it, though in the following for simplicity we will assume that one chart suffices) that cover $\mathbb{M}$ do not depend on time, together with a metric tensor (we need the latter to "measure" things) Then from a single "observer", we can generate a set of observers applying transformations like (\ref{eq:S}). Note that such transformations are a subset of EGTs, which do not involve time. We call this {\em improper} EGTs. We call a set of observers generated in such a way a \textit{frame}. In other words, {\em a frame is a collection of observers such that if ${\cal A}$ and ${\cal B}$ are observers belonging to the frame, then $\hat{x}^i=\hat{x}^i(x^1,\ldots,x^n)$, where the $\hat{x}^i$'s are the coordinates of observer ${\cal A}$ expressed in terms of the coordinates of observer ${\cal B}$.} The principle of covariance \citep[see ref. ][p. 11 for a formal definition]{cantwell_introduction_2002} requires that all observers within a frame, by means of experiments (i.e. quantitative measurements which are not possible without a coordinate system), must arrive at the same coordinate-free formulation of physical laws. The principle of covariance does not however require that observers in different frames arrive at the same physical laws. The principle of Galileian relativity applied to fluid dynamics requires {\em the existence of a set of privileged frames, the inertial frames}. Observers belonging to an inertial frame conducting experiments on fluids will arrive at (\ref{eq:lambda}) and {\em a fortiori} to (\ref{eq:vorticity}). \subsection{Observers in different frames} By definition, observers that belong to different frames (inertial or not) are linked by coordinate transformations that depend non trivially on time, which we call {\em proper} EGTs. Whereas restricting the machinery of exterior calculus to the spatial coordinates alone ensures a coordinate-free description for observers that belong to the same frame, the situation is more complicated when considering different frames. In this case, we need to apply exterior calculus over $\mathbb{G}$ applied to forms that belong to $G/T$. For simplicity, we assume in the following that the spatial manifold can be mapped by a single chart. Manifolds requiring multiple charts do not introduce qualitative differences. Assume that observer ${\cal A}$ belonging to an {\em inertial} frame $A$ is a set of coordinates $x^\alpha$'s, and likewise observer ${\cal B}$ in an {\em arbitrary} frame B is a set of $\hat x^\alpha$'s. We must be able to write \begin{equation} \hat x^\alpha=\hat x^\alpha(x^0,\ldots,x^n), \alpha=0,\ldots,n. \end{equation} Being classical space-time observers, they must be linked by a (proper) EGT, i.e. $\hat x^0=x^0+\mathrm{const.}$. Recall that the Cartan derivative is the Lie derivative in $\mathrm{G}/T$, and it measures the rate of change of forms under the action of a flow. For a given coordinate system, the flow in $\mathbb{G}$ is described by its group operators $u^\alpha\bm {\partial/\partial x^\alpha}$, where $u^0=1$. Simple application of the chain rule gives \begin{equation} \hat u^\beta\bm{\frac{\partial}{\partial\hat x^\beta}}=u^\alpha\frac{\partial\hat x^\beta}{\partial x^\alpha}\bm{\frac{\partial}{\partial\hat x^\beta}}, \end{equation} that is the infinitesimals change as contravariant vectors (no surprises here, as they belong to the tangent space). Note that since the observers are related by an EGT, $\hat u^0=1$ so $\hat{\bf u}$ is a flow. At this point we define the null flow for observer ${\cal A}$ as the flow whose infinitesimals $(1,u^{*1},\ldots, u^{*n})$ satisfy \begin{equation} u^{*j}\frac{\partial \hat x^i}{\partial x^j}=-\frac{\partial\hat x^i}{\partial x^0}. \label{eq:Comp_vel} \end{equation} As can be easily verified, the null flow is the vector field tangent to the trajectories of drifters in ${\cal A}$ that is mapped by the EGT to the flow whose infinitesimals are $(1,0,\ldots,0)$, so that the same drifters in ${\cal B}$ appear stationary\footnote{Alas, in classical space time we cannot stop time!}. The interesting twist occurs now. Suppose that ${\cal A}$ measures a flow with infinitesimals \begin{equation} u^i=u'^i+u^{*i}. \end{equation} The infinitesimals for ${\cal B}$ are \begin{equation} \hat u^i=u'^j\frac{\partial \hat x^i}{\partial x^j},\label{eq:infhat} \end{equation} which is not surprising, as (\ref{eq:Comp_vel}) is nothing but classical law of composition of velocities. The action in ${\cal A}$ is \begin{equation} \lambda=(u'_i+u^*_i)dx^i. \end{equation} Modulo $T$, the action under the pullback $S$ given by the EGT connecting the two coordinate systems becomes \begin{equation} S^*\lambda=\left(u_j\frac{\partial x^j}{\partial\hat x^i}+u^*_j\frac{\partial x^j}{\partial \hat x^i}\right)d\hat x^i=\hat\lambda+\lambda^f. \end{equation} The twist is that while the infinitesimals of the null flow are mapped to zero, the svtion $\lambda^f$ associated to the null flow is not zero under the action of the pullback modulo $T$! Wrapping up, under the pullback to the space-time coordinates of ${\cal B}$, (\ref{eq:lambda}) becomes (hats applied to $0-$forms denote the $0-$forms in the new coordinates) \begin{equation} \dot{\cal L}_{\bf{\hat v}}(\hat \lambda)=-\dot{\cal L}_{\bf{\hat v}}(\lambda^f)-\frac{d\hat p}{\hat\rho}-d(\hat {\cal Z}-E_k), \end{equation} where $E_k=\frac{1}{2}(\hat E_k+ i_{(\lambda^{f\sharp})}\lambda^f+u'_iu^{*i}+u'^iu^*_i)$, and the infinitesimals of the group operator ${\bf\hat v}$ are given by (\ref{eq:infhat}). After simple manipulations we arrive at the final form of (\ref{eq:lambda}) under the pullback (in space-time!) \begin{equation} \dot{\cal L}_{\bf{\hat v}}(\hat \lambda)=\left[-\frac{\partial}{\partial t}\lambda^f-i_{\bf \hat v}d\lambda^f\right]-\frac{d\hat p}{\hat\rho}+d\left(\hat E_k-\frac{1}{2}i_{(\lambda^{f\sharp})}\lambda^f-\hat{\cal Z}\right). \label{eq:lambda_EGT} \end{equation} Comparing (\ref{eq:lambda1}) with (\ref{eq:lambda_EGT}) shows that, in an arbitrary frame, the change in action along a path is due, in addition to the effect of material causes encoded in the potential ${\cal Z}$ and changes in thermodynamic state, to the effect of the bracketed terms in (\ref{eq:lambda_EGT}) containing $\lambda^f$, which we call, for reasons that will soon become clear, the generalized Coriolis force. Also, the kinetic energy of the frame appears as a ``potential'' energy. We call $\lambda^f$ the frame action, since it is a property of the frame, not of the coordinates. This suggests a classification of frames and the proper EGT's connecting them based on the form of the equations. In the following, A is an inertial frame. \begin{enumerate} \item Inertial or Galileian frames: These are frames where (\ref{eq:lambda}) holds. In other words, $\lambda^f$ is exact, constant in time, and $i_{(\lambda^{f\sharp})}\lambda^f$ is closed, i.e. constant. The most general proper EGT that leaves (\ref{eq:lambda}) invariant is a Galileian boost (an $n$-dimensional subgroup of the $n!/(2(n-2))!+2n+1$-parameter group of Galileian transformations\footnote{The group is made up of $n+1$ coordinate translations in space-time, $n$ Galileian boosts and $n!/(2(n-2))$ coordinate rotations.}) Thus, if we \textit{know} that a frame A is inertial (based on the definition above), we can generate \textit{all} of the inertial (or Galileian) frames by application of Galileian boosts to an observer in A. \item Pseudo-inertial or Maxwellian frames: These are frames such that $\lambda^f=dw$ is an exact 1-form. Under the proper EGT that connects ${\cal A}$ to a Maxwellian frame, the generalized Coriolis force is exact, and thus can be absorbed into a pseudo-potential. The vorticity equation is invariant under pseudo-inertial EGTs. \item Leibnizian frames: Frames that can be accessed from an inertial frame via EGTs such that $\lambda^f$ is not closed. In this case, we call $d\lambda^f$ the frame vorticity. Example of these EGTs are rigidly rotating frames (the rigidity implies that the metric does not change in time). Both (\ref{eq:lambda}) and (\ref{eq:vorticity}) are not invariant under proper EGTs accessing Leibnizian frames. \end{enumerate} Maxwellian frames form a subset of Leibnizian frames, and Galileian frames are a subset of Maxwellian frames. From a fluid dynamic point of view, Leibnizian frames, and by extension all frames such that $d\lambda^f\neq0$ can be unequivocally distinguished. Indeed, \citet[][p. 271]{stommel_introduction_1989} describe a laboratory apparatus (called a Compton generator) that can be used to measure $d\lambda^f$. An observer in an enclosed box measuring a non zero $d\lambda^f$ will identify his frame as Leibnizian. The distinction between Maxwellian and Galileian frames is more subtle. It hinges on being able to discriminate on what causes the potential ${\cal Z}$. Consider making experiments within a closed box. In order to discern a material cause (a gravitational field generated by a distribution of masses) for ${\cal Z}$ from an effect of the frame (assuming equivalence of inertial and gravitational mass) the observer in the Maxwellian frame needs to know the complete distribution of masses in the Universe. But, with this knowledge, the observer can calculate the center of mass of the Universe, (Mach's definition of an "absolute" frame) and with it determine her motion relative to it. \subsubsection{Examples} In this section, we will consider two examples of Leibnizian. The coordinates of an observer within a Galileian frame will be "hatted", while "hat-free" variables will denote the coordinates of an observer in the non-inertial frame. \paragraph{Rotating layered coordinates} Many geophysical flows are not far from a state of solid body rotation. In this case, it is expedient to study them from the point of view of a Leibnizian frame rotating with the fluid. Consider the proper EGT which connects the cylindrical coordinates $(\hat x^1,\hat x^2,\hat x^3)$ of an inertial frame to the coordinate $(x^1,x^2,x^3)$ of a Leibnizian frame \begin{gather} \hat{x}^1=x^1\,\mbox{(radial}\,\mbox{coordinate)},\\ \hat{x}^2=x^2+\omega t\,\mbox{(azimuthal}\,\mbox{coordinate)} ,\\ \hat{x}^3=\zeta(x^1,x^2,x^3,t)\,\mbox{(vertical}\,\mbox{coordinate)}.\label{eq:vertical} \end{gather} Relative to the Galileian frame, this Leibnizian frame rotates counter-clockwise (assuming $\omega>0$) around the $\hat x^3$ axis and measures the third coordinate relative to a surface, which, in the Galileian frame, may not be stationary. Several types of coordinates can be represented this way, e.g. isopycnic coordinates if the surface is a surface of constant density or so-called $\sigma-$coordinates if the surface corresponds to a topographic boundary. To calculate the frame action, we begin with the null velocity in the inertial frame, that is the solution to \begin{equation} \hat{u}^{*j}\frac{\partial x^i}{\partial \hat x^j}=-\frac {\partial x^i}{\partial t}. \end{equation} Eq.~(\ref{eq:vertical}) gives $x^3$ implicitly via $\hat x^3-\zeta(\hat{x}^1,\hat{x}^2-\omega t,x^3,t)=0$, so that \begin{equation} \frac{\partial x^3}{\partial\hat x^1}=-\frac{\zeta_{,1}}{\zeta_{,3}},\,\frac{\partial x^3}{\partial \hat x^2}=-\frac{\zeta_{,2}}{\zeta_{,3}},\,\frac{\partial x^3}{\partial \hat x^3}=\frac{1}{\zeta_{,3}},\,\frac{\partial x^3}{\partial t}=\omega\frac{\zeta_{,2}}{\zeta_{,3}}-\frac{\zeta_{,t}}{\zeta_{,3}}, \end{equation} and the null velocity is \begin{equation} \hat u^{*1}=0,\, \hat u^{*2}=\omega,\, \hat u^{*3}=\zeta_{,t}, \end{equation} where $\zeta_{,j}\equiv\partial\zeta/\partial \hat x^j$ and $\zeta_{,t}\equiv\partial\zeta/\partial t$. The frame action in the Leibnizian frame is given by (we use the fact that the metric in the Galileian frame is diagonal with diagonal $(1,(\hat x^1)^2,1)$) \begin{equation} \lambda^f=\hat{u}^{*l}\hat{g}_{li}\frac{\partial\hat{x}^i}{\partial x^j}dx^j= \omega (x^1)^2dx^2+\zeta_{,t}d\zeta. \end{equation} The frame vorticity is then \begin{equation} d\lambda^f=2\omega x^1dx^1dx^2+d\zeta_{,t}\wedge d\zeta\label{eq:frame_vort_iso} \end{equation} while the time derivative of the frame action \begin{equation} \frac{\partial\lambda^f}{\partial t}=d\left(\frac{(\zeta_{,t})^2}{2}\right) +\zeta_{,tt}d\zeta \end{equation} Up to this point, we have not made any assumption on $\zeta(x^1,x^2,x^3,t)$ or the nature of $x^3$. In particular, if $\zeta_{,t}=0$, i.e. the reference surface is stationary, then using (\ref{eq:frame_vort_iso}) the generalized Coriolis force \begin{equation} -i_{\mathbf{v}}d\lambda^f=2\omega x^1(v^2dx^1-v^1dx^2),\label{eq:frame_vort_Cor} \end{equation} coincides with the standard expression of the Coriolis force. To write the equation for mass conservation, we begin by observing that the volume $3-$form in $(x^1,x^2,x^3)$ coordinates is \begin{equation} \mathfrak{V}=|\zeta_{,3}|x^1dx^1dx^2dx^3. \end{equation} A useful choice of coordinates in large-scale geophysical flows is obtained when the density is used as an independent coordinate. With this choice, the mass $3-$form becomes \begin{equation} \mathfrak{M}=x^3\mathfrak{V}. \end{equation} Let ${\bf v}=v^i\bm{\partial/\partial x^i}$. Mass conservation then requires \begin{equation} \begin{split} \dot{\cal L}_{\mathbf{v}}(\mathfrak{M})=x^3\dot{\cal L}_{\bf v}(\mathfrak{V})+\mathfrak{V}\dot{\cal L}_{\bf v}(x^3)=\\ [Q_{,t}+(x^1)^{-1}(x^1Qv^i)_{,i}]x^1dx^1dx^2dx^3=0. \end{split} \end{equation} where $Q\equiv -\zeta_{,3}x^3$, which gives a prognostic equation for $Q$.\footnote{In order for the coordinate transformation to be well defined, $\zeta_{,3}\neq 0$, and thus it must be either positive or negative. In geophysical applications, density decreases with height, so that $|\zeta_{,3}|=-\zeta_{,3}.$} The heaving of the isopycnals, or, more generally, of the reference surfaces, introduces an extra term in Coriolis force. When the above equations are restricted to geophysical applications characterized by horizontal scales much larger than the vertical scale (thin layer approximation), and when the motion occurs on time-scales much longer than $(\omega^{-1})$ (subinertial motion), it is possible to ignore most terms. In the action equation, the dominant balance for the component along $dx^3$ is hydrostatic, that is \begin{equation} p_{,3}=-gx^3\zeta_{,3}=gQ, \end{equation} where $g$ is the gravitational acceleration and $p$ the pressure. Under the same approximations, $\zeta_{,tt}/g\ll 1$, therefore the time derivative of the frame can be ignored. Finally, as long as $v^3\zeta_{,3t}/g\ll 1$, and $\zeta_{,1}\zeta_{,2t}/\omega\simeq \zeta_{,2}\zeta_{,1t}/\omega\ll1$, the contribution of the heaving isopycnals to the frame vorticity can be neglected. It is only when going beyond the thin layer approximation (e.g., going beyond the hydrostatic approximation, which necessarily implies moving toward supra-inertial frequencies), that the heaving isopycnals contribution of the frame vorticity should be included. \paragraph{The fluid frame of a barotropic fluid} As a final example of Leibnizian frames we consider the frame of the fluid itself, that is, the Lagrangian frame. In this frame, obviously, the fluid appears motionless, though not necessarily steady. Consider a barotropic fluid, so that $dp/\rho=dg$ for some $0-$form g. In the fluid frame \begin{equation} \frac{\partial\lambda^f}{\partial t}=-d(g+{\cal Z}+E^f_k), \end{equation} where $E^f_k$ is the kinetic energy of the frame. For an observer on the fluid frame, the rate of change of the frame circulation is exact. That does not mean that the frame circulation is closed. It only means that in the fluid frame, the frame vorticity is constant in time. Hodge decomposing the frame circulation \begin{equation} \lambda^f=dh+d^\star\Phi, \end{equation} we have that both $\Phi$ (the vector potential, in vector parlance) is steady, whereas the scalar potential $h$ satisfies \begin{equation} h_{,t}+g+{\cal Z}+E^f_k=0. \end{equation} This is the unsteady version of Bernoulli theorem. Remember that here $h$ is the scalar potential as calculated within the fluid frame. Whereas in a generic Maxwellian frame the unsteady form of Bernoulli theorem holds only for barotropic irrotational flows, in the fluid frame itself the Bernoulli theorem holds for barotropic flows bar none, though the frame kinetic energy includes contributions from both the rotational and solenoidal components. \section{Conclusions} In this paper we formulated a theory of Euler fluids using the language of exterior calculus. The complete set of equations in an arbitrary frame is \begin{gather} \dot{\cal L}_{\bf v}(\mathfrak{M})=0\,\,\mbox{(Mass conservation)},\\ \dot{\cal L}_{\bf v}(\lambda)=d\left(E_k-\frac{1}{2}i_{(\lambda^{f\sharp})}\lambda^f-{\cal Z}\right)-\rho^{-1}dp -\frac{\partial\lambda^f}{\partial t}-i_{\bf v}d\lambda^f\,\,\mbox{(Conservation of action)},\\ \dot{\cal L}_{\bf v}(b)=S \,\,\mbox{(Thermodynamics)},\\ f(p,\rho,b)=0, \,\,\mbox{(State equation)},\\ \lambda={\mathbf v}^\flat,\,\,\rho=\star\mathfrak{M} \,\,\mbox{(Constitutive relationships)}. \end{gather} Here, $\dot{\cal L}_{\bf v}(\cdot)$ is the Cartan derivative, which specializes the Lie derivative to the subset of forms in classical space-time that encode physical information, and $\lambda^f$ is the frame action, a property of the frame. Relative to the same equations formulated with vector calculus this formulation provides several advantages: \begin{enumerate} \item The formulation is coordinate-free. The equations are transparent to change of coordinates (pullbacks). Any result, such as conservation laws, obtained manipulating the equations using exterior calculus operators is valid in any coordinate system. The maze of indexes that is typical of the tensor approach is absent or severely curtailed, allowing the physics to stand out. \item Rather than scalar and vector fields, physically relevant quantities are described by elements of the graded algebra of $p-$forms. This provide a richer space where physically distinct quantities (e.g. intensive vs. extensive properties) are encoded by different elements of the algebra. \item In the standard approach, the operator that describes the evolution of fields is the Lagrangian derivative. Except when applied to intensive quantities (i.e., $0-$forms), the Lagrangian derivative does not account for all kinematic effects, resulting in the appearance of extra terms in the equations. In the exterior calculus approach, the Cartan derivative, whose algebraic definition is one and the same regardless of what element of the graded algebra applies to, accounts for all kinematic effects. This clearly separates the physical causes that can change a quantity from purely kinematic effects. \item The coordinate-free nature of the equation, coupled to the algebraic nature of the approach, allows to derive results cleanly and with relatively little passages, such as the derivation of the generalized Coriolis force that describe non-inertial effects associated to proper EGTs, a novel result. \item The present formulation can take advantage of developments in discrete geometry, which could lead to novel schemes to numerically solve the equations that respect the underlying symmetries. \end{enumerate} Of course, we are neither envisioning, nor advocating, a total take-over of exterior calculus. However, we think that from a theoretical point of view, ignoring the tremendous progress made by mathematicians and physicists in developing field-theoretical tools during the last century is only detrimental to fluid dynamics. \begin{acknowledgments} I would like to thank Dr. Santilli for introducing me to exterior calculus, and for many fruitful discussions on forms and fluid dynamics. While this work was done mostly during my free time, I would nonetheless like to acknowledge the support I received over the years by ONR and NSF. \end{acknowledgments}
\section{Introduction} Comets are cold icy bodies in the solar system that were formed in the solar nebula and are considered to be the signature bodies to understand the formation of the solar system. As the comet nucleus makes its journey towards its parent star, the ices start sublimating giving rise to a mixture of gas and dust which form the coma. For comets at heliocentric distances less than 3 AU, the visible band spectrum shows strong molecular emission bands riding on the continuum radiation scattered by the cometary dust. Studying these molecular emission bands has been an important part of the cometary study. \\ Comet C/2014 Q2 (Lovejoy), an Oort cloud comet, was discovered by Terry Lovejoy in August 2014 using an 8 inch telescope when the comet had a visual magnitude of 15. The comet brightened to a magnitude of 4 in the visual band in January 2015 being closest to Earth at 0.469 AU on January 7. The comet's perihelion was on the 30th of January 2015 at a heliocentric distance of 1.29 AU. According to the data from JPL Horizons database, the comet orbit has an eccentricity of 0.9976, orbital inclination of 80.3$^{\degree}$, semi-major axis of 576.34 AU and orbital period of 13700 years. \\ \citet{b1} have carried out a detailed survey of 85 comets during the years 1976-1992. They have studied the variation of gas production rates and dust to gas ratio with heliocentric distances. They have defined certain limits in the gas ratios in order to classify the comets as to whether they are depleted in carbon-chain molecules or not. According to their study, most of the carbon depleted comets are from the Jupiter family. They also say that CN is produced from the nucleus as well as from the dust in the comet's coma. Several spectroscopic surveys have been carried out, e.g. \citet{Newburn}, \citet{Fink_2009}, \citet{b2}. \citet{b2} have spectroscopically studied five comets. They found a linear correlation between production rates of C$_{2}(\Delta \nu=0)$, C$_{2}(\Delta \nu=1)$ and C$_{3}$ with respect to CN. No correlation was found between the production rate ratios and heliocentric distance. \citet{Langland} have given new statistical methods in cometary spectroscopy for the extraction and subtraction of the sky using the comet frames itself. They have given a dynamical classification of comets by studying 26 different comets. More recently, \citet{Cochran2012} have compiled and reported the spectroscopic results for 130 comets observed from McDonald Observatory. They have found remarkable similarity in the composition of most of the comets. They quote that the carbon chain depleted comets can be from any dynamical class. However they have not found any of them from the Halley type comets (Tisserand parameter $<$ 2 and period $<$ 200 years) due to significantly low number of these types in their sample. \\ In our study of comet C/2014 Q2, we have determined the production rates for various gas species, $Af\rho$ and dust to gas ratios at different heliocentric distances. \section{Observations} The observations were carried out with LISA spectrograph mounted on the 0.5 m(f/6.8) telescope (PlaneWave Instruments CDK20) at the Mount Abu Infra-red observatory (MIRO), Mount Abu, India. \citet{Ganesh} have given a brief overview of the telescope at the observatory. In the following we describe, briefly, the spectrograph and comet observations. \subsection{Instrument for observation : The LISA spectrograph} \label{LISA} LISA\footnotemark[1] is a low resolution high luminosity spectrograph which is designed for the spectroscopic study of faint and extended objects. The light from the object that passes through the slit falls on the grating. The rest of the light is reflected towards the guiding CCD camera. Two detector cameras are placed on either side of the spectrograph : Atik 314L is used for acquiring the object spectrum. This has a chip size of 1392 X 1040 pixels where each is a square pixel of size 6.45 $\mu m$. The light that passes through the slit is reflected by the mirror and is transformed into a parallel beam by a collimator. This is then diffracted by the grating and then passes through the objective lens and gets converged onto the detector. As the focal length of the collimator is 130 mm and that of the camera lens is 88 mm, the image on the slit plane is multiplied by a factor of 88/130=0.68 onto the plane of the CCD. The second detector is Atik Titan guiding camera. This has a chip size of 659 x 494 pixels where each is a square pixel of size 7.4 $\mu m$. All the reflected light that does not pass through the slit is directed to the guiding mirror. This is then sent to the guiding optics which refocuses the light on to the guiding camera. There are 8 different slits that are provided with the instrument. We have used a slit width of 1.37 arcsec for January and February, and a slit width of 2.08 arcsec for March and May observations. Grating with 300 grooves/mm was used covering a total wavelength range from $\scriptstyle\mathtt{\sim}$ 3800 $\AA$ to $\scriptstyle\mathtt{\sim}$ 7400 $\AA$ with a wavelength scale of 2.6 $\AA$ per pixel. The plate scale on the CCD plane is 0.57 arcsec per pixel. The length of the slit imaged onto the CCD plane is 130 arcsec. \begin{figure*} \includegraphics[width=0.95\textwidth]{Spectrum_identified_1.jpg} \caption{Flux Calibrated spectrum of Comet C/2014 Q2 (Lovejoy) : 1.37 $\times$ 163 arcsec aperture} \label{spectra} \end{figure*} \footnotetext[1]{More details on the spectrograph are available on the web site of the manufacturer: Shelyak Instruments (\url{http://www.shelyak.com/rubrique.php?id_rubrique=12&lang=2})} \subsection{Comet observations} \vspace*{-0.1cm} We carried out spectroscopic observations from Mount Abu Infra-Red Observatory (MIRO) using LISA, a low resolution spectrograph mounted on the 0.5 m telescope during January to May 2015. The sky conditions were photometric during the observing period. Bias images were taken at regular intervals. The slit was assumed to be uniformly illuminated. With this assumption, lamp flats were taken after every round of observation. This was used for flat field corrections. An Argon-Neon lamp was used for the wavelength calibration. Details of the comet observations are given in table \ref{comet_obs}. The exposure times mentioned in the table are for each individual frame. The slit was placed at the photo-center of the comet and was manually tracked through the guiding CCD throughout the exposure time. The observations were made using the scheme, sky-object-sky, for the proper background sky subtraction. The standard stars (along with their spectral types) from IRAF's catalogue of spectroscopic standards\footnotemark[2] observed for flux calibration are as follows : HD15318(B9), HD19445 (G2V), HR1544(A1), HD126991(G2V), HD129357(G2V), HD140514(G2V), HR7596(A0), HD192281(O4.5), HD217086(O7). These were preferably observed at a similar airmass as that of the comet. \begin{table} \caption{Observational log. Columns: Date, Mid-UT, heliocentric distance in AU, geocentric distance in AU, Phase Angle in degree, Exp.(Exposure time) in second, Airmass} \begin{tabular}{|c | c | c | c | c | c | c |} \hline Date & UT & r & $\Delta$ & Phase & Exp. & Airmass \\ \hline 27/01/2015 & 16:49 & 1.29 & 0.69 & 48 & 300 & 1.7 \\ 23/02/2015 & 14:08 & 1.34 & 1.20 & 45 & 300 & 1.5\\ 23/03/2015 & 14:45 & 1.50 & 1.66 & 36 & 600 & 2.8 \\ 18/05/2015 & 22:20 & 2.03 & 2.21 & 27 & 1200 & 2.4 \\ 19/05/2015 & 20:25 & 2.03 & 2.22 & 27 & 1200 & 2.7 \\ 21/05/2015 & 22:24 & 2.05 & 2.23 & 27 & 1200 & 2.3 \\ \hline \end{tabular} \label{comet_obs} \end{table} \footnotetext[2]{The full list of spectroscopic standards available in IRAF can be found in (\url{http://stsdas.stsci.edu/cgi-bin/gethelp.cgi?onedstds})} \section{Data Reduction and Analysis} Data were reduced using IRAF, following the standard procedures of bias subtraction from all the images. The flat-field images were examined and the non-exposed part of the CCD image frame was trimmed in order to cut-off the sharp edges of the slit. The flats were median combined to form a master-flat. The wavelength dependence of the flat field images were corrected by normalizing the master-flat along the dispersion axis. This was then used for flat-fielding the object and the standard star images. As long exposures were taken, the comet spectrum and the background sky spectrum had to be corrected for the cosmic ray hits. Once this was done, the background sky image was subtracted from the comet image. Although this results only in partial sky subtraction, majority of the sky lines were removed by this process. IRAF's APALL task was used to extract the spectra of the comet, calibration lamp and standard stars. Using this task, different apertures can be set along the spatial axis and can be traced along the dispersion axis in order to extract the spectrum. The Ne-Ar lines were identified and were used to calibrate the wavelength axis of the comet and standard star spectra. The observed standard star spectra were compared with available flux values in the catalogue and an instrument sensitivity function was generated for each night. The airmass and extinction corrections were done by fitting an extinction curve. These were then used for the flux calibration of the comet spectrum. A flux calibrated spectrum of comet C/2014 Q2 (Lovejoy), taken on 27th January 2015 using LISA at MIRO is shown in figure \ref{spectra}. \\ In most of the cases, the seeing is larger than the slit width and therefore some of the light from the standard star does not enter the slit. Since the same slit is used for obtaining the comet and the standard star spectra, the cometary flux is overestimated during the flux calibration process. Appropriate correction factor is included in order to account for this overestimation. Corrections were also made in order to account for the differential refraction effect which leads to incorrect flux estimation at wavelengths, other than that used for guiding. \subsection{Gas Production rate} The flux values from different emission lines were converted to molecular production rates which were calculated using the expression \begin{equation} Q=\frac{4\pi \Delta^{2}}{g \ \tau} \times Flux \times Haser \ Correction \label{Q_eq} \end{equation} where $\Delta$ is the earth-comet distance, $g$ is the fluorescence efficiency of the molecule and $\tau$ is the lifetime of the molecule. The flux in equation (\ref{Q_eq}) represents the total flux obtained using an aperture of radius $\rho$. Using the Haser coma outflow model, \citet{Fink_1996} define the Haser correction as the inverse of a fraction. This fraction, called as the Haser fraction\footnotemark[3], is the ratio of number of emitting species within an arbitrary aperture to the total number of emitting species, if the aperture were to be extended to infinity. In order to do this, the total flux extracted from a circular aperture of radius $\rho$ needs to be known. Because we are doing long slit spectroscopy, we need to convert the long slit aperture into an equivalent circular aperture. For this purpose, we extract the flux using small apertures at various distances along the slit length and obtain the flux per unit area for each of them. We then multiply by the area of an annulus at that distance from the photo-center. The sum of the fluxes obtained in the concentric annuli will give the total flux from the circular aperture. Since fluorescence process gives rise to most of the emission lines in the visible region, the production rate of a molecule will depend upon the fluorescence efficiency of the molecule. This in turn depends upon the amount of solar flux that is received, the absorption oscillator strength and the relative downward transition probabilities for the molecule. The g-factor values for C$_{2}$ and C$_{3}$ are taken from \citet{b1}. The fluorescence efficiency of CN molecule depends on the heliocentric distance as well as the heliocentric velocity. \citet{tatum} has given the g-factor values for the CN molecule, taking into account, the Swings resonance-fluorescence effect. More recently, \citet{CN_Schleicher} has tabulated the g-factor values for various heliocentric distances and velocities, which we have used in our calculations. A double interpolation of the values in Table 2 of \citet{CN_Schleicher} is performed to get g value at the desired distance and velocity\footnotemark[3]\footnotetext[3]{Calculations using David Schleicher's web page (including Haser fractions) (\url{http://asteroid.lowell.edu/comet/comet_intro.html}).}. The scale lengths are taken from \citet{b1}, considering these species to be the daughter products. The scale lengths are scaled by r$_{h}^{2}$ and the fluorescence efficiencies are scaled by r$_{h}^{-2}$ in order to get the appropriate values at their respective heliocentric distances(r$_{h}$). The g-factors, scale lengths and Haser fractions used in the calculations have been listed in table \ref{gsh}. The continuum points defined by the HB narrow band filters, IHW filters and few other points were used to fit a polynomial function which was then used to obtain the continua of the spectra. In order to calculate the total integrated flux from the emission bands, the fitted continuum function was subtracted from the comet spectra to get clean continuum subtracted emission line spectra. The integrated flux values obtained for the emission bands CN(3832-3932 $\AA$), C$_{2}$(4900-5200 $\AA$), C$_{2}$(4550-4750 $\AA$) and C$_{3}$(3950-4100 $\AA$) were used to calculate the production rates of the corresponding molecule. \begin{table*} \caption{Scale lengths ($\beta$) in km, g-factor in ergs s$^{-1}$ mol$^{-1}$ and Haser fractions(H) for different molecular species at different heliocentric distances$^{\dagger}$. } \begin{tabular}{c | c | c | c | c | c |c| c | c|c|c|c|c|c|c|} \hline \\ & & & & \multicolumn{3}{|c|}{CN(3832-3932 $\AA$ )} &\multicolumn{3}{|c|}{C$_{2}$(4900-5200 $\AA$ )} &\multicolumn{3}{|c|}{C$_{3}$ (3950-4100 $\AA$ )} \\ \cline{5-7} \cline{8-10} \cline{11-13} \\ Date & r & $\Delta$ & log $\rho$ & g & $\beta$ & H & g & $\beta$ & H & g & $\beta$ & H\\ & (AU) & (AU) & (km) & $\times 10^{-13}$ & $\times 10^{5}$ & $\times 10^{-3}$ & $\times 10^{-13}$ & $\times 10^{5}$ & $\times 10^{-3}$ & $\times 10^{-13}$ & $\times 10^{5}$ & $\times 10^{-2}$ & \\ \hline 27/01/2015 & 1.29 & 0.692 & 4.60 & 1.6 & 3.5 & 3.6 & 2.7 & 1.1 & 7.2 & 6.0 & 0.4 & 6.5 & \\ 23/02/2015 & 1.34 & 1.206 & 4.84 & 2.6 & 3.8 & 3.2 & 2.5 & 1.2 & 6.3 & 5.6 & 0.5 & 5.8 & &\\ 23/03/2015 & 1.50 & 1.665 & 4.45 & 1.8 & 4.7 & 3.1 & 2.0 & 1.5 & 6.1 & 4.4 & 0.6 & 5.7 & & \\ 19/05/2015 & 2.03 & 2.22 & 4.34 & 0.9 & 8.8 & 1.0 & 1.1 & 2.8 & 2.1 & 2.4 & 1.1 & 2.2 & & \\ \hline \end{tabular} \hspace*{-0.20in} $^{\dagger}$\small{All the values are given at their respective heliocentric distances} \label{gsh} \end{table*} \subsubsection{Haser Model Estimation} \label{Haser} The Haser model is the simplest model to describe the outflow of gases in a comet. It is a model which describes the abundance of a molecular species based on a two step dissociation process. The model assumes a spherically symmetric coma of the comet and a uniform outflow of gas. \citet{KS} describes the Haser model in more detail. We have used the following equations as mentioned by \citet{Langland} in order to fit the Haser model to our observed gas distribution. The column density is calculated as \begin{equation} N(y)=\frac{Q}{2\pi v_{flow}}\frac{\beta_{0}}{\beta_{1}-\beta_{0}} A(y) \label{CD} \end{equation} where Q is the production rate in molecules per second, $v_{flow}$ is the outflow velocity in km per second, $\beta_{0}$ and $\beta_{1}$ are inverse of parent and daughter scale lengths in km respectively. $A(y)$ is given as \begin{equation} A(y)=\int^{z}_{-z} \frac{1}{y^{2}+z^{2}}\left(e^{-\beta_{0}\sqrt{y^{2}+z^{2}}}-e^{-\beta_{1}\sqrt{y^{2}+z^{2}}}\right)dz \end{equation} where $y$ is the projected distance from the center of the nucleus and $z$ is in the direction of line of sight. We assume that the comet's coma is spherically symmetric and therefore $2z$ is length of the cord at a distance y from the center. We extracted the spectrum using apertures of equal width at different distances $y'$ from the center. These were flux calibrated and the column density was calculated as \begin{equation} N(y')=\frac{4 \pi}{g} \frac{F(y')}{\Omega} \label{CD_1} \end{equation} where $g$ is the fluorescence efficiency in ergs per molecule per second, and $\Omega$ is the solid angle subtended by the aperture in steradians. $\Omega$ is calculated as the product of the slit width and size of the aperture used to extract the spectrum. The value of $y$ in the model equation \ref{CD} is set equal to $y'$ in order to reproduce the observed data. \subsection{Calculation of $Af\rho$} $Af\rho$ is a directly measurable quantity which was first introduced by \citet{A'hearn_1984} based on a simple radial outflow model. It is a proxy for the amount of dust that is being produced. It represents the height of the cylinder of radius which is equivalent to the projected aperture. It is calculated as \begin{equation} Af\rho=\frac{(2 \Delta r)^{2}}{\rho} \frac{F_{comet}}{F_{sun}} \frac{1}{S(\theta)} \end{equation} where $\Delta$ and $\rho$ are in kilometer and $r$ is in AU. $F_{sun}$ is the solar flux at 1 AU and $F_{comet}$ is the observed cometary flux. This quantity is independent of the aperture used, and represents the amount of dust within the cylinder. $S(\theta)$ is called as the phase function\footnotemark[4]. This is incorporated to minimize the effect of varying scattering angle. \citet{HB} have discussed the specifications of the HB narrow-band filters, their continuum points and have defined the flux standards for the same. The blue, green and red continuum points are defined at 4450, 5260 and 7128 Angstroms respectively with a bandwidth of 60 Angstroms. The transmission profiles of these filters were verified in our laboratory using a UV-Visible spectrometer and these profiles were used to extract the continuum point fluxes from the comet's spectra. These fluxes were then used to calculate the $Af\rho$ values in the following way. \begin{figure*} \centering \includegraphics[width=1.1\textwidth]{Variation.jpg} \caption{Top Left - Variation of production rate with heliocentric distance; Top Right - Variation of production rate ratios with heliocentric distance; Bottom Left - Variation of Af$\rho$ with heliocentric distance; Bottom Right - Variation of dust to gas ratio with heliocentric distance } \label{variation} \end{figure*} The transmission profiles of the HB filters were re-sampled to match the resolution of the comet spectrum and their product was calculated. The area under the curve of this product gave the cometary flux in the respective continuum band. The magnitude values of the solar analog stars from \citet{HB} at the continuum points recalculated for a distance of 1 AU were used to obtain the solar flux values.\footnotetext[4]{From \url{http://asteroid.lowell.edu/comet/dustphase.html} by D.Schleicher in May 2010} \label{afrho} \subsection*{Error Calculations} The statistical error values obtained as the standard deviation of the multiple observations taken in the month of May, when the signal to noise ratio was worst, are considered as the upper limit for the errors at all the other epochs. \label{errors} \section{Results and Discussion} We have followed the comet over a period during which its heliocentric distance varied from 1.29 AU, just prior to perihelion to around 2.05 AU post perihelion. Various molecular emission lines like C$_{2}$, C$_{3}$, CN, NH$_{2}$, CH, O[I] were clearly seen in the comet spectrum throughout this range. The most prominent of them being the C$_{2}$ molecule, which was quite dominant throughout the time that we have followed the comet. Apart from the C$_{2}$ emission band, those of CN and C$_{3}$ were also quite prominent. \subsection{Production Rates and Ratios} The production rates were calculated for these molecules using equation \ref{Q_eq}. The production rates and ratios calculated for the various molecular band emissions at different heliocentric distances are given in table \ref{Q}. The ratios are taken with respect to CN molecule. The values in the parenthesis represent the errors in logarithmic scale. The variation of production rate and the ratios with heliocentric distance is shown in figure \ref{variation}. The values given in the Y axis are in log scales. \\ According to \citet{b1}, the variations in the gas ratios as well as dust to gas ratios are quite negligible unless the heliocentric distance varies more than a factor of 2. The production rate ratios do not show any particular trend with the heliocentric distance. \citet{b1} and \citet{Cochran2012} have set different limits for carbon depleted class of comets. The former defines the carbon depleted class as those for which log(Q(C$_{2}$)/Q(CN)) $<$ -0.18 whereas the latter defines this class as those comets for which log(Q(C$_{2}$)/Q(CN)) $<$ 0.02 and log(Q(C$_{3}$)/Q(CN)) $<$ -0.86. The daughter scale lengths that we have used are taken from \citet{b1}, whereas they differ from what \citet{Cochran2012} have used. So a direct comparison with \citet{Cochran2012} is not possible. If we take the mean for the ratios from our observations, we find that the C$_{2}$ to CN ratio seems to be within the class of typical comets. \begin{table*} \caption{Gas Production Rates (molecules/sec in Log scale) at different heliocentric distances} \begin{tabular}{c | c | c | c | c | c |c| c | c|c|c|c|} \hline \\ & & & & \multicolumn{4}{c}{Production Rate(error)} & &\multicolumn{3}{c}{Production Rate Ratio with respect to CN(error)} \\ \cline{5-8} \cline{10-12} \\ Date & R$_{h}$ & $\Delta$ & log $\rho$ & CN & C$_{2}$ & C$_{2}$ & C$_{3}$ & & C$_{2}$ & C$_{2}$ & C$_{3}$ \\ & (AU) & (AU) & (km) & & $\Delta \nu = 0$ & $\Delta \nu = 1$ & & & $\Delta \nu = 0$ & $\Delta \nu = 1$ & \\ \hline 27/01/2015 & 1.29 & 0.692 & 4.60 & 26.87(0.17) & 26.89(0.15) & 26.63(0.25) & 26.03(0.14) & & 0.02(0.10) & -0.24(0.18) & -0.84(0.13) \\ \hline 23/02/2015 & 1.34 & 1.206 & 4.84 & 27.75(0.17) & 28.01(0.15) & 27.74(0.25) & 26.93(0.14) & &0.26(0.10) & -0.01(0.18) & -0.82(0.13) \\ \hline 23/03/2015 & 1.50 & 1.665 & 4.45 & 26.11(0.17) & 26.47(0.15) & 26.16(0.25) & 25.23(0.14) & &0.36(0.10) & 0.05(0.18) & -0.88(0.13) \\ \hline 19/05/2015$^*$ & 2.03 & 2.22 & 4.34 & 26.50(0.17) & 26.40(0.15) & 26.22(0.25) & 25.61(0.14) & &-0.10(0.10) & -0.28(0.18) & -0.89(0.13) \\ \hline \end{tabular} \hspace*{-1in}$^*$ \small{The values mentioned for this epoch are the mean of 3 days of observations(18/05, 19/05 and 21/05/2015)} \label{Q} \end{table*} \subsection{Production Rates from the Haser Model fits} The production rates were also obtained by estimating the Haser model scale lengths of the observed molecular species. The observed column density as a function of projected distance from the nucleus for C$_{2}$, C$_{3}$ and CN were fitted with the theoretical values calculated from the Haser model. There are three unknown parameters : Production rate (Q), the parent and daughter scale lengths ($\beta_{0}$ and $\beta_{1}$ respectively). Q, $\beta_{0}$ and $\beta_{1}$ of the molecular species are to be determined while fitting the Haser model as described in section \ref{Haser}. The observed and theoretical column density, as obtained from equations \ref{CD} and \ref{CD_1} were normalized to one at the nearest point from the nuclear center. Normalization removes the production rate parameter from the equation and then leaves us with two undetermined parameters. The parent and daughter scale lengths were varied simultaneously and the column densities were calculated. The best fit value of the scale lengths were determined by minimizing the goodness parameter $\chi^{2}$ \begin{equation} \chi^{2}=\mathlarger{\mathlarger{\sum}}_{i} \frac{ (N_{o}^{i}-N_{h}^{i})^{2}}{N_{h}^{i}} \end{equation} where $N_{o}^{i}$ is the observed column density and $N_{h}^{i}$ is the column density calculated from the Haser model for the i$^{th}$ aperture. Different authors have quoted various values of the scale lengths for the same species. Taking inspiration from the work of \citet{Langland} we have obtained our best fit scale lengths without referring to any of the literature value. This was done for the observational data of 23/02/2015, when the comet's heliocentric distance was 1.34 AU. Due to guiding issues and lower signal to noise ratios, the scale lengths could not be obtained at other epochs. There is no unique solution for the Haser model scale lengths. Instead, we get a family of solutions which fit the observed data. These are represented as contours. The contours for C$_{2}$, C$_{3}$ and CN molecular bands are shown in figures \ref{C2_contour}, \ref{C3_contour}, \ref{CN_contour}. \begin{figure} \centering \includegraphics[width=0.5\textwidth]{C2_contour_include.png} \caption{Contours showing the range of parent and daughter scale lengths that fit the observed data for C$_{2}$ molecule. The black lines indicate the value at which minimum $\chi^{2}$ was obtained.} \label{C2_contour} \end{figure} \begin{figure} \includegraphics[width=0.5\textwidth]{C3_contour_include.png} \caption{Contours showing the range of parent and daughter scale lengths that fit the observed data for C$_{3}$ molecule. The black lines indicate the value at which minimum $\chi^{2}$ was obtained.} \label{C3_contour} \end{figure} \begin{figure} \includegraphics[width=0.5\textwidth]{CN_contour_include.png} \caption{Contours showing the range of parent and daughter scale lengths that fit the observed data for CN molecule. The black lines indicate the value at which minimum $\chi^{2}$ was obtained.} \label{CN_contour} \end{figure} There are many small contours, which represent multiple solutions. From the contours encompassing the smaller ones, we have obtained the range of parent and daughter scale lengths. For the C$_{2}$ molecule, the daughter scale length varies from 0.69 $\times$ $10^{5}$ km to 1.5 $\times$ $10^{5}$ km and parent scale length from 4.9 $\times$ $10^{4}$ km to 8.3 $\times$ $10^{4}$ km. For the C$_{3}$ molecule, the daughter scale length varies from 7.2 $\times$ $10^{4}$ km to 8.8 $\times$ $10^{4}$ km and parent scale length from 7.3 $\times$ $10^{3}$ km to 8.7 $\times$ $10^{3}$ km. In case of CN, although we get a minimum, it might not be the true value because of various uncertainties in the blue side of the spectrum. This might be due to uncertainties in the extinction correction. The column densities for Haser model scale lengths of all the molecular species from this work, \citet{b1} and \citet{Langland} are over plotted for comparison. These are shown in figures \ref{C2_profile}, \ref{C3_profile} and \ref{CN_profile}. The new scale lengths fit the observed data much better than the others, except for CN, where our scale lengths fit equally well as that of \citet{Langland}. The CN scale lengths are not as well constrained to a limited range and the derived numbers appear to be on the larger side. The CN band is in the blue end of the spectrum where the atmospheric extinction is quite uncertain. Also the Haser model being a very simple model, may not be sufficient at explaining the observed profiles. \\ Once the scale lengths are obtained, the production rate is calculated using equation \ref{CD} for different distances from the center. The mean of the production rate value is taken as final estimated production rate of the molecular species. For comparison, we have also calculated the production rates using scale lengths from \citet{b1} and \citet{Langland}. The scale lengths and production rates obtained from the Haser model fitting are tabulated in table \ref{HM}. In order to see the trends in the production rates, the production rate ratios and the dust to gas ratios with heliocentric distance, we use the production rate values calculated from equation \ref{Q_eq} using a single daughter scale length. \begin{figure} \centering \includegraphics[width=0.5\textwidth]{C2_profile.png} \caption{The observed column densities of C$_{2}$ as a function of the projected distance $r_{n}$ (in km) from the nucleus. The column densities calculated from Haser model using the current best fit scale lengths and scale lengths from \citet{b1} and \citet{Langland} are over-plotted} \label{C2_profile} \end{figure} \begin{figure} \includegraphics[width=0.5\textwidth]{C3_profile.png} \caption{The observed column densities of C$_{3}$ as a function of the projected distance $r_{n}$ (in km) from the nucleus. The column densities calculated from Haser model using the current best fit scale lengths and scale lengths from \citet{b1} and \citet{Langland} are over-plotted} \label{C3_profile} \end{figure} \begin{figure} \includegraphics[width=0.5\textwidth]{CN_profile.png} \caption{The observed column densities of CN as a function of the projected distance $r_{n}$ (in km) from the nucleus. The column densities calculated from Haser model using the current best fit scale lengths and scale lengths from \citet{b1} and \citet{Langland} are over-plotted} \label{CN_profile} \end{figure} \begin{table*} \caption{Haser Model Scale lengths and production rates} \begin{tabular}{c | c | c | c | c |c | c | c | c | c | } \hline \\ & \multicolumn{3}{c}{\citet{b1}} &\multicolumn{3}{c}{\citet{Langland}} &\multicolumn{3}{c}{Current Work}\\ \cline{2-4} \cline{5-7} \cline{8-10} \\ & $\beta_{0}$ & $\beta_{1}$ & Q & $\beta_{0}$ & $\beta_{1}$ & Q & $\beta_{0}$ & $\beta_{1}$ & Q \\ & ($\times$ $10^{4}$ km) & ($\times$ $10^{4}$ km) & (mol/sec) & ($\times$ $10^{4}$ km) & ($\times$ $10^{4}$ km) & (mol/sec) & ($\times$ $10^{4}$ km) & ($\times$ $10^{4}$ km) & (mol/sec) \\ \hline C$_{2}$ & 3.95 & 11.85 & 27.73 & 5.4 & 6.5 & 27.71 & 7.8 & 8.0 & 27.96 \\ \hline C$_{3}$ & 0.50 & 4.84 & 26.98 & 0.93 & 13.0 & 26.78 & 0.79 & 8.0 & 26.81 \\ \hline CN & 2.33 & 37.7 & 27.82 & 4.65 & 30.8 & 27.97 & 4.0 & 167.0 & 27.90 \\ \hline \end{tabular} \label{HM} \end{table*} \subsection{Dust Production : $Af\rho$ } The $Af\rho$ was calculated for the blue continuum(4390-4510$\AA$), green continuum(5200-5320$\AA$) and the red continuum(7060-7180$\AA$) points of the HB filter set, as explained in the section \ref{afrho}. The log($Af\rho$) values are tabulated in the table \ref{afrho_table}. The values in the parenthesis represent the errors in logarithmic scale. It can be clearly noted from these values that within the errors, the scattering from the dust in the bluer wavelength side is greater than that of the red continuum. This indicates that there might be a large number of smaller dust particles. But it is the other way round at the last epoch at a heliocentric distance of 2.05 AU. This indicates that the comet was populated by smaller dust particles near perihelion which got depleted as the comet moved away. The dust to gas ratio shown in figure \ref{variation} is calculated as the ratio of Af$\rho$ to the production rates of the molecular gas species like CN, C$_{2}$ and C$_{3}$. This remains almost constant within the error limits.\citet{b1} has shown the variation of dust to gas ratio as a function of the perihelion distance of the comet. The values obtained for this comet are consistent with this trend. \begin{table} \caption{$Af\rho$(cm in Log scale) for different continuum bands} \begin{tabular}{c|l|c|l|} \hline Date & Blue & Green & Red \\ & Continuum & Continuum & Continuum \\ \hline 27/01/2015 & 3.83(0.13) & 3.74(0.02) & 3.72(0.05) \\ 23/02/2015 & 4.96(0.13) & 4.84(0.02) & 4.83(0.05) \\ 23/03/2015 & 3.36(0.13) & 3.42(0.02) & 3.25(0.05) \\ 19/05/2015$^*$ & 3.68(0.13) & 3.58(0.02) & 3.83(0.05) \\ \hline \end{tabular} \label{afrho_table} \hspace*{0.2in}$^*$ \small{The values mentioned for this epoch is the mean of 3 days of observations(18/05, 19/05 and 21/05/2015)} \end{table} The gas production rate as well as $Af\rho$ increase after perihelion and show a decreasing trend only after February 2015. It is interesting to note the simultaneous increase in gas and dust which indicates an increase in the overall activity of the comet after its perihelion passage. This kind of asymmetry has been seen in many comets. In fact \citet{b1} have tabulated the difference in the pre and post perihelion values for different class of comets with positive values indicating post perihelion activity. Although we do not have data points at exactly the same distance for pre and post perihelion passages, we can perhaps say that this comet may have a large positive asymmetry. This indicates that there might be volatile material present beneath the surface of the comet or the surface of the nucleus consists of layers of ice that have different vaporization rates. \section{Conclusions} We have carried out spectral study of the comet C/2014 Q2 (Lovejoy) which shows strong emission lines of C$_{2}$, C$_{3}$ and CN. The molecular production rates and the quantity Af$\rho$ are estimated. We arrive at the following conclusions: \begin{itemize} \item The comet shows a large positive asymmetry, which indicates increase in the post-perihelion activity. \item Considering the limits set by \citet{b1} for the carbon abundance, C/2014 Q2 is found to be in the typical class of comets. \item The dust to gas ratio remains fairly constant within the observed heliocentric range which is in agreement with \citet{b1} \item The $Af\rho$ values indicate that the dust distribution favours smaller dust particles near perihelion which depletes as the comet moves away. \item New Haser model scale lengths were obtained which best fit the observed data. These differ significantly from the previously quoted values. This might be due to the comet's intrinsic nature itself or affected by the solar activity at the time of observation. \end{itemize} A more exhaustive study is required to confirm some of the conclusions drawn here. \section*{Acknowledgments} This work is supported by the Dept of Space, Govt of India. We acknowledge the local staff at the Mount Abu Infra-Red Observatory for their help. We would also like to thank Prof. David Schleicher for his invaluable inputs and suggestions. We acknowledge with thanks Prof Jeremy Tatum for useful discussions. We would like to specially thank Ms. Navpreet Kaur and Mr. Sameer for their help in the observations. We also thank our colleagues in the Astronomy \& Astrophysics division at PRL for their comments and suggestions.
\section{Introduction} The Peecei-Quinn mechanism \cite{Peccei:1977hh} is arguably the most elegant solution to the strong CP problem. It postulates a chiral anomalous $U(1)_{\rm PQ}$ symmetry, spontaneous breaking of which results in a pseudo-Goldstone boson, known as the axion \cite{Peccei:1977hh, Weinberg:1977ma}. The axion mass $m_a$ is generated through the QCD anomaly via large size ($\gtrsim 1/\Lambda_{\rm QCD}$) instanton-mediated interactions, while the contribution of small size instantons is suppressed due to the assymptotic freedom of QCD. Also, being the pseudo-Goldstone boson, the mass of the axion ( and its couplings to the Standard Model fields) is inversely proportional to the $U(1)_{\rm PQ}$ breaking scale, $f_a$, hence $m_a\sim \Lambda_{\rm QCD}^2/f_a$. To avoid unacceptable fast colling of stars due to the axion emission together with constraints coming from various meson decays one requires $f_a\gtrsim 10^9$ GeV. Consequently, axion is a very light particle, $10^{-6}~{\rm eV} \lesssim m_a\lesssim 10^{-3}~{\rm eV}$, which interacts very feebly with ordinary matter and radiation. This is the widely accepted invisible axion scenario \cite{Kim:1979if, Zhitnitsky:1980tq}. It has been known for a quite sometime that high energy modification of the conventional $SU(3)_c$ colour QCD may affect the axion mass prediction \cite{Tye:1981zy}. In particular, new coloured states may drive the strong coupling constant $\alpha_s$ to increase over the range of energies, modifying the standard running towards asymptotically free regime. Alternatively, axion may couple to another confining theory with a higher confinement scale \cite{Rubakov:1997vp} or it may originate as a composite state from a high energy chiral symmetry breaking in a hypothetical sector of quarks carrying higher than triplet colour charge \cite{Kobakhidze:2016wmv}. In all these cases physics at high energies may result in a significant increase of the axion mass. In this brief note, I consider a scenario where $SU(3)_c$ QCD is augmented by a number of vector-like triplet quarks\footnote{The vector-like quarks are assumed to carry $U(1)_{\rm PQ}$ charge and acquire masses upon $U(1)_{\rm PQ}$ spontaneous symmetry breaking at scale $f_a$ via Yukawa couplings to the complex scalar field responsible for the symmetry breaking. In essence, the model under consideration is just the KSVZ axion model \cite{Kim:1979if} with multiple vector-like quarks.} such that the theory is no longer asymptotically free at high energies. Interestingly, instead of hitting the Landau pole, the theory may exhibit an interacting non-Gaussian fixed-point \cite{Holdom:2010qs}. If so, it is valid at an arbitrary high energy scale. This is known as the asymptotic safe QCD scenario. Ignoring other Standard Model interactions, the fixed-point value of the strong coupling, $\alpha_s^{*}$, is given by \cite{Holdom:2010qs}: \begin{equation} \alpha_s^{*}=\frac{6\pi}{N_f+6},~~\beta(\alpha_s^{*})=0~, \label{1} \end{equation} where $N_f$ is the number of vector-like quarks. This result is exact in the $N_f\to\infty$ limit and stable for finite $N_f\gtrsim 28$ \cite{Holdom:2010qs}. Using one-loop beta-functions, one can roughly estimate an upper bound on $N_f$ for a given fixed-point scale $\mu^{*}$ \begin{equation} N_f\lesssim 6\pi{\alpha^{-1}_{s({\rm SM})}(\mu^*)} - 6, \label{2} \end{equation} where $\alpha_{s({\rm SM})}$ is the Standard Model strong coupling constant evaluated at $\mu^{*}$. E.g., for $\mu^{*}=M_{\rm P}\approx 2.4\cdot 10^{18}$ GeV, one finds $N_f\lesssim 929$. Thus, there is a plenty of room for the existence of a stable non-Gaussian fixed-point (\ref{1}) below Planck mass in QCD for finite number $N_f$ of additional quarks. The instanton contribution to the axion mass is typically suppressed exponentially by the familiar factor ${\rm e}^{-2\pi /\alpha_s(\mu)}$ (instanton action at a scale $\mu$) for small scale ($\Lambda_{\rm QCD}/\mu << 1$) instantons \cite{'tHooft:1976fv}. The relativily large fixed-point values of $\alpha_s^{*}$ at high energy scale $\mu^{*}$, may avoid a strong suppression. Therefore, in what follows I will consider small instantons of size $\lesssim 1/\mu^{*}$. Also, since only vector-like quarks carry $U(1)_{\rm PQ}$ charge (besides the Peccei-Quinn scalar), they are the only ones relevant at high energies. Other factors involved in calculations are: (i) ${\rm e}^{+2N_f\alpha(1/2)}$, which comes from nonzero fermion modes and (ii) $K=\frac{2\pi^4}{\alpha_s(\mu)}{\rm e}^{-\alpha(1)-2\alpha(1/2)}$, which accounts for various zero modes \cite{'tHooft:1976fv, Bernard:1979qt}, where $\alpha(1/2)=0.145873$ and $\alpha(1)=0.443307$ have been calculated in \cite{'tHooft:1976fv}. Combining these factors and evaluating at $\mu^{*}$ we obtain: \begin{equation} F(N_f) \simeq \frac{N_f^6}{1802\pi^2}{\rm e}^{-0.042 N_f}~. \label{3} \end{equation} Next, for the sake of simplicity, let me assume that all the $N_f$ vector-like quarks have approximately the same mass $m_f\lesssim \mu^{*}$. If the fermion zero modes are closed up by mass term insertions in the 'tHooft vertex, the contribution of small scale instantons to the axion mass squared can be readily computed as: \begin{equation} m^2_a=\frac{F(N_f)}{N_f-4}\left(\frac{m_f}{\mu^*}\right)^{N_f}\frac{\mu^{*4}}{f_a^2}~, \label{4} \end{equation} where I have used again 1-loop approximation to evaluate the factor $(m_f/\mu^*)^{N_f}$: \begin{equation} \left(\frac{m_f}{\mu^*}\right)^{N_f}\approx {\rm epx}\left[-\frac{3\pi}{\alpha_{s({\rm SM})}(\mu^*)}+\frac{N_f}{2}+3\right]~. \label{5} \end{equation} Recall, $N_f$ is subject to the constraint (\ref{2}). Some numerics are presented in Table 1, from which one can see that contribution from small instantons to the axion mass can dominate over the standard large instanton contribution by many orders of magnitude. Depending on parameters, the axion mass can range from astrophysically safe hundreds of keVs to hundreds of TeVs or higher. If one feels uncomfortable with large multiplicity of vector-like quarks, an alternative scenario with fewer quarks in high-colour representation of $SU(3)_c$ \cite{Kobakhidze:2016wmv} may also be considered. Let me also note that a large multiplicity of vector-like quarks naturally emerges in theories with extra dimensions as the Kaluza-Klein excitations of the Standard Model quarks. \begin{table}[t] \label{table1} \begin{center} \begin{tabular}{|c|c|c|c|c|} \hline $N_f$ & 30 & 150 & 200 & 250 \\ \hline $\mu^{*}=10^5$ GeV & $5.0\cdot 10^{-29}$ & $2.6\cdot 10^{-15}$ & $9.2\cdot 10^{-9}$ & $1.1\cdot 10^{-4}$ \\ \hline \hline $N_f$ & 150 & 300 & 400 & 500 \\ \hline $\mu^{*}=10^{10}$ GeV & $2.1\cdot 10^{-41}$ & $9.0\cdot 10^{-26}$ & $1.8\cdot 10^{-15}$ & 0.003 \\ \hline \end{tabular} \end{center} \vspace{-0.3cm} {\small \caption{Contributions of small instantons to the axion mass squared measured in units of $\mu^{*2}/f_a$ for various $N_f$ and $\mu^{*}$.} } \end{table} Eq. (\ref{4}) may not be the end of the story. It is conceivable to think that the vector-like quarks in the strongly coupled regime at high energies may form condensates\footnote{If so, a more economical scenario without elementary scalars may work, with axion being a composite state \cite{Kobakhidze:2016wmv}.}. The fermion zero modes then can be tied up through these condensates. The contribution to the axion mass squared now reads: \begin{equation} m_a^2=F(N_f)\int_0^{1/\mu^*}\frac{d\rho}{\rho^5}\left(\Lambda \rho\right)^3= \frac{F(N_f)}{3N_f-4}\left(\frac{\Lambda}{\mu^*}\right)^{3N_f}\frac{\mu^{*4}}{f_a^2}~, \label{6} \end{equation} where $\Lambda$ is the scale of vector-like quark condensation. It is reasonable to expect that $\Lambda \sim \mu^{*}$ and we have no strong suppression unlike the previous estimation in Eq. (\ref{4}). The lesson from this exercise is that in modified QCD theories the prediction for axion mass may crucially depend of the ultraviolet behaviour of the theory. I have considered explicitly the scenario of assymptotic safe QCD and found that a heavy axion can be accommodated thanks to the large contribution of small size instantons to the axion mass. Obviously, phenomenology and cosmology of such heavy axions are entirely different from the case of the standard invisible axion. It would be interesting to perform a detailed study in this direction. The solution to the strong CP problem may be compromised in some axion models with additional CP violation and potentially large contribution from small scale instantons. Therefore, this contribution should be be carefully evaluated in such cases. Finally, let me also note that the large amplitude axion potential generated by small instantons may cure some problems of the cosmological relaxation mechanism for the Higgs mass \cite{Graham:2015cka}. \paragraph{Acknowledgement.} I gratefully acknowledge partial support by the Australian Research Council and Shota Rustaveli National Science Foundation (grant DI/12/6-200/13). This work was finalised during my visit at KITPC. \small
\section{Introduction} \label{sec:I} The collective excitations known as magnons are a characteristic feature of any magnetically ordered state in which a continuous symmetry is spontaneously broken.\cite{Chaikin_Lubensky_1995} Common examples are planar, or XY, and Heisenberg magnets, where the spontaneously broken symmetry is $O(2)$ and $O(3)$, respectively. The magnons are the resulting Goldstone modes, which are soft or massless since a uniform rotation of the order parameter does not require any energy. In a ferromagnet, their frequency $\Omega$ scales as the wave number $k$ squared in the long-wavelength limit, $\Omega \sim k^2$; in an antiferromagnet, the frequency is a linear function of the wave number, $\Omega \sim k$. The relevant correlation function is the transverse order-parameter susceptibility, which diverges in the limit of zero frequency and wave number. In a solid, the magnons are gapped at asymptotically small frequencies, and the transverse susceptibility stays finite, due to the underlying lattice that breaks the $O(n)$ symmetry; however, compared to other relevant energy scales this is usually a small effect due to the weakness of the spin-orbit interaction. For our purposes we will ignore the spin-orbit interaction and treat the magnons as gapless. Magnons can be observed directly via neutron scattering.\cite{Forster_1975, Chaikin_Lubensky_1995} However, via couplings of the transverse order-parameter fluctuations to other modes, they also have profound indirect effects on other observables. An example is the longitudinal spin susceptibility $\chi_{\text{L}}$ in a classical Heisenberg ferromagnet or antiferromagnet. It has been known for a long time that the coupling of the longitudinal spin fluctuations to the transverse ones (i.e., the Goldstone modes) leads to a $\chi_{\text{L}}$ that diverges for $k\to 0$ everywhere in the ordered phase for all spatial dimensions $2<d<4$.\cite{Vaks_Larkin_Pikin_1967, Brezin_Wallace_1973, 2d_footnote} The leading contribution takes the form of a convolution of two Goldstone modes \begin{equation} \chi_{\text{L}} \propto \int d{\bm p}\,\frac{1}{{\bm p}^2}\,\frac{1}{({\bm p}-{\bm k})^2} \approx \int_k d^dp\,\frac{1}{p^4} \propto \frac{1}{k^{4-d}}\ . \label{eq:1.1} \end{equation} It can be represented diagrammatically as shown in Fig.~\ref{fig:1}. \begin{figure}[t] \includegraphics[width=4cm]{Fig_1.png} \caption{Diagrammatic representation of the coupling between longitudinal and transverse spin flucutuations in the classical case: A longitudinal (L) mode couples to two transverse (T) modes. The resulting contribution to the longitudinal susceptibility $\chi_{\text{L}}$ has the form given in Eq.~(\ref{eq:1.1}).} \label{fig:1} \end{figure} This result, which was originally derived for ferromagnets in perturbation theory, was later shown by renormalization-group (RG) methods to be asymptotically exact.\cite{Belitz_Kirkpatrick_1997} It reflects the scale dimensions that characterize the stable RG fixed point that describes the ordered phase. We stress again that Eq.~(\ref{eq:1.1}) holds for both classical ferromagnets and antiferromagnets. However, in the latter the physical meaning of the longitudinal order-parameter susceptibility $\chi_{\text{L}}$ is the correlation function of the staggered magnetization, rather than the spin susceptibility. Physically, the nonanalytic dependence of $\chi_{\text{L}}$ on the wave number reflects long-range correlations in the system that are due to the massless magnons: In real space, $\chi_{\text{L}}$ for large distances $r$ falls off as a power law, $\chi_{\text{L}} \propto 1/r^{2d-4}$. This is a particular manifestation of a more general phenomenon: Soft or massless modes lead to long-range correlations that are reflected in nonanalytic wave-number and frequency dependences in the hydrodynamic limit, i.e., the limit of small frequencies and wave numbers, in observables that couple to the soft modes. If the soft modes exists in entire phases, as opposed to, e.g., isolated critical points, then so does the nonanalytic behavior, which usually takes the form of power laws; a phenomenon known as generic scale invariance.\cite{Belitz_Kirkpatrick_Vojta_2005} In magnets, other soft modes may be present that also couple to any given observable and compete with the magnons in producing long-range correlations, or nonanalytic behavior. For instance, in disordered metals at zero temperature ($T=0$) there are diffusive excitations known as ``diffusons'' and ``Cooperons'' that lead to nonanalyticities in observables known as weak-localization effects.\cite{Altshuler_Aronov_1984, Lee_Ramakrishnan_1985} A specific example is the nonanalytic frequency dependence of the electrical conductivity. The competing effects of magnons on one hand, and of diffusons and Cooperons on the other, on the conductivity in disordered metallic ferromagnets have been investigated in Ref.~\onlinecite{Kirkpatrick_Belitz_2000}. The weak-localization and other zero-temperature effects raise an interesting question: What is the fate of the singular behavior of the classical longitudinal spin susceptibility, Eq.~(\ref{eq:1.1}), in the limit $T\to 0$? Simple considerations show that the singularity must be weaker at $T=0$. In quantum statistical mechanics the statics and the dynamics are intrinsically coupled. The expression for $\chi_{\text{L}}$ at $T=0$ therefore must include a frequency integration in addition to the wave-number integration, and the integrand must be comprised of the dynamic Goldstone modes. A simple guess, based on power counting only, is that for quantum antiferromagnets at $T=0\ $~\cite{notation_footnote} \begin{subequations} \label{eqs:1.2} \begin{equation} \chi_{\text{L}} \sim \int_k d^dp \int_{\Omega} d\omega\ \frac{1}{(p^2+\omega^2)^2} \sim k^{d-3} \sim \Omega^{d-3} \label{eq:1.2a} \end{equation} for $1<d<3$, with a logarithmic singularity in $d=3$. We will show below that this expectation is indeed borne out by an explicit calculation. For quantum ferromagnets, the corresponding expression obtained by replacing the denominator in Eq.~(\ref{eq:1.2a}) by $(p^2 + \omega)^2$ is clearly not correct. This can be seen from spin-wave theory, which expresses the spin operators by bosonic operators via a Holstein-Primakoff transformation.\cite{Kittel_1963} In a ferromagnet, the longitudinal spin is given in terms of the magnon-number operator, and $\chi_{\text{L}}$ thus is the magnon-number correlation function. At $T=0$ there are no magnons, and the contribution corresponding to Eq.~(\ref{eq:1.2a}) (which would scale as $k^{d-2}$) therefore has a zero prefactor. An equivalent statement is that in the ground state of a quantum ferromagnet the magnetization has its maximum value, and therefore the ground-state energy has the same value as it does classically and cannot be decreased by quantum fluctuations.\cite{FM_caveat} In a quantum antiferromagnet, by contrast, this is not true: The classical Ne{\'e}l state is not an eigenvalue of the Hamiltonian, and the ground-state energy is lowered below its classical value by quantum fluctuations. The remaining question is how the classical singularity, Eq.~(\ref{eq:1.1}), vanishes as $T\to 0$ in a ferromagnet. As we will see, the leading contribution for $k\to 0$ at a low fixed temperature is given by Eq.~(\ref{eq:1.1}) with a $T$ prefactor, \begin{equation} \chi_{\text{L}} \propto T \int d{\bm p}\,\frac{1}{{\bm p}^2}\,\frac{1}{({\bm p}-{\bm k})^2} \propto \frac{T}{k^{4-d}}\ . \label{eq:1.2b} \end{equation} \end{subequations} The above considerations hold for undamped magnons. If the magnons are damped, then in general a nonanalyticity in the hydrodynamic limit is restored, with the exponent depending on the nature of the damping.\cite{damping_footnote} For instance, magnetic impurities, which lead to a damping coefficient proportional to $p^2$, introduce sufficiently strong fluctuations to invalidate the arguments given below Eq.~(\ref{eq:1.2a}) and lead to a longitudinal susceptibility that does indeed scale as $k^{d-2}$ at $T=0$. Non-magnetic quenched disorder, which leads to a damping coefficient proportional to $p^4$, leads to a weaker singularily, $\chi_{\text{L}} \sim k^d$. A more general question pertains to the spectrum of the dynamical longitudinal susceptibility or, equivalently, the longitudinal part of the dynamical structure factor, which is directly measurable by neutron scattering, as is the transverse part. For bulk ferromagnets at $T>0$, the longitudinal structure factor has a logarithmic singularity at the magnon resonance, which gets regularized by a magnetic field.\cite{Vaks_Larkin_Pikin_1967} We will show that for an antiferromagnet there is a nonzero contribution even at $T=0$, which is caused by the same quantum fluctuations that are responsible for Eq.~(\ref{eq:1.2a}) to hold. The singularity at the magnon resonance takes the form of a discontinuous slope in bulk antiferromagnets, and a square-root singularity in two-dimensional systems. The organization of the paper is as follows. In Sec.~{\ref{sec:II} we consider magnets with undamped spin waves by considering nonlinear sigma models (NL$\sigma$M s) for both quantum ferromagnets and antiferromagnets. This provides a simple and transparent way to understand why the classical nonanalyticity disappears as $T\to 0$ in the ferromagnetic case, while it is just weakened, in agreement with the simple scaling argument given above, in the antiferromagnetic case. In Sec.~\ref{sec:III} we use time-dependent Ginzburg-Landau theory to discuss the effects of damped magnons in ferromagnets. In Sec.~\ref{sec:IV} we conclude with a summary and discussion of our results. \section{Effects of undamped magnons} \label{sec:II} Nonlinear sigma models (NL$\sigma$M s) provide a convenient description of the long-wavelength and low-frequency properties of the ordered phase of systems with a spontaneously broken symmetry. They are effective field theories that focus on the Goldstone modes and integrate out all massive fluctuations in the simplest approximation that respects the symmetry. In particular, the classical $O(3)$-symmetric nonlinear sigma model \cite{Zinn-Justin_1996} provides a very easy way to demonstrate the divergence of $\chi_{\text{L}}$ in a classical Heisenberg ferromagnet, Eq.~(\ref{eq:1.1}). It thus is natural to consider quantum NL$\sigma$M s to study the corresponding effect in quantum magnets. As we will see, the results are very different for the two types of magnetic order. \subsection{Quantum ferromagnets} \label{subsec:II.A} We consider a quantum ferromagnet with a fluctuating magnetization ${\bm M}(x) = M_0(x)\,{\hat{\bm m}}(x)$. Here and in what follows $x = ({\bm x},\tau)$ comprises the real-space position ${\bm x}$ and the imaginary-time variable $\tau$. $M_0$ is the magnitude of the order parameter, and \begin{subequations} \label{eqs:2.1} \begin{equation} {\hat{\bm m}}(x) = \left(\pi_1(x),\pi_2(x),\sigma(x)\right) \label{eq:2.1a} \end{equation} with \begin{equation} {\hat{\bm m}}^2(x) = \pi_1^2(x) + \pi_2^2(x) + \sigma^2(x) \equiv 1 \label{eq:2.1b} \end{equation} \end{subequations} is a unit vector. In a NL$\sigma$M\ description of a quantum ferromagnet fluctuations of $M_0$ are neglected, $M_0(x) \equiv M_0$, and the partition function can be written \cite{Fradkin_1991, Sachdev_1999} \begin{subequations} \label{eqs:2.2} \begin{equation} Z = \int {\cal D}[\hat{\bm m}]\ \delta(\hat{\bm m}^2(x) - 1)\ e^{-\int dx\,{\cal L}_{\text{FM}}[\hat{\bm m}]} \label{eq:2.2a} \end{equation} Here $\int dx = \int_0^{1/T} d\tau \int_V d{\bm x}$, with $T$ the temperature and $V$ the system volume, and \begin{eqnarray} {\cal L}_{\text{FM}}[\hat{\bm m}] &=& -\frac{\rho_s}{2}\, \hat{\bm m}(x)\cdot{\bm\nabla}^2\hat{\bm m}(x) - M_0\,\mu{\bm H}\cdot\hat{\bm m}(x) \nonumber\\ && \hskip -25pt + \frac{i M_0}{1+\sigma(x)} \bigl(\pi_1(x)\partial_{\tau} \pi_2(x) - \pi_2(x)\partial_{\tau} \pi_1(x)\bigr)\ . \nonumber\\ \label{eq:2.2b} \end{eqnarray} \end{subequations} Here $\rho_s$ is the spin-stiffness coefficient, which is proportional to $M_0^2$, $\bm H$ is an external magnetic field, and $\mu$ is the gyromagnetic ratio. The first two terms on the right-hand side of Eq.~(\ref{eq:2.2b}) are the same as in a classical $O(3)$ NL$\sigma$M.\cite{Zinn-Justin_1996} The third term is the Wess-Zumino or Berry-phase term that describes the quantum dynamics.\cite{WZ_footnote} Physically, it describes the Bloch spin precession. The form given in Eq.~(\ref{eq:2.2b}) assumes that the ferromagnet order is along the $z$-direction. We now expand the action in powers of the fields $\pi_1$ and $\pi_2$. The Gaussian action that governs the transverse fluctuations then reads \begin{subequations} \label{eqs:2.3} \begin{equation} {\cal A}^{(2)}[\pi_1,\pi_2] = \frac{M_0}{2} \sum_k \sum_{i,j=1}^{2} \pi_i(k)\,\Gamma_{ij}(k)\,\pi_j(-k)\ , \label{eq:2.3a} \end{equation} where $\Gamma_{ij}$ denotes the matrix elements of a $2\times 2$ matrix \begin{equation} \Gamma(k) = \begin{pmatrix} D\, {\bm k}^2 + \mu H & -\Omega_n \\ \Omega_n & D\, {\bm k}^2 + \mu H \end{pmatrix} \label{eq:2.3b} \end{equation} \end{subequations} where $D = \rho_s/M_0$. Here we have performed a Fourier transform from $x = ({\bm x},\tau)$ to $k = ({\bm k},i\Omega_n)$, with ${\bm k}$ a wave vector and $\Omega_n = 2\pi T n$ ($n$ integer) a bosonic Matsubara frequency, and we have taken the external field to point in the $z$-direction, ${\bm H} = (0,0,H)$. The inverse of $\Gamma$ yields the Gaussian transverse susceptibility matrix, i.e., the correlation function \begin{subequations} \label{eqs:2.4} \begin{equation} M_0^2 \langle\pi_i(k)\,\pi_j(-k)\rangle = \chi_{\text{T}}^{ij}(k)\ , \label{eq:2.4a} \end{equation} where \begin{equation} \chi_{\text{T}}(k) = \frac{M_0}{(D{\bm k}^2 + \mu H)^2 + \Omega_n^2} \begin{pmatrix}D{\bm k}^2 + \mu H & \Omega_n \\ -\Omega_n & D{\bm k}^2 + \mu H \end{pmatrix} \label{eq:2.4b} \end{equation} \end{subequations} The non-hermitian nature of the matrix $\Gamma$, with the frequency coupling the magnetization components $M_x$ and $M_y$, reflects the structure of the Bloch spin-precession term in Eq.~(\ref{eq:2.2b}). It shows the quadratic dispersion relation of the ferromagnetic magnons, $i\Omega_n = \pm D{\bm k}^2$. The spin-wave stiffness coefficient $D$ (not to be confused with a diffusion coefficient) is linear in $M_0$ (since $\rho_s \propto M_0^2$). It is illustrative to diagonalize the Gaussian transverse action. The eigenvalues of $\Gamma(k)$ are $\lambda_{\pm}(k)$ with \begin{subequations} \label{eqs:2.5} \begin{equation} \lambda_{\pm}(k) = \lambda_{\mp}(-k) = D{\bm k}^2 + \mu H \mp i\Omega_n\ , \label{eq:2.5a} \end{equation} and the left and right eigenvectors are \begin{eqnarray} (u,v)_L &=& (1,\mp i)\ , \nonumber\\ (u,v)_R &=& (1,\pm i)\ . \label{eq:2.5b} \end{eqnarray} \end{subequations} The Gaussian action can thus be written in terms of fields $\psi_L = (\psi_{L,+},\psi_{L,-})$ and $\psi_R = (\psi_{R,+},\psi_{R,-})$, \begin{equation} {\cal A}^{(2)}[\psi_L,\psi_R] = \frac{M_0}{2}\sum_k\sum_{\sigma = \pm} \psi_{\text{L},\sigma}(k)\,\lambda_{\sigma}(k)\,\psi_{\text{R},\sigma}(-k) \label{eq:2.6} \end{equation} In terms of the $\psi_L$ and $\psi_R$ we have \begin{eqnarray} \pi_1 &=& \frac{1}{\sqrt{2}}\left(\psi_{L,+} - i\psi_{L,-}\right) = \frac{1}{\sqrt{2}}\left(\psi_{R,+} + i\psi_{R,-}\right)\ , \nonumber\\ \pi_2 &=& \frac{1}{\sqrt{2}}\left(-i\psi_{L,+} + \psi_{L,-}\right) = \frac{1}{\sqrt{2}}\left(i\psi_{R,+} + \psi_{R,-}\right)\ . \nonumber\\ \label{eq:2.7} \end{eqnarray} Note that the four fields $\psi_{\text{L},\sigma}$, $\psi_{\text{R},\sigma}$ are not independent; Eqs.~(\ref{eq:2.7}) yield two constraints, \begin{equation} \psi_{\text{L},+} = i\psi_{\text{R},-}\quad,\quad \psi_{\text{L},-} = i\psi_{\text{R},+}\ , \label{eq:2.8} \end{equation} which restore the original number of degrees of freedom. From Eq.~(\ref{eq:2.6}) we obtain the Goldstone mode\cite{FM_GM_footnote} \begin{subequations} \label{eqs:2.9} \begin{equation} g_{\pm}(k) = \langle\psi_{L,\pm}(k) \psi_{R,\pm}(-k)\rangle = 1/M_0\,\lambda_{\pm}(k) \label{eq:2.9a} \end{equation} which is massless in the absence of the symmetry-breaking field $H$. From Eq.~(\ref{eq:2.8}) we obtain two additional nonzero correlation functions, \begin{eqnarray} \langle\psi_{\text{L}+}(k)\,\psi_{\text{L},-}(-k)\rangle &=& i/M_0\,\lambda_{+}(k)\ , \nonumber\\ \langle\psi_{\text{R}+}(k)\,\psi_{\text{R},-}(-k)\rangle &=& -i/M_0\,\lambda_{+}(-k)\ , \label{eq:2.9b} \end{eqnarray} \end{subequations} Now we consider the normalized longitudinal susceptibility $\chi_{\text{L}}(x-y)/M_0^2 = \langle\delta\sigma(x)\delta\sigma(y)\rangle$ with $\delta\sigma(x) = \sigma(x) - \langle\sigma(x)\rangle$. Using the nonlinear constraint, Eq.~(\ref{eq:2.1b}), we expand \begin{widetext} \begin{subequations} \label{eqs:2.10} \begin{equation} \langle \delta\sigma(x) \delta\sigma(y) \rangle = \frac{1}{4} \langle (\pi_1^2(x) + \pi_2^2(x))( \pi_1^2(y) + \pi_2^2(y)) \rangle - \frac{1}{4} \langle \pi_1^2(x) + \pi_2^2(x)\rangle^2 + \ldots \label{eq:2.10a} \end{equation} In terms of $\psi_L$ and $\psi_R$ this can be written \begin{equation} \langle \delta\sigma(x) \delta\sigma(y) \rangle = \frac{1}{4} \sum_{\sigma,\sigma'} \Bigl[ \langle \psi_{L,\sigma}(x)\,\psi_{R,\sigma}(x)\, \psi_{L,\sigma'}(y)\,\psi_{R,\sigma'}(y)\rangle - \langle \psi_{L,\sigma}(x)\,\psi_{R,\sigma}(x)\rangle \langle \psi_{L,\sigma'}(y)\,\psi_{R,\sigma'}(y)\rangle \Bigr]\ . \label{eq:2.10b} \end{equation} \end{subequations} \end{widetext} Using Wick's theorem and Eqs.~(\ref{eqs:2.9}) yields the one-loop contribution $\chi_{\text{L}}^{(1)}$ to the longitudinal susceptibility, \begin{eqnarray} \chi_{\text{L}}^{(1)}(k) &=& M_0^2\,\frac{T}{2V}\sum_p \sum_{\sigma} g_{\sigma}(p)\,g_{\sigma}(p-k) \nonumber\\ &=& \frac{T}{2V}\sum_p \sum_{\sigma} \frac{1}{\lambda_{\sigma}(p) \lambda_{\sigma}(p-k)}\ . \qquad \label{eq:2.11} \end{eqnarray} This is represented diagrammatically in Fig.~\ref{fig:2}. \subsubsection{Absence of a Goldstone-mode-induced singularity in $\chi_{\text{L}}$ at $T=0$} \label{subsubsec:II.A.1} \begin{figure}[b] \includegraphics[width=4cm]{Fig_2.png} \caption{Diagrammatic representation of the coupling between longitudinal and transverse spin flucutations in the quantum case. Note that the two transverse propagators carry the same internal frequency. This leads to the null result discussed in the text.} \label{fig:2} \end{figure} At $T=0$, where the frequency summation in Eq.~(\ref{eq:2.11}) turns into an integral, it is obvious that this contribution vanishes,\cite{integral_footnote} in violation of the naive expectation expressed by the ferromagnetic analog of Eq.~(\ref{eq:1.2a}). This null result is readily traced back to the structure of the Bloch spin precession term in the action, which leads to the eigenvalues $\lambda_{\sigma}(k)$ being odd functions of the frequency. Since the action couples only $\psi_{L,+}$ with $\psi_{R,+}$, and $\psi_{L,-}$ with $\psi_{R,-}$, this results in a final frequency integral where both poles lie on the same side of the real axis. Alternatively, one can easily see this in an operator formalism, see the discussion after Eq.~(\ref{eq:1.2a}) in the Introduction. Adding a frequency dependence to the classical expression therefore has a much stronger effect than increasing the effective dimensionality by two, as the naive power-counting argument suggests, and at $T=0$ it completely suppresses the effect. It is obvious from this discussion that the absence of a nonanalyticity in the quantum case is a generic property of ferromagnets at $T=0$ and not an artifact of either the NL$\sigma$M\ or the one-loop approximation. We also note that the null result is specific to the 2-point correlation of $\sigma(x)$, see the following section. \begin{figure*}[h,t] \includegraphics[width=14cm]{Fig_3} \caption{The one-loop contribution to the longitudinal part of the dynamical structure factor for a ferromagnet, Eq.~(\ref{eq:2.21}), normalized by $\sqrt{\omega_{\bm k}}/4\pi D^{3/2}$, for $H=0$ as a function of the frequency $\omega$ for various values of the temperature $T$. $\omega$ and $T$ are measured in units of $\omega_{\bm k}$. On the scale shown, the result for $T/\omega_{\bm k} = 10$ is almost indistinguishable from the classical result, Eq.~(\ref{eq:2.22}).} \label{fig:3} \end{figure*} \begin{figure*}[h,t] \includegraphics[width=14cm]{Fig_4.png} \caption{The one-loop contribution to the longitudinal part of the dynamical structure factor for a ferromagnet, Eq.~(\ref{eq:2.21}), normalized as in Fig.~\ref{fig:3}, for $T/\omega_{\bm k} = 0.5$ as a function of the frequency $\omega$ for various values of the magnetic field $H$. $\omega$ and $H$ are measured in units of $\omega_{\bm k}$ and $\omega_{\bm k}/\mu$, respectively. Notice how even a very weak magnetic field broadens the resonance feature.} \label{fig:4} \end{figure*} \subsubsection{A singular correlation function at $T=0$} \label{subsubsec:II.A.1'} It is illustrative to discuss a correlation function other than $\chi_{\text{L}}$. Consider, for instance, \begin{eqnarray} \Psi(x-y) &=& \frac{1}{4}\langle (\pi_1^2(x) - \pi_2^2(x))( \pi_1^2(y) - \pi_2^2(y)) \rangle \nonumber\\ &&\hskip -45pt = \frac{1}{4}\sum_{\sigma,\sigma'} \sigma\sigma' \langle \psi_{L,\sigma}(x)\,\psi_{L,\sigma}(x)\,\psi_{R,\sigma'}(y)\,\psi_{R,\sigma'}(y)\rangle. \nonumber\\ \label{eq:2.12} \end{eqnarray} Note that this is a physical, if hard to measure, correlation function: It describes the response to a ``field'' $\Delta$ that renders the exchange coupling $J$ in a Heisenberg model anisotropic in the $x$-$y$-plane: $J_x = J + \Delta$, $J_y = J - \Delta$. After a Fourier transform we obtain, instead of Eq.~(\ref{eq:2.11}), \begin{equation} \Psi(k) = \frac{T}{2V}\sum_p \sum_{\sigma} \frac{1}{\lambda_{\sigma}(p) \lambda_{\sigma}(k-p)}\ . \label{eq:2.13} \end{equation} At $T=0$, the frequency integral is now over a function that has poles on either side of the real axis, and the correlation function behaves as simple power counting would suggest, viz. \begin{eqnarray} \Psi({\bm k},i\Omega_n=0) &\propto& \text{const.} + \vert{\bm k}\vert^{d-2}\ , \nonumber\\ \Psi({\bm k}=0,i\Omega_n) &\propto& \text{const.} + \vert\Omega_n\vert^{(d-2)/2}\ , \label{eq:2.14} \end{eqnarray} with a logarithmic singularity in $d=2$. This is in complete analogy to Eq.~(\ref{eq:1.2a}). This illustrates that the absence of a singular contribution to $\chi_{\text{L}}$, and the related fact that the maximally spin-polarized state is an exact eigenstate of the Heisenberg ferromagnet, is not due to the absence of quantum fluctuations in the ground state, as is sometimes stated in the literature. Rather, it is due to the fact that $\chi_{\text{L}}$ can be formulated as a correlation function of the magnon number. Quantum fluctuations do exist in the ground state of a ferromagnet, and they affect correlation functions, such as $\Psi$, that can not be formulated entirely in terms of fluctuations of the magnon number. The same holds for the longitudinal susceptibility in an antiferromagnet, see Sec.~\ref{subsec:II.B} below. We will come back to this point in Sec.~\ref{subsubsec:IV.B.2}. \subsubsection{Singularities at $T>0$} \label{subsubsec:II.A.2} To find the behavior at nonzero temperature we perform the Matsubara frequency sum in Eq.~(\ref{eq:2.11}). This yields \begin{equation} \chi_{\text{L}}^{(1)}(k,H) = \frac{-1}{V}\!\sum_{{\bm p},\sigma} \frac{n(\omega_{\bm p} + \mu H) - n(\omega_{{\bm p}-{\bm k}} + \mu H)}{\omega_{\bm p} - \omega_{{\bm p}-{\bm k}} + \sigma i\Omega_n}, \label{eq:2.15} \end{equation} where $n(x) = 1/(e^{x/T}-1)$ is the Bose distribution function (we use units such that $\hbar = k_{\text B} = 1$), and $\omega_{\bm p} = D{\bm p}^2$ is the ferromagnetic magnon frequency. We are interested in infrared singularities that arise from the small-momentum behavior of the integrand in Eq.~(\ref{eq:2.15}). Accordingly, to obtain the leading singular behavior as ${\bm k} \to 0$ for fixed $T$, we can expand the Bose function, $n(x) \approx T/x$.\cite{classical_limit_footnote} At zero external frequency, $k = ({\bm k},i0)$, and zero external field we have \begin{equation} \chi_{\text{L}}^{(1)}({\bm k},H=0) \approx \left(\frac{M_0}{\rho_s}\right)^2 \frac{2T}{V} \sum_{\bm p} \frac{1}{{\bm p}^2 ({\bm p}-{\bm k})^2}\ , \label{eq:2.16} \end{equation} where we have used $D = \rho_s/M_0$. Note that this leading contribution is necessarily linear in $T$, and that the wavenumber integral is a convolution of two classical Goldstone modes, see Eq.~(\ref{eq:1.1}). In $d=3$ we find explicitly \begin{equation} \chi_{\text{L}}^{(1)}({\bm k},H=0) = \frac{T}{4D^{3/2}\sqrt{\omega_{\bm k}}}\left[1 + O(\sqrt{\omega_{\bm k}/T})\right]\ (d=3); \label{eq:2.17} \end{equation} in generic dimensions $2<d<4$ the singularity is proportional to $T/\vert{\bm k}\vert^{4-d}$ with a $d$-dependent prefactor. For $d\leq 2$ the singular integral has a zero prefactor since $M_0=0$. This result is valid for $\mu H \ll \omega_{\bm k} \ll T$. The range of validity of Eq.~(\ref{eq:2.16}) thus shrinks with decreasing temperature. In the asymptotic low-temperature limit in a vanishingly small field, i.e., for $\mu H \ll T \ll \omega_{\bm k}$, we find \begin{equation} \chi_{\text{L}}^{(1)}({\bm k},H=0) = \frac{c_{\text{L}}}{\pi^2}\,\frac{T^{3/2}}{D^{3/2}\omega_{\bm k}}\left[1 + O(T/\omega_{\bm k})\right]\ (d=3), \label{eq:2.18} \end{equation} where $c_{\text{L}} = \sqrt{\pi/2}\,\zeta(3/2) \approx 2.395$, with $\zeta$ the Riemann zeta function. For $T < \omega_{\bm k}$ the $T/\sqrt{\omega_{\bm k}}$ singularity thus crosses over to $T^{3/2}/\omega_{\bm k}$, and for $T\to 0$ the prefactor of the singularity vanishes in agreement with Sec.~\ref{subsubsec:II.A.1}. For $\omega_{\bm k} \ll \mu H \ll T$ an analogous consideration yields \begin{equation} \chi_{\text{L}}^{(1)}({\bm k}\to 0,H) = \frac{T}{4\pi D^{3/2} (\mu H)^{1/2}}\,\left[1 + O(\sqrt{H/T})\right]\ , \label{eq:2.19} \end{equation} and for $T \ll \omega_{\bm k}, \mu H$ the leading behavior is \begin{equation} \chi_{\text{L}}^{(1)}({\bm k},H) = \frac{1}{2\pi^{3/2}}\,\frac{T^{3/2}}{D^{3/2}\omega_{\bm k}}\,e^{-\mu H/T}\ . \label{eq:2.20} \end{equation} Both of these results are for $d=3$. Finally, for $\omega_{\bm k} \ll T \ll \mu H$ the result is proportional to $T^{1/2} e^{-\mu H/T}$ with no singular dependence on $\omega_{\bm k}$. \subsubsection{The dynamical structure factor} \label{subsubsec:II.A.3} Also of interest is the longitudinal part of the dynamical structure factor $S_{\text{L}}({\bm k},\omega) = (2/(1-e^{-\omega/T})) \chi_{\text{L}}''({\bm k},\omega)$, with $\chi_{\text L}''$ the spectrum of the susceptibility $\chi_{\text{L}}$. From Eq.~(\ref{eq:2.15}) we find for the one-loop contribution\cite{Vaks_Larkin_Pikin_1967} \begin{eqnarray} S_{\text{L}}^{(1)}({\bm k},\omega) &=& \frac{1}{1-e^{-\omega/T}}\,\frac{T}{4\pi D^{3/2} \sqrt{\omega_{\bm k}}}\, \nonumber\\ && \hskip - 10pt \times \ln\left(\frac{1 - e^{-(\omega + \omega_{\bm k})^2/4T\omega_{\bm k} - \mu H/T}} {1 - e^{-(\omega - \omega_{\bm k})^2/4T\omega_{\bm k} - \mu H/T}}\right)\ .\qquad\qquad \label{eq:2.21} \end{eqnarray} The leading behavior for small ${\bm k}$, $\omega$, and $H$ for fixed $T$ is \begin{eqnarray} S_{\text{L}}^{(1)}({\bm k},\omega) &\approx& \frac{T^2}{4\pi D^{3/2}\omega \sqrt{\omega_{\bm k}}}\, \nonumber\\ && \hskip - 20pt \times \ln\left(\frac{(\omega + \omega_{\bm k})^2/4T\omega_{\bm k} + \mu H/T} {(\omega - \omega_{\bm k})^2/4T\omega_{\bm k} + \mu H/T}\right)\ .\qquad \label{eq:2.22} \end{eqnarray} As in the case of Eq.~(\ref{eq:2.16}), this is also what one obtains in the classical limit, $\hbar\to 0$ (see also Ref.~\onlinecite{classical_limit_footnote}, and note that $\mu/\hbar$ is independent of $\hbar$). The structure factor is shown in Fig.~\ref{fig:3} for several values of $T/\omega_{\bm k}$. Notable features are as follows: (1) There is a logarithmic singularity at $\omega = \pm\omega_{\bm k}$. This leads to a broad feature, even for undamped magnons, whose width is independent of the normalized temperature. (2) There is a marked decrease in the overall value of $S_{\text{L}}$ with decreasing temperature, and (3) $S_{\text{L}}$ becomes strongly asymmetric at low temperature due to the detailed-balance factor. A nonzero magnetic field removes the logarithmic singularity, and even a rather small magnetic field substantially broadens the resonance feature, see Fig.~\ref{fig:4}. We will further discuss the dynamical structure factor in Sec.~\ref{sec:IV}. We also note that the minus first frequency moment of $\chi_{\text{L}}''$ yields the static susceptibility: $\chi_{\text{L}}({\bm k}) = \int_{-\infty}^{\infty} d\omega\,\chi_{\text{L}}''({\bm k},\omega)/\pi\omega$. Performing the frequency integral we recover the results given in Eqs.~(\ref{eq:2.17}) - (\ref{eq:2.20}). \subsection{Quantum antiferromagnets} \label{subsec:II.B} We now consider quantum antiferromagnets, whose spin dynamics are very different from their ferromagnetic counterparts. The NL$\sigma$M\ for an antiferromagnet can be written \cite{Fradkin_1991, Sachdev_1999} \begin{subequations} \label{eqs:2.23} \begin{equation} Z = \int {\cal D}[\hat{\bm n}]\,\delta(\hat{\bm n}^2(x) - 1)\ e^{-\int dx\, {\cal L}_{\text{AFM}}[\hat{\bm n}]} \label{eq:2.23a} \end{equation} with an action density \begin{eqnarray} {\cal L}_{\text{AFM}}[\hat{\bm n}] &=& \frac{\rho_s}{2}\Bigl[-\hat{\bm n}(x)\cdot {\bm\nabla}^2 \hat{\bm n}(x) \nonumber\\ && \hskip 0pt + \frac{1}{c^2} \bigl(\partial_{\tau}\hat{\bm n}(x) -i \mu {\bm H} \times \hat{\bm n}(x) \bigr)^2 \Bigr] \ .\qquad\qquad \label{eq:2.23b} \end{eqnarray} \end{subequations} Here $\hat{\bm n}(x)$ is the normalized staggered magnetization. It obeys \begin{subequations} \label{eqs:2.24} \begin{equation} \hat{\bm n}^2(x) \equiv 1 \label{eq:2.24a} \end{equation} and we parameterize it as \begin{equation} \hat{\bm n}(x) = \left(\pi_1(x),\pi_2(x),\sigma(x)\right) \label{eq:2.24b} \end{equation} \end{subequations} in analogy to the ferromagnetic case. The physical staggered magnetization is ${\bm N}(x) = N_0\,\hat{\bm n}(x)$ with an amplitude $N_0$. $\rho_s$ is the spin stiffness, $c$ is the spin-wave velocity and ${\bm H}$ is a homogeneous external magnetic field. Notice that in the absence of an external field the dynamics are given by a $(\partial_{\tau}\hat{\bm n})^2$ term, in contrast to the linear dependence on $\partial_{\tau}$ in the ferromagnetic case, Eq.~(\ref{eq:2.2b}).\cite{1d_footnote} Putting the external field equal to zero, and proceeding as in the ferromagnetic case, we obtain a transverse Gaussian fluctuation action that is diagonal in the $\pi_1$-$\pi_2$ basis: \begin{subequations} \label{eqs:2.25} \begin{equation} {\cal A}^{(2)}[\pi_1,\pi_2] = \frac{\rho_s}{2 c^2} \sum_k \sum_{i=1}^{2} \pi_i(k)\,\mu(k)\,\pi_i(-k)\ , \label{eq:2.25a} \end{equation} with an eigenvalue \begin{equation} \mu(k) = \omega_{\bm k}^2 - (i\Omega_n)^2\ . \label{eq:2.25b} \end{equation} \end{subequations} Here $\omega_{\bm k} = c\vert{\bm k}\vert$ is the antiferromagnetic magnon frequency. The one-loop contribution to the longitudinal susceptibility $\chi_{\text{L}}(x-y) = N_0^2 \langle \delta\sigma(x)\,\delta\sigma(y)\rangle$ now has the form \begin{equation} \chi_{\text{L}}^{(1)}(k) = \left(\frac{N_0\,c^2}{\rho_s}\right)^2\,\frac{T}{V}\sum_p \frac{1}{\mu(p) \mu(p - k)}\ . \label{eq:2.26} \end{equation} Notice that this is the longitudinal order-parameter susceptibility, which describes the response to a staggered magnetic field, rather than to a homogeneous one. \subsubsection{The Goldstone-mode-induced singularity at $T=0$} \label{subsubsec:II.B.1} The one-loop contribution to the longitudinal susceptibility given by Eq.~(\ref{eq:2.26}) is still represented by the diagram shown in Fig.~\ref{fig:2}, but now the frequency integration at $T=0$ involves poles on either side of the real axis. The frequency integral thus does not vanish, and we obtain \begin{subequations} \label{eqs:2.27} \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k},i\Omega_n=0) &=& \left(\frac{N_0\,c^2}{\rho_s}\right)^2\,\frac{1}{2V}\sum_p \frac{1}{\omega_{{\bm p}+{\bm k}/2}\, \omega_{{\bm p}-{\bm k}/2}}\, \nonumber\\ && \hskip 20pt \times \frac{1}{\omega_{{\bm p}+{\bm k}/2} + \omega_{{\bm p}-{\bm k}/2}}\ , \label{eq:2.27a}\\ \chi_{\text{L}}^{(1)}({\bm k}=0,i\Omega_n) &=& \left(\frac{N_0\,c^2}{\rho_s}\right)^2\,\frac{1}{V}\sum_p \frac{1}{\omega_{\bm p}}\,\frac{1}{4\omega_{\bm p}^2 + \Omega_n^2}\ . \nonumber\\ \label{eq:2.27b} \end{eqnarray} \end{subequations} This yields the result expected from naive power counting, Eq.~(\ref{eq:1.2a}): \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k},i\Omega_n=0) &\propto& \vert{\bm k}\vert^{d-3}\ , \nonumber\\ \chi_{\text{L}}^{(1)}({\bm k}=0,i\Omega_n) &\propto& \vert\Omega_n\vert^{d-3} \label{eq:2.28} \end{eqnarray} for $1<d<3$. In time space the latter result corresponds to a $1/t^{d-2}$ long-time tail, see Appendix \ref{app:B.1}. The above derivation makes it clear that the striking difference between the behavior of this correlation function for ferromagnets and antiferromagnets, respectively, is a direct consequence of the different spin dynamics in the two cases. In $d=3$ the divergence is logarithmic. Calculating the prefactor we obtain, keeping only the leading terms, \begin{subequations} \label{eqs:2.29} \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k},i0) &=& \frac{N_0^2 c}{8\pi^2\rho_s^2}\,\log(\omega_0/\omega_{\bm k})\ , \label{eq:2.29a}\\ \chi_{\text{L}}^{(1)}({\bm k}=0,i\Omega_n) &=& \frac{N_0^2 c}{8\pi^2\rho_s^2}\,\log(\omega_0/\vert\Omega_n\vert)\ , \label{eq:2.29b}\\ \chi_{\text{L}}^{(1)}({\bm k}=0,i\Omega_n &\to& \Omega + i0) = \frac{N_0^2 c}{8\pi^2\rho_s^2}\Bigl[\log(\omega_0/\vert\Omega\vert) \nonumber\\ &&\hskip 50pt + i\,\frac{\pi}{2}\,{\text{sgn\,}}\Omega\Bigr]\ , \label{eq:2.29c} \end{eqnarray} \end{subequations} where $\omega_0$ is an ultraviolet cutoff wave frequency. In $d=2$ the explicit result is \begin{subequations} \label{eqs:2.30} \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k},i0) &=& \frac{N_0^2 c^2}{8\rho_s^2}\,\frac{1}{\omega_{\bm k}}\ . \label{eq:2.30a}\\ \chi_{\text{L}}^{(1)}({\bm k}=0,i\Omega_n) &=& \frac{N_0^2 c^2}{8\rho_s^2}\,\frac{1}{\vert\Omega_n\vert}\ , \label{eq:2.30b}\\ \chi_{\text{L}}^{(1)}({\bm k}=0,i\Omega_n \to \omega + i0) &=& \frac{N_0^2 c^2}{8\rho_s^2}\,\left[\frac{i}{\omega}+\pi\delta(\omega)\right]\ . \nonumber\\ \label{eq:2.30c} \end{eqnarray} \end{subequations} Note that in time space Eq.~(\ref{eq:2.30b}) implies a correlation function that does not decay for long times, but rather is constant, see Appendix \ref{app:B.3}. We will get back to this in Sec.~\ref{sec:IV}. \begin{figure*}[t] \includegraphics[width=14cm]{Fig_5.png} \caption{The one-loop contribution to the longitudinal part of the dynamical structure factor for an antiferromagnet (left panel) and a ferromagnet (right panel), normalized by $N_0^2 c/4\pi\rho_s^2$ and as in Figs.~\ref{fig:4} and \ref{fig:3}, respectively, for $T/\omega_{\bm k} = 0.05$ as functions of the frequency $\omega$ measured in units of $\omega_{\bm k}$. The inset in the left panel separately shows the $T=0$ contribution to the antiferromagnetic structure factor (blue curve) and the contribution that vanishes as $T\to 0$ (red curve). The structure factor shown in the main panel is the sum of these two, see Eq.~(\ref{eq:2.36}).} \label{fig:5} \end{figure*} \subsubsection{Singularities at $T>0$} \label{subsubsec:II.B.2} We now demonstrate that at a nonzero temperature we obtain the same result as in the ferromagnetic case. Performing the frequency summation in Eq.~(\ref{eq:2.26}) we obtain \begin{equation} \chi_{\text{L}}^{(1)}(k) = \left(\frac{N_0\,c^2}{\rho_s}\right)^2 \frac{-1}{2V}\,\sum_{{\bm p},\sigma} \frac{1}{\omega_{\bm p}}\,\frac{n(\omega_{\bm p}) - n(-\omega_{\bm p})} {(\omega_{\bm p} + \sigma i\Omega_n)^2 - \omega_{{\bm p}+{\bm k}}^2}\ . \label{eq:2.31} \end{equation} The leading infrared behavior again comes from the small-momentum behavior of the integrand, so we approximate $n(x) \approx T/x$. The resulting expression at zero external frequency can be rewritten to yield \begin{equation} \chi_{\text{L}}^{(1)}({\bm k},i0) \approx \left(\frac{N_0}{\rho_s}\right)^2\,\frac{T}{V} \sum_{\bm p} \frac{1}{{\bm p}^2 ({\bm p}-{\bm k})^2}\ . \label{eq:2.32} \end{equation} As in the ferromagnetic case, Eq.~(\ref{eq:2.16}), this indeed reproduces Eq.~(\ref{eq:1.1}). In $d=3$ we have explicitly \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k},i0) &=& \frac{N_0^2 c}{8\rho_s^2}\,\frac{T}{\omega_{\bm k}}\,\left[1 + O\bigl((\omega_{\bm k}/T) \log(\omega_0/\omega_{\bm k})\bigr)\right] \nonumber\\ && \hskip 70pt \qquad (d=3)\ , \label{eq:2.33} \end{eqnarray} which is valid for $\omega_{\bm k} \ll T \ll \omega_0$. Upon taking the $T\to 0$ limit in Eq.~(\ref{eq:2.31}), when $n(\omega_{\bm p}) - n(-\omega_{\bm p}) \to 1$, we correctly recover the integrals given in Eqs.~(\ref{eqs:2.27}). In particular, Eq.~(\ref{eq:2.33}) crosses over to Eq.~(\ref{eq:2.29a}), which is valid for $T \ll \omega_{\bm k}$. \subsubsection{The dynamical structure factor} \label{subsubsec:II.B.3} Calculating the spectrum of the susceptibility from Eq.~(\ref{eq:2.31}) we obtain the one-loop contribution to the longitudinal part of the dynamical structure factor. In $d=3$ we find \begin{equation} S_{\text{L}}^{(1)}({\bm k},\omega) = \frac{N_0^2 c}{4\pi\rho_s^2}\,\frac{T/\omega_{\bm k}}{1 - e^{-\omega/T}}\, \ln \biggl( \frac{\sinh (\vert\omega_{\bm k} + \omega\vert/4T)}{\sinh (\vert\omega_{\bm k} - \omega\vert/4T)}\biggr)\ . \label{eq:2.34} \end{equation} It is illustrative to rewrite this as \begin{eqnarray} S_{\text{L}}^{(1)}({\bm k},\omega) &=& \frac{N_0^2 c}{16\pi\rho_s^2}\,\frac{1}{1 - e^{-\omega/T}}\,\Biggl[ \Bigl\vert 1 + \frac{\omega}{\omega_{\bm k}} \Bigr\vert - \Bigl\vert 1 - \frac{\omega}{\omega_{\bm k}}\Bigr\vert \nonumber\\ && + \frac{4T}{\omega_{\bm k}}\,\ln \left(\frac{1 - e^{-\vert\omega_{\bm k} + \omega\vert/2T}}{1 - e^{-\vert\omega_{\bm k} - \omega\vert/2T}} \right)\Biggr]\ . \label{eq:2.35} \end{eqnarray} This separates $S_{\text{L}}^{(1)}$ into a contribution that survives the $T\to 0$ limit, and another one that is qualitatively very similar to the corresponding result in the ferromagnetic case, see Eq.~(\ref{eq:2.21}). The former represents the quantum fluctuations that are responsible for the singular behavior of $\delta \chi_{\text{L}}^{(1)}({\bm k})$ at $T=0$, and the latter has again has a logarithmic singularity at the magnon resonance frequency $\omega = \omega_{\bm k}$. Note that the zero-temperature contribution does not fall off as $\omega\to\infty$, but is constant. This statement is equivalent to the logarithmic divergence in the static susceptibility: Calculating the minus first frequency moment of the spectrum $\chi_{\text{L}}''({\bm k},\omega) = (1 - e^{-\omega/T}) S_{\text{L}}({\bm k},\omega)/2$ in the limit $T\to 0$ we recover Eq.~(\ref{eq:2.29a}). The difference between the antiferromagnetic and ferromagnetic cases becomes pronounced for temperatures $T \ll \omega_{\bm k}$; Fig.~\ref{fig:5} shows the respective results for $T/\omega_{\bm k} = 0.05$. In the classical limit we have \begin{equation} S_{\text{L}}^{(1)}({\bm k},\omega) = \frac{N_0^2 c}{4\pi\rho_s^2}\,\frac{T^2}{\omega\,\omega_{\bm k}}\, \ln \biggl( \frac{\omega_{\bm k} + \omega}{\omega_{\bm k} - \omega}\biggr)^2\ , \label{eq:2.36} \end{equation} which is analogous to Eq.~(\ref{eq:2.22}). In $d=2$ at $T=0$ the result is \begin{equation} S_{\text{L}}^{(1)}({\bm k},\omega) = \frac{N_0^2 c^2}{4\rho_s^2}\,\Theta(\omega^2-\omega_{\bm k}^2)\,\frac{\Theta(\omega)} {\sqrt{\omega^2 - \omega_{\bm k}^2}}\ , \label{eq:2.37} \end{equation} and calculating the minus first frequency moment recovers Eq.~(\ref{eq:2.30a}). For $T>0$ there is no long-range order in $d=2$. \subsubsection{Quantum antiferromagnets in an external magnetic field} \label{subsubsec:II.B.5} So far we have considered the case of a vanishing external magnetic field. We now briefly discuss the effects of keeping the field ${\bm H}$ in the action density, Eq.~(\ref{eq:2.23b}). The $({\bm H}\times{\hat{\bm n}})^2$ term in the action implies that in the ground state the order-parameter vector ${\bm n}$ is perpendicular to ${\bm H}$. Let ${\bm H}$ point in the $x$-direction, ${\bm H}= (H,0,0)$, and we parameterize ${\bm n}$ as before in Eq.~(\ref{eq:2.24b}). The we find a Gaussian action \begin{subequations} \label{eqs:2.38} \begin{equation} {\cal A}^{(2)}[\pi_1,\pi_2] = \frac{\rho_s}{2 c^2} \sum_k \sum_{i=1}^{2} \pi_i(k)\,\mu_i(k)\,\pi_i(-k)\ , \label{eq:2.38a} \end{equation} where \begin{equation} \mu_1(k) = \mu(k) + (\mu H)^2\quad,\quad \mu_2(k) = \mu(k)\ , \label{eq:2.38b} \end{equation} \end{subequations} with $\mu(k)$ from Eq.~(\ref{eq:2.27b}). Of the two Goldstone modes, one is thus unchanged, whereas the other one acquires a mass. Equation (\ref{eq:2.26}) thus gets generalized to \begin{equation} \chi_{\text{L}}^{(1)}(k) = \left(\frac{N_0\,c^2}{\rho_s}\right)^2\,\frac{T}{2V}\sum_p \sum_i \frac{1}{\mu_i(p) \mu_i(p - k)}\ , \label{eq:2.39} \end{equation} and there is a singularity for ${\bm k}\to 0$ even for $H\neq 0$. At $T=0$ in $d=3$ we find, to leading logarithmic accuracy, \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k},i0) &=& \frac{N_0^2 c}{16\pi^2\rho_s^2} \biggl[\log\left(\frac{\omega_0}{\omega_{\bm k}}\right) \nonumber\\ && \hskip 0pt + \log\left(\frac{\omega_0}{\sqrt{\omega_{\bm k}^2 + (2\mu H)^2}}\right)\biggr]. \label{eq:2.40} \end{eqnarray} The corresponding result in $d=2$ is \begin{subequations} \label{eqs:2.41} \begin{equation} \chi_{\text{L}}^{(1)}({\bm k},i0) = \frac{N_0^2 c^2}{16\rho_s^2} \frac{1}{\omega_{\bm k}} \left[1 + \frac{2}{\pi^2}\,g(\omega_{\bm k}/\sqrt{\omega_{\bm k}^2+(2\mu H)^2})\right]. \label{eq:2.41a} \end{equation} where \begin{equation} g(x) = \int_{-1}^{1} d\eta\,\frac{\ln(1+x\eta)}{\eta\sqrt{1-\eta^2}} = \begin{cases} \pi^2/2 & \text{for $x = 1$} \\ \pi x & \text{for $x\to 0$} \end{cases}\ . \label{eq:2.41b} \end{equation} \end{subequations} For $\mu H \ll \omega_{\bm k}$ we recover Eq.(\ref{eq:2.30a}); for $\mu H \gg \omega_{\bm k}$ we have $\chi_{\text{L}}^{(1)}({\bm k},i0) \propto 1/H$. Corresponding results are obtained for $\chi_{\text{L}}^{(1)}$ as a function of the frequency. \section{Effects of damped ferromagnetic magnons} \label{sec:III} So far we have ignored the effects of damping on the magnons. In this section we will consider the effects of magnon damping on the longitudinal susceptibility and the longitudinal dynamical structure factor in ferromagnets. We restrict ourselves to the ferromagnetic case, where magnon damping has a qualitative effect. \subsection{Time-dependent Ginzburg-Landau theory} \label{subsec:III.A} We need to determine the effects of damping on the ferromagnetic Goldstone mode, Eq.~(\ref{eq:2.9a}). To this end we use the standard time-dependent Ginzburg-Landau theory for a ferromagnet\cite{Landau_Lifshitz_1935, Ma_1976, Hohenberg_Halperin_1977} \begin{subequations} \label{eqs:3.1} \begin{eqnarray} \partial_t{\bm M}({\bm x},t) &=& {\bm M}({\bm x},t)\times \frac{\delta S}{\delta{\bm M}({\bm x})}\biggr\vert_{{\bm M}({\bm x},t)} \nonumber\\ && \hskip -20pt- \int d{\bm y}\,\Gamma({\bm x}-{\bm y})\,\frac{\delta S}{\delta{\bm M}({\bm y})}\biggr\vert_{{\bm M}({\bm y},t)}\ . \label{eq:3.1a} \end{eqnarray} Here $\Gamma({\bm x})$ is the damping operator, which we will specify below, and $S$ is a suitable action for the static magnetization ${\bm M}({\bm x})$. Very general considerations yield, to linear order in ${\bm M}$, \begin{equation} \delta S/\delta{\bm M}({\bm x}) = -(\rho_s/M_0^2) {\bm\nabla}^2{\bm M}({\bm x}) - \mu{\bm H}\ . \label{eq:3.1b} \end{equation} \end{subequations} Here we use the same notation as in Sec.~\ref{sec:II} for the prefactor of the gradient-squared term. We now use Eqs.~(\ref{eqs:3.1}) to calculate the linear response of the transverse magnetization components to the external field ${\bm H}$, i.e., the transverse magnetic susceptibility $\chi_T$. The result is Eq.~(\ref{eq:2.4b}) with the substitution $\Omega_n \to \Omega_n + \Gamma_{\bm k}\,{\bm k}^2\,{\text{sgn\,}}(\Omega_n)$, where $\Gamma_{\bm k}$ is the Fourier transform of $\Gamma({\bm x})$. The one-loop contribution to the longitudinal susceptibility is still given by Eq.~(\ref{eq:2.11}), but with $\lambda_{\pm}$ replaced by \begin{equation} \lambda_{\pm}({\bm k},i\Omega_n) = D{\bm k}^2 + \mu H \mp i\Omega_n \mp i\Gamma_{\bm k}\,{\bm k}^2\,{\text{sgn\,}}(\Omega_n)\ . \label{eq:3.2} \end{equation} The ${\text{sgn\,}}(\Omega_n)$ in the damping term follows from causality requirements. In the absence of damping, $\Gamma_{\bm k} \equiv 0$, we recover the expressions given in Sec.~\ref{subsec:II.A}. We expand the damping coefficient in the long-wavelength limit as \begin{equation} \Gamma_{{\bm k}\to 0} = \gamma_0 + \gamma_2\, {\bm k}^2 \label{eq:3.3} \end{equation} and distinguish between two physically distinct cases:\cite{Hohenberg_Halperin_1977} (1) A non-conserved order parameter, in which case $\gamma_0 > 0$, and (2) a conserved order parameter, in which case $\gamma_0 = 0$. The former case is realized, e.g., by magnetic impurities;\cite{Kohno_Tatara_Shibata_2006, Umetsu_Miura_Sakuma_2012} the latter, by, e.g., damping by electron-magnon and/or magnon-magnon interactions at $T>0\,$\cite{Isoda_1990} or by nonmagnetic quenched disorder at any temperature, including $T=0.$\cite{Korenman_Prange_1972, Tserkovnyak_Hankiewicz_Vignale_2009, Umetsu_Miura_Sakuma_2012} \subsection{Non-Conserved order parameter} \label{subsec:III.B} We now perform the integral in Eq.~(\ref{eq:2.11}) with $\lambda_{\pm}$ given by Eq.~(\ref{eq:3.2}). For a non-conserved order parameter, $\Gamma_{\bm p} = \gamma_0$, and again keeping only the leading terms, we find for $d=3$ \begin{subequations} \label{eqs:3.4} \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k}\to 0,i0) &=& \text{const.} - \frac{1}{32\pi}\,\frac{\gamma_0/\sqrt{D}}{\gamma_0^2 + D^2}\,\sqrt{\omega_{\bm k}}\ ,\qquad \label{eq:3.4a}\\ \chi_{\text{L}}^{(1)}({\bm k} = 0,i\Omega_n) &=& - \frac{\gamma_0}{\pi^3D^{5/2}}\,f(\gamma_0/D)\,\vert\Omega_n\vert^{1/2}\ , \label{eq:3.4b} \end{eqnarray} \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k} = 0,i\Omega_n \to \omega + i0) &=& \text{const.} \hskip 50pt \nonumber\\ && \hskip -120pt - \frac{\gamma_0}{\sqrt{2}\pi^3D^{5/2}}\,f(\gamma_0/D)\,[1 - i\, {\text{sgn\,}}(\omega)]\,\vert\omega\vert^{1/2} \ . \label{eq:3.4c} \end{eqnarray} The function $f$ can be expressed in terms of elementary functions; however, both the derivation and the result are lengthy, see Appendix \ref{app:A}. Here we give only the power-series expansion for small damping, which reads \begin{equation} f(x \to 0) = \frac{\sqrt{2}\pi}{5} + \frac{3\pi}{7\sqrt{2}}\,x + O(x^2)\ . \label{eq:3.4c} \end{equation} \end{subequations} In $d=2$ there is a logarithmic singularity, \begin{subequations} \label{eqs:3.5} \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k}\to 0,i0) &=& \frac{1}{2\pi^2}\,\frac{\gamma_0}{\gamma_0^2 + D^2}\,\ln(\omega_0/\omega_{\bm k})\ , \qquad\quad \label{eq:3.5a}\\ \chi_{\text{L}}^{(1)}({\bm k} = 0,i\Omega_n) &=& \frac{1}{2\pi^2}\,\frac{\gamma_0}{D^2 + \gamma_0^2}\,\ln(\omega_0/\vert\Omega_n\vert)\ , \label{eq:3.5b} \end{eqnarray} \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k} = 0,i\Omega_n \to \omega + i0) &=& \frac{1}{2\pi^2}\,\frac{\gamma_0}{D^2 + \gamma_0^2}\, \Bigl[\ln(\omega_0/\vert\omega\vert) \nonumber\\ && \hskip 20pt + i\,\frac{\pi}{2}\,{\text{sgn\,}}\omega\Bigr]\ . \label{eq:3.5c} \end{eqnarray} \end{subequations} In generic dimensions the nonanalytic contribution is proportional to $\vert{\bm k}\vert^{d-2}$ and $\Omega_n^{(d-2)/2}$, respectively. In time space the latter corresponds to a $1/t^{d/2}$ long-time tail, see Appendix \ref{app:B.1}. \subsection{Conserved order parameter} \label{subsec:III.C} For a conserved order parameter, $\Gamma_{\bm p} = \gamma_2 {\bm p}^2$, the calculations are analogous but more involved and we give the results only to linear order in $\gamma_2$. For $d=3$ we find \begin{subequations} \label{eqs:3.6} \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k}\to 0,i0) &=& \text{const.} + O({\bm k}^2) \nonumber\\ && \hskip 10pt + \frac{\gamma_2\left[1+O(\gamma_2^2)\right]}{64\pi D^{7/2}}\,\omega_{\bm k}^{3/2}, \label{eq:3.6a} \end{eqnarray} \begin{equation} \chi_{\text{L}}^{(1)}({\bm k} = 0,i\Omega_n) = \text{const.} - \frac{\sqrt{2}\, \gamma_2\left[1+O(\gamma_2^2)\right]}{7\pi^2 D^{7/2}}\, \vert\Omega_n\vert^{3/2}\ , \label{eq:3.6b} \end{equation} \begin{eqnarray} \chi_{\text{L}}^{(1)}({\bm k} = 0,i\Omega_n &\to& \omega + i0) = \text{const.} \hskip 50pt \nonumber\\ && \hskip -60pt + \frac{\gamma_2\left[1+O(\gamma_2^2)\right]}{7 \pi^2 D^{7/2}}\,[1 + i\, {\text{sgn\,}}(\omega)]\,\vert\omega\vert^{3/2} \ . \label{eq:3.6c} \end{eqnarray} \end{subequations} In $d=2$ the leading singularity is \begin{subequations} \label{eqs:3.7} \begin{equation} \chi_{\text{L}}^{(1)}({\bm k}\to 0,i0) = \text{const.} - \frac{\gamma_2\left[1+O(\gamma_2^2)\right]}{48\pi^2 D^3}\, \omega_{\bm k}\ln(\omega_0/\omega_{\bm k})\ , \label{eq:3.7a} \end{equation} \begin{equation} \chi_{\text{L}}^{(1)}({\bm k} = 0,i\Omega_n) = \text{const.} - \frac{\gamma_2\left[1+O(\gamma_2^2)\right]}{6\pi D^3}\,\vert\Omega_n\vert\ . \label{eq:3.7b} \end{equation} \begin{equation} \chi_{\text{L}}^{(1)}({\bm k} = 0,i\Omega_n\to\omega + i0) = \text{const.} + \frac{i\gamma_2\left[1+O(\gamma_2^2)\right]}{12\pi D^3}\,\omega\ . \label{eq:3.7c} \end{equation} \end{subequations} In generic dimensions the nonanalytic contribution is proportional to $\vert{\bm k}\vert^{d}$ and $\Omega_n^{d/2}$, respectively. In time space this corresponds to a $1/t^{(d+2)/2}$ long-time tail, see Appendix \ref{app:B.1}. \section{Discussion} \label{sec:IV} In this final section we give a summary of our results and conclude with a discussion of various physical points that underly them. \subsection{Summary} \label{subsec:IV.A} In summary, we have investigated the coupling of magnons in quantum ferromagnets and antiferromagnets to other correlation functions, in particular the longitudinal susceptibility and the longitudinal part of the dynamical structure factor. In the case of ferromagnets with undamped magnons the longitudinal susceptibility vanishes at $T=0$. In $d=3$, and in the absence of an external magnetic field, an interpolating expression that correctly describes the leading behavior for both $T>\omega_{\bm k}$ and $T<\omega_{\bm k}$ is \begin{equation} \chi_{\text{L}}^{(1)}({\bm k},H=0) = \frac{T}{4D^{3/2}\sqrt{\omega_{\bm k}}}\,\frac{1}{1+(\pi^2/c_{\text{L}})\sqrt{\omega_{\bm k}/T}}\ , \label{eq:4.1} \end{equation} where $\omega_{\bm k} = D{\bm k}^2$ is the ferromagnetic magnon frequency and $c_{\text{L}}$ is the constant given after Eq.~(\ref{eq:2.18}). For $T>\omega_{\bm k}$ one has the classical $1/\vert{\bm k}\vert$ singularity, Eq.~(\ref{eq:2.17}), whereas for $T<\omega_{\bm k}$ $\chi_{\text{L}}$ vanishes as $T^{3/2}$, Eq.~(\ref{eq:2.18}). For a quantum antiferromagnet, the corresponding interpolating expression is \begin{equation} \chi_{\text{L}}^{(1)}({\bm k},i0) = \frac{N_0^2 c}{8\rho_s^2}\,\frac{T}{\omega_{\bm k}}\,\left[1 + (\omega_{\bm k}/\pi^2 T) \log(\omega_0/\omega_{\bm k})\right]\ , \label{eq:4.2} \end{equation} see Eqs.~(\ref{eq:2.29a}) and (\ref{eq:2.33}). Here $\omega_{\bm k} = c\vert{\bm k}\vert$ is the antiferromagnetic magnon frequency. This reflects the expected scaling behavior, viz., $1/\vert{\bm k}\vert$ for high temperature, and $\ln \vert{\bm k}\vert$ for low temperature. Similarly, the longitudinal dynamical structure factor for a ferromagnet vanishes at $T=0$, see Eq.~(\ref{eq:2.22}) and Fig.~\ref{fig:3}, whereas in the antiferromagnetic case there is a nonvanishing contribution even at $T=0$, see Eq.~(\ref{eq:2.35}) and Fig.~\ref{fig:5}. Quenched disorder introduces additional fluctuations, leads to magnon damping, and qualitatively changes the ferromagnetic results. Magnetic impurities, which lead to a non-conserved magnetization, results in the longitudinal susceptibility scaling as $\vert{\bm k}\vert^{d-2}$, where the zero exponent in $d=2$ signifies a logarithmic divergency, see Sec.~\ref{subsec:III.B}. Non-magnetic disorder leads to a weaker scaling behavior, $\vert{\bm k}\vert^d$, see Sec.~\ref{subsec:III.C}. For $T>0$ the longitudinal dynamical structure factor has a logarithmic singularity at the magnon frequency in both ferromagnets and antiferromagnets. \subsection{Discussion} \label{subsec:IV.B} We conclude with a discussion of various physical points raised by our results. \subsubsection{Predictions for experiments} \label{subsubsec:IV.B.1} \paragraph{a) Longitudinal susceptibility and dynamical structure factor:} \label{par:IV.B.1.a} The classical singularity of $\chi_{\text{L}}$ in the ferromagnetic case as a function of an external magnetic field, Eq.~(\ref{eq:2.19}), has been observed by K{\"o}tzler et al.\cite{Kotzler_et_al_1994} The theoretical prediction is that in the limit of low temperatures, $T \ll \mu H$, $\chi_{\text{L}}$ becomes exponentially small, see Eq.~(\ref{eq:2.20}) and the paragraph following it. A remarkable feature in the longitudinal dynamical structure factor is the logarithmic singularity at the magnon resonance frequency, see Eqs.~(\ref{eq:2.21}) and (\ref{eq:2.34}), and Fig.~\ref{fig:3}. In a clean system at low temperature the magnon damping is very weak, and the magnon peaks in the transverse dynamical susceptibility are very narrow. The longitudinal susceptibility or structure factor, by contrast, shows an intrinsically broad feature at the magnon frequency. Even a rather small magnetic field substantially broadens and suppresses this feature, see Fig.~\ref{fig:4}. \bigskip\par \paragraph{b) Other correlation functions:} \label{par:IV.B.1.b} We stress again that the behavior of the longitudinal susceptibility is not generic, but rather restricted to a class of correlation functions that can be expressed entirely in terms of magnon number fluctuations. Other correlation functions do show the expected $\omega^{(d-2)/2}$ frequency scaling, see the example in Sec.~\ref{subsubsec:II.A.2}. An example of a correlation function that belongs to the same class as the longitudinal susceptibility is the electrical conductivity in a metallic quantum ferromagnet; they both share the same scaling behavior. This implies that undamped magnons do {\em not} lead to an $\omega^{(d-2)/2}$ frequency dependence of the conductivity at $T=0$, or a $\ln\omega$ singularity in $d=2$. The latter conclusion was reached correctly in Ref.~\onlinecite{Kirkpatrick_Belitz_2000}, but a sign error incorrectly led to the prediction of an $\omega^{(d-2)/2}$ nonanalyticity in $d>2$. A corrected analysis of the conductivity in itinerant ferromagnets will be given elsewhere.\cite{us_tbp} \subsubsection{Comments on the results for ferromagnets} \label{subsubsec:IV.B.2} \paragraph{a) Fluctuations and entanglement entropy:} Let us come back to the issue of fluctuations in the ground state of a ferromagnet, see the remarks at the end of Sec.~\ref{subsubsec:II.A.2}. A global measurement of fluctuations in a system is given by the entanglement entropy, defined as the von Neumann entropy of a subsystem of linear size $L$. At zero temperature the entropy vanishes in the thermodyamic limit, and for $L\to\infty$ it grows more slowly than the volume $L^d$. In systems that do not contain a Fermi surface the leading contribution is in general given by an ``area-law'' term that grows as $L^{d-1}$;\cite{Eisert_Cramer_Plenio_2010} this term is due to short-range entanglement and has a non-universal prefactor. The leading universal contribution, which is a measure of long-range fluctuations, in systems with Goldstone modes grows as $\ln L$. This is true for both quantum ferromagnets\cite{Popkov_Salerno_2005, Ding_Bonesteel_Yang_2008} and antiferromagets\cite{Song_et_al_2011, Metlitski_Grover_2015, Misguich_Pasquier_Oshikawa_2016} for $d=2,3$, although the area-law term is missing in the former.\cite{Ding_Bonesteel_Yang_2008} This is another indication that fluctuations exist in the ferromagnetic ground state, although they may or may not be probed by a specific correlation function. In metallic magnets, and more generally in systems with a Fermi surface, there is an area-law term with a multiplicative logarithm that is due to long-range fluctuations in the fermionic degrees of freedom. This is one of many indications of fundamental differences between metallic and insulating magnets. We briefly discuss some of these next. \bigskip\par \paragraph{b) Spin models vs. itinerant magnets:} There are important differences between the fluctuations in quantum ferromagnets vs. antiferromagnets, the qualitatively similar universal parts of the entanglement entropies discussed above notwithstanding. For instance, a spin model for a Heisenberg ferromagnet, with Hamiltonian $H = J\sum_{<ij>}{\bm{\sigma}}_i\cdot{\bm{\sigma}}_j$ with $J<0$, has no quantum phase transition as a function of $J$, since the ground state is fully spin-polarized for any $J<0$. In this sense the quantum fluctuations in a ferromagnet, while present, are weaker than those in a quantum antiferromagnet. This argument must survive nonmagnetic quenched disorder, which makes $J$ a random function of spatial position, as long as the distribution of $J$ is restricted to negative values, since the spins will still be locally maximally polarized. Since the physical reason for the absence of a nonanalyticity in $\chi_{\text{L}}$ is the same as that for the absence of a quantum phase transition, it follows that nonmagnetic disorder with a such restricted distribution cannot lead to magnon damping; the damping coefficient $\gamma_2$ in Sec.~\ref{subsec:III.C} must vanish at $T=0$. These considerations raise interesting questions about the strength of quantum fluctuations, as well as ways to measure them, see, e.g., Refs.~\onlinecite{Song_et_al_2011, Malpetti_Roscilde_2016}. These aspects change qualitatively in a metallic ferromagnet, and in particular in an itinerant one: The coupling of the magnetic degrees of freedom to the fermionic ones leads to a large increase in fluctuations. As a result, the entanglement entropy has an area-law term multiplied by a logarithm, as is typical for systems with a Fermi surface, and as a function of the exchange coupling there is a quantum phase transition, as first described by Stoner.\cite{Stoner_1938} It is also likely that the presence of nonmagnetic disorder leads to magnon damping irrespective of the shape of the disorder distribution. For a recent review of metallic ferromagnets, see Ref.~\onlinecite{Brando_et_al_2016a}. An explicit discussion of $\chi_{\text{L}}$ and related correlation functions in a model of itinerant ferromagnets will be given elsewhere.\cite{us_tbp} \bigskip\par \paragraph{c) Effects of quenched disorder:} We now discuss the fact that quenched disorder, and the resulting damping of the magnons, leads to a nonanalyticity in $\chi_{\text{L}}$, and demonstrate that the result is consistent with scaling and renormalization-group considerations and is indeed asymptotically exact as far as the exponent of the nonanalyticity is concerned. First of all, we recall that the absence of a nonanalyticity for systems with undamped magnons is due to the absence of fluctuations that couple to the longitudinal magnetization fluctuations. Disorder introduces additional fluctuations, which makes it plausible that it will lead to a nonanalyticity. Furthermore, magnetic disorder, which couples directly to the order parameter, will have a stronger effect than nonmagnetic disorder, and thus result in a stronger singularity. The results in Secs.~\ref{subsec:III.B} and \ref{subsec:III.C} thus are physically plausible. In order to deduce the explicit results from general arguments, we consider the Gaussian action written in the form of Eq.~(\ref{eqs:2.3}) or (\ref{eq:2.6}), and add damping according to the prescription given above Eq.~(\ref{eq:3.2}). In a schematic notation that shows only what is necessary for power counting the Gaussian action then takes the form \begin{equation} {\cal A}^{(2)} = \int dx\,\pi(x)\left[D\partial_{\bm x}^2 + \partial_{\tau} + H + \gamma_n\,\partial_{\bm x}^{n+2}\right]\pi(x)\ . \label{eq:4.3} \end{equation} Here $n=0$ and $n=2$ correspond to the cases of a non-conserved and conserved order parameter, respectively. Additional terms in the action fall into two classes: (1) Gaussian with additional gradients, with the leading terms of the form \begin{subequations} \label{eqs:4.4} \begin{equation} \delta{\cal A}^{(2)} = \int dx\,\partial_{\bm x}^4\,\pi^2(x)\ , \label{eq:4.4a} \end{equation} or equivalent in terms of scale dimensions. (2) Of higher order in $\pi$, with the leading terms of the form \begin{equation} \delta{\cal A}^{(4)} = \int dx\,\partial_{\bm x}^2\,\pi^4(x) \label{eq:4.4b} \end{equation} \end{subequations} or equivalent. We now sketch a renormalization-group analysis of this action. In doing so, we follow a scheme pioneered by Ma,\cite{Ma_1976} see also Refs.~\onlinecite{Belitz_Kirkpatrick_2014} and \onlinecite{Belitz_Kirkpatrick_1997} for applications of this scheme in different contexts. We assign scale dimensions $[L] = -1$ and $[\tau] = -2$ to lengths and imaginary times, respectively. Then there is a stable Gaussian fixed point where $\pi$ has a scale dimension $[\pi(x)] = d/2$. In Fourier space this corresponds to $[\pi(k)] = -1$. We thus have $\langle\pi(k)\pi(-k)\rangle \sim 1/{\bm k}^2 \sim 1/\Omega_n$. This scaling behavior describes the magnons, see Eqs.~(\ref{eqs:2.4}), and the Gaussian fixed point describes the ordered phase where the symmetry is broken. The field $H$ is relevant with respect to this fixed point with a scale dimension $[H] = 2$. For a non-conserved order parameter the damping coefficient $\gamma_0$ is dimensionless, $[\gamma_0] = 0$, and the damping term is part of the fixed-point Hamiltonian. The free-energy density $f$, the magnetization $m$, and the scaling part $\delta\chi_{\text{L}}$ of the longitudinal susceptibility $\chi_{\text{L}} = \partial m/\partial H$ then have scale dimensions $[f] = d-2$, $[m] = d$, and $[\delta\chi_{\text{L}}] = d-2$ respectively. For the latter this implies a homogeneity law \begin{equation} \delta\chi_{\text{L}}({\bm k},i\Omega_n) = b^{2-d}\,F_{\chi}({\bm k} b,i\Omega_n b^2,\gamma_0)\ , \label{eq:4.5} \end{equation} with $b$ an arbitrary length rescaling factor and $F_{\chi}$ a scaling function. The latter has the property $F_{\chi}(x,y,\gamma_0\to 0) = 0(\gamma_0)$, as we have discussed in the main part of this paper. We thus obtain the scaling behavior \begin{equation} \delta\chi_{\text{L}}({\bm k},i\Omega_n) \sim \gamma_0\vert{\bm k}\vert^{d-2} \sim \gamma_0\vert\Omega_n\vert^{(d-2)/2}\ , \label{eq:4.6} \end{equation} in agreement with Sec.~\ref{subsec:III.B}. The leading correction terms to the fixed-point action are irrelevant by power counting, with scale dimensions $-2$ for the operator in Eq.~(\ref{eq:4.4a}) and $-d$ for the one in Eq.~(\ref{eq:4.4b}), respectively. These arguments show that the one-loop results obtained in Sec.~\ref{subsec:III.B} are exact as far as the exponents are concerned; higher terms in the loop expansion will change the prefactor of the nonanalyticity, but not the power. In the case of a conserved order parameter the damping term is not part of the fixed-point action; it is an irrelevant operator with a scale dimension $[\gamma_2] = -2$ which is the same as the least irrelevant operators represented by, e.g., Eq.~(\ref{eq:4.4a}). The homogeneity equation for $\delta\chi_{\text{L}}$ now reads \begin{subequations} \label{eqs:4.7b} \begin{equation} \delta\chi_{\text{L}}({\bm k},i\Omega_n) = b^{2-d}\,F_{\chi}({\bm k} b,i\Omega_n b^2,\gamma_2 b^{-2})\ , \label{eq:4.7a} \end{equation} where we do not show the other irrelevant operators. Even though $\gamma_2$ is irrelevant, the scaling function still vanishes for $\gamma_2 = 0$, and we obtain, to linear order in $\gamma_2$, \begin{equation} \delta\chi_{\text{L}}({\bm k},i\Omega_n) = b^{-d}\,\gamma_2\,{\tilde F}_{\chi}({\bm k} b,i\Omega_n b^2)\ , \label{eq:4.7a} \end{equation} \end{subequations} with ${\tilde F}$ another scaling function. This yields \begin{equation} \delta\chi_{\text{L}}({\bm k},i\Omega_n) \sim \gamma_2\vert{\bm k}\vert^{d} \sim \gamma_2\vert\Omega_n\vert^{d/2}\ , \label{eq:4.8} \end{equation} in agreement with Sec.~\ref{subsec:III.C}. Again, this is the exact leading scaling behavior. \bigskip\par \paragraph{d) Magnon damping:} An interesting aspect of ferromagnetic magnons is that these excitations cannot be overdamped, irrespective of the magnitude of the damping coefficient. Consider Eq.~(\ref{eq:2.4b}) with $\Omega_n \to \Omega_n + \Gamma_{\bm k}\,{\bm k}^2\,{\text{sgn\,}}(\Omega_n)$. The poles of $\chi_{\text{T}}({\bm k},z)$ with $z$ the complex frequency, always have a real part given by $\pm\omega_{\bm k}$, independent of $\Gamma_{\bm k}$. This is in contrast to a damped harmonic oscillator, where the resonance frequency has no real part if the damping coefficient is larger than a threshold value, and also to sound waves in fluids,\cite{Forster_1975} antiferromagnetic magnons, see Eqs.~(\ref{eqs:2.25}) with a damping coefficient added, and helimagnons in helical magnets,\cite{Belitz_Kirkpatrick_Rosch_2006a} all of which have the same structure as a damped harmonic oscillator. \subsubsection{Comments on correlation functions that do not decay} \label{subsubsec:IV.B.3} We finally discuss the physical meaning of the constant long-time behavior implied by Eq.~(\ref{eq:2.30b}), see Eq.~(\ref{eq:B.17}). Let $T_{\text{max}}$ be the maximum time scale, which can be, e.g., the total duration of the experiment, or $L$ divided by the relevant characteristic velocity. $\chi_{\text{L}}$ then depends on two times, $t_1$ and $t_2$. As long as $t_1$, $t_2$, and $\vert t_1 - t_2\vert$ all are small compared to $T_{\text{max}}$, $\chi_{\text{L}}$ will not decay if $\vert t_1 - t_2\vert$ increases. In position space, by contrast, $\chi_{\text{L}}$ does decay, but only as a power: The $1/\vert{\bm k}\vert$ divergence in the $2$-$d$ quantum antiferromagnet, which is the same the one in a $3$-$d$ classical magnet, Eq.~(\ref{eq:1.1}), implies that in real space the correlation function decays as $1/r$. For a general discussion of power-law decays of correlation functions, see, e.g., Ref.~\onlinecite{Belitz_Kirkpatrick_Vojta_2005}. These results are examples of an effect that can be even stronger: In classical non-equilibrium fluids, and in Fermi liquids even in equilibrium, there are correlation functions that {\em increase} with increasing length or time scales in a well-defined sense, see Refs.~\onlinecite{Ortiz_Sengers_2007, Kirkpatrick_Cohen_Dorfman_1982b, Kirkpatrick_Belitz_2016a}. \acknowledgments We thank Max Metlitski for discussions. This work was supported by the NSF under Grants No. DMR-1401410 and No. DMR-1401449. Part of this work was performed at the Aspen Center for Physics, which is supported by the NSF under Grant No. PHY-1066293.
\section{Derivations} \subsection{Optomechanical interaction} The optomechanical interaction in the interferometer is defined by the following Hamiltonian \cite{Boerkje(10)_Observa_RPSN_Theory,Aspelmeyer(14)_RevModPhys}. \begin{equation} \hat{H}_0=\frac{1}{4}\hbar \omega_m \left(\hat{x}^2+\hat{p}^2 \right) + \hbar \omega_c \hat{a}^{\dag}\hat{a}+\hbar g \hat{x} \hat{a}^{\dag} \hat{a} \label{eq:Hamiltonian} \end{equation} where $\omega_m$ is the mechanical resonance frequency, $\hat{x}$ ($\hat{p}$) is the mechanical position (momentum) fluctuation operator, $\omega_c$ is the optical cavity resonance frequency, $\hat{a}$ $(\hat{a}^{\dag})$ is the optical intracavity annihilation (creation) operator, $g$ is a single-photon optomechanical coupling constant. In this way of writing the Hamiltonian the position and momentum operators are normalized to their zero-point fluctuations $x_{\mathrm{zp}}=\sqrt{\hbar/2 m \omega_m}$ and $p_{\rm{zp}}=\sqrt{\frac{1}{2}m\hbar\omega_m}$. Here $m$ the mechanical resonator effective mass, and $\hbar$ the reduced Planck constant. In our analysis the Hamiltonian is linearized by assuming a large optical coherent state. Thus we write the optical annihilation operator as $\hat{a} = \bar{a} + \hat{u}$ with $\bar{a} = \langle \hat{a} \rangle$, and neglecting the $\hat{u}^{\dagger} \hat{u}$ term. \vspace{-12 pt} \subsection{Heisenberg-Langevin equations for the light operators} \label{light operators} Here we present the analysis of the Heisenberg-Langevin equations for the probe light operator $u$, based on the Hamiltonian given above. Similar to previous analyses we write the solution to the Heisenberg-Langevin equations of motion of our optomechanical system~\cite{Boerkje(10)_Observa_RPSN_Theory,Purdy(13)_MechSqueeze,Weinstein(14)_ObserInterpCool,Botter(12)_LinAmpModel}. In subsequent sections we will convert the solutions to the units used in our final equations. In the Supplemental Material we add to these equations a treatment of potential classical noise terms (and find them to be negligible for our experimental parameters). The probe light quadratures $u_{AM}$ and $u_{PM}$ are given by, \begin{align} \left( \begin{array}{c} \hat{u}_{AM}(\omega) \\ \hat{u}_{PM}(\omega) \end{array} \right) &= \left( \begin{array}{c} \hat{\mu}_{AM}(\omega) \\ \hat{\mu}_{PM}(\omega) \end{array} \right) \nonumber \\ &+\sqrt{\epsilon\kappa} g\bar{a} \left( \begin{array}{cc} \pi_-(\omega) & 0 \\ 0 & \pi_+(\omega) \end{array} \right) \left( \begin{array}{c} \hat{x}(\omega) \\ \hat{x}(\omega) \end{array} \right) \label{eq: u mat} \end{align} here $\hat{\mu}_{AM}(\omega)$ and $\hat{\mu}_{PM}(\omega)$ are the light shot-noise Langevin operators for the amplitude (AM, $\phi=0^{\circ}$) and phase (PM, $\phi=90^{\circ}$) quadratures, $\bar{a}$ is the intracavity coherent state amplitude, $\epsilon$ is the quantum efficiency, $\hat{x}(\omega)$ is the resonator state, and $\pi_{\pm}(\omega)$ are the constructive and destructive cavity susceptibility interference functions defined as $\pi_+(\omega) = \chi^*_c(-\omega) + \chi_c(\omega)$ and $\pi_-(\omega) = i\left ( \chi^*_c(-\omega) - \chi_c(\omega) \right)$. $\chi_c(\omega)$ is the cavity susceptibility given by $\chi_c(\omega) = \left( \kappa/2 -i(\omega+\Delta)\right)^{-1}$, with $\Delta$ the probe detuning relative to the cavity resonance, and $\kappa$ the optical cavity linewidth. The measured light operator at a given phase $\phi$, is given by $\hat{u}_{\phi} = \hat{u}_{AM}\cos\phi - \hat{u}_{PM}\sin\phi$. We use this to calculate the symmetrized light PSD, $S_{\phi}(\omega,\phi) = \expect{\hat{u}_{\phi}(-\omega)\hat{u}_{\phi}(\omega)}$~\cite{Clerk(10)_QN,Boerkje(10)_Observa_RPSN_Theory,ClerkLesHouches}. Then the dimensionless $S_{\phi}$ is decomposed as follows, \begin{align} S_{\phi}(\omega,\phi) &= 1 + f_{xx}(\omega,\phi) \expect{\hat{x}\hat{x}}(\omega) + S_{\mu \hat{x}}(\omega,\phi) \label{Eqs: Sp} \end{align} where $1$ is the probe shot-noise, $f_{xx}(\omega,\phi)$ is the transfer function from displacement to light, $\expect{\hat{x}\hat{x}}(\omega)$ is the symmetrized resonator displacement distribution PSD, and $S_{\mu \hat{x}}(\omega,\phi)$ is the cross-correlation PSD between the light shot-noise and the resonator state as inferred by the probe. To explicitly write the above functions we define the following cavity and light parameters: $n_{\rm{th}}$ is the thermal phonon occupation, $\Gamma$ the effective mechanical linewidth, $\omega_m$ the resonator frequency, and the mechanical susceptibility is given by $\chi_m(\omega) = \left( \Gamma/2 - i\left(\omega - \omega_m\right) \right)^{-1}$. We find:\begin{align} f_{xx}(\omega,\phi) &= \epsilon \kappa (g\bar{a})^2 \left\{ \abs{\chi_{c}(-\omega)}^2 + \abs{\chi_c(\omega)}^2 \right\} \nonumber \\ & - 2 \epsilon \kappa (g\bar{a})^2 \Re\left[\chi_c(-\omega)\chi_c(\omega)e^{-2i\phi} \right] \label{Eqs: fxx full} \\ S_{\mu \hat{x}}(\omega,\phi) &= \epsilon \kappa \left(g\bar{a}\right)^2 \left( \abs{\chi_{c}(-\omega)}^2 - \abs{\chi_{c}(\omega)}^2 \right) \Im \left[i\chi_m(\omega) \right] \nonumber \\ &-2\epsilon \kappa (g\bar{a})^2 \Im\left[ \chi_c(-\omega)\chi_c(\omega)e^{-2i\phi} \right]\Re\left[ i\chi_{m}(\omega) \right] \end{align} \begin{align} \expect{\hat{x}\hat{x}}(\omega) &= \Gamma(n_{\rm{th}}+1/2) \abs{\chi_m(\omega)}^2 \nonumber \\ &+ (g\bar{a})^2\abs{\chi_m(\omega)}^2 \frac{\kappa}{2}\left(\abs{\chi_c(-\omega)}^2 + \abs{\chi_c(\omega)}^2 \right) \nonumber \\ &+ \left(\frac{F}{4p_{\rm{zp}}}\right)^2 \abs{\chi_m(\omega)}^2 \delta(\omega-\omega_f) \label{Eqs: xx full} \end{align} In Eq.~(\ref{Eqs: xx full}) we have included the response to external force ($F$), applied on the resonator at a frequency $\omega_f$. Note that the $\Gamma$ and $\omega_m$ are effective mechanical parameters due to well-known optical damping and spring effects dominantly from a red-detuned damping tone but with a very small contribution from the small detuning of the probe~\cite{Aspelmeyer(14)_RevModPhys}. \vspace{-12 pt} \subsection{Derivation of the standard quantum limit value} \label{sec: sql} Here we derive the SQL PSD ($S_{\rm{sql}}$) using the result above by minimizing the combined shot-noise and quantum backaction terms~\cite{Braginsky(03)_NonRelaventSQL}. \begin{align} S_{\rm{sql}}(\omega) = x_{\rm{zp}}^2 \min_{\bar{a},\phi,\Delta} \{ \frac{1}{f_{xx}(\omega,\phi)} + \nonumber \\ (g\bar{a})^2\abs{\chi_m(\omega)}^2 \frac{\kappa}{2}\left(\abs{\chi_{c}(-\omega)}^2 + \abs{\chi_{c}(\omega)}^2 \right) \} \label{eq: ssql min func} \end{align} with $f_{xx}(\omega,\phi)$ the transfer function from displacement to light (with units of hertz) of Eq.~(\ref{Eqs: fxx full}). The $S_{\rm{sql}}$ is composed only of the added noise by the measurement probe (shot-noise and quantum backaction), and ignores the mechanical state (thermal and zero-point motion). This is motivated from the point of view that the mechanical resonator state is the signal to measure. We note that in Ref.~\cite{Schreppler(14)_SQL}, the zero-point motion is included in the total noise. The minimum value of the SQL PSD is found for detection angle of $\phi=90^{\circ}$ and for probing on cavity resonance ($\Delta=0$). Additionally we evaluate $f_{xx}$ for unity detection efficiency ($\epsilon=1$). With this we find the number of photons required for SQL detection to be, \begin{align} \bar{a}^2_{\rm{sql}}(\omega) =& \frac{1}{2\kappa g^2 \abs{\chi_c(\omega)}^2 \abs{\chi_m(\omega)} } = \nonumber \\ & \frac{\Gamma}{4\kappa g^2 \abs{\chi_c(\omega)}^2 } \sqrt{1 + \rho^2 } \label{eq: a-sql} \end{align} with $\rho = 2 \left(\frac{\omega-\omega_m}{\Gamma}\right)$ a dimensionless mechanical detuning. We combine this result with Eq.~(\ref{eq: ssql min func}) to find, \begin{align} S_{\rm{sql}}(\omega) = x_{\rm{zp}}^2\abs{\chi_m(\omega)} = x_{\rm{zp}}^2\frac{2}{\Gamma} \frac{1}{\sqrt{1 + \rho^2}}. \label{eq: Ssql} \end{align} When evaluated on-resonance the SQL value is $S_{\rm{sql}}(\omega_m) = \frac{\hbar}{m\omega_m\Gamma}$. We utilize a probe power ($p$) normalized to the on-resonant SQL power, i.e. $p=\frac{\bar{a}^2}{\bar{a}_{\rm{sql}}^2(\omega_m)}$. Note $p$ is related to the commonly-used optomechanical cooperativity ($C$) by $C=p/4$~\cite{Schreppler(14)_SQL,Aspelmeyer(14)_RevModPhys} . \vspace{-12 pt} \subsection{Converting measurement noise results to dimensionless displacement PSD} \label{sec: heis} In this section we write the result of the Heisenberg-Langevin equations for the light operators inferred as displacement of the resonator and use it to evaluate the displacement PSD. While the light equations and associated PSD have been derived many times in the literature~\cite{Boerkje(10)_Observa_RPSN_Theory,Purdy(13)_MechSqueeze,Weinstein(14)_ObserInterpCool,Botter(12)_LinAmpModel}, our approach is to use quantum noise notation, as described in for example \cite{Clerk(10)_QN}, which allows us to see more transparently how the QL can be reach for a particular optical probe configuration. The probe light operator converted to inferred displacement $\hat{X}$ is given by multiplying the probe light operator $\hat{u}$ by $x_{\rm{zp}}/\sqrt{f_{xx}(\phi=90^{\circ})}$($=x_{\rm{zp}}/\sqrt{\epsilon \Gamma p}$), which gives dimensions of $\unit{m/\sqrt{Hz}}$. We normalize the displacement by the on-resonance SQL amplitude ($\sqrt{S_{\rm{sql}}(\omega_m)}$). We also use a dimensionless mechanical susceptibility defined by $\tilde{\chi}_m(\rho) = \chi_m(\omega)/\abs{\chi_m(\omega_m)}= (1 - i \rho)^{-1}$ and a dimensionless cavity susceptibility $\tilde{\chi}_c(\omega) = \chi_c(\omega)/\abs{\chi_c(\omega_m)}$. With this we write the AM and PM quadrature operators for the inferred displacement as, \begin{align} \hat{X}_{AM}(\omega) &= \frac{1}{\sqrt{2\epsilon p}\tilde{\chi}_c(\omega)} \hat{\mu}_{AM}(\omega) \\ \hat{X}_{PM}(\omega) &= \frac{1}{\sqrt{2\epsilon p}\tilde{\chi}_c(\omega)} \hat{\mu}_{PM}(\omega) + \sqrt{\frac{\Gamma}{2}} \hat{x}(\omega) \\ \sqrt{\frac{\Gamma}{2}} \hat{x}(\omega) &= \hat{x}_{m}(\omega) - 2\omega_m\chi_m^*(-\omega)\tilde{\chi}_m(\omega) \hat{F}_{\rm{ba}}(\omega) \end{align} with $\hat{x}_{m}$ the resonator state (which includes zero-point motion, thermal and external force), and $\hat{F}_{\rm{ba}}$ the dimensionless backaction force applied onto the resonator. The backaction operator is proportional to $\sqrt{p}$ and is a function of the shot-noise AM quadrature operator~\cite{Boerkje(10)_Observa_RPSN_Theory,Purdy(13)_MechSqueeze}. Because the resonator ($\hat{x}$) information is only in the PM quadrature, the displacement phase dependence is given by, \begin{align} \hat{X}_{\phi}(\omega) &= -\cot\phi \hat{X}_{AM}(\omega) + \hat{X}_{PM}(\omega) \nonumber \\ &= \hat{x}_{m}(\omega) + \hat{I}_{\phi} - 2\omega_m\tilde{\chi}_m^*(-\omega)\tilde{\chi}_m(\omega) \hat{F}_{\rm{ba}}(\omega) \nonumber \\ &\cong \hat{x}_{m}(\omega) + \hat{I}_{\phi} - i\tilde{\chi}_m(\omega) \hat{F}_{\rm{ba}}(\omega) \label{eq: x phi} \end{align} Here we have defined the shot-noise displacement imprecision operator to be $\hat{I}_{\phi} = \frac{1}{\sqrt{2\epsilon p}\tilde{\chi}_c(\omega)} \left(-\cot\phi \hat{\mu}_{AM}(\omega) + \hat{\mu}_{PM}(\omega)\right)$, from which it follows that there is a weak frequency dependence proportional to $\abs{1/\tilde{\chi}_c(\omega)}$. In the third line we take the limit of a high-Q resonator ($\Gamma\ll \omega_m$). Note in AM $\cot\phi = \cot 0 = \infty$ corresponds to the case in which all the information about the resonator is in the $\phi=90^{\circ}$ (PM) quadrature and thus the displacement measurement diverges. It follows that the displacement PSD is given by, \begin{align} S_{xx}(\omega) &= \expect{\hat{X}_{\phi}(-\omega)\hat{X}_{\phi}(\omega)} \nonumber \\ &\cong S_{m}(\omega) + S_{II}(\omega) + \abs{\tilde{\chi}_m(\rho)}^2 S_{FF}(\omega) + \nonumber \\ &2 \Im \left[ \tilde{\chi}_m(\rho) S_{IF} \right] \label{eq: sxx heis} \end{align} with functions given by, \begin{align} S_{m}(\omega) &= 2\left(n_{\rm{th}}+\frac{1}{2}\right) \abs{\tilde{\chi}_{m}(\rho)}^2 \\ S_{II}(\omega) &= \frac{1 + \cot^2\phi}{2 \epsilon p \abs{\tilde{\chi}_c(\omega)}^2 } \\ S_{FF}(\omega) &= \frac{1}{2} p \abs{\tilde{\chi}_c(\omega)}^2 \\ S_{IF}(\omega) &=-\frac{1}{2} \cot\phi. \end{align} Here $S_m$ is the displacement PSD of the resonator including thermal, and zero-point motion, in which we set the external force to zero; $S_{II}$ is the displacement imprecision PSD due to the probe SN and is inversely proportional to the power; $S_{FF}$ is the displacement change due to the backaction force; $S_{IF}$ is the cross-correlation term measured in homodyne detection and is real, but in general it can be complex \cite{Clerk(10)_QN}. For example, in synodyne detection the equivalent $S_{IF}$ is complex and $S_{IF} = -S_{FI}^*$ \cite{Buchmann(16)_Synodyne}. When examining the contribution of the backaction in Eq.~(\ref{eq: x phi}), there is a $90^{\circ}$ degrees phase delay with respect to the shot-noise term ($\hat{I}_{\phi}$). This means there is a time lag between the backaction force applied on the resonator and the measurement time. For this reason, there must be a frequency dependence in the cross-correlation term. Only the imaginary part of the mechanical susceptibility $\Im \tilde{\chi}_m(\rho) = \rho\abs{\tilde{\chi}_m(\rho)}^2$ contributes to the PSD. It will also be useful to explicitly write out the PSD with the assumption $\abs{\tilde{\chi}_c(\omega)}^2 = 1$, which is a very good approximation for our experimental parameters. \begin{align} S_{xx}(\omega,p,\phi) &= 2\left(n_{\rm{th}}+\frac{1}{2}\right) \abs{\tilde{\chi}_{m}(\omega)}^2 + \frac{1 + \cot^2\phi}{2 \epsilon p} + \nonumber \\ &\frac{1}{2} p \abs{\tilde{\chi}_{m}(\omega)}^2 - \cot\phi \rho \abs{\tilde{\chi}_m(\omega)}^2 \label{eq: Sx reso} \end{align} \vspace{-24 pt} \subsection{Comparison to uncertainty relations and parameters for reaching the QL} Through Eq.~(\ref{eq: sxx heis})-(\ref{eq: Sx reso}) we can compare the PSD to the Heisenberg uncertainty relation \cite{Robertson(34)_statUncePrinc} for the state of probe light and to the SQL. The Heisenberg uncertainty relation is given by, \begin{align} \Delta \hat{I}_{\phi}^2\Delta \hat{F}_{\rm{ba}}^2 &\ge \frac{1}{4} \abs{ \expect{\left[\hat{I}_{\phi},\hat{F}_{\rm{ba}} \right]} }^2 + \frac{1}{4} \abs{ \expect{\left\{\hat{I}_{\phi},\hat{F}_{\rm{ba}} \right\}} }^2 \nonumber \\ S_{II} S_{FF} &\ge \frac{1}{4} + S_{IF}^2 \end{align} For $\epsilon=1$ and $\phi = 90^{\circ}$, $S_{II} S_{FF} = \frac{1}{4}$, which is the case for an SQL measurement configuration, and is power independent. But when measuring at some intermediate angle ($0^{\circ} < \phi < 90^{\circ}$), the measurement imprecision can be below the SQL value of $1/4$. We can also determine the correct choice of $p$ and $\phi$ to reach the QL, when the additional contribution of the cross-correlation term ($S_{IF}$) is taken into account. When we optimize the PSD (Eq.~(\ref{eq: Sx reso})) to find the optimal measurement phase we find $\cot\phi_{\rm{opt}} = \epsilon p \rho \abs{\tilde{\chi}_m(\rho)}^2$. Placing this back into Eq.~(\ref{eq: Sx reso}) we find the succinct consequence of variational readout, \begin{align} S_{xx}(\rho,\phi_{\rm{opt}},p) = 2\left(n_{\rm{th}}+\frac{1}{2}\right) \abs{\tilde{\chi}_m(\rho)}^2 + \nonumber \\ \frac{1}{2 \epsilon p } + \frac{1}{2} p \left( 1 + (1-\epsilon)\rho^2 \right) \abs{\tilde{\chi}_m(\rho)}^4 \label{eq: Sx-sql-opt} \end{align} for a given QE. At the optimal power $p_{\rm{opt}}$ and optimal angle one finds precisely the QL: \begin{align} S_{xx}(\rho,\phi_{\rm{opt}},p_{\rm{opt}}) = 2\left(n_{\rm{th}}+\frac{1}{2}\right) \abs{\tilde{\chi}_m(\rho)}^2 + \nonumber \\ \sqrt{ \frac{1}{\epsilon} + \frac{1-\epsilon}{\epsilon}\rho^2 } \abs{\tilde{\chi}_m(\rho)}^2 \label{eq: Sxx QL} \\ p_{\rm{opt}} = \frac{1}{\sqrt{ \epsilon \left( 1 + (1-\epsilon)\rho^2 \right) } \abs{\tilde{\chi}_m(\rho)}^2 } \end{align} We recall that the QL for an ideal detector reaches one zero-point motion contribution for each measured mechanical quadrature [black lines in Fig.~\ref{fig: exp setup}(a)]. \vspace{-12 pt} \subsection{Comparison to ponderomotive squeezing} \label{sec: comp sque} The above analysis gives us the necessary tools to directly compare the consequence of variational readout on displacement sensitivity to the creation of ponderomotive squeezing. Namely, we can compare the $S_{\phi}$ derived in Sec.~\ref{light operators} to $S_{xx}$ to find the light PSD has a different $\phi$ dependence than the displacement PSD~\cite{Brooks(12)_Squeez,SafaviNaeini(13)_Squeezing,Purdy(13)_MechSqueeze}. We can write this as, \begin{align} S_{\phi}(\rho,\phi,p) = 2\epsilon p \sin^2\phi S_{xx}(\rho,\phi,p) . \end{align} The different phase dependences is illustrated in the main text in Fig.~\ref{fig: exp setup}(d). For light squeezing the information about the resonator does not matter. Conversely, for displacement measurement, while the larger cross-correlation term reduces the backaction contribution by rotating towards the AM quadrature, it also dilutes mechanical information found in the PM quadrature. For this reason the optimal ponderomotive squeezing angle is closer to the AM quadrature than for the displacement measurement.
\section{Introduction} The Higgs boson was discovered at the Large Hadron Collider (LHC) \cite{atlas,cms}. After analyzing almost all the Run-1 data, the measured properties of the Higgs boson are the best described by the standard model (SM) Higgs boson \cite{higgcision}, which was proposed in 1960s \cite{higgs}. The most constrained is the Higgs coupling to the massive gauge bosons normalized to the corresponding SM value (gauge-Higgs couplings) $C_v = 0.94\,^{+0.11}_{-0.12}$, which is very close to the SM value \cite{Khachatryan:2014jba}. On the other hand, the top- and bottom-Yukawa couplings cannot be determined as precisely as $C_{v}$ by the current data. Currently, they are within $ 30-40\% $ of the SM values \cite{Khachatryan:2014jba}, yet, the negative regime of the top-Yukawa coupling is still allowed at 95\% confidence level (CL) \footnote { The model-independent fit to the current Higgs data shows that, when the bottom- and tau-Yukawa couplings are allowed to vary in addition to the gauge-Higgs and top-Yukawa couplings, the negative top-Yukawa coupling is still allowed at 95\% CL due to some collaborative effects from the bottom- and tau-Yukawa couplings~\cite{higgcision}. }. On the other hand, one of the most exciting results from both ATLAS and CMS in their Run-1 data was the excess in the same-sign dilepton events with $b$-jets and missing transverse energy \cite{Aad:2015gdg,Khachatryan:2014qaa,ss2l-ex}. The ATLAS collaboration reported a significance of about $2\sigma$ in the exotic search \cite{Aad:2015gdg} and the CMS collaboration a significance of about $2.5\sigma$ in the $t\bar t h$ Higgs search~\cite{Khachatryan:2014qaa}. Some people have taken them as the twilight of new physics beyond the SM (BSM)\cite{ss2l-ph}. In this work, we focus on the excess observed in Higgs boson production in association with a top-quark pair ($t\bar t h$). In the same sign dilepton channel ($ss2\ell$), the best-fit signal strengths are: $\mu^{\rm ATLAS}_{tth\,,ss2\ell}=2.8\,^{+2.1}_{-1.9}$~\cite{Aad:2015iha} and $\mu^{\rm CMS}_{tth\,,ss2\ell}=5.3\,^{+2.1}_{-1.8}$~\cite{Khachatryan:2014qaa}. The CMS excess is about $2.5\sigma$ above the SM prediction while the ATLAS result is still consistent with the SM. While, the best-fit signal strengths for combined channels are: $\mu^{\rm ATLAS}_{tth}=1.81\pm 0.80$ and $\mu^{\rm CMS}_{tth}=2.75\pm 0.99 $ at $\sqrt{s}$= 7 and 8 TeV \cite{Khachatryan:2014jba}. Even though the data do not show a significant deviation from the SM predictions and there is no obvious indication yet whether the excess is real, there are still enough rooms for the implication of new physics beyond the SM. Here we attempt to interpret the mild excess by exploiting the strong entanglement between the associated Higgs production with a single top quark ($thX$) and $t\bar t h$ production in the presence of anomalous top-Yukawa coupling. \begin{figure}[t!] \centering \includegraphics[width=2.1in]{figure/tth_f1.pdf} \includegraphics[width=2.1in]{figure/tth_f2.pdf} \includegraphics[width=2.1in]{figure/tth_f4.pdf} \caption{\small \label{tth} Feynman diagrams contributing to $t\bar t h$ production at LO. }\end{figure} \begin{figure}[t!] \centering \includegraphics[width=2in, height=1.5in]{figure/thj_f1.pdf} \includegraphics[width=2in, height=1.5in]{figure/thj_f2.pdf} \caption{\small \label{fig1} Feynman diagrams contributing to $thX$ production with $X=j$. }\end{figure} As well known $t\bar t h$ production only depends on the absolute value of the top-Yukawa coupling at the leading order (LO), see Fig.~\ref{tth}, which is similar to gluon-gluon fusion production. Therefore, the $t\bar{t}h$ cross section is insensitive to the sign of the top-Yukawa coupling at LO. Meanwhile, in $thX$ production, this degeneracy is lifted through the strong interference between the two main contributions, which are proportional to the top-Yukawa and the gauge-Higgs couplings, respectively. Note that we include both $th+X$ and $\bar th +X$ production when we refer to $thX$ with $X$ denoting the accompanied particle(s) produced together with $t(\bar t)$ and $h$. The Feynman diagrams contributing to $thX$ production with $X=j$ ($q b \to t h q^\prime$) is depicted in Fig.~\ref{fig1}. The left diagram is proportional to the gauge-Higgs coupling while the right one to the top-Yukawa coupling \footnote{ We neglect the diagram with the Higgs boson attached to the bottom-quark leg which is suppressed by the small bottom-Yukawa coupling.}. The interference between the two diagrams was shown to be significant and induces large variations in the total cross section with the size and the relative sign of the Higgs couplings to the gauge bosons and the top quarks. It was shown in literature \cite{Chang:2014rfa,singletop.old,th-others} that the cross section can be enhanced by more than an order of magnitude when the relative sign of the top-Yukawa coupling to the gauge-Higgs coupling is reversed. In this work, we perform a detailed study of the influence of $thX$ production on $t\bar{t}h $ production in the presence of the anomalous top-Yukawa coupling. While assuming the Standard Model (SM) value for the gauge-Higgs coupling, we vary the top-Yukawa coupling within the allowed range by the current LHC Higgs data. We consider the Higgs decay modes into multileptons \footnote{ For earlier proposals to measure the top-Yukawa coupling through the multilepton modes in $tth$ production, see Ref.~\cite{tth:multilepton.old}.}, $b\bar b$ and $\gamma\gamma$ putting a particular emphasis on the same sign dilepton events. We show that the current ATLAS and CMS analyses of $t\bar t h$ could be significantly contaminated by the $thX$ processes. Moreover, the $thX$ processes contribute (or contaminate) at quite different levels in various detection modes of $tth$, depending on the value of top-Yukawa coupling, on the cuts used in each experiment, and on the decay mode of the Higgs boson. We shall illustrate such behavior in Sec. III, which is far more complicated than simply assuming a small constant level of contamination in all channels. In addition to explaining the apparent mild excess in $t\bar{t}h$ production by entangling $thX$ production, we also propose how to disentangle $thX$ production from $t\bar{t}h$ one at the LHC Run-2. The main objective of this work is to further pin down the sign and the size of the top-Yukawa coupling. To achieve the objective, we point out that it is crucial to consider the entanglement between $thX$ and $t\bar t h$. Note that the $\sim 2 \sigma$ excesses were seen in the channels of multileptons and $b\bar b$ of ATLAS and in the channels of multileptons and $\gamma\gamma$ of CMS, but not in the others. It may as well be due to statistical fluctuations, but could also be due to some specific forms of new physics. Only more data can tell. In this work, we perform a case study in which, through the $thX$ processes, the contributions of the anomalous top-Yukawa coupling to $t\bar t h$ production manifest non-trivially depending on the value of top-Yukawa coupling, on the cuts used in each experiment, and on the decay mode of the Higgs. Our case study shows that the (future) observations related to $t\bar t h$ production should be carefully made without simply assuming a small constant level of contamination in all channels which is common to both the ATLAS and CMS experiments. The organization is as follows. In the next section, we lay down the formalism and the calculation method. In Sec. III, we show the influence of $thX$ with the anomalous top-Yukawa coupling on $t\bar{t}h$ for both the ATLAS and CMS Run-1 data. In Sec. IV, we propose some scenarios to further disentangle $thX$ from $t\bar{t}h$ for the LHC Run-2. Finally, we discuss and conclude in Sec. V. \section{Formalism} \subsection{Processes and Higgs couplings involved} We consider two types of production processes for the Higgs boson and the top quark. The first one is the associated production of the Higgs with a pair of top quarks, see Fig.~\ref{tth}. The second one is the associated Higgs production with a single top quark plus anything else: $thX$ production with $X=j\,(qb\to thq'),\ jb\,(qg\to thq'b),\ W\,(gb\to thW)$ \footnote{ In this work, we ignore the $s$-channel $thX$ process with $X=b$ $(q\bar q' \to thb)$ because its production cross section is much smaller compared to other processes with $X=j\,,jb\,,W$. }, see Figs.~\ref{fig1} -- \ref{fig3} in which we have marked the vertices of $hWW$ and $ht\bar{t}$ with squares. In $t\bar{t}h$ production, the production cross section only depends on the square of the top-Yukawa coupling. However, in $thX$ production, the cross sections depend on the size of the gauge-Higgs and top-Yukawa couplings and the relative sign between them. \begin{figure}[t!] \centering \includegraphics[width=2in, height=1.5in]{figure/thjb_f1.pdf} \includegraphics[width=2in, height=1.5in]{figure/thjb_f2.pdf} \caption{\small \label{fig2} Feynman diagrams contributing to $thX$ production with $X=jb$. }\end{figure} \begin{figure}[t!] \centering \includegraphics[width=2.1in]{figure/thW_f1.pdf} \includegraphics[width=2.1in]{figure/thW_f2.pdf} \caption{\small \label{fig3} Feynman diagrams contributing to $thX$ production with $X=W$. }\end{figure} In fact, the process $qg\to thjb$ is a part of the NLO QCD corrections to $qb \to thj$ when the momentum of the final $b$ quark in $thjb$ is integrated out. In our work, using MadGraph5@NLO, we calculate the cross section for the $qg\to thjb$ process at NLO adopting the four-flavor scheme. And then, we define $thj$ and $thjb$ productions by introducing a set of separation cuts: $p_T^j>10$ GeV, $|\eta_j|<5$, $p_T^b>30$ GeV, $|\eta_b|<2.5$. Naturally, the low (high) $p_T^b$ region is taken for $thj$ ($thjb$) production. We obtain $\sigma(thj) = 11.2\,(43.0) $ fb and $\sigma(thjb) = 5.77\,(23.6)$ fb at the LHC with $\sqrt{s}= 8\,(13)$ TeV. We note that the sum $\sigma(thj)+\sigma(thjb)= 17.0\,(66.6)$ fb agrees well with the NLO cross sections found in the literature. As will be shown, the contributions of $thj$ and $thjb$ to the accumulated signal strengths strongly depend on the Higgs decay channels and experiment cuts chosen. In this way, we properly reflect the different kinematic signatures of $thj$ and $thjb$ which could be lost if we do not introduce the separation. On the other hand, since the NLO QCD corrections for both $ pp\to t\overline{t}h $ and $ pp\to thW $ are relatively large compared with $ pp\to thj $, we multiply the corresponding $K$ factors to the LO cross sections for each of them. Without loss of generality, one can write the gauge-Higgs and Yukawa couplings of the Higgs boson $h$ as \footnote{ In this work, we assume that the Higgs boson $h$ is a generic CP-even state which arbitrarily couples to the SM and BSM particles.} \begin{eqnarray} {\cal L}_{hVV} &=& g m_W \left( g_{hWW} W^+_\mu W^{-\mu} + g_{hZZ} \frac{1}{2 c_W^2} Z_\mu Z^\mu \right ) h \,, \label{hvv}\\ {\cal L}_{hff} &=& - \sum_{f = t,b,c,\tau} \, \frac{g m_f}{2 m_W} \, g^S_{hff} \, \bar f \, f \,h \;. \label{hff} \end{eqnarray} Here only the gauge-Higgs coupling $g_{hWW}$ and the top-Yukawa couplings are relevant to the $t\bar t h$ and $thX$ production processes shown in Figs.~\ref{tth}--\ref{fig3}. We note $g_{hWW} = g_{hZZ} = g^S_{hff} = 1$ in the SM. In order to calculate the event rates we have to consider the decay branching ratios of the Higgs boson, which depend on $g_{hWW}$, $g_{hZZ}$, $g^{S}_{htt,hbb}$ and a few more couplings, including $h\tau\tau$, $hcc$, $h\gamma\gamma$, and $hgg$. The amplitude for the decay process $h \rightarrow \gamma\gamma$ can be written as \begin{equation} \label{hipp} {\cal M}_{h\gamma\gamma}=-\frac{\alpha m_{h}^2}{4\pi\,v} \,S^\gamma(m_{h})\, \left(\epsilon^*_{1\perp}\cdot\epsilon^*_{2\perp}\right)\,, \end{equation} where $k_{1,2}$ are the momenta of the two photons and $\epsilon_{1,2}$ the wave vectors of the corresponding photons with $\epsilon^\mu_{1\perp} = \epsilon^\mu_1 - 2k^\mu_1 (k_2 \cdot \epsilon_1) / m^2_{h}$ and $\epsilon^\mu_{2\perp} = \epsilon^\mu_2 - 2k^\mu_2 (k_1 \cdot \epsilon_2) / m^2_{h}$. Retaining only the dominant loop contributions from the third--generation fermions and $W^\pm$, and including some additional loop contributions from new particles, the scalar form factor is given by \begin{eqnarray} \label{eq:hrr} S^\gamma(m_{h})&=&2\sum_{f=b,t,\tau} N_C\, Q_f^2\, g^{S}_{hff}\,F_{sf}(\tau_{f}) - g_{_{hWW}}F_1(\tau_{W}) + \Delta S^\gamma \,, \end{eqnarray} where $\tau_{x}=m_{h}^2/4m_x^2$, $N_C=3$ for quarks and $N_C=1$ for tau leptons, respectively. For the loop functions of $F_{sf,1}(\tau)$, we refer to, for example, Ref.~\cite{Lee:2003nta}. The additional contributions $\Delta S^\gamma$ are due to additional particles running in the loop. In the SM, $g^S_{hff}= g_{hWW}=1$ and $\Delta S^\gamma=0$. Similarly, the amplitude for the decay process $h \rightarrow gg$ can be written as \begin{equation} \label{higg} {\cal M}_{Hgg}=-\frac{\alpha_s\,m_{h}^2\,\delta^{ab}}{4\pi\,v} \, S^g(m_{h}) \, \left(\epsilon^*_{1\perp}\cdot\epsilon^*_{2\perp}\right) \,, \end{equation} where $a$ and $b$ ($a,b=1$ to 8) are indices of the eight $SU(3)$ generators in the adjoint representation. Including some additional loop contributions from new particles, the scalar form factor is given by \begin{eqnarray} S^g(m_{h})&=&\sum_{f=b,t} g^{S}_{hff}\,F_{sf}(\tau_{f}) + \Delta S^g\,. \end{eqnarray} In the SM, $g^S_{hff}=1$ and $\Delta S^g=0$. In the decays of the Higgs boson, we can see that the partial width into $b\bar b$ depends on $g_{hbb}$, that into $WW^*$ and $ZZ^*$ depends on $g_{hWW,hZZ}$, and that into $\gamma\gamma$ and $gg$ depends implicitly on all $g_{hWW}$, $g_{htt}^{S}$, $g_{hbb}^{S}$, and $g_{h\tau\tau}^{S}$. The dependence of the production cross sections and the decay branching ratios on $g_{hWW}$ and $g^{S}_{hff}$ has been explicitly shown in the above equations. Since we are primarily interested in size of the gauge-Higgs and top-Yukawa couplings and the relative sign between them, for bookkeeping purpose, we use the following simplified notations \begin{equation} \label{eq:notation} C_v \equiv g_{hWW}=g_{hZZ}\,, \qquad C^{S}_t \equiv g^{S}_{htt}\,, \qquad C^{S}_b \equiv g^{S}_{hbb}\,. \end{equation} We shall show the anomalous top-Yukawa coupling effects on $t\bar{t}h$ and $thX$ production at the LHC in the next section. \subsection{Signal strengths} First we note that signal strengths depend on the decay modes of the top quark and the Higgs boson, as well as their production mechanisms. For a choice of experimentally-defined decay mode ${\cal D}$, and taking into account the $thX$ production processes, we define the signal strength $\mu(t\bar t h)$ with respect to the SM $t\bar{t}h$ production as follows \begin{equation} \label{mu-tth} \mu(t\bar{t}h)= \frac{ \eta_1\sigma(t\bar{t}h)B(t\bar{t}h\to{\cal D})+ \sum_{X=j,jb,W}\eta_X\sigma(thX)B(thX\to{\cal D})} {\eta_1^{\rm SM}\sigma(t\bar{t}h)_{\rm SM}B(t\bar{t}h\to{\cal D})_{\rm SM}}\,, \end{equation} where $\sigma(t\bar{t}h)=\sigma(pp\to t\bar{t}h)$ and $\sigma(thX)=\sigma(pp\to thX)+\sigma(pp\to \bar{t}hX)$ are understood. The detection efficiencies $\eta$'s depend on the experimental apparatuses and cuts for the specific production and decay mode. By introducing the cross-section ratios \begin{eqnarray} && R(t\bar{t}h)\equiv\frac{\sigma(t\bar{t}h)}{\sigma(t\bar{t}h)_{\rm SM}}\,, \ \ \ R(thj)\equiv\frac{\sigma(thj)}{\sigma(t\bar{t}h)_{\rm SM}}\,, \ \ \ \nonumber \\[2mm] && R(thjb)\equiv\frac{\sigma(thjb)}{\sigma(t\bar{t}h)_{\rm SM}}\,, \ \ \ R(thW)\equiv\frac{\sigma(thW)}{\sigma(t\bar{t}h)_{\rm SM}}\,, \label{R-thX} \end{eqnarray} and the ${\cal D}$-dependent detection-efficiency ratios \begin{eqnarray} && \epsilon_1\equiv\frac{\eta_1B(t\bar{t}h\to{\cal D})} {\eta_1^{\rm SM}B(t\bar{t}h\to{\cal D})_{\rm SM}}\,, \ \ \ \epsilon_2\equiv\frac{\eta_jB(thj\to{\cal D})} {\eta_1^{\rm SM}B(t\bar{t}h\to{\cal D})_{\rm SM}}\,, \ \ \ \nonumber \\[2mm] && \epsilon_3\equiv\frac{\eta_{jb}B(thjb\to{\cal D})} {\eta_1^{\rm SM}B(t\bar{t}h\to{\cal D})_{\rm SM}}\,, \ \ \ \epsilon_4\equiv\frac{\eta_{W}B(thW\to{\cal D})} {\eta_1^{\rm SM}B(t\bar{t}h\to{\cal D})_{\rm SM}}\,, \label{ei} \end{eqnarray} one may have \begin{equation} \mu(t\bar{t}h)= \epsilon_1\,R(t\bar{t}h)+ \epsilon_2\,R(thj)+ \epsilon_3\,R(thjb)+ \epsilon_4\,R(thW)\,. \end{equation} We note that $\epsilon_1=R(t\bar{t}h)=1$ in the SM limit of $C_v=1$ and $C_t^S=+1$ and $\mu(t\bar t h)$ is always larger than $1$ due to the entanglement of $thX$ production. Our main task is to calculate the cross section ratios $R$'s in the presence of anomalous top-Yukawa coupling and the detection-efficiency ratios $\epsilon_{1,2,3,4}$ for various top-quark and Higgs-boson decay modes. \begin{table}[t!] \caption{\small \label{CMS-ATLAS1-table} The best-fit values for the category-dependent signal strengths $\mu_{tth}^{\rm CMS}$ and $\mu_{tth}^{\rm ATLAS}$ coming from the CMS \cite{Khachatryan:2014qaa} and ATLAS \cite{Aad:2015iha}\cite{Aad:2014lma}\cite{Aad:2015gra} searches, respectively, for the associated production of the Higgs boson with a top quark pair at $\sqrt{s}$= 7 and 8 TeV for $ m_{h}=125.6 $ GeV (CMS) / 125 GeV (ATLAS). } \medskip \begin{ruledtabular} \begin{tabular}{lcc} & \multicolumn{1}{c}{CMS $ t\bar{t}h $ channel}& \multicolumn{1}{c}{ATLAS $ t\bar{t}h $ channel} \\ Category & $\mu_{tth}^{\rm CMS}$ & $\mu_{tth}^{\rm ATLAS}$ \\ \hline $ \gamma\gamma $ & $ +2.7\,^{+2.6}_{-1.8} $ & $ +1.3\,^{+3.3}_{-2.1} $\\ $ b\bar{b} $ & $ +0.7\,^{+1.9}_{-1.9} $ & $ +1.5\,^{+1.1}_{-1.1} $ \\ $ \tau_{h}\tau_{h} $ & $ -1.3\,^{+6.3}_{-5.5} $&-- \\ $ 2\ell 1\tau_{h} $ & -- &$ -0.9\,^{+3.1}_{-2.0} $ \\ $ 1\ell 2\tau_{h} $ & -- &$ -9.6\,^{+9.6}_{-9.7} $ \\ $ 4\ell $ & $ -4.7\,^{+5.0}_{-1.3} $& $ +1.8\,^{+6.9}_{-2.0} $ \\ $ 3\ell $ & $ +3.1\,^{+2.4}_{-2.0} $& $ +2.8\,^{+2.2}_{-1.8} $ \\ $ ss2\ell $ & $ +5.3\,^{+2.1}_{-1.8} $ & $ +2.8\,^{+2.1}_{-1.9} $ \\ \end{tabular} \end{ruledtabular} \end{table} \section{$thX$ production with the anomalous top-Yukawa coupling} Both the CMS \cite{Khachatryan:2014qaa} and ATLAS \cite{Aad:2014lma,Aad:2015gra,Aad:2015iha} collaborations have published the results of their searches for the associated production of the Higgs boson with a top-quark pair via different Higgs decay channels at $\sqrt{s}$= 7 and 8 TeV. We summarize their best-fit results in Table~\ref{CMS-ATLAS1-table}. Since the experimental uncertainties in the hadronically-decaying $\tau$ and $4\ell$ categories are too large at this stage, we shall focus only on the $ss2\ell$, $ 3\ell$, $\gamma\gamma$ and $b\bar{b} $ categories in our analysis below. In the $\gamma\gamma$ category for $h\to\gamma\gamma$, both CMS \cite{Khachatryan:2014qaa} and ATLAS \cite{Aad:2014lma} included all the decay modes of a top-quark pair: semileptonic ($t\bar{t}\rightarrow l\nu jjbb $), leptonic ($ t\bar{t}\rightarrow l\nu\l\nu bb $), and hadronic ($ t\bar{t}\rightarrow jjjjbb $) modes. On the other hand, in the $b\bar b$ category for $h\to b \bar b$, both CMS \cite{Khachatryan:2014qaa} and ATLAS \cite{Aad:2015gra} considered only the semileptonic and leptonic decay modes of the top-quark pair. Finally, in the categories of $ss2\ell $ and $ 3\ell $ for $h\rightarrow~{\rm multileptons}$, both CMS \cite{Khachatryan:2014qaa} and ATLAS \cite{Aad:2015iha} included only the semileptonic decay mode of the top-quark pair. In order to perform a detailed study of the influence of $thX$ production with anomalous top-Yukawa coupling on $ t\bar{t}h $ production, we simulate both the $ thX$ and $ t\bar{t}h $ processes and generate events by MadGraph5 \cite{Alwall:2014hca}, perform parton showering and hadronization by Pythia 8.1 \cite{Sjostrand:2007gs}, and employ the detector simulations by Delphes 3 \cite{delphes3}. We use NN23LO1 for parton distribution functions with different renormalization/factorization scales which we shall show below. We follow the selection cuts and detector efficiencies of the CMS \cite{Khachatryan:2014qaa} and ATLAS \cite{Aad:2014lma,Aad:2015gra,Aad:2015iha} $t\bar th$ searches. We summarize the signatures of the search channels used in the $t\bar th$ analysis for CMS in Table~\ref{CMS2-table} and for ATLAS in Table~\ref{ATLAS2-table}. \begin{table}[t!] \caption{\label{CMS2-table} \small The signature of the search channels used in the $tth$ analysis for CMS. } \medskip \begin{ruledtabular} \begin{tabular}{|l|c|c|c|} Category & $ t\overline{t}h $ decay modes & Signature & Background \\ \hline \hline $ h\rightarrow b\overline{b} $ & Semileptonic & 1 $ e/ \mu $, $P_{T} > $ 30 GeV &$t\bar{t} +$ jets\\ & ($ t\overline{t}h\rightarrow l\nu jjbbbb $) & $\geq$ 4 jets + $\geq$ 2b-tags, $P_{T} > $ 30 GeV &$t\bar{t} +W/Z$ \\ \cline{2-3} & Leptonic & 1 $ e/ \mu $, $P_{T} > $ 20 GeV &Single $t$\\ & ($ t\overline{t}h\rightarrow l\nu l\nu bbbb $) & 1 $ e/ \mu $, $P_{T} > $ 10 GeV &$W/Z+$jets\\ & & $\geq$ 3 jets + $\geq$ 2b-tags, $P_{T} > $ 30 GeV&Diboson \\ \hline $ h\rightarrow\gamma\gamma $ & Semileptonic & 2$\gamma$, $ P_{T} > m_{\gamma\gamma}/2 $ (25) GeV for $ 1^{st} $($ 2^{nd} $)&$t\bar{t} +$ jets \\ & ($ t\overline{t}h\rightarrow l\nu jjbb\gamma\gamma $) & { $\geq$ }1 $ e/ \mu $, $P_{T} > $ 20 GeV &$t\bar{t} +W/Z$\\ & Leptonic & $\geq$ 2 jets + $\geq$ 1b-tags, $P_{T} > $ 25 GeV &Single $t$\\ & ($ t\overline{t}h\rightarrow l\nu l\nu bb\gamma\gamma $) & & \\ \cline{2-3} & Hadronic & 2$\gamma$, $ P_{T} > m_{\gamma\gamma}/2 $ (25) GeV for $ 1^{st} $($ 2^{nd} $) & \\ & ($ t\overline{t}h\rightarrow jjjjbb\gamma\gamma $) & 0 $ e/ \mu $, $P_{T} > $ 20 GeV & \\ & & $\geq$ 4 jets + $\geq$ 1b-tags, $P_{T} > $ 25 GeV & \\ \hline \textbf{ $h \rightarrow$ Leptons} & Same-Sign Dilepton & 2 $ e/ \mu $, $P_{T} > $ 20 GeV &$t\bar{t} W$ \\ $ h\rightarrow WW $ & ($ t\overline{t}h\rightarrow l^{\pm}\nu l^{\pm}[\nu]jjj[j]bb $) & $\geq$ 4 jets + $\geq$ 1b-tags, $P_{T} > $ 25 GeV &$t\bar{t} Z/\gamma^*$ \\ \cline{2-3} $ h\rightarrow\tau\tau $ & 3 Leptons & 1 $ e/ \mu $, $P_{T} > $ 20 GeV &$t\bar{t} WW$\\ $ h\rightarrow ZZ $ & ($ t\overline{t}h\rightarrow l\nu l[\nu]l[\nu]j[j]bb $) & 1 $ e/ \mu $, $ P_{T} > $ 10 GeV &$t\bar{t} \gamma$ \\ & & 1 $ e(\mu) $, $ P_{T} > $ 7(5) GeV &$WZ$\\ & & $\geq$ 2 jets + $\geq$ 1b-tags, $P_{T} > $ 25 GeV &$ZZ$\\ \end{tabular} \end{ruledtabular} \end{table} \begin{table}[t!] \caption{\label{ATLAS2-table} \small The signature of the search channels used in the $tth$ analysis for ATLAS. } \medskip \begin{ruledtabular} \begin{tabular}{|l|c|c|c|} Category & $ t\overline{t}h $ decay modes & Signature &Background \\ \hline \hline $ h\rightarrow b\overline{b} $ & Semileptonic & 1 $ e/ \mu $, $P_{T} > $ 25 GeV, $ \bigtriangleup R < $ 0.15&$t\bar{t}+$jets \\ & ($ t\overline{t}h\rightarrow l\nu jjbbbb $) & $\geq$ 4 jets + $\geq$ 2b-tags &$t\bar{t}+V$\\ \cline{2-3} & Leptonic & 1 $ e/ \mu $, $P_{T} > $ 25 GeV & $V+$jets\\ & ($ t\overline{t}h\rightarrow l\nu l\nu bbbb $) & 1 $ e/ \mu $, $P_{T} > $ 15 GeV & ($V=W,Z$)\\ & & $\geq$ 2b-tags & \\ \hline $ h\rightarrow\gamma\gamma $ & Semileptonic & {2$\gamma$, $ E_{T} > 0.35(0.25)\times m_{\gamma\gamma} $ for $ 1^{st} $($ 2^{nd} $) } & \\ & ($ t\overline{t}h\rightarrow l\nu jjbb\gamma\gamma $) & $\geq$ 1 $ e/ \mu $, { $ E_{T}(e) > $ 15 GeV, $P_{T}(\mu) > $ 10 GeV } & \\ & Leptonic & $\geq$ 1 b-tags & \\ & ($ t\overline{t}h\rightarrow l\nu l\nu bb\gamma\gamma $) & & \\ \cline{2-3} & Hadronic & { 2$\gamma$, $ E_{T} > 0.35(0.25)\times m_{\gamma\gamma} $ for $ 1^{st} $($ 2^{nd} $) } & \\ & ($ t\overline{t}h\rightarrow jjjjbb\gamma\gamma $) & { 0 $ e/ \mu $ } & \\ & & { $\geq$ 5 jets + $\geq$ 1 b-tags, $P_{T} > $ 25 GeV } & \\ \hline \textbf{ $h\rightarrow$ Leptons} & Same-Sign Dilepton & (sub)leading lepton : 2 $ e/ \mu $, $P_{T} > $ 25(20) GeV&$t\bar{t}+$jets \\ $ h\rightarrow WW $ & ($ t\overline{t}h\rightarrow l^{\pm}\nu l^{\pm}[\nu]jjj[j]bb $) & $\geq$ 4 jets + $\geq$ 1b-tags, { $P_{T} > $ 25 GeV } &$t\bar{t}+V$\\ \cline{2-3} $ h\rightarrow\tau\tau $ & 3 Leptons & {1 $ e/ \mu $, $P_{T} > $ 25 GeV } & Diboson\\ $ h\rightarrow ZZ $ & ($ t\overline{t}h\rightarrow l\nu l[\nu]l[\nu]j[j]bb $) & {1 $ e/ \mu $, $P_{T} > $ 20 GeV } & \\ & & { 1 $ e/ \mu $, $P_{T} > $ 10 GeV } & \\ & & $\geq$ 4 jets + $\geq$ 1 b-tags, {$P_{T} > $ 25 GeV } & \\ & & (or 3 jets + $\geq$ 2 b-tags, { $P_{T} > $ 25 GeV } ) & \\ \end{tabular} \end{ruledtabular} \end{table} We calculate the $ t\bar{t}h $ production cross section with the factorization ($\mu_{F}$) and renormalization ($\mu_{R}$) scales set at $m_{t}+m_{h}/2 $ in the four-flavor scheme. On the other hand, in computing the production cross sections for $thX$, we include the $t$-channel $thj$ and $thjb$ processes and the $thW$ process, but ignore the $s$-channel $thb$ process due to its much smaller cross section. In calculating the production cross sections for $thj$ and $thjb$, $\mu_F = \mu_R$ are set at $75$ GeV in the four-flavor scheme. For $thW$, we are employing the dynamic factorization and renormalization scales in the five-flavor scheme. As shown in Refs.~\cite{higgcision} in which the model-independent fit to the current Higgs data is performed, the negative $C^S_t = -1$ is ruled at 95\%CL if only the gauge-Higgs coupling $C_v$ and the top-Yukawa coupling $C^S_t$ vary. However, $C^S_t = -1$ is still allowed at 95\%CL when the gauge-Higgs $C_v$, top-Yukawa $C^S_t$, bottom-Yukawa $C^S_b$, and tau-Yukawa $C^S_\tau$ couplings are all allowed to vary. Furthermore, if some sizable contributions to $\Delta S^\gamma$ and $\Delta S^g$ due to additional new particles running in the loop are assumed, a broad range of $C_t^S$ between $-2$ and $+2$ is still consistent with the current Higgs data. In the following, we show the results of our numerical analysis in each of categories of Leptons ($ss2\ell$ and $3\ell$), $\gamma\gamma$, and $b\bar{b}$ for the Higgs boson decaying into multileptons, two photons, and two $b$ quarks, respectively. Note that, in our numerical analysis, we vary the top-Yukawa coupling $C_t^S$ within the range allowed by the current LHC Higgs data while taking the SM value for the gauge-Higgs coupling, $C_v=1$. For the bottom-Yukawa $C^S_b$ and tau-Yukawa $C^S_\tau$ couplings, one may freely take either $+1$ or $-1$ since their signs would have negligible effects on the production cross sections and decay branching ratios. \subsection{Category Leptons for $h \rightarrow$ multileptons} In the category Leptons which includes leptonic decays of $h\rightarrow WW, ZZ, \tau\tau\to $ multileptons, we focus on the subcategories of $ ss2\ell$ and $ 3\ell $ modes. We shall use several different values of $ C^{S}_{t} $ to show the possibly strong entanglement between $thX$ production and $t\bar{t}h $ production for both the ATLAS and CMS analyses. Note that CMS used the so-called Multivariate Analysis (MVA) method in their analysis, however, we only follow their set of preselection cuts and event selection requirements to perform the cut-based analysis. First, we note that the CMS and ATLAS collaborations were adopting different signatures and preselection cuts to analyze the category Leptons as shown in Table~\ref{CMS2-table} and Table~\ref{ATLAS2-table} \footnote{ This is true also for the $\gamma\gamma$ and $b\bar b$ categories.}. The CMS analysis was performed in the $ss2\ell$ and $3\ell$ subcategories while the ATLAS analysis was carried out in the subcategories of $2\ell+4j$, $2\ell+\geq 5j$, and $3\ell$. Without knowing an appropriate way to combine the two sets of data, we present our results handling the CMS and ATLAS cases separately to make full use of the existing data. Further, in the CMS and ATLAS analyses of the $3\ell$ subcategory, also required was a low-mass invariant-mass cut $M_{\ell\ell} > 12$ GeV to remove the $J/\Psi$ background and a $Z$-pole mass veto cut $|M_{\ell^{+}\ell^{-}}-M_Z| > 10$ GeV to suppress the $Z$ background. Some additional cuts on the scalar sum of the transverse momenta ($P_T$) of the two leptons and the missing energy ($E_T^{\rm miss}$) were also applied in the CMS case. To quantify the effects of different values of $C^{S}_{t} $ on $t\bar{t}h$ and $thX$, we use the signal-strength formula for $\mu(t\bar{t}h)$ in Eq.~(\ref{mu-tth}), which consists of the sum of the products of the cross section ratios $R$'s and the ${\cal D}$-dependent detection efficiency ratio $\epsilon$'s, which are in turns given by Eq.~(\ref{R-thX}) and Eq.~(\ref{ei}), respectively. Explicitly, we have \begin{eqnarray} \mu (t\bar{t}h)&=&\frac{\sigma (t\bar{t}h)_{C^{S}_{t}}}{\sigma (t\bar{t}h)_{SM}}\times\epsilon _{1} +\frac{\sigma (thj)_{C^{S}_{t}}}{\sigma (t\bar{t}h)_{SM}}\times\epsilon _{2} +\frac{\sigma (thjb)_{C^{S}_{t}}}{\sigma (t\bar{t}h)_{SM}}\times\epsilon _{3} +\frac{\sigma (thW)_{C^{S}_{t}}}{\sigma (t\bar{t}h)_{SM}}\times\epsilon _{4} \, \nonumber \\[2mm] &=& R(t\bar{t}h)\times\epsilon _{1}+R(thj)\times\epsilon _{2}+R(thjb)\times\epsilon _{3}+R(thW)\times\epsilon _{4} \,. \label{mu} \end{eqnarray} \begin{table}[t!] \caption{\small \label{R(thx)} The cross-section ratios $R(t\bar t h)$ and $R(thX)$ with $X=j,jb,W$ defined in Eq.~(\ref{R-thX}). We are taking $\sqrt{s}=8$ TeV (LHC-8) and $C_t^S = \pm 1\,, \pm 1.5$. } \medskip \begin{ruledtabular} \begin{tabular}{lcccc} LHC-8 & $C^{S}_{t}=1$ & $C^{S}_{t}=-1$ & $C^{S}_{t}=1.5$ & $C^{S}_{t}=-1.5$ \\ \hline Cross Section of $t\bar{t} h$(pb) &0.13&\\%0.13&0.30&0.30\\ $ R(t\bar{t}h) $ & 1 & 1 &2.25 &2.25 \\ $ R(thj) $ & 8.36e-2 & 1.08 & 0.15 & 1.66 \\ $ R(thjb) $ & 4.30e-2 & 0.54 & 8.56e-2 & 0.84 \\ $ R(thW) $ & 3.21e-2&0.19 &7.05e-2 &0.31 \\ \end{tabular} \end{ruledtabular} \end{table} In Table~\ref{R(thx)}, we show the cross section ratios $R(t\bar t h)$ and $R(thX)$ with $X=j,jb,W$ at the 8 TeV LHC (LHC-8) taking $C_t^S = \pm 1$ and $\pm 1.5$. Note $R(t\bar t h)=1\,(2.25)$ for $|C_t^S| = 1\,(1.5)$ and the $thX$ cross sections can be largely enhanced for the negative values of $C_t^S$. In Table~\ref{sum1-CMS}, we show the ${\cal D}$-dependent detection efficiency ratios $\epsilon_{1,2,3,4}$ with the CMS cuts in the $ss2\ell$ (upper) and $3\ell$ (lower) subcategories for $C_t^S = \pm 1\,,\pm 1.5$. By using the cross section ratios given in Table~\ref{R(thx)}, one can obtain the CMS $t\bar t h$ signal strengths $\mu_{tth}^{\rm CMS}$. We observe that $\mu_{tth\,,ss2\ell}^{\rm CMS} \sim 2\,(3)$ for $C_t^S =1.5\,(-1.5)$ and the signal strengths are larger for the negative values of $C_t^S$. One may make similar observations for $\mu_{tth\,,3\ell}^{\rm CMS}$. Recently, the CMS collaboration has also reported a possible excess in the decay process $h\rightarrow\tau^{\mp}\mu^{\pm}$, $B(h\rightarrow\tau^{\mp}\mu^{\pm})=0.84\,^{+0.39}_{-0.37}\%$, with a significance of $ 2.4\sigma$ in the search for the lepton-flavor violation (LFV)\cite{Khachatryan:2015kon}. If we take into account this LFV decay of the Higgs boson, we can slightly enhance the production rate of $h \rightarrow$ multileptons mode by a few percents. We estimate the $h\rightarrow \tau^\mp\mu^\pm$ contribution by rescaling $h\rightarrow \tau^+\tau^-$ channel with the branching ratios and the $\tau$ detection efficiency. The CMS $t\bar t h$ signal strengths $\mu_{tth}^{\rm CMS}$ after taking account of $h\rightarrow\tau^{\mp}\mu^{\pm}$ are also presented in Table~\ref{sum1-CMS}. \begin{table}[t!] \caption{\small \label{sum1-CMS} Category Leptons: The ${\cal D}$-dependent detection efficiency ratios $\epsilon_i$'s defined in Eq.~(\ref{ei}) with the CMS cuts for the category Leptons taking $C_t^S=\pm1\,,\pm 1.5$ and $\sqrt{s} = 8$ TeV. The resulting signal strengths $\mu_{tth\,,ss2\ell}^{\rm CMS}$ and $\mu_{tth\,,3\ell}^{\rm CMS}$ are also shown. The last row in each partition shows the values of $\mu_{tth\,,ss2\ell}^{\rm CMS}$ and $\mu_{tth\,,3\ell}^{\rm CMS}$ including the contributions from $h \to \mu^\pm \tau^\mp$. } \medskip \begin{ruledtabular} \begin{tabular}{lcccc} LHC-8 & \multicolumn{4}{c}{With CMS Analysis Cuts} \\ \hline & $C^{S}_{t}=1$ & $C^{S}_{t}=-1$ & $C^{S}_{t}=1.5$ & $C^{S}_{t}=-1.5$ \\ \hline & \multicolumn{4}{c}{The category of $ ss2\ell $} \\ \hline Efficiency of $t\bar{t} h$ &9.02e-4&\\%8.53e-4&8.87e-4&8.78e-4\\ $ \epsilon _{1} $ & 1 & 0.95 & 0.98&0.97 \\ $ \epsilon _{2} $ &0.1 &0.12 &0.12 &0.13 \\ $ \epsilon _{3} $ &0.35 &0.38 &0.33 &0.39 \\ $ \epsilon _{4} $ & 0.68& 0.85& 0.72&0.83 \\ $\mu_{tth\,,ss2\ell}^{\rm CMS}$ &1.05 &1.45 &2.31 &2.99 \\ $\mu_{tth\,,ss2\ell}^{\rm CMS}$ including $h\rightarrow \tau^\mp \mu^\pm$ &1.09&1.51 &2.40 &3.11 \\ \hline\hline & \multicolumn{4}{c}{The category of $ 3\ell $} \\ \hline Efficiency of $t\bar{t} h$ &9.54e-4&\\%9.05e-4&9.52e-4&9.25e-4\\ $ \epsilon _{1} $ & 1 & 0.95 & 1&0.97 \\ $ \epsilon _{2} $ & 0.34& 0.40& 0.37& 0.42\\ $ \epsilon _{3} $ &0.55&0.61 & 0.57&0.65 \\ $ \epsilon _{4} $ & 0.90& 1.14& 0.98&1.13 \\ $\mu_{tth\,,3\ell}^{\rm CMS}$ &1.08&1.93 &2.42 &3.77 \\ $\mu_{tth\,,3\ell}^{\rm CMS}$ including $h\rightarrow \tau^\mp \mu^\pm$ &1.12&2.01 &2.51 &3.92\\ \end{tabular} \end{ruledtabular} \end{table} Similarly, we calculate the ${\cal D}$-dependent detection efficiency ratios $\epsilon_{1,2,3,4}$ with the ATLAS cuts in the $2\ell+4j$ (upper), $2\ell+\geq 5j$ (middle), and $3\ell$ (lower) subcategories for several values of $C_t^S$ and present them in Table~\ref{sum1.1-ATLAS}, together with the ATLAS $t\bar t h$ signal strengths $\mu_{tth}^{\rm ATLAS}$. Similar observations can be made as in the CMS case. \begin{table}[t!] \caption{\small \label{sum1.1-ATLAS} Category Leptons: The same as Table~\ref{sum1-CMS} but with the ATLAS cuts. } \medskip \begin{ruledtabular} \begin{tabular}{lcccc} LHC-8& \multicolumn{4}{c}{With ATLAS Analysis Cuts} \\ \hline & $C^{S}_{t}=1$ & $C^{S}_{t}=-1$ & $C^{S}_{t}=1.5$ & $C^{S}_{t}=-1.5$ \\ \hline & \multicolumn{4}{c}{The category of $ 2\ell+4j $} \\ \hline Efficiency of $t\bar{t} h$ &4.27e-4&\\%4.49e-4&4.10e-4&4.28e-4\\ $ \epsilon _{1} $ &1&1.05&0.96&1.0\\ $ \epsilon _{2} $ &0.31&0.31&0.32&0.38 \\ $ \epsilon _{3} $ &0.52&0.63&0.53&0.57 \\ $ \epsilon _{4} $ & 1.10&1.16&1.09&1.18 \\ $\mu_{tth\,,2\ell+4j}^{\rm ATLAS}$ & 1.08&1.96&2.33&3.72\\ $\mu_{tth\,,2\ell+4j}^{\rm ATLAS}$ including $h\rightarrow \tau^\mp \mu^\pm$ &1.13&2.03 &2.42 &3.86 \\ \hline & \multicolumn{4}{c}{The category of $ 2\ell+\geq 5j $} \\ \hline Efficiency of $t\bar{t} h$ &5.25e-4&\\%4.84e-4&4.78e-4&4.86e-4\\ $ \epsilon _{1} $ & 1&0.92&0.91&0.93\\ $ \epsilon _{2} $ & 0.08&0.08&0.09&0.09 \\ $ \epsilon _{3} $ &0.25&0.28&0.22&0.26 \\ $ \epsilon _{4} $ & 0.74&0.94&0.75&0.95\\ $\mu_{tth\,,2\ell+\geq 5j}^{\rm ATLAS}$ &1.04&1.35&2.13&2.74 \\ $\mu_{tth\,,2\ell+\geq 5j}^{\rm ATLAS}$ including $h\rightarrow \tau^\mp \mu^\pm$ &1.08&1.40 &2.22 &2.85 \\ \hline & \multicolumn{4}{c}{The category of $ 3\ell $} \\ \hline Efficiency of $t\bar{t} h$ &1.05e-4&\\%9.39e-5&8.72e-5&9.49e-5\\ $ \epsilon _{1} $ &1&0.89&0.83&0.90 \\ $ \epsilon _{2} $ &0.06&0.09&0.13&0.09 \\ $ \epsilon _{3} $ & 0.34&0.45&0.30&0.47\\ $ \epsilon _{4} $ & 0.89&1.5&0.92&1.61\\ $\mu_{tth\,,3\ell}^{\rm ATLAS}$ & 1.05&1.52&1.97&3.07\\ $\mu_{tth\,,3\ell}^{\rm ATLAS}$ including $h\rightarrow \tau^\mp \mu^\pm$ &1.09&1.58 &2.05 &3.19 \\ \end{tabular} \end{ruledtabular} \end{table} Finally, we show in Fig.~\ref{sum-1-atlas-cms} the accumulative signal strengths $\mu_{tth\,,ss2\ell}^{\rm ATLAS}$ (upper left), $\mu_{tth\,,3\ell}^{\rm ATLAS}$ (upper right), $\mu_{tth\,,ss2\ell}^{\rm CMS}$ (lower left), and $\mu_{tth\,,3\ell}^{\rm CMS}$ (lower right) at $\sqrt{s}=8$ TeV by stacking the various $thX$ contributions on the $t\bar t h$ one for $C_t^S=+1\,,-1\,,+1.5\,,-1.5$ from left to right. The grey columns in the center without $C_t^S$ value represent the current 8 TeV LHC data, see Table~\ref{CMS-ATLAS1-table}. The ATLAS $ss2\ell$ signal strength $\mu_{tth\,,ss2\ell}^{\rm ATLAS}$ is obtained by counting the event rates by combining the $2\ell+4j$ and $2\ell+\geq 5j$ selections. \begin{figure}[t!] \centering \includegraphics[width=3.in]{figure/2l_atlas.png} \includegraphics[width=3.in]{figure/3l_atlas.png} \includegraphics[width=3.in]{figure/2l_cms.png} \includegraphics[width=3.in]{figure/3l_cms.png} \caption{\small \label{sum-1-atlas-cms} Category Leptons: Accumulated signal strengths $\mu_{tth\,,ss2\ell}^{\rm ATLAS}$ (upper left), $\mu_{tth\,,3\ell}^{\rm ATLAS}$ (upper right), $\mu_{tth\,,ss2\ell}^{\rm CMS}$ (lower left), and $\mu_{tth\,,3\ell}^{\rm CMS}$ (lower right) at LHC-8 obtained by stacking the various $thX$ contributions on the $t\bar t h$ one for $C_t^S=+1\,,-1\,,+1.5\,,-1.5$ from left to right. The grey columns in the center represent the current 8 TeV LHC data from Table~\ref{CMS-ATLAS1-table}. } \end{figure} \begin{table}[th!] \caption{\small \label{sumrr-CMS} Category $\gamma\gamma$: The ${\cal D}$-dependent detection efficiency ratios $\epsilon_i$'s defined in Eq.~(\ref{ei}) with the CMS cuts for the category $\gamma\gamma$ taking $C_t^S=\pm 1\,,\pm 1.5$ and $\sqrt{s} = 8$ TeV. The resulting signal strengths $\mu_{tth\,,\gamma\gamma (lep)}^{\rm CMS}$ and $\mu_{tth\,,\gamma\gamma (had)}^{\rm CMS}$ are also shown. Note that the CMS cuts $N(j)\ge4, N(b)\ge 1$ for $\gamma\gamma$ hadronic channel are not strong enough to separate $t\bar{t} h$ from $thX$ processes. } \medskip \begin{ruledtabular} \begin{tabular}{lcccc} LHC-8& \multicolumn{4}{c}{With CMS Analysis Cuts} \\ \hline & $C^{S}_{t}=1$ & $C^{S}_{t}=-1$ & $C^{S}_{t}=1.5$ & $C^{S}_{t}=-1.5$ \\ \hline & \multicolumn{4}{c}{Leptonic Selection} \\ \hline Efficiency of $t\bar{t} h$ &1.13e-5&\\%2.16e-5&7.55e-6&2.61e-5\\ $ \epsilon _{1} $ &1&{0.81}&{0.99}&{0.92}\\ $ \epsilon _{2} $ &0.03&{0.02}&{0.01}&{0.02} \\ $ \epsilon _{3} $ &0.11&{0.10}&{0.08}&{0.10} \\ $ \epsilon _{4} $ & 0.57&{0.86}&{0.83}&{0.76} \\ $\mu_{tth\,,\gamma\gamma (lep)}^{\rm CMS}$ & 1.03&1.05&2.29&2.42\\ \hline & \multicolumn{4}{c}{Hadronic Selection}\\ \hline Efficiency of $t\bar{t} h$ &1.47e-4&\\%3.43e-4&1.03e-4&3.57e-4\\ $ \epsilon _{1} $ &1&{0.99}&{1.05}&{0.97}\\ $ \epsilon _{2} $ &0.44&{0.47}&{0.43}&{0.50} \\ $ \epsilon _{3} $ &1.40&{1.62}&{1.47}&{1.58}\\ $ \epsilon _{4} $ & 0.52&{0.65}&{0.54}&{0.68} \\ $\mu_{tth\,,\gamma\gamma (had)}^{\rm CMS}$ & 1.11&2.50&2.59&4.56\\ \hline\hline Combined $\mu_{tth\,,\gamma\gamma}^{\rm CMS}$ &1.11&2.40&2.57&4.41\\ \end{tabular} \end{ruledtabular} \end{table} \begin{table}[t!] \caption{\small \label{sumrr-ATLAS} Category $\gamma\gamma$: The same as Table~\ref{sumrr-CMS} with the ATLAS cuts. } \medskip \begin{ruledtabular} \begin{tabular}{lcccc} LHC-8& \multicolumn{4}{c}{With ATLAS Analysis Cuts} \\ \hline & $C^{S}_{t}=1$ & $C^{S}_{t}=-1$ & $C^{S}_{t}=1.5$ & $C^{S}_{t}=-1.5$ \\ \hline & \multicolumn{4}{c}{Leptonic Selection } \\ \hline Efficiency of $t\bar{t} h$ &8.15e-6&\\%1.34e-5&5.26e-6&2.44e-5\\ $ \epsilon _{1} $ &1.00&{0.69}&{0.96}&{1.19}\\ $ \epsilon _{2} $ &0.03&{0.08}&{0.11}&{0.06}\\ $ \epsilon _{3} $ &0.14&{0.11}&{0.06}&{0.11} \\ $ \epsilon _{4} $ & 0.82&{0.74}&{1.06}&{0.43} \\ $\mu_{tth\,,\gamma\gamma (lep)}^{\rm ATLAS}$ & 1.03&0.99&2.25&3.01\\ \hline & \multicolumn{4}{c}{Hadronic Selection } \\ \hline Efficiency of $t\bar{t} h$ &1.06e-4&\\%2.52e-4&7.34e-5&2.61e-4\\ $ \epsilon _{1} $ &1&{1.01}&{1.03}&{0.98}\\ $ \epsilon _{2} $ &0.05&{0.05}&{0.05}&{0.07} \\ $ \epsilon _{3} $ &0.39&{0.46}&{0.44}&{0.46} \\ $ \epsilon _{4} $ & 0.39&{0.49}&{0.38}&{0.48} \\ $\mu_{tth\,,\gamma\gamma (had)}^{\rm ATLAS}$ & 1.03&1.40&2.39&2.85\\ \hline\hline Combined $\mu_{tth\,,\gamma\gamma}^{\rm ATLAS}$ &1.03&1.37&2.38&2.86\\ \end{tabular} \end{ruledtabular} \end{table} \subsection{ Category $\gamma\gamma$ for $h \rightarrow$ $\gamma\gamma$} In the category $\gamma\gamma$ for $h \rightarrow$ $\gamma\gamma$, we include all the decay modes of the top-quark pair. We consider two subcategories of {\it leptonic selection} and {\it hadronic selection}. The lepton-selection subcategory is for the semileptonically and leptonically decaying top-quark pair while the hadronic-selection one for the hadronically decaying top-quark pair. To single out the effect of anomalous top-Yukawa coupling on $thj$ and $tth$ production in this category, we assume a non-vanishing $\Delta S^\gamma$ due to additional particles running in the $h$-$\gamma$-$\gamma$ loop, see Eq.~(\ref{eq:hrr}). In fact, one may have $B(h\rightarrow \gamma\gamma) = (2.3, 5.4, 1.53, 5.68)\times 10^{-3}$ for $C^S_t=(1,\ -1,\ 1.5,\ -1.5)$ using, for example, {\tt HDECAY} \cite{hdecay}. We are using $B(h\rightarrow \gamma\gamma) = 2.3\times 10^{-3}$ independently of $C_t^S$ assuming a non-zero $\Delta S^\gamma$ which cancels out the the effect of anomalous top-Yukawa coupling on $B(h\rightarrow \gamma\gamma)$. This assumption also helps to avoid the constraint on $S^\gamma(m_h)$ from the current LHC Higgs data~\cite{higgcision}. To repeat the CMS analysis, we follow their selection cuts listed in Table~\ref{CMS2-table}, which are used in the cut-based analysis \cite{Khachatryan:2014qaa}. Also, we further impose the Higgs-mass window cut: $100\,{\rm GeV} \leq m_{\gamma\gamma}\leq 180$ GeV. For the ATLAS analysis, we follow Ref.~\cite{Aad:2014lma} with preselection cuts listed in Table~\ref{ATLAS2-table}. We further impose the Higgs-mass window cut ($105 \,{\rm GeV} < m_{\gamma\gamma} < 160\,{\rm GeV}$) and the $\Delta R$ cuts: $\Delta R_{l\gamma} > 0.4$, $\Delta R_{j\gamma} > 0.4$, $\Delta R_{j\mu} > 0.4$, $\Delta R_{j e} > 0.2$. The missing energy cut $E_T^{miss}>20$ GeV and the $e \gamma$ invariant-mass cut $M_{e\gamma}> 94 \, {\rm GeV}$ or $ < 84\, {\rm GeV}$ are also applied in the leptonic-selection category. In the hadronic-selection subcategory, we adopt the selection 1 in Ref.~\cite{Aad:2014lma} using the working point with efficiency of $70\%$ for identifying $b$-jets. \begin{figure}[t!] \centering \includegraphics[width=3in]{figure/rr_atlas.png} \includegraphics[width=3in]{figure/rr_cms.png} \caption{\small \label{sum-rr-atlas-cms} Category $\gamma\gamma$: Accumulated signal strengths $\mu_{tth\,,\gamma\gamma}^{\rm ATLAS}$ (left) and $\mu_{tth\,,\gamma\gamma}^{\rm CMS}$ (lower right) at LHC-8 obtained by stacking the various $thX$ contributions on the $t\bar t h$ one for $C_t^S=+1\,,-1\,,+1.5\,,-1.5$ from left to right. The grey columns in the center represent the current 8 TeV LHC data from Table~\ref{CMS-ATLAS1-table}.} \end{figure} Before we present the results of our numerical study of the effects of $thX$ on $t\bar{t}h$ in the category $\gamma\gamma$, we would like to make some remarks on a few noticeable aspects from the ATLAS $t\bar th$ search. It has been shown that there was no significant excess over the background in the $h \to \gamma\gamma $ mode, and thus the 95\% CL upper limit is set at $6.7 \times \sigma_{\rm SM}(t\bar{t}h)$. Especially, ATLAS took into account the dependence of the $t\bar{t}h$ and $thX$ cross sections as well as the branching ratio $B(h \rightarrow\gamma\gamma)$ on the top-Yukawa coupling. The ATLAS $t\bar th$ search sets the lower and upper limits on $C_t^S$: $-1.3\leq C_t^S \leq 8.0$ at 95\% CL. In Table~\ref{sumrr-CMS}, we show the ${\cal D}$-dependent detection efficiency ratios $\epsilon_{1,2,3,4}$ with the CMS cuts in the hadronic-selection (upper) and leptonic-selection (lower) subcategories for $C_t^S = \pm 1\,, \pm 1.5$. By using the cross section ratios given in Table~\ref{R(thx)}, one can obtain the CMS $t\bar t h$ signal strengths $\mu_{tth\,,\gamma\gamma (lep)}^{\rm CMS}$ and $\mu_{tth\,,\gamma\gamma (had)}^{\rm CMS}$ using Eq.~(\ref{mu}). In the leptonic-selection subcategory, we observe that $\mu_{tth\,,\gamma\gamma (lep)}^{\rm CMS}>2$ for $|C_t^S| =1.5$. In the hadronic-selection subcategory, we obtain the larger values for negative $C_t^S$: $\mu_{tth\,,\gamma\gamma (had)}^{\rm CMS}\sim 1,\ 2.5;\ 2.5 ,\ 5$ for $C^S_t=(+1,\ -1;\ +1.5\ -1.5)$. Also presented is the combined signal strength $\mu_{tth\,,\gamma\gamma}^{\rm CMS}$ which is obtained by counting the event rates by combining the hadronic and leptonic selections. Similarly, in Table~\ref{sumrr-ATLAS}, we show the ${\cal D}$-dependent detection efficiency ratios $\epsilon_{1,2,3,4}$ with the ATLAS cuts and the signal strengths $\mu_{tth\,,\gamma\gamma (lep)}^{\rm ATLAS}$, $\mu_{tth\,,\gamma\gamma (had)}^{\rm ATLAS}$, and $\mu_{tth\,,\gamma\gamma}^{\rm ATLAS}$. Similar observations can be made as in the CMS case. Finally, in Fig.~\ref{sum-rr-atlas-cms}, we show the accumulative combined signal strengths $\mu_{tth\,,\gamma\gamma}^{\rm ATLAS}$ (left) and $\mu_{tth\,,\gamma\gamma}^{\rm CMS}$ (right) at $\sqrt{s}=8$ TeV by stacking the various $thX$ contributions on the $t\bar t h$ one for $C_t^S=+1\,,-1\,,+1.5\,,-1.5$ from left to right. The grey columns in the center without $C_t^S$ value represent the current 8 TeV LHC data, see Table~\ref{CMS-ATLAS1-table}. \begin{table}[t!] \caption{\small \label{sumbb-CMS} Category $b\bar b$: The ${\cal D}$-dependent detection efficiency ratios $\epsilon_i$'s defined in Eq.~(\ref{ei}) with the CMS cuts for the category $b\bar b$ taking $C_t^S=\pm 1\,,\pm 1.5$ and $\sqrt{s} = 8$ TeV. The resulting signal strengths $\mu_{tth\,,b\bar b (1\ell)}^{\rm CMS}$ and $\mu_{tth\,,b\bar b (2\ell)}^{\rm CMS}$ and the combined one $\mu_{tth\,,b\bar b}^{\rm CMS}$ are also shown. } \medskip \begin{ruledtabular} \begin{tabular}{lcccc} LHC-8& \multicolumn{4}{c}{With CMS Analysis Cuts} \\ \hline & $C^{S}_{t}=1$ & $C^{S}_{t}=-1$ & $C^{S}_{t}=1.5$ & $C^{S}_{t}=-1.5$ \\ \hline & \multicolumn{4}{c}{Single Lepton } \\ \hline Efficiency of $t\bar{t} h$ & 1.17e-1&\\% 1.17e-1& 1.15e-1& 1.16e-1\\ $ \epsilon _{1} $ &1&1&0.98&1\\ $ \epsilon _{2} $ &0.39&0.42&0.38&0.41 \\ $ \epsilon _{3} $ & 0.67&0.69&0.69&0.70\\ $ \epsilon _{4} $ & 0.81&0.89&0.82&0.89\\ $\mu_{tth\,,b\bar b (1\ell)}^{\rm CMS}$ & 1.09&2.01&2.38&3.79\\ \hline & \multicolumn{4}{c}{Dilepton } \\ \hline Efficiency of $t\bar{t} h$ &2.03e-2&\\%2.22e-2&2.11e-2&2.02e-2\\ $ \epsilon _{1} $ &1&1.09&1.04&0.99\\ $ \epsilon _{2} $ &0.14&0.18&0.17&0.17 \\ $ \epsilon _{3} $ & 0.33&0.37&0.33&0.36\\ $ \epsilon _{4} $ & 0.73&0.87&0.77&0.80 \\ $\mu_{tth\,,b\bar b (2\ell)}^{\rm CMS}$ &1.05&1.66&2.45&3.05 \\ \hline\hline Combined $\mu_{tth\,,b\bar b}^{\rm CMS}$ &1.08&1.96&2.39&3.68\\ \end{tabular} \end{ruledtabular} \end{table} \begin{table}[t!] \caption{\small \label{sumbb-ATLAS} Category $b\bar b$: The same as Table~\ref{sumbb-CMS} but with the ATLAS cuts. } \medskip \begin{ruledtabular} \begin{tabular}{lcccc} LHC-8& \multicolumn{4}{c}{With ATLAS Analysis Cuts} \\ \hline & $C^{S}_{t}=1$ & $C^{S}_{t}=-1$ & $C^{S}_{t}=1.5$ & $C^{S}_{t}=-1.5$ \\ \hline & \multicolumn{4}{c}{Single Lepton } \\ \hline Efficiency of $t\bar{t} h$ & 1.19e-1&\\% 1.21e-1& 1.18e-1& 1.18e-1\\ $ \epsilon _{1} $ &1&1.01&0.99&0.99\\ $ \epsilon _{2} $ &0.36&0.40&0.40&0.42 \\ $ \epsilon _{3} $ & 0.66&0.68&0.69&0.69\\ $ \epsilon _{4} $ & 0.78&0.88&0.80&0.88\\ $\mu_{tth\,,b\bar b (1\ell)}^{\rm ATLAS}$ & 1.08&1.98&2.40&3.78\\ \hline & \multicolumn{4}{c}{Dilepton } \\ \hline Efficiency of $t\bar{t} h$ &1.57e-2&\\%1.61e-2&1.68e-2&1.49e-2\\ $ \epsilon _{1} $ &1&1.02&1.07&0.95\\ $ \epsilon _{2} $ &0.07&0.08&0.06&0.08 \\ $ \epsilon _{3} $ & 0.11&0.13&0.11&0.11\\ $ \epsilon _{4} $ & 0.86&0.86&0.86&0.86 \\ $\mu_{tth\,,b\bar b (2\ell)}^{\rm ATLAS}$ &1.04&1.35&2.50&2.63 \\ \hline\hline Combined $\mu_{tth\,,b\bar b}^{\rm ATLAS}$ &1.08&1.91&2.41&3.64\\ \end{tabular} \end{ruledtabular} \end{table} \subsection{Category $b\bar b$ for $h \rightarrow$ $b\bar{b}$} In the category $b\bar b$ for $h \rightarrow$ $b\bar{b}$, we consider the semileptonic and leptonic decay modes of the top-quark pair which leads to the two subcategories of {\it single lepton} ($1\ell$) and {\it dilepton} ($2\ell$). The CMS preselection cuts shown in Table~\ref{CMS2-table} and the ATLAS ones in Table~\ref{ATLAS2-table} are first applied. And we further impose $P_{T_j}> 40$ GeV for the leading 3 jets in the single-lepton subcategory. In the dilepton subcategory, we select the events with exactly two oppositely charged leptons $e^+ e^- , e^\pm \mu^\mp, \mu^+\mu^-$ with $P_{T_{l_1}} > 25$ GeV and $P_{T_{l_2}} > 15$ GeV. For $e^\pm\mu^\mp$ events, we further require $H_T$, scalar sum of transverse momenta of leptons and jets, to be larger than $130$ GeV. For $e^+ e^-$ and $\mu^+ \mu^-$ events, we impose two more conditions: {\it (i)} more than 2 $b$-jets and $M_{ll}>15$ GeV to reduce the $J/\Psi $ background and {\it (ii)} exactly 2 $b$-jets, $M_{ll}>60$ GeV to remove the events in the low-mass region with large error bars, and $|M_{ll}-M_Z|>8$ GeV to veto the $Z$ background. We then combine these selections to complete the dilepton selection. In Table~\ref{sumbb-CMS}, we show the ${\cal D}$-dependent detection efficiency ratios $\epsilon_{1,2,3,4}$ with the CMS cuts in the single-lepton (upper) and dilepton (lower) subcategories for $C_t^S = \pm 1\,, \pm 1.5$. By using the cross section ratios given in Table~\ref{R(thx)}, one can obtain the CMS $t\bar t h$ signal strengths $\mu_{tth\,,b\bar b (1\ell)}^{\rm CMS}$ and $\mu_{tth\,,b\bar b (2\ell)}^{\rm CMS}$ using Eq.~(\ref{mu}). We observe that $\mu_{tth\,,b\bar b (1\ell)}^{\rm CMS}>2$ for $C_t^S=-1\,,\pm 1.5$ and $\mu_{tth\,,b\bar b (2\ell)}^{\rm CMS}>2$ for $C_t^S=\pm 1.5$. The combined signal strength $\mu_{tth\,,b\bar b}^{\rm CMS}\:\raisebox{-0.5ex}{$\stackrel{\textstyle>}{\sim}$}\: 2$ for $C_t^S =-1\,,\pm 1.5$. Similarly, in Table~\ref{sumbb-ATLAS}, we show the ${\cal D}$-dependent detection efficiency ratios $\epsilon_{1,2,3,4}$ with the ATLAS cuts and the signal strengths $\mu_{tth\,,b\bar b (1\ell)}^{\rm ATLAS}$, $\mu_{tth\,,b\bar b (2\ell)}^{\rm ATLAS}$, and $\mu_{tth\,,b\bar b}^{\rm ATLAS}$. Similar observations can be made as in the CMS case. Finally, we show in Fig.~\ref{sum-bb-atlas-cms} the accumulative combined signal strengths $\mu_{tth\,,b\bar b}^{\rm ATLAS}$ (left) and $\mu_{tth\,,\bar b}^{\rm CMS}$ (right) at $\sqrt{s}=8$ TeV by stacking the various $thX$ contributions on the $t\bar t h$ one for $C_t^S=+1\,,-1\,,+1.5\,,-1.5$ from left to right. The grey columns in the center without $C_t^S$ value represent the current 8 TeV LHC data, see Table~\ref{CMS-ATLAS1-table}. \begin{figure}[t!] \centering \includegraphics[width=3in]{figure/bb_atlas.png} \includegraphics[width=3in]{figure/bb_cms.png} \caption{\small \label{sum-bb-atlas-cms} Category $b\bar b$: Accumulated signal strengths $\mu_{tth\,,b\bar b}^{\rm ATLAS}$ (left) and $\mu_{tth\,,b\bar b}^{\rm CMS}$ (lower right) at LHC-8 obtained by stacking the various $thX$ contributions on the $t\bar t h$ one for $C_t^S=+1\,,-1\,,+1.5\,,-1.5$ from left to right. The grey columns in the center represent the current 8 TeV LHC data from Table~\ref{CMS-ATLAS1-table}. } \end{figure} Before closing this section, we would like to make a comment on the 13 TeV data on $\mu_{tth}$. With $13.3$ fb$^{-1}$ at 13 TeV, ATLAS gives~\cite{atlas-tth-13}: $$ \mu^{\rm ATLAS}_{tth,multileptons}=2.5^{+1.3}_{-1.1}\,; \ \ \ \mu^{\rm ATLAS}_{tth,\gamma\gamma}=-0.3^{+1.2}_{-1.0}\,; \ \ \ \mu^{\rm ATLAS}_{tth,bb}=2.1^{+1.0}_{-0.9} $$ leading to the combined value of $\mu^{\rm ATLAS}_{tth,combined}=1.8^{+0.7}_{-0.7}$. While, with $12.9$ fb$^{-1}$ at 13 TeV, CMS gives~\cite{cms-tth-13}: $$ \mu^{\rm CMS}_{tth,multileptons}=2.3^{+0.9}_{-0.8}\,; \ \ \ \mu^{\rm CMS}_{tth,\gamma\gamma(lep)}=1.15^{+2.0}_{-1.4}\,, \ \ \ \mu^{\rm CMS}_{tth,\gamma\gamma(had)}=2.10^{+1.6}_{-1.2}\,; \ \ \ \mu^{\rm CMS}_{tth,bb}=-0.19^{+0.80}_{-0.81}\,. $$ We observe that both ATLAS and CMS collaborations again reported the excesses with a significance of about $2\sigma$ in the Higgs decay modes into multileptons. On the other hand, only CMS (ATLAS) is reporting a significance of about $2\sigma$ in the $\gamma\gamma$ ($bb$) mode. Taking a closer look into the $\gamma\gamma$ mode, we find that our $\gamma\gamma$ results show good agreement with the CMS data, see Table~\ref{sumrr-CMS}. Though the errors are still large, it is interesting to note that our results $\mu_{tth,\gamma\gamma (lep)}^{\rm CMS}=1.05$ and $\mu_{tth,\gamma\gamma (had)}^{\rm CMS}=2.50$ for $C_t^S=-1$ reproduces the 13-TeV CMS central values. While, our combined ATLAS results $1.03,\ 1.37,\ 2.38$ for $C^S_t=(1,\ -1,\ 1.5)$, see Table~\ref{sumrr-ATLAS}, are in tension with the ATLAS 13 TeV data. On the other hand, in the $b\bar{b}$ channel, our results are compatible with the 13 TeV data only in the ATLAS case. \section{Disentangling $thX$ from $t\bar th$ } In this section, we show kinematic distributions for the $t\bar{t} h$ and for $thX$ processes in the presence of anomalous top-Yukawa coupling in an attempt to disentangle $thX$ production from $t\bar{t} h$ one using specific selection cuts. We focus on the $h\rightarrow \gamma\gamma$ channel at the LHC with $\sqrt{s}=13$ TeV (LHC-13) adopting the Delphes ATLAS fast detector simulation. We closely follow the analysis in a previous work \cite{Chang:2014rfa}. Here we use the $thj$ process for illustration while the other $thX$ processes have similar features. \subsection{LHC-13} In Table~\ref{R(thx13)}, we show the cross sections ratios $R(t\bar t h)$ and $R(thX)$ with $X=j,jb,W$ at the 13 TeV LHC taking $C_t^S = \pm 1$ and $\pm 1.5$. Comparing the ratios at $\sqrt{s}=8$ TeV presented in Table~\ref{R(thx)}, we observe the LHC-13 ratios are more or less similar to the LHC-8 ones. \begin{table}[t!] \caption{\small \label{R(thx13)} The cross-section ratios $R(t\bar t h)$ and $R(thX)$ with $X=j,jb,W$ defined in Eq.~(\ref{R-thX}). We are taking $\sqrt{s}=13$ TeV (LHC-13) and $C_t^S = \pm 1\,, \pm 1.5$. } \medskip \begin{ruledtabular} \begin{tabular}{lcccc} LHC-13 & \multicolumn{4}{c}{With ATLAS Analysis Cuts} \\ \hline & $C^{S}_{t}=1$ & $C^{S}_{t}=-1$ & $C^{S}_{t}=1.5$ & $C^{S}_{t}=-1.5$ \\ \hline Cross Section of $t\bar{t} h$(pb) &0.52&\\%0.52&1.17&1.17\\ $ R(t\bar{t}h) $ & 1&1&2.26&2.26 \\ $ R(thj) $ & 8.31e-2 & 0.97 & 0.14 & 1.51 \\ $ R(thjb) $ & 4.56e-2 & 0.52 & 8.22e-2 & 0.82 \\ $ R(thW) $ & 4.4e-2&0.29&9.39e-2&0.46 \\ \end{tabular} \end{ruledtabular} \end{table} We show the $p_{T_\gamma}$ and $\eta_j$ distributions for the $t\bar th$ and $thX$ processes in Fig.~\ref{pt_a_yt} and Fig.~\ref{eta_j_yt}, respectively, taking $C_t^S= \pm 1\,, \pm 1.5$. With $C_t^S \neq 1$, the $p_{T_\gamma}$ distribution of the $thX$ process, especially, that of the $thW$ process becomes harder relative to the $t\bar th$ distribution. In the $\eta_j$ distributions, the $thj$ and $thjb$ processes have more forward pseudorapidity. We therefore come up with a set of selection cuts summarized in Table~\ref{cut-13}, in which we order the jets according to their energy since most of the time the forward jet is the most energetic one. It is in general correctly chosen as shown in the $\eta_j$ distribution. Note that we require to tag one forward jet and apply the Higgs-mass window cut on the diphoton invariant mass $M_{\gamma\gamma}$. \begin{figure}[th!] \centering \includegraphics[width=1.5in]{figure/pt_a_1.pdf} \includegraphics[width=1.5in]{figure/pt_a_-1.pdf} \includegraphics[width=1.5in]{figure/pt_a_15.pdf} \includegraphics[width=1.5in]{figure/pt_a_-15.pdf} \caption{\small \label{pt_a_yt} The $P_{T_\gamma}$ distributions for the $t\bar{t} h$ and $thX$ processes in the $h\to \gamma\gamma$ channel at LHC-13 taking $C_t^S=+1\,,-1\,,+1.5\,,-1.5$ from left to right. We use the Delphes ATLAS template for detector simulations. }\end{figure} \begin{figure}[th!] \centering \includegraphics[width=1.5in]{figure/eta_j_1.pdf} \includegraphics[width=1.5in]{figure/eta_j_-1.pdf} \includegraphics[width=1.5in]{figure/eta_j_15.pdf} \includegraphics[width=1.5in]{figure/eta_j_-15.pdf} \caption{\small \label{eta_j_yt} The same as in Fig.~\ref{pt_a_yt} but for the $\eta_j$ distributions. }\end{figure} \begin{table}[t!] \centering \caption{\label{cut-13} Selection cuts to disentangle $thX$ from $t\bar th$. The Delphes ATLAS template is used. } \footnotesize{ \begin{tabular}{cc} \hline LHC-13&{ATLAS Analysis Cuts, $h\rightarrow \gamma\gamma$ } \\ \hline Basic cuts : &$\Delta R_{ij} > 0.4$ with $i,j$ denoting $b$, $j$ and $l$\\ &$P_{Tb} > 25 GeV, |\eta_b| < 2.5$, $P_{Tl} > 25 GeV, |\eta_l| < 2.5$, $P_{Tj} > 25 GeV, |\eta_j| < 4.7$\\ $\#$ of $\gamma$ $\&$ Higgs mass window cuts :&$N(\gamma) = 2,\ |M_{\gamma\gamma}-m_h| < 5 GeV$\\ $t \bar{t} h$ search & $|\eta_j|<2.5$ \\ $t h j$ search & Forward jet-tag : $2.5<|\eta_j|<4.7$ \\ \hline { $t\rightarrow $ semileptonically $\&$ leptonically} :&$N(e$ or $\mu$)=1, $E_T^{miss}>20 GeV$, \\ & Invariant Mass cuts for top decay product : $M_{bl} < 200 GeV$\\ & $t \bar{t} h$ search : $N(j)\ge2, N(b)\ge 1$ \\ & $t h j$ search : $N(j)\le3, N(b)\le 2$ \\ $t\rightarrow$ hadronically :&$N(e$ or $\mu$)=0, Invariant Mass cuts for top decay product : $M_{bj_1j_2} < 300 GeV$\\ & $t \bar{t} h$ search : $N(j)\ge6, N(b)\ge 2$ \\ & $t h j$ search : $N(j)\le5, N(b)\le 2$ \\ \hline \end{tabular}} \end{table} The accumulated $thj$ signal strength $\mu(thj)$ \footnote{ Similarly as $\mu(t\bar{t}h)$ given by Eq.~(\ref{mu-tth}), the signal strength $\mu(thj)$ is $$ \mu(thj)= \frac{ \eta_1\sigma(t\bar{t}h)B(t\bar{t}h\to{\cal D})+ \sum_{X=j,jb,W}\eta_X\sigma(thX)B(thX\to{\cal D})} {\eta_j^{\rm SM}\sigma(thj)_{\rm SM}B(thj\to{\cal D})_{\rm SM}}\,. $$} is shown in the left panel of Fig.~\ref{sum-tth_thj} with $C_t^S=\pm 1\,,\pm 1.5$. To obtain the signal strength $\mu(thj)$ in the $h\to\gamma\gamma$ decay at LHC-13, we impose the $thj$-specific cuts listed in Table~\ref{cut-13}. In the right panel of Fig.~\ref{sum-tth_thj}, we show the accumulated $t\bar th$ signal strength $\mu(t\bar t h)$ obtained by using the $t\bar t h$-specific cuts in the same Table. We observe that $\mu(thj)$ (left) is dominated by $thj$ (green) for the negative values of $C_t^S$, implying that our $thj$-specific cuts are working very efficiently when the $thj$ production cross section is much enhanced with $R(thj)\:\raisebox{-0.5ex}{$\stackrel{\textstyle>}{\sim}$}\: 1$. On the other hand, $\mu(t\bar t h)$ (right) is dominated by $t\bar t h$ (blue) independently of $C_t^S$ and we observe that our $t\bar t h$-specific cuts are working reasonably well as in the LHC-8 case (the left panel of Fig.~\ref{sum-rr-atlas-cms}). We can further draw a few observations from Fig.~\ref{sum-tth_thj} as follows. \begin{enumerate} \item When the experiment is targeting at $t\bar th$ production using the $t\bar t h$-specific cuts, there are contaminations from the $thX$ processes. For positive $C_t^S$, the $thX$ contaminations are small. But, for negative $C_t^S$, they can be as large as the $t\bar th$ signals. For $C_t^S = -1$, for example, $\mu(t\bar th) \sim 2$ and only half of which comes from $t\bar th$. \item From the left panel, we can see that the $thX$ processes dominate the signal strength $\mu(thj)$ for negative $C_t^S$, which means that the $thj$-specific selection cuts we employed indeed can single out the $thj$ process from the $t\bar th$ one. \item The large values of $\mu(thj) \sim {\cal O}(10)$ when $C_t^S$ deviates from its SM value $1$ imply that the direct $thj$ searches are also important as complementary channels. Current LHC constraints on the $thj$ searches at $\sqrt{s}=8$ TeV in are still weak~\cite{thj-8}, so that more data are needed at $\sqrt{s}=13$ TeV in the future to probe the anomalous top-Yukawa coupling through this channel. \end{enumerate} \begin{figure}[t!] \centering \includegraphics[width=3in]{figure/13_thj.png} \includegraphics[width=3in]{figure/13_tth.png} \caption{\small \label{sum-tth_thj} Accumulated signal strengths $\mu(thj)$ (left) and $\mu(t\bar{t} h)$ (right) at LHC-13 obtained by stacking the various $thX$ contributions on the $t\bar t h$ one for $C_t^S=+1\,,-1\,,+1.5\,,-1.5$ from left to right. We use the Delphes ATLAS template for detector simulations. }\end{figure} \section{Conclusions} Usually, the associated Higgs production with a single top quark dubbed as $thX$ with $X=j,jb,W$ makes only small contributions to the overall experimental signal strength of $\mu(t\bar th)$. In this work, however, we have demonstrated explicitly that the $thX$ processes can significantly increase the experimentally measured signal strength $\mu(t\bar th)$ when the relative sign of the top-Yukawa coupling to the gauge-Higgs coupling is reversed. Furthermore, we have shown explicitly that the $thX$ processes contaminate at quite different levels in various detection modes of $tth$, depending on the value of top-Yukawa coupling, on the cuts used in each experiment, and on the decay mode of the Higgs boson. Such behavior is far more complicated than simply assuming a small constant level of contamination in all channels. The signal strengths can be as large as $2 - 4$ in the category Leptons for $h\to$ multileptons, $2 - 4.5$ in the category $\gamma\gamma$ for $h\to\gamma\gamma$, and $2 - 4$ in the category $b\bar b$ for $h\to b\bar b$. Assuming the mild excesses observed in $t\bar t h$ production at the LHC are real, we note that all go in the right direction to match them. When more data are collected at $\sqrt{s}=13$ TeV, we can choose more specific cuts to single out the $thX$ processes, which can effectively determine the size and the sign of the top-Yukawa coupling. We offer the following comments on our findings. \begin{enumerate} \item The current data on $t\bar th$ production showed mild excesses at some level \footnote{ In the 13 TeV data, only the multilepton channel shows the mild excess both in ATLAS and CMS. On the other hand, a similar excess in the $bb$ ($\gamma\gamma$) channel is reported only by ATLAS (CMS).}. Although they may be simply due to statistical fluctuations, in this work, we have taken the liberty of interpreting the mild excesses by exploiting the strong entanglement between $thX$ and $t\bar t h$. Our case study would be very useful if the future data support the excesses. \item When the top-Yukawa coupling is kept at the SM value, i.e. $C_t^S = 1$, the contamination from all the $thX$ processes is small, only about $5-15\%$, and that can be regarded as a sort of small higher-order corrections. \item However, when the sign of the top-Yukawa coupling is reversed, i.e. $C_t^S = -1$, the $thX$ contributions are significantly enhanced. And the resulting signal strengths can be as large as $1.4-2.0$ (category Leptons), $1.0-2.5$ (category $\gamma\gamma$), and $1.4-2.0$ (category $b\bar b$), explaining the experimental excesses shown in Table~\ref{CMS-ATLAS1-table}. \item When $C_t^S$ is further negative, say $-1.5$, the resulting signal strength $\mu(t\bar th)$ further increases to $2.7-3.9$ (category Leptons), $2.4-4.5$ (category $\gamma\gamma$), and $2.6-3.8$ (category $b\bar b$). \item In the approach adopted in this work, the dominant $thX$ processes are $thj$ and $thjb$ both of which contain a very forward energetic jet. Also, as shown in Fig.~\ref{pt_a_yt}, the $thW$ process has a harder $p_T$ photon. Therefore, we successfully come up with a set of selection cuts to single out the $thX$ processes from the $t\bar t h$ process. It has been shown clearly in the left panel of Fig.~\ref{sum-tth_thj}. \item One very useful observation in our work is that the contributions from various production processes of $t\bar th$, $thj$, $thjb$, and $thW$ to the accumulated signal strengths strongly depend not only on the Higgs decay channels but also on the experiment (ATLAS or CMS), as can be seen in Figs.~\ref{sum-1-atlas-cms} -- \ref{sum-bb-atlas-cms}. \end{enumerate} \section*{Acknowledgment} K.C. was supported by the MoST of Taiwan under Grants number 102-2112-M-007-015-MY3. J.S.L. was supported by the National Research Foundation of Korea (NRF) grant No. NRF-2016R1E1A1A01943297.
\subsubsection*{Acknowledgment.}} \usepackage{amsmath,amsfonts,amsthm,amssymb,verbatim,enumerate,graphicx,mathtools} \usepackage{enumitem} \usepackage{color} \usepackage[flushmargin]{footmisc} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{definition}{Definition}[section] \newtheorem{example}{Example} \newtheorem{question}{Question} \newtheorem*{remark}{Remark} \newtheorem*{remarks}{Remarks} \numberwithin{equation}{section} \newcommand{transcendental entire function}{transcendental entire function} \newcommand\qfor{\quad\text{for }} \newcommand \C{\mathbb{C}} \newcommand \N{\mathbb{N}} \newcommand \No{{\mathbb{N}_0}} \newcommand \R{\mathbb{R}} \newcommand \Z{\mathbb{Z}} \makeatletter \def\xdef\@thefnmark{}\@footnotetext{\xdef\@thefnmark{}\@footnotetext} \makeatother \begin{document} \title[The dynamics of quasiregular maps of punctured space]{The dynamics of quasiregular maps of punctured space} \author{Daniel A. Nicks} \address{School of Mathematical Sciences \\ University of Nottingham \\ Nottingham NG7 2RD \\ UK \\ ORCiD: 0000-0002-9493-2970} \email{<EMAIL>} \author{David J. Sixsmith} \address{Dept. of Mathematical Sciences \\ University of Liverpool \\ Liverpool L69 7ZL\\ UK \\ ORCiD: 0000-0002-3543-6969} \email{<EMAIL>} \begin{abstract} The Fatou-Julia iteration theory of rational and transcendental entire functions has recently been extended to quasiregular maps in more than two real dimensions. Our goal in this paper is similar; we extend the iteration theory of analytic self-maps of the \emph{punctured plane} to quasiregular self-maps of \emph{punctured space}. We define the Julia set as the set of points for which the complement of the forward orbit of any neighbourhood of the point is a finite set. We show that the Julia set is non-empty, and shares many properties with the classical Julia set of an analytic function. These properties are stronger than those known to hold for the Julia set of a general quasiregular map of space. We define the quasi-Fatou set as the complement of the Julia set, and generalise a result of Baker concerning the topological properties of the components of this set. A key tool in the proof of these results is a version of the fast escaping set. We generalise various results of Mart{\'{\i}}-Pete concerning this set, for example showing that the Julia set is equal to the boundary of the fast escaping set. \end{abstract} \maketitle \xdef\@thefnmark{}\@footnotetext{2010 \itshape Mathematics Subject Classification. \normalfont Primary 37F10; Secondary 30C65, 30D05.} \xdef\@thefnmark{}\@footnotetext{Both authors were supported by Engineering and Physical Sciences Research Council grant EP/L019841/1.} \section{Introduction} \subsection{Background} Most studies of complex dynamics have considered analytic maps of either $\C$ or $\widehat{\C} := \C \cup\{\infty\}$; we refer to reference works such as \cite{beardon, MR1216719} for more information on complex dynamics. Various authors have studied the dynamics of analytic maps of the plane that have an additional essential singularity which is also an omitted value. Without loss of generality the singularity can be taken to be at the origin. These maps are known as \emph{transcendental analytic self-maps of $\C^*$}, where $\C^* := \C \setminus \{0\}$ is the \emph{punctured plane}. This study started with R{\aa}dstr{\"o}m \cite{MR0056702}, who pointed out that such maps are necessarily of the form $$ z \mapsto z^k \exp(g(z) + h(1/z)), $$ where $k \in \Z$ and $g, h$ are entire functions. Following R{\aa}dstr{\"o}m many authors have contributed to this work; see, for example, \cite{MR1687848, MR1357963, MR1279126, MR955806, MR1120038, MR916928}. We observe that, because of Picard's theorem, there are no analytic self-maps of the complex plane equipped with more than one puncture. In this paper our goal is, for the first time, to extend this study to quasiregular maps of punctured \emph{space}. We defer the full definition of a quasiregular map to Section~\ref{section:defs}; for now it is sufficient to note that these maps are the natural generalization to higher dimensions of analytic maps in the plane. We set the following definitions in place for the remainder of the paper. Fix the dimension $d \geq 2$. Fix also the number of finite punctures $\nu\in\N$; this is always in addition to a singularity at infinity. We stress that $\nu$ is always taken to be at least one; for more information on quasiregular dynamics in space without punctures we refer to, for example, \cite{MR3009101,MR3265283}. Finally we define a set of punctures. For convenience we fix $y_0 = \infty$, we let $y_1, y_2, \ldots, y_\nu$ be distinct points of $\R^d$, and then we let $S \subset \widehat{\R^d} := \R^d \cup\{\infty\}$ be given by $$S := \{y_0, y_1, y_2, \ldots, y_\nu\}.$$ We are interested in the dynamics of a quasiregular map $f : \widehat{\R^d}\setminus S \to \widehat{\R^d}\setminus S$, with the property that $S$ coincides with the set of essential singularities of $f$. In this situation we say that $f$ is \emph{of \mbox{$S$-transcendental} type}. Note that an \emph{essential singularity} is a point at which no limit of $f$ exists. It follows from Picard's theorem and Sto\"{\i}low factorization that a quasiregular map from $\R^2$ to $\R^2$ can omit at most one point. Hence, if $d=2$ then we must have $\nu = 1$. However, if $d \geq 3$, then we can take $\nu$ to be arbitrarily large. We demonstrate this as follows. Let $g : \widehat{\R^d} \to \widehat{\R^d}$ be a quasiregular map of degree $\nu + 1$, such that $g^{-1}(\infty) = \{y_0, y_1, y_2, \ldots, y_\nu\}$. Let $F : \R^d \to \R^d\setminus\{y_1, y_2, \ldots, y_\nu\}$ be a quasiregular map with an essential singularity at infinity. (The existence of such a map was shown by Drasin and Pankka \cite{DrasinandPankka}.) Then $$ f : \R^d\setminus\{y_1, y_2, \ldots, y_\nu\} \to \R^d\setminus\{y_1, y_2, \ldots, y_\nu\} \quad\text{where}\quad f := F \circ g, $$ has essential singularities at $\{y_0, y_1, y_2, \ldots, y_\nu\}$, as required. We note that the class of maps such as $F$ above is not small, since if $h : \R^d \to \R^d$ is any quasiregular map, then $F \circ h : \R^d \to \R^d\setminus\{y_1, y_2, \ldots, y_\nu\}$ is also a quasiregular map. \subsection{The Julia set} Our definition of the Julia set follows earlier definitions of the Julia set of a quasiregular map by using a version of the so-called \emph{blowing-up property}. Suppose that $f:\widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type, that $x \in \widehat{\R^d}$ and that $U \subset \widehat{\R^d}\setminus S$. We define the \emph{backward orbit} of $x$ by $$ O^-(x) := \bigcup_{k \ge 0} f^{-k}(x), $$ and we also define the \emph{forward orbit} of $U$ by $$ O^+(U) := \bigcup_{k\in\N} f^{k}(U). $$ \begin{definition}\normalfont\label{jdef} The \emph{Julia set $J(f)$} is defined to be the set of all points $x \in \widehat{\R^d}\setminus S$ such that, for every neighbourhood $U$ of $x$, the set $\widehat{\R^d} \setminus O^+(U)$ is finite. \end{definition} It can then be deduced that the Julia set is closed in $\widehat{\R^d}\setminus S$, and is completely invariant. Here we say that a set $X\subset\widehat{\R^d}\setminus S$ is \emph{completely invariant} if $x \in X$ if and only if $f(x) \in X$. We show that our definition of the Julia set is consistent with the classical definition used for transcendental analytic self-maps of the punctured plane. Recall that the classical definition first defines the \emph{Fatou set} as the set of points that have a neighbourhood in which the set of iterates is a normal family, and then defines the Julia set as the complement of the Fatou set. \begin{theorem} \label{theo:Jclassical} Suppose that $f$ is a transcendental analytic self-map of the punctured plane. Then the classical definition of $J(f)$ agrees with Definition~\ref{jdef}. \end{theorem} We next define the \emph{exceptional set $E(f)$} as $$ E(f) := \left\{ x \in \widehat{\R^d} : \operatorname{card }\left(O^-(x)\right) < \infty\right\}. $$ Clearly $S \subset E(f)$. It is a consequence of a well-known result of Rickman \cite{MR583633} that $E(f)$ is a finite set; see Lemma~\ref{greatpicard} below. We now give our principal result regarding the Julia set of a quasiregular map of $S$-transcendental type. Note that here, and elsewhere in the paper, the topological operations of closure, complement and boundary are taken with respect to $\widehat{\R^d}\setminus S$ unless otherwise specified. Also, if a set $X \subset \widehat{\R^d} \setminus S$ is such that the closure of $X$ in $\widehat{\R^d}$ meets $S$, then we say that $X$ is \emph{$S$-unbounded}; otherwise we say that $X$ is \emph{$S$-bounded}. \begin{theorem} \label{theo:J} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Then the following hold. \begin{enumerate}[label=(\alph*) \item The Julia set of $f$ is non-empty and perfect.\label{jperfect} \item For each $x \in J(f) \setminus E(f)$, we have $J(f) = \overline{O^-(x)}$.\label{jback} \item We have $J(f) = J(f^p)$, for $p\in\N$.\label{jnice} \item Either $J(f)$ is connected or $J(f)$ has infinitely many components.\label{jconn} \item All components of $J(f)$ are $S$-unbounded.\label{jnoSbounded} \end{enumerate} \end{theorem} Clearly, it follows from \ref{jperfect} and \ref{jnoSbounded} that $J(f)$ has a connected component that contains at least two points. We can deduce that the Julia set has Hausdorff dimension at least one. \begin{remarks}\normalfont\mbox{} \begin{enumerate} \item It follows from Theorem~\ref{theo:Jclassical} that Theorem~\ref{theo:J}\ref{jconn} and \ref{jnoSbounded} are generalisations to quasiregular maps of Baker and Dom{\'{\i}}nguez's results \cite[Theorem 3 and Theorem 2]{MR1687848}, which concern transcendental analytic self-maps of $\C^*$. \item The dynamics of general quasiregular self-maps of $\R^d$ and $\widehat{\R^d}$ is the subject of \cite{MR3009101,MR3265283}, where a slightly weaker definition of the Julia set is adopted. In this definition the complement of the forward orbit of any neighbourhood is constrained only to be ``small''; see Definition~\ref{jcapdef} in Section~\ref{section:julia} below. In the cases studied in \cite{MR3009101,MR3265283}, the Julia set is generally non-empty, but otherwise properties analogous to Theorem~\ref{theo:J}\ref{jperfect}--\ref{jnice} are only known to hold under additional hypotheses such as Lipschitz continuity. Even with this extra assumption, it is only known that the Hausdorff dimension of the Julia set is positive. \item The dynamics of \emph{local uniformly} quasiregular maps of punctured \emph{manifolds} was studied by Okuyama and Pankka in \cite{MR3220456}. \end{enumerate} \end{remarks} \subsection{The quasi-Fatou set} Following \cite{SixsmithNicks1, SixsmithNicks2, SixsmithNicks3}, we define the \emph{quasi-Fatou set $QF(f)$} as the complement of the Julia set (recall that complements are taken in $\widehat{\R^d}\setminus S$). It is straightforward to show that the quasi-Fatou set is an open, completely invariant set which, if non-empty, has the Julia set as its boundary. We call the connected components of $QF(f)$ the \emph{quasi-Fatou components}. Baker \cite[Theorem 1]{MR951969} (see also \cite[Theorem 1]{MR1687848} and \cite{MR916928}) showed that, for a transcendental analytic self-map of the punctured plane, all the components of the Fatou set are simply-connected, apart from at most one, which, if it exists, must be doubly-connected. In view of Theorem~\ref{theo:Jclassical}, our next result is a generalisation of this fact. Here, if a set $X \subset \R^d\setminus S$ is such that all complementary components of $X$ are $S$-unbounded, then we say that $X$ is \emph{$S$-full}; otherwise we say that $X$ is \emph{$S$-hollow}. \begin{theorem} \label{theo:F} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Then all components of $QF(f)$ are $S$-full. Moreover there are at most $\nu$ components of $QF(f)$ which have more than one complementary component in $\widehat{\R^d}$. \end{theorem} Suppose that $d=2$, that $S = \{0, \infty\}$ (in which case $\nu=1$), and that $U \subset \C^*$ is a domain that is $S$-full. Set $W = \widehat{\C} \setminus U$. Then either $W$ is connected, in which case $U$ is simply-connected, or $W$ has two components (one containing $\infty$ and one containing $0$), in which case $U$ is doubly-connected. It follows that Theorem~\ref{theo:F} is indeed a generalisation of \cite[Theorem 1]{MR951969}. We observe that, unlike Baker, we are not able to use normal family arguments in the quasi-Fatou components. \subsection{The fast escaping set} A key tool in the proof of the above results is the \emph{fast escaping set}. This was first defined, for a {transcendental entire function}, in \cite{MR1684251}, and a detailed study of this set was given in \cite{Rippon01102012}. See also \cite{MR3215194, MR3265357}, which studied the fast escaping set of a quasiregular map of $\R^d$ of transcendental type. When~$f$ is a function defined on $\C$ or $\R^d$, the fast escaping set is roughly the set of points~$x$ for which $|f^n(x)|$ eventually grows faster than some iterated maximum modulus. Here this refers to iteration of the \emph{maximum modulus} $M(r,f):=\max_{|x|=r}|f(x)|$ as a function of $r>0$. One motivation for studying the fast escaping set is its intimate connection to the Julia set. In particular, for transcendental entire functions, the boundary of the fast escaping set is the Julia set. The same result also holds for suitable analytic self-maps of $\C^*$ and for many quasiregular self-maps of $\R^d$. We aim to establish the analogous result for quasiregular maps of $S$-transcendental type; see Theorem~\ref{theo:AJ} below. The fast escaping set of a transcendental analytic self-map of $\C^*$ was first studied in \cite{DMP1}; indeed, our work regarding the fast escaping set is, in a sense, a generalisation of the results of \cite{DMP1} to quasiregular maps of $S$-transcendental type. Our method of definition cannot match that used in \cite{DMP1} exactly, since that definition is given using the maximum and minimum modulus functions, and these are less useful in our setting. Instead we define a family of functions each of which is, in some sense, a generalised maximum modulus function. Recall that our set of punctures is $S=\{y_0, y_1, \ldots, y_\nu\}$, with $y_0=\infty$. Let $\mathcal{P} := \{0, 1, \ldots, \nu\}$. For each $j \in \mathcal{P}$, we define the \emph{generalised modulus function} on $\widehat{\R^d}$ by $$|x|_j : = \begin{cases} |x|, &\mbox{if }j=0, \\ \dfrac{1}{|x-y_j|}, &\mbox{if }j>0. \end{cases} $ Next, we fix $\rho_S > 0$ sufficiently large that \begin{equation} \label{rhoSdef} \{ x \in \widehat{\R^d} : |x|_j \geq \rho_S \} \cap S = \{y_j \}, \qfor j \in\mathcal{P}. \end{equation} Note that this definition of $\rho_S$ will be in place throughout the paper. Then, for each $j, k \in \mathcal{P}$, we define the \emph{generalised maximum modulus function} by \begin{equation} \label{mukdef} M_{j,k}(r, f) := \max_{\{ x : |x|_j = r\}} |f(x)|_k, \qfor r>\rho_S. \end{equation} Roughly speaking, the function $M_{j,k}$ considers the maximum size of $f$ (compared to the $k$th essential singularity) considered at points near the $j$th essential singularity. We shall now briefly outline the idea behind the definition of the fast escaping set in our present setting; we defer the precise definition to Section~\ref{section:A}. It is useful to let $\No := \N \cup \{0\}$ and to call sequences $e=e_0 e_1 \ldots \in \mathcal{P}^{\No}$ \emph{itineraries}. Suppose that $R > 0$ and $e\in \mathcal{P}^{\No}$. We define the \emph{maximum modulus sequence for $e$ starting at $R$} by first setting $R_0 = R$, and then letting \begin{equation} \label{Rndef} R_n := M_{{e_{n-1}},e_{n}}(R_{n-1},f), \qfor n\in\N. \end{equation} (We shall see in Section~\ref{section:A} that if $R$ is sufficiently large, then we can guarantee that $R_{n-1}>\rho_S$, so that $R_n$ can indeed be defined by \eqref{Rndef}.) For a given itinerary $e$, the \emph{little fast escaping set} $A_e(f)$ is roughly the set of points $x$ for which $|f^n(x)|_{e_n}$ grows faster than some maximum modulus sequence for $e$. The \emph{fast escaping set} is then defined to be the union \[ A(f):= \bigcup_{e \in \mathcal{P}^{\No}} A_e(f). \] \begin{theorem} \label{theo:A1} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type and that $e \in \mathcal{P}^{\No}$. Then $A_e(f)$ is non-empty and all components of $A_e(f)$ are $S$-unbounded. \end{theorem} Our second result concerning the little fast escaping sets provides the crucial connection between these sets and the Julia set. \begin{theorem} \label{theo:AJ} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type and that $e \in \mathcal{P}^{\No}$. Then \begin{equation} \label{JAeq} J(f) = \partial A_e(f) = \partial A(f). \end{equation} \end{theorem} Although there is no assumption of normality in a component of $QF(f)$, the following easy corollary of Theorem~\ref{theo:AJ} is a type of normality property, and is central to our arguments. \begin{corollary} \label{corr:QF} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. If $e \in \mathcal{P}^{\No}$ and $U$ is a quasi-Fatou component of $f$ that meets $A_e(f)$, then $U \subset A_e(f)$. \end{corollary} We will see later (Theorem~\ref{theo:A2}\ref{aequiv}) that there are uncountably many disjoint little fast escaping sets. Corollary~\ref{corr:QF} then yields the following result, as the open set $QF(f)$ has only countably many components. \begin{corollary} \label{corr:J} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Then $A(f)\cap J(f) \ne \emptyset$. Moreover, there exists $e \in \mathcal{P}^{\No}$ such that $A_e(f) \subset J(f)$. \end{corollary} \subsection{Structure of this paper} The structure of this paper is as follows. First, in Section~\ref{section:defs}, we give a number of important definitions and background results. Next, in Section~\ref{section:julia}, we prove the first four parts of Theorem~\ref{theo:J}, and also Theorem~\ref{theo:Jclassical}. Since the properties of the fast escaping set are required in the rest of the paper, in Section~\ref{section:A} we give the precise definition of this set and prove Theorem~\ref{theo:A1}. In Section~\ref{section:AJ} we prove Theorem~\ref{theo:AJ} and then, in Section~\ref{section:julia2}, we use it to prove the last part of Theorem~\ref{theo:J}. Finally, we prove Theorem~\ref{theo:F} in Section~\ref{section:fatou}. \section{Definitions and background results} \label{section:defs} \subsection{Quasiregular maps} We refer to \cite{MR1238941, MR950174} for a detailed treatment of quasiregular maps. Here we merely recall some definitions and properties used in this paper. Suppose that $d\geq 2$, that $G \subset \R^d$ is a domain, and that $1 \leq p < \infty$. The \emph{Sobolev space} $W^1_{p,loc}(G)$ consists of those functions $f : G \to \R^d$ for which all first order weak partial derivatives exist and are locally in $L^p$. We say that $f$ is \emph{quasiregular} if $f \in W^1_{d,loc}(G)$ is continuous, and there exists $K_O \geq 1$ such that \begin{equation} \label{KOeq} \left(\sup_{|h|=1} |Df(x)(h)|\right)^d \leq K_O J_f(x) \quad \text{a.e}. \end{equation} Here $D f(x)$ denotes the derivative, and $J_f (x)$ denotes the Jacobian determinant. If $f$ is quasiregular, then there also exists $K_I \geq 1$ such that \begin{equation} \label{KIeq} K_I \left( \inf_{|h|=1} |Df(x)(h)| \right)^d \geq J_f(x) \quad \text{a.e}. \end{equation} The smallest constants $K_O$ and $K_I$ for which (\ref{KOeq}) and (\ref{KIeq}) hold are denoted by $K_O (f)$ and $K_I (f)$ respectively. If $\max\{K_I (f),K_O (f)\} \leq K$, for some $K \geq 1$, then we say that $f$ is \emph{$K$-quasiregular}. If $f$ and $g$ are quasiregular maps, and $f$ is defined in the range of $g$, then $f \circ g$ is quasiregular and \cite[Theorem II.6.8]{MR1238941} \begin{equation} \label{Keq} K_I(f \circ g) \leq K_I(f)K_I(g). \end{equation} Many properties of analytic functions extend to quasiregular maps; we use, without comment, the fact that a non-constant quasiregular map is discrete and open. We also use the following \cite[Theorem~1.2]{MR583633}, which is Rickman's analogue of Picard's great theorem. \begin{lemma} \label{greatpicard} If $d \geq 2$ and $K \geq 1$, then there exists an integer $q = q(d,K)$ with the following property. If $a_1, \ldots , a_q \in \R^d$ are distinct and $r > 0$, then no K-quasiregular map $f : \{ x \in \R^d : |x| > r \} \to \R^d \setminus \{a_1, \ldots, a_q\}$ has an essential singularity at infinity. \end{lemma} The number $q(d,K)$ is called \emph{Rickman's constant}. \subsection{The capacity of a condenser} An important tool in the study of quasiregular maps is the capacity of a condenser, and we recall this idea very briefly. If $A \subset \R^d$ is open, and $C \subset A$ is non-empty and compact, then the pair $(A,C)$ is called a \emph{condenser}. Its \emph{capacity}, denoted by cap$(A,C)$, is defined by $$ \operatorname{cap}(A,C) := \inf_u \int_A |\nabla u|^d dm. $$ Here, the infimum is taken over all non-negative functions $u \in C^\infty_0(A)$ that satisfy $u(x) \geq 1$, for $x \in C$. If cap$(A,C) = 0$ for a bounded open set $A$ containing $C$, then cap$(A',C) = 0$ for every bounded open set $A'$ containing $C$; see \cite[Lemma III.2.2]{MR1238941}. In this case we say that $C$ \emph{has zero capacity}, and write cap $C = 0$; otherwise we say that $C$ \emph{has positive capacity}, and write cap~$C > 0$. For an unbounded closed set $C\subset\R^d$, we say that $C$ has zero capacity if every compact subset of $C$ has zero capacity. Roughly speaking, cap $C = 0$ means that $C$ is a ``small'' set. In particular, it is well-known that any finite set has zero capacity. \subsection{The modulus of a curve family}\label{sect:modulus} The proof of Theorem~\ref{theo:AJ} closely follows the proof of \cite[Theorem 1.2]{MR3265357}. This requires us to introduce the concept of the modulus of a curve family, although we are able to eschew all detail and refer to \cite{MR1238941,MR950174} for more information. If $\Gamma$ is a family of paths in $\R^d$, then a non-negative Borel function $\rho : \R^d \to \R \cup \{\infty\}$ is called \emph{admissible} if $\int_\gamma \rho \ ds \geq 1$, for all locally rectifiable paths $\gamma \in \Gamma$. We let $\mathcal{F}(\Gamma)$ be the family of all admissible Borel functions, and let the \emph{modulus} of $\Gamma$ be defined by $$ M(\Gamma) := \inf_{\rho \in \mathcal{F}(\Gamma)} \int_{\R^d}\rho^d \ dm. $$ Finally, if $G \subset \R^d$ is a domain, and $E, F$ are subsets of $\overline{G}$, then we denote by $\Delta(E,F;G)$ the family of all paths which have one endpoint in $E$, one endpoint in $F$, and which otherwise are in $G$. \subsection{Topological prerequisites} For simplicity we define a \emph{continuum} as a non-empty subset of $\widehat{\R^d}$ which is compact and connected in $\widehat{\R^d}$. We use the following version of \cite[Theorem 2 p.172]{MR0259835}, in which we take closures in $\widehat{\R^d}$; this is known as a boundary bumping theorem. \begin{proposition} \label{kurat} Suppose that $X$ is a proper subset of a continuum $K$, and that $X'$ is a connected component of $X$. Then $\overline{X'} \cap \overline{K \setminus X} \ne \emptyset.$ \end{proposition} We also need the following version of \cite[Lemma 3.2]{MR2448586}. That result, roughly speaking, is the case of a single puncture at infinity. \begin{proposition} \label{bflmpunctured} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Suppose that $E \subset \widehat{\R^d}$ is a continuum that meets $S$. Then all components of $f^{-1}(E)$ are $S$-unbounded. \end{proposition} \begin{proof} Let $F=f^{-1}(E)\cup S$, and note that this is a compact subset of $\widehat{\R^d}$. If every component of $F$ meets $S$, then the result follows by applying Proposition~\ref{kurat} with $X'$ any component of $f^{-1}(E)$, and $X=K\setminus S$, where $K$ is the component of $F$ containing $X'$. Otherwise, some component of $F$ does not meet $S$ and hence $F$ can be partitioned into two non-empty disjoint relatively closed sets $H_1$ and $H_2$ such that $S\subset H_2$. A contradiction can then be deduced in a very similar way to \cite[Lemma 3.2]{MR2448586}; the details are omitted. \end{proof} We also require the following, which is a version of a result established, for example, in the proof of \cite[Theorem 1.4]{SixsmithNicks1}. \begin{proposition} \label{prop:comps} Suppose that $X \subset \widehat{\R^d}\setminus S$ is closed, and that $K$ is a component of $X$ which is $S$-bounded. Then there is an $S$-bounded domain $V$ such that $K \subset V$ and $\partial V \cap X = \emptyset$. \end{proposition} \begin{proof} Note that $X\cup S$ is a compact subset of $\widehat{\R^d}$. Let $T$ be the component of $X\cup S$ that contains $K$. Suppose that $T$ meets $S$, in which case $T\setminus S$ is a proper subset of $T$. Since $K$ is a connected component of $T\setminus S$, Proposition~\ref{kurat} implies that $K$ is $S$-unbounded. This is a contradiction. Hence $T$ is disjoint from $S$. Since $T$ is a component of the compact set $X \cup S$, it follows from \cite[Theorem~5.6]{MR0132534} that $X \cup S$ can be partitioned into two disjoint relatively closed sets $H_1$ and $H_2$ such that $T\subset H_1$ and $S\subset H_2$. The sets $H_1$ and $H_2$ are closed (and so compact) in~$\widehat{\R^d}$, and hence, using the spherical metric on~$\widehat{\R^d}$, there is a positive distance $2\varepsilon$ between them. Let $V'$ be the $\varepsilon$-neighbourhood of $H_1$ and note that this is $S$-bounded. We take $V$ to be the component of $V'$ that contains $T$. \end{proof} The final result in this subsection concerns continuous functions, and is almost identical to \cite[Lemma 2.6]{danslow}; see also \cite[Lemma 1]{MR2792984}. The proof is omitted. \begin{lemma} \label{lemm:exists} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d}\setminus S$ is a continuous function, and that $(E_n)_{n\in\No}$ is a sequence of non-empty $S$-bounded subsets of $\widehat{\R^d}\setminus S$ such that $$ f(E_n) \supset E_{n+1}, \qfor n\in\No. $$ Then there exists $\xi\in \widehat{\R^d}\setminus S$ such that $f^n(\xi) \in \overline{E_n}$, for $n\in\No$. \end{lemma} \subsection{Properties of the generalised maximum modulus functions} It is useful to define some M\"{o}bius maps that will be referred to in several subsequent proofs. First let $\tau$ be the reflection defined by $\tau(\infty) = \infty$ and $$ \tau(x) = \tau(x_1, x_2, \ldots, x_d) = (-x_1, x_2, \ldots, x_d), \qfor x \in \R^d. $$ We then let $\phi_0 : \widehat{\R^d} \to \widehat{\R^d}$ be the identity map, and, for $j \in \mathcal{P}\setminus\{0\}$, we let $\phi_j: \widehat{\R^d} \to \widehat{\R^d}$ be the M\"{o}bius map defined by $$ \phi_j(x) := \tau\left(\frac{x - y_j}{|x - y_j|^2}\right). $$ Note that the function $\tau$ is introduced only to ensure that each $\phi_j$ is orientation-preserving. The usefulness of the maps $\phi_j$ is due to the fact that \[ |x|_j = |\phi_j(x)|, \qfor x\in\widehat{\R^d}, \ j \in \mathcal{P}. \] In the following lemma we gather various properties of the generalised maximum modulus functions. We later use the first part of this result without further comment. \begin{lemma} \label{lemma:gen} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Suppose also that $j, k \in \mathcal{P}$. Then: \begin{enumerate}[label=(\alph*) \item\label{Mnormal} $M_{j,k}(r, f)$ is increasing, for sufficiently large values of $r > \rho_S$. \item\label{Mmult} If $A > 1$, then $$ \lim_{r\rightarrow\infty} \frac{M_{j,k}(Ar,f)}{M_{j,k}(r,f)} = \infty. $$ \item\label{Mbig} We have $$ \lim_{r\rightarrow\infty} \frac{\log M_{j,k}(r,f)}{\log r} = \infty. $$ \end{enumerate} \end{lemma} \begin{proof} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Part \ref{Mnormal} is a consequence of the fact that $f$ is an open map. For part \ref{Mmult}, we consider the quasiregular map $g = \phi_k \circ f \circ \phi_j^{-1}$. Note that $g$ is defined on a punctured neighbourhood of infinity, and has an essential singularity at infinity. We need to show that \begin{equation} \label{anMequation} \lim_{r\rightarrow\infty} \frac{M(Ar,g)}{M(r,g)} = \infty. \end{equation} The proof of this fact is similar to the proof of \cite[Lemma 3.3]{MR2248829}, and is omitted. Part \ref{Mbig} is a simple consequence of part \ref{Mmult}. \end{proof} \subsection{Asymptotic values} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. If $a \in \widehat{\R^d}$ and $j \in \mathcal{P}$, then we say that \emph{$a$ is an asymptotic value of $f$ at the $j$th puncture} if there is a curve $\gamma : (0,1) \to \widehat{\R^d}\setminus S$ such that $\gamma(t)\rightarrow y_j$ and $f(\gamma(t)) \rightarrow a$ as $t\rightarrow 1$. The following is an immediate consequence of \cite[Theorem~VII.2.6]{MR1238941}. \begin{lemma} \label{lemma:asympt} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type, and that $j, k \in \mathcal{P}$. Then $y_k$ is an asymptotic value of $f$ at the $j$th puncture. \end{lemma} \section{Proof of Theorem~\ref{theo:Jclassical} and the first four parts of Theorem~\ref{theo:J}} \label{section:julia} We begin by making the following simple observation. \begin{proposition} \label{prop:useful} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type, and that $U$ is a neighbourhood of a point $x \in J(f)$. Then \begin{equation*} \widehat{\R^d} \setminus O^+(U) \subset E(f). \end{equation*} \end{proposition} \begin{proof} Suppose that $y \in \widehat{\R^d}\setminus O^+(U)$. It is easy to see that $f^{-1}(y) \subset \widehat{\R^d}\setminus O^+(U)$. It follows that $O^-(y)$ is contained in the finite set $\widehat{\R^d}\setminus O^+(U)$, and thus $y \in E(f)$ as required. \end{proof} It is useful to define a set which we later show is, in fact, equal to the Julia set. \begin{definition}\normalfont \label{jcapdef} For a quasiregular map $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ of \mbox{$S$-transcendental} type, we denote by $J_{\operatorname{cap}}(f)$ the set of all points $x \in \widehat{\R^d}\setminus S$ such that, for every neighbourhood $U$ of $x$, we have \begin{equation} \label{capcond} \operatorname{cap }\widehat{\R^d} \setminus O^+(U) = 0. \end{equation} \end{definition} \begin{remark}\normalfont For \emph{general} quasiregular self-maps of $\R^d$ or $\widehat{\R^d}$, a capacity condition such as that in (\ref{capcond}) is used to \emph{define} the Julia set; see \cite{MR3009101, MR3265283}. In those settings it remains a significant open problem to determine whether this is equivalent to a ``finite omitted set definition'' of the Julia set such as that in Definition~\ref{jdef}. \end{remark} Since, by Lemma~\ref{lemma:asympt}, self-maps of punctured space have at least one finite asymptotic value at each puncture, we can make progress through the following four propositions. \begin{proposition} \label{danprop1} Suppose that $d \geq 2$ and $K \geq 1$, and let $q \in \N$ be Rickman's constant. Then there exists an integer $N > q$ with the following property. If $U_1, \ldots, U_N$ are $S$-bounded domains in $\widehat{\R^d}\setminus S$ with pairwise disjoint closures, and if $f : \widehat{\R^d}\setminus S \to \widehat{\R^d}\setminus S$ is a K-quasiregular map of $S$-transcendental type such that, for each $j \in \{1, \ldots, N\}$, $$ f(U_j) \supset U_i, \qfor\text{at least } N-q \text{ values of } i \in \{1, \ldots, N\}, $$ then the following both hold. \begin{enumerate}[label=(\alph*) \item We have that $\overline{U_j} \cap J_{\operatorname{cap}}(f) \ne \emptyset$, for $j \in \{1, \ldots, N\}$.\label{apart} \item There exists $j^* \in \{1, \ldots, N\}$ such that $\operatorname{cap }\overline{O^-(y)} > 0$, for $y \in \overline{U_{j^*}}$.\label{bpart} \end{enumerate} \end{proposition} \begin{proof} The proof of these results is almost identical to certain proofs in \cite{MR3265283}, with the function $g_m$ referred to in \cite{MR3265283} replaced by $f$. For reasons of brevity, we have not reproduced all the details here. Choose $N\in\N$, divisible by $4$, such that $N > \max\{4K, 8q\}$. Then \ref{apart} can be deduced from \cite[Theorem 3.2]{MR3009101} and the definition of $J_{\operatorname{cap}}(f)$, by the argument used on \cite[p.161]{MR3265283} in the ``Proof of Theorem 1.1 for functions without the pits effect''. The proof of \cite[Theorem 1.9]{MR3265283} then shows that $3N/4$ of the domains $U_j$ have the property that cap $\overline{O^-(y)} > 0$, for $y \in \overline{U_j}$. \end{proof} The next proposition is analogous to \cite[Lemma 5.1]{danslow}. Here if $U \subset \R^d$ and $r > 0$, then we define $rU := \{ rx : x \in U\}$. It is useful to define a topological ring, for $j \in \mathcal{P}$ and $0 < r_1 < r_2$, by $$ A_j(r_1, r_2) := \{ x \in \R^d : r_1 < |x|_j < r_2 \}, $$ and also, for simplicity, a ``standard'' ring $$A(r_1, r_2) := A_0(r_1, r_2) = \{ x \in \R^d : r_1 < |x| < r_2 \}.$$ \begin{proposition} \label{danprop2} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a $K$-quasiregular map of \mbox{$S$-transcendental} type. Suppose that $\alpha > 1$, that $N$ is an integer greater than $q$, where $q$ is Rickman's constant, and that $U_1', \ldots, U_N'$ are non-empty subsets of $\R^d$ with pairwise disjoint closures in $\widehat{\R^d}$. Then there exists $r_0 > \rho_S$ such that, for all $r \geq r_0$ and $1 \leq R \leq M(r, f)$, $$ f(A(r, \alpha r)) \supset R U_i', \qfor \text{at least } N-q \text{ values of } i \in \{1, \ldots, N\}. $$ In particular, if $x_1, \ldots x_{q+1} \in \R^d$ are distinct, then, for all sufficiently large $r > \rho_S$, there exists $y \in A(r, \alpha r)$ such that $f(y) \in \{x_1, \ldots, x_{q+1}\}$. \end{proposition} \begin{proof} Suppose, by way of contradiction, that no such $r_0$ exists. Then there exist sequences of real numbers $(r_k)_{k\in\N}$ and $(R_k)_{k\in\N}$ such that $(r_k)_{k\in\N}$ increases to $\infty$ and $1 \leq R_k \leq M(r_k, f)$, but $f(A(r_k, \alpha r_k))$ does not contain $R_k U_i'$ for at least $q+1$ choices of $i\in\{1, \ldots, N\}$. We can assume that $r_1 > \rho_S$, and so $$\{ x \in \R^d : |x| > r_1\} \cap S = \emptyset.$$ For each $k \in\N$, let $f_k : A(1, \alpha) \to \R^d$ be the $K$-quasiregular map defined by $$f_k(x) := \frac{f(r_k x)}{R_k}.$$ Then $f_k$ omits a point in $U_i'$ for at least $q+1$ values of $i$. We deduce that $\{ f_k \}_{k \in\N}$ is a normal family on $A(1, \alpha)$ by the quasiregular analogue of Montel's theorem due to Miniowitz \cite[Theorem 5]{MR633273}. On the other hand, the existence of a finite asymptotic value for $f$, by Lemma~\ref{lemma:asympt}, means that there exists $c>0$ such that $$\min_{|x|=r}|f(x)| \leq c, \qfor r\geq r_1.$$ Hence, \begin{equation} \label{danseq2} \min\left\{|f_k(x)| : |x| = \frac{1+\alpha}{2}\right\} \leq \frac{c}{R_k} \leq c, \qfor k \in \N, \end{equation} while also \begin{equation} \label{danseq3} M\left(\frac{1+\alpha}{2}, f_k\right) = \frac{M\left(\frac{1+\alpha}{2}r_k,f\right)}{R_k} \geq \frac{M\left(\frac{1+\alpha}{2}r_k,f\right)}{M(r_k, f)}, \qfor k \in \N. \end{equation} By Lemma~\ref{lemma:gen}\ref{Mmult} this last term tends to infinity as $k \rightarrow\infty$. Therefore (\ref{danseq2}) and (\ref{danseq3}) together contradict the normality of the family $\{f_k\}_{k \in\N}$. The final observation of the proposition follows by taking $N=q+1$, $R=1$ and $U_i' = \{ x_i \}$, for $i \in \{1, \ldots, N\}$. \end{proof} \begin{proposition} \label{prop:capclaim} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Then $J_{\operatorname{cap}}(f)$ is infinite and \begin{equation} \label{dancapclaim} \operatorname{cap }\overline{O^-(x)} > 0, \qfor x \in \R^d \setminus E(f). \end{equation} \end{proposition} \begin{proof} Suppose that $f : \widehat{\R^d} \setminus S \to \widehat{\R^d} \setminus S$ is a $K$-quasiregular map of $S$-transcendental type. Take $N \in \N$ as in Proposition~\ref{danprop1}, let $\alpha=2$, and let $$U_i' := A(3^i, 3^i\alpha), \qfor i \in \{1, \ldots, N\}.$$ By Lemma~\ref{lemma:gen}\ref{Mbig}, let $s_0 > \rho_S$ be sufficiently large that $M(3s, f) \geq s$, for $s \geq s_0$. Let $r_0$ be the constant from Proposition~\ref{danprop2}. For $s \geq \max\{r_0,s_0\}$, we put $r = 3^js$, $R=s$, and $U_i := s U_i'$, for $i \in \{1, \ldots, N\}$. Proposition~\ref{danprop2} then yields that, for each $j \in \{1, \ldots, N\}$, $$ f(U_j) = f(A(3^js, 3^j\alpha s)) \supset U_i, \qfor \text{at least } N-q \text{ values of } i\in \{1, \ldots, N\}. $$ Next, Proposition~\ref{danprop1}\ref{apart} implies that $\overline{U_{j}} \cap J_{\operatorname{cap}}(f) \ne \emptyset$, for $j \in \{1, \ldots, N\}$. By choosing arbitrarily large values of $s$, it then follows that $J_{\operatorname{cap}}(f)$ is infinite. To prove \eqref{dancapclaim}, take $x \in \R^d\setminus E(f)$ and recall that, by definition, $O^-(x)$ is infinite. It follows by the last part of Proposition~\ref{danprop2} that there exists $r' = r'(x) > \rho_S$ such that for all $r \geq r'$, \begin{equation} \label{daneq5} \text{there exists } y \in A(r, 2r) \text{ such that } f(y) \in O^-(x). \end{equation} Now choose a large value of $s \geq r'$, and take $j^* \in \{1, \ldots, N\}$ as given by Proposition~\ref{danprop1}\ref{bpart}. It then follows from (\ref{daneq5}) that there exists $y \in U_{j^*}$ such that $f(y) \in O^-(x)$. This implies that $y \in O^-(x)$, and hence that $O^-(y) \subset O^-(x)$. Therefore, Proposition~\ref{danprop1}\ref{bpart} yields cap $\overline{O^-(x)} > 0$. \end{proof} \begin{proposition}\label{J=J_cap} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Then \[ J(f) = J_{\operatorname{cap}}(f) \subset \overline{O^-(x)}, \qfor x \in \R^d \setminus E(f). \] \end{proposition} \begin{proof} This is very similar to \cite[Proof of Theorem 5.1]{MR3265283}. It follows from the definitions that $J(f) \subset J_{\operatorname{cap}}(f)$. Let $x \in \widehat{\R^d}\setminus E(f)$, and let $U$ be an open set intersecting $J_{\operatorname{cap}}(f)$. By Proposition~\ref{prop:capclaim}, cap $\overline{O^-(x)} > 0$ and so $O^+(U) \cap \overline{O^-(x)} \ne \emptyset$, by the definition of $J_{\operatorname{cap}}(f)$. Since $O^+(U)$ is open and $\overline{O^-(x)}$ is closed, we have in fact that $O^+(U) \cap O^-(x) \ne \emptyset$. This in turn implies both that \begin{equation} \label{daneq6} x \in O^+(U), \end{equation} and \begin{equation} \label{daneq7} U \cap O^-(x) \ne \emptyset. \end{equation} It follows from (\ref{daneq6}), and from the fact that $x \in \widehat{\R^d} \setminus E(f)$ was arbitrary, that $\widehat{\R^d} \setminus O^+(U) \subset E(f)$. Since this holds for any neighbourhood $U$ of any point of $J_{\operatorname{cap}}(f)$, and since $E(f)$ is finite, this shows that $J_{\operatorname{cap}}(f) \subset J(f)$. It follows that $J(f) = J_{\operatorname{cap}}(f)$ and, in particular, $J(f)$ is infinite. Since (\ref{daneq7}) holds for every open set $U$ intersecting $J(f)$, we can also deduce that $J(f) \subset \overline{O^-(x)}$. \end{proof} We are now ready to prove the first four parts of Theorem~\ref{theo:J}. \begin{proof}[Proof of Theorem~\ref{theo:J}\ref{jperfect}--\ref{jconn}] We note first that $J(f)$ is infinite by Propositions~\ref{prop:capclaim} and~\ref{J=J_cap}. Moreover, part \ref{jback} follows from Proposition~\ref{J=J_cap} since $J(f)$ is closed and completely invariant. We then complete the proof of part~\ref{jperfect} by using a standard argument to deduce from part~\ref{jback} that $J(f)$ is perfect. See, for example, \cite[Proof of Theorem 5.1(iv)]{MR3265283}. \\ Next we prove part \ref{jnice}, which states that $J(f) = J(f^p)$, for $p\in\N$. It is not hard to see that $E(f) = E(f^p)$. It is clear that $J(f^p) \subset J(f)$, and so we need to demonstrate the reverse inclusion. Our proof is similar to the proof of \cite[Theorem~5.2]{MR3265283}. In fact we will show that $J(f) \setminus E(f) \subset J(f^p)$; this is sufficient because $E(f)$ is finite, $J(f)$ is perfect and $J(f^p)$ is closed. Suppose that $x \in J(f) \setminus E(f)$, and let $U$ be a neighbourhood of $x$ disjoint from $E(f)$. Then \begin{equation} \label{daneq8} f^N(f^{-N}(U)) = U, \qfor N \in \N. \end{equation} Since $J(f^p)$ is infinite, and $U$ meets $J(f)$, there exists $m \in \N$ with the property that $f^m(U) \cap J(f^p) \ne \emptyset$. Let $V := f^m(U)$ and $m = pk - \ell$, with $k \in \N$ and $\ell \in \{0, 1, \ldots, p-1\}$. Then $V = f^{pk}(f^{-\ell}(U))$, by (\ref{daneq8}). Hence $$ f^{\ell}\left(\bigcup_{n\in\N} f^{pn}(V)\right) \subset f^{\ell}\left(\bigcup_{n\in\N} f^{pn}(f^{-\ell}(U))\right) = \bigcup_{n\in\N} f^{pn}(U). $$ We deduce that \begin{align} \label{daneq9} \R^d\setminus \bigcup_{n\in\N} f^{pn}(U) &\subset \R^d\setminus f^\ell\left(\bigcup_{n\in\N} f^{pn}(V)\right) \nonumber \\ &\subset \left(f^\ell\left(\R^d\right)\setminus f^\ell\left(\bigcup_{n\in\N} f^{pn}(V)\right)\right) \cup E(f^\ell) \nonumber \\ &\subset f^{\ell}\left(\R^d\setminus\bigcup_{n\in\N} f^{pn}(V)\right) \cup E(f^\ell). \end{align} This last set is finite, because $E(f^\ell) = E(f)$ is finite and because, by Proposition~\ref{prop:useful}, $$ \R^d\setminus\bigcup_{n\in\N} f^{pn}(V) \subset E(f^p) = E(f), $$ since $V$ is open and meets $J(f^p)$. We have shown that $\R^d\setminus \bigcup_{n\in\N} f^{pn}(U)$ is a finite set, for any sufficiently small neighbourhood, $U$, of $x$. It follows that $x \in J(f^p)$. Thus $J(f) \setminus E(f) \subset J(f^p)$, as required. \\ Finally we prove part \ref{jconn}, which states that either $J(f)$ is connected or it has infinitely many components. Suppose that $J(f)$ has finitely many components $J_1, \ldots, J_n$ with $n\in\N$. Since $J(f)$ is perfect, none of these components is a singleton and hence each is an infinite set. By complete invariance, each image $f(J_j)$ is contained in some component $J_k$. Moreover, each $J_k$ must contain some image $f(J_j)$ because every point in $J(f)\setminus E(f)$ must have a preimage under $f$. Thus $f$ permutes the set of components $\{J_1, \ldots, J_n\}$, and so there exists $p\in\N$ such that $f^p(J_j) \subset J_j$, for $j\in\{1,\ldots,n\}$. Since $J(f^p) = J(f)$, by part \ref{jnice}, we can assume that $p=1$. Let $G$ be the complement of $J_1$. Then $f(G) \subset G$, and it follows from the definition of $J(f)$ that $G \subset QF(f)$. Therefore, we conclude that $J_1$ is the only component of $J(f)$, as required. \end{proof} Finally in this section, we prove that our definition of the Julia set agrees with the classical definition for a transcendental analytic self-map of $\C^*$. \begin{proof}[Proof of Theorem~\ref{theo:Jclassical}] Suppose that $f$ is a transcendental analytic self-map of $\C^*$, and let $J_{\operatorname{class}}(f)$ denote the (classical) Julia set. Note that we have $E(f) = \{0, \infty\}$. Choose any point $z \in J_{\operatorname{class}}(f) \setminus \{0, \infty\}$. The fact that $z \in J(f)$ follows from Montel's theorem. It then follows that $J(f) = \overline{O^-(z)} = J_{\operatorname{class}}(f)$, by Theorem~\ref{theo:J}\ref{jback} and the $\C^*$ analogue of this result (see \cite{Bhattacharyya}). \end{proof} \section{The fast escaping set} \label{section:A} In this section we give the precise definitions of the little fast escaping sets, and the fast escaping set, of a quasiregular map $f$ of $S$-transcendental type. We then establish some fundamental properties of these sets before proving Theorem~\ref{theo:A1}. We begin by considering the maximum modulus sequences that were mentioned in the introduction. Given an itinerary $e \in \mathcal{P}^{\No}$ and a sufficiently large $R>0$, the following lemma allows us to define the maximum modulus sequence for $e$ starting at $R$ by setting $R_0 = R$ and \begin{equation} \label{Rndef2} R_n := M_{{e_{n-1}},e_{n}}(R_{n-1},f), \qfor n\in\N. \end{equation} \begin{lemma} \label{lemm:mmseq} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Then there exists $R(f) > \rho_S$ such that if $R > R(f)$ and $e \in \mathcal{P}^{\No}$, then the maximum modulus sequence for $e$ starting at $R$, denoted $(R_n)_{n\in\No}$, can be defined as above and the following hold: \begin{enumerate}[label=(\alph*)] \item $M_{j,k}(r, f) > r^2$, for $j,k \in \mathcal{P}$ and $r > R(f)$;\label{Misbig} \item the sequence $(R_n)_{n\in\No}$ is strictly increasing and $R_n \rightarrow\infty$ as $n\rightarrow\infty$;\label{seqgrows} and \item if $R' > R$ and $(R'_n)_{n\in\No}$ is the maximum modulus sequence for $e$ starting at $R'$, then $R'_n > R_n$, for $n\in\No$.\label{seqbigger} \end{enumerate} \end{lemma} \begin{proof} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. By Lemma~\ref{lemma:gen}\ref{Mbig}, and since $\mathcal{P}$ is finite, we can choose $R(f) > \max\{1,\rho_S\}$ sufficiently large that $M_{j,k}(r,f) > r^2$, for $j, k \in \mathcal{P}$ and $r > R(f)$. Parts \ref{Misbig} and \ref{seqgrows} follow. In particular, the sequence $(R_n)$ can be defined by \eqref{Rndef2} as each term is greater than $\rho_S$. Increasing $R(f)$ if necessary, part \ref{seqbigger} follows from Lemma~\ref{lemma:gen}\ref{Mnormal}.\end{proof} For brevity, we refer throughout this paper to the constant $R(f)$ in Lemma~\ref{lemm:mmseq} simply as $R(f)$. Now, suppose that $R > R(f)$ and that $e \in \mathcal{P}^{\No}$, and let $(R_n)_{n\in\No}$ be the maximum modulus sequence for $e$ starting at $R$. In a similar way to \cite{DMP1}, for each $\ell \in \Z$ we define \emph{closed} sets -- the \emph{little level sets} -- by $$ A_e^{\ell}(f, R) := \{ x : |f^{\ell+n}(x)|_{e_{n}} \geq R_n, \text{ for } n \in\No \text{ such that } n + \ell \geq 0 \}. $$ A note on this definition. An itinerary $e \in \mathcal{P}^{\No}$ represents a way of approaching $S$ by proximity to a particular sequence $(y_{e_n})_{n\in\No}$ of elements of $S$. Roughly speaking, a point lies in $A_e^\ell(f,R)$ if its iterates tend to $S$ with a certain itinerary, faster than the maximum modulus sequence $(R_n)_{n\in\No}$ grows for the same itinerary. We denote the \emph{shift map} by $\sigma$; in other words, $\sigma(e_0 e_1 \ldots) = e_1 e_2 \ldots$. We then define the \emph{little fast escaping set $A_e(f)$} by $$ A_e(f) := \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A_{\sigma^k(e)}^{\ell}(f, R). $$ Note that we have suppressed the dependence on $R$, because we show in Theorem~\ref{theo:A2}\ref{aindepR} below that this definition is independent of the choice of $R$, provided that $R>R(f)$. We also stress that the maximum modulus sequence used in the definition of $A_{e}^{\ell}(f, R)$ is not, in general, the same as the maximum modulus sequence used in the definition of, for example, $A_{\sigma(e)}^{\ell}(f, R)$. Finally we define the \emph{fast escaping set} by $$ A(f) := \bigcup_{e \in \mathcal{P}^{\No}} A_e(f). $$ \begin{remarks}\normalfont Our notation is necessarily rather different to that in \cite{DMP1}. However, it can be shown that for a transcendental analytic self-map of $\C^*$ our definitions of the little fast escaping sets and fast escaping set are equivalent to those of \cite{DMP1}. We also observe in passing that in the case that $\nu=0$ and $S = \{ \infty\}$, which we are not studying here, the set $\mathcal{P}^{\No}$ contains a single element, and our definition of the fast escaping set coincides with that given in \cite{MR3215194, MR3265357} for a quasiregular map with a single essential singularity at infinity. \end{remarks} The following proposition is useful; the proof is almost immediate from the definitions. \begin{proposition} \label{ldown} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type, that $e \in \mathcal{P}^{\No}$ and that $R > R(f)$. Then \begin{equation} \label{prope1} A_{\sigma^k(e)}^{\ell}(f, R) \subset A_{\sigma^{k+1}(e)}^{\ell+1}(f, R), \qfor \ell\in \Z \text{ and } k\in\No, \end{equation} and \begin{equation} \label{prope2} A_e(f) = \bigcup_{\substack{\ell\in\No \\ k\in\No}} A_{\sigma^k(e)}^{\ell}(f, R). \end{equation} \end{proposition} \begin{proof} Let $(R_n)_{n\in\No}$ be the maximum modulus sequence for $\sigma^k(e)$ starting at $R$, and let $(R'_n)_{n\in\No}$ be the maximum modulus sequence for $\sigma^{k+1}(e)$ starting at $R$. It follows from Lemma~\ref{lemm:mmseq} that $R_{n+1} > R'_n$, for $n\in\No$. Suppose that $x \in A_{\sigma^k(e)}^{\ell}(f, R)$. It follows that $$ |f^{\ell+n+1}(x)|_{e_{n+k+1}} \geq R_{n+1} > R'_n, \qfor n\in\No, \ \ell + n + 1 \geq 0. $$ Hence $x \in A_{\sigma^{k+1}(e)}^{\ell+1}(f, R)$, and (\ref{prope1}) follows. Equation (\ref{prope2}) then follows from the observation that if $\ell < 0$, then (\ref{prope1}) implies that $A_{\sigma^k(e)}^{\ell}(f, R) \subset A_{\sigma^{k-\ell}(e)}^{0}(f, R)$, for $k \in \No$. \end{proof} Our next result collects a number of facts concerning the fast escaping set and the little fast escaping sets. If $e$ and $e'$ are elements of $\mathcal{P}^{\No}$, then we say that they are \emph{equivalent} if there exist integers $n$ and $m$ such that $\sigma^n(e) = \sigma^m(e')$. \begin{theorem} \label{theo:A2} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type and that $e, e' \in \mathcal{P}^{\No}$. Then we have the following. \begin{enumerate}[label=(\alph*) \item The definitions of $A_e(f)$ and $A(f)$ are both independent of the choice of $R > R(f)$.\label{aindepR} \item The sets $A(f)$ and $A_e(f)$ are completely invariant.\label{ainv} \item The sets $A_e(f)$ and $A_{e'}(f)$ are equal if $e$ and $e'$ are equivalent, but are disjoint otherwise. In particular, $A_e(f) = A_{\sigma(e)}(f)$. \label{aequiv} \end{enumerate} \end{theorem} \begin{proof} To prove part~\ref{aindepR}, we only need to prove that the definition of $A_e(f)$ is independent of the choice of $R> R(f)$, since the fact that the definition of $A(f)$ is independent of the choice of $R> R(f)$ follows from this. Suppose, without loss of generality, that $R' > R > R(f)$. It follows from Lemma~\ref{lemm:mmseq}\ref{seqbigger} that \begin{equation} \label{anincl} \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A_{\sigma^k(e)}^{\ell}(f, R') \subset \bigcup_{\substack{\ell\in\Z \\ k\in\No}}A_{\sigma^k(e)}^{\ell}(f, R). \end{equation} We complete the proof of \ref{aindepR} by showing that the reverse inclusion to (\ref{anincl}) holds. First, by Lemma~\ref{lemm:mmseq}\ref{Misbig}, we choose $\eta\in\N$ sufficiently large that the following holds. If $\tilde{e} \in \mathcal{P}^{\No}$ and $(\rho_n)_{n\in\No}$ is the maximum modulus sequence for $\tilde{e}$ starting at $R$, then $\rho_\eta > R'$. Let $\tilde{e}$ be the symbol sequence which consists of, for example, $\eta$ zeros followed by the symbols of $e$. Suppose that $\ell \in \Z$ and $k \in\No$. Let $(\rho_n)_{n\in\No}$ be the maximum modulus sequence for $\sigma^{k}(\tilde{e})$ starting at $R$. By the choice of $\eta$, we have that $\rho_\eta > R'$, and so it follows from Lemma~\ref{lemm:mmseq}\ref{seqbigger} and the definition of $\tilde{e}$ that $$ A_{\sigma^k(e)}^{\ell}(f, R') \supset A_{\sigma^k(e)}^{\ell}(f, \rho_\eta) = A_{\sigma^{k+\eta}(\tilde{e})}^{\ell}(f, \rho_\eta). $$ We claim that $A_{\sigma^{k+\eta}(\tilde{e})}^{\ell}(f, \rho_\eta) \supset A_{\sigma^{k}(\tilde{e})}^{\ell-\eta}(f, R)$. For, suppose that $x \in A_{\sigma^{k}(\tilde{e})}^{\ell-\eta}(f, R)$. It follows that $$ |f^{\ell-\eta+n}(x)|_{\tilde{e}_{k+n}} \geq \rho_n, \qfor n\in \No, \ \ell - \eta + n \geq 0, $$ in which case $$ |f^{\ell+n}(x)|_{\tilde{e}_{k+\eta+n}} \geq \rho_{n+\eta}, \qfor n \in \No, \ \ell + n \geq 0. $$ Since $(\rho_{n+\eta})_{n\in\No}$ is the maximum modulus sequence for $\sigma^{k+\eta}(\tilde{e})$ starting at $\rho_\eta$, we deduce that $x \in A_{\sigma^{k+\eta}(\tilde{e})}^{\ell}(f, \rho_\eta)$, and the claim follows. Combining these results, we have shown that $$ A_{\sigma^k(e)}^{\ell}(f, R') \supset A_{\sigma^{k}(\tilde{e})}^{\ell-\eta}(f, R). $$ We deduce that \begin{align*} \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A^{\ell}_{\sigma^k(e)}(f, R') &\supset \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A^{\ell-\eta}_{\sigma^k(\tilde{e})}(f, R) = \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A^{\ell}_{\sigma^k(\tilde{e})}(f, R) \\ &\supset \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A^{\ell}_{\sigma^{k+\eta}(\tilde{e})}(f, R) = \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A^{\ell}_{\sigma^k(e)}(f, R), \end{align*} which completes the proof of \ref{aindepR}. \\ For part \ref{ainv}, we first prove that $A_e(f)$ is completely invariant. Fix $R>R(f)$. Suppose that $x \in A_e(f)$, in which case there exists $\ell\in\Z$ and $k \in \No$ such that $x \in A_{\sigma^k(e)}^{\ell}(f, R)$. It follows that $f(x) \in A_{\sigma^k(e)}^{\ell-1}(f, R) \subset A_e(f)$. The fact that $f(x) \in A_e(f)$ implies that $x \in A_e(f)$ follows very similarly, using Proposition~\ref{ldown}. Hence $A_e(f)$ is completely invariant. It then follows that the same it true for $A(f)$. \\ For part \ref{aequiv}, we first show that $A_e(f) = A_{\sigma(e)}(f)$. For, taking $R>R(f)$, $$ A_{\sigma(e)}(f) = \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A_{\sigma^{k+1}(e)}^{\ell}(f, R) = \bigcup_{\substack{\ell\in\Z \\ k\in\N}} A_{\sigma^k(e)}^{\ell}(f, R) \subset A_e(f). $$ Moreover, by Proposition~\ref{ldown}, $$ A_{e}(f) = \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A_{\sigma^k(e)}^{\ell}(f, R) \subset \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A_{\sigma^{k+1}(e)}^{\ell+1}(f, R) = \bigcup_{\substack{\ell\in\Z \\ k\in\No}} A_{\sigma^{k}(\sigma(e))}^{\ell}(f, R) = A_{\sigma(e)}(f). $$ Hence $A_e(f) = A_{\sigma(e)}(f)$, as claimed. By repeated application of this equality, it then follows that $A_e(f) = A_{e'}(f)$ if $e$ and $e'$ are equivalent. Next we note that if $R > \rho_S$ is sufficiently large, then the sets $$\{ x \in \widehat{\R^d}\setminus S : |x|_j > R\}, \qfor j \in \mathcal{P},$$ are pairwise disjoint. The fact that $A_e(f)$ and $A_{e'}(f)$ are disjoint if $e$ and $e'$ are not equivalent follows from this observation. \end{proof} To show that each little fast escaping set is non-empty, we require a covering result that is analogous to \cite[Proposition 5.1]{MR3215194}. \begin{lemma} \label{lemma:cov} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type, and that $\alpha, \beta > 1$. Then there exists $r_0 > \rho_S$ such that, for all $r > r_0$ and all $j, k \in \mathcal{P}$, there exists $R > M_{j,k}(r,f)$ such that \begin{equation} \label{eq:cov} f(\overline{A_j(r, \alpha r)}) \supset \overline{A_k(R, \beta R)}. \end{equation} \end{lemma} \begin{proof} Since $\mathcal{P}$ is a finite set, it suffices to show that there exists such an $r_0$ for any given $j, k \in \mathcal{P}$. Suppose then that $j, k \in \mathcal{P}$, and consider the quasiregular map $g = \phi_k \circ f \circ \phi_j^{-1}$, which is quasiregular on a punctured neighbourhood of $\infty$, and has an essential singularity at $\infty$. We are required to prove that there exists $r_0 > \rho_S$ such that for all $r > r_0$ there exists $R > M(r,g)$ such that $g(\overline{A(r, \alpha r)}) \supset \overline{A(R, \beta R)}$. The proof of this, using, for example, equation (\ref{anMequation}), is almost identical to that of \cite[Proposition 5.1]{MR3215194} and is omitted. \end{proof} \begin{proof}[Proof of Theorem~\ref{theo:A1}] Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type and that $e \in \mathcal{P}^{\No}$. Let $R > R(f)$, where $R(f)$ is the constant from Lemma~\ref{lemm:mmseq}, and let $(R_n)_{n\in\No}$ be the maximum modulus sequence for $e$ starting at $R$. These definitions are in place throughout the proof. \\ First we prove that $A_e(f)$ is non-empty. Let $(r_n)_{n\in\No}$ be an increasing sequence of real numbers greater than $R$, such that \begin{equation} \label{eq:inA1} r_{n+1} > M_{e_n,e_{n+1}}(r_n,f), \qfor n\in\No, \end{equation} and \begin{equation} \label{eq:inA2} f(\overline{A_{e_n}(r_n, 2r_n)}) \supset \overline{A_{e_{n+1}}(r_{n+1}, 2r_{n+1})}, \qfor n\in\No. \end{equation} The existence of such a sequence follows from Lemma~\ref{lemma:cov}, with $\alpha = \beta = 2$. Observe that it follows from (\ref{eq:inA1}) and from Lemma~\ref{lemma:gen}\ref{Mnormal} that \begin{equation} \label{reallyinA} r_n \geq R_n, \qfor n \in \No. \end{equation} It follows from (\ref{eq:inA2}), using Lemma~\ref{lemm:exists}, that there is a point $\xi \in \overline{A_{e_0}(r_0, 2r_0)}$ with the property that $f^{n}(\xi) \in \overline{A_{e_n}(r_n, 2r_n)}$, for $n\in\N$. The fact that $\xi \in A_e(f)$ follows from (\ref{reallyinA}). \\ The proof that all components of $A_e(f)$ are $S$-unbounded is as follows. By Theorem~\ref{theo:A2}\ref{aindepR} we can assume that $R$ is as large as we wish. In particular, we assume that $R=R_0$ is sufficiently large that the following holds for all $r > R_0$: If~$j,k \in \mathcal{P}$ and $x \in \R^d$ is such that $r/2 \leq |x|_j < r$, then \begin{equation} \label{smallmaxmod} |f(x)|_k < M_{j, k}(r, f). \end{equation} By Proposition~\ref{ldown}, every point in $A_e(f)$ lies in a little level set $A_{\sigma^k(e)}^{\ell}(f, R)$ for some $\ell, k \in \No$. We aim to prove that every component of all such sets is $S$-unbounded. Since $e$ is arbitrary, we can assume that $k=0$. Next, we show that there is no loss of generality in assuming that $\ell=0$. To see this, suppose that $y\in A_e^\ell(f,R)$ and that $f^{\ell}(y)$ lies in an $S$-unbounded component, $X$ say, of $A_e^0(f,R)$. Recalling that $A_e^0(f,R)$ is closed, it follows by Proposition~\ref{bflmpunctured} that the component of $f^{-\ell}(X)$ containing $y$ is $S$-unbounded. Hence, since $f^{-\ell}(X) \subset A_{e}^{\ell}(f, R)$, the point $y$ lies in an $S$-unbounded component of $A_{e}^{\ell}(f, R)$. It remains to show that all components of $$ A := A_e^{0}(f, R) = \{ x \in\widehat{\R^d}\setminus S: |f^{n}(x)|_{e_{n}} \geq R_n \text{ for } n\in\No \}, $$ are $S$-unbounded. We take $\xi \in A$ and now aim to show that $\xi$ lies in a connected subset of $A$ that is $S$-unbounded. Fix a natural number $n$, and define sets $$ X_{n,j} := f^{-j}(\{ x \in \widehat{\R^d} \setminus S : |x|_{e_n} \geq R_n \}), \qfor j \in \{0,1,\ldots, n\}. $$ These sets are all closed (recall that topological operations are taken in $\widehat{\R^d} \setminus S$). Moreover, by Proposition~\ref{bflmpunctured}, all components of these sets are $S$-unbounded. For each $j \in \{0,1,\ldots, n\}$, let $L_{n,j}$ denote the component of $X_{n,j}$ that contains $f^{n-j}(\xi)$; clearly these sets are also closed and connected. We claim that \begin{equation} \label{sizeclaim} L_{n,j} \subset \{ x \in \widehat{\R^d} \setminus S : |x|_{e_{n-j}} \geq R_{n-j} \}, \qfor j \in \{0,1,\ldots, n\}. \end{equation} It is clear that (\ref{sizeclaim}) holds when $j=0$. Now suppose that (\ref{sizeclaim}) holds when $j=p-1$, for some $p \in \{1,\ldots,n\}$. Suppose, by way of contradiction, that there exists $w \in L_{n,p}$ such that $|w|_{e_{n-p}} < R_{n-p}$. Since $L_{n,p}$ is connected and contains $f^{n-p}(\xi)$, it follows that there exists $w' \in L_{n,p}$ such that $R_{n-p}/2 \leq |w'|_{e_{n-p}} < R_{n-p}$. Note that $f(w') \in L_{n,p-1}$, and so $$ |f(w')|_{e_{n-p+1}} \geq R_{n-p+1} = M_{{e_{n-p}},e_{n-p+1}}(R_{n-p},f). $$ We deduce a contradiction to (\ref{smallmaxmod}). For simplicity we now set $L_n := L_{n,n}$. We have obtained that, for each $n\in\N$, $L_n$ is a closed, connected, $S$-unbounded set, lying in $\{ x \in \widehat{\R^d} \setminus S : |x|_{e_{0}} \geq R_{0} \}$. Moreover, since $L_n$ is $S$-unbounded and $\{ x \in \widehat{\R^d} : |x|_{e_{0}} \geq R_{0} \} \cap S = \{y_{e_0}\}$, by the choice of $R_0$, we have that $L_n \cup \{y_{e_0}\}$ is connected, and is a continuum. From (\ref{sizeclaim}) we see that $L_{n+1,1}\subset X_{n,0}$, and it easily follows that $L_{n+1} \subset L_n$. We deduce that $(L_n \cup \{y_{e_0}\})_{n\in\N}$ is a nested sequence of continua, each of which contains $\xi$ and $y_{e_0}$. It then follows, by \cite[Theorem 1.8]{MR1192552}, that $$ K = \bigcap_{n\in\N} (L_n \cup \{y_{e_0}\}), $$ is a continuum containing $\xi$ and $y_{e_0}$. Observe also that $K\setminus\{y_{e_0}\} \subset A$. Finally, we let $X'$ be the component of $K \setminus \{y_{e_0}\}$ that contains $\xi$. Clearly $X'$ is connected, and it follows by Proposition~\ref{kurat}, with $X = K \setminus \{y_{e_0}\}$, that $X'$ is $S$-unbounded, as required. \end{proof} \begin{remark}\normalfont It is natural to ask if $A(f) = A(f^p)$, holds for $p\in\N$; this is known to be true for quasiregular maps of $\R^d$ of transcendental type \cite[Proposition 3.1]{MR3215194}. In fact this is not the case, even for transcendental analytic self-maps of $\C^*$. For example, let $f$ be the transcendental analytic self-map of $\C^*$ given by $$f(z) := \exp(\exp(1/z) + z).$$ It can be shown that if $x>0$ is large, then $x \in A_e(f)$, where $e = 0 0 \ldots$. Hence $x \in A(f)$. However, $M_{0,0}(r,f^2) \geq \exp\exp(e^{r/2})$, for large values of $r$. It can then be deduced that $x \notin A(f^2)$, and so $A(f) \ne A(f^2)$. \end{remark} \section{The boundary of the fast escaping set}\label{section:AJ} In this section we prove Theorem~\ref{theo:AJ}. We begin by considering the set $BO(f)$ of points whose forward orbit is $S$-bounded; in other words, $$ BO(f) := \{ x \in \widehat{\R^d} \setminus S : \exists \ L > 0 \text{ s.t. } |f^k(x)|_j < L, \text{ for } k \in \No,\, j \in \mathcal{P}\}. $$ \begin{proposition} \label{prop:BO} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Then $BO(f)$ is infinite. \end{proposition} \begin{proof} Let $q$ be Rickman's constant. By taking $N=q+1$ and applying Proposition~\ref{danprop2} as in the proof of Proposition~\ref{prop:capclaim}, we see that for any sufficiently large $s> \rho_S$ the sets $U_i=A(3^{i}s, 2\cdot 3^{i}s)$ have the property that, for each $j\in\{1,\ldots,N\}$, there exists $i\in\{1,\ldots,N\}$ such that $f(U_j)\supset U_i$. It follows that there exists ${j'} \in \{1, \ldots, N\}$ and $p \in \N$ such that $f^p(U_{j'}) \supset U_{j'}$. Since $s > \rho_S$, the sets ${U_i}$ are all $S$-bounded. We can deduce, using Lemma~\ref{lemm:exists}, that there exists $\xi \in \overline{U_{j'}}$ such that $f^{kp}(\xi) \in \overline{U_{j'}}$, for $k\in\No$. Hence $\xi \in BO(f)$. Since we are free to choose $s$ arbitrarily large, we deduce that $BO(f)$ is infinite. \end{proof} We require the following, which is extracted from the proof of \cite[Theorem 3.3]{MR686641}. If $a \in \R^d$ and $r > 0$, then we let $B(a,r) := \{ x \in \R^d : |x-a| < r \}$. \begin{lemma} \label{RVTheorem3.3} Suppose that $G \subset \R^d$ is an unbounded domain with the property that there exist $\delta>0$ and $r_0 > 0$ such that \begin{equation} \label{RVcondition} \operatorname{cap}(B(0,2r), (\R^d\setminus G) \cap \overline{B(0,r)}) \geq \delta, \qfor r \geq r_0. \end{equation} Suppose also that $g : G \to \R^d$ is a non-constant quasiregular map such that ${|g(x_0)|>1}$, for some $x_0\in G$, and \begin{equation} \label{preveq} \limsup_{x \rightarrow y} |g(x)| \leq 1, \qfor y \in \partial G, \end{equation} where the boundary in (\ref{preveq}) is taken in $\R^d$. Then there exist $\alpha > 1$, $\beta \in (0,1)$ and $\rho_0>0$ such that if $r/\alpha>s>\rho_0$, then \[ \log\log M_G(s,g) \le \left(\frac{\log(r/s)}{\log\alpha} - 1\right)\log(1-\beta) + \log\log M_G(r,g), \] where $M_G(r,g)= \sup\{|g(x)| : x \in G, \ |x| = r\}$. \end{lemma} We observe that the condition (\ref{RVcondition}) certainly holds if $\R^d \setminus G$ contains an unbounded curve; see, for example, \cite[Remark 3.4]{MR686641}. We use Lemma~\ref{RVTheorem3.3} to prove the following. \begin{lemma} \label{lemma:grows} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Then there exist $\rho_0>\rho_S$, $\alpha>1$ and $B>0$ such that if $r/\alpha > s > \rho_0$ and $j, k \in \mathcal{P}$, then \begin{equation} \label{Mgrows} \log \frac{\log M_{j,k}(r,f)}{\log M_{j,k}(s,f)} \ge B\log \frac{r}{s}. \end{equation} \end{lemma} \begin{proof} Since $\mathcal{P}$ is a finite set, it will suffice to prove the result for some fixed choice of $j,k \in\mathcal{P}$. By \eqref{rhoSdef}, the map $g := \phi_k \circ f \circ \phi_j^{-1}$ is quasiregular on the set $\{x\in\R^d : |x| \ge \rho_S\}$. It follows from Lemma~\ref{lemma:asympt}, together with the fact that $\nu > 0$, that there is a curve which accumulates only at infinity, $\Gamma$ say, on which $g$ is bounded. By taking a subcurve of $\Gamma$, if necessary, we can assume that $\Gamma$ is simple, and that $\Gamma \subset \{ x \in \R^d : |x| > \rho_S \}$. It follows that $$G := \{ x \in \R^d : |x| > \rho_S \} \setminus \Gamma$$ is a domain. Note that $g$ is unbounded on $G$ because $g$ has an essential singularity at infinity. We deduce by Lemma~\ref{RVcondition}, applied to a constant multiple of $g$, that there exist $\rho_0>\rho_S$, $\alpha>1$ and $B,C>0$ such that, for $r/\alpha > s > \rho_0$, \[ \log \frac{\log M_{j,k}(r,f)}{\log M_{j,k}(s,f)} = \log \frac{\log M_G(r,g)}{\log M_G(s,g)} \ge 2B\log\left(\frac{r}{s}\right) - C. \] The result follows, by increasing $\alpha$ if necessary. \end{proof} Next, we apply Lemma~\ref{lemma:grows} to compare the rate of growth of two related maximum modulus sequences. \begin{lemma}\label{lemma:En} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Let $\rho_0$, $\alpha$ and $B$ be as given by Lemma~\ref{lemma:grows}. Suppose that $R>R(f)$ satisfies \begin{equation}\label{Rdef} R > \max\{\rho_0, \alpha, \exp(2/B) \} \quad \mbox{and} \quad \frac{\log M_{j,k}(R,f)}{\log R} \ge \exp(1), \qfor j,k\in\mathcal{P}. \end{equation} Let $e \in \mathcal{P}^\No$ and let $(R_n)_{n\in\No}$ be the maximum modulus sequence for $e$ starting at~$R$ and $(S_n)_{n\in\No}$ be the maximum modulus sequence for $\sigma(e)$ starting at $R$. Then \begin{equation}\label{ineq:En} \log \frac{\log R_n}{\log S_{n-1}} \ge E_n, \end{equation} for $n\ge 1$, where $(E_n)$ denotes the iterated exponential sequence given by $E_1=1$ and $E_n=\exp(E_{n-1})$ for $n\ge2$. \end{lemma} Note that by Lemma \ref{lemma:gen}\ref{Mbig}, all sufficiently large $R$ satisfy condition \eqref{Rdef} above. \begin{proof}[Proof of Lemma~\ref{lemma:En}] The $n=1$ case holds because \[ \log \frac{\log R_1}{\log S_0} = \log \frac{\log M_{ e_0, e_{1}}(R,f)}{\log R} \ge 1 = E_1, \] by \eqref{Rdef}. So we assume that $n\ge 2$ and that \[ \log \frac{\log R_{n-1}}{\log S_{n-2}} \ge E_{n-1}, \] and we aim to prove \eqref{ineq:En}. Our assumption implies that $$R_{n-1}/S_{n-2} \ge {S_{n-2}}^{E_n-1} \ge R^{E_n-1} > \alpha.$$ Using \eqref{Rdef} and Lemma~\ref{lemma:grows} now leads to \begin{align*} \log \frac{\log R_n}{\log S_{n-1}} &= \log \frac{\log M_{ e_{n-1}, e_{n}}(R_{n-1},f)}{\log M_{ e_{n-1}, e_{n}}(S_{n-2},f)} \\ &\ge B\log \frac{R_{n-1}}{S_{n-2}} \\ &\ge B(E_n-1)\log R \\ &\ge 2(E_n-1) \ge E_n. \qedhere \end{align*} \end{proof} \begin{proof}[Proof of Theorem~\ref{theo:AJ}] Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. Let $e \in \mathcal{P}^\No$. Suppose first that $x \in J(f)$, and let $U\subset \widehat{\R^d}\setminus S$ be a neighbourhood of $x$. It follows from Proposition~\ref{prop:BO}, and the definition of the Julia set, that there exists $\xi_0 \in U$ and $n_0 \in \N$ such that $f^{n_0}(\xi_0) \in BO(f)$. We deduce that $U$ meets the complement of $A_e(f)$. By Theorem~\ref{theo:A1}, $A_e(f)$ contains an $S$-unbounded component, and so is infinite. Hence, we can deduce in the same way that there exists $\xi_1 \in U$ and $n_1 \in \N$ such that $f^{n_1}(\xi_1) \in A_e(f)$. We deduce, by Theorem~\ref{theo:A2}\ref{ainv}, that $U$ meets $A_e(f)$. Since $U$ was arbitrary, we conclude that $J(f) \subset \partial A_e(f)$. It follows by a similar argument that $J(f) \subset \partial A(f)$. We next show that $\partial A_e(f) \subset J(f)$, for each $e \in\mathcal{P}^{\No}$. The proof of this fact is similar to the proof of \cite[Theorem 1.2]{MR3265357}, although we give sufficient detail to show how that proof transfers into our setting. We note that a key difference between \cite[Theorem 1.2]{MR3265357} and Theorem~\ref{theo:AJ} is that, in our setting, a result on the growth of the generalised maximum modulus functions (equation (\ref{Mgrows})) always holds, whereas for the transcendental type quasiregular self-maps of $\R^d$ studied in \cite{MR3265357}, an analogous property needs to be taken as an additional hypothesis. We now let $e \in \mathcal{P}^{\No}$, and suppose, by way of contradiction, that there exists a point $x_0 \in \partial A_e(f)$ such that $x_0 \notin J(f)$. Since $J(f)$ is closed, we can let $r>0$ be sufficiently small that $$B(x_0, 4r) \cap (J(f) \cup S) = \emptyset.$$ We can also assume, since $J(f) = J_{\operatorname{cap}}(f)$ (see Proposition~\ref{J=J_cap}), that $r$ is sufficiently small that the iterates of $f$ omit a set of positive capacity in $B(x_0, 4r)$. Since $x_0 \in \partial A_e(f)$, we can choose points $$x_A \in B(x_0,r) \cap A_e(f) \quad\text{and}\quad x_N \in B(x_0,r) \setminus A_e(f).$$ Take $R>R(f)$ sufficiently large that condition \eqref{Rdef} is satisfied. From Theorem~\ref{theo:A2}\ref{aindepR} and Proposition~\ref{ldown}, we see that there exist $\ell \in \No$ and $k \in \No$ such that $x_A\in A_{\sigma^k(e)}^\ell(f,R)$. Let $(R_n)_{n\in\No}$ be the maximum modulus sequence for $\sigma^k(e)$ starting at~$R$, and let $(S_n)_{n\in\No}$ be the maximum modulus sequence for $\sigma^{k+1}(e)$ starting at~$R$. Lemma~\ref{lemma:En} tells us that $R_n$ grows much faster than $S_{n-1}$; our aim now is to seek a contradiction to this fact. By the definition of $A_{\sigma^k(e)}^\ell(f,R)$, we have that \[ |f^{\ell+n}(x_A)|_{e_{k+n}} \geq R_n, \qfor n\in\No. \] We claim that, on the other hand, the fact that $x_N\notin A_e(f)$ implies that there exists an infinite set $\mathcal{N} \subset \N$ such that \begin{equation} \label{newclaim} |f^{\ell+n}(x_N)|_{e_{k+n}} < S_{n-1}, \qfor n \in \mathcal{N}. \end{equation} For, suppose that (\ref{newclaim}) does not hold, in which case there exists $n_0 \in \N$ such that \begin{equation} \label{newclaim2} |f^{\ell+n}(x_N)|_{e_{k+n}} \geq S_{n-1}, \qfor n \geq n_0. \end{equation} Set $\ell' = \ell + n_0$, $k' = k + n_0$ and $S'_n = S_{n_0-1+n}$, for $n \in \No$. It then follows from (\ref{newclaim2}) that $$ |f^{\ell'+n}(x_N)|_{e_{k'+n}} \geq S'_{n}, \qfor n \geq 0. $$ Since $(S_n)_{n\in\No}$ is the maximum modulus sequence for $\sigma^{k+1}(e)$ starting at $R$, it follows that $(S'_n)_{n\in\No}$ is the maximum modulus sequence for $\sigma^{k'}(e)$ starting at $S'_0$. It follows that $x_N \in A^{\ell'}_{\sigma^{k'}(e)}(f, S'_0)$ and so $x_N \in A_e(f)$. This contradiction completes the proof of our claim (\ref{newclaim}). Next, for $n\in\mathcal{N}$, we set $$ X_{A,n} := \{ x \in B(x_0, 2r) : |f^{\ell+n}(x)|_{e_{k+n}} \geq R_{n} \} $$ and $$ X_{N,n} := \{ x \in B(x_0, 2r) : |f^{\ell+n}(x)|_{e_{k+n}} \leq S_{n-1} \}. $$ For $I \in \{A, N\}$ and $n\in\mathcal{N}$, we denote the component of $X_{I,n}$ that contains $x_I$ by $Y_{I,n}$. We assert that the closures of $Y_{A,n}$ and $Y_{N,n}$ both meet $\partial B(x_0, 2r)$. In fact, Proposition~\ref{bflmpunctured} tells us that all components of $(f^{\ell+n})^{-1}(E)$ are $S$-unbounded when $E$ is either $\{y\in \widehat{\R^d} : |y|_{e_{k+n}}\ge R_n\}$ or $\{y\in \widehat{\R^d} : |y|_{e_{k+n}}\le S_{n-1}\}$, and this implies our assertion. In particular, the connected sets $Y_{A,n}$ and $Y_{N,n}$ both have diameter at least $r$. Now, recalling notation from Section~\ref{sect:modulus}, let $\Gamma_n := \Delta(Y_{A,n}, Y_{N,n}; B(x_0, 2r))$. Following \cite{MR3265357}, we note that by \cite[Lemma~5.42]{MR950174}, there exists $\epsilon = \epsilon(d) > 0$ such that \begin{equation} \label{Mlower} M(\Gamma_n) \geq \epsilon, \qfor n\in\mathcal{N}. \end{equation} On the other hand, suppose that $n \in\mathcal{N}$, and let $F$ be the quasiregular map $F := \phi_{e_{k+n}} \circ f^{\ell+n}$. For exactly the same reasons as in \cite{MR3265357}, it can be deduced that there is a constant $L = L(d) > 0$ such that \begin{equation}\label{Mupper} M(\Gamma_n) \leq L K_O(F) K_I(F) \left(\log\frac{\log R_n}{\log S_{n-1}}\right)^{1-d}. \end{equation} Now, by (\ref{Keq}), we have $K_I(F) \leq K_I(f)^{\ell+n}$ and $K_O(F) \leq K_O(f)^{\ell+n}$. Hence, with $K = (K_O(f)K_I(f))^{1/(d-1)}$ we obtain, using (\ref{Mlower}) and (\ref{Mupper}), that there is a constant $L' = L'(d,f,\ell) > 0$ such that $$ \log\frac{\log R_{n}}{\log S_{n-1}} \leq L' K^n. $$ This is in contradiction to \eqref{ineq:En} for large $n\in\mathcal{N}$, and so $\partial A_e(f) \subset J(f)$ as required. \\ It remains to show that $J(f) = \partial A(f)$. Since we have that $J(f) \subset \partial A(f)$, we need to show that $\partial A(f) \subset J(f)$. Suppose, by way of contradiction, that there exists $x \in \partial A(f) \cap QF(f)$. Let $U \subset QF(f)$ be a neighbourhood of $x$. Then $U$ meets $A(f)$, and so there exists $e \in \mathcal{P}^\No$ such that $U$ meets $A_e(f)$. Since $\partial A_e(f) = J(f)$, it follows that $U \subset A_e(f)$, and so $U \subset A(f)$. This contradiction completes the proof. \end{proof} \section{Proof of the final part of Theorem~\ref{theo:J}} \label{section:julia2} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. In this section we prove Theorem~\ref{theo:J}\ref{jnoSbounded}, which states that $J(f)$ has no $S$-bounded components. Suppose, by way of contradiction, that $K$ is an $S$-bounded component of $J(f)$. Since $J(f)$ is closed, it follows by Proposition~\ref{prop:comps}, with $X = J(f)$, that there is an $S$-bounded domain $V$ such that $K \subset V$ and $\partial V \subset QF(f)$. By Corollary~\ref{corr:J} there exists $e \in \mathcal{P}^{\No}$ such that $A_e(f)\subset J(f)$. Each point of $K$ is in $J(f)$, and so, by Theorem~\ref{theo:AJ}, is also in $\partial A_e(f)$. It follows that $V$ meets $A_e(f)$. Hence $\partial V$ also meets $A_e(f)$, because, by Theorem~\ref{theo:A1}, every component of $A_e(f)$ is $S$-unbounded. However, $\partial V$ lies in $QF(f)$ and $A_e(f)$ does not meet $QF(f)$. This contradiction completes the proof. \section{Proof of Theorem~\ref{theo:F}} \label{section:fatou} Suppose that $f : \widehat{\R^d}\setminus S \to \widehat{\R^d} \setminus S$ is a quasiregular map of \mbox{$S$-transcendental} type. We first show that all quasi-Fatou components of $f$ are $S$-full. Suppose, by way of contradiction, that $U$ is a quasi-Fatou component of $f$ that is $S$-hollow. Let $X$ be an $S$-bounded complementary component of $U$. Clearly $X$ meets $J(f)$ and so $X$ contains a component of $J(f)$. Hence this component of $J(f)$ is $S$-bounded, in contradiction to Theorem~\ref{theo:J}\ref{jnoSbounded}. In the remainder of the proof, for simplicity, complementary components are taken in $\widehat{\R^d}$. We need to show that the number of quasi-Fatou components of $f$ having more than one complementary component is at most $\nu$. Suppose, by way of contradiction, that there is a set $V$ that is the union of $\nu+1$ quasi-Fatou components, each of which has more than one complementary component. It can be shown by an inductive argument that $V$ has at least $\nu+2$ complementary components. Since $S$ has $\nu+1$ elements, it follows that $V$ has a complementary component, $X$ say, which does not meet $S$. Then $X$ certainly meets $J(f)$ and so $X$ contains a component of $J(f)$. Hence this component of $J(f)$ is $S$-bounded, in contradiction to Theorem~\ref{theo:J}\ref{jnoSbounded}. \\ \noindent \emph{Acknowledgment:} The authors are grateful to David Mart{\'{\i}}-Pete for many helpful discussions.
\section{The basic homotopical interpretation} \begin {definition} A \emph{weak factorization system} on a category \ensuremath{\mathbb{C}}\ consists of two classes of arrows, \[ \xymatrix{ \L\ \ar@{_{(}->}[r] & \ensuremath{\mathbb{C}}_1 & \ar@{_{(}->}[l]\ \ensuremath{\mathcal{R}} } \] satisfying the following conditions: \begin{enumerate} \item Every arrow $f : X\to Y$ in \ensuremath{\mathbb{C}}\ factors as a left map followed by a right map, \[ \xymatrix{ X \ar[rr]^{f} \ar[rd]_{\L} && Y\\ & \cdot \ar[ru]_{\ensuremath{\mathcal{R}}} & } \] \item Given any commutative square \[ \xymatrix{ A \ar[d]_{\L} \ar[r] & B \ar[d]^{\ensuremath{\mathcal{R}}} \\ C \ar[r] \ar@{..>}[ru] & D } \] with an $\L$-map on the left and an $\ensuremath{\mathcal{R}}$-map on the right, there is a ``diagonal filler'' as indicated, making both triangles commute. \item Each of the classes $\L$ and $\ensuremath{\mathcal{R}}$ is closed under retracts in the arrow category $\ensuremath{\mathbb{C}}^{\rightarrow}$. \end{enumerate} \end{definition} Examples include (i) Groupoids (or categories), with $\ensuremath{\mathcal{R}}$ = isofibrations and $\L$ = injective equivalences; (ii) Simplicial sets, with $\ensuremath{\mathcal{R}}$ = Kan fibrations and $\L$ = acyclic cofibrations. Since a Quillen model structure on a category by definition involves two interrelated such weak factorization systems, this provides many examples as well as the basic homotopical intuition. In a WFS, we may think of the \ensuremath{\mathcal{R}}-maps as ``fibrations'', i.e.\ good families of objects indexed by the codomain. The basic idea of the homotopy interpretation is to use these as the dependent types. \subsection{Interpreting $\ensuremath{\mathsf{Id}}$-types} Let $\ensuremath{\mathbb{C}}$ be a category with finite limits and a WFS. Closed types are interpreted as $\ensuremath{\mathcal{R}}$-objects $A$, i.e.\ those for which $A\ensuremath{\rightarrow} 1$ is in $\ensuremath{\mathcal{R}}$. Dependent types $\types{x:A}{B}$ are interpreted as \ensuremath{\mathcal{R}}-maps $B\ensuremath{\rightarrow} A$. Terms $\terms{x:A}{b:B}$ are sections $b: A\ensuremath{\rightarrow} B$ of the chosen \ensuremath{\mathcal{R}}-map $B\ensuremath{\rightarrow} A$. The formation rule for \ensuremath{\mathsf{Id}}-types says that each type has an identity type: \begin{equation}\label{rule:idform}\tag{$\ensuremath{\mathsf{Id}}$-Form} \begin{prooftree} A\ \type \justifies x,y: A\ \vdash\ \id{A}(x,y)\ \type \end{prooftree} \end{equation} We model this by factoring the diagonal map of (the object interpreting) $A$ as an \L-map followed by an \ensuremath{\mathcal{R}}-map, using axiom 1 for the WFS: \[ \xymatrix{ & \ \id{A} \ar[rd] &\\ A \ar[rr] \ar[ru] && A\times A } \] The \ensuremath{\mathcal{R}}-map $\id{A} \ensuremath{\rightarrow} A\times A$ interprets the dependent type $x,y: A \vdash \id{A}(x,y)\ \type$. Th \L-factor $A\to \id{A}$ interprets the reflexivity term $\mathsf{refl}(x)$ in the \ensuremath{\mathsf{Id}}-introduction rule: \begin{equation}\label{rule:idintro}\tag{$\ensuremath{\mathsf{Id}}$-Intro} x:A\ \vdash\ \mathsf{refl}(x) : \id{A}(x,x) \end{equation} The $\ensuremath{\mathsf{Id}}$-elimination rule has the form: \begin{equation}\label{rule:idelim}\tag{$\ensuremath{\mathsf{Id}}$-Elim} \begin{prooftree} x,y: A, z:\id{A}(x,y)\vdash B(x,y,z)\ \type, \qquad x: A \vdash b(x) : B(x,x,\mathsf{refl}(x)) \justifies x,y: A, z:\id{A}(x,y)\vdash \mathsf{J}_b(x,y,z) : B(x,y,z) \end{prooftree} \end{equation} with associated computation rule: \begin{equation}\label{rule:idcomp}\tag{$\ensuremath{\mathsf{Id}}$-Comp} \mathsf{J}_b(x,x,\mathsf{refl}(x)) = b(x) : B(x). \end{equation} The data above the line in $\ensuremath{\mathsf{Id}}$-elimination are interpreted as a commutative square as on the outside of the following diagram: \begin{equation}\label{diag:idelim} \xymatrix@=3em{ A \ar[d]_{\mathsf{refl}} \ar[r]^b & B \ar[d] \\ \id{A} \ar[r]_{=} \ar@{..>}[ru]_{\mathsf{J}_b} & \id{A} } \end{equation} Since $\mathsf{refl}$ is an \L-map, and $B\ensuremath{\rightarrow} \id{A}$ is an \ensuremath{\mathcal{R}}-map (as the interpretation of a dependent type), there is a diagonal filler $\mathsf{J}_b$ as indicated. The commuting of the lower triangle means that $\mathsf{J}_b$ is a section of $B\ensuremath{\rightarrow} \id{A}$ and thus a term of the type required by the conclusion of the \ensuremath{\mathsf{Id}}-elimination rule. The commuting of the upper triangle is exactly the $\mathsf{J}$-computation rule. (See \cite{AW}.) \subsection{Coherence} The interpretation just sketched is required to respect the result of substituting a term into a context, since the rules have this property. Substitution into dependent types is interpreted as pullback, and substitution into terms as (roughly) composition. There are then three separate issues involved in giving a strict interpretation of type theory with \ensuremath{\mathsf{Id}}-types, and all three are called ``coherence'': \begin{enumerate} \item Using the fact that \ensuremath{\mathcal{R}}-maps are closed under retracts, one can show that they are also stable under pullback along any map, so the interpretation of dependent types as \ensuremath{\mathcal{R}}-maps is compatible with the interpretation of substitution as pullback. However, the fact that the pullback operation is defined only up to isomorphism means that the interpretation must be ``strictified'' in order to model substitution strictly. This is a known issue in the semantics of dependent type theory, with equally well-known solutions (including a recent one due to Lumsdaine and Warren \cite{LW}), and will not concern us further here. \item The choice of factorization of the diagonal, \[ \xymatrix{ & \ \id{A} \ar[rd] &\\ A \ar[rr] \ar[ru] && A\times A\,, } \] must be stable under pulback. Specifically, if $A$ is a type in context $\Gtypes{A}$ interpreted as an \ensuremath{\mathcal{R}}-map $A\ensuremath{\rightarrow}\ensuremath{\Gamma}$, then there is a factorization of the diagonal over $\ensuremath{\Gamma}$ of the form \[ \xymatrix{ & \ \id{A} \ar[rd] &\\ A \ar[rr] \ar[ru] \ar[rd] && \ar[ld] A\times_{\ensuremath{\Gamma}} A\,,\\ & \ensuremath{\Gamma} & } \] Pulling back along any $f : \Delta \to \ensuremath{\Gamma}$ preserves the diagonal, but not necessarily the \L-\ensuremath{\mathcal{R}}\ factorization, \[ \xymatrix{ & \ f^*\id{A} \ar[rd] &\\ f^*A \ar[rr] \ar[ru] \ar[rd] && \ar[ld] f^*A\times_{\Delta} f^*A\,.\\ & \Delta & } \] Choosing an \L-\ensuremath{\mathcal{R}}\ factorization of the pulled-back diagonal gives an interpretation of $\id{f^*A}$ that need not agree (even up to isomorphism) with $f^*\id{A}$. A choice of factorizations, for all diagonals, that respects pullback in this sense is said to be \emph{stable}. One way such a stable choice of factorizations can arise is when it is determined by exponentiating by a fixed ``interval'' object $\ensuremath{\mathrm{I}}$, so that $ \id{A}=A^\ensuremath{\mathrm{I}}$. This is what happens, for example, in the groupoid model, where as an interval one can take the groupoid with two objects and two, mutually inverse, non-identity arrows. \item Assuming a stable choice of factorizations of the diagonal, we have made a choice of diagonal fillers $\mathsf{J}$ in order to interpret the $\ensuremath{\mathsf{Id}}$-elimination rule. Again, there is no reason why these choices of diagonal fillers should ``respect substitution'' in the way required for the interpretation of type theory. More specifically, given a diagonal filling problem as on the right below, and a square on the left with $g\in\L$, \begin{equation}\label{diagram:coherencefillers} \xymatrix@=3em{ A' \ar[d]_g \ar[r] & A \ar[d] \ar[r] & \ar[d] C \\ B' \ar[r]_{f} \ar@{..>}[rru]^{\psi\ \ } & B\ar@{..>}[ru]_{\phi} \ar[r] & D } \end{equation} we may have the two different diagonal fillers for the outer filling problem, namely $\psi$ and $\phi\circ f$. Under certain conditions, we want these two solutions to be equal. This leads to a strengthening of the notion of weak factorization system to what is now called an \emph{algebraic} weak factorization system, which implies the existence of such \emph{natural} choices of diagonal fillers. (The idea of using this to solve this particular coherence problem is due to R.~Garner.) \end{enumerate} \begin{definition} A \emph{functorial factorization} on a category \ensuremath{\mathbb{C}}\ is a functor \[ (L,E,R) : \ensuremath{\mathbb{C}}^{\ensuremath{\rightarrow}} \to \ensuremath{\mathbb{C}}^{\ensuremath{\rightarrow}\cdot\ensuremath{\rightarrow}} \] taking each arrow $f : X \to Y$ to a factorization $f = R(f)\circ L(f)$, \[ \xymatrix{ X \ar[rr]^{f} \ar[rd]_{L(f)} && Y\\ & E(f) \ar[ru]_{R(f)} & } \] in a functorial way. Specifically, given any $h : f \to f'$ in $\ensuremath{\mathbb{C}}^{\ensuremath{\rightarrow}}$ we have a commutative diagram: \[ \xymatrix{ X \ar[dd]_{f} \ar[rd]^{L(f)} \ar[rrr]^{h_0} &&& \ar[dd]^{f'} \ar[ld]_{L(f')} X'\\ & E(f) \ar[r] \ar[ld]^{R(f)} & E(f') \ar[rd]_{R(f')} & \\ Y \ar[rrr]_{h_1} &&& Y' } \] and we write $E(h) : E(f)\to E(f')$ for the evident map. \end{definition} Observe that, for each fixed $Y$, the functorial factorization determines an endofunctor, \[ R : \ensuremath{\mathbb{C}}/Y \to \ensuremath{\mathbb{C}}/Y \] taking $f:X\to Y$ to $R(f) :E(f) \to Y$, and that this endofunctor is pointed by $L : 1 \to R$ (abusing notation slightly). Dually, for each fixed $X$, the functorial factorization determines an endo\-functor, \[ L : X/\ensuremath{\mathbb{C}} \to X/\ensuremath{\mathbb{C}} \] taking $f:X\to Y$ to $L(f) : X\to E(f)$, and that this endofunctor is copointed by $R : L \to 1$. \begin{definition} An \emph{algebraic weak factorization system} on \ensuremath{\mathbb{C}}\ consists of a functorial factorization $(L,E,R)$ together with: \begin{enumerate} \item a multiplication $\mu : R^2 \to R$ making $(R, \mu, L)$ a monad, \item a comultiplication $\nu : L \to L^2$ making $(L, \nu, R)$ a comonad. \end{enumerate} Some authors also a require distributive law for the monad over the comonad, however we shall not need this. \end{definition} \begin{remark}\label{AWFSisWFS} Let us show that an AWFS determines a WFS. The factorization axiom is satisfied by the functorial factorization $f = R(f)\circ L(f)$. We then know that $R(f)$ is an $R$-algebra and $L(f)$ is an $L$-coalgebra by the laws of monads. Suppose given a diagonal filling problem such as the outer square below, in which $f$ is an $L$-coalgebra and $g$ is an $R$-algebra: \[ \xymatrix@=3em{ X \ar[dd]_{f} \ar[rd]^{L(f)} \ar[rrr]^{h_0} &&& \ar[dd]^{g} \ar[ld]_{L(g)} Z\\ & E(f) \ar[r]^{E(h)} \ar[ld]^{R(f)} & E(g) \ar[rd]_{R(g)} & \\ Y \ar[rrr]_{h_1} &&& W } \] Applying the factorizations of $f$ and $g$, we obtain an $L$-coalgebra structure map $\phi : Y\to E(f)$ and an $R$-algebra structure map $\psi : E(g)\to Z$. We can then set $ j = \psi\circ E(h)\circ \phi$ to obtain the required diagonal filler $j : Y \to Z$. Finally, to ensure closure under retracts we let $\ensuremath{\mathcal{R}}$ be the retract closure of the $R$-algebras and $\L$ the retract closure of the $L$-coalgebras. The factorization axiom still holds trivially, and the filling axiom is also easily seen to still hold. Thus every AWFS determines a WFS with the left and right classes being the retracts of the $L$- and $R$- (co)algebras respectively. \end{remark} \begin{remark} A morphism of $L$-coalgebras $h : (f',\phi')\to (f,\phi)$ is a commutative square $fh_0 = h_1f'$ such that $E(h)\circ\phi' = \phi\circ h_1$, \[ \xymatrix@=3em{ X' \ar[dd]_{f'} \ar[rd]^{L(f')} \ar[rrr]^{h_0} &&& \ar[dd]^{f} \ar[ld]_{L(f)} X\\ & E(f') \ar[r]^{E(h)} \ar[ld]^{R(f')} & E(f) \ar[rd]_{R(f)} & \\ Y' \ar[rrr]_{h_1} \ar@<1ex>[ur]^{\phi'} &&& \ar@<-1ex>[ul]_{\phi} Y\,. } \] It is easy to see that the naturality condition for diagonal fillers mentioned in \eqref{diagram:coherencefillers} is satisfied for the fillers constructed algebraically as in Remark \ref{AWFSisWFS}, when the left-hand square is a morphism of $L$-algebras in this sense. \end{remark} We summarize the result of this section with the following (cf.~\cite{GvdB}). \begin{proposition} Let \ensuremath{\mathbb{C}}\ be a category with finite limits, an algebraic weak factorization system, and a stable choice of factorizations for all diagonal maps. Then \ensuremath{\mathbb{C}}\ admits a model of type theory with \ensuremath{\mathsf{Id}}-types. \end{proposition} \section{Cubical sets} Our goal is to make an algebraic weak factorization system on the cubical sets, but let us first recall \emph{why} the category of cubical sets is a good setting for a model of \ensuremath{\mathsf{Id}}-types. The basic examples of WFSs and homotopy are topological spaces and simplicial sets, but these models are not entirely satisfactory, at least from a logical point of view. In particular, they seem to lack the combinatorial character that would make them \emph{constructive}. The cubical approach seems to be better suited to giving such a constructive treatment, as has recently been shown by T.~Coquand and his coworkers (see \cite{BCH}). It is worth noting in this connection that the goal here is \emph{not} to give a constructive interpretation of the univalence axiom, as Coquand et al.\ have done, but only to investigate a (particular) cubical model as arising from an algebraic weak factorization system. By way of motivation for using cubical sets, recall that we will interpret the \ensuremath{\mathsf{Id}}-type of an object $A$ using a factorization of the diagonal map, \begin{equation}\label{diag:pathfact} \xymatrix{ & \ PA \ar[rd] & \\ A \ar[rr] \ar[ru] && A\times A\,. } \end{equation} We regard $PA$ as an abstract ``pathspace'' $A^\ensuremath{\mathrm{I}}$. If there is an ``interval object'' $\ensuremath{\mathrm{I}}$ with two points $1\rightrightarrows\ensuremath{\mathrm{I}}$, then exponentiating $A$ by the structure: \[ \xymatrix{ & \ar[ld] \ensuremath{\mathrm{I}} & \\ 1 && \ar[ll] \ar[ul] 1+1\, } \] will result in a factorization of the form \eqref{diag:pathfact} (without respect to any WFS). Moreover, this factorization will automatically be stable under pullback. The idea that identity proofs are paths and that $\id{A} = A^\ensuremath{\mathrm{I}}$ is supported by the fact that dependent types have the \emph{path-lifting property}: given $a_0,a_1:A$ and $p:\id{A}(a_0,a_1)$ and $\types{x:A}{B(x)}$ and $b_0:B(a_0)$, there is a distinguished $b_1:B(a_1)$, called the \emph{transport} of $b_0$ along $p$ and denoted $p_*(b_0)$. This term $p_*(b_0)$ can easily be found by ``path induction'' (i.e.\ \ensuremath{\mathsf{Id}}-elimination) on $p:\id{A}(a_0,a_1)$. Indeed, there is even a path $\tilde{p} : \id{B}(b_0,b_1)$, where $B=\sum_{x:A}B(x)$, such that $\pi_1(\tilde{p})=p$. \[ \xymatrix{ B \ar[dd]_{\pi_1} & B(a_0) \ar[r]^{p_*} & B(a_1) \\ & b_0 \ar@{..>}[r]^{\tilde{p} } & p_*b_0 \\ A & a_0 \ar[r]_{p} & a_1 } \] Note that this says exactly that the endpoint inclusion $0 : 1\to \ensuremath{\mathrm{I}}$ has the left-lifting property with respect to the dependent projection $\pi:B\to A$, \[ \xymatrix@=3em{ 1 \ar[d]_{0} \ar[r]^{b_0} & B \ar[d]^{\pi} \\ \ensuremath{\mathrm{I}} \ar[r]_{p} \ar@{..>}[ru]_{\tilde{p}} & A\,. } \] Thus the endpoint inclusion $0 : 1\to \ensuremath{\mathrm{I}}$ should be an $\L$-map, since the dependent types should be $\ensuremath{\mathcal{R}}$-maps. An important consequence of the proposed stipulation $\id{A} = A^\ensuremath{\mathrm{I}}$ is that the iterated or ``higher'' \ensuremath{\mathsf{Id}}-types can be interpreted as ``cube types'', \begin{align*} \id{A}\ &=\ A^\ensuremath{\mathrm{I}} \\ \id{\id{A}}\ &=\ (A^\ensuremath{\mathrm{I}})^\ensuremath{\mathrm{I}}\ \cong\ A^{\ensuremath{\mathrm{I}}\times\ensuremath{\mathrm{I}}} \\ \id{\id{\dots\id{A}}}\ &\cong\ A^{\ensuremath{\mathrm{I}}\times\dots\times\ensuremath{\mathrm{I}}} \end{align*} In this way, at least some of the operations on the higher \ensuremath{\mathsf{Id}}-types (reflecting the higher algebra of $\infty$-groupoids) can be represented by algebraic operations on the cubes, in the form $\ensuremath{\mathrm{I}}^n \to \ensuremath{\mathrm{I}}^m$. \subsection{The category of cubical sets} The objects $\ensuremath{\mathrm{I}}^n = \ensuremath{\mathrm{I}}\times \dots\times \ensuremath{\mathrm{I}}$ thus play a special role in the interpretation of \ensuremath{\mathsf{Id}}-types. The category of cubical sets gives special prominence to these objects, and to the interval $\ensuremath{\mathrm{I}}$ in particular. In a precise sense, it is the free cocomplete category generated by the finite cubes $1,\ \ensuremath{\mathrm{I}},\ \ensuremath{\mathrm{I}}\times\ensuremath{\mathrm{I}}, \dots, \ensuremath{\mathrm{I}}^n, \dots$ (and the particular version that we shall use is the free \emph{topos} generated by an ``interval object'': $0,1 : 1\rightrightarrows \ensuremath{\mathrm{I}},\ \cdot\vdash 0\neq 1$). \begin{definition} The category \ensuremath{\mathsf{cSet}}\ of \emph{(cartesian) cubical sets} is the presheaf category \[ \ensuremath{\mathsf{cSet}}\ =\ \psh{\ensuremath{\mathbb{C}}_\times} \] on the category $\ensuremath{\mathbb{C}}_\times$ of \emph{(cartesian) cubes}, defined equivalently as: \begin{enumerate} \item the free category with finite products on an \emph{interval object} $0,1 : 1\rightrightarrows \ensuremath{\mathrm{I}}$, \item the opposite category, \[ \ensuremath{\mathbb{C}}_\times = \op{\ensuremath{\mathbb{B}}}, \] of the category $\ensuremath{\mathbb{B}}$ of finite strictly bipointed sets and bipointed functions. The objects may be taken to be sets of the form $$[n] = \{\bot, x_1, \dots, x_n, \top\}$$ and maps $f : [m]\to [n]$ are functions that preserve the distinguished elements $\bot, \top$. \item the syntactic category $\ensuremath{\mathbb{C}}(\ensuremath{\mathbb{T}})$ of the algebraic theory $\ensuremath{\mathbb{T}}$ with just two constant symbols $\bot, \top$ (and no equations). \end{enumerate} The equivalence of these three specifications of $\ensuremath{\mathbb{C}}_\times$ is an easy application of Lawvere duality. \end{definition} \begin{remark} There are many other notions of cube category and cubical sets in the literature. See \cite{awodey:cubes} for comparisons of some. \end{remark} Next, consider the representable objects, \[ \y : \ensuremath{\mathbb{C}}_\times \ensuremath{\hookrightarrow} \ensuremath{\mathsf{cSet}} \] and let \[ \ensuremath{\mathrm{I}}^n :=\ \y([n]) = \ensuremath{\mathrm{Hom}}_{\ensuremath{\mathbb{C}}_\times}\!(\,-\,, [n]). \] We can regard the objects $\ensuremath{\mathrm{I}}^n$ as the ``geometric $n$-cubes''; indeed we have $\ensuremath{\mathrm{I}}^n \cong \ensuremath{\mathrm{I}}\times\dots\times\ensuremath{\mathrm{I}}$, because the Yoneda embedding preserves products. Note that by the Yoneda lemma, for any cubical set $X$, maps $\ensuremath{\mathrm{I}}^n \to X$ correspond uniquely to elements of the set $X_n = X([n])$, which are called the ``$n$-cubes of $X$''. \begin{proposition}\label{prop:pathobject} For any cubical set $X$, the pathobject $X^\ensuremath{\mathrm{I}}$ is the ``shift by one dimension'' of $X$, \[ (X^\ensuremath{\mathrm{I}})_n \cong X_{(n+1)}\,. \] \end{proposition} \begin{proof} \[ \begin{split} (X^\ensuremath{\mathrm{I}})_n\ &\cong\ \hom(y[n], X^\ensuremath{\mathrm{I}})\ \cong\ \hom(\ensuremath{\mathrm{I}}^n, X^\ensuremath{\mathrm{I}})\ \cong\ \hom(\ensuremath{\mathrm{I}}^n\times \ensuremath{\mathrm{I}}, X)\\ &\cong\ \hom(\ensuremath{\mathrm{I}}^{n+1}, X)\cong\ \hom(y[n+1], X)\ \cong\ X_{(n+1)}. \end{split} \] \end{proof} This combinatorial description of the pathobject $X^\ensuremath{\mathrm{I}}$ as a shift in dimension has consequences for the model of type theory; in particular, it leads to certain equations holding strictly that are usually satisfied only weakly or ``up to homotopy''. \begin{corollary}\label{cor:rightadjpath} The pathobject functor $X \mapsto X^\ensuremath{\mathrm{I}}$ has a \emph{right} adjoint. \end{corollary} \begin{proof} The functor $X \mapsto X^\ensuremath{\mathrm{I}}$ is given by precomposition with the ``successor'' functor $S : \ensuremath{\mathbb{C}_\times}\to\ensuremath{\mathbb{C}_\times}$ with $S[n] = [n+1]$, since $X^\ensuremath{\mathrm{I}}([n]) = X([n+1]) = X(S[n]) = (S^*(X))([n])$. But precomposition always has both left and right adjoints $S_! \dashv S^* \dashv S_*$, the right one of which can be calculated as: \[ S_*(X)_n \cong \hom(y[n], S_*X) \cong \hom(S^*(y[n]), X)\ \cong \hom(\ensuremath{\mathbb{C}_\times}(S(-), [n]), X). \] \end{proof} We need the following fact in order to calculate the right adjoint further. We mention that a similar fact holds for the generic object in the object classifier topos $\ensuremath{\mathsf{Set}}^{\mathsf{Fin}}$, and in the Schanuel topos $\mathrm{Sh}(\mathrm{Aut}(\ensuremath{\mathbb{N}}))$, and is used to give an algebraic treatment of variable binding in the theory of ``abstract higher-order syntax''. \begin{lemma}\label{lemma:binomial} For the 1-cube $\ensuremath{\mathrm{I}}$ in $\ensuremath{\mathsf{cSet}}$, we have $\ensuremath{\mathrm{I}}^\ensuremath{\mathrm{I}}\ \cong\ \ensuremath{\mathrm{I}}+1$. \end{lemma} \begin{proof} For any $[n] \in \ensuremath{\mathbb{C}_\times}$ we have: \[ (\ensuremath{\mathrm{I}}^\ensuremath{\mathrm{I}})_n \cong \ensuremath{\mathrm{I}}_{(n+1)} \cong \ensuremath{\mathrm{Hom}}(\ensuremath{\mathrm{I}}^{(n+1)},\ensuremath{\mathrm{I}})\cong \ensuremath{\mathbb{C}_\times}([n+1],[1])\cong \ensuremath{\mathbb{B}}([1], [n+1])\cong n+3. \] On the other hand, \[ (\ensuremath{\mathrm{I}}+1)_n \cong \ensuremath{\mathrm{I}}_n + 1_n \cong \ensuremath{\mathrm{Hom}}(\ensuremath{\mathrm{I}}^n, \ensuremath{\mathrm{I}}) + 1 \cong \ensuremath{\mathbb{B}}([1],[n]) +1 \cong (n+2) +1. \] The isomorphism is natural in $n$. \end{proof} \begin{definition} Let us write \[ X_\ensuremath{\mathrm{I}} = S_*(X) \] for the right adjoint of the path object functor $X^\ensuremath{\mathrm{I}} = S^*X$. \end{definition} \begin{corollary} We have the following calculation for the right adjoint $X_\ensuremath{\mathrm{I}}$: \begin{align*} (X_\ensuremath{\mathrm{I}})_n &\cong \hom(\ensuremath{\mathrm{I}}^n, X_\ensuremath{\mathrm{I}}) \\ &\cong \hom((\ensuremath{\mathrm{I}}^n)^\ensuremath{\mathrm{I}}, X) \\ &\cong \hom((\ensuremath{\mathrm{I}}^\ensuremath{\mathrm{I}})^n, X) \\ &\cong \hom((\ensuremath{\mathrm{I}}+1)^n, X) \\ &\cong \hom(\ensuremath{\mathrm{I}}^n + C^n_{n-1}\ensuremath{\mathrm{I}}^{n-1} + \dots + C^n_{1}\ensuremath{\mathrm{I}}+1, X) \\ &\cong X_n \times X_{n-1}^{C^n_{n-1}} \times \dots \times X_1^{C^n_{1}}\times X_0, \end{align*} where $C^n_{k} = \binom{n}{k}$ is the usual binomial coefficient. \end{corollary} \subsection{Box filling} We now turn to the determination of the right maps for our AWFS. We know that they should at least have the path-lifting property, since that is forced by the rules of type theory. We also know that for any type $A$, the interpretation of the \ensuremath{\mathsf{Id}}-type should be a right map into $A\times A$, since it is a dependent type. Finally, we want to use the pathobject $A^\ensuremath{\mathrm{I}}$ as the interpretation of $\ensuremath{\mathsf{Id}}{A}$ in view of the foregoing considerations. These constraints lead us directly to the box-filling condition. \begin{proposition}\label{prop:pathliftboxfill} $A^\ensuremath{\mathrm{I}} \to A\times A$ has path lifting if and only if $A$ has (2-)box filling. \end{proposition} Before giving the proof, we require some conventions that will be useful later on. Diagramatically, path lifting for $A^\ensuremath{\mathrm{I}} \to A\times A$ means that for any (outer) square of the form \begin{equation}\label{diagram:pathliftpath} \xymatrix{ 1 \ar[d] \ar[r] & A^\ensuremath{\mathrm{I}} \ar[d] \\ \ensuremath{\mathrm{I}} \ar[r] \ar@{..>}[ru] & A\times A } \end{equation} there is a diagonal filler as indicated. There are two maps $0,1 : 1\rightrightarrows \ensuremath{\mathrm{I}}$, and the path lifting condition is required with each of these cases occurring on the left. An \emph{open 2-box} in the 2-cube $\ensuremath{\mathrm{I}}^2$ is by definition a subobject $$\sqcup^2_{j,e} \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^2$$ obtained as the union, in the poset $\mathrm{Sub}(\ensuremath{\mathrm{I}}^2)$, of all the face maps $\alpha^d_i : \ensuremath{\mathrm{I}} \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^2$ but one, \[ \sqcup^2_{j,e} = \bigcup_{(i,d)\neq (j,e)} \alpha_i^d. \] The index $j = 1, 2$ is the coordinate in which the box is open, while $e = 0,1$ indicates which face of the box is missing, bottom or top. Because we are in the symmetric situation, where the product $\ensuremath{\mathrm{I}}\times \ensuremath{\mathrm{I}}$ can be twisted, it suffices to consider only boxes that are open in the first coordinate, since the others can be constructed from those. Thus we may omit the index $j$, writing $\sqcup^2_e$ for $\sqcup^2_{1,e}$. Moreover, let us write $\sqcup^2 = {\sqcup}^2_1$ and $\sqcap^2 = {\sqcup}^2_0$. The \emph{(upper and lower) open $n$-boxes} $\sqcup^n, \sqcap^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^n$ are defined analogously. The open 2-box can be constructed as the dotted arrow in the following pushout diagram, in which we write $\partial\ensuremath{\mathrm{I}} = 1+1 \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}$ for the boundary of the 1-cube $\ensuremath{\mathrm{I}}$. \[ \xymatrix{ 1\times \partial\ensuremath{\mathrm{I}} \ar[d] \ar[r] & 1\times \ensuremath{\mathrm{I}} \ar[d] \ar@/{}^{1pc}/[rdd] \\ \ensuremath{\mathrm{I}} \times \partial\ensuremath{\mathrm{I}} \ar[r] \ar@/{}_{1pc}/[rrd] & \sqcup^2 \pocorner \ar@{>.>}[rd] \\ && \ensuremath{\mathrm{I}}\times\ensuremath{\mathrm{I}} } \] This is the upper open box determined by the case where $1 : 1\to\ensuremath{\mathrm{I}}$ is on the far left; the case of $0: 1\to\ensuremath{\mathrm{I}}$ determines the lower open box $\sqcap^2 \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^2$, but we will not always mention this case separately. \begin{definition}\label{def:boxfilling} A cubical set $A$ has \emph{$n$-box filling} if every map to it from an open upper $n$-box extends to the whole $n$-cube, \[ \xymatrix{ \sqcup^n \ar@{ >->}[d] \ar[r] & A \\ \ensuremath{\mathrm{I}}^n \ar@{ ..>}[ur] } \] and similarly for the lower box $\sqcap^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^n$. A map $B\to A$ has \emph{$n$-box filling} if every commutative square of the following form has a diagonal filler, \[ \xymatrix{ \sqcup^n \ar@{ >->}[d] \ar[r] & B \ar[d] \\ \ensuremath{\mathrm{I}}^n \ar@{ ..>}[ur] \ar[r] & A } \] and similarly for the lower box $\sqcap^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^n$. \end{definition} \begin{proof}[Proof of the Proposition] The 2-box filling condition is clearly equivalent to saying that given any maps $a$ and $b$ commuting with the span in the upper-left corner of the following diagram, there exists a 2-cube $c : \ensuremath{\mathrm{I}}\times\ensuremath{\mathrm{I}} \to A$ making the whole diagram commute. \begin{equation}\label{diagram:boxfillingrev} \xymatrix{ 1\times \partial\ensuremath{\mathrm{I}} \ar[d] \ar[r] & 1\times \ensuremath{\mathrm{I}} \ar[d] \ar@/{}^{1pc}/[rdd]^{a} \\ \ensuremath{\mathrm{I}} \times \partial\ensuremath{\mathrm{I}} \ar[r] \ar@/{}_{1pc}/[rrd]_{b} & \ensuremath{\mathrm{I}}\times\ensuremath{\mathrm{I}} \ar@{.>}[rd]|{c} \\ && A } \end{equation} This formulation eliminates the pushout and replaces the open box by a decomposition. Now let us rewrite diagram \eqref{diagram:pathliftpath} with the projection from the path object $A^\ensuremath{\mathrm{I}} \to A\times A$ replaced by \[ A^i : A^\ensuremath{\mathrm{I}} \to A\times A \cong A^{1+1} = A^{\partial\ensuremath{\mathrm{I}}} \] where $i := [0,1] : \partial \ensuremath{\mathrm{I}} = 1+1 \to \ensuremath{\mathrm{I}}$ is the copair, to give: \begin{equation*}\label{diagram:pathliftpathrev} \xymatrix{ 1 \ar[d] \ar[r] & A^\ensuremath{\mathrm{I}} \ar[d]^{A^i} \\ \ensuremath{\mathrm{I}} \ar[r] \ar@{..>}[ru] & A^{\partial\ensuremath{\mathrm{I}}} } \end{equation*} But this is just the exponential transpose of the diagram \eqref{diagram:boxfillingrev}, where the corresponsing transposed maps are as indicated: \begin{equation}\label{diagram:pathliftpathrev} \xymatrix{ 1 \ar[d] \ar[r]^{a'} & A^\ensuremath{\mathrm{I}} \ar[d]^{A^i} \\ \ensuremath{\mathrm{I}} \ar[r]_{b'} \ar@{..>}[ru]^{c'} & A^{\partial\ensuremath{\mathrm{I}}} } \end{equation} \end{proof} The foregoing can be generalized to higher dimensions as follows (see \cite{awodey:cubes}): \begin{proposition}\label{prop:main} For any cubical set $X$ and any $n\geq 1$, the canonical map $X^\ensuremath{\mathrm{I}} \to X\times X$ has $n$-box filling iff $X$ has $(n+1)$-box filling. \end{proposition} Since $1$-box filling in any object $X$ is trivial, we conclude that a cubical set $X$ has $n$-box filling for all $n\geq 1$ just in case $X^\ensuremath{\mathrm{I}} \to X\times X$ does. In this way, we are led to make the following definition. \begin{definition} A map of cubical sets $f : Y\to X$ is a \emph{Kan fibration} if it has $n$-box filling for all $n\geq 1$. A cubical set $X$ is a \emph{Kan complex} if the map $X\to 1$ is a Kan fibration. \end{definition} \begin{remark} Since the composition of two maps with $n$-box filling clearly also has $n$-box filling, if an object $A$ has $(n+1)$-box filling then its pathobject $A^\ensuremath{\mathrm{I}}$ has only $n$-box filling. Thus if we want all types to have \ensuremath{\mathsf{Id}}-types, and if we have $\Sigma$-types so that we can form $\id{A} = \sum_{x,y:A}\id{A}(x,y)$, then we are led to take as the types those cubical sets that have $n$-box filling for \emph{all} $n$, i.e.\ the Kan complexes, and as the dependent types the Kan fibrations. It seems remarkable that the constraints imposed by modelling \ensuremath{\mathsf{Id}}-types have led us directly to the definition of Kan complex and Kan fibration! \end{remark} \subsection{Uniformity} We could now use Quillen's small object argument to make a WFS in which the \ensuremath{\mathcal{R}}-maps are the Kan fibrations, by taking as a generating set of left maps all the open box inclusions. Since we want an \emph{algebraic} WFS, however, we shall instead use a refinement of the small object argument due to R.~Garner, and appropriate to an algebraic notion of fibration (see \cite{Garner}). \begin{definition} A \emph{uniform Kan complex} is a cubical set $X$ equipped with the following structure: \begin{enumerate} \item For each open box $\sqcup^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^n$, each $k\geq 1$, and each map $b: \ensuremath{\mathrm{I}}^k \times\sqcup^n\to X$, there is given an extension $\phi(b) : \ensuremath{\mathrm{I}}^k\times\ensuremath{\mathrm{I}}^n \to X$ of $b$ along the product map $\ensuremath{\mathrm{I}}^k\times\sqcup^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^k\times\ensuremath{\mathrm{I}}^n$. \begin{equation}\label{diagram:uniformsimple} \xymatrix{ \ensuremath{\mathrm{I}}^k\times \sqcup^n\ar@{>->}[d] \ar[r]^-{b} & X\\ \ensuremath{\mathrm{I}}^k \times \ensuremath{\mathrm{I}}^n \ar@{..>}[ru]_{\phi(b)} & } \end{equation} \item The chosen extensions $\phi(b)$ are natural in $\ensuremath{\mathrm{I}}^k$, in the sense that for each map of cubes $\alpha : \ensuremath{\mathrm{I}}^j \to \ensuremath{\mathrm{I}}^k$, one has \[ \phi(b\circ(\alpha\times 1))\ =\ \phi(b)\circ (\alpha\times 1), \] as indicated in the following commutative diagram. \begin{equation}\label{diagram:uniformnatural} \xymatrix{ \ensuremath{\mathrm{I}}^j\times \sqcup^n \ar@{>->}[d] \ar[rr]^{\alpha\times 1} && \ensuremath{\mathrm{I}}^k\times \sqcup^n\ar@{>->}[d] \ar[r]^-{b} & X\\ \ensuremath{\mathrm{I}}^k \times \ensuremath{\mathrm{I}}^n \ar@{..>}[urrr]|{\phi(b(\alpha\times 1))\ \ } \ar[rr]_{\alpha\times 1} && \ensuremath{\mathrm{I}}^j \times \ensuremath{\mathrm{I}}^n \ar@{..>}[ru]_-{\phi(b)} & } \end{equation} \item The foregoing also holds for all lower open boxes $\sqcap^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^n$. \end{enumerate} \end{definition} The uniform Kan condition turns the box filling \emph{property} of an object $X$ into an explicitly given \emph{structure} $(X, \phi)$ on $X$, namely a natural choice of fillers $\phi(b)$ for all (generalized) open boxes $b : \ensuremath{\mathrm{I}}^k\times \sqcup^n \to X$. The generalization to maps is straightforward: \begin{definition}[cf.~\cite{BCH}] A \emph{uniform Kan fibration} is a map $f : Y\to X$ equipped with the following structure: \begin{enumerate} \item For each open box $\sqcup^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^n$, each $k\geq 1$, and each (outer) square of the form \begin{equation \xymatrix{ \ensuremath{\mathrm{I}}^k \times \sqcup^n \ar@{>->}[d] \ar[r]^-{b} & Y \ar[d]^{f} \\ \ensuremath{\mathrm{I}}^k \times \ensuremath{\mathrm{I}}^n \ar[r]_-{a} \ar@{.>}[ru]|-{\phi(a,b)} & X } \end{equation} with the product map $\ensuremath{\mathrm{I}}^k\times\sqcup^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^k\times\ensuremath{\mathrm{I}}^n$ on the left, there is given a diagonal filler $\phi(a,b)$ as indicated. \item These chosen fillers are natural in $\ensuremath{\mathrm{I}}^k$, in the sense that for any $\alpha : \ensuremath{\mathrm{I}}^j \to \ensuremath{\mathrm{I}}^k$, one has \[ \phi(a,b)\circ(\alpha\times 1) = \phi(a\circ (\alpha\times 1), b\circ (\alpha\times 1))\,, \] as indicated below, in which $\phi' = \phi(a\circ(\alpha\times 1), b\circ(\alpha\times 1))$. \begin{equation}\label{diagram:coherencefillers} \xymatrix{ \ensuremath{\mathrm{I}}^j \times \sqcup^n \ar@{>->}[d] \ar[rr]^{\alpha\times 1} && \ensuremath{\mathrm{I}}^k \times \sqcup^n \ar@{>->}[d] \ar[rr]^-{b} && \ar[d]^{f} T \\ \ensuremath{\mathrm{I}}^j \times \ensuremath{\mathrm{I}}^n \ar[rr]_{\alpha\times 1} \ar@{..>}[rrrru]|{\phi'\ } && \ensuremath{\mathrm{I}}^k \times \ensuremath{\mathrm{I}}^n \ar[rr]_-{a} \ar@{.>}[rru]|-{\phi(a,b)} && X } \end{equation} \item The foregoing also holds for all lower open boxes $\sqcap^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^n$. \end{enumerate} \end{definition} Clearly, $X$ is a uniform Kan complex just in case $X\to 1$ is a uniform Kan fibration \begin{theorem}\label{thm:AWFS1} There is an algebraic weak factorization system $(\ensuremath{\mathsf{L}},\ensuremath{\mathsf{R}})$ on $\ensuremath{\mathsf{cSet}}$ for which the $\ensuremath{\mathsf{R}}$-algebras are exactly the uniform Kan fibrations. \end{theorem} This is a direct application of Garner's small object argument \cite{Garner} (see also \cite{GS} for a related development). We will nonetheless sketch the details of the argument in the next section, because some modifications of it will be required thereafter. \section{The AWFS of uniform box filling} In order to make an AWFS $(\ensuremath{\mathsf{L}},\ensuremath{\mathsf{R}})$ on $\ensuremath{\mathsf{cSet}}$ in which the $\ensuremath{\mathsf{R}}$-algebras are the uniform Kan fibrations, we will first turn the description of uniform box filling structure on a map $f : X\to Y$ into that of an algebra structure for a suitable pointed endofunctor $T : \ensuremath{\mathsf{cSet}}/Y\to\ensuremath{\mathsf{cSet}}/Y$. We then use a theorem of Kelly \cite{Kelly} to produce the algebraically free monad $T_\infty$ on $T$, which will be the $\ensuremath{\mathsf{R}}$ part of the desired AWFS. To simplify the exposition, we consider only the case where $Y=1$, i.e.\ Kan complexes rather than Kan fibrations, but the general case is entirely analogous. Thus we are constructing the ``free uniform Kan complex'' on an arbitrary cubical set $X$, which may be regarded as a notion of $\infty$-groupoid. The analogy to the construction of the free groupoid on a graph is a useful one to bear in mind. Consider first a box filling structure $\phi$ on a cubical set $X$. For each open $n$-box $i^n:\sqcup^n \ensuremath{\rightarrowtail} \ensuremath{\mathrm{I}}^n$, each $k$, and for each (generalized) open box $b: \ensuremath{\mathrm{I}}^k \times\sqcup^n\to X$ in $X$, there is given an extension $\phi(b) : \ensuremath{\mathrm{I}}^k\times\ensuremath{\mathrm{I}}^n \to X$ to a $(k+n)$-cube in $X$, naturally in $\ensuremath{\mathrm{I}}^k$: \[ \xymatrix{ \ensuremath{\mathrm{I}}^k\times \sqcup^n\ar@{>->}[d]_{1\times i^n\ } \ar[r]^-{b} & X\\ \ensuremath{\mathrm{I}}^k \times \ensuremath{\mathrm{I}}^n \ar@{..>}[ru]_{\phi(b)} & } \] Transposing, we obtain an assignement $b \mapsto \phi(b)$ of the form: \[ \xymatrix{ \ensuremath{\mathrm{I}}^k \ar[r]^{b} \ar@{..>}[rd]_{\phi(b)} & X^{ \sqcup^n}\\ & \ar[u]_{X^{i^n}} X^{ \ensuremath{\mathrm{I}}^n}\,, } \] such that $X^{i^n}\circ\phi(b) = b$, again naturally in $\ensuremath{\mathrm{I}}^k$. But since the cubes $\ensuremath{\mathrm{I}}^k$ are the representables, by Yoneda the assignment $\phi$ is given by composing with a unique natural transformation $\phi : X^{\sqcup^n}\to X^{\ensuremath{\mathrm{I}}^n}$, which is a section of $X^{i^n}$, \[ \xymatrix{ \ar@/{}_{1pc}/@{..>}[d]_{\phi} X^{ \sqcup^n}\\ \ar[u]_{X^{i^n}} X^{ \ensuremath{\mathrm{I}}^n}\,, } \] Transposing by $\ensuremath{\mathrm{I}}^n$, we obtain the equivalent diagram: \[ \xymatrix{ X^{\sqcup^n}\times\sqcup^n \ar@{>->}[dd]_-{1\times i^n} \ar[rr]^-{\ensuremath{\mathrm{eval}}} && X \\ && \\ X^{\sqcup^n}\times\ensuremath{\mathrm{I}}^n \ar@{..>}[uurr]_{\phi} && } \] Finally, forming the pushout of the span formed by $1\times i^n$ and the evaluation map $\ensuremath{\mathrm{eval}}^n$, \begin{equation}\label{diagram:defTn} \xymatrix{ X^{\sqcup^n}\times\sqcup^n \ar@{>->}[dd]_{1\times i^n} \ar[rr]^-{\ensuremath{\mathrm{eval}}^n} && X \ar[dd]^{t^n_X} \ar[r]^{=} & X\\ &&& \\ X^{\sqcup^n}\times\ensuremath{\mathrm{I}}^n \ar[rr] && {\pocorner} T^n(X) \ar@{..>}[uur]_{\phi} & } \end{equation} we obtain an object $T^n(X)$ with a map $t^n_X : X\to\ T^n(X)$ such that retractions $\phi$ of $t^n_X$ correspond bijectively to $n$-box filling structures on $X$. Since $T^n$ is clearly functorial in $X$, we have an endofunctor $$T^n : \ensuremath{\mathsf{cSet}}\to\ensuremath{\mathsf{cSet}}$$ with an (evidently natural) point $t^n : 1 \to T^n$. Summing over all dimensions $n$, and again forming the pushout, \begin{equation}\label{diagram:defT} \xymatrix{ {\coprod_{n}}X^{\sqcup^n}\times\sqcup^n \ar@{>->}[dd]_{{\coprod_{n}}1\times i^n\ } \ar[rr]^-{[\ensuremath{\mathrm{eval}}^n]} && X \ar[dd]^{t_X} \ar[r]^{=} & X\\ &&& \\ {\coprod_{n}}X^{\sqcup^n}\times\ensuremath{\mathrm{I}}^n \ar[rr] && {\pocorner} T(X) \ar@{..>}[uur]_{\phi} & } \end{equation} we obtain an endofunctor $T : \ensuremath{\mathsf{cSet}} \to \ensuremath{\mathsf{cSet}}$ with a point $t : 1\to T$, the algebras for which are box filling structures on $X$, but now for all dimensions $n$. It is easy to see that $(T,t)$-algebra homomorphisms $h : (X,\phi) \to (Y, \psi)$ correspond exactly to maps $h : X\to Y$ that preserve the box filling structures, in the obvious sense. Summarizing, we have shown: \begin{proposition} The category of $(T,t)$-algebras for the pointed endofunctor $$T : \ensuremath{\mathsf{cSet}} \to \ensuremath{\mathsf{cSet}}$$ defined by \eqref{diagram:defT} is isomorphic to the category of uniform Kan complexes. \end{proposition} Next we use a method due to Kelly (see \cite{Garner,Kelly}) to construct the \emph{algebraically free monad} $(T_\infty, t_\infty, \mu)$ from the pointed endofunctor $(T,t)$. This monad comes with a natural map $\eta : T\to T_\infty$ such that $t_\infty = \eta\circ t$, inducing a comparison functor, $$\eta^* : (T_\infty, t_\infty, \mu)\mbox{-}\mathrm{Alg} \to (T,t)\mbox{-}\mathrm{Alg}\,,$$ which is an isomorphism of categories. Here $(T_\infty, t_\infty, \mu)\mbox{-}\mathrm{Alg}$ is the category of algebras for the monad, while $(T,t)\mbox{-}\mathrm{Alg}$ is the category of algebras for the pointed endofunctor. We henceforth refer to these more briefly as $T_\infty\mbox{-}\mathrm{Alg}$ and $T\mbox{-}\mathrm{Alg}$ respectively. \begin{lemma}\label{lem:compact} The endofunctor $T : \ensuremath{\mathsf{cSet}} \to \ensuremath{\mathsf{cSet}}$ preserves $\omega$-colimits. \end{lemma} \begin{proof} The pathobject functor $X^\ensuremath{\mathrm{I}}$ preserves all colimits, since it has a right adjoint by Corollary \ref{cor:rightadjpath}; hence so do all the functors $X^{\ensuremath{\mathrm{I}}^n}$. Since the open boxes $\sqcup^{n}$ are finite colimits of $(n-1)$-cubes, the functors $X^{\sqcup^{n}}$ are finite limits of functors of the form $X^{\ensuremath{\mathrm{I}}^{n-1}}$, and therefore preserve filtered colimits. Therefore $T$ is a pushout of functors that preserve $\omega$-colimits. \end{proof} \begin{proposition} There is a monad $\ensuremath{T_\infty}$ on $\ensuremath{\mathsf{cSet}}$ with a map of pointed endofunctors $T\to T_\infty$ inducing an isomorphism, \[ T_\infty\mbox{-}\mathrm{Alg}\ \cong\ T\mbox{-}\mathrm{Alg}\,. \] \end{proposition} \begin{proof}(sketch, cf.\ \cite{Garner}) To construct $\ensuremath{T_\infty}(X)$ for any cubical set $X$, begin with $t_X :X\to TX$ and consider \[ \xymatrix{ TX \ar@<.8ex>[r]^{Tt_X} \ar@<-.8ex>[r]_{t_{TX}} & T^2X\,, } \] which need not agree. Take the coequalizer $c$ to obtain a new object, called $T_2X$, \[ \xymatrix{ TX \ar@<.8ex>[r]^{Tt_X} \ar@<-.8ex>[r]_{t_{TX}} & T^2X \ar[r]^c & T_2X\,. } \] Now let $T_1X = TX$ and $t_1 = t : X\to T_1X$ and $c_1 = c : T^2X\to T_2X$, and continue as follows: \[ \xymatrix@=3em{ TX \ar@<.8ex>[r]^{Tt_X} \ar@<-.8ex>[r]_{t_{TX}} & T^2X \ar[rd]^{c_1} \ar[r]^{Tt_1} & TT_2X \ar[rd]^{c_2} \ar[r]^{Tt_2} & TT_3X \ar[r] & \dots\\ X \ar[u]^{t} \ar[r]_{t_1} & T_1X \ar[u]_{t_{T_1}} \ar[r]_{t_2} & T_2X \ar[u]_{t_{T_2}} \ar[r]_{t_3} & T_3X \ar[u]_{t_{T_3}} \ar[r]_{t_3} & \dots } \] At each successive step, $t_{n+1} := c_n\circ t_{T_n}$ and $c_{n+1} := \mathrm{coeq}(Tt_n, t_{T_{n+1}}\circ c_n)$. Finally, set $\ensuremath{T_\infty}(X) := \varinjlim_{n}T_n(X)$ and let $(t_\infty)_X: X\to \ensuremath{T_\infty}(X)$ be the canonical map. It follows from the foregoing lemma that $t : \ensuremath{T_\infty}(X) \cong T(\ensuremath{T_\infty}(X))$, and so $\ensuremath{T_\infty}$ is the (algebraically) free monad on $T$. \end{proof} \begin{remark}\label{rem:AWFS1} This essentially completes the proof of Theorem \ref{thm:AWFS1}: there is an AWFS $(\ensuremath{\mathsf{L}},\ensuremath{\mathsf{R}})$ on $\ensuremath{\mathsf{cSet}}$ in which the $\ensuremath{\mathsf{R}}$-algebras are the uniform Kan fibrations. For an object $X$, a uniform Kan structure $\phi$ on $X$ is the same thing as a $T$-algebra structure map $\phi : TX\to X$, and by the foregoing, these correspond precisely to $\ensuremath{T_\infty}$-algebra structures $\phi:\ensuremath{T_\infty}(X) \to X$. Moreover, the free $T$-algebra on $X$ is simply $\ensuremath{T_\infty}(X)$, with the isomorphism $t^{-1} : T\ensuremath{T_\infty}(X) \cong \ensuremath{T_\infty}(X)$ as its $T$-structure map. More generaly, for any map $f:Y\to X$ of cubical sets, we have that $\ensuremath{\mathsf{R}}(f) = \ensuremath{T_\infty}(f) : \tilde{Y} \to X$ is the ``free uniform Kan fibration'' on $f$, as indicated in \begin{equation \xymatrix{ Y \ar[rrd]_{f} \ar[rr]^{(t_\infty)_f} && \ar[d]^{\ensuremath{T_\infty}(f)} \tilde{Y} \\ && X } \end{equation} while $\ensuremath{\mathsf{L}}(f) = (t_\infty)_f : Y \to \tilde{Y}$ is the unit at $f$ of the $\ensuremath{T_\infty}$ monad. The object $E(f) = \tilde{Y}$ is simply the domain of $\ensuremath{\mathsf{R}}(f)$, constructed as a colimit. \end{remark} \subsection{Connections} For the model of \ensuremath{\mathsf{Id}}-types, we need the following fact, which is easily checked along the lines of Proposition \ref{prop:pathliftboxfill}. \begin{lemma} If $A$ is a uniform Kan complex, then the canonical map from the pathobject $A^\ensuremath{\mathrm{I}} \to A\times A$ is a uniform Kan fibration. \end{lemma} Now let $A$ be (uniform) Kan and consider the canonical pathobject factorization $A\stackrel{r}{\to} A^\ensuremath{\mathrm{I}} \stackrel{p}{\to} A\times A$ of the diagonal. By the foregoing lemma, the second factor $p : A^\ensuremath{\mathrm{I}} \to A\times A$ is also Kan, and so we just need the ``constant path'' map $r : A \to A^\ensuremath{\mathrm{I}}$ to be an $\ensuremath{\mathsf{L}}$-map. Specifically, it should have a coalgebra structure for the copointed endofunctor \[ \ensuremath{\mathsf{L}} : A/\ensuremath{\mathsf{cSet}} \longrightarrow A/\ensuremath{\mathsf{cSet}}\,, \] which takes maps $f : A\to X$ to their first factors $\ensuremath{\mathsf{L}}(f): A \to E(f)$. According to the construction of the AWFS just given (see Remark \ref{rem:AWFS1}), an $\ensuremath{\mathsf{L}}$-coalgebra structure map for $r:A\to A^\ensuremath{\mathrm{I}}$ is therefore a diagonal filler for the following square. \begin{equation}\label{diagram:reflL} \xymatrix{ A \ar[d]_{r} \ar[r]^{\ensuremath{\mathsf{L}}(r)} & \ar[d]^{\ensuremath{\mathsf{R}}(r)} E(r) \\ A^\ensuremath{\mathrm{I}} \ar@{..>}[ru] \ar[r]_{=} & A^\ensuremath{\mathrm{I}} } \end{equation} where $\ensuremath{\mathsf{R}}(r):E(r) \to A^\ensuremath{\mathrm{I}}$ is the free fibration on $r : A \to A^\ensuremath{\mathrm{I}}$. Since $\ensuremath{\mathsf{R}}(r)$ is an $\ensuremath{\mathsf{R}}$-algebra, this is exactly an instance of \ensuremath{\mathsf{Id}}-elimination, as in \eqref{diag:idelim}. \begin{proposition}\label{prop:liftingnotnormal} Let $A$ be a Kan complex, $\pi : B \to A^\ensuremath{\mathrm{I}}$ a Kan fibration, and $b : A\to B$ a map making the following outer square commute. \begin{equation}\label{diagram:IdElim} \xymatrix{ A \ar[d]_{r} \ar[r]^{b} & \ar[d]^{\pi} B \\ A^\ensuremath{\mathrm{I}} \ar@{..>}[ru]_{j} \ar[r]_{=} & A^\ensuremath{\mathrm{I}} } \end{equation} Then there is a diagonal map $j$ as indicated making the lower triangle commute, $\pi\circ j = 1$. \end{proposition} For the proof we shall require the following: \begin{definition} A \emph{connection} on a cubical set $X$ is a map \[ c : X^\ensuremath{\mathrm{I}} \to X^{\ensuremath{\mathrm{I}}\times\ensuremath{\mathrm{I}}} \] such that for each $n$-cube $(a: a_0\to a_1)$ in $X^\ensuremath{\mathrm{I}}$, the $(n+1)$-cube $c(a)$ has the form: \begin{equation}\label{diagram:connection} \xymatrix{ a_0 \ar[d]_{ra_0} \ar[r]^{ra_0} & \ar[d]^{a} a_0 \\ a_0 \ar@{}[ru]|{c(a)} \ar[r]_{a'} & a_1 } \end{equation} where $r : X\to X^\ensuremath{\mathrm{I}}$ is the degeneracy (i.e.\ the ``constant path''). The connection is called \emph{strict} if in the above we always have $a'=a$. It is called \emph{normal} if $c(r(x)) = r(r(x))$ for all $n$-cubes $x$ in $X$. \end{definition} \begin{lemma} Every Kan complex $A$ has a connection $c : A^\ensuremath{\mathrm{I}} \to A^{\ensuremath{\mathrm{I}}\times\ensuremath{\mathrm{I}}}$. \end{lemma} \begin{proof} Use the box filling in $A$. \end{proof} \begin{proof} (Proposition) We shall use the uniform Kan structure on $A$ and $\pi:B\to A^\ensuremath{\mathrm{I}}$ to construct a section $j:A^\ensuremath{\mathrm{I}} \to B$ of $\pi$. Since we know that $\pi$ has path-lifting, it will suffice to have, for every $n$-box $a : a_0 \to a_1$ in $\ensuremath{A^\I}$, a path of the form $c(a) : r(a_0) \to a$ (naturally in $n$). For then we can take $b(a_0)$ as a lift of $r(a_0)$ to get $j(a)$ as the transport \[ j(a) := c(a)_*(b(a_0)) \] of $b(a_0)$ along the path $c(a)$. We then have $\pi(j(a)) = \pi(c(a)_*(b(a_0))) = a$ by the definition of transport. The required path $c(a) : r(a_0) \to a$, for any $a$, is provided by the connection on $A$, as given by the lemma. \end{proof} Now consider the top triangle in \eqref{diagram:IdElim}, i.e.\ $jr=b$, as is required in order to have a diagonal filler in \eqref{diagram:reflL}. By definition, we have $j(a) := c(a)_*(b(a_0))$, and so $j(rx) = c(rx)_*(b(x))$. Thus we will have $jr=b$ if the following two conditions are satisfied: \begin{enumerate} \item the connection $c$ is strict: $c(rx) = r(rx)$, \item the transport in $\pi : B \to \ensuremath{A^\I}$ along any degenerate path $r(x) : x\to x$ is trivial: $r(x)_* = 1$. \end{enumerate} Both of these conditions will follow from the following strengthening of the notion of a uniform Kan fibration. \begin{definition} A uniform Kan fibration $f:B\to A$, with structure $\phi$, is \emph{normal} if the filler assigned by $\phi$ to a degenerate open box is always degenerate. Thus e.g.\ in the following outer commutative square, \[ \xymatrix{ \sqcup^{n+1} \ar[dd]_{i\ }\ar[rr]^-{b} \ar[rd]^{\pi i} && B \ar[dd]^{f} \\ & \ensuremath{\mathrm{I}}^n \ar[ru]^{c} & \\ \ensuremath{\mathrm{I}}^{n+1} \ar[ru]^\pi \ar[rr]_a \ar@/{}_{1.5pc}/@{..>}[rruu]_{\phi(a,b)} && A } \] if the open $(n+1)$-box $b$ is degenerate, $b=c\pi i$ for some $n$-cube $c$ in $B$ and projection $\pi: \ensuremath{\mathrm{I}}^{n+1} \to \ensuremath{\mathrm{I}}^{n}$ \emph{in the direction in which $\sqcup^{n+1}$ is open}, then the filler $\phi(a,b)$ is also degenerate, and specifically $\phi(a,b) = c\pi$. Generally, the assignment $\phi(a,b)$ must satisfy the following condition: for any generalized open box $i : \ensuremath{\mathrm{I}}^k\times\sqcup^{n+1}\to \ensuremath{\mathrm{I}}^k\times\ensuremath{\mathrm{I}}^{n+1}$ and any $(k+n)$-cube $c : \ensuremath{\mathrm{I}}^k\times \ensuremath{\mathrm{I}}^n \to B$ we have: \[ \phi(fc\pi, c\pi i) = c\pi\,, \] where $\pi: \ensuremath{\mathrm{I}}^{n+1} \to \ensuremath{\mathrm{I}}^{n}$ is the projection in the direction in which $\sqcup^{n+1}$ is open, all as indicated below. \[ \xymatrix{ \ensuremath{\mathrm{I}}^k\times\sqcup^{n+1} \ar[dd]_{i\ } \ar[rr] && B \ar[dd]^{f} \\ & \ensuremath{\mathrm{I}}^k\times\ensuremath{\mathrm{I}}^n \ar[ru]^{c} & \\ \ensuremath{\mathrm{I}}^k\times\ensuremath{\mathrm{I}}^{n+1} \ar[ru]^\pi \ar[rr] \ar@/{}_{2pc}/@{..>}[rruu]_{\phi} && A\,. } \] \end{definition} \begin{lemma}\label{lem:normalpath} If $A$ is a normal Kan complex, then $\ensuremath{A^\I} \to A\times A$ is a normal Kan fibration. \end{lemma} \begin{proof} Straightforward. \end{proof} \begin{lemma} Every normal Kan complex $A$ has a normal connection $c : A^\ensuremath{\mathrm{I}} \to A^{\ensuremath{\mathrm{I}}\times\ensuremath{\mathrm{I}}}$. \end{lemma} \begin{proof} Using normal box filling in $A$ to define the connection results in a normal connection. \end{proof} \begin{lemma} If $f: Y\to X$ is a normal Kan fibration, then the transport operation along any degenerate path $r(x) : x\to x$ in $X$ is trivial. \end{lemma} \begin{proof} Transport is determined by $1$-box filling, and so it is trivial if $f$ is normal. \end{proof} Using normal fibrations now allows a strengthening of Proposition \ref{prop:liftingnotnormal}. \begin{proposition}\label{prop:liftingnormal} Let $A$ be a normal Kan complex, $\pi : B \to A^\ensuremath{\mathrm{I}}$ a normal Kan fibration, and $b : A\to B$ a map making the following outer square commute. \begin{equation}\label{diagram:IdElim} \xymatrix{ A \ar[d]_{r} \ar[r]^{b} & \ar[d]^{\pi} B \\ A^\ensuremath{\mathrm{I}} \ar@{..>}[ru]_{j} \ar[r]_{=} & A^\ensuremath{\mathrm{I}} } \end{equation} Then there is a diagonal filler $j$ as indicated, making both triangles commute, $\pi\circ j = 1$ and $jr=b$. \end{proposition} \begin{proof} Again we set $j(a) := c(a)_*(b(a_0))$ and it just remains to check that $jr=b$. But now we have: \[ jr(x) = c(r(x))_*(b(x)) = r(r(x))_*(b(x)) = b(x) \] where the second equation is because the connection in $A$ is normal, and the third because the transport in $B\to\ensuremath{A^\I}$ along $r(r(x))$ is trivial. \end{proof} \begin{remark} On reflection, it should come as no surprise that the fibrations in our model must be normal in this sense in order to also model the \ensuremath{\mathsf{Id}}-computation rule: the syntactic model has the closely related property that the transport operation along any reflexivity term is (definitionally) trivial, in virtue of the \ensuremath{\mathsf{Id}}-computation rule. Of course, to model \ensuremath{\mathsf{Id}}-types in general we require not only the factorizations of the form $A \to A^\ensuremath{\mathrm{I}} \to A\times A$ for Kan complexes $A$, but also all those of the form $A \to A^\ensuremath{\mathrm{I}} \to A\times_X A$, for Kan fibrations $A\to X$, at least for $X$ Kan, and where the exponential $A^\ensuremath{\mathrm{I}}$ is made in the slice category $\ensuremath{\mathsf{cSet}}/X$. As elsewhere, we consider only the case $X=1$ for ease of exposition, but the general case holds as well. \end{remark} \section{Normalization} Let $X$ be a Kan complex with uniform box-filling structure $\phi$, so that for any open box $b: \sqcup^n \to X$ there is an associated filler $\phi(b) : \ensuremath{\mathrm{I}}^n \to X$ extending $b$, \[ \xymatrix{ \sqcup^n \ar[d]_{i^n} \ar[rr]^-{b} && X\\ \ensuremath{\mathrm{I}}^n \ar@{..>}[urr]_{\phi(b)} &&\,. } \] Since we have symmetries of cubes, we may restrict attention to boxes $i : \sqcup^n \to \ensuremath{\mathrm{I}}^n$ that are open in the first dimension (in either direction). The filling structure is then normal if, for any $(n-1)$-cube $c : \ensuremath{\mathrm{I}}^{n-1}\to X$, we have \[ \phi(c\pi i) = c\pi\,, \] as in \[ \xymatrix{ \sqcup^n \ar[dd]_{i^n} \ar[rr]^-{c\pi i} && X\\ & \ensuremath{\mathrm{I}}^{n-1} \ar[ur]^c & \\ \ensuremath{\mathrm{I}}^n \ar[ru]^{\pi} \ar@/{}_{2pc}/@{..>}[rruu]_{\phi(c\pi i)} &&\,, } \] where $\pi : \ensuremath{\mathrm{I}}^n \to \ensuremath{\mathrm{I}}^{n-1}$ is the first projection, so that $\pi i : \sqcup^n \to \ensuremath{\mathrm{I}}^{n-1}$ projects the open box onto its ``bottom''. Of course, the same condition applies also to generalized open boxes $b: \ensuremath{\mathrm{I}}^k\times\sqcup^n \to X$. This condition can be reformulated equivalently by saying that the section $\phi$ in the diagram \[ \xymatrix{ & X^{ \ensuremath{\mathrm{I}}^n } \ar[d]^{X^{i}}\\ X^{\sqcup^n} \ar[ru]^{\phi} \ar[r]_= & X^{\sqcup^n} } \] must also make the upper triangle in the following diagram commute: \[ \xymatrix{ X^{\ensuremath{\mathrm{I}}^{n-1}} \ar[d]_{X^{\pi i}} \ar[r]^{X^\pi} & X^{ \ensuremath{\mathrm{I}}^n } \ar[d]^{X^{i}}\\ X^{\sqcup^n} \ar[ru]^{\phi} \ar[r]_= & X^{\sqcup^n} \,. } \] Transposing, we obtain the condition: \[ \xymatrix{ {X^{\ensuremath{\mathrm{I}}^{n-1}}\!\times\ensuremath{\mathrm{I}}^{n}\ } \ar[d]_-{X^{{\pi}i} \times 1\ } \ar[rr]^-{1\times\pi} && {X^{\ensuremath{\mathrm{I}}^{n-1}}\!\times\ensuremath{\mathrm{I}}^{n-1}\ } \ar[d]^{\ensuremath{\mathrm{eval}}} \\ X^{\sqcup^n}\times\ensuremath{\mathrm{I}}^{n} \ar[rr]^-{\phi} && X \\ X^{\sqcup^n}\times\sqcup^n \ar[u]^-{1\times i\ } \ar[rr]_-{\ensuremath{\mathrm{eval}}} && X \ar[u]_{=} \,. } \] Or, equivalently, \[ \xymatrix{ {X^{\ensuremath{\mathrm{I}}^{n-1}}\!\times\ensuremath{\mathrm{I}}^{n}\ } \ar[d]_-{X^{{\pi}i} \times 1\ } \ar[rr]^-{\ensuremath{\mathrm{eval}}(1\times\pi)} && X \ar[d]^{=} \\ X^{\sqcup^n}\times\ensuremath{\mathrm{I}}^{n} \ar[rr]^-{\phi} && X \\ X^{\sqcup^n}\times\sqcup^n \ar[u]^-{1\times i\ } \ar[rr]_-{\ensuremath{\mathrm{eval}}} && X \ar[u]_= \,. } \] Using a coproduct to ``fold'' along $\phi$, we obtain: \[ \xymatrix{ (X^{\sqcup^n}\times\sqcup^n) + (X^{\ensuremath{\mathrm{I}}^{n-1}}\!\times\ensuremath{\mathrm{I}}^{n}) \ar[dd]_-{[1\times i,\,X^{{\pi}i} \times 1]\ } \ar[rrr]^-{[\ensuremath{\mathrm{eval}},\,\ensuremath{\mathrm{eval}}(1\times\pi)]} &&& X \\ &&&\\ X^{\sqcup^n}\times\ensuremath{\mathrm{I}}^{n} \ar[rrruu]_-{\phi} &&& } \] Pushing out as in \eqref{diagram:defTn}, we have: \begin{equation}\label{diag:defTdotn} \xymatrix{ (X^{\sqcup^n}\times\sqcup^n) + (X^{\ensuremath{\mathrm{I}}^{n-1}}\!\times\ensuremath{\mathrm{I}}^{n}) \ar[dd]_-{[1\times i,\,X^{{\pi}i} \times 1]\ } \ar[rr]^-{[\ensuremath{\mathrm{eval}},\,\ensuremath{\mathrm{eval}}(1\times\pi)]} && X \ar[dd]^{\dot{t}^n_X} \ar[r]^{=} & X\\ &&&\\ X^{\sqcup^n}\times\ensuremath{\mathrm{I}}^{n} \ar[rr] && {\pocorner} \dot{T}^n(X) \ar@{..>}[uur]_{\phi} & \,. } \end{equation} This last description provides an object $\dot{T}^n(X)$ with a map $\dot{t}^n_X : X\to\ \dot{T}^n(X)$ such that retractions $\phi$ of $\dot{t}^n_X$ correspond uniquely to \emph{normal} $n$-box filling structures on $X$. Finally, as in \eqref{diagram:defT}, we can sum over all $n$ to obtain a pointed endofunctor $\dot{T} :\ensuremath{\mathsf{cSet}}\to\ensuremath{\mathsf{cSet}}$, the algebras for which correspond to \emph{normal} Kan complexes. \begin{theorem}\label{thm:AWFS2} There is an algebraic weak factorization system $(\ensuremath{\mathsf{L}},\ensuremath{\mathsf{R}})$ on $\ensuremath{\mathsf{cSet}}$ for which the $\ensuremath{\mathsf{R}}$-algebras are exactly the normal Kan fibrations. \end{theorem} \begin{proof}(sketch) We have already constructed a pointed endofunctor $$\dot{T} :\ensuremath{\mathsf{cSet}}\to\ensuremath{\mathsf{cSet}},$$ the algebras for which are the normal Kan complexes $X\to 1$. The general construction for normal Kan fibrations $f:X\to Y$ is entirely analogous. It just remains to show that $\dot{T}$ preserves $\omega$-colimits, so that Kelly's construction of the algebraically free monad $\dot{T}\to \dot{T}_\infty$ again applies. But this follows just as in Lemma \ref{lem:compact}, by inspecting the components in the defining diagram \eqref{diag:defTdotn}. \end{proof} \begin{proposition} For any normal Kan complex $A$, the canonical pathobject factorization $A\to A^\ensuremath{\mathrm{I}}\to A\times A$ is an $(\ensuremath{\mathsf{L}},\ensuremath{\mathsf{R}})$ factorization. \end{proposition} \begin{proof} The second factor $A^\ensuremath{\mathrm{I}}\to A\times A$ is normal by Lemma \ref{lem:normalpath}. The first factor $r:A\to A^\ensuremath{\mathrm{I}}$ is an $\ensuremath{\mathsf{L}}$-map iff there is a diagonal filler for the square in \eqref{diagram:reflL}. This is provided by Proposition \ref{diagram:IdElim}. \end{proof} With this, we have reached our goal: \begin{corollary} The category $\ensuremath{\mathsf{cSet}}$ of cartesian cubical sets admits an interpretation of type theory with \ensuremath{\mathsf{Id}}-types based on an algebraic weak factorization system, in which the \ensuremath{\mathsf{Id}}-types are taken to be path-objects $\id{A} = A^\ensuremath{\mathrm{I}}$ satisfying the standard \ensuremath{\mathsf{Id}}-elimination and computation rules. \end{corollary} \section{An application: Factorization} The factorization of an arbitrary map $f:X\to Y$ given by the $\dot{T}_\infty$ monad is not easy to describe directly. But in case $X$ and $Y$ are both Kan, there is another factorization that can more easily be described explicitly: the ``graph'' or ``homotopy image'' factorization. This is a well-known construction from homotopy theory, but the proof that it works in this case is not trivial. We can use the interpretation of type theory to give an alternative proof (or at least a different perspective on the usual proof). Let $A$ and $B$ be (normal, uniform) Kan complexes, and take any map $f:A\to B$. We will construct a factorization \[ \xymatrix@=3em{ A \ar[r]^{i} \ar[rd]_{f} & \ar[d]^{\widetilde{f}} \widetilde{A} \\ & B } \] with $i\in\L$ and $\widetilde{f}\in\ensuremath{\mathcal{R}}$. Consider the following pullback diagram: \[ \xymatrix@=3em{ Pf \ar[r] \ar[d] \pbcorner \ar@/{}_{2pc}/@{..>}[dd]_{\widetilde{f}} & B^\ensuremath{\mathrm{I}} \ar[d] \\ A\times B \ar[r]_{f\times 1} \ar[d]^{\pi_2} & B\times B \\ B } \] Take $\widetilde{A} = Pf$ and $\widetilde{f}$ the indicated composite, which, note, is an $\ensuremath{\mathcal{R}}$-map, since each factor is, by the assumption that both $A$ and $B$ are Kan. For the factorization $i: A \to \widetilde{A}$, take the unique map determined as in: \[ \xymatrix@=3em{ A \ar@{..>}[rd]^{i} \ar[r]^{f} \ar@/{}_{2pc}/[rddd]_{f} \ar@/{}_{1pc}/[rdd]^{(1,f)} & B \ar[rd]^{r_B} & \\ & {Pf} \ar[r] \ar[d] \pbcorner & B^\ensuremath{\mathrm{I}} \ar[d] \\ & A\times B \ar[r]_{f\times 1} \ar[d]^{\pi_2} & B\times B \\ & B } \] As a dependent type, $Pf \to B$ is constructed as follows: $$ \begin{prooftree} \[ x: A \vdash f(x) : B, \qquad y,y' : B \vdash \id{B}(y, y') \justifies x: A, y: B \vdash \id{B}(fx, y) \] \justifies y: B \vdash \sum_{x:A}\id{B}(fx, y) \end{prooftree} $$ Under propositions-as-types, this is the ``image'' $$\{y:B\ |\ \exists x:A.\, f(x) = y\} \to B.$$ In the factorization \[ \xymatrix@=3em{ A \ar[r]^{i} \ar[rd]_{f} & \ar[d]^{\widetilde{f}} Pf \\ & B } \] the term $i$ has the form \begin{align*} x: A \vdash i(x) &: Pf(fx),\\ &= \sum_{x:A}\id{B}(fx, fx)\,. \end{align*} Indeed, it is given by setting \[ i(x) := (x, \mathsf{refl}(fx))\,. \] We know that $\widetilde{f} : Pf \to B$ is a (normal, uniform) Kan fibration, because it is a composite of pullbacks of such, as already noted; but we need to see that $i : A\to Pf$ as just defined is an $\L$-map. Consider \[ Pf = \sum_{x:A}\sum_{y:B}\id{B}(fx, y) \] and take any $C\to Pf$ in $\ensuremath{\mathcal{R}}$, i.e.: \[ x: A, y:B, z:\id{B}(fx,y) \vdash C(x,y,z)\,. \] Consider the lifting problem \[ \xymatrix@=3em{ A \ar[r]^{d} \ar[d]_{i} & C \ar[d] \\ Pf \ar[r]_{=} \ar@{..>}[ru]_{\phi} & Pf\,. } \] Thus we are given \[ x: A \vdash d(x) : C\big(x,fx,\mathsf{refl}(fx)\big)\,, \] and we seek \[ x: A, y:B, z:\id{B}(fx,y) \vdash \phi(x,y,z) : C(x,y,z)\,. \] such that: \[ \phi(x,fx,\mathsf{refl}(fx)) = d(x)\,. \] But this is a known inference, for which see \cite{GG}, Lemma 11. There is, of course, also a purely algebraic proof of this factorization; cf.~\cite{GvdB}, Proposition 6.1.4. \subsection*{Acknowledgements} For support during my stay in Stockholm, I am grateful to the University of Stockholm, the Arrhenius Foundation, and the US Air Force Office of Sponsred Research through MURI Grant FA9550-15-1-0053.
\section{Introduction}\label{s-intro} A colouring of a graph is an assignment of labels, called colours, to its vertices in such a way that no two adjacent vertices have the same label. The corresponding decision problem, {\sc Colouring}, which is that of deciding whether a given graph can be coloured with at most~$k$ colours for some given positive integer~$k$, is a central problem in discrete optimization. Its complementary problem {\sc Clique Cover} is that of deciding whether the vertices of a graph can be covered with at most~$k$ cliques. As {\sc Colouring} and {\sc Clique Cover} are {\sf NP}-complete even for $k=3$~\cite{Lo73}, it is natural to restrict their input to some special graph class. A classic result in this area is due to Gr\"otschel, Lov\'asz, and Schrijver~\cite{GLS84}, who showed that {\sc Colouring} is polynomial-time solvable for perfect graphs. However, for both problems, finding the exact borderline between tractable and computationally hard graph classes is still open. A graph class is {\it hereditary} if it can be characterized by some set of forbidden induced subgraphs, or equivalently, if it is closed under vertex deletion. The aforementioned class of perfect graphs is an example of such a class, as a graph is perfect if and only if it contains no induced odd holes and no induced odd antiholes~\cite{CRST06}. For the case where exactly one induced subgraph is forbidden, Kr\'al', Kratochv\'{\i}l, Tuza, and Woeginger~\cite{KKTW01} were able to prove a complete dichotomy; see also \figurename~\ref{fig:P1+P3-P4} (we write $G'\subseteq_i G$ to denote that the graph~$G'$ is an {\em induced} subgraph of the graph~$G$). \begin{theorem}[\cite{KKTW01}]\label{t-col-H-free} Let~$H$ be a graph. The {\sc Colouring} problem on $H$-free graphs is polynomial-time solvable if $H \subseteq_i P_1+\nobreak P_3$ or $H \subseteq_i P_4$ and it is {\sf NP}-complete otherwise. \end{theorem} \begin{figure}[h] \begin{center} \begin{tabular}{cc} \begin{minipage}{0.33\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertex[x=0,y=1]{a} \Vertex[x=1,y=1]{b} \Vertex[x=2,y=1]{c} \Vertex[x=3,y=1]{d} \Edges(b,c,d) \end{tikzpicture}}} \end{minipage} & \begin{minipage}{0.33\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertex[x=0,y=1]{a} \Vertex[x=1,y=1]{b} \Vertex[x=2,y=1]{c} \Vertex[x=3,y=1]{d} \Edges(a,b,c,d) \end{tikzpicture}}} \end{minipage}\\ \\ $P_1+\nobreak P_3$ & $P_4$\\ \end{tabular} \end{center} \caption{\label{fig:P1+P3-P4}The graphs~$H$ such that {\sc Colouring} can be solved in polynomial time on $H$-free graphs.} \end{figure} \noindent We study the complexity of {\sc Colouring} and {\sc Clique Cover} for $(H_1,H_2)$-free graphs, that is, when two induced subgraphs~$H_1$ and~$H_2$ are both forbidden. Both polynomial-time and {\sf NP}-completeness results are known for $(H_1,H_2)$-free graphs, as shown by many teams of researchers (see, for example,~\cite{BGPS12a,CH,DDP15,DGP14,HH,HL,KKTW01,LM15,Ma13,Ma,ML17,Sc05}), but the complexity classification is far from complete: even if we forbid two graphs~$H_1$ and~$H_2$ of up to four vertices, there are still three open cases left, namely when $(H_1,H_2)\in \{(K_{1,3},4P_1),\allowbreak (K_{1,3},2P_1+\nobreak P_2),\allowbreak (C_4,4P_1)\}$; see~\cite{LM15} (the graph~$K_{1,3}$ is the claw and~$C_4$ is the $4$-vertex cycle). We refer to~\cite[Theorem 21]{GJPS} for a summary and to the recent paper~\cite{ML17}, in which the number of missing cases when~$H_1$ and~$H_2$ are both connected graphs on at most five vertices was reduced from ten to eight. To narrow the complexity gap between hard and easy cases and to increase our understanding of it, we initiate a systematic study into $(H_1,H_2)$-free graph classes that are {\em closed under complementation}: if a graph~$G$ belongs to the class, then so does its {\it complement}~$\overline{G}$, which is the graph with vertex set~$V(G)$ and an edge between two distinct vertices if and only if these two vertices are not adjacent in~$G$. For such graph classes the complexities of {\sc Colouring} and {\sc Clique Cover} coincide, so we only need to consider the {\sc Colouring} problem. A graph~$H$ is {\em self-complementary} if~$H=\overline{H}$. We observe that a class of $(H_1,H_2)$-free graphs is closed under complementation if either~$H_1$ and~$H_2$ are both self-complementary, or $H_2=\overline{H_1}$. For the first case we prove the following more general classification in Section~\ref{s-self}. \begin{sloppypar} \begin{theorem}\label{t-self} Let $H_1,\ldots,H_k$ be self-complementary graphs. Then {\sc Colouring} is polynomial-time solvable for $(H_1,\ldots,H_k)$-free graphs if $H_i \subseteq_i P_4$ for some~$i$ and it is {\sf NP}-complete otherwise. \end{theorem} \end{sloppypar} \begin{sloppypar} Hence, we may now focus on the case when $H_2=\overline{H_1}$ and~$H_1$ is not self-complementary. In this case few results are known. First notice that for any integer $s\geq 1$, the class of $(sP_1,\overline{sP_1})$-free graphs consists of graphs with no large independent set and no large clique. The number of vertices in such graphs is bounded by a constant by Ramsey's Theorem. Dabrowski et al.~\cite{DGP14} researched the effect on the complexity of changing the forbidden subgraph~$sP_1$ by adding an extra edge, and proved that {\sc Colouring} is polynomial-time solvable for $(sP_1+P_2,\overline{sP_1+P_2})$-free graphs. A result of Malyshev~\cite{Ma13} implies that {\sc Colouring} is polynomial-time solvable for $(K_{1,3},\overline{K_{1,3}})$-free graphs. Ho\`ang and Lazzarato~\cite{HL} proved the same for $(P_5,\overline{P_5})$-free graphs. By combining results of~\cite{KR03b} and~\cite{OS06}, {\sc Colouring} is polynomial-time solvable on graph classes of bounded clique-width. It is known that $(P_1+\nobreak P_4,\allowbreak \overline{P_1+P_4})$-free graphs~\cite{BLM04} and $(2P_1+\nobreak P_3,\allowbreak \overline{2P_1+P_3})$-free graphs~\cite{BDJLPZ} have bounded clique-width, so {\sc Colouring} is polynomial-time solvable for these two graph classes. In light of these results, it is a natural research question to find out to what extent we may add edges to~$sP_1$ so that {\sc Colouring} remains polynomial-time solvable on $(H,\overline{H})$-free graphs for the resulting~graph~$H$. \end{sloppypar} To narrow down the large number of open cases $(H,\overline{H})$, we will use the known results that {\sc Colouring} is {\sf NP}-complete for graphs of girth at least~$p$ for any $p\geq\nobreak 3$ \cite{EHK98,KKTW01,KL07} (the girth of a graph is the length of a shortest induced cycle in it) and for $(K_{1,3},K_4,\overline{2P_1+P_2})$-free graphs~\cite{KKTW01}. Even after using these results there are still many open cases left, and to get a handle on them we need another {\sf NP}-hardness result for a very restricted graph class. In Section~\ref{sec:hard} we will prove such a result, namely, we show that {\sc Colouring} is {\sf NP}-complete even for $(P_1+\nobreak 2P_2,\allowbreak \overline{P_1+2P_2},\allowbreak 2P_3,\allowbreak \overline{2P_3},\allowbreak P_6,\overline{P_6})$-free graphs (see \figurename~\ref{fig:npc}). We will show that, by combining this result with those above, only the following open cases are left: $H=P_2+\nobreak P_3$ (see \figurename~\ref{fig:H-co-H-unknown-colouring}), $H=(s+1)P_1+P_3$ or $H=sP_1+P_4$ for $s\geq 2$. In Section~\ref{sec:easy} we give a polynomial-time algorithm for {\sc Colouring} restricted to the class of $(P_2+\nobreak P_3,\allowbreak \overline{P_2+P_3})$-free graphs (note that this class has unbounded clique-width, as it contains the class of split graphs, which have unbounded clique-width~\cite{MR99}). \begin{figure} \begin{center} \begin{tabular}{cccccc} \begin{minipage}{0.15\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1,rotate=90] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e} \Edges(b,c) \Edges(d,e) \end{tikzpicture}}} \end{minipage} & \begin{minipage}{0.15\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1,rotate=90] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e} \Edges(b,c,d,e,b) \Edges(b,a,c) \Edges(d,a,e) \end{tikzpicture}}} \end{minipage} & \begin{minipage}{0.15\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e,f} \Edges(c,d,e) \Edges(f,a,b) \end{tikzpicture}}} \end{minipage} & \begin{minipage}{0.15\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e,f} \Edges(a,d,e,f,a,e) \Edges(f,d) \Edges(b,c) \Edges(a,b,f) \Edges(d,c,e) \end{tikzpicture}}} \end{minipage} & \begin{minipage}{0.15\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e,f} \Edges(c,d,e,f,a,b) \end{tikzpicture}}} \end{minipage} & \begin{minipage}{0.15\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e,f} \Edges(f,a,b,f) \Edges(c,d,e,c) \Edges(a,d) \Edges(b,c,f,e) \end{tikzpicture}}} \end{minipage}\\ \\ $P_1+\nobreak 2P_2$ & $\overline{P_1+2P_2}$& $2P_3$& $\overline{2P_3}$& $P_6$& $\overline{P_6}$ \end{tabular} \end{center} \caption{\label{fig:npc}The six graphs corresponding to our result that {\sc Colouring} is {\sf NP}-complete for $(P_1+\nobreak 2P_2,\allowbreak \overline{P_1+2P_2},\allowbreak 2P_3,\allowbreak \overline{2P_3},\allowbreak P_6,\overline{P_6})$-free graphs.} \end{figure} \begin{figure} \begin{center} \begin{tabular}{cccccc} \begin{minipage}{0.20\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1,rotate=90] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e} \Edges(b,c) \Edges(d,e) \end{tikzpicture}}} \end{minipage} & \begin{minipage}{0.20\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1,rotate=90] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e} \Edges(b,c,d,e,b) \Edges(b,a,c) \Edges(d,a,e) \end{tikzpicture}}} \end{minipage} & \begin{minipage}{0.20\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1,rotate=90] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e} \Edges(e,a,b) \Edges(c,d) \end{tikzpicture}}} \end{minipage} & \begin{minipage}{0.20\textwidth} \centering \scalebox{0.75}{ {\begin{tikzpicture}[scale=1,rotate=90] \GraphInit[vstyle=Simple] \SetVertexSimple[MinSize=6pt] \Vertices{circle}{a,b,c,d,e} \Edges(e,a,b) \Edges(b,c,e,d,b) \Edges(c,d) \end{tikzpicture}}} \end{minipage}\\ \\ $P_1+\nobreak 2P_2$ & $\overline{P_1+\nobreak 2P_2}$ & $P_2+\nobreak P_3$ & $\overline{P_2+\nobreak P_3}$ \end{tabular} \end{center} \caption{\label{fig:H-co-H-unknown-colouring}The graphs~$H$ on five vertices for which the complexity of {\sc Colouring} for $(H,\overline{H})$-free graphs was unknown. We show {\sf NP}-completeness if $H \in \{P_1+\nobreak 2P_2,\overline{P_1+\nobreak 2P_2}\}$ and polynomial-time solvability if $H \in \{P_2+\nobreak P_3,\overline{P_2+P_3}\}$.} \end{figure} In Section~\ref{s-final} we show that our new hardness result and new polynomial-time algorithm combine together with the aforementioned known results to give us the main theorem of our paper. \begin{sloppypar} \begin{theorem}\label{t-mainmain} Let~$H$ be a graph with $H,\overline{H} \notin \{(s+\nobreak 1)P_1+\nobreak P_3, sP_1+\nobreak P_4\; |\; s\geq 2\}$. Then {\sc Colouring} is polynomial-time solvable for $(H,\overline{H})$-free graphs if $H$ or $\overline{H}$ is an induced subgraph of $K_{1,3}$, $P_1+\nobreak P_4$, $2P_1+\nobreak P_3$, $P_2+\nobreak P_3$, $P_5$, or $sP_1+\nobreak P_2$ for some $s\geq 0$ and it is {\sf NP}-complete otherwise. \end{theorem} \end{sloppypar} Theorem~\ref{t-mainmain} tells us is that we may only add a few edges to the graph $sP_1$ if {\sc Colouring} stays polynomial-time solvable on $(H,\overline{H})$-free graphs for the resulting graph~$H$ (even in the two missing cases where $H=(s+1)P_1+\nobreak P_3$ or $H=sP_1+\nobreak P_4$ for $s \geq 2$, the graph~$H$ is only allowed to contain at most three edges). From a more general perspective, our new hardness result has significantly narrowed the classification for $(H_1,H_2)$-free graphs. Our immediate goal is to complete the complexity classification of {\sc Colouring} for $(H,\overline{H})$-free graphs, thus to solve the cases when $H=(s+1)P_1+\nobreak P_3$ or $H=sP_1+\nobreak P_4$ for $s\geq 2$. We note that the class of $(3P_1+\nobreak P_2,K_4)$-free graphs, and thus the class of $(3P_1+\nobreak P_3,\allowbreak \overline{3P_1+P_3}$)-free graphs, has unbounded clique-width~\cite{DGP14}. We emphasize that our long-term goal is to increase our understanding of the computational complexity of {\sc Colouring} for hereditary graph classes. Another natural question is whether $k$-{\sc Colouring} (the variant of {\sc Colouring} where the number of colours is fixed) is polynomial-time solvable for $(H,\overline{H})$-free graphs when $H=(s+1)P_1+\nobreak P_3$ or $H=sP_1+\nobreak P_4$ for $s\geq 2$. This is indeed the case, as Couturier et al.~\cite{CGKP15} extended the result of~\cite{HKLSS10} on $k$-{\sc Colouring} for $P_5$-free graphs by proving that for every pair of integers $k,s\geq 1$, {\sc $k$-Colouring} is polynomial-time solvable even for $(sP_1+\nobreak P_5)$-free graphs. However, for other classes of $(H,\overline{H})$-free graphs, we show that $k$-{\sc Colouring} turns out to be {\sf NP}-hard by using a construction of Huang~\cite{Hu16}, that is, we show the following results in Section~\ref{sec:k-col}. \begin{theorem}\label{thm:4-col-overP8} $4$-{\sc Colouring} is {\sf NP}-complete for $(P_7,\overline{P_8})$-free graphs, and thus for $(P_8,\overline{P_8})$-free graphs. \end{theorem} \begin{theorem}\label{thm:5-col-overP8} $5$-{\sc Colouring} is {\sf NP}-complete for $(P_6,\overline{P_1+P_6})$-free graphs, and thus for $(P_1+\nobreak P_6,\overline{P_1+P_6})$-free graphs. \end{theorem} As {\sc Colouring} is polynomial-time solvable for $(P_5,\overline{P_5})$-free graphs~\cite{HL}, it would be interesting to solve the following two open problems (see also Table~\ref{tbl:pt-co-pt-col}): \begin{itemize} \item is there an integer $k$ such that $k$-{\sc Colouring} for $(P_6,\overline{P_6})$-free graphs is {\sf NP}-complete? \item is there an integer~$k$ such that $k$-{\sc Colouring} for $(P_7,\overline{P_7})$-free graphs is {\sf NP}-complete? \end{itemize} As $3$-{\sc Colouring} is polynomial-time solvable for $P_7$-free graphs~\cite{BCMSZ}, $k$ must be at least~$4$. Similar to summaries for $k$-{\sc Colouring} for $P_t$-free graphs (see, for example,~\cite{GJPS}) and $(C_s,P_t)$-free graphs~\cite{HH}, we can survey the known results and the missing cases of $k$-{\sc Colouring} for $(P_t,\overline{P_t})$-free graphs; see Table~\ref{tbl:pt-co-pt-col}. \begin{table}[h] \centering \begin{tabular}{r|cccc} $t\backslash k$ & $\leq 2$ & $3$ & $\geq 4$\\ \hline $\leq 5$ & P & P & P \\ $6$ & P & P & ? \\ $7$ & P & P & ? \\ $\geq 8$ & P & ? & {\sf NP}-c \\\\ \end{tabular} \caption{\label{tbl:pt-co-pt-col}The complexity of $k$-{\sc Colouring} $(P_t,\overline{P_t})$-free graphs for fixed values of~$k$ and~$t$. Here, P means polynomial-time solvable and {\sf NP}-c means {\sf NP}-complete. The entries in this table originate from Theorem~\ref{thm:4-col-overP8} and the following two results: $k$-{\sc Colouring} is polynomial-time solvable for $P_5$-free graphs for any $k\geq 1$~\cite{HKLSS10} and $3$-{\sc Colouring} is polynomial-time solvable for $P_7$-free graphs~\cite{BCMSZ}.} \end{table} \section{Preliminaries}\label{sec:prelim} Throughout our paper we consider only finite, undirected graphs without multiple edges or self-loops. The {\em disjoint union} $(V(G)\cup V(H), E(G)\cup E(H))$ of two vertex-disjoint graphs~$G$ and~$H$ is denoted by~$G+\nobreak H$ and the disjoint union of~$r$ copies of a graph~$G$ is denoted by~$rG$. For a subset $S\subseteq V(G)$, we let~$G[S]$ denote the subgraph of~$G$ {\it induced} by~$S$, which has vertex set~$S$ and edge set $\{uv\; |\; u,v\in S, uv\in E(G)\}$. If $S=\{s_1,\ldots,s_r\}$ then we may write $G[s_1,\ldots,s_r]$ instead of $G[\{s_1,\ldots,s_r\}]$. We may also write $G \setminus S$ instead of $G[V(G)\setminus S]$. For a set of graphs $\{H_1,\ldots,H_p\}$, a graph~$G$ is {\em $(H_1,\ldots,H_p)$-free} if it has no induced subgraph isomorphic to a graph in $\{H_1,\ldots,H_p\}$; if~$p=1$, we may write $H_1$-free instead of $(H_1)$-free. For a graph~$G$, the set $N(u)=\{v\in V\; |\; uv\in E\}$ denotes the {\em neighbourhood} of $u\in V(G)$. The graphs $C_r$, $K_r$, $K_{1,r-1}$ and~$P_r$ denote the cycle, complete graph, star and path on~$r$ vertices, respectively. The graph $\overline{P_1+2P_2}$ is also known as the $5$-vertex {\em wheel}. The graphs~$K_3$ and~$K_{1,3}$ are also called the {\em triangle} and {\em claw}, respectively. A graph~$G$ is a {\em linear forest} if every component of~$G$ is a path (on at least one vertex). The graph~$S_{h,i,j}$, for $1\leq h\leq i\leq j$, denotes the {\em subdivided claw}, that is, the tree that has only one vertex~$x$ of degree~$3$ and exactly three leaves, which are of distance~$h$,~$i$ and~$j$ from~$x$, respectively. Observe that $S_{1,1,1}=K_{1,3}$. The \emph{chromatic number}~$\chi(G)$ of a graph~$G$ is the smallest integer~$k$ such that~$G$ is $k$-colourable. The \emph{clique number}~$\omega(G)$ is the size of a largest clique in~$G$. A graph is {\em bipartite} if its vertex set can be partitioned into two (possibly empty) independent sets. \section{The Proof of Theorem~\ref{t-self}}\label{s-self} \noindent As mentioned in Section~\ref{s-intro}, if we study the complexity of {\sc Colouring} for $(H_1,H_2)$-free classes of graphs that are closed under complementation, it is sufficient to consider the case where~$H_1$ and~$H_2$ are not self-complementary and $H_2=\overline{H_1}$. We will give a short proof for this claim. To do so, we will need the following lemma. \begin{lemma}[\cite{EHK98,KKTW01,KL07}]\label{lem:col-cycle-free} For any integer $k\geq 3$, {\sc Colouring} is {\sf NP}-complete for $(C_3,C_4,\ldots,C_k)$-free graphs. \end{lemma} \medskip \noindent \faketheorem{Theorem~\ref{t-self} (restated).} {\it Let $H_1,\ldots,H_k$ be self-complementary graphs. Then {\sc Colouring} is polynomial-time solvable for $(H_1,\ldots,H_k)$-free graphs if $H_i \subseteq_i P_4$ for some~$i$ and it is {\sf NP}-complete otherwise.} \begin{proof} Let~$H$ be a self-complementary graph on~$n$ vertices. Then~$H$ must have $\frac{1}{2}\binom{n}{2}$ edges. If $n=1$ then $H=P_1$. Now~$n$ cannot be~$2$ or~$3$, since $\frac{1}{2}\binom{2}{2}$ and $\frac{1}{2}\binom{3}{2}$ are not integers. If $n=4$ then $H=P_4$, by inspection. Suppose $n \geq 5$. Then $\frac{1}{2}\binom{n}{2} = \frac{n(n-1)}{4} \geq n$, so~$H$ must contain a cycle. Thus, if~$H$ is a self-complementary graph then it is either an induced subgraph of~$P_4$ or it contains a cycle. Let $H_1,\ldots,H_k$ be self-complementary graphs. If $H_i \subseteq_i P_4$ for some~$i$, then the {\sc Colouring} problem for $(H_1,\ldots,H_k)$-free graphs is polynomial-time solvable by Theorem~\ref{t-col-H-free}. If $H_i \not \subseteq_i P_4$ for all~$i$, then each~$H_i$ must contain a cycle. In that case {\sc Colouring} for $(H_1,\ldots,H_k)$-free graphs is {\sf NP}-complete by Lemma~\ref{lem:col-cycle-free}.\qed \end{proof} \section{The Proof of Theorem~\ref{t-mainmain}}\label{a-b} In this section we prove Theorem~\ref{t-mainmain}. As part of the proof we first show that {\sc Colouring} is {\sf NP}-complete for $(P_1+\nobreak 2P_2,\allowbreak \overline{P_1+2P_2},\allowbreak 2P_3,\allowbreak \overline{2P_3},\allowbreak P_6,\overline{P_6})$-free graphs in Section~\ref{sec:hard} and polynomial-time solvable for $(P_2+\nobreak P_3,\allowbreak \overline{P_2+P_3})$-free graphs in Section~\ref{sec:easy}. \subsection{The Hardness Result}\label{sec:hard} In this section we prove the following result. \begin{theorem}\label{thm:P1+2P2-2P3-P6-and-complements-free-NPC} {\sc Colouring} is {\sf NP}-complete for $(P_1+\nobreak 2P_2,\allowbreak \overline{P_1+2P_2},\allowbreak 2P_3,\allowbreak \overline{2P_3},\allowbreak P_6,\overline{P_6})$-free graphs. \end{theorem} \begin{figure} \begin{center} \begin{tikzpicture}[scale=0.65] \draw[rounded corners, color=black, thick, dashed] (-1,0+0.5) rectangle (1,10-0.5); \draw[rounded corners, color=black, thick, dashed] (-1+5,0+0.5) rectangle (1+5,10-0.5); \draw[rounded corners, color=black, thick, dashed] (-1+10,0+0.5) rectangle (1+10,10-0.5); \draw (0,+0.5) node [label={[label distance=-0pt]-90:$V_W$}] {}; \draw (5,+0.5) node [label={[label distance=-0pt]-90:$V_U$}] {}; \draw (10,+0.5) node [label={[label distance=-0pt]-90:$A$}] {}; \coordinate (v1) at (0,1) ; \coordinate (v2) at (0,2) ; \coordinate (v3) at (0,3) ; \coordinate (v4) at (0,4) ; \coordinate (v5) at (0,5) ; \coordinate (v6) at (0,6) ; \coordinate (v7) at (0,7) ; \coordinate (v8) at (0,8) ; \coordinate (v9) at (0,9) ; \draw [fill=black] (v1) circle (1.5pt) ; \draw [fill=black] (v2) circle (1.5pt) ; \draw [fill=black] (v3) circle (1.5pt) ; \draw [fill=black] (v4) circle (1.5pt) ; \draw [fill=black] (v5) circle (1.5pt) ; \draw [fill=black] (v6) circle (1.5pt) ; \draw [fill=black] (v7) circle (1.5pt) ; \draw [fill=black] (v8) circle (1.5pt) ; \draw [fill=black] (v9) circle (1.5pt) ; \draw (v1) node [label={[label distance=-0pt]+180:$v_9$}] {}; \draw (v2) node [label={[label distance=-0pt]+180:$v_8$}] {}; \draw (v3) node [label={[label distance=-0pt]+180:$v_7$}] {}; \draw (v4) node [label={[label distance=-0pt]+180:$v_6$}] {}; \draw (v5) node [label={[label distance=-0pt]+180:$v_5$}] {}; \draw (v6) node [label={[label distance=-0pt]+180:$v_4$}] {}; \draw (v7) node [label={[label distance=-0pt]+180:$v_3$}] {}; \draw (v8) node [label={[label distance=-0pt]+180:$v_2$}] {}; \draw (v9) node [label={[label distance=-0pt]+180:$v_1$}] {}; \coordinate (w1) at (5,1+1.5) ; \coordinate (w2) at (5,2+1.5) ; \coordinate (w3) at (5,3+1.5) ; \coordinate (w4) at (5,4+1.5) ; \coordinate (w5) at (5,5+1.5) ; \coordinate (w6) at (5,6+1.5) ; \draw [fill=black] (w1) circle (1.5pt) ; \draw [fill=black] (w2) circle (1.5pt) ; \draw [fill=black] (w3) circle (1.5pt) ; \draw [fill=black] (w4) circle (1.5pt) ; \draw [fill=black] (w5) circle (1.5pt) ; \draw [fill=black] (w6) circle (1.5pt) ; \draw (w1) node [label={[label distance=-0pt]+90:$v_{\{7,8,9\}}$}] {}; \draw (w2) node [label={[label distance=-0pt]+90:$v_{\{6,7,8\}}$}] {}; \draw (w3) node [label={[label distance=-0pt]+90:$v_{\{4,5,6\}}$}] {}; \draw (w4) node [label={[label distance=-0pt]+90:$v_{\{3,4,7\}}$}] {}; \draw (w5) node [label={[label distance=-0pt]+90:$v_{\{2,3,4\}}$}] {}; \draw (w6) node [label={[label distance=-0pt]+90:$v_{\{1,2,3\}}$}] {}; \coordinate (x1) at (10,1+3) ; \coordinate (x2) at (10,2+3) ; \coordinate (x3) at (10,3+3) ; \draw [fill=black] (x1) circle (1.5pt) ; \draw [fill=black] (x2) circle (1.5pt) ; \draw [fill=black] (x3) circle (1.5pt) ; \draw (x1) node [label={[label distance=-0pt]+0:$a_3$}] {}; \draw (x2) node [label={[label distance=-0pt]+0:$a_2$}] {}; \draw (x3) node [label={[label distance=-0pt]+0:$a_1$}] {}; \draw (w1) -- (x1); \draw (w2) -- (x1); \draw (w3) -- (x1); \draw (w4) -- (x1); \draw (w5) -- (x1); \draw (w6) -- (x1); \draw (w1) -- (x2); \draw (w2) -- (x2); \draw (w3) -- (x2); \draw (w4) -- (x2); \draw (w5) -- (x2); \draw (w6) -- (x2); \draw (w1) -- (x3); \draw (w2) -- (x3); \draw (w3) -- (x3); \draw (w4) -- (x3); \draw (w5) -- (x3); \draw (w6) -- (x3); \draw (v1) -- (w1); \draw (v2) -- (w1); \draw (v3) -- (w1); \draw (v2) -- (w2); \draw (v3) -- (w2); \draw (v4) -- (w2); \draw (v4) -- (w3); \draw (v5) -- (w3); \draw (v6) -- (w3); \draw (v3) -- (w4); \draw (v6) -- (w4); \draw (v7) -- (w4); \draw (v6) -- (w5); \draw (v7) -- (w5); \draw (v8) -- (w5); \draw (v7) -- (w6); \draw (v8) -- (w6); \draw (v9) -- (w6); \end{tikzpicture} \caption{\label{fig:G_WU}The graph~$G_{W,U}$ for the instance~$(W,U)$ of {\sc Exact $3$-Cover} where $q=3$, $k=6$, $W=\{1,\ldots,9\}$~and $U=\{ \{1,2,3\},\allowbreak \{2,3,4\},\allowbreak \{3,4,7\},\allowbreak \{4,5,6\},\allowbreak \{6,7,8\},\allowbreak \{7,8,9\} \}$. The edges of the clique~$V_W$ are not~shown.} \end{center} \end{figure} \begin{proof} \setcounter{ctrclaim}{0} Let~$k$ and~$q$ be positive integers with $k \geq q$. Let~$W$ be a set of size~$3q$. Let~$U$ be a collection of~$k$ subsets of~$W$ each of size~$3$. An {\it exact $3$-cover} for $(W,U)$ is a set $U' \subseteq U$ of size~$q$ such that every member of~$W$ belongs to one of the subsets in~$U'$. The {\sf NP}-complete problem {\sc Exact $3$-Cover}~\cite{GJ79} is that of determining if such a set~$U'$ exists. To prove the theorem, we describe a reduction from {\sc Exact $3$-Cover} to {\sc Colouring} for $(P_1+\nobreak 2P_2,\allowbreak \overline{P_1+2P_2},\allowbreak 2P_3,\allowbreak \overline{2P_3},\allowbreak P_6,\overline{P_6})$-free graphs. Given an instance $(W,U)$ of {\sc Exact $3$-Cover}, we construct the graph~$G_{W,U}$ as follows (see~\figurename~\ref{fig:G_WU} for an example): \begin{itemize} \item Introduce a set of vertices $V_W = \{v_w \mid w \in W\}$ which forms a clique in~$G_{W,U}$. \item Introduce a set of vertices $V_U = \{v_u \mid u \in U\}$ which forms an independent set in~$G_{W,U}$. \item Add an edge from $v_w \in V_W$ to $v_u \in V_U$ if and only if $w \in u$. \item Introduce a set of vertices $A = \{a_i \mid 1 \leq i \leq k-q\}$ which forms an independent set in~$G_{W,U}$. \item Add an edge from each vertex of~$A$ to each vertex of~$V_U$. \end{itemize} \clm{\label{clm3:reduction}The vertices of $G_{W,U}$ can be covered by at most~$k$ pairwise vertex-disjoint cliques if and only if~$U$ contains an exact $3$-cover~$U'$.} First suppose that~$U$ contains an exact $3$-cover $U'$. Let $V_{U'} = \{v_u \in V_U \mid u \in U'\}$. For each $u \in U'$, let~$K^u$ be the clique on four vertices containing~$v_u$ and its three neighbours in~$V_W$; there are~$q$ such cliques. Form a perfect matching between the vertices of $V_U \setminus V_{U'}$ and the vertices of~$A$, that is, a collection of $k-q$ cliques on two vertices. Together, these~$k$ pairwise vertex-disjoint cliques cover~$V(G_{W,U})$. Now suppose that the vertices of~$G_{W,U}$ can be covered by at most~$k$ pairwise vertex-disjoint cliques. As~$V_U$ is independent and $|V_U|=k$, we have exactly~$k$ cliques, and each of them contains exactly one vertex of~$V_U$. Hence, as~$A$ is an independent set and each vertex in~$A$ is only adjacent to the vertices of~$V_U$, each of the $k-q$ vertices of~$A$ must be contained in a clique of size~$2$ that consists of a vertex of~$A$ and a vertex of~$V_U$. There are~$q$ other cliques, which, as we deduced, also contain exactly one vertex of~$V_U$. Each vertex of~$V_W$ must be in one of these cliques. As each vertex in~$V_U$ has exactly three neighbours in~$V_W$ and there are~$3q$ vertices in~$V_W$, this means that each of these cliques must contain four vertices, consisting of one vertex of~$V_U$ and three vertices of~$V_W$. Hence, if we let $u \in U$ belong to~$U'$ whenever~$v_u$ is in a clique of size~$4$, then~$U'$ forms an exact $3$-cover. This completes the proof of Claim~\ref{clm3:reduction}. \medskip \noindent We have shown a reduction from {\sc Exact $3$-Cover} to the problem of finding~$k$ pairwise vertex-disjoint cliques that cover $V(G_{W,U})$. The latter problem is equivalent to finding a $k$-colouring of~$\overline{G_{W,U}}$ (note that~$k$ is part of the input of {\sc Exact $3$-Cover}). It remains to show that~$\overline{G_{W,U}}$ is $(P_1+\nobreak 2P_2,\allowbreak \overline{P_1+2P_2},\allowbreak 2P_3,\allowbreak \overline{2P_3},\allowbreak P_6,\overline{P_6})$-free. Since a graph~$G$ is $(P_1+\nobreak 2P_2,\allowbreak \overline{P_1+2P_2},\allowbreak 2P_3,\allowbreak \overline{2P_3},\allowbreak P_6,\overline{P_6})$-free if and only if~$\overline{G}$ is, it is sufficient to show that~$G_{W,U}$ is $(P_1+\nobreak 2P_2,\allowbreak \overline{P_1+2P_2},\allowbreak 2P_3,\allowbreak \overline{2P_3},\allowbreak P_6,\overline{P_6})$-free. We do this in Claims~\ref{clm3:P1+2P2-free}-\nobreak\ref{clm3:co-P6-free}, but first we prove a useful observation. \clm{\label{clm3:jfour}Let~$J$ be an induced subgraph of~$G_{W,U}$ that is the complement of a linear forest on six vertices. Then~$J$ contains at least four vertices of~$V_W$.} As a linear forest contains no triangle, $J$ contains no independent set on three vertices. So~$J$ cannot contain more than two vertices from either of the independent sets~$V_U$ or~$A$. Thus it contains vertices of~$V_W$. But then it cannot contain two vertices from~$A$ as, combined with a vertex of~$V_W$ this would again induce an independent set of size~$3$. Hence there are at least three vertices of~$V_W$ in~$J$. But this implies that not even one vertex of~$A$ belongs to~$J$ (as it would have three non-neighbours and every vertex of~$J$ is adjacent to all but at most two of the others). This completes the proof of Claim~\ref{clm3:jfour}. \clm{\label{clm3:P1+2P2-free}$G_{W,U}$ is $(P_1+\nobreak 2P_2)$-free.} Suppose for contradiction that there is an induced $P_1+\nobreak 2P_2$ in~$G_{W,U}$. Since~$V_U$ and~$A$ are independent sets, every~$P_2$ in~$G_{W,U}$ must either have two vertices in~$V_W$ or one vertex in~$V_U$ and the other in~$V_W$ or~$A$. Since that~$V_W$ is a clique and every vertex in~$A$ is adjacent to every vertex in~$V_U$, one of the~$P_2$'s must have both its vertices in~$V_W$ and the other must have one vertex in~$V_U$ and the other in~$A$. But every vertex in $G_{W,U}$ has a neighbour in such a~$2P_2$, so no induced $P_1+\nobreak 2P_2$ can exist. This completes the proof of Claim~\ref{clm3:P1+2P2-free}. \clm{\label{clm3:co-P1+2P2-free}$G_{W,U}$ is $\overline{P_1+2P_2}$-free.} Suppose for contradiction that there is an induced $\overline{P_1+2P_2}$ in~$G_{W,U}$. Note this subgraph consists of a~$C_4$, which we denote~$C$, plus an additional vertex, which we denote~$z$, that is adjacent to every vertex in~$C$. If $z \in A$, then the vertices of~$C$ are all in~$V_U$, and if $z \in V_U$, the vertices of the~$C$ are either all in~$A$ or all in~$V_W$. Neither is possible, so we must have $z \in V_W$. Therefore none of the vertices of~$C$ is in~$A$. At most two of the vertices of~$C$ are in each of~$V_U$ and~$V_W$ as~$C$ contains neither an independent set nor a clique on three vertices. So~$C$ contains exactly two vertices from each of~$V_U$ and~$V_W$, but the pair from~$V_U$ must be non-adjacent in~$C$ and the pair from~$V_W$ must be adjacent in~$C$. This contradiction completes the proof of Claim~\ref{clm3:co-P1+2P2-free}. \clm{\label{clm3:2P3-free}$G_{W,U}$ is $2P_3$-free.} Suppose for contradiction that there is an induced~$2P_3$ in~$G_{W,U}$. Denote this graph by~$P$. As~$V_W$ is a clique,~$P$ contains at most two of its vertices. If it contains exactly two, then~$P$ must also contain a vertex $v_u \in V_U$ such that the three vertices together induce a~$P_3$. But then~$v_u$ cannot be adjacent to any other vertex of~$P$ so the remaining three vertices must all belong to~$V_U$, a contradiction as~$V_U$ is independent. So~$P$ must contain at least five vertices of~$A$ and~$V_U$. They cannot all belong to one of these two sets as~$P$ has no independent set of size~$5$, but if~$P$ contains vertices of both sets then there must be a vertex of degree~$3$. This contradiction proves that~$P$ does not exist. This completes the proof of Claim~\ref{clm3:2P3-free}. \clm{\label{clm3:co-2P_3-free}$G_{W,U}$ is $\overline{2P_3}$-free.} Suppose for contradiction that there is an induced~$\overline{2P_3}$ in~$G$. By Claim~\ref{clm3:jfour}, it contains four vertices of~$V_W$. We note that~$\overline{2P_3}$ contains exactly one induced~$K_4$ and that the other two vertices are adjacent to exactly two vertices in the clique (so must both be in~$V_U$) and to each other (so cannot both be in~$V_U$). This contradiction completes the proof of Claim~\ref{clm3:co-2P_3-free}. \clm{\label{clm3:P6-free}$G_{W,U}$ is $P_6$-free.} Suppose for contradiction that there is an induced~$P_6$ in~$G_{W,U}$. Denote this path by~$P$. As~$V_W$ is a clique,~$P$ contains at most two of its vertices. We see that~$P$ cannot contain exactly four vertices of either~$V_U$ or~$A$ as they would form an independent set of size~$4$. $P$ cannot contain exactly three vertices of either~$V_U$ or~$A$ as then there would be a vertex in the other of the two sets of degree~$3$. Finally, $P$ cannot contain at least two vertices from each of~$V_U$ and~$A$ as then it would contain an induced~$C_4$. These contradictions prove that~$P$ does not exist. This completes the proof of Claim~\ref{clm3:P6-free}. \clm{\label{clm3:co-P6-free}$G_{W,U}$ is $\overline{P_6}$-free.} Suppose for contradiction that there is an induced~$\overline{P_6}$ in~$G$. By Claim~\ref{clm3:jfour}, it contains four vertices of~$V_W$. This contradiction -- a clique on four vertices is not an induced subgraph of~$\overline{P_6}$ -- completes the proof of Claim~\ref{clm3:co-P6-free}.\qed \end{proof} \subsection{A Tractable Case}\label{sec:easy} We show that {\sc Colouring} is polynomial-time solvable for $(P_2+\nobreak P_3,\allowbreak \overline{P_2+P_3})$-free graphs. We first introduce some additional terminology. The {\em clique-width}~$\cw(G)$ of a graph~$G$ is the minimum number of labels needed to construct~$G$ by using the following four operations: \begin{enumerate} \item creating a new graph consisting of a single vertex~$v$ with label~$i$; \item taking the disjoint union of two labelled graphs~$G_1$ and~$G_2$; \item joining each vertex with label~$i$ to each vertex with label~$j$ ($i\neq j$); \item renaming label~$i$ to~$j$. \end{enumerate} \noindent A class of graphs~${\cal G}$ has {\em bounded} clique-width if there is a constant~$c$ such that the clique-width of every graph in~${\cal G}$ is at most~$c$; otherwise the clique-width is {\em unbounded}. For an induced subgraph~$G'$ of a graph~$G$, the {\em subgraph complementation} operation (acting on~$G$ with respect to~$G'$) replaces every edge present in~$G'$ by a non-edge, and vice versa. Similarly, for two disjoint vertex subsets~$S$ and~$T$ in~$G$, the {\em bipartite complementation} operation with respect to~$S$ and~$T$ acts on~$G$ by replacing every edge with one end-vertex in~$S$ and the other one in~$T$ by a non-edge and vice versa. Let $k\geq 0$ be a constant and let~$\gamma$ be some graph operation. We say that a graph class~${\cal G'}$ is {\em $(k,\gamma)$-obtained} from a graph class~${\cal G}$ if the following two conditions hold: \begin{enumerate} \item every graph in~${\cal G'}$ is obtained from a graph in~${\cal G}$ by performing~$\gamma$ at most~$k$ times, and \item for every $G\in {\cal G}$ there exists at least one graph in~${\cal G'}$ that is obtained from~$G$ by performing~$\gamma$ at most~$k$ times. \end{enumerate} \noindent We say that~$\gamma$ {\em preserves} boundedness of clique-width if for any finite constant~$k$ and any graph class~${\cal G}$, any graph class~${\cal G}'$ that is $(k,\gamma)$-obtained from~${\cal G}$ has bounded clique-width if and only if~${\cal G}$ has bounded clique-width. \begin{enumerate}[\bf F{a}ct 1.] \item \label{fact:del-vert} Vertex deletion preserves boundedness of clique-width~\cite{LR04}.\\[-1em] \item \label{fact:comp} Subgraph complementation preserves boundedness of clique-width~\cite{KLM09}.\\[-1em] \item \label{fact:bip} Bipartite complementation preserves boundedness of clique-width~\cite{KLM09}.\\[-1em] \end{enumerate} \noindent Two (non-adjacent) vertices are {\em false twins} if they have the same neighbourhood. We will use the following two lemmas, which are readily seen. \begin{lemma}\label{lem:atmost-2} The clique-width of a graph of maximum degree at most~$2$ is at most~$4$. \end{lemma} \begin{lemma}\label{lem:false-twin} If a vertex~$x$ in a graph~$G$ has a false twin then $\cw(G)=\cw(G \setminus \{x\})$. \end{lemma} The following lemma for $(P_2+\nobreak P_3)$-free bipartite graphs follows from a result of Lozin~\cite{Lozin2002}, who proved that the superclass of $S_{1,2,3}$-free bipartite graphs has bounded clique-width (see~\cite{DP14} for a full classification of the boundedness of clique-width of $H$-free bipartite graphs). \begin{lemma}[\cite{Lozin2002}]\label{lem:bipartite} The class of $(P_2+\nobreak P_3)$-free bipartite graphs has bounded clique-width. \end{lemma} A graph~$G$ is {\em perfect} if $\chi(H)=\omega(H)$ for every induced subgraph~$H$ of~$G$. Besides the above lemmas we will also apply the following three well-known theorems. \begin{theorem}[\cite{CRST06}]\label{thm:spgt} A graph is perfect if and only if it is $C_r$-free and $\overline{C_r}$-free for every odd $r \geq 5$. \end{theorem} \begin{theorem}[\cite{GLS84}]\label{t-perfect-colouring} {\sc Colouring} is polynomial-time solvable on perfect graphs. \end{theorem} \begin{theorem}[\cite{KR03b,OS06}]\label{thm:colouring-for-bdd-cw} For any constant~$c$, {\sc Colouring} is polynomial-time solvable on graphs of clique-width at most~$c$. \end{theorem} If~$G$ is a graph, then a (possibly empty) set $C \subseteq V(G)$ is a {\em clique separator} if~$C$ is a clique and $G \setminus C$ is disconnected. A graph~$G$ is an {\em atom} if it has no clique separator. Due to the following result of Tarjan, when considering the {\sc Colouring} problem in a hereditary class, we only need to consider atoms in the class. \begin{lemma}[\cite{Tarjan85}]\label{lem:colouring-no-clique-cutset} If {\sc Colouring} is polynomial-time solvable on atoms in an hereditary class~${\cal G}$, then it is polynomial-time solvable on all graphs in~${\cal G}$. \end{lemma} \noindent Let~$X$ be a set of vertices in a graph $G=(V,E)$. A vertex $y\in V\setminus X$ is {\em complete} (resp. {\em anti-complete}) to~$X$ if it is adjacent (resp. non-adjacent) to every vertex of~$X$. A set of vertices $Y\subseteq V\setminus X$ is {\em complete} (resp. {\em anti-complete}) to~$X$ if every vertex in~$Y$ is complete (resp. anti-complete) to~$X$. If~$X$ and~$Y$ are disjoint sets of vertices in a graph, we say that the edges between these two sets form a {\em matching} if each vertex in~$X$ has at most one neighbour in~$Y$ and vice versa (if each vertex has exactly one such neighbour, we say that the matching is {\em perfect}). Similarly, the edges between these sets form a {\em co-matching} if each vertex in~$X$ has at most one non-neighbour in~$Y$ and vice versa. In Theorem~\ref{thm:P2P_3-co-P_2+P_3-free} we present an algorithm for {\sc Colouring} restricted to $(P_2+\nobreak P_3,\allowbreak \overline{P_2+P_3})$-free graphs. Our algorithm first tries to reduce to perfect graphs, in which case we can use Theorem~\ref{t-perfect-colouring}. If a $(P_2+\nobreak P_3,\allowbreak \overline{P_2+P_3})$-free graph is not perfect, then we show that it must contain an induced~$C_5$. The clique-width of such graphs is not bounded (we can construct a $(P_2+\nobreak P_3,\overline{P_2+P_3})$-free graph of arbitrarily large clique-width by taking a split graph of arbitrarily large clique-width~\cite{MR99} with clique~$C$ and independent set~$I$ and adding five new vertices that form an induced~$C_5$ and that are complete to~$C$ but anti-complete to~$I$). Therefore, we do some pre-processing to simplify the graph. This enables us to bound the clique-width so that we may then apply Theorem~\ref{thm:colouring-for-bdd-cw}. Our general scheme for bounding the clique-width is to partition the remaining vertices into sets according to their neighbourhood in the~$C_5$ and then investigate the possible edges both inside these sets and between them. This enables us to use graph operations (see also Facts~\ref{fact:del-vert}--\ref{fact:bip}) that do not change the clique-width by ``too much'' to partition the input graph into disjoint pieces known to have bounded clique-width. \begin{theorem}\label{thm:P2P_3-co-P_2+P_3-free} {\sc Colouring} is polynomial-time solvable for $(P_2+\nobreak P_3,\overline{P_2+P_3})$-free graphs. \end{theorem} \begin{proof} \setcounter{ctrclaim}{0} Let~$G$ be a $(P_2+\nobreak P_3,\overline{P_2+P_3})$-free graph. By Lemma~\ref{lem:colouring-no-clique-cutset} we may assume that~$G$ is an atom and so has no clique separator (we will use this assumption in the proof of Claim~\ref{clm:V_0-V_12345-triv}). We first test in $O(|V(G)|^5)$ time whether~$G$ contains an induced~$C_5$. If not, then~$G$ is $C_5$-free. Since $\overline{C_5}=C_5$, $G$ is also $\overline{C_5}$-free. Since~$G$ is $(P_2+\nobreak P_3)$-free, $G$ is $C_k$-free for all $k \geq 7$. Since~$G$ is $(\overline{P_2+\nobreak P_3})$-free, $G$ is $\overline{C_k}$-free for all $k \geq 7$. By Theorem~\ref{thm:spgt}, this means that~$G$ is a perfect graph. Therefore, by Theorem~\ref{t-perfect-colouring}, we can solve {\sc Colouring} in polynomial time in this case. \begin{sloppypar} Now assume our algorithm found an induced $5$-vertex cycle~$C$ with vertices $v_1,v_2,v_3,v_4,v_5$, in that order. For $S \subseteq \{1,\ldots,5\}$, let~$V_S$ be the set of vertices $x \in V(G) \setminus V(C)$ such that $N(x)\cap V(C)=\{v_i \;|\; i \in S\}$. A set~$V_S$ is {\em large} if it contains at least three vertices, otherwise it is {\em small}. \end{sloppypar} To ease notation, in the remainder of the proof, subscripts on vertex sets should be interpreted modulo~$5$ and whenever possible we will write~$V_i$ instead of~$V_{\{i\}}$ and~$V_{i,j}$ instead of~$V_{\{i,j\}}$ and so on. We start with three structural claims. \clm{\label{clm:V0-indep}$V_\emptyset$ is an independent set.} If $x,y \in V_\emptyset$ are adjacent then $G[x,y,v_1,v_2,v_3]$ is a $P_2+\nobreak P_3$, a contradiction. Therefore $V_\emptyset$ is an independent set. This completes the proof of Claim~\ref{clm:V0-indep}. \begin{sloppypar} \clm{\label{clm:V1cupV12-small}$|V_i \cup V_{i,i+1}| \leq 1$ and $|V_{i+1} \cup V_{i,i+1}| \leq 1$ for $i \in \{1,2,3,4,5\}$.} Suppose for contradiction that $x,y \in V_1 \cup V_{1,2}$. If~$x$ and~$y$ are adjacent then $G[x,y,v_3,v_4,v_5]$ is a $P_2+\nobreak P_3$ and if~$x$ and~$y$ are non-adjacent then $G[v_3,v_4,x,v_1,y]$ is a $P_2+\nobreak P_3$. This contradiction implies that $|V_1 \cup V_{1,2}| \leq 1$. Claim~\ref{clm:V1cupV12-small} follows by symmetry. \end{sloppypar} \clm{\label{clm:V13-indep}$V_{i,i+2}$ is an independent set for $i \in \{1,2,3,4,5\}$.} Suppose for contradiction that $x,y \in V_{1,3}$ are adjacent. Then $G[v_1,v_3,x,v_2,y]$ is a $\overline{P_2+P_3}$, a contradiction. Therefore $V_{1,3}$ is an independent set. Claim~\ref{clm:V13-indep} follows by symmetry. \medskip \noindent Since $\overline{C_5}=C_5$, it follows that~$\overline{G}$ also contains a~$C_5$, namely on the vertices $v_1$, $v_3$, $v_5$, $v_2$ and~$v_4$ in that order. Therefore~$\overline{G}$ is also a $(P_2+\nobreak P_3,\allowbreak \overline{P_2+P_3})$-free graph containing an induced~$C_5$. As a result, we immediately obtain the following claims as corollaries of Claims~\ref{clm:V0-indep}--\ref{clm:V13-indep}. \clm{\label{clm:V12345-clique}$V_{1,2,3,4,5}$ is a clique.} \shortclm{\label{clm:V2345cupV245-small}$|V_{i,i+1,i+2,i+3} \cup V_{i,i+1,i+3}| \leq 1$ and $|V_{i,i+1,i+2,i+3} \cup V_{i,i+2,i+3}| \leq 1$ for $i \in \{1,2,3,4,5\}$.}\\ \shortclm{\label{clm:V234-clique}$V_{i,i+1,i+2}$ is a clique for $i \in \{1,2,3,4,5\}$.} \medskip \noindent Let~$I$ be the set of vertices in~$V_\emptyset$ that have a non-neighbour in~$V_{1,2,3,4,5}$. \clm{\label{clm:V_0-V_12345-triv}$G$ is $k$-colourable if and only if $G \setminus I$ is $k$-colourable.} The ``only if'' direction is trivial. Suppose~$G \setminus I$ is $k$-colourable. Fix a $k$-colouring~$c$ of $G \setminus I$. We will show how to extend $c$ to all vertices of~$G$. We may assume~$V_\emptyset$ and~$V_{1,2,3,4,5}$ are non-empty, otherwise $I=\emptyset$ and the claim follows trivially. Note that $V_\emptyset$ is an independent set by Claim~\ref{clm:V0-indep} and that~$V_{1,2,3,4,5}$ is a clique by Claim~\ref{clm:V12345-clique}. By assumption, $V_{1,2,3,4,5}$ is not a clique separator in~$G$. Since~$V_\emptyset$ is an independent set, every vertex of~$V_\emptyset$ must have a neighbour in $V(G) \setminus (V_\emptyset \cup V_{1,2,3,4,5} \cup V(C))$ that is adjacent to some vertex of the cycle~$C$. Let~$A$ be the set of vertices outside~$V_{1,2,3,4,5}$ that have a neighbour in~$V_\emptyset$. Note that~$A$ contains no vertex of~$V_\emptyset$, as~$V_\emptyset$ is an independent set. Hence, every vertex of~$A$ is adjacent to least one vertex of $C$ (but not to all vertices of~$C$). We claim that~$A$ is complete to~$V_{1,2,3,4,5}$. Indeed, suppose for contradiction that~$x \in A$ is non-adjacent to~$y \in V_{1,2,3,4,5}$. Let~$s$ be a vertex in~$V_\emptyset$ that is a neighbour of~$x$. Without loss of generality, assume that~$x$ is adjacent to~$v_1$. Then~$x$ is adjacent to~$v_3$ or~$v_4$, otherwise $G[v_3,v_4,s,x,v_1]$ would be a $P_2+\nobreak P_3$, a contradiction. Without loss of generality, assume that~$x$ is adjacent to~$v_3$. Then~$x$ is adjacent to~$v_2$, otherwise $G[v_1,v_3,y,x,v_2]$ would be a $\overline{P_2+P_3}$, a contradiction. Thus~$x$ is adjacent to~$v_4$ or~$v_5$, otherwise $G[v_4,v_5,s,x,v_2]$ would be a $P_2+\nobreak P_3$, a contradiction. Without loss of generality, assume that~$x$ is adjacent to~$v_4$. Now~$x$ must be adjacent to~$v_5$, otherwise $G[v_1,v_4,y,x,v_5]$ would be a $\overline{P_2+P_3}$, a contradiction. Therefore $x \in V_{1,2,3,4,5}$, a contradiction. It follows that~$A$ must indeed be complete to~$V_{1,2,3,4,5}$. Let $x \in I$. By definition of~$I$, there is a vertex $y \in V_{1,2,3,4,5}$ that is non-adjacent to~$x$. We claim that~$c(y)$ can also be used to colour~$x$. Indeed, every neighbour of~$x$ lies in $A \cup V_{1,2,3,4,5} \setminus \{y\}$. Since~$V_{1,2,3,4,5}$ is a clique and~$A$ is complete to~$V_{1,2,3,4,5}$, no vertex of $A \cup V_{1,2,3,4,5} \setminus \{y\}$ is coloured with the colour~$c(y)$. We may therefore colour~$x$ with the colour~$c(y)$. Repeating this process, we can extend the $k$-colouring of $G \setminus I$ to a $k$-colouring of~$G$. This completes the proof of Claim~\ref{clm:V_0-V_12345-triv}. \medskip \noindent By Claim~\ref{clm:V_0-V_12345-triv}, our algorithm may safely remove all vertices of~$I$ from~$G$ without changing the chromatic number. Hence we may assume that the following claim holds. \clmnonewline{\label{clm:V_0-V_12345-trivb}$V_\emptyset$ is complete to~$V_{1,2,3,4,5}$.} \medskip \noindent Our algorithm has finished the pre-processing. We are now ready to prove, through a series of further claims, that~$G$ has {\bf bounded clique-width}. Hence our algorithm can colour~$G$ in polynomial time by Theorem~\ref{thm:colouring-for-bdd-cw}. \clm{\label{clm:V_13-or-V123-small}Suppose $S,T \subseteq \{1,2,3,4,5\}$ with $|S|=2$ and $|T|=3$. Then at least one of~$V_S$ and~$V_T$ is small.} Suppose for contradiction that there are large sets~$V_S$ and~$V_T$ for $S,T \subseteq \{1,2,3,4,5\}$ with $|S|=2$ and $|T|=3$. By Claim~\ref{clm:V1cupV12-small} and symmetry, we may assume that $S=\{1,3\}$. By Claim~\ref{clm:V2345cupV245-small} and symmetry, we may assume that $T = \{i,i+1,i+2\}$ for some $i \in \{1,2,3\}$. We consider each of these cases in turn. Suppose $x \in V_{1,3}$ is non-adjacent to $y \in V_{1,2,3}$. Then $G[v_1,v_3,v_2,x,y]$ is a $\overline{P_2+P_3}$, a contradiction. Therefore~$V_{1,3}$ is complete to~$V_{1,2,3}$. Suppose $x,x' \in V_{1,3}$ and $y \in V_{1,2,3}$. Then~$y$ must be adjacent to both~$x$ and~$x'$. By Claim~\ref{clm:V13-indep}, $x$ is non-adjacent to~$x'$. Therefore $G[v_4,v_5,x,y,x']$ is a $P_2+\nobreak P_3$, a contradiction. It follows that if~$V_{1,3}$ is large then~$V_{1,2,3}$ is empty. Suppose $x \in V_{1,3}$ is adjacent to $y \in V_{2,3,4}$. Then $G[x,v_2,v_3,v_1,y]$ is a $\overline{P_2+P_3}$, a contradiction. Therefore~$V_{1,3}$ is anti-complete to~$V_{2,3,4}$. Suppose $x,x' \in V_{1,3}$ and $y \in V_{2,3,4}$. Then~$y$ is non-adjacent to both~$x$ and~$x'$. By Claim~\ref{clm:V13-indep}, $x$ is non-adjacent to~$x'$. Therefore $G[v_4,y,x,v_1,x']$ is a $P_2+\nobreak P_3$, a contradiction. It follows that if~$V_{1,3}$ is large then~$V_{2,3,4}$ is empty. Suppose $x \in V_{1,3}$ is non-adjacent to $y \in V_{3,4,5}$. Then $G[v_4,y,v_2,v_1,x]$ is a $P_2+\nobreak P_3$, a contradiction. Therefore~$V_{1,3}$ is complete to~$V_{3,4,5}$. Suppose $x,x' \in V_{1,3}$ and $y \in V_{3,4,5}$. Then~$y$ must be adjacent to both~$x$ and~$x'$. By Claim~\ref{clm:V13-indep}, $x$ is non-adjacent to~$x'$. Therefore $G[x,x',y,v_1,v_3]$ is a $\overline{P_2+\nobreak P_3}$, a contradiction. It follows that if~$V_{1,3}$ is large then~$V_{3,4,5}$ is empty. This completes the proof of Claim~\ref{clm:V_13-or-V123-small}. \medskip \noindent Claim~\ref{clm:V_13-or-V123-small} implies that we can have large sets~$V_S$ with $|S|=2$ or large sets~$V_T$ with $|T|=3$ (or neither), but not both. Again, since $\overline{C_5}=C_5$, the graph~$\overline{G}$ contains a~$C_5$ on vertices $v_1,v_3,v_5,v_2,v_4$, in that order. A vertex in~$G$ with exactly two (resp. three) neighbours in~$C$ will have exactly three (resp. two) neighbours in this new cycle in~$\overline{G}$. Therefore, if there is a large set~$V_T$ with $|T|=3$ then~$V_S$ is small whenever $|S|=2$. In this case we replace~$G$ by~$\overline{G}$ and replace~$C$ by this new cycle (we may do this by Fact~\ref{fact:comp}). We may therefore assume that~$V_T$ is small for all~$T$ with $|T|=3$. Note that after doing this we no longer have the symmetry between the situation for~$G$ and that for~$\overline{G}$. Indeed, in Claim~\ref{clm:V_0-V_12345-triv} we showed that because~$G$ has no clique separator, we may assume that~$V_\emptyset$ is complete to~$V_{1,2,3,4,5}$ (Claim~\ref{clm:V_0-V_12345-trivb}). However, we cannot guarantee that~$\overline{G}$ has no clique separator. Therefore, if we do complement~$G$ above, then the sets~$V_\emptyset$ and~$V_{1,2,3,4,5}$ will be swapped and will become anti-complete to each other, instead of complete to each other. Suppose~$V_S$ is small for some set $S \subseteq \{1,2,3,4,5\}$. Then, by Fact~\ref{fact:del-vert}, we may delete the vertices of~$V_S$. We may therefore assume that for each $S \subseteq \{1,2,3,4,5\}$, $V_S$ is either large or empty. By Claims~\ref{clm:V1cupV12-small} and~\ref{clm:V2345cupV245-small} and our assumption that~$V_T$ is small for all~$T$ with $|T|=3$ it follows that the only sets~$V_S$ that can be large are $V_\emptyset$, $V_{1,2,3,4,5}$ and~$V_{i,i+2}$ for $i \in \{1,2,3,4,5\}$. \begin{sloppypar} \clm{\label{clm:V13-V12345-comp}$V_{1,2,3,4,5}$ is complete to~$V_{i,i+2}$ for all $i \in \{1,2,3,4,5\}$.} Suppose for contradiction that $x \in V_{1,3}$ is non-adjacent to $y \in V_{1,2,3,4,5}$. Then $G[v_1,v_3,v_2,x,y]$ is a $\overline{P_2+\nobreak P_3}$, a contradiction. Claim~\ref{clm:V13-V12345-comp} follows by symmetry. \end{sloppypar} \begin{sloppypar} \clm{\label{clm:V12345-empty}We may assume that~$V_{1,2,3,4,5}$ is empty.} By Claim~\ref{clm:V13-V12345-comp}, $V_{1,2,3,4,5}$ is complete to each set~$V_{i,i+2}$. By Claim~\ref{clm:V_0-V_12345-trivb}, $V_\emptyset$ is complete to~$V_{1,2,3,4,5}$ or, if we complemented~$G$ then it is anti-complete to~$V_{1,2,3,4,5}$. By Fact~\ref{fact:bip}, we may apply a bipartite complementation between~$V_{1,2,3,4,5}$ and $V(C) \cup \bigcup_{i \in \{1,2,3,4,5\}} V_{i,i+2}$. If~$V_\emptyset$ is complete to~$V_{1,2,3,4,5}$ then we apply a bipartite complementation between~$V_{1,2,3,4,5}$ and~$V_\emptyset$. These operations disconnect $G[V_{1,2,3,4,5}]$ from the rest of the graph. By Claim~\ref{clm:V12345-clique}, $G[V_{1,2,3,4,5}]$ is a complete graph, so it has clique-width at most~$2$. We may therefore assume that~$V_{1,2,3,4,5}$ is empty. This completes the proof of Claim~\ref{clm:V12345-empty}. \end{sloppypar} \clm{\label{clm:Vii+2-V0-matching}For $i \in \{1,2,3,4,5\}$, the edges between~$V_{i,i+2}$ and~$V_\emptyset$ form a matching.} By symmetry, it suffices to prove the claim for $i=1$. Note that~$V_\emptyset$ and~$V_{1,3}$ are independent sets by Claims~\ref{clm:V0-indep} and~\ref{clm:V13-indep}, respectively. If the claim is false then there must be a vertex~$y$ in one of these sets that has two neighbours~$x$ and~$x'$ in the other set. Then~$x$ and~$x'$ are non-adjacent, so $G[v_4,v_5,x,y,x']$ is a $P_2+\nobreak P_3$. This contradiction completes the proof of Claim~\ref{clm:Vii+2-V0-matching}. \clm{\label{clm:v0-special-vii+2-nbrs}For distinct $i,j \in \{1,2,3,4,5\}$, if $x \in V_{i,i+2}$ is adjacent to $y \in V_\emptyset$ and $z \in V_{j,j+2}$ is non-adjacent to~$y$ then~$x$ is adjacent to~$z$.} Suppose, for contradiction, that the claim is false. By symmetry, we may assume that $i=1$, $j \in \{2,3\}$. Indeed, suppose $x \in V_{1,3}$ is adjacent to $y \in V_\emptyset$ and $z \in V_{j,j+2}$ is non-adjacent to~$x$ and~$y$. Then $G[x,y,v_5,v_4,z]$ or $G[x,y,v_4,v_5,z]$ is a $P_2+\nobreak P_3$ if $j=2$ or $j=3$, respectively. This contradiction completes the proof of Claim~\ref{clm:v0-special-vii+2-nbrs}. \clm{\label{clm:v0-empty}We may assume that~$V_\emptyset$ is empty.} Recall that~$V_{i,i+2}$ is an independent set for $i \in \{1,2,3,4,5\}$, by Claim~\ref{clm:V13-indep}. For $i \in \{1,2,3,4,5\}$, let~$V_{i,i+2}'$ be the set of vertices in~$V_{i,i+2}$ that have a neighbour in~$V_\emptyset$ and let $G'= G[V_\emptyset \cup \bigcup_{i \in \{1,2,3,4,5\}} V_{i,i+2}']$. By Claim~\ref{clm:v0-special-vii+2-nbrs}, for distinct $i,j \in \{1,2,3,4,5\}$, we find that~$V_{i,i+2}'$ is complete to $V_{j,j+2} \setminus V_{j,j+2}'$. By Fact~\ref{fact:bip} we may apply a bipartite complementation between every such pair of sets and also between $\{v_i,v_{i+2}\}$ and~$V_{i,i+2}'$ for $i \in \{1,2,3,4,5\}$. This disconnects~$G'$ from the rest of the graph. We now prove that~$G'$ has bounded clique-width. Claim~\ref{clm:Vii+2-V0-matching} implies that for $i \in \{1,2,3,4,5\}$, every vertex in~$V_\emptyset$ has at most one neighbour in~$V_{i,i+2}'$ and every vertex in~$V_{i,i+2}'$ has exactly one neighbour in~$V_\emptyset$. Furthermore, for distinct $i,j \in \{1,2,3,4,5\}$, if $x \in V_{i,i+2}'$ and $y \in V_{j,j+2}'$ have different neighbours in~$V_\emptyset$ then~$x$ is adjacent to~$y$ by Claim~\ref{clm:v0-special-vii+2-nbrs}. Now let~$G''$ be the graph obtained from~$G'$ by applying a bipartite complementation between~$V_{i,i+2}'$ and~$V_{j,j+2}'$ for each pair of distinct $i,j \in \{1,2,3,4,5\}$. Then, for distinct $i,j \in \{1,2,3,4,5\}$, if $x \in V_{i,i+2}'$ and $y \in V_{j,j+2}'$ are adjacent in~$G''$ then they must have the same unique neighbour in~$V_\emptyset$ in the graph~$G''$. Therefore every component of~$G''$ contains exactly one vertex in~$V_\emptyset$ and at most one vertex in each set~$V_{i,i+2}'$, so each component contains at most six vertices. It follows that~$G''$ has clique-width at most~$6$. By Fact~\ref{fact:bip}, $G'$ has bounded clique-width. We may therefore assume that~$V_\emptyset$ is empty. This completes the proof of Claim~\ref{clm:v0-empty}. \medskip \noindent Note that in the proof of Claim~\ref{clm:v0-empty} we may remove vertices from~$V_{i,i+2}$ for some $i \in \{1,2,3,4,5\}$. If this causes a set~$V_{i,i+2}$ to become small, then again by Fact~\ref{fact:del-vert}, we may delete all remaining vertices of~$V_{i,i+2}$. Therefore, we may again assume that each set~$V_{i,i+2}$ is either large or empty. We now analyse the edges between these sets. \clm{\label{clm:V13-V24-comatching}For $i \in \{1,2,3,4,5\}$, the edges between~$V_{i,i+2}$ and~$V_{i+1,i+3}$ form a co-matching.} Suppose for contradiction that the claim is false. Without loss of generality, assume there is a vertex~$x \in V_{1,3}$ with two non-neighbours $y,y' \in V_{2,4}$. Then~$y$ must be non-adjacent to~$y'$ by Claim~\ref{clm:V13-indep}, so $G[x,v_1,y,v_4,y']$ is a $P_2+\nobreak P_3$, a contradiction. This completes the proof of Claim~\ref{clm:V13-V24-comatching}. \clm{\label{clm:V13-adj-V24-Vjj+1-not-comp}For $i \in \{1,2,3,4,5\}$, suppose $x \in V_{i,i+2}$ is adjacent to $y \in V_{i+1,i+3}$. If $z \in V_{i+3,i}$ then~$z$ is not complete to $\{x,y\}$.} Suppose, for contradiction that $x \in V_{1,3}$ is adjacent to $y \in V_{2,4}$ and $z \in V_{4,1}$ is complete to $\{x,y\}$. Then $G[v_1,y,x,v_2,z]$ is a $\overline{P_2+P_3}$, a contradiction. This completes the proof of Claim~\ref{clm:V13-adj-V24-Vjj+1-not-comp}. \clm{\label{clm:V24-large-V13-V35-anti}For $i \in \{1,2,3,4,5\}$, if~$V_{i,i+2}$ is large then~$V_{i-1,i+1}$ is anti-complete to~$V_{i+1,i+3}$.} Suppose the claim is false. Without loss of generality, assume that~$V_{2,4}$ is large and $x \in V_{1,3}$ is adjacent to $z \in V_{3,5}$. By Claim~\ref{clm:V13-V24-comatching}, the vertices~$x$ and~$z$ each have at most one non-neighbour in~$V_{2,4}$. Since~$V_{2,4}$ is large, there must therefore be a vertex $y \in V_{2,4}$ that is adjacent to both~$x$ and~$z$. Then $G[v_3,y,x,v_2,z]$ is a $\overline{P_2+P_3}$, a contradiction. This completes the proof of Claim~\ref{clm:V24-large-V13-V35-anti}. \medskip \noindent For distinct $i,j \in \{1,2,3,4,5\}$, we say that~$V_{i,i+2}$ and~$V_{j,j+2}$ are {\em consecutive} sets if~$v_i$ and~$v_j$ are adjacent vertices of the cycle~$C$ and {\em opposite} sets if they are not. We consider cases depending on which sets~$V_{i,i+2}$ are large. \thmcase{\label{case:4-Vii+2-12345-large}$V_{i,i+2}$ is large for all $i \in \{1,2,3,4,5\}$.} By Claim~\ref{clm:V13-indep}, every set~$V_{i,i+2}$ is independent. Then, by Claim~\ref{clm:V24-large-V13-V35-anti}, if~$V_{i,i+2}$ and~$V_{j,j+2}$ are opposite then they must be anti-complete to each other. By Claim~\ref{clm:V13-V24-comatching}, if~$V_{i,i+2}$ and~$V_{j,j+2}$ are consecutive, then the edges between these sets form a co-matching. By Fact~\ref{fact:del-vert}, we may delete the vertices of the cycle~$C$. Applying a bipartite complementation between each pair of consecutive sets~$V_{i,i+2}$ and~$V_{j,j+2}$, we therefore obtain a graph of maximum degree~$2$. By Lemma~\ref{lem:atmost-2} and Fact~\ref{fact:bip}, $G$ has bounded clique-width. This completes Case~\ref{case:4-Vii+2-12345-large}. \newpage \thmcase{\label{case:4-Vii+2-1234-123-large}$V_{i,i+2}$ is large for $i \in \{1,2,3\}$ and empty for $i=5$. ($V_{i,i+2}$ may be large or empty for $i=4$.)} By Claim~\ref{clm:V13-indep}, every set~$V_{i,i+2}$ is independent. Then, by Claim~\ref{clm:V24-large-V13-V35-anti}, $V_{1,3}$ is anti-complete to~$V_{3,5}$ and~$V_{2,4}$ is anti-complete to~$V_{4,1}$ (note that this also holds in the case where $V_{4,1}=\emptyset$). Therefore $V_{1,3} \cup V_{3,5}$ and $V_{2,4} \cup V_{4,1}$ are independent sets, so $G[V_{1,3} \cup V_{3,5} \cup V_{2,4} \cup V_{4,1}]$ is a bipartite $(P_2+\nobreak P_3)$-free graph, and thus has bounded clique-width by Lemma~\ref{lem:bipartite}. By Fact~\ref{fact:del-vert}, we may delete the vertices of the cycle~$C$. All remaining vertices are in $V_{1,3} \cup V_{3,5} \cup V_{2,4} \cup V_{1,4}$. Therefore~$G$ has bounded clique-width. This completes Case~\ref{case:4-Vii+2-1234-123-large}. \thmcase{\label{case:4-Vii+2-two-large}$V_{i,i+2}$ is large for at most two values $i \in \{1,2,3,4,5\}$.} By Claim~\ref{clm:V13-indep}, every set~$V_{i,i+2}$ is independent. By Fact~\ref{fact:del-vert}, we may delete the vertices of the cycle~$C$. Therefore the remainder of the graph consists of the at most two sets~$V_{i,i+2}$, and is therefore a bipartite $(P_2+\nobreak P_3)$-free graph, so it has bounded clique-width by Lemma~\ref{lem:bipartite}. Therefore~$G$ has bounded clique-width. This completes Case~\ref{case:4-Vii+2-two-large}. \medskip \noindent By symmetry, only one case remains: \thmcase{\label{case:4-Vii+2-124-large}$V_{i,i+2}$ is large for $i \in \{1,2,4\}$ and empty for $i \in \{3,5\}$.} We consider two subcases: \thmsubcase{\label{case:4-Vii+2-1234-123-large-no-V41-nbr-V13-V24}No vertex of~$V_{4,1}$ has a neighbour in both~$V_{1,3}$ and~$V_{2,4}$.} By Claim~\ref{clm:V13-indep}, $V_{1,3}$, $V_{2,4}$ and~$V_{4,1}$ are independent. By Fact~\ref{fact:del-vert}, we may delete the vertices of the cycle~$C$. All remaining vertices belong to $V_{1,3} \cup V_{2,4} \cup V_{4,1}$. Let~$V_{4,1}^*$ be the set of vertices in~$V_{4,1}$ that have a neighbour in~$V_{1,3}$ and let $V_{4,1}^{**}=V_{4,1} \setminus V_{4,1}^*$. Note that if a vertex $x \in V_{4,1}$ has a neighbour in~$V_{2,4}$ then $x \in V_{4,1}^{**}$. Now $V_{2,4} \cup V_{4,1}^*$ and $V_{1,3} \cup V_{4,1}^{**}$ are independent sets, so $G[V_{2,4} \cup V_{4,1}^* \cup V_{1,3} \cup V_{4,1}^{**}]$ is a bipartite $(P_2+\nobreak P_3)$-free graph and thus has bounded clique-width by Lemma~\ref{lem:bipartite}. Therefore~$G$ has bounded clique-width. This completes Case~\ref{case:4-Vii+2-1234-123-large-no-V41-nbr-V13-V24}. \thmsubcase{\label{case:4-Vii+2-1234-123-large-yes-V41-nbr-V13-V24}There is a vertex $x \in V_{4,1}$ with neighbours $y \in V_{1,3}$ and $z \in V_{2,4}$.} By Claim~\ref{clm:V13-indep}, $V_{1,3}$, $V_{2,4}$ and~$V_{4,1}$ are independent. Then, by Claim~\ref{clm:V13-adj-V24-Vjj+1-not-comp}, $y$ must be non-adjacent to~$z$. By Claim~\ref{clm:V13-indep}, $V_{1,3}$, $V_{2,4}$ and~$V_{4,1}$ are independent. By Claim~\ref{clm:V13-V24-comatching}, the edges between~$V_{1,3}$ and~$V_{2,4}$ form a co-matching, so~$y$ is complete to $V_{2,4} \setminus \{z\}$ and~$z$ is complete to $V_{1,3}\setminus \{y\}$. By Claim~\ref{clm:V13-adj-V24-Vjj+1-not-comp}, it follows that~$x$ has no neighbours in $(V_{1,3}\setminus \{y\}) \cup (V_{2,4} \setminus \{z\})$. Then, since~$V_{1,3}$ and~$V_{2,4}$ are large, there must be adjacent vertices $y' \in V_{1,3}\setminus \{y\}$ and $z' \in V_{2,4}\setminus \{z\}$. Now $G[x,y,z',y',z]$ is a~$C_5$, with vertices in that order; we denote this cycle by~$C'$. By Fact~\ref{fact:del-vert}, we may delete the vertices of the original cycle~$C$. Repeating the arguments of Claim~\ref{clm:V1cupV12-small}, but applied with respect to the cycle~$C'$ instead of~$C$, we find that at most five vertices outside~$C'$ have exactly one neighbour in~$C'$. By Fact~\ref{fact:del-vert}, we may delete any such vertices. Let~$y'' \in V_{1,3} \setminus \{y,y'\}$. By Claim~\ref{clm:V13-indep}, $y''$ is non-adjacent to~$y$ and~$y'$. Since~$z$ is complete to $V_{1,3}\setminus \{y\}$, it follows that~$y''$ is adjacent to~$z$. By Claim~\ref{clm:V13-adj-V24-Vjj+1-not-comp} and the fact that~$z$ is adjacent to~$x$ and~$y''$, it follows that~$x$ cannot be adjacent to~$y''$. Since~$y''$ cannot have exactly one neighbour on~$C'$, we conclude that~$y''$ must be adjacent to~$z'$. Therefore every vertex of $V_{1,3} \setminus \{y,y'\}$ is adjacent to~$z$ and~$z'$, but no other vertices of~$C'$. Similarly, every vertex of $V_{2,4} \setminus \{z,z'\}$ is adjacent to~$y$ and~$y'$, but no other vertices of~$C'$. Let~$x' \in V_{4,1} \setminus \{x\}$. By Claim~\ref{clm:V13-indep}, the set~$V_{4,1}$ is independent, so~$x'$ is non-adjacent to~$x$. Therefore~$x'$ must have at least two neighbours in $\{y,y',z,z'\}$, but by Claim~\ref{clm:V13-adj-V24-Vjj+1-not-comp}, it cannot be complete to $\{y,z'\}$, $\{y',z'\}$ or $\{y',z\}$. Therefore the neighbourhood of~$x'$ in~$C'$ must be $\{y,y'\}$, $\{z,z'\}$ or $\{y,z\}$. If~$x'$ is adjacent to~$y$ then by Claim~\ref{clm:V13-adj-V24-Vjj+1-not-comp} and the fact that~$y$ is complete to $V_{2,4}\setminus \{z\}$, it follows that~$x'$ is anti-complete to $V_{2,4}\setminus \{z\}$. Similarly, if~$x'$ is adjacent to~$z$, then it is anti-complete to $V_{1,3}\setminus \{y\}$. This means that if~$x'$ is adjacent to~$y$ and~$z$ then it has no other neighbours, so it is a false twin of~$x$ and by Lemma~\ref{lem:false-twin} we may delete~$x'$ in this case. Therefore~$x'$ is either adjacent to~$y$ and~$y'$, in which case~$x'$ is anti-complete to~$V_{2,4}$, or $x'$ is adjacent to~$z$ and~$z'$, in which case $x'$ is anti-complete to~$V_{1,3}$. Let~$V_{4,1}^*$ be the set of vertices in~$V_{4,1}$ that are adjacent to~$y$ and~$y'$ and let~$V_{4,1}^{**}$ be the remaining vertices of~$V_{4,1}$. Now $V_{2,4} \cup V_{4,1}^*$ and $V_{1,3} \cup V_{4,1}^{**}$ are independent sets. Deleting the vertex~$x$, we obtain the graph $G[V_{2,4} \cup V_{4,1}^* \cup V_{1,3} \cup V_{4,1}^{**}]$, which is a bipartite $(P_2+\nobreak P_3)$-free graph and thus has bounded clique-width by Lemma~\ref{lem:bipartite}. By Fact~\ref{fact:del-vert}, it follows that~$G$ has bounded clique-width. This concludes Case~\ref{case:4-Vii+2-1234-123-large-yes-V41-nbr-V13-V24} and therefore Case~\ref{case:4-Vii+2-124-large}. \medskip \noindent We have proved that~$G$ has bounded clique-width. By Theorem~\ref{thm:colouring-for-bdd-cw}, this completes the proof of the theorem.\qed \end{proof} \subsection{The Final Proof}\label{s-final} We are now ready to prove Theorem~\ref{t-mainmain}. \medskip \noindent \faketheorem{Theorem~\ref{t-mainmain} (restated).} {\em Let~$H$ be a graph with $H,\overline{H} \notin \{(s+\nobreak 1)P_1+\nobreak P_3, sP_1+\nobreak P_4\; |\; s\geq 2\}$. Then {\sc Colouring} is polynomial-time solvable for $(H,\overline{H})$-free graphs if $H$ or $\overline{H}$ is an induced subgraph of $K_{1,3}$, $P_1+\nobreak P_4$, $2P_1+\nobreak P_3$, $P_2+\nobreak P_3$, $P_5$, or $sP_1+\nobreak P_2$ for some $s\geq 0$ and it is {\sf NP}-complete otherwise.} \begin{proof} We first consider the polynomial-time cases. The {\sc Colouring} problem is solvable in polynomial time for $(K_{1,3},\overline{K_{1,3}})$-free graphs~\cite{Ma13}, $(P_1+\nobreak P_4,\overline{P_1+P_4})$-free graphs (by Theorem~\ref{thm:colouring-for-bdd-cw} combined with the fact that they have bounded clique-width~\cite{BLM04b}), $(2P_1+\nobreak P_3,\overline{2P_1+P_3})$-free graphs~\cite{BDJLPZ}, $(P_2+\nobreak P_3,\overline{P_2+P_3})$-free graphs (by Theorem~\ref{thm:P2P_3-co-P_2+P_3-free}), $(P_5,\overline{P_5})$-free graphs~\cite{HL} and $(sP_1+\nobreak P_2, \overline{sP_1+P_2})$-free graphs for $s\geq 0$~\cite{DGP14}. Let~$H$ be a graph and suppose that {\sc Colouring} is not {\sf NP}-complete for $(H,\overline{H})$-free graphs and that neither~$H$ nor~$\overline{H}$ is isomorphic to $(s+1)P_1+\nobreak P_3$ or $sP_1+\nobreak P_4$ for $s \geq 2$. We will show that one of the polynomial-time cases above holds. For any $p \geq 3$, {\sc Colouring} is {\sf NP}-complete for $(C_3,\ldots,C_p)$-free graphs due to Lemma~\ref{lem:col-cycle-free}. Therefore, we may assume without loss of generality that~$H$ is a forest. First suppose that~$H$ contains a vertex of degree at least~$3$. Then $K_{1,3} \subseteq_i H$. We may assume~$H$ contains a vertex~$x$ not in this~$K_{1,3}$, otherwise we are done. Since~$H$ is a forest, $x$ can have at most one neighbour on the~$K_{1,3}$. Then $\overline{2P_1+P_2} \subseteq_i \overline{H}$ if~$x$ is adjacent to a leaf vertex of the~$K_{1,3}$ and $K_4 \subseteq_i \overline{H}$ if it is not. This means that the class of $(H,\overline{H})$-free graphs contains the class of $(K_{1,3},K_4,\overline{2P_1+P_2})$-free graphs for which {\sc Colouring} is {\sf NP}-complete~\cite{KKTW01}. We may therefore assume that~$H$ does not contain a vertex of degree~$3$, so~$H$ must be a linear forest. Now~$H$ must be $(P_1+\nobreak 2P_2,2P_3,P_6)$-free, otherwise the problem is {\sf NP}-complete on the class of $(H,\overline{H})$-free graphs by Theorem~\ref{thm:P1+2P2-2P3-P6-and-complements-free-NPC}. Let $H_1,\ldots,H_r$ be the components of~$H$ with $|V(H_1)|\geq\cdots\geq|V(H_r)|$ for some $r\geq 1$ and note that each component~$H_i$ is isomorphic to a path. If $r \geq 2$ then $|V(H_2)| \leq 2$ since~$H$ is $2P_3$-free. Suppose $|V(H_2)| = 2$. Then $r \leq 2$ and $|V(H_1)| \leq 3$, since~$H$ is $(P_1+\nobreak 2P_2)$-free. This means that $H \subseteq_i P_2 +\nobreak P_3$, so we are done. We may therefore assume that all components apart from~$H_1$ are trivial, that is, $H=sP_1+\nobreak P_t$ for some $s,t \geq 0$. Now $t \leq 5$, since~$H$ is $P_6$-free. If $t=5$ then $s=0$ since~$H$ is $(P_1+\nobreak 2P_2)$-free, so $H=P_5$ and we are done. If $t=4$ then $s \leq 1$ by assumption, so $H \subseteq_i P_1+P_4$ and we are done. If $t=3$ then $s \leq 2$ by assumption, so $H \subseteq_i 2P_1+P_3$ and we are done. If $t \leq 2$ then $H \subseteq_i sP_1+\nobreak P_2$ for some $s \geq 0$ and we are done. This completes the proof.\qed \end{proof} \section{The Proofs of Theorems~\ref{thm:4-col-overP8} and~\ref{thm:5-col-overP8}}\label{sec:k-col} To prove Theorems~\ref{thm:4-col-overP8} and~\ref{thm:5-col-overP8}, we use a construction introduced by Huang~\cite[Section~2]{Hu16}. Recall that the chromatic number and clique number of a graph $G$ are denoted by $\chi(G)$ and $\omega(G)$, respectively. A graph~$G$ is $k$-\emph{critical} if and only if $\chi(G) = k$ and $\chi(G-v) < k$ for every vertex~$v$ in~$G$. A $k$-critical graph~$G$ is \emph{nice} if and only if it contains an independent set on three vertices $c_1,c_2,c_3$, such that $\omega(G) = \omega(G - \{c_1,c_2,c_3\}) = k-1$. We describe the construction of Huang. Let~$I$ be an instance of {\sc $3$-Sat} with variables $X = \{x_1,\dots,x_n\}$ and clauses $\mathcal{C} = \{C^1,\dots,C^m\}$. We may assume that the variables in each clause are pairwise distinct. Let~$H$ be a nice $k$-critical graph. By definition~$H$ contains three pairwise non-adjacent vertices $c_1,c_2,c_3$ such that $\omega(H) = \omega(H - \{c_1,c_2,c_3\}) = k-1$. We construct the graph~$G_{H,I}$ as follows: \begin{itemize} \item For each variable~$x_i$, we create a pair of literal vertices~$x_i$ and~$\overline{x_i}$ joined by an edge. We call these vertices $X$-type. \item For each variable~$x_i$, we create a variable vertex~$d_i$. We call these vertices $D$-type. \item For each clause~$C^j$, we create a subgraph~$H_j$ isomorphic to~$H$. The three vertices of~$H_j$ corresponding to~$c_1,c_2,c_3$ are denoted $c_1^j,c_2^j,c_3^j$, respectively, and are called $C$-type; they are understood to each represent a distinct literal of~$C^j$. The remaining vertices of~$H_j$ are called $U$-type. \end{itemize} We have the following additional adjacencies: \begin{itemize} \item Every $U$-type vertex is adjacent to every $D$-type and every $X$-type vertex. \item Every $C$-type vertex is adjacent to the $X$-type vertex and $D$-type vertex that represent the corresponding literal and variable. \end{itemize} The following are~\cite[Lemma~1]{Hu16} and~\cite[Lemma~2]{Hu16}. \begin{lemma}[\cite{Hu16}]\label{lem:huang1} Let~$H$ be a nice $k$-critical graph. An instance~$I$ of {\sc $3$-Sat} is satisfiable if and only if~$G_{H,I}$ is $(k+1)$-colourable. \end{lemma} \begin{lemma}[\cite{Hu16}]\label{lem:huang2} Let~$H$ be a nice $k$-critical graph. If~$H$ is $P_t$-free for any integer $t\geq 6$, then~$G_{H,I}$ is also $P_t$-free. \end{lemma} \medskip \noindent \faketheorem{Theorem~\ref{thm:4-col-overP8} (restated).} {\em $4$-{\sc Colouring} is {\sf NP}-complete for $(P_7,\overline{P_8})$-free graphs.} \begin{proof} It follows from Lemma~\ref{lem:huang1} that we need only exhibit a nice $3$-critical graph~$H$ such that~$G_{H,I}$ is $(P_7,\overline{P_8})$-free for any {\sc $3$-Sat} instance~$I$. We claim that~$C_7$ will suffice. This is the graph used by Huang~\cite[Theorem~6]{Hu16} to show that {\sc $4$-Colouring} is {\sf NP}-complete for~$P_7$-free graphs. He noted (and it is trivial to check) that~$C_7$ is a $P_7$-free nice $3$-critical graph and so, by Lemma~\ref{lem:huang2}, $G_{C_7,I}$ is also $P_7$-free. It only remains to show that $G_{C_7,I}$ is $\overline{P_8}$-free. Suppose, for contradiction, that~$G_{C_7,I}$ contains a~$\overline{P_8}$, whose vertex set we denote~$P$, as an induced subgraph. We observe that any four vertices of~$P$ induce at least three edges and that any three vertices induce at least one edge. So~$P$ cannot contain four vertices that are each either $X$-type or $D$-type as they would induce at most two edges. So~$P$ contains at least five vertices that belong to copies of~$C_7$. We recall that vertices from distinct copies of~$C_7$ are not adjacent in~$G_{C_7,I}$. So if three of these five vertices belong to three distinct copies of~$C_7$, they induce no edge, a contradiction. Hence there must be a copy of~$C_7$ that contains at least three of the vertices. As two of them must be non-adjacent, no other vertex of the five can belong to another copy of~$C_7$, otherwise we again have three vertices that induce no edge. Therefore the five vertices must all belong to the same copy. Considering the subgraphs of~$C_7$ on five vertices, we see that these five vertices induce one of $P_1+\nobreak P_4$, $P_2+\nobreak P_3$ and~$P_5$, each of which contains an independent set on three vertices. Therefore~$P$ contains an independent set on three vertices. This contradiction completes the proof.\qed \end{proof} \noindent \faketheorem{Theorem~\ref{thm:5-col-overP8} (restated).} {\em $5$-{\sc Colouring} is {\sf NP}-complete for $(P_6,\overline{P_1+P_6})$-free graphs.} \begin{proof} It follows from Lemma~\ref{lem:huang1} that we need only to exhibit a nice $4$-critical graph~$H$ such that~$G_{H,I}$ is $(P_6,\overline{P_1+P_6})$-free for any {\sc $3$-Sat} instance~$I$. We claim that the graph~$H$ of \figurename~\ref{fig:h} will suffice. This is the graph used by Huang~\cite[Theorem~5]{Hu16} to show that {\sc $5$-Colouring} is {\sf NP}-complete for $P_6$-free graphs. He noted, and it is easy to verify, that~$H$ is a $P_6$-free nice $4$-critical graph and so, by Lemma~\ref{lem:huang2}, $G_{H,I}$ is also $P_6$-free. It only remains to show that~$G_{H,I}$ is $\overline{P_1+P_6}$-free. Suppose, for contradiction, that~$G_{H,I}$ contains~$\overline{P_1+P_6}$ as an induced subgraph. Thus~$G_{H,I}$ contains a set, denoted~$P$, of six vertices that induce a~$\overline{P_6}$ and a further vertex~$q$ adjacent to every vertex of~$P$. We observe that any four vertices of~$P$ induce at least three edges and that any three vertices induce at least one edge. \begin{figure} \begin{center} \begin{tikzpicture}[scale=0.8] \tikzstyle{every node}=[minimum width=0.7cm] \node[circle,draw=black,fill=white] (c_1) at (3, 5.2) {$c_1$}; \node[circle,draw=black,fill=white] (c_2) at (0, 0) {$c_2$}; \node[circle,draw=black,fill=white] (c_3) at (6, 0) {$c_3$}; \node[circle,draw=black,fill=white] (b) at (3, 1.73) {$b$}; \node[circle,draw=black,fill=white] (e) at (1.5, 2.6) {$e$}; \node[circle,draw=black,fill=white] (f) at (4.5, 2.6) {$f$}; \node[circle,draw=black,fill=white] (g) at (3, 0) {$g$}; \draw (c_1) -- (b); \draw (c_2) -- (b); \draw (c_3) -- (b); \draw (c_1) -- (e); \draw (c_1) -- (f); \draw (c_2) -- (e); \draw (c_2) -- (g); \draw (c_3) -- (f); \draw (c_3) -- (g); \draw (e) -- (g); \draw (f) -- (g); \draw (e) -- (f); \end{tikzpicture} \end{center} \caption{The graph~$H$ used in the proof of Theorem~\ref{thm:5-col-overP8}.} \label{fig:h} \end{figure} Suppose that~$q$ is either $D$-type or $X$-type. Then~$q$ has at most one neighbour that is also $D$-type or $X$-type, and so~$P$ contains at least five vertices that belong to copies of~$H$. Vertices from distinct copies of $H$ are not adjacent in $G_{H,I}$. If three of these five vertices belong to three distinct copies of $H$, they induce no edge, a contradiction. Hence the five vertices belong to at most two distinct copies of $H$. If there are two copies of $H$ that each contain at least two of the five vertices, then there are four vertices that induce at most two edges, a contradiction. Therefore at least four of the five vertices belong to the same copy of $H$ and so, in fact, they must all belong to the same copy (otherwise there is a single vertex in a distinct copy that is adjacent to none of the other four, a contradiction). Label the vertices in that copy as in \figurename~\ref{fig:h}. We notice that~$P$ contains at most one $C$-type vertex as~$q$ is adjacent to only one $C$-type vertex in each copy of~$H$ (recall that we assumed that the clauses of the {\sc $3$-Sat} instance contain three distinct variables). So without loss of generality~$P$ contains $c_1, b, e, f$ and~$g$, but these vertices do not induce a subgraph of~$\overline{P_6}$ (notice, for example, that there are three vertices not adjacent to~$b$), a contradiction. Let us suppose instead that~$q$ is a $C$-type vertex. Then~$q$ has degree~$5$ in~$G_{H,I}$ so it cannot be adjacent to every vertex of~$P$, a contradiction. Finally we assume that~$q$ is a $U$-type vertex and that it belongs to a copy of~$H$ with the labelling of \figurename~\ref{fig:h}. By the symmetry of~$H$, without loss of generality, only two cases remain: namely $q=b$ or $q=e$. If $q=b$, then the possible vertices of~$P$ are $c_1, c_2, c_3$ and $D$-type and $X$-type vertices. Hence~$P$ contains zero, one or two $C$-type vertices (it cannot contain all three since~$P$ does not contain an independent set of size~$3$). Then~$P$ contains at least four $D$-type and $X$-type vertices, but these four vertices can induce at most two edges, a contradiction. So we must have $q=e$ and~$P$ contains vertices from $c_1, c_2, f, g$ and the $D$-type and $X$-type vertices. Then~$P$ cannot contain both~$c_1$ and~$c_2$ as every pair of non-adjacent vertices in a~$\overline{P_6}$ has a common neighbour (since every pair of adjacent vertices in a~$P_6$ has a common non-neighbour), but~$c_1$ and~$c_2$ have no possible common neighbour as they represent distinct variables and so are joined to different $D$-type and $X$-type vertices. Observe that for each vertex~$v$ of~$P$, there is at least one other vertex of~$P$ that is not adjacent to~$v$. So, looking for possible non-neighbours, we have that \begin{itemize} \item if~$f$ is in~$P$, then~$c_2$ is in~$P$, and \item if~$g$ is in~$P$, then~$c_1$ is in~$P$, \end{itemize} and so~$P$ cannot contain both~$f$ and~$g$. Thus~$P$ contains at least four $D$-type and $X$-type vertices, but these four vertices can induce at most two edges. This contradiction completes the proof.\qed \end{proof}
\section{Introduction} Humanoid robots are designed for accomplishing a wide variety of tasks in human friendly environments but are redundant as the systems have very high degree--of--freedom, which makes real--time planning and control extremely challenging. In real world applications, such as in the DARPA Robotics Challenge (DRC, \cite{pratt2013darpa}), it was unreliable to directly plan the whole motion, rather typically, operators manually decide where the robot stood and what the desired posture was to execute an action. Such end--pose information is a key pre--requisite for a walking planner to generate footstep trajectories to move the robot to a suitable pre--grasp stance. Having arrived at this stance, the desired posture can be used as goal state in bidirectional motion planning algorithms such as RRT-Connect \cite{rrtconnect} to efficiently generate whole--body motion trajectories to reach the target. Thus, towards better robot autonomy, it is essential to automatically find appropriate end--poses in order to invoke walking controller and motion planner. \begin{figure} \centering \includegraphics[width=\linewidth]{intro_compact} \caption{Realtime end--pose planning. Top figure shows a variety of feasible stances for the robot to reach the target, while in the bottom figure, solutions are reduced due to the obstacle on the ground. A valid and sufficient end--pose is a key pre--requisite to other tasks, such as footstep planning and motion planning.} \label{fig:intro} \end{figure} Different approaches have been proposed to tackle this problem, such as \emph{Inverse Reachability Map} (IRM, \cite{vahrenkamp2013robot}\cite{stance2015}). These methods assume that a robot's reachability can be computed in advance, stored, and used to speed up online planning queries. The IRM constructs a reachability map in the reference frame of the end--effector and provides possible stance poses in which the robot can reach from this frame, i.e. given desired end--effector pose, where the robot's feet or base should be placed. The IRM analyses the robot's kinematic structures without considering collisions between the robot and it's environments, so some of the stored states could be invalid because of collisions. Meanwhile, in the field of motion planning, there is a related but distinct concept called \emph{Dynamic Roadmap} (DRM, \cite{leven2002framework}) that can efficiently validate samples and paths' collision status on--the--fly. To the best of our knowledge, DRM has only been applied to fixed base robots. For the mobile base and humanoid robots, where the base movement is unbounded, an infinite number of samples would have to be stored to form the full set of base poses, meaning that DRM can not be directly applied to end--pose planning for humanoids. In this paper, we introduce a new approach named the \emph{inverse Dynamic Reachability Map} (iDRM), which is able to efficiently find valid end--poses for humanoids in complex and dynamically changing environments. We introduce a customized robot--to--workspace occupation list and an online update technique that allows the robot to efficiently reconstruct the map, so that the selected end--poses are always collision--free. We evaluated the proposed approach on the model of the 38-DoF NASA Valkyrie humanoid robot. Results show that iDRM is able to find valid end--poses in different scenarios much more quickly than other state--of--the--art methods. Our approach can find valid solutions in real--time even in cluttered and dynamically changing environments where other approaches require a significant amount of time dealing with collision detection and avoidance. In our system, the iDRM provides the necessary pre--requisite for footstep and motion planning algorithms, as we will show that, by integrating the iDRM method, footstep and motion planners, we can efficiently generate walking and manipulation motions to realize desired tasks in different environments. \begin{figure*}[t] \centering \includegraphics[width=\textwidth]{mp_real} \caption{System overview. The end--pose planner first searches for a valid end--pose (a), which will be used to generate a footstep plan (b). The footstep plan is then executed to bring the robot to desired standing location (c). Finally, a reaching motion is generated and executed to reach the target (d and e). } \label{fig:mp} \end{figure*} \section{Related Work} \label{sec:background} \subsection{Reachability map} The Reachability map (RM), introduced by \cite{zacharias2013capability}, describes how a robot can reach certain workspace poses by its end--effector. To achieve this, a large number of poses are sampled. For a discretized workspace, each discrete reaching volume is associated with a score that shows how many samples can reach this particular target. The RM assumes that the robot base is fixed, which is unsuitable for the floating base kinematic structure of humanoids or mobile--based robots. Although one can randomly search possible base locations around the target \cite{6907099}, such procedure can be trapped in cluttered environments where the randomly selected base location is occupied by obstacles. As an improvement over the original RM, an inverse reachability map (IRM) is capable of finding feet/base poses and configurations by storing a map calculated from the end--effector pose to infer where to put the robot's feet or base \cite{vahrenkamp2013robot}\cite{stance2015}. In contrast to RM, IRM is constructed in the end--effector's frame and transforms all the samples to poses with respect to the end--effectors as the origin. Vahrenkamp et.al. \cite{vahrenkamp2013robot} applied the IRM method on a mobile robot and Burget and Bennewitz \cite{stance2015} extended the work to humanoids. There may exist many valid samples. Burget and Bennewitz \cite{stance2015} used a Jacobian--based manipulability measure to score all the samples and then selected the sample with highest score. The IRM approach shows an interesting result for efficiently finding valid end--poses for humanoids. However, the method does not consider collisions between the robot and it's environment. An expensive collision checking procedure is required during every query. If the selected sample is in collision, other samples need to be selected and checked again until a collision--free result is found. This issue can significantly slow down the end--pose planning when operating in complex and cluttered environments where most selected samples are in collision and valid samples with low scores can only be found after many iterations. \subsection{Dynamic Roadmap} The Dynamic Roadmap (DRM) was first introduced in \cite{leven2002framework} as a motion planning algorithm designed for allowing the robot to quickly validate the nodes and edges of a probabilistic roadmap (PRM, \cite{kavraki1996probabilistic}). In the early work \cite{leven2002framework}\cite{kallman2004motion}, due to the lack of computation and memory capacity, only limited number of nodes and edges could be stored, thus the configuration space of the robot can not be densely covered, which led to low success rates \cite{kallman2004motion}. In more recent work \cite{kunz2010real}\cite{schumannparallel}, with more powerful CPU/GPU and larger memory, millions of samples could be sampled and quickly updated. Murray et.al. \cite{planchip} implemented a DRM on a chip to enable real--time planning capability for robotic arm. Interesting work has been done on low DoF robot using DRM, however, the computational power and memory storage of PCs (or other specialized hardware) at the time of writing this paper are still insufficient for storing enough samples and edges to cover a humanoids' full configuration space, which is usually 30-40 dimensions. Similar to the RM, the DRM only work with fixed base robots, since a floating base systems would require an infinite number of voxels or a limited working envelope. \section{Humanoid Motion Planning} \label{sec:problem} Humanoid whole--body motion plan, including locomotion and upper--body manipulation, can be generated directly using customized planning algorithms \cite{932631}\cite{7363504}. Although, considering robustness, it makes sense to have them separated for advanced life--size humanoids such as Boston Dynamics Atlas and NASA Valkyrie. In our work, as shown in Fig.~\ref{fig:mp}, we formulate humanoid motion planning problem as a combination of the following sub stages: the end--pose planning \begin{equation} \mathbf{q}^*=\mathit{EndPosePlan}(\mathbf{q}_0,\mathbf{y}^*, \mathit{Env}), \label{eq:endpose} \end{equation} the footstep planning \begin{equation} \mathcal{S}_{[0,1]}=\mathit{FootStepPlan}(\mathbf{p}_0,\mathbf{p}^*, \mathit{Env}), \label{eq:footstep} \end{equation} and the motion planning with fixed feet \begin{equation} \mathbf{q}_{[0,1]}=\mathit{MotionPlan}(\mathbf{q}_s,\mathbf{q}^*, \mathit{Env}), \label{eq:motion} \end{equation} where $\mathbf{q}_0$ and $\mathbf{q}^*$ are the current and desired configurations, $\mathbf{y}^*=T^\mathit{eff,world}\left(\mathbf{q}^*\right)$ is the desired end--effector pose in the world frame and $\mathit{Env}$ is the environment instance. $\mathbf{p}_0=T^\mathit{stance,world}\left(\mathbf{q}_0\right)$, $\mathbf{p}^*=T^\mathit{stance,world}\left(\mathbf{q}^*\right)$ are the start and goal stance frames for footstep planner, and $\mathcal{S}_{[0,1]}$ is the footstep plan. The ``stance frame" refers to the central point of the two feet with heading direction. $\mathbf{q}_s$ is the configuration after walking to stance frame, which will be used as the start state for motion planning. The end--pose includes stance frame and whole-body configuration, i.e. $\mathbf{q} \in \mathbb{R}^{N+6}$, where $N$ is the number of articulated joints. In the rest of the paper, unless specified otherwise, by end--pose we refer to the stance frame together the whole-body configuration. Whether separate the whole--body motion planning into sub stages or not, it is clear that $\mathit{EndPosePlan}$ is essential in either scenario. In this paper, we start by focusing on solving the $\mathit{EndPosePlan}$ problem using the iDRM method (Section \ref{sec:idrm}), to provide goal states for $\mathit{FootStepPlan}$ and $\mathit{MotionPlan}$ problems (Section \ref{sec:hmp}). \section{Inverse Dynamic Reachability Map} \label{sec:idrm} The proposed iDRM method can be separated into two different stages: offline processing and online updating. During offline processing, the empty workspace is first discretized into a set of voxels. Each voxel stores the indices of robot configurations whose feet/base poses fall into this voxel while the end--effector reaching the origin of the workspace. An occupation list is also stored for each voxel that contains the indices of samples that intersect with this voxel by any body parts. During online phase, During online queries, the entire iDRM is moved to target's spacial coordinate frame. A collision checking step is carried out between voxelized workspace and the current environment. If a voxel is occupied by obstacles, all the samples registered in the occupation list become invalid. The remaining set of valid samples then forms a valid IRM in this particular environment. In this rest of this section, we describe the details of offline construction of the iDRM and how to use iDRM to bootstrap online end--pose planning. \subsection{Offline: iDRM construction} \label{sec:offlineidrm} We first use a full--body IK solver \cite{drake} to find feasible quasi--statically balanced configurations \begin{equation} \mathbf{q}^* = \mathit{IK}(\mathbf{q}_\mathit{seed}, \mathbf{q}_\mathit{nom},\mathbf{C}) \label{eq:ik} \end{equation} by a sequential quadratic programming (SQP) solver in the form of \begin{eqnarray} \mathbf{q}^* = & \arg\min_{\mathbf{q}\in\mathbb{R}^{N+6}} \|\mathbf{q}-\mathbf{q}_\mathit{nominal}\|^2_{Q_q}\\ \textnormal{subject to} & \mathbf{b}_l\leq \mathbf{q} \leq \mathbf{b}_u\\ & c_i(\mathbf{q})\leq 0, c_i\in \mathbf{C} \label{eq:iksqp} \end{eqnarray} where $Q_q\succeq 0$ is the weighting matrix, $\mathbf{b}_l$ and $\mathbf{b}_u$ are the lower and upper joint bounds. The seed pose $\mathbf{q}_\mathit{seed}$ is used as the initial value in the first iteration of SQP solver. The output $\mathbf{q}^*$ is a configuration that satisfies all the constraints defined in $\mathbf{C}$ and is close to $\mathbf{q}_\mathit{nominal}$. The constraints include quasi--static balance constraint, end--effector pose constraint, etc. We say a robot is quasi--statically balanced if the centre--of--mass projection lies within the support polygon with no velocity and acceleration along any axis. We only store postures that are quasi--statically balanced, self--collision--free and reach an area of interest in front of the robot. Note that one can still reach targets behind by rotating the whole robot, which is the key feature of stance pose selection. We use the method introduced in \cite{kuffner2004effective} to add uniformly distributed end--effector orientation constraints into IK solver to fully explore the robot's reaching capability. We repeat the sampling process until $M$ number of samples, $\mathcal{Q}$, are generated. The classic DRM also records occupations for edges between two states that require of storage memory in the order of gigabytes for 6-7 DoF fixed-base robotic arms. It is unrealistic to store all this information for high DoF humanoids on ordinary PCs. We only store the robot states and the collision--free edges will be generated online using motion planning algorithms. For each sample $\mathbf{q}_n$, inverting the end--effector frame yields the stance frame expressed in the end--effector frame, \begin{equation} T^\mathit{stance,eff}_n = \left(T^\mathit{eff,world}_n\right)^{-1}\times T^\mathit{stance,world}_n \end{equation} The voxel indices can also be stored for other body links if necessary, e.g. the pelvis frame $T^\mathit{pelvis,eff}_n$. Let $v_i\in V$ be the workspace voxels, where $V$ is a bounded subspace of the workspace. It worth emphasizing again that, in contrast to DRM, the iDRM here is formulated in the end--effector frame, i.e. the end--effectors of all the samples are at the origin. By doing so, all possible base poses are located within a bounded volume around the origin. This means that an infinite number of base poses and configurations can be stored in a finite number of voxels which is the key feature of map inversion. A reach list $\mathcal{I}_i$ is generated for each voxel $v_i$ that records all the samples whose stance frame lies in this voxel. We also store an occupation list $\mathcal{O}_i$ that records the samples that intersect with this voxel, as shown in Fig.~\ref{fig:dummy_idrm}. \begin{figure}[t] \centering \includegraphics[width=0.238\textwidth]{idrm1} \includegraphics[width=0.238\textwidth]{idrm2} \caption{iDRM collision update illustration in 2D. The left and right figures show the original iDRM in free space and the updated iDRM respectively. A key feature of iDRM is that updating occupation list $\mathcal{O}$ affects the reach list $\mathcal{I}$.} \label{fig:dummy_idrm} \end{figure} The construction time varies depending on different voxelizing resolution and number of samples. However, since the construction of iDRM is performed only once in an offline process, the construction time is less critical. \subsection{Online: valid end--poses selection} \subsubsection{Find collision--free samples} \label{sec:occup_update} For an end--pose planning query, the desired end--effector pose $\mathbf{y}^*$ is given in the world frame, so we need to firstly transform the iDRM to desired end--effector pose in the world frame. Since this process involves transforming all the voxels, we want to minimize the computation. Assume there are $k$ voxels and $l$ obstacles in the environment. If $k<l$, we apply $\mathbf{y}^*$ on all voxel centres to move the iDRM to the corresponding location in the world frame. However, if $k>l$, we can transform all the environmental obstacles into iDRM's frame (end--effector's frame). In most practical problems, the environment contains fewer obstacles than the number of voxels, where the second option can significantly speed up the online updating process. Once the iDRM is moved to the correct location, the next step is to remove invalid samples that are in collision, which is the key difference between our work and existing IRM methods. A collision detection between environment and the iDRM voxels is used to find the set of voxels, $V_\mathit{occup}$, that are occupied by obstacles. Then the collision--free samples $Q_\mathit{free}$ can be extracted using Algorithm~\ref{alg:updateoccup}. A 2D example is illustrated in Fig.~\ref{fig:dummy_idrm}. This allows us to dynamically reconstruct a new iDRM in real--time where the new map is a subset of the original one and contains only collision--free samples, as shown in Fig.~\ref{fig:idrm_update}. The coloured voxels contain one or more collision--free samples, i.e. $\mathcal{I}_i\cup Q_\mathit{free}\neq\emptyset$. The left figure shows the original iDRM in an empty environment, and the other two figures highlight the updated iDRM in different environments. From the middle and right figures we can find that the obstacles affect $V_\mathit{occup}$ as well as other voxels. For example, in the right figure, the voxels below the obstacle is not directly occupied, but these voxels are also disabled. This means that there exist no collision--free samples whose end--effector reaches the origin while standing below the obstacle. Fig.~\ref{fig:idrm_update} shows the iDRM without considering the balance constraint yet. By transforming the iDRM to $\mathbf{y}^*$, as shown in Fig.~\ref{fig:step2}, the collision--free iDRM can also be equivalently visualized in the world frame. Note that only a cross section of the iDRM is plotted for visualization, and that the whole iDRM should have the shape of a sphere. \begin{algorithm}[t] \caption{Collision update} \label{alg:updateoccup} \begin{algorithmic}[1] \Require $\mathbf{y}^*$, $\mathit{Env}$ \Ensure $Q_\mathit{free}$ \If {$\mathit{size}(V)>\mathit{size}(\mathit{Env})$} \State $\bar{V}=\mathbf{y}^*\times V$ \State $V_\mathit{occup}=\mathit{CollisionCheck}(\bar{V},\mathit{Env})$ \Else \State $\overline{\mathit{Env}}=(\mathbf{y}^*)^{-1}\times\mathit{Env}$ \State $V_\mathit{occup}=\mathit{CollisionCheck}(V,\overline{\mathit{Env}})$ \EndIf \State $V_\mathit{occup}=\mathit{CollisionCheck}(V,\mathit{Env})$ \For {$i\in V_\mathit{occup}$} \For {$o\in O_i$} \State $q_o.\mathit{valid}=\mathit{false}$ \EndFor \EndFor \State $Q_\mathit{free}=\emptyset$ \For{$q_n\in \mathcal{Q}$} \If {$q_n.\mathit{valid}=\mathit{true}$} \State $Q_\mathit{free}=Q_\mathit{free}\cup n$ \EndIf \EndFor \noindent \Return {$Q_\mathit{free}$} \end{algorithmic} \end{algorithm} There are two key features here. Firstly, the complexity mainly depends on the resolution of voxelization because collision detection is only called once per query for the voxels. Collision checking for each individual sample is not required since all the collision information is stored in the occupation list. Secondly, $V_\mathit{occup}$ will invalidate the samples where any part of the body intersects with the voxels including the feet. These two features allow efficient updates of the collision flags for a huge amount of samples during run time. \begin{figure}[t] \centering \includegraphics[width=0.155\textwidth]{idrm_free_small} \includegraphics[width=0.155\textwidth]{idrm_1_small} \includegraphics[width=0.155\textwidth]{idrm_2_small} \caption{An octant view of iDRM collision update. The axis is the origin of the iDRM, e.g. end--effector pose.} \label{fig:idrm_update} \end{figure} \subsubsection{Find feasible samples} \label{sec:feasible_update} \begin{algorithm}[t] \caption{Feasibility update} \label{alg:updatefeasible} \begin{algorithmic}[1] \Require $Q_\mathit{free}$ \Ensure $Q_\mathit{feasible}$ \State $V_\mathit{ground}=\emptyset$ \For {$v_i\in V$} \If{$v_i$ intersects with ground} \State $V_\mathit{ground}=V_\mathit{ground}\cup i$ \EndIf \EndFor \State $Q_\mathit{feasible}=\emptyset$ \For {$i\in V_\mathit{ground}$} \For {$n \in \mathcal{I}_i$} \If {$n\in Q_\mathit{free}$} \State $\bar{T}_n =\mathbf{y}^*\times T^\mathit{feet}_n$ \If {$z(\bar{T}_n)<\epsilon_z$ AND $roll(\bar{T}_n)<\epsilon_\mathit{roll}$ \\ \qquad \quad AND $pitch(\bar{T}_n)<\epsilon_\mathit{pitch}$} \State $Q_\mathit{feasible}=Q_\mathit{feasible}\cup n$ \EndIf \EndIf \EndFor \EndFor \noindent \Return {$Q_\mathit{feasible}$} \end{algorithmic} \end{algorithm} \begin{figure*}[t] \centering \subfloat[][Original iDRM]{ \includegraphics[width=0.18\textwidth]{example_step1_small} \label{fig:step1}} \subfloat[][Collision update]{ \includegraphics[width=0.18\textwidth]{example_step2_small} \label{fig:step2}} \subfloat[][Feasibility update]{ \includegraphics[width=0.18\textwidth]{example_step3_small} \label{fig:step3}} \subfloat[][Candidate end--pose]{ \includegraphics[width=0.18\textwidth]{example_step4_small} \label{fig:step4}} \subfloat[][End--pose adjustment]{ \includegraphics[width=0.21\textwidth]{ikfilter_small} \label{fig:ikfilter}} \caption{(a)--(d): iDRM end--pose planning example. The iDRM is transformed into world frame, and the axis indicates desired end--effector pose in the world frame. (e) highlights the final IK adjustment, where the shadowed posture is the candidate $\mathbf{q}_{n^*}$ and the solid one is the final end--pose result $\mathbf{q}^*$.} \label{fig:world_frame_example} \end{figure*} A feasible humanoid configuration needs to be collision--free and also physically balanced, hence we need to select balanced samples from $Q_\mathit{free}$. Assume the robot needs to stand on a flat floor with horizontal feet orientation, i.e. $\mathit{roll}$ and $\mathit{pitch}$ of feet transformation are zero. To avoid checking all samples in $Q_\mathit{free}$, we first have to find the voxels $V_\mathit{ground}$ that may contain balanced samples, i.e. voxels that intersect with the floor. There may not exist samples with exact horizontal feet orientation. We allow small variations in each axis, $\epsilon_z$, $\epsilon_\mathit{roll}$ and $\epsilon_\mathit{pitch}$. The variations will be corrected in the last step. Then, we extract feasible samples $Q_\mathit{Feasible}$ from $Q_\mathit{free}$, as in Algorithm~\ref{alg:updatefeasible}. An example of finding feasible configuration is illustrated in Fig.~\ref{fig:step3}. The $V_\mathit{ground}$ is colored based on the number of feasible (collision--free and statically balanced) end--poses. The axis in the figure is the desired end--effector pose in the world frame. \subsubsection{Select candidate sample} \label{sec:final_candidate} This step selects the best candidate sample from $Q_\mathit{feasible}$, however, note that all the samples in $Q_\mathit{feasible}$ are valid. Similar to \cite{stance2015}, we score the samples according to a Jacobian based manipulability measure that evaluates the end--effector's maneuverability, \begin{equation} \label{eq:maneuverability} g_n=\sqrt{\det J(q_n)J(q_n)^T}, \end{equation} where $J(q_n)$ is the Jacobian matrix of $q_n$ and all the scores are calculated by offline sampling and readily available here. In addition, we introduce another cost term $\|q_n-q_0\|_W$ to penalize samples that are far away from the initial configuration. Then the index of best candidate can be found as \begin{equation} n^*=\argmax_{n\in Q_\mathit{Feasible}}w_m g_n - \|q_n-q_0\|_W , \label{eq:score} \end{equation} where $w_m$ and $W$ are constant weighting factors. Fig.~\ref{fig:step4} shows all the feasible stance locations in $Q_\mathit{feasible}$ colored based on the configurations' manipulability scores. The highlighted robot posture is the one with highest score. Since the stance pose of $\mathbf{q}_{n^*}$ is not exactly horizontal, we use the full-body IK solver to finalize the configuration to find $\mathbf{q}^*$. In practice, the tolerances ($\epsilon_z,\epsilon_\mathit{roll},\epsilon_\mathit{pitch}$) are very small so the selected sample is already very close to the desired result, where only minor changes are required in the configuration space and the corresponding workspace movement is negligible, i.e. $\mathbf{q}_{n^*}$ and $\mathbf{q}^{*}$ occupy the same set of voxels, meaning that $\mathbf{q}^*$ is also collision--free, as shown in Fig.~\ref{fig:ikfilter}. In unlikely scenarios where the final end--pose is in collision or not balanced, the next best candidate will be selected until a valid solution is found. \section{Footstep and Motion Planning} \label{sec:hmp} As mentioned in Section~\ref{sec:problem}, the full problem is separated into $\mathit{EndPosePlan}$, $\mathit{FootStepPlan}$, and $\mathit{MotionPlan}$. In this section, we briefly describe the particular footstep and motion planning algorithms used in our work. However, once the end--pose is found, a variety of footstep and motion planning algorithms can be used. \subsection{Footstep Planning} \label{sec:walk} According to (\ref{eq:footstep}), the desired stance location in the world frame needs to be provided to invoke footstep planner, which can be retrieved as \begin{equation} \mathbf{p}^*= T^\mathit{stance,eff}_{n^*} \times \mathbf{y}^* . \end{equation} A general purpose foot step planner \cite{mitstepplan} is employed to plan footsteps from the current stance location to $\mathbf{p}^*$. These footsteps are then passed into locomotion controller. \subsection{Whole-body Motion Planning} \label{sec:mp} After arriving at the desired stance location, the final step is to plan a whole--body motion that realize desired end--pose, see (\ref{eq:motion}). The main challenge with humanoid robots is that the valid solution lies on a low dimensional manifold defined by the balance constraint, while in practice, the rejection rate of random samples is prohibitively high without the knowledge of the manifold. A customized sampling--based motion planning framework is employed in our system to generate reaching motion after arriving at the desired stance. A whole--body IK adjustment similar to Fig.~\ref{fig:ikfilter} is integrated into our motion planning algorithm making sure each sampled and interpolated state is balanced. Collision--free whole--body motion can be generated in a few seconds, and examples are illustrated in Fig.~\ref{fig:wbmp}. More details about the whole--body motion planning method can be found in \cite{wbsbp}. \begin{figure}[t] \centering \includegraphics[width=0.155\textwidth]{mp_texture_1_small} \includegraphics[width=0.155\textwidth]{mp_texture_2_small} \includegraphics[width=0.155\textwidth]{mp_texture_3_small} \caption{Examples of balanced whole--body reaching motion in different scenarios.} \label{fig:wbmp} \end{figure} \begin{figure}[t] \centering \includegraphics[width=0.155\textwidth]{simple_view1_small} \includegraphics[width=0.155\textwidth]{med_view1_small} \includegraphics[width=0.155\textwidth]{hard_view1_small} \caption{Evaluation scenarios, from left to right: easy, medium and hard tasks.} \label{fig:tasks} \end{figure} \section{Evaluation} \label{sec:evaluation} We have implemented our work within the EXtensible Optimization Toolset framework (EXOTica, \cite{exotica}). We used the Flexible Collision Library (FCL, \cite{fcl}) for creating occupation list and online collision checking queries. We evaluated the performance of solving end--pose and motion planning problems for one hand reaching and grasping tasks on a 38-DoF humanoid robot, Valkyrie, in different environments. All the evaluations were carried out in a single--threaded process on a 4.0 GHz Core i7 CPU with 32GB 2133 MHz RAM. \subsection{Evaluation Setup} In order to evaluate the end--pose planning performance, we compare iDRM against the following three approaches: \begin{itemize} \item \emph{Random Placement (\textbf{RP})}. The robot's feet are randomly placed close to the target within a certain radius. This may be reasonable when no further information is available. Then a random configuration is passed to IK solver to obtain a result. The method iterates until a balanced and collision--free result is found. \item \emph{Random Placement DRM (\textbf{R-DRM})}. First, we create a regular DRM (fixed--feet) offline. When we process an online query, we select stance poses randomly (similarly to RP) and transform the DRM to this location. We then select a seed configuration from the DRM. \item \emph{Inverse Reachability Map (\textbf{IRM})}. By bypassing the collision update (Section \ref{sec:occup_update}), we obtain a regular IRM approach equivalent to \cite{vahrenkamp2013robot} \cite{stance2015} . \end{itemize} Grasping tasks are set up with 3 different scenarios, from easy to hard, as illustrated in Fig.~\ref{fig:tasks}. In the simple task scenario, the target is placed on top of the table close to the edge. There is no other obstacle apart from the table itself. The target is moved away from the edge of the table in the second scenario, with a new obstacle placed at the comfortable standing location. A more challenging scenario is carried out where multiple obstacles are placed on the floor and close to the upper body as well. In each case, the reaching hand must achieve the full $SE(3)$ desired pose. In order to fully explore the capabilities of different approaches, each scenario has 10 sub--scenarios with slightly different target and obstacle positions. For each sub--scenario, the result of the RP and R-DRM are averaged over 100 trials (IRM and iDRM will always find same result in each sub--scenario). The sub--scenarios' results are then averaged into the 3 different scenarios. For solving motion planning problems, we employ the following 4 algorithms: E--space RRT, C--space RRT, E--space RRT--Connect and C--space RRT--Connect. E--space means the sampling is carried out in the end--effector space ($SE(3)$), and C--space means sampling in the configuration space ($\mathbb{R}^N$). C--space RRT--Connect requires the goal state $\mathbf{q}^*$ to enable bidirectional search, which can be extracted from end--pose. The other three algorithms do not require $\mathbf{q}^*$ since the goal is given in end--effector space, i.e. $\mathbf{y}^*$. However, the stance frame $\mathbf{p}^*$ and start configuration $\mathbf{q}_s$ are also unknown without end--pose planning. In our experiments, we manually provided $\mathbf{q}_s$ for the first three algorithms for free. Although this is unfair for algorithms that require valid end--pose, we will show that C-space RRT--Connect with end--pose planning still outperforms other approaches. \begin{figure}[t] \centering \includegraphics[width=0.49\textwidth]{mem.pdf} \caption{iDRM memory consumptions, which is approximately in a linear relationship with the number of samples.} \label{fig:mem} \end{figure} \subsection{iDRM Construction and Memory Consumption} The iDRM with a size of $2m^3$ and voxel resolution of $0.1m$ was created. Multiple iDRMs with different sample sizes were also generated, and the memory consumption is illustrated in Fig.~\ref{fig:mem}. The sample configuration storage is the memory required to store the whole--body configuration for each sample. The occupation and reach lists storage indicate the memory required to store all the occupation list information which is the significant component. Note that the configuration storage is approximately equivalent to the memory required for the regular IRM \cite{stance2015}. Ultimately, iDRM requires much more memory storage than IRM. However, as we will show later, iDRM can handle online end--pose queries much faster than IRM. In other words, iDRM essentially trades off storage for efficient online computation. In the following evaluations, we use the iDRM dataset with 1 million samples. \newcolumntype{?}{!{\vrule width 1pt}} \begin{table*}[t!] \centering \caption{Computational time of different components in humanoid motion planning (in seconds). The overall time is the sum of end--pose planning (\textbf{EP}) and motion planning (\textbf{MP}), while the footstep planning is not counted. Algorithms requiring no end--pose planning (marked as --) have a zero \textbf{MP} planning time. The planning is a failure (marked as $\times$) if no solution is found within 100 seconds.} \begin{tabular}{?p{1cm}|p{2.6cm}?p{1cm}|p{1cm}|p{1cm}?p{1cm}|p{1cm}|p{1cm}?p{1cm}|p{1cm}|p{1cm}?} \Xhline{3\arrayrulewidth} \multicolumn{2}{?c?}{Algorithms} & \multicolumn{3}{c?}{Easy Task} & \multicolumn{3}{c?}{Medium Task} & \multicolumn{3}{c?}{Hard Task} \\ \Xhline{3\arrayrulewidth} \textbf{EP} & \textbf{MP} & \textbf{EP} & \textbf{MP}& \textbf{Overall}& \textbf{EP}& \textbf{MP}& \textbf{Overall}& \textbf{EP}& \textbf{MP}& \textbf{Overall}\\ \Xhline{3\arrayrulewidth} -- & E--space RRT & 0 & $\times$ & $\times$ & 0 & $\times$ & $\times$ & 0 & $\times$ & $\times$ \\ \Xhline{3\arrayrulewidth} -- & C--space RRT & 0 & $\times$ & $\times$ & 0 & $\times$ & $\times$ & 0 & $\times$ & $\times$ \\ \Xhline{3\arrayrulewidth} -- & E--space RRT--Connect & 0 & 12.0974 & 12.0974 & 0 & 15.8324 & 15.8324 & 0 & 88.7171 & 88.7171 \\ \Xhline{3\arrayrulewidth} RP & \multirow{4}{*}{C--space RRT--Connect} & 0.1916 & \multirow{4}{*}{1.5010} & 1.6926 & 1.2322 & \multirow{4}{*}{1.8052} & 3.0374 & 2.2654 & \multirow{4}{*}{3.2857} & 5.5511 \\ \cline{1-1} \cline{3-3} \cline{5-6} \cline{8-9} \cline{11-11} R-DRM & & 0.7521 & & 2.2531 & 2.3273 & & 4.1325 & 38.8050 & & 42.0907 \\ \cline{1-1} \cline{3-3} \cline{5-6} \cline{8-9} \cline{11-11} IRM & & 0.0440 & & 1.5450 & 0.9560 & & 2.7612 & 2.2910 & & 5.5767 \\ \cline{1-1} \cline{3-3} \cline{5-6} \cline{8-9} \cline{11-11} IDRM & & \textbf{0.0553} & & \textbf{1.5769} & \textbf{0.0566} & & \textbf{1.9093} & \textbf{0.0678} & & \textbf{3.3804} \\ \Xhline{3\arrayrulewidth} \end{tabular} \label{table:time} \end{table*} \subsection{Evaluation of Reaching Motion Planning} Table~\ref{table:time} highlights the performance of end--pose and motion planning queries for different tasks, overall time is the sum of the two. The end--pose planning results show that random replacement (RP) performs relatively well due to its simplicity. R-DRM is not originally designed to work with floating base, the algorithm requires extra time to transform and update the fixed--base DRM thus heavily slows down the whole process. IRM and iDRM outperformed RP and R-DRM in simple tasks mainly due to the fact that these two algorithms are originally designed for efficient end--pose planning for floating base robot. In difficult scenarios, the random base placement in R-DRM can lead to cases where the standing location is occupied by obstacles and thus the DRM needs to iteratively invalidate all samples. This also exposes one of the major limitations of regular IRM approach --- that IRM has no knowledge about collision information. In the cases where the samples with highest scores are in collision, the algorithm will still select and evaluate them. The valid samples with relatively low scores can only been found after many iterations. The computational time of iDRM is approximately constant in different scenarios. Apart from the initial collision check between iDRM voxels and the environment, iDRM treats all environments equally no matter simple or hard. Since the collision samples are already removed during Section~\ref{sec:occup_update}, the selected sample is guaranteed to be collision--free. Also, in Section \ref{sec:feasible_update}, the selected stance pose allocates the robot close to balanced posture. The final IK solver can adjust the sample with a negligible amount of workspace movement, so as a result the first candidate sample is sufficient for finding valid end--poses. After solving the end--pose planning problems, the footstep planner is employed to generate walking trajectories to guide the robot to desired standing location. Different footstep planners can be applied here, however details are omitted due to limited scope of this paper. Finally, motion planning algorithms are invoked to produce feasible motions to reach the target, the performance of different motion planning algorithms is highlighted in Table~\ref{table:time}. The result suggests the following key points: (1) Unidirectional algorithms without goal information are unable to solve planning problems for high DoF humanoids within reasonable time limits; (2) If the goal state is known, then sampling in the configuration space is more efficient than in the end--effector space; (3) It is more efficient to find configuration space goal first then plan by using bidirectional algorithms sampling in the configuration space, rather than directly using bidirectional algorithms sampling in the end--effector space; (4) The combination of smart end--pose planning algorithms (such as iDRM) and bidirectional algorithms sampling in the configuration space is the most efficient sampling--based motion planning approach for humanoid robots. \begin{figure*} \centering \parindent=-0.9pc \subfloat[][Experiment scenario 1: reach target on top box.]{ \includegraphics[width=\linewidth]{compact_s1.pdf}} \subfloat[][Experiment scenario 2: reach target with obstacle placed in front of the table.]{ \includegraphics[width=\linewidth]{compact_s2.pdf}} \caption{From left to right columns: task and environment setup; iDRM end--pose and footstep planning; arriving at standing location; motion planning; and reaching and lifting up target. The stance locations are different in the two scenarios due to different target and obstacle positions.} \label{fig:real_exp} \end{figure*} We have implemented the proposed method on the NASA Valkyrie humanoid robot following the procedure highlighted in Fig.~\ref{fig:mp}. In practice, instead of using collision primitives, the actual environment sensed by the on--board sensor is represented as octomap \cite{hornung13auro}. Given different grasping tasks in different environments, the robot is able to automatically find and walk to the desired stance, and then use the end--pose to bootstrap bidirectional motion planning algorithms to generate reliable whole--body motion to reach and grasp the target. A supplementary video can be found at \href{https://youtu.be/yA8Ld-i43Xc}{\url{https://youtu.be/yA8Ld-i43Xc}}. \section{Conclusion} \label{sec:conclusion} This paper presents a novel contribution to humanoid motion planning, the inverse Dynamic Reachability Map (iDRM), which can produce real--time valid stance locations and collision--free whole body configurations for humanoid robots in complex and cluttered environments. We have implemented and validated the iDRM method with the model of a 38-DoF humanoid robot and carried out evaluations to compare the performance of iDRM against other approaches. The results suggest that iDRM method is capable of searching for valid solutions in different environments in a much more efficient manner than other alternatives --- typically finding a valid end--pose within $0.1$ seconds. We also show that footstep and bidirectional motion planners can be very efficient with the integration of our end--pose planning. The set $Q_\mathit{feasible}$ contains multiple feasible end--poses. Currently we select the one with highest manipulability score, however, this metric may not be aligned with the human instinct, i.e. the posture with high manipulability may not be preferred by the operator. We can add more terms into (\ref{eq:score}) to bias the cost function. Also, this candidate selection step (Section \ref{sec:final_candidate}) is trivially parallelizable, thus the future work will include parallelizing the candidate selection module on multi-core CPU or many-core GPU to produce multiple end--poses so as to offer viable solutions for human operators or high level decision agents. \bibliographystyle{IEEEtran}
\section{Clustering Algorithm}\label{sec:algorithm} In this section, we present our algorithm for solving 2-metric perturbation resilient instances of clustering problems with natural center-based objectives. Our algorithm is based on single--linkage clustering: first, we find a minimum spanning tree on the metric space $X$ (e.g., using Kruskal's algorithm) and then run a dynamic programming algorithm on the spanning tree to find the clusters. We describe the two steps of the algorithm in Sections~\ref{sec:MST} and~\ref{sec:dynamic}. \subsection{Minimum Spanning Tree}\label{sec:MST} At the first phase of the algorithm, we construct a minimum spanning tree on the points of the metric space using Kruskal's algorithm. Kruskal's algorithm maintains a collection of trees. Initially, each tree is a singleton point. At every step, the algorithm finds two points closest to each other that belong to different trees and adds an edges between them. The algorithm terminates when all points belong to the same tree. We denote the obtained spanning tree by $T$. The key observation is that each cluster $C_i$ forms a subtree of the spanning tree $T$. \begin{lemma}\label{lem:span-tree} Each cluster $C_i$ forms a subtree of the spanning tree $T$. In other words, the unique path between every two vertices $u,v\in C_i$ does not leave the cluster $C_i$. \end{lemma} \begin{proof} Let $c_i$ be the center of $C_i$. We show that the (unique) path $p$ from $u$ to $c_i$ lies in $C_i$, and, therefore, the statement of Lemma~\ref{lem:span-tree} holds. Let $u'$ be the next vertex after $u$ on the path $p$. Consider the step at which Kruskal's algorithm added the edge $(u,u')$. At that step, $u$ and $c_i$ were in distinct connected components (as $p$ is the only path connecting $u$ and $c_i$). Thus, $d(u,u')\leq d(u,c_i)$ as otherwise the algorithm would have added the edge $(u,c_i)$ instead of $(u,u')$. By Corollary~\ref{cor:closer-to-my-center}, the inequality $d(u,u') \leq d(u,c_i)$ implies that $u'$ belongs to $C_i$. Proceeding by induction we conclude that all vertices on the path $p$ belong to~$C_i$. \end{proof} \subsection{Dynamic Programming Algorithm}\label{sec:dynamic} At the second phase, we use dynamic programming to compute the optimal clustering. We root the tree $T$ at an arbitrary vertex. We denote its root by $root$ and the subtree rooted at $u$ by $T_u$. We first assume that the tree is binary. Later, we explain how to transform any tree into a binary tree by adding dummy vertices. The algorithm partitions the tree into (non-empty) subtrees $P_1,\dots, P_k$ and assigns a center $c_i\in P_i$ to all vertices in the subtree $P_i$ so as to minimize the objective: \begin{equation}\label{eq:cost} \sum_{i=1}^k f_{c_i} + \sum_{i=1}^k\sum_{u\in P_i} g_{u} (d(u, c_i)). \end{equation} Lemma~\ref{lem:span-tree} implies that the optimal partitioning of $X$ is the solution to this problem. Let $cost_u (k', c)$ be the minimum cost~(\ref{eq:cost}) of partitioning the subtree $T_u$ into $k'$ subtrees $P_1, \dots, P_k$ and choosing $k$ centers $c_1,\dots, c_k$ so that the following conditions hold: \begin{enumerate} \item $u\in P_1$ and $c_1 = c$ (we denote the tree that contains $u$ by $P_1$ and require that its center be $c$). \item if $c_1\in T_u$, then $c_1\in P_1$ (if the center $c_1$ of $P_1$ lies in $T_u$, then it must be in $P_1$); \item $c_i\in P_i$ for $i> 1$ (the center $c_i$ of every other tree $P_i$ lies in $P_i$). \end{enumerate} That is, we assume that $u$ belongs to the first subtree $P_1$ and that $c$ is the center for $P_1$. Every center $c_i$ must belong to the corresponding set $P_i$ except for $c_1$. However, if $c_1\in T_u$, then $c_1\in P_1$. Denote the children of vertex $u$ by $l_u$ and $r_u$ (recall that we assume that the tree is binary). The cost $\cost_u (k', c)$ is computed using the following recursive formulas: if $c\notin T_{l_u}\cup T_{r_u}$, then \begin{align} \cost_u (j,c) = &f_c + g_u(d(c,u))+\min \big (\\ &\min \{\cost_{l_u} (j',c') + \cost_{r_u} (j'',c''): j'+j''=j-1,\;c'\in T_{l_u},c''\in T_{r_u}\},\label{line:lr}\\ &\min \{\cost_{l_u} (j',c') + \cost_{r_u} (j'',c)-f_c: j'+j''=j,\;c'\in T_{l_u}\},\label{line:l}\\ &\min \{\cost_{l_u} (j',c) + \cost_{r_u} (j'',c'')-f_c: j'+j''=j,\;c''\in T_{r_u}\},\label{line:r}\\ &\min \{\cost_{l_u} (j',c) + \cost_{r_u} (j'',c)-2f_c: j'+j''=j+1\}\label{line:no}\big). \end{align} \begin{quote} If $c\in T_{l_u}$, then we remove lines (\ref{line:lr}) and (\ref{line:l}) from the formula. If $c\in T_{r_u}$, then we remove lines (\ref{line:lr}) and (\ref{line:r}) from the formula. \end{quote} The first term $f_c + g_u(d(c,u))$ is the cost of opening a center in $c$ and assigning $u$ to $c$. The lines~(\ref{line:lr}--\ref{line:no}) correspond to the following cases:\\[0.25em] \indent (\ref{line:lr}) neither $l_u$ nor $r_u$ is in $P_1$; they are assigned to (trees $P_i$ and $P_j$ with centers) $c'$ and $c''$,\\[0.15em] \indent (\ref{line:l}) $l_u$ is not in $P_1$, but $r_u$ is in $P_1$; they are assigned to $c'$ and $c$,\\[0.15em] \indent (\ref{line:r}) $l_u$ is in $P_1$, but $r_u$ is not in $P_1$; they are assigned to $c$ and $c''$,\\[0.15em] \indent (\ref{line:no}) both $l_u$ and $r_u$ are in $P_1$; they are assigned to $c$.\\[0.25em] For leaves, we set $\cost_u (1,c) = f_c + g_u(d(u,c))$ and $\cost_u (j,c) = \infty$ for $j>1$. Note that if we want to find a partitioning of $T$ into at most $k$ subtrees, we can use a slightly simpler dynamic program. It is easy to verify that the formulas above hold. The cost of the optimal partitioning of $T$ into $k$ subtrees equals $\min_{c\in X} \cost_{root} (k,c)$. We now explain how to transform the tree $T$ into a binary tree. If a vertex $u$ has more than two children, we add new dummy vertices between $u$ and its children by repeating the following procedure: take a vertex $u$ having more than two children; pick any two children of $u$: $u_1$ and $u_2$; create a new child $v$ of $u$ and rehang subtrees $T_{u_1}$ and $T_{u_2}$ to the vertex $v$. We forbid opening centers in dummy vertices $v$ by setting the opening cost $f_v$ to be infinity. We set the assignment costs $g_v$ to be 0. Note that Lemma~\ref{lem:span-tree} still holds for the new tree if we place every dummy vertex in the same part $P_i$ as its parent. \section{Universal Separable Center-Based Clustering Objectives} \label{sec:labeling} In this section, we show that every separable center-based objective, satisfying some additional properties, is a natural center-based objective. To this end, we define a \textit{universal} center-based objective and show that every {universal} center-based objective is a natural center-based objective. Loosely speaking, a universal center-based objective is a center-based objective that satisfies two properties, which we will discuss now: \begin{itemize} \item An arbitrary center-based objective is defined on a specific set of points $X$ and can be used to compute the cost of clustering only of the set $X$ (given a metric $d$ on $X$). \textbf{In contrast, a \textit{universal objective} can be used to compute the cost of clustering of \textit{any} ground set $X$.} \item Recall that in every optimal clustering with a center-based objective each point $u\in X$ is closer to the center of its own cluster than to the center of any other cluster. If a partition is not optimal, some points might be closer to the centers of clusters that do not contain them than to the centers of their own clusters. Then, we can move such points to other clusters so as to minimize their distance to the cluster centers. In fact, one of the two steps of Lloyd's algorithm does exactly this; hence, we call such a transformation \textit{a Lloyd's improvement}. We slightly strengthen the definition of a center-based objective by requiring that \textbf{a \textit{universal objective} not increase when we make a Lloyd's improvement of \emph{any} -- not necessarily optimal -- clustering}. \end{itemize} \iffalse Loosely speaking, the objective is universal if we can use it to measures the cost of clustering of any ground set $X$. The cost of the clustering should not depend on the identities of points in $X$ but may depend on the labels of points. \fi Now we give a few auxiliary definitions and then formally define universal center-based objectives. Since data sets used in applications are usually labeled, we will consider ``labeled metric spaces''. We will assume that the cost of clustering of $X$ may depend on the distances between the points in $X$ and point labels (but not on the identities of points). \begin{definition}[Labeled Metric Space] A metric space labeled with a set of labels $L$ is a pair $((X,d),l)$, where $(X,d)$ is a metric space, and $l:X\to L$ is a function that assigns a label to each point in~$X$. \end{definition} \begin{definition}[Isomorphic Labeled Metric Spaces] We say that two metric spaces $((X',d'), l')$ and $((X'',d''), l'')$ labeled with the same set $L$ are isomorphic if there exists an isometry $\varphi: X'\to X''$ (i.e., $\varphi$ is a bijection that preserves distances: $d'(u,v)= d''(\varphi(u), \varphi(v))$ for all $u,v\in X'$) that preserves labels; i.e. $l'(u) = l''(\varphi(u))$ for all $u\in X'$. \end{definition} \noindent We note that in the definition above the set $L$ may be infinite. We denote the restriction of $((X,d),l)$ to a non-empty subset $C\subset X$ by $((X,d),l)|_C$: $((X,d),l)|_C = ((C,d|_C),l|_C)$. Note that the restriction of a metric set labeled with $L$ to a cluster $C$ is also a metric set labeled with $L$. \iffalse Recall that in every optimal clustering with a center-based objective each point $u\in X$ is closer to the center of its own cluster than to the center of any other cluster (see Definition~\ref{def:center-based}). If a partition is not optimal, some points might be closer to the centers of clusters that do not contain them than to the centers of their own clusters. Then, we can move such points to other clusters so as to minimize their distance to the cluster centers. In fact, one of the two steps of Lloyd's algorithm does exactly this; hence, we call such a transformation a Lloyd's improvement. \fi \begin{definition} Consider a clustering problem $((X,d),\calH, k)$ with a center-based objective. We say that a clustering $C'_1,\dots, C'_k$ is a Lloyd's improvement of a clustering $C_1,\dots, C_k$ if there exists a set of centers $c_1,\dots, c_k$ of $C_1,\dots, C_k$ (i.e., each $c_i\in \ccenter(C_i,d)$) such that \begin{itemize} \item $c_i \in C'_i$ (a Lloyd's improvement does not move the centers to other clusters) \item for every $x\in X$: if $x\in C_i$ and $x\in C'_j$, then $d(x,c_j)\leq d(x,c_i)$ (a Lloyd's improvement may move point $x$ from $C_i$ to $C'_j$ only if $d(c, c_j) \leq d(x, c_i)$). \end{itemize} \end{definition} \noindent \begin{definition}[Universal Objective] We say that $\calH$ is a universal center-based clustering objective for a label set $L$, if for every metric space $((X,d),l)$ labeled with $L$ the problem $((X,d), \calH_l,k)$ is a clustering problem with a separable center-based objective and the following two conditions hold. \begin{enumerate} \item Cluster scores $H_l$ are universal (``can be used on any metric space''): Given any finite metric space $((C,d),l)$ labeled with $L$, the function $H_l(C,d)$ returns a real number -- the cost of $C$; and $H_{l'}(C',d') = H_{l''}(C'',d'')$ for any two isomorphic labeled metric spaces $((C',d'),l')$ and $((C'',d''), l'')$. \item If $C'_1,\dots, C'_k$ is a Lloyd's improvement of $C_1,\dots, C_k$, then $\calH(C'_1,\dots, C'_k;d)\leq \calH(C_1,\dots, C_k;d)$. \end{enumerate} \end{definition} Note that every natural center-based objective is a universal objective. The label set is the set of pairs $(f,g)$, where $f\in \bbR$ is a real number; $g$ is a nondecreasing function from $\bbR^{\geq 0}$ to $\bbR$. Every point $x\in X$ is assigned the label $l(x) = (f_x,h_x)$. The score of a cluster $C$ equals \begin{align} H_l(C,d) &= \min_{c\in C} \Big(f_c + \sum_{x\in C} g_x(d(x,c))\Big);\label{eq:Hl-sum}\\ H_l(C,d) &= \min_{c\in C} \Big(\max \big(f_c, \max_{x\in C} g_x(d(x,c)\big)\Big).\label{eq:Hl-max} \end{align} It is easy to see that Lloyd's improvements may only decrease the cost of a clustering, since the functions $g_x$ are non-decreasing. We now show that every clustering problem with universal separable center-based objectives is a problem with natural center-based objectives. \begin{theorem} I. Let $((X,d),\calH, k)$ be a clustering problem with a universal center-based separable sum-objective. Then, the scoring function $H_l$ can be represented as (\ref{eq:Hl-sum}) for some nondecreasing functions $f$ and $g$ such that the minimum is attained when $c$ is a center of $C$; and thus $\calH(C_1,\dots,C_k;d) = \sum_{i=1}^k H_l(C_i; d|_{C_i})$ is a natural center-based objective. II. Let $((X,d),\calH, k)$ be a clustering problem with a universal center-based separable max-objective. If the cost of any singleton cluster $\{x\}$ equals 0, then the scoring function $H_l$ can be represented as (\ref{eq:Hl-max}) for some nondecreasing functions $f$ and $g$ such that the minimum is attained when $c$ is a center of $C$; ; and thus $\calH(C_1,\dots,C_k;d) = \max_{i\in\{1,\dots,k\}} H_l(C_i; d|_{C_i})$ is a natural center-based objective. \end{theorem} \begin{proof} I. For every label $a\in L$ define two special labeled metric spaces $M_a$ and $M_{a,a,r}$. The metric space $M_a$ is the metric space on a single point labeled with $a$; the metric space $M_{a,a,r}$ is the metric space on two points at distance $r$ that are both labeled with $a$. Consider a point $x\in X$ labeled with $a$. Let $f_x = H(M_a)$ and $g_x(r) = H(M_{a,a,r})- f_x$. We claim that the cost of any cluster $C$ equals $$\min_{c\in C} \big(f_c + \sum_{x\in C\setminus \{c\}} g_x(d(x,c))\big),$$ and the minimum is attained when $c$ is a center of $C$. Consequently, equation (\ref{eq:Hl-sum}) holds for functions $\tilde f_c = f_c - g_c(0)$ and $g_x$. To prove the claim, we construct a new metric space $C_p'$ for every $p\in C$. The metric space $C'_p$ consists of all points of $C$ and new points $x'$, which are ``duplicates'' of points $x\in C\setminus \{p\}$. We do not change distances between points in $C$ and labels on the points from $C$. We copy the label of each $x$ to $x'$; i.e., we let $l(x')=l(x)$. We place $x'$ at the same location as the point $p$. That is, we let $d(x',y) = d(p,y)$ for all $x,y\in C$. Consider two clusterings of $C'_p$. The first clustering partitions $C_p'$ into the cluster $C$ and singleton clusters $\{x'\}$ (there is a singleton cluster for each $x\in C\setminus \{p\}$). The cost of each singleton cluster $\{x'\}$ equals $f_x$, since $\{x'\}$ is isomorphic to $M_{l(x)}$. Hence, the cost of the first clustering equals \begin{equation}\label{eq:clust1} H_l(C,d|_C) + \sum_{x\in C\setminus \{p\}} f_x. \end{equation} The second clustering partitions $C'$ into pairs of points $\{x,x'\}$ for each $x\in C\setminus \{p\}$ and the singleton cluster $\{p\}$. The cost of each cluster $\{x,x'\}$ equals $$H(M_{a,a,d(x,x')}) = g_x(d(x,x'))+f_x = g_x(d(x,p))+f_x,$$ since the cluster $\{x,x'\}$ is isomorphic to $M_{a,a,d(x,x')}$. The cost of $\{p\}$ equals $f_p$. Hence, the cost of the second clustering equals \begin{equation}\label{eq:clust2} f_p + \sum_{\substack{x\in C\setminus\{p\}}}\big( f_x + g_x (d(x,c))\big). \end{equation} Note that the points $x$ and $x'$ in each cluster $\{x,x'\}$ are symmetric, so we may assume that $x'$ is the center of the cluster $\{x,x'\}$. Observe that the first clustering is a Lloyd's improvement of the second clustering: To get the first clustering from the second clustering we move $x$ from each cluster $\{x,x'\}$ to the singleton cluster $\{p\}$. We are allowed to do that since $d(x,p) = d(x,x')$. Hence, the cost of the second clustering is upper bounded by the cost of the first clustering. We have from~(\ref{eq:clust1}) and~(\ref{eq:clust2}), \begin{equation}\label{eq:H-upper-bound} H_l(C,d|_C) \leq f_p + \big(\sum_{x\in C\setminus\{p\}} f_x + g_x (d(x,c))\big) - \sum_{x\in C\setminus\{p\}} f_x= f_p + \sum_{x\in C\setminus\{p\}} g_x (d(x,c)). \end{equation} On the other hand, if $p$ is the center of $C$, then the second clustering is a Lloyd's improvement of the first one. Hence, (\ref{eq:H-upper-bound}) is an equality when $p$ is the center of $C$. It remains to show that functions $g_x$ are non-decreasing. We need to prove that for every $r_1\geq r_2\geq 0$, $g_x(r_1)\geq g_x(r_2)$. We create a metric space on three points $x',x'',x'''$ each having the same label as $x$. Let $d(x',x'') = r_1$, $d(x'',x''') = r_2$, $d(x',x''') = r_1+r_2$. The cost of clustering $\{x',x''\},\{x'''\}$ equals $2f_x + g_x(r_1)$; the cost of clustering $\{x'\},\{x'', x'''\}$ equals $2f_x + g_x(r_2)$. Since $r_1\geq r_2$, the second clustering is a Lloyd's improvement of the first one. Hence, $2f_x + g_x(r_2)\leq 2f_x + g_x(r_1)$ and $g_x(r_2)\leq g_x(r_1)$. This completes the proof of part I. The proof of part II is similar. \end{proof} \section{Center Proximity for Metric Perturbation Resilience}\label{sec:proximity} In this section, we prove that the (unique) optimal solution to an $\alpha$-\emph{metric} perturbation resilient clustering problem satisfies the $\alpha$-center proximity property. Our proof is similar to the proof of Awasthi, Blum, and Sheffet, who showed that the optimal solution to a (non-metric) $\alpha$-perturbation resilient clustering problem satisfies the $\alpha$-center proximity property. \begin{theorem}\label{lem:alpha-prox} Consider an $\alpha$-metric perturbation resilient clustering problem $((X,d),\calH, k)$ with a center-based objective. Let $C_1,\dots, C_k$ be the unique optimal solution; and let $c_1,\dots, c_k$ be a set of centers of $C_1,\dots, C_k$ (that is, each $c_i\in \ccenter (C_i, d|_{C_i}))$. Then, the following $\alpha$-center proximity property holds: for all $i\neq j$ and $p\in C_i$, we have $d(p,c_j) > \alpha d(p, c_i)$. \end{theorem} \begin{proof} Suppose that $d(p,c_j) \leq \alpha d(p, c_i)$. Let $r^* = d(p, c_i)$. Define a new metric $d'$ as follows. Consider the complete graph on $X$. Assign length $len(u,v) = d(u,v)$ to each edge $(u,v)$ other than $(p,c_j)$. Assign length $len(p,c_j) = r^*$ to the edge $(p,c_j)$. Let metric $d'(u,v)$ be the shortest path metric on the complete graph on $X$ with edge lengths $len(u,v)$. Note that $d(p, c_j) \geq d(p,c_i) = r^*$ since $p\in C_i$ and $C_1,\dots, C_k$ is an optimal clustering. Hence, for every $(u,v)$: $len(u,v) \leq d(u,v)$ and $d'(u,v) \leq d(u,v)$. It is easy to see that $$d'(u,v) = \min (d(u,v), d(u, p) + r^* + d(c_j, v), d(v, p) + r^* + d(c_j, u)).$$ Observe that since the ratio $d(u,v)/len(u,v)$ is at most $d(p,c_j)/r^* \leq \alpha$ for all edges $(u,v)$, we have $d(u,v)/d'(u,v) \leq \alpha$ for all $u$ and $v$. Hence, $d(u,v)\leq \alpha d'(u,v) \leq \alpha d(u,v)$, and consequently, $d'$ is an $(\alpha,1)$-metric perturbation of~$d$. We now show that $d'$ is equal to $d$ within the cluster $C_i$ and within the cluster $C_j$. \begin{lemma}\label{lem:restrict-to-Ci-Cj} For all $u,v\in C_i$, we have $d(u,v) = d'(u,v)$, and for all $u,v\in C_j$, we have $d(u,v) = d'(u,v)$. \end{lemma} \begin{proof} I. Consider two points $u$, $v$ in $C_i$. We need to show that $d(u,v) = d'(u,v)$. It suffices to prove that $$d(u,v) \leq \min ( d(u, p) + r^* + d(c_j, v), d(v, p) + r^* + d(c_j, u)).$$ Assume without loss of generality that $d(u, p) + r^* + d(c_j, v)\leq d(v, p) + r^* + d(c_j, u)$. We have $$d(u, p) + r^* + d(c_j, v) = d(u,p) + d (p, c_i) + d (c_j, v)\geq d(u, c_i) + d (c_j,v).$$ Since $v\in C_i$, we have $d(v,c_i) \leq d(v,c_j)$, and thus $$d(u, p) + r^* + d(c_j, v) \geq d(u, c_i) + d (c_i,v) \geq d (u,v).$$ \noindent II. Consider two points $u$, $v$ in $C_j$. Similarly to the previous case, we need to show that $d(u,v) \leq d(u, p) + r^* + d(c_j, v)$. Since now $u\in C_j$, we have $d(u, c_j) \leq d(u, c_i)$. Thus, $$d(u, p) + r^* + d(c_j, v) = \big(d(u, p) + d(p, c_i)\big) + d(c_j, v) \geq d(u, c_i) + d(c_j, v)\geq d(u, c_j) + d(c_j, v)\geq d(u,v). $$ \end{proof} By the definition of $\alpha$-metric perturbation stability, the optimal clusterings for metrics $d$ and $d'$ are the same. By Lemma~\ref{lem:restrict-to-Ci-Cj}, the distance functions $d$ and $d'$ are equal within the clusters $C_i$ and $C_j$. Hence, the centers of $C_i$ and $C_j$ w.r.t. metric $d'$ are also points $c_i$ and $c_j$, respectively (see Definition~\ref{def:center-based}, item 1). Thus, by the definition of center-based objective, $d'(c_i,p) < d'(c_j,p)$, and, consequently, $$d(c_i,p) = d'(c_i,p) < d'(c_j,p) = r^*= d (c_i,p).$$ We get a contradiction, which finishes the proof. \end{proof} \begin{corollary}\label{cor:closer-to-my-center} Consider a 2-metric perturbation resilient instance. Let $C_1,\dots, C_k$ be an optimal clustering with centers $c_1,\dots, c_k$. Then each point $u$ in $C_i$ is closer to $c_i$ than to any point $v$ outside of $C_i$. \end{corollary} \begin{proof} Suppose that $v\in C_j$ for some $j\neq i$. By the triangle inequality, $d(u,v) \geq d(u,c_j) - d(c_j, v)$. By Lemma~\ref{lem:alpha-prox}, $d(u,c_j)> 2 d(u,c_i)$ and $d(c_j,v) < d(c_i,v)/2$. Thus, $$ d(u,v)\geq d(u,c_j) - d(c_j, v) > 2 d(u,c_i) - \frac{d(c_i,v)}{2} \geq 2 d(u,c_i) - \frac{d(c_i,u)+d(u,v)}{2}. $$ In the last inequality, we used the triangle inequality $d(c_i,v) \leq d(c_i,u)+d(u,v)$. Rearranging the terms, we get $d(u,v) > d (c_i,u)$. \end{proof} \section{Introduction}\label{sec:intro} In this paper, we present an exact algorithm for solving 2-perturbation resilient instances of clustering problems with natural center-based objectives. The notion of perturbation resilience was proposed by Bilu and Linial~\cite{makarychev-BL} and Awasthi, Blum, and Sheffet~\cite{makarychev-ABS}. Informally, an instance is perturbation resilient if the optimal solution does not change when we perturb the instance. The definition was introduced in the context of beyond-the-worst-case analysis and aims to capture a wide class of real-life instances that are computationally easier than worst-case instances. As several authors argue, in instances arising in practice, the optimal solution is often significantly better than all other solutions and thus does not change if we slightly perturb the instance~\cite{makarychev-BL,makarychev-bdls}. It was shown that perturbation resilient instances of such problems as $k$-center, $k$-means, $k$-median, clustering problems with center-based and min-sum objectives, Max Cut, Minimum Multiway Cut, and TSP (with a sufficiently large value of the resilience parameter) can be solved exactly in polynomial-time~\cite{makarychev-ABS,makarychev-BHW2015,makarychev-BalcanLiang,makarychev-bdls,makarychev-BL,makarychev2014MMV,makarychev-MSSW}; while the worst-case instances of these problems are NP-hard. In a clustering problem, we are given a metric space $(X,d)$ and an integer parameter $k$; our goal is to partition $X$ into $k$ clusters $C_1,\dots, C_k$ so as to minimize the objective function $\calH(C_1, \dots, C_k; d)$ (which depends on the problem at hand). The most well-studied and, perhaps, most interesting clustering objectives are $k$-means, $k$-median, and $k$-center. These objectives are defined as follows. Given a clustering $C_1,\dots, C_k$, the objective is equal to the minimum over all choices of centers $c_1\in C_1$,\dots,$c_k \in C_k$ of the following functions: \begin{align*} \calH_{means} (C_1,\dots,C_k;d) &= \sum_{i=1}^k \sum_{u\in C_i} d(u,c_i)^2;\\ \calH_{median} (C_1,\dots,C_k;d) &= \sum_{i=1}^k \sum_{u\in C_i} d(u,c_i);\\ \calH_{center} (C_1,\dots,C_k;d) &= \max_{i\in \{1,\dots, k\}}\max_{u\in C_i} d(u,c_i). \end{align*} Note that in the optimal solution each cluster $C_i$ consists of those vertices $u$ that are closer to $c_i$ than to other centers $c_j$; i.e. $(C_1,\dots, C_k)$ is the Voronoi partition of $X$ with centers $c_1,\dots, c_k$. We refer to objectives satisfying this property as \textit{center-based} objectives. We study two closely related classes of center-based objectives -- \textit{separable} center-based objectives and \textit{natural} center-based objectives (which we discuss below and formally define in Section~\ref{sec:prelim}). We note that $k$-means, $k$-median, and $k$-center are separable and natural center-based objectives. \iffalse We discuss below two closely related classes of center-based objectives -- separable center-based objectives and natural center-based objectives; we provide formal definitions in Section~\ref{sec:prelim}. Roughly speaking, an objective is a separable center-based objective if it is the sum or the minimum of the costs of individual clusters; an objective is a natural center-based objective if it only depends on distances between vertices and centers $c_i$. \fi Now we formally define perturbation resilience. \begin{definition}\label{def:makarychev-perturbation} Consider an instance ${\cal I} = ((X,d), \calH, k)$ of a clustering problem on a metric space $(X,d)$ with objective $\calH$. An instance $((X,d'), \calH, k)$ is an $\alpha$-perturbation of $\cal I$ if $$d(u,v) \leq d'(u,v) \leq \alpha d(u,v) \qquad \text{for every } u,v\in X;$$ here, $d'$ does not have to be a metric. An instance $\cal I$ is $\alpha$-perturbation resilient if every $\alpha$-perturbation of $\cal I$ has the same optimal clustering as $\cal I$. We will refer to $\alpha$ as the perturbation resilience parameter. \end{definition} This definition does not require that the perturbation $d'$ is a metric ($d'$ does not have to satisfy the triangle inequality). It is more natural to consider only \textit{metric} perturbations of $\cal I$ --- those perturbations in which $d'$ is a metric. In this paper, we give the definition of metric perturbation resilience, in which we do require that $d'$ is a metric (see Definition~\ref{def:metric-stability}). (Every $\alpha$-perturbation resilient instance is also $\alpha$-\textit{metric} perturbation resilient.) \paragraph{Known results.} Awasthi, Blum, and Sheffet~\cite{makarychev-ABS} initiated the study of perturbation resilient instances of clustering problems. They offered the definition of a separable center-based objective (s.c.b.o.) and introduced an important center proximity property see Definition~\ref{def:proximity}). They presented an exact algorithm for solving $3$-perturbation resilient instances of clustering problems with s.c.b.o.; they also gave an algorithm for $(2+\sqrt{3})$-perturbation resilient instances of clustering problems with s.c.b.o.\ that have Steiner points. Additionally, they showed that $\alpha$-perturbation resilient instances of $k$-median with Steiner points are $NP$-hard when $\alpha < 3$. Later, Balcan and Liang~\cite{makarychev-BalcanLiang} designed an exact algorithm for $(1+\sqrt{2})$-perturbation resilient instances of problems with s.c.b.o., improving the result of Awasthi, Blum, and Sheffet. Balcan and Liang also studied clustering with the min-sum objective and $(\alpha,\varepsilon)$-perturbation resilience (a weaker notion of perturbation resilience, which we do not discuss in this paper). Recently, Balcan, Haghtalab, and White~\cite{makarychev-BHW2015} designed an algorithm for $2$-perturbation resilient instances of symmetric and asymmetric $k$-center and showed that there is no polynomial-time algorithm for $(2-\varepsilon)$ perturbation resilience instances unless $NP=RP$. They also gave an algorithm for $2$-perturbation resilient instances of problems with s.c.b.o.\ satisfying a strong additional condition of cluster verifiability. To summarize, the best known algorithm for arbitrary s.c.b.o.\ requires that the instance be $1+\sqrt{2}\approx 2.4142$ perturbation resilient~\cite{makarychev-BalcanLiang}; the best known algorithm for $k$-center requires that the instance be $2$-perturbation resilient, and this result cannot be improved~\cite{makarychev-BHW2015}. We refer the reader to~\cite{makarychev2014MMV} for an overview of known results for stable instances of combinatorial optimization problems. \paragraph{Our results.} We define a class of clustering problems with \textit{natural center-based objectives}; an objective is a natural center-based objective if it is representable in the following form. For some functions $f_c$ and $g_u(r)$ ($f_c$ is a function of $c$, $g_u(r)$ is a function of $u$ and $r$; intuitively, $f_{c_i}$ is the cost of having a center at $c_i$ and $g_u(r)$ is the cost of connecting $u$ to a center at distance $r$ from $u$), we have \begin{equation \calH (C_1,\dots, C_k; d) = \min_{c_i\in C_i} \sum_{i=1}^k \Big(f_{c_i} + \sum_{u\in C_i} g_{u}(d(u,c_i))\Big),\notag \end{equation} or \begin{equation \calH (C_1,\dots, C_k; d) = \min_{c_i\in C_i} \max \Big(\max_{i\in\{1,\dots, k\}} f_{c_i} , \max_{\substack{i\in\{1,\dots, k\}\\ u\in C_i}} g_{u}(d(u,c_i))\Big).\notag \end{equation} This class includes such problems as $k$-center, $k$-means, $k$-median, and metric facility location (for the first three problems: $f_c = 0$ and $g_u(r)$ equals $r^2$, $r$, and $r$ respectively). We present a polynomial-time algorithm for $2$-metric perturbation resilient instances of clustering problems with natural center based objectives; thus, we improve the known requirement on the perturbation resilience parameter $\alpha$ from $\alpha \geq 1+\sqrt{2}\approx 2.4142$ to $\alpha \geq 2$ and relax the condition on instances from a stronger $\alpha$-perturbation resilience condition to a weaker and more natural $\alpha$-\emph{metric} perturbation resilience condition. Our result is optimal, since even $(2-\varepsilon)$-perturbation resilient instances of $k$-center cannot be solved in polynomial time unless $NP=RP$~\cite{makarychev-BHW2015}. In particular, our result improves the requirement for $k$-median and $k$-means from $\alpha \geq 1+\sqrt{2}$ to $\alpha \geq 2$. \begin{theorem}\label{thm:main} There exists a polynomial-time algorithm that given any $2$-metric perturbation resilient instance $((X,d),\calH,k)$ of a clustering problem with natural center-based objective, returns the (exact) optimal clustering of $X$. \end{theorem} Our algorithm is quite simple. It first runs the single-linkage algorithm to construct the minimum spanning tree on points of $X$ and then partitions the minimum spanning tree into $k$ clusters using dynamic programming. We note that Awasthi, Blum, and Sheffet~\cite{makarychev-ABS} also used the single-linkage algorithm together with dynamic programming to cluster 3-perturbation resilient instances. However, their approach is substantially different from ours: They first find a hierarchical clustering of $X$ using the single-linkage algorithm and then pick $k$ optimal clusters from this hierarchical clustering. This approach fails for $\alpha$-perturbation resilient instances with $\alpha<3$ (see~\cite{makarychev-ABS}). That is why, we do not use the single-linkage \emph{hierarchical} clustering in our algorithm, and, instead, partition the minimum spanning tree. We note that the definitions of \textit{separable} and \textit{natural} center-based objectives are different. However, in Section~\ref{sec:labeling} we consider a slightly strengthened definition of s.c.b.o.\ and show that every s.c.b.o., under this new definition, is also a natural center-based objective; thus, our result applies to it. We are not aware of any non-pathological objective that satisfies the definition of s.c.b.o.\ but is not a natural center-based objective. Finally, we consider clustering with s.c.b.o.\ and show that the optimal solution for every $\alpha$-metric perturbation resilient instance satisfies the $\alpha$-center proximity property; previously, that was only known for $\alpha$-perturbation resilient instances~\cite{makarychev-ABS}. Our result implies that the algorithms by Balcan and Liang~\cite{makarychev-BalcanLiang} and Balcan, Haghtalab, and White~\cite{makarychev-BHW2015} for clustering with s.c.b.o.\ and $k$-center, respectively, apply not only to $\alpha$-perturbation resilient but also $\alpha$-metric perturbation resilient instances. \paragraph{Overview.} In Section~\ref{sec:prelim}, we formally define key notions used in this paper. Then, in Section~\ref{sec:proximity}, we prove that the optimal solution for every $\alpha$-metric perturbation resilient instance satisfies the $\alpha$-center proximity property. We use this result later in the analysis of our algorithm; also, as we noted above, it is of independent interest and implies that previously known algorithms from~\cite{makarychev-BHW2015,{makarychev-BalcanLiang}} work under the metric permutation resilience assumption. In Section~\ref{sec:algorithm}, we present our algorithm for solving $2$-perturbation resilient instances of problems with natural center-based objectives. The algorithm consists of two steps. In the first step, we find a minimum spanning tree in the metric space $(X, d)$. In the second step, we partition the tree into $k$ subtrees using dynamic programming and then output the corresponding clustering of $X$. Finally, in Section~\ref{sec:labeling}, we prove that if a s.c.b.o. satisfies some additional properties, then it is a natural center-based objective. \section{Preliminaries}\label{sec:prelim} In this section, we formally define key notions used in this paper: a clustering problem, $\alpha$-metric perturbation resilience, separable center-based and natural center-based objectives. \begin{definition} An instance of a clustering problem is the tuple $((X,d), \calH, k)$ of a metric space $(X,d)$, objective function $\calH$, and integer number $k>1$. The objective $\calH$ is a function that given a partition of $X$ into $k$ sets $C_1,\dots, C_k$ and a metric $d$ on $X$ returns a nonnegative real number, which we call the cost of the partition. \end{definition} \noindent Given an instance of a clustering problem $((X,d), \calH, k)$, our goal is to partition $X$ into disjoint sets $C_1,\dots,C_k$, so as to minimize $\calH (C_1,\dots, C_k; d)$. Now we define center-based and separable center-based objectives. We note that the definitions of Awasthi et al.~\cite{makarychev-ABS} make several implicit assumptions that we make explicit here. \begin{definition}\label{def:center-based} We say that $\calH$ is a center-based objective function if the following properties hold. \begin{enumerate} \item Given a subset $S\subset X$ and distance $d_S$ on $S$, we can find the optimal center $c\in S$ for $S$, or, if there is more than one choice of an optimal center, a set of optimal centers $\ccenter(S, d_S)\subset S$. (In the former case, $\operatorname{center}(S, d_S) = \{c\}$). \item For every metric $d$ on $X$, there exists an optimal clustering $C_1,\dots, C_k$ of $X$ (i.e., a clustering that minimizes $\calH(C_1,\dots, C_k;d)$) such that for every two distinct clusters $C_i$, $C_j$, every point $p$ in $C_i$ and centers $c_i \in \ccenter(C_i,d|_{C_i})$ and $c_j \in \ccenter(C_j,d|_{C_j})$ we have $d(p,c_i)\leq d(p,c_j)$. Furthermore, if the optimal clustering $C_1,\dots, C_k$ is unique, then $d(p,c_i) < d(p,c_j)$. \end{enumerate} The objective is separable if, additionally, we can define individual cluster scores so that the following holds. \begin{itemize} \item The cost of the clustering is either the sum (for separable sum-objectives) or maximum (for separable max-objectives) of the cluster scores. \item The score $H(C, d|_C)$ of each cluster $C$ depends only on $C$ and $d|_C$, and can be computed in polynomial time. \end{itemize} \end{definition} In this paper, we consider a slightly narrower class of \textit{natural} center-based objectives (which we described in the introduction). The class contains most important center-based objectives: $k$-center, $k$-means, and $k$-median, as well as the facility location objective. We are not aware of any reasonable center-based objective that is not a natural center-based objective. Now, we formally define natural center-based objectives. \begin{definition} We say that $\calH$ is a natural center-based objective function for a ground set $X$, if there exist functions $f:X\to \bbR$ and $g:X\times \bbR\to \bbR$ such that \begin{equation}\label{def:nat-center-based} \calH (C_1,\dots, C_k; d) = \min_{c_i\in C_i} \sum_{i=1}^k \Big(f_{c_i} + \sum_{u\in C_i} g_{u}(d(u,c_i))\Big), \end{equation} or \begin{equation}\label{def:nat-center-based-inf} \calH (C_1,\dots, C_k; d) = \min_{c_i\in C_i} \max \Big(\max_{i\in\{1,\dots, k\}} f_{c_i} , \max_{\substack{i\in\{1,\dots, k\}\\ u\in C_i}} g_{u}(d(u,c_i))\Big). \end{equation} We require that the functions $f$ and $g$ be computable in polynomial time, and that $g_u$ be non-decreasing for every $u\in X$. We call points $c_i$ the centers of the clustering. \end{definition} We could have also defined an objective with an $\ell_p$-aggregate function $\calH = (\sum_{i=1}^k \bigl(f_{c_i}^p + \sum_{u\in C_i} g_{u}(d(u,c_i))^p\bigr)^{1/p}$, but it is equivalent to (\ref{def:nat-center-based}) with $f'(c) = f^p(c)$ and $g'(u, r) = g^p(u, r)$. \iffalse In Appendix (see Lemma~\TODO), we show that any natural center-based objective satisfies Definition~\ref{def:center-based}. Note that the $k$-median objective can be computed using formula~(\ref{def:nat-center-based}) with $f_{c_i} = 0$ and $g_u(t) = t$; $k$-means can be computed using~(\ref{def:nat-center-based}) with $f_{c_i} = 0$ and $g_u(t) = t^2$; finally, $k$-center can be computed using~(\ref{def:nat-center-based-inf}) with $f_{c_i} = 0$ and $g_u(t) = t$. \fi \iffalse We note that any objective $\calH(C_1,\dots, C_k; d)$ of the form~(\ref{def:nat-center-based}) equals the limit $\lim_{q\to \infty} (\calH_q (C_1,\dots, C_k;d))^{1/q}$, where \begin{equation} \calH_q (C_1,\dots, C_k; d) = \min_{c_i\in C_i} \sum_{i=1}^k \Big(f^q_{c_i} + \sum_{u\in C_i} g_{u}(d(u,c_i))^q\Big). \end{equation} Thus every objective of the form~(\ref{def:nat-center-based}) can be replaced with an objective of the form~(\ref{def:nat-center-based-nat}) with a sufficiently large $q$. \fi Now, we formally define a metric perturbation and metric perturbation resilience. Since we do not require that the objective $\calH$ is homogeneous as a function of the metric $d$, we introduce two perturbation resilience parameters $\alpha_1$ and $\alpha_2$ in the definition, which specify by how much the distances can be contracted and expanded, respectively, in the perturbed instances. \begin{definition}\label{def:metric-stability} Consider a metric space $(X, d)$. We say that a metric $d'$ is an $(\alpha_1,\alpha_2)$-metric perturbation of $(X,d)$ if $\alpha_1^{-1} d(u,v) \leq d'(u,v) \leq \alpha_2 d (u,v)$ for every $u,v\in X$. An instance $((X, d),\calH, k)$ is $(\alpha_1,\alpha_2)$-metric perturbation resilient if for every $(\alpha_1, \alpha_2)$-metric perturbation $d'$ of $d$, the unique optimal clustering for $((X,d'), \calH, k)$ is the same as for $((X,d'), \calH, k)$. Note that the centers of clusters in the optimal solutions for $((X,d), \calH, k)$ and $((X,d'), \calH, k)$ may differ. We say that an instance $(\calH, (X, d), k)$ is $\alpha$-metric perturbation resilient if it is $(\alpha,1)$-metric perturbation resilient. \end{definition} Observe that if instance $((X,d), \calH, k)$ is $(\alpha_1,\alpha_2)$-metric perturbation resilient, then $((X,\lambda d), \calH, k)$ is $(\lambda\alpha_1, \lambda \alpha_2)$-metric perturbation resilient for $\lambda \in [\alpha_1^{-1}, \alpha_2]$. Particularly, if $((X, d), \calH, k)$ is $(\alpha_1,\alpha_2)$-metric perturbation resilient, then $((X, \alpha_2 d),\calH, k)$ is $(\alpha,1)$-metric perturbation resilient and the optimal solution for $((X, \alpha_2 d),\calH, k)$ is the same as for $((X, d), \calH, k)$. Thus, to solve an $(\alpha_1,\alpha_2)$-metric perturbation resilient instance $((X,\lambda d), \calH, k)$, it suffices to solve $\alpha = (\alpha_1\alpha_2)$ metric perturbation resilient instance $((X, \alpha_2 d),\calH, k)$. Consequently, we will only consider $\alpha$-metric perturbation resilient instances in this paper. Finally, we recall the definition of the $\alpha$-center proximity property, introduced in~\cite{makarychev-ABS}. \begin{definition}\label{def:proximity} We say that a clustering $C_1,\dots, C_k$ of $X$ with centers $c_1,\dots, c_k$ satisfies the $\alpha$-center proximity property if for all $i\neq j$ and $p\in C_i$, we have $d(p,c_j) > \alpha d(p, c_i)$. \end{definition}
\section{Introduction} In recent years, multi-atlas segmentation (MAS) has become a widely used image segmentation technique for biomedical applications~\cite{Iglesias2015Multi}. It uses an annotated dataset of atlases (images with their corresponding ground truth\ labels) to segment a target image. The atlases are first registered to the target; then the deformed segmentation masks are fused, generating the final mask for the target. Such an approach suffers from two limitations: i) the need of accurate annotations; ii) the sequential/independent nature of the mapping between the atlases and the target image. \\In this work we propose a coregistration{} and cosegmentation{} framework that optimally aligns and segments a \emph{set} of input volumes. We adopt the standard graph-based deformable registration framework of Glocker et al.~\cite{glo11}. Our novel energy formulation incorporates discriminative information produced by alternative classifiers, trained to differentiate between different cortical structures. We stress the fact that our method is different than typical MAS: the final segmentations are obtained after population registration, while the probabilistic segmentations delivered by our classifiers are used as a discriminative image representation that helps to improve registration performance. Therefore our approach is able to deal with the bias introduced from inaccurate segmentations while at the same time it exploits knowledge of the entire dataset simultaneously. Previous works on groupwise registration and segmentation of MR images have relied on image similarites~\cite{bhatia2004consistent}, or shape and texture models~\cite{tsai2004mutual,babalola2006groupwise}. The works that are most similar to ours are~\cite{Heckemann2010},~\cite{Alchatzidis2014Discrete} and~\cite{Parisot2012}. They use probabilistic priors obtained with a pre-trained classifier to improve segmentation and registration. However, rather than performing prior- and intensity-based registration steps independently, as in~\cite{Heckemann2010}, we consider both types of data at the same time in a single, compound matching criterion. Furthermore, in~\cite{Alchatzidis2014Discrete} and~\cite{Parisot2012} segmentation variables are explicitly modeled, whereas we only model registration variables, thus reducing the number of parameters to be estimated. More importantly, these works aim at segmenting a single target image; contrary to that, we consider a target \emph{population} of images to be segmented and registered simultaneously. \\ Our method infers the segmentations of the unseen images on-the-fly using learned classifiers, and incorporates this information in the energy formulation. As our experimental results in Section 3.1 demonstrate, our method has considerable advantages over standard MAS as well. Firstly, given a set of target volumes, MAS would repeatedly register a set of ground truth masks and perform label fusion individually for each target. Contrary to that, we compute the segmentation probabilities once, and then segment all the volumes simultaneously. If numerous ground truth masks are to be used for the registration step, our method leads to substantial computational gains, as complexity depends only on the number of volumes we want to segment. Secondly, in the case of large datasets, the burden of selecting an appropriate ground truth subset to perform MAS more efficiently is removed; one simply has to compute the probability masks on the input volumes. Thirdly, in typical MAS only appearance features are used to compute the deformation fields between source and target. We go one step further, exploiting more sophisticated, learned representations to drive the coregistration process. These features are computed for all volumes involved, and are directly related to the desired final output. We validate the effectiveness of our approach on the task of segmenting challenging sub-cortical structures in two different brain imaging datasets. \section{Problem formulation using segmentation priors}\label{sec:method} We formulate our coregistration\ and cosegmentation\ algorithm as an energy minimization problem. The input is a set of 3D images $\mathcal{I}=\{ I_1, I_2,\ldots, I_N \},\ \ I_i:\Omega\subset\mathbb{R}^{3}\rightarrow\mathbb{R}$, and their corresponding segmentation likelihoods $\mathcal{S}=\{ S_1, S_2,\ldots, S_N \}$ associated to the possible segmentation classes $c \in \mathcal{C} = \{ 0, \ldots, C \}$ as $S_i:\Omega \times \mathcal{C} \rightarrow[0,1]$. Label zero (0) corresponds to the background. The output is the final multi-label segmentation masks $\hat{\mathcal{S}}=\left \{ \hat{S}_1, \hat{S}_2, {...}, \hat{S}_N \right \}$ together with the deformation fields $\hat{\mathcal{T}}=\left \{ \hat{T}_1, \hat{T}_2, {...}, \hat{T}_N \right \}$ that warp every image to a common coordinate space through an operation $I\circ \hat T$. In addition, let $\delta_\mathcal{X}$ be a function that measures similarity between inputs that lie in some domain $\mathcal{X}$. The objective function we want to minimize is \begin{eqnarray} {E}(\mathcal{T}; \mathcal{I}, \mathcal{S}) = E_I\left( \mathcal{T}; \mathcal{I} \right) + E_S\left (\mathcal{T}; \mathcal{S}\right) + E_R\left(\mathcal{T}\right). \label{eq:energyCoRegSeg} \end{eqnarray} The first two terms seek agreement on the appearance of equivalent voxels and deformed priors respectively, across all volumes of the registered population: \begin{eqnarray} E_I(\mathcal{T}; \mathcal{I}) & = & \sum_{x \in \Omega} \delta_\mathcal{I} ( I_1 \circ T_1(x), I_2 \circ T_2(x), \dots, I_N \circ T_N(x)), \\ E_S(\mathcal{T}; \mathcal{S}) & = & \sum_{c \in \mathcal{C}} \sum_{x \in \Omega} \delta_\mathcal{S}( S_1 \circ T_1(x, c), S_2 \circ T_2(x, c), \dots, S_N \circ T_N(x, c)). \label{eq:energyCoRegSegIntensities} \end{eqnarray} Here, $\delta_\mathcal{I}$ and $\delta_\mathcal{S}$ can be viewed as generalizations of the pairwise similarity, so as to account for multiple inputs. The deformation fields are applied on the probability map of each label separately and in the end we sum over all possible semantic labels $c \in \mathcal{C}$. The last term, $E_R$, imposes geometric or anatomical constraints on the deformation fields, e.g. smoothness. Different types of regularizers $\mathcal{R}$ can be used, usually chosen as convex functions of the gradient of the deformation field. We describe our choice of $\delta_\mathcal{I}$, $\delta_\mathcal{S}$ and $\mathcal{R}$ in~\refsec{sec:MRF}. We apply $\mathcal{R}$ to each deformation field $T_i$ independently: \begin{eqnarray} E_R(\mathcal{T}) = \sum_{i=1}^N \sum_{x \in \Omega} \mathcal{R}( T_i(x) ). \label{eq:energyCoRegSegRegularizer} \end{eqnarray} By minimizing the energy defined in~\refeq{eq:energyCoRegSeg} with respect to $\mathcal{T}$, we can obtain the optimal deformation fields $\hat{\mathcal{T}}=\operatornamewithlimits{argmin}_{\mathcal{T}} E(\mathcal{T}; \mathcal{I},\mathcal{S}).$ The high-order terms that appear in $E_I$ and $E_S$ are hard to optimize and diminish the guarantees to obtain the globally optimal solution. As a remedy we propose the two-step procedure adopted from~\cite{sot09}. Instead of considering all the deformation fields at the same time, we estimate the deformation field $T_k$ of a single image, keeping all other images $(i \neq k)$ fixed. This process is iterated for $i=1,2,\ldots,N$, and is reminiscent of the $\alpha$-expansion algorithm~\cite{boy01}: we start with an initial solution (in our case, the identity deformation fields) and iteratively move towards the optimal deformation fields that minimize $E$. Once the optimal deformation fields $\hat{\mathcal{T}}$ have been estimated, we can build the final segmentation masks $\hat{\mathcal{S}}$. We first warp all segmentation priors in $\mathcal{S}$ to the common frame of reference, generating the deformed segmentation masks $S_i \circ \hat T_i$. Then, given a target volume $I_k$ whose final segmentation we want to estimate, we back-project all warped segmentation masks $S_i \circ \hat T_i$ from the common frame, to the coordinate space of $I_k$ using the inverse deformation field $T_k^{-1}$. This method is modular with respect to the fusion strategy. We use a simple majority voting, assigning to every voxel the class $c \in \{ 0,\ldots, C \}$ with the highest number of votes after back-projection.\\ \noindent \textbf{Iterative Algorithm. }\label{sec:chapterSemantic:coreg:discreteFormulation} We now rewrite~\refeq{eq:energyCoRegSeg} as an iterative process. $E^{t}_I$, $E^{t}_S$ and $E^{t}_R$ consider a single deformation field $T_k$ at a time $t$ and are computed as \begin{eqnarray} E^{t+1}_I (T^t_k; \mathcal{I} ) & = & \sum_{i=0,i\neq k}^{N}\sum_{x \in \Omega }\delta_\mathcal{I} ( I^t_i, I^t_k \circ T^t_k(x) ) \label{eq:M}\\ E^{t+1}_S(T^t_k; \mathcal{S})& = &\sum_{i=0,i\neq k}^{N} \sum_{c \in \mathcal{C}} \sum_{x \in \Omega }\delta_\mathcal{S} ( S^t_i, S^t_k \circ T^t_k(x, c) ) \label{eq:energyCoRegSegPriorsDiscrete} \\ E^{t+1}_R(T^t_k) & = & \left ( N-1 \right )\sum_{x \in \Omega }\mathcal{R}(T^t_k(x)). \end{eqnarray} $I^t,S^t,T^t$, denote the current image, segmentation and deformation field respectively, after applying the updates at iterations $1,2,\ldots,t$. The regularization term is scaled by $(N-1)$ for normalization purposes. This iterative process is repeated until convergence. After all images have been aligned in a common reference frame, majority voting produces the final segmentation masks. For clarity, in the remaining of the text we drop the dependence on $t$. A step-by-step description of the procedure is given in Algorithm~\ref{alg:ICSP}. \begin{algorithm*}[t!] \caption{Iterative Coregistration-Cosegmentation algorithm} \label{alg:ICSP} \fontsize{9}{11}\selectfont \begin{algorithmic}[1] \Procedure{ICS}{$\mathcal{I} = \left \{ I_1, I_2, \ldots , I_N \right \}$, $\mathcal{S} = \left \{ S_1, S_2, \ldots, S_N \right \}$} \State Initialize the deformation fields $\left \{ \hat{T}_1, \hat{T}_2, {...}, \hat{T}_N \right \}$ as null (identity) deformation fields \Repeat \Repeat \State Sample an image $I_k \in \mathcal{I}$ without replacement \State Register $I_k$ to all images in $\mathcal{I} \setminus \{I_k\}$, optimizing $E$: \begin{eqnarray} \ddot{T}_k = \operatornamewithlimits{argmin}_{T_k} E_I(T_k; \mathcal{I}) + E_S( T_k;\mathcal{S}) + E_R( T_k ) \label{eq:singleRegistrationProblem} \end{eqnarray} \State Deform image and corresponding segmentation: $I_k \leftarrow I_k \circ \ddot{T}_k,\ S_k \leftarrow S_k \circ \ddot{T}_k$ \State Update deformation field $\hat{T}_k \leftarrow \hat{T}_k \circ \ddot{T}_k$ \Until{all images have been chosen once} \Until{All $T$ remain unchanged or the maximum of iterations is reached} \For{\text{each image $I_k\in \mathcal{I}$}} \For{\text{each segmentation prior $ S_i \in \mathcal{S} $}} \State \text{Deform ${S}_i$ to the native space of ${I}_k$: $ S'_i = {S}_{i} \circ \hat{T}_{k}^{-1}$} \EndFor \State Apply label fusion (e.g., \textit{Majority Voting}) on $\{ S'_i\}_{i \in \{ 1, \ldots, N \}}$ to obtain $\hat S_k$ \EndFor \State Output: $\hat{\mathcal{T}}=\left \{ \hat{T}_1, \hat{T}_2, {...}, \hat{T}_N \right \}$ and $\hat\mathcal{S} = \left \{ \hat{S}_1, \hat{S}_2, {...}, \hat{S}_N \right \}$ \EndProcedure \end{algorithmic} \end{algorithm*} \noindent \textbf{Discrete Formulation. }\label{sec:MRF} We formulate non-rigid registration between two images $I_i, I_k$ as a discrete energy minimization problem. Following~\cite{Rueckert1999Nonrigid}, we parametrize the deformation fields $T_k$ as a linear combination of $K \ll |\Omega|$ control points that form a regular 3D grid. We define a first order discrete MRF by superimposing an undirected graph $G = (V, U)$ on an image, with $V$ and $U$ denoting the graph nodes and edges respectively. Nodes are interpreted as random variables that model displacements $\mathbf{d}_p \in \mathbb{R}^3$ of the control points, while edges encode the interaction between these variables, in a 6-way neighborhood $U_p$. Given a labeling $L = \{ l_1, l_2, \ldots, l_K \} = \{\mathbf{d}_1, \mathbf{d}_2, \ldots, \mathbf{d}_K \}$, that assigns a label (displacement vector) to every node $p$ in the MRF, the energy function becomes \begin{eqnarray} E_{\mathrm{MRF}}(L;G) & = & \sum_{p\in V}{g_p(l_p) }+\lambda \sum_{(p,q)\in U_p}{f_{pq}(l_p, l_q)},\ \ \text{where}\\ g_p(l_p) = g_p(\mathbf{d}_p) & = &\sum_{x \in \Omega_p} \hspace{-1mm}\delta_\mathcal{I} ( I_i, I_k \circ T_{k}^{\mathbf{d}_p} (x)) + \beta \sum_{c \in \mathcal{C}} \sum_{x \in \Omega_p}\hspace{-1mm} \delta_\mathcal{S} (S_i, S_k \circ T_{k}^{\mathbf{d}_p} ( x, c ) ).\nonumber \label{eq:EMRF} \end{eqnarray} The unary term $g_p$ is a combination of terms $E_I,E_S$ that encode appearance and segmentation likelihood agreement. In practice, control points have a limited spatial support, therefore $p$ receives contributions only from pixels inside a region $\Omega_p$ (e.g. patch) around it. $T_{k}^{\mathbf{d}_p}$ is the transformation induced by applying the displacement vector $\mathbf{d}_p$ on the control point $p$. The $\beta$ coefficient determines the influence of segmentation priors on the optimization problem and $\lambda$ is a scaling factor. In our experiments we set $\lambda=5, \beta=100$ using cross-validation. As $\delta_\mathcal{I}$ we use the sum of absolute difference (SAD), while $\delta_\mathcal{S}$ computes the Hamming distance on the segmentation maps obtained after assigning the semantic class with highest probability to each pixel. The pairwise term $f_{pq}( l_p,l_q ) = f_{pq}( \mathbf{d}_p,\mathbf{d}_q ) = || \mathbf{d}_p-\mathbf{d}_q ||$ is a discrete approximation of the gradient of the spatial transformation and acts as the regularizer $\mathcal{R}$ in~\refeq{eq:energyCoRegSegRegularizer}. To infer the best labeling, we employ Fast-PD~\cite{Komodakis2008Performance}, an efficient move-making discrete optimization method based on linear programming relaxation, that has shown promising results when applied to multi-label problems with similar types of energies. \section{Experiments}\label{sec:experiments} We evaluate the performance of our approach on the task of subcortical brain structure segmentation on two MRI datasets, IBSR~\cite{Rohlfing2012Image} (18 subjects, slice tickness of 1.3mm) and a Rolandic Epilepsy (RE) study (35 subjects, slice tickness of 1mm). In our experiments we use two types of classifiers to estimate segmentation maps, which are then used to guide the registration: convolutional neural networks (CNNs) and random forests (RFs). For a description on the CNN architecture, training methodology and RE dataset, we refer to~\cite{Shakeri2016}. We focus on a subset of $16$ subcortical structures, including left and right lateral ventricle, thalamus, caudate, putamen, pallidum, hippocampus, amygdala, and accumbens. Below we list the variants compared in our experiments. \begin{figure*}[t!] \centering \includegraphics[width=\textwidth]{images/allGraphs2.pdf} \caption{Box plots for average Dice coefficient (DC), Hausdorff distance (HD) and contour mean distance (CMD) for left side subcortical structures in IBSR (best viewed in color). \textbf{DC:} higher = better. \textbf{HD/CMD:} lower = better. Results for the right-side are included in the supplementary.} \label{fig:resultsIBSR} \end{figure*} \noindent \textbf{Coreg+CNN and Coreg+RF:} We use the terms Coreg+CNN and Coreg+RF to refer to the variants of our method that use CNN and RF priors respectively. We generate the CNN and RF priors using the methods described in~\cite{Shakeri2016} and~\cite{Alchatzidis2014Discrete} respectively. \noindent \textbf{CNN and RF:} To further demonstrate the effect of using the iterative coregistration{} on top of CNN/RF priors, we report segmentation results based on the CNN/RF probability maps without coregistration{}. In this setting, given a CNN/RF prior, the segmentation class of every voxel is simply chosen as the class with the highest probability. \noindent \textbf{Pairwise:} As a baseline, we implement the standard MAS based on pairwise registration. All atlases are independently registered to the target image as in~\cite{glo11}; then the ground truth\ annotations are fused to generate the final segmentation using majority voting. The use of the actual ground truth\ annotations offers a clear advantage with respect to Coreg+CNN and Coreg+RF, that use the \emph{estimated} segmentation probability maps instead. Still, Coreg+CNN achieves better performance as shown in in Figures~\ref{fig:resultsIBSR},\ref{fig:MTL}. \noindent \textbf{Coreg+GT (Oracle):} The merit of our approach is that it allows us to guide the coregistration\ process using probability maps as a surrogate for ground truth\ annotations, which are not always available. In order to assess the maximum potential of our method, we implemented an \emph{oracle} that provides us with an upper-bound to its performance. The oracle makes use of the ground truth\ segmentation masks for all 3D volumes, except for the target image, for which we keep the probability maps computed by the CNN. \\ \begin{figure*}[t!] \centering \includegraphics[width=\textwidth]{images/allGraphsMTL2.pdf} \caption{Box plots for average Dice coefficient (DC), Hausdorff distance (HD), and contour mean distance (CMD)for the left and right putamen in the RE dataset (best viewed in color). \textbf{DC:} higher = better. \textbf{HD/CMD:} lower = better. Coreg+CNN results approach the performance of the oracle.} \label{fig:MTL} \end{figure*} We summarize the results of our experiments in Figures~\ref{fig:resultsIBSR}-\ref{fig:MTL}. We compare performance using three different metrics: i) average Dice coefficient (DC); ii)Hausdorff distance (HD); iii) contour mean distance (CMD). Our results show that Coreg+CNN achieves higher segmentation accuracy compared to both Coreg+RF and the pairwise segmentation baseline. Respectively, the segmentations obtained using only the CNN classifier output (without any registration process) are much more accurate than the ones from random forests. Unsurprisingly, Coreg+GT outperforms all other variants. Nonetheless, performance of Coreg+CNN is close to Coreg+GT in most cases, also illustrated visually in~\reffig{fig:visualResult}. This evidence solidifies our original claim, that reliable priors can act as a practical substitute for golden standard annotations in multi-atlas segmentation. Another important observation is that our coregistration{} and cosegmentation{} framework significantly improves results of less accurate priors (e.g. the ones produced by RF), especially in terms of Hausdorff and contour mean distance. Such priors can be learned from weak annotations that are produced very efficiently compared to precise segmentation masks (e.g. bounding boxes) and still deliver acceptable results. \section{Conclusions}\label{sec:conclusions} In this paper we have proposed a novel method for cosegmentation\ and coregistration\ of multi-volume data, guided by semantic label likelihoods. Our approach has the following characteristics: i) infers deformations that are anatomically plausible; ii) establishes visual consistencies between all volumes according to any metric; iii) enforces segmentation consistencies among all volumes according to the predicted likelihoods. Experimental evaluation on a standard, publicly available benchmark, as well as on an additional clinical dataset, demonstrates the effectiveness of our approach. Our experiments also show the value of reliable segmentation priors. Label likelihoods extracted with a deep CNN outperform alternative methods and can replace ground truth{} annotations in coregistration{} with minimal loss in performance. Future research directions include studying the gains of combining different metrics per class and using them as content-adaptive potentials in the energy function. Explicitly modeling high-order interactions and simultaneously recovering all deformations with one-shot optimization are also of great theoretical and practical interest. Finally, an important future goal is testing the proposed method on a clinical problem where coregistration\ and cosegmentation\ are important, such as adaptive radiotherapy. \begin{figure}[t!] \centering \includegraphics[scale=0.29]{images/VisualResults2Fixed.PDF} \vspace{-5mm} \caption{Segmentation results in three different views. Coreg+CNN can be used as a reliable substitute for ground truth\ annotations in multi-atlas coregistration{} and cosegmentation{} (view in color).} \label{fig:visualResult} \end{figure} \bibliographystyle{splncs}
\section{Introduction} The problem we consider is the following. Given a graph $G$ we define a semimetric on the vertex set $V(G)$ \[ d(v,v') = \begin{cases} 0, & v=v',\\ 1, & \{v, v'\} \in E(G) ,\\ \infty, & \mbox{otherwise.} \end{cases}\] We extend this semimetric additively to the Cartesian products $V(G)^n$ and define a graph $G(n,d)$ as follows \begin{IEEEeqnarray*}{rCl} V(G(n,d)) &=& V(G)^n\\ E(G(n,d)) &=& \left\{(x,x'): d(x,x') \stackrel{\triangle}{=} \sum_{j=1}^n d(x_j, x_j') \le d \right\}\,. \end{IEEEeqnarray*} The goal is to determine (bounds on) \[ R^*(G, \delta) \stackrel{\triangle}{=} \limsup_{n\to\infty} \frac{1}{n} \log \alpha(G(n,\delta n))\,.\] Note that $G(n,d)$ corresponds to the graph obtained by removing in the strong power graph $G^n$ edges between sequences which differ in more than $d$ positions. On one hand, this problem is a specialization of the general one considered in \cite{dalai-TIT-2015}. On the other hand, it is a natural generalization of the two classically studied ones: \begin{enumerate}[itemindent=0.5cm, leftmargin=0cm] \item {\em Shannon capacity of a graph}~\cite{shannon-1956}, which corresponds to $\delta=1$. The best general upper bound is~\cite{lovasz-1979} \begin{equation}\label{eq:lovasz} R^*(G, 1) \le \log \theta_L(G)\,, \end{equation} where $\theta_L$ is the Lovasz theta function. \item {\em Rate-Distance tradeoff in Hamming spaces}, which corresponds to $G=K_q$ (the clique). Here the two bounds we mention are \begin{equation}\label{eq:hamming} R_{GV}(q,\delta) \le R^*(K_q,\delta) \le R_{LP1}(q,\delta)\,, \end{equation} where for $\delta < 1-\frac{1}{q}$ \begin{align} R_{GV}(q,\delta) &\stackrel{\triangle}{=} \log q - H_q(\delta)\,,\\ R_{LP1}(q,\delta) &\stackrel{\triangle}{=} H_q\left(\frac{(q-1)-(q-2)\delta - 2\sqrt{(q-1)\delta(1-\delta)}}{q}\right)\,,\label{eq:rlp1}\\ H_q(x) &\stackrel{\triangle}{=} x \log(q-1) - x \log x - (1-x)\log(1-x)\,. \end{align} For $\delta\ge 1-\frac{1}{q}$ both $R_{GV}$ and $R_{LP1}$ equal zero.% \footnote{Better bounds also exist: an improved upper bound for for small $\delta$'s was found by Aaltonen~\cite{aaltonen1990new}, and an improved lower bound for large $q$'s and some range of $\delta$'s is shown via algebraic-geometric codes~\cite{tsfasman1982modular}.} We refer the point $\delta = 1-\frac{1}{q}$ as the Plotkin point.% \footnote{The Plotkin bound is the simplest upper bound that establishes that $R^*(K_q,\delta) = 0$ for $\delta \ge 1-\frac{1}{q}$.} \end{enumerate} The proposed problem can be interpreted as the natural extension of the notion of rate-distance tradeoff to the case where only some substitutions are allowed. In this paper we derive both upper and lower bound on $R^*(G,\delta)$ for different classes of graphs. In particular, among other more specific bounds, we prove that if $G$ is vertex-transitive with independence number $\alpha(G)$, then \begin{equation} R^*(G, \delta) \geq \log \alpha(G) + R_{GV}\left(\frac{|V(G)|}{\alpha(G)}, \delta\right)\label{eq:LB-general} \end{equation} and if $G$ is also edge-transitive, then \begin{equation} R^*(G, \delta) \leq \log \theta_L(G) + R_{LP1}\left(\frac{|V(G)|}{\theta_L(G)}, \delta\right)\,.\label{eq:UB-general} \end{equation} A graph is vertex-transitive if its automorphism group is transitive on the vertex set and edge-transitive if the group is transitive on the edge set. These two bounds can be interpreted as simultaneous generalizations of equation \eqref{eq:hamming}, since $\alpha(K_q)=\theta_L(K_q)=1$, and of the known bounds on the graph capacity \begin{equation} \log \alpha(G)\leq R^*(G,1)\leq \log \theta_L. \end{equation} Note however that for general symmetric graphs, the quantities $|V(G)|/\alpha(G)$ and $|V(G)|/\theta_L(G)$ which appear in the usual role of alphabet size, are in general not integers. To the best of our knowledge this is the first appearance of non-integer quantities in this role. The main tools used for our achievability results are graph homomorphisms and a graph-theoretic generalization of the Gilbert-Varshamov bound. Our main converse, instead, is obtained by adapting ideas from the Delsarte's linear programming bound. We use the following standard graph theoretic notation \cite{west_introduction_2001}. For a graph $G$, we denote by $\alpha(G)$ the size of a largest independent set and by $\omega(G)$ the size of a largest clique. We denote with $\chi(G)$ and $\chi^*(G)$ the chromatic and the fractional chromatic number respectively. Finally, $\theta^*(G)=\chi^*(\overline{G})$ is the fractional clique covering number. \section{Preview Examples} \label{sec:examples} \begin{figure} \includegraphics[width=\columnwidth]{pentagon_simple-eps-converted-to.pdf} \caption{Bounds on $R^*(G,d)$ for the pentagon.} \label{fig:pentagon} \end{figure} Let $K_q$ be the complete graph on $q$ vertices and let $G$ be the disjoint union of $m$ copies of $K_q$, i.e. $G = K_q+K_q+\cdots+K_q = mK_q$. Then according to Proposition \ref{prop:tight-cover} below we have \begin{equation} R^*(G,\delta)=\log(m)+R^*(K_q,\delta). \end{equation} Here the situation is quite intuitive. $G^n$ is itself a disjoint union of $m^n$ equally sized cliques, each being equivalent, under the considered semimetric, to a $q$-ary Hamming space. Thus, $\log(m^n)$ bits are associated to the choice of the clique and within each clique we can additionally pack sequences at distance $n\delta$ at an asymptotic rate $ R^*(K_q,\delta)$. Consider now the case of an even cycle $C_{2m}$, which might be interpreted as a first example of non-disjoint cliques of size $2$. Proposition \ref{prop:tight-cover} says that the problem still reduces to the binary case: \begin{equation} R^*(C_{2m},\delta)=\log(m)+R^*(K_2,\delta). \end{equation} Here as well we might think in some sense of having partitioned our global space in $m^n$ binary Hamming spaces, though a more careful analysis is required to appreciate the details. For odd cycles the situation is different. The best we can prove is based on equations \eqref{eq:LB-general} and \eqref{eq:UB-general}, where \eqref{eq:LB-general} can in general be improved by also considering powers of $G$ (see Proposition \ref{prop:using-powers} below). For the pentagon, for example, equation \eqref{eq:LB-general} applied to $C_5$ and to $C_5^2$ leads respectively to \begin{align} R^*(C_5,\delta) & \geq \log(2)+R_{GV}(5/2,\delta)\\ R^*(C_5,\delta)& \geq \frac{1}{2}\log(5)+\frac{1}{2}R_{GV}(5,2\delta),\label{eq:LB-C_5^2} \end{align} the first being stronger for $\delta\lesssim 0.353$. Equation \eqref{eq:UB-general} gives \begin{equation} R^*(C_5,\delta)\leq \frac{1}{2}\log(5)+R_{LP1}(\sqrt{5},\delta). \end{equation} Figure \ref{fig:pentagon} shows the corresponding plots. In this case, an interpretation of the bounds \eqref{eq:LB-general} and \eqref{eq:UB-general} in terms of a partition of the space into some number of Hamming-like spaces requires fractional values for their alphabet sizes. Note that in the case of $C_5$, our bounds do not pin down what might be in our context the equivalent of the Plotkin point, i.e. the value $\delta_P$ such that $R^*(G,\delta) = R^*(G,1)$ for $\delta \geq \delta_P$ and $R^*(G,\delta) > R^*(G,1)$ for $\delta < \delta_P$. The gap between bounds observed for $C_5$ might not be surprising, since odd cycles are notoriously hard to deal with in general. Another very simple example gives a feeling of the subtleties which one should expect in this context. Consider the simplest possible case of disjoint union of unequally sized cliques: $G=K_1+K_2$. Proposition \ref{sec:unequal-cliques} gives \begin{equation} R^*(K_1+K_2,\delta)=\max_{0 \leq \lambda \leq 1} \left[ H_2(\lambda)+\lambda R^*(K_2,\delta/\lambda) \right].\label{eq:K2K1} \end{equation} Bounding $R^*(K_2,\cdot)$ via~\eqref{eq:hamming} we infer that the lower bound achieves $R=\log(2)$ at $\delta=1/4$ (obtained for $\lambda=1/2$), while the upper bound only says $R\leq \log(2)$ at $d\gtrsim 0.2568$. Thus, determining the Plotkin point even for this simple graph is as hard as improving the best known bound on $R^*(K_2,\delta)$! In view of the hardness of the case of $K_1+K_2$ it may be surprising that we can instead establish the Plotkin point for the much more complicated Kneser graphs. Let $K_{c,a}$ be the graph whose vertices are the subsets of $\{1,2,\ldots,c\}$ of size $a$, two vertices being adjacent if and only if they are disjoint. For these graphs we have $\alpha(K_{c,a}) = \binom{c-1}{a-1} = k$ and \begin{equation*} \log k + R_{GV} \left( \frac{c}{a}, \delta \right) \le R^*(K_{c,a}, \delta) \le \log k + R_{LP1} \left( \frac{c}{a}, \delta \right)\,. \end{equation*} and the Plotkin point is at $\delta=1-\frac{a}{c}$. Similar conclusions hold for any other edge-transitive graph $G$ with $\alpha(G)=\theta_L(G)$. \section{Achievability bounds} \label{sec:achievability} Let $N(u)$ be the neighborhood of a vertex $u$, $N[u] = N(u) \cup \{u\}$, $N(S) = \cup_{u \in S} N(u)$, and $N[S] = N(S) \cup S$. The following is a generalization of the standard Gilbert-Varshamov bound: \begin{proposition} \label{prop:general-lb} Let $\ensuremath{\mathcal{S}}$ be a family of independent sets in $G$ and let $S$ be a random variable with state space $\ensuremath{\mathcal{S}}$. Then $\alpha(G) \geq \sum_{u \in V(G)} w_u$, where \[ w_u = \begin{cases} P[u \in S | u \in N[S]] & P[u \in N[S]] > 0\\ 0 & \text{otherwise}. \end{cases} \] \end{proposition} \begin{IEEEproof} For each $i \in \mathbb{N}$, let $T_i$ be an i.i.d. copy of $S$. Define sequences $A_i, B_i$ as follows. Initialize $A_0 = B_0 = \varnothing$. Let $B_{i+1} = B_i \cup N[T_i]$ and let $A_{i+1} = T_i \setminus B_i$. Our final independent set is $A_{\infty} = \bigcup_i A_i$. Note that $B_i = \bigcup_{j=0}^i N[T_j] \supseteq \bigcup_{j=0}^i N[A_j]$. Thus at step $i$ we exclude the vertices of $T_i$ that are adjacent to any members of $A_{j}$ for any $j < i$. We have $E[|A_{\infty}|] = \sum_{u \in V(G)} P[u \in A_{\infty}]$. If $P[u \in S] = 0$, then $P[u \in A_{\infty}] = 0$ as well. For a vertex $u$ such that $P[u \in S] > 0$, $P[u \in B_{\infty}] = 1$, where $B_{\infty} = \bigcup_i B_i$. We have \[ \PR{u \in A_{i+1}} = \PR{u \in T_i, u \not\in B_i} = \PR{u \in T_i} \PR{u \not\in B_i} \] because $B_i$ only depends on $T_j$ for $j < i$. Now we have \begin{IEEEeqnarray*}{rCl} \PR{u \in A_{\infty}} &=& \sum_{i=0}^\infty \PR{u \in T_i | u \in N[T_i]} \PR{u \in N[T_i]} \PR{u \not\in B_i}\\ &=& \PR{u \in S | u \in N[S]} \sum_{i=0}^\infty \PR{u \in N[T_i], u \not\in B_i}\\ &=& \PR{u \in S | u \in N[S]} \PR{u \in B_{\infty}}. \end{IEEEeqnarray*} Thus $P[u \in A_{\infty}] = w_u$ for all $u$. There must be some independent set in $G$ of size at least $E[|A_{\infty}|] = \sum_{u \in V(G)} w_u$. \end{IEEEproof} This is also a generalization of the Caro-Wei theorem \cite{alon_turans_2004}. \begin{corollary}[Caro-Wei] For any graph $G$, $\alpha(G) \geq \sum_{v \in V(G)} \frac{1}{d(v)+1}$. \end{corollary} \begin{proof} Apply Proposition~\ref{prop:general-lb} with $S$ uniformly distributed over the singleton vertex sets. \end{proof} The following corollary will suffice for the rest of this paper. \begin{corollary} \label{cor:vt} Let $G$ be a vertex-transitive graph and let $T$ be an independent set in $G$. Then $\alpha(G) \geq \frac{|V(G)|\, |T|}{|N[T]|}$. \end{corollary} \begin{IEEEproof} Apply Proposition~\ref{prop:general-lb} with $S$ as a translation of $T$ by an automorphism of $G$ chosen uniformly at random. \end{IEEEproof} \begin{theorem} \label{thm:vt-ach} Let $G$ be a vertex-transitive graph. Then \[ R^*(G,\delta) \geq \log \alpha(G) + R_{GV}\left(\frac{|V(G)|}{\alpha(G)},\delta\right). \] \end{theorem} \begin{IEEEproof} Let $S$ be a maximum independent set in $G$. Then $S^n$ is independent in $G(n,d)$ and $|N[S^n]| = \sum_{i=0}^d \binom{n}{i}(|V(G)| - |S|)^i |S|^{n-i}$. $G(n,d)$ is vertex-transitive, so by Corollary~\ref{cor:vt} \[ \alpha(G(n,d)) \geq \frac{|V(G)|^n}{\sum_{i=0}^d \binom{n}{i}\left(\frac{|V(G)|}{|S|} - 1\right)^i }\,. \] Rewriting this inequality in terms of rates gives the claim. \end{IEEEproof} \section{Converse bound} \label{sec:converse} \begin{theorem} Let $G$ be vertex-transitive, be edge-transitive, and have at least one edge. Then \begin{equation} R^*(G, \delta) \leq \log \theta_L(G) + R_{LP1}\left(\frac{|V(G)|}{\theta_L(G)},\, \delta\right)\,, \end{equation} where $R_{LP1}(q,\delta)$ was defined in~\eqref{eq:rlp1}. \end{theorem} \begin{remark} For every edge-transitive $G$ we have~\cite{lovasz-1979} \begin{equation}\label{eq:dtt0} \theta_L(G)=\frac{|V(G)|}{1-\frac{\lambda_0}{\lambda_m}}\,, \end{equation}where $\lambda_0$ and $\lambda_m$ are the largest and the smallest eigenvalues of the adiacency matrix of $G$, respectively. \end{remark} \begin{IEEEproof} Let $g=|V(G)|$. To bound $\alpha(G(n,\delta n))$ we use Schrijver-Delsarte's method \cite{schrijver-1979}. For real symmetric matrices $T$ and $T'$, write $T \succcurlyeq T'$ when $T - T'$ is positive semidefinite. Let $\mathbf{1}$ be the column vector of ones. For any graph $\Gamma$ we have \[ \alpha(\Gamma) \le \theta_S(\Gamma) \] where Schrijver's $\theta$-function $\theta_S(\Gamma)$ is defined as \begin{equation}\label{eq:dtt12} \min\{\max_{v} T_{v,v}: T\succcurlyeq \mathbf{1}\one^T, T_{v,v'} \le 0 \quad \forall (v,v') \in E(\overline \Gamma)\}\,. \end{equation} Note that if the condition $T_{v,v'} \le 0$ is replaced with $T_{v,v'} = 0$ we get an alternative definition of the Lovasz' $\theta_L(\Gamma)$. Denote by $D$ the $g\times g$ matrix achieving Lovasz's $\theta_L(G)$. For edge-transitive case it is known that \begin{equation}\label{eq:dtt} D = \frac{g}{ \lambda_0 - \lambda_m} (A_G - \lambda_m I)\,, \qquad \theta_L = \frac{-\lambda_m g}{\lambda_0-\lambda_m} \end{equation} where we enumerated $\lambda_0 \ge \cdots \ge \lambda_m$ the eigenvalues of adjacency matrix $A_G$. Note that $\mathop{\rm tr} A = 0$ but $A$ has some nonzero entries, so $\lambda_0 > 0$, $\lambda_m < 0$, and $D$ is entrywise non-negative. Let $P_0$ and $P_m$ be orthogonal projectors on the space of constant functions and $\lambda_m$-eigenspace respectively. Thus $P_0 = \frac{1}{g}\mathbf{1}\one^T$. We will bound $\theta_S(G(n,\delta n))$ by optimizing over the restricted set of $T$'s in~\eqref{eq:dtt12}. Namely, for any $z \in \{0,m\}^n$ define \begin{align} P_z &\stackrel{\triangle}{=} \bigotimes_{i=1}^n P_{z_i}\\ \Pi_\ell &\stackrel{\triangle}{=} \sum_{z \in \{0,m\}^n: \|z\|_0 = \ell} P_z\,, \quad \ell=0,\ldots,n \end{align} where $\|\cdot\|_0$ is the Hamming weight. We will search $T$-assignments in the form \[ T = D^{\otimes n} \odot \left( \sum_{\ell=0}^n \hat h_\ell \Pi_\ell \right)\] with $\hat h_{\ell}\ge 0$ and with $\odot$ denoting the Hadamard (entry-wise) product. We have to express the two conditions on $T$ from~\eqref{eq:dtt12} in terms of the coefficients $\hat h_\ell$. First, we consider the condition $T \succcurlyeq \mathbf{1}\one^T$. \begin{enumerate \item Since $D\odot P_0 = \frac{1}{g}D$, we have $(D \odot P_0) \mathbf{1} = \mathbf{1}$. \item Note that \begin{equation}\label{eq:pmd} \img P_m = \ker D \end{equation} implying that $\mathop{\rm tr} (P_m D) =0$ and thus $\mathbf{1}^T(D\odot P_m) \mathbf{1} = 0\,$. So $\mathbf{1}$ is in the kernel of $D\odot P_m$. Similarly, $\mathbf{1}$ is in the kernel of $D^{\otimes n}\odot P_z$ for $\|z\|_0 > 0$. \item Consequently, $\mathbf{1}$ is an eigenvector of $D^{\otimes n}\odot P_z$ for any $z$ and $\mathbf{1}$ is an eigenvector of $T$ for any choice of $\{\hat h_\ell\}$ and the eigenvalue of $\mathbf{1}$ is $\hat{h}_0$. \item Since Hadamard-product preserves positive-semidefiniteness, it is clear that $T \succcurlyeq 0$. Because $\mathbf{1}$ is an eigenvector of $T$, the condition $T \succcurlyeq \mathbf{1}\one^T$ is equivalent to \begin{equation}\label{eq:dtt8} g \hat{h}_0 = \mathbf{1}^T T \mathbf{1} \ge \mathbf{1}^T(\mathbf{1}\one^T)\mathbf{1} = g^{2n} \end{equation} \end{enumerate} Next, consider the condition $T_{v,v'} \le 0 \quad \forall (v,v') \in E(\overline{G(n,\delta n)})$, i.e. all $(v,v')$ such that $d(v,v') > \delta n$. We have \begin{align*} (D^{\otimes n})_{v,v'} = 0, & \quad d(v,v')=\infty \\ (D^{\otimes n})_{v,v'} \ge 0, & \quad d(v,v') < \infty\,. \end{align*} Thus we need \[ \left( \sum_{\ell=0}^n \hat h_\ell \Pi_\ell \right)_{v,v'} \leq 0 \] for all $(v,v')$ such that $\delta n < d(v,v') < \infty$. Denote $d \stackrel{\triangle}{=} \mathop{\rm tr} P_m$ (the dimension of $\lambda_m$-eigenspace) and $c \stackrel{\triangle}{=} -g (P_m)_{v,v'}$ for any pair of adjacent vertices $(v,v')$. Note that, by edge-transitivity, $c$ does not depend on the choice of pair of vertices% \footnote{This is the key reason for requiring edge-transitivity. For non-edge-transitive graphs, e.g. the complement of the Kneser graph $\overline K_{7,3}$ or $(C_5)^2$, we actually do not have the constancy of $c$ on the edge-set.}. We can relate $c/d$ to spectrum of $A_G$ by using $\mathop{\rm tr}(P_m D)=0$: \begin{equation}\label{eq:dtt7} d \lambda_m = \mathop{\rm tr} P_m^* A_G = - c \frac{|E(G)|}{g} = -c\lambda_0\,. \end{equation} In particular, $c>0$. We now let $d(v,v')=d_0 < \infty$ and notice that this implies that for every $i \in [n]$, either $\{v_i, v_i'\} \in E(G)$ or $v_i=v_i'$. Therefore, under restriction of finite distance we have \[ (P_m)_{v_i,v_i'} = \frac{1}{g} \left(d 1\{v_i=v_i'\} - c 1\{v_i \neq v_i'\}\right)\,.\] Consequently, \[ (P_z)_{v,v'} = \frac{1}{g^n} (-c)^{b} d^{\|z\|_0 - b}\,, \,\, b=|\{i: v_i\neq v_i', z_i=m\}|\,.\] Finally, summing over all $z$ with Hamming weight $\ell$ we get \[ (\Pi_\ell)_{v,v'} = \frac{1}{g^n}c^{\ell} K_\ell(d(v,v'))\,, \] where we introduce Krawtchouk polynomials \[ K_\ell(x) \stackrel{\triangle}{=} \sum_{j=0}^\ell \binom{x}{j} \binom{n-x}{\ell - j} (-1)^j (q'-1)^{\ell-j}\,, \] and $q' = 1+\frac{d}{c} = 1- \frac{\lambda_0}{\lambda_m} = \frac{g}{\theta_L(G)}$ by~\eqref{eq:dtt0} and~\eqref{eq:dtt7}. Thus $T_{v,v'} \le 0 $ for $\delta n < d(v,v')$ is equivalent to \begin{equation}\label{eq:dtt9} H(x) \le 0 \qquad \forall x \in \mathbb{Z} \cap [\delta n, n] \end{equation} where we introduce \[ H(x) = \sum_{\ell=0}^n \hat H_\ell K_\ell(x)\,, \quad \hat H_\ell \stackrel{\triangle}{=} \frac{1}{g^n} c^\ell \hat h_\ell\,. \] Relaxing the constraint in~\eqref{eq:dtt9} to $H(x) \le 0$ on the interval $[\delta n,n]$ we get the problem: \begin{equation}\label{eq:htoLPq'} A_{LP1}(n,\delta n) \stackrel{\triangle}{=} \min\left\{\frac{H(0)}{\hat H_0}: \hat H_\ell \ge 0, H(x) \le 0 \quad \forall x\in[\delta n, n]\right\}\,. \end{equation} Since $D_{v,v} = \theta_L(G)$ the overall bound becomes: \begin{equation} \alpha(G(n,\delta n)) \le \theta_L(G)^n A_{LP1}(n,\delta n)\,. \end{equation} The minimization of \eqref{eq:htoLPq'} is what is known as the first linear programming problem for the Hamming space, though with a non-integer parameter $q'$. Although exact asymptotics of~\eqref{eq:htoLPq'} is hereto unknown even in the binary case, cf.~\cite{navon2005delsarte}, we can use the standard MRRW choice of the polynomial $H(x) = \frac{1}{x-a}(K_t(a) K_{t+1}(x)-K_{t+1}(a)K_t(x))^2$, see~\cite{mceliece-et-al-1977} for the choice of $a$ and $t$. Their arguments can be applied verbatim for non-integer values of $q'$ (see also \cite{ismail-simeonov-1998} for the position of the roots of $K_\ell(x)$) and it implies \[ A_{LP1}(n, \delta n) \le \mathop{\rm exp}\{n R_{LP1}(q', \delta) + o(n)\}\,,\] and the claim of the theorem follows. \end{IEEEproof} \section{Relations between graphs} \label{sec:graph-stuff} In this section we summarize some of the methods that can be useful for extending the previous basic results to other graphs (possibly lacking symmetries). \subsection{Bounds from graph homomorphisms} A function $f : V(G) \to V(H)$ is graph homomorphism from $G$ to $H$ if $\{u, v\} \in E(G)$ implies $\{f(u), f(v)\} \in E(H)$. We will write $f : G \to H$ to indicate that $f$ is a homomorphism, or just $G \to H$ to indicate that a homomorphism exists. \begin{proposition} \label{prop:lift} If there is some $f : G \to H$, then $f^{\otimes n} : G(n,d) \to H(n,d)$. If additionally $H$ is vertex-transitive then \[ R^*(G, \delta) \ge \log \frac{|V(G)|}{|V(H)|} + R^*(H,\delta)\,.\] \end{proposition} \begin{IEEEproof} For $u,v \in V(G)$, if $d_G(u,v) < \infty$ then $d_H(f(u), f(v)) = d_G(u,v)$. This property extends to the semimetrics on $V(G)^n$ and $V(H)^n$. If $H$ is vertex-transitive, $H(n,d)$ is as well. Because $G(n,d) \to H(n,d)$ and $H(n,d)$ is vertex-transitive, we have \[\frac{\alpha(G(n,d))}{|V(G)|^n} \geq \frac{\alpha(H(n,d))}{|V(H)|^n}\] by the No-Homomorphism Lemma~\cite{AC85}. Rewriting this inequality in terms of rates gives the claim. \end{IEEEproof} In particular, for any $c$-colorable graph $G$ we have, by applying the previous proposition to $G\to K_c$, that \begin{equation}\label{eq:ach1} R^*(G, \delta) \ge \log \frac{|V(G)|}{c} + R^*(K_c, \delta)\,. \end{equation} We may further lower-bound $R^*(K_c,\delta)$ by the GV-bound $R_{GV}(c, \delta)$. This may not be the best one known, though! It turns out that this latter bound can be improved, as next section shows, by replacing coloring with fractional coloring. \subsection{Bounds from fractional chromatic number} For vertex-transitive graphs we have $\alpha(G)\chi^*(G) = |V(G)|$ and thus we may restate Theorem~\ref{thm:vt-ach} as \begin{equation}\label{eq:ach2} R^*(G,\delta) \ge \log \frac{|V(G)|}{\chi^*(G)} + R_{GV}(\chi^*(G), \delta)\,. \end{equation} It turns out~\eqref{eq:ach2} holds even without vertex-transitivity. \begin{proposition} For any graph $G$ the bound~\eqref{eq:ach2} holds. \end{proposition} \begin{IEEEproof} If $\chi^*(G) = p/q$, then for some positive integer $b$, $G \to K_{bp,bq}$, where $K_{bp,bq}$ is a Kneser graph as defined in Section~\ref{sec:examples} \cite{godsil_algebraic_2013}. $K_{bp,bq}$ is vertex-transitive and $\chi^*(K_{bp,bq}) = \frac{p}{q}$. Thus from Proposition~\ref{prop:lift} and \eqref{eq:ach2}, \begin{IEEEeqnarray*}{rCl} R^*(G,\delta) &\geq& \log \frac{|V(G)|}{|K_{bp,bq}|} + R^*(K_{bp,bq},\delta)\\ &\geq& \log \frac{|V(G)|}{|K_{bp,bq}|} + \log \frac{|K_{bp,bq}|}{p/q} + R_{GV}\left(\frac{p}{q},\delta\right)\,.\, \end{IEEEeqnarray*} \end{IEEEproof} \subsection{Bounds from powers of graphs} \begin{proposition} \label{prop:using-powers} \begin{equation*} \frac{1}{r} R^*(G^r, r\delta) \leq R^*(G, \delta) \leq \frac{1}{r} R^*(G^r, \delta) \end{equation*} \end{proposition} \begin{IEEEproof} These three graphs can all have vertex set $V(G)^{rn}$. We have $E(G^r(n,d)) \subseteq E(G(rn,rd)) \subseteq E(G^r(n,rd))$ and $\alpha(G^r(n,rd)) \leq \alpha(G(rn,rd)) \leq \alpha(G^r(n,d))$. \end{IEEEproof} A useful application of Proposition \ref{prop:using-powers} is the lower bound we presented for $C_5$ in equation \eqref{eq:LB-C_5^2}. In this particular case, we exploit the fact that $C_5^2$ is $5$-colorable to use equation \eqref{eq:ach1} on $C_5^2$ and then Proposition \ref{prop:using-powers} to bound $R^*(C_5,\delta)$. \subsection{Clique covers} In some special cases, we can show that distinct graphs have essentially identical rate functions. \begin{proposition} \label{prop:tight-cover} Let $G$ be a graph with $\omega(G) = \chi(G) = c$, and $\theta^*(G)\omega(G) = |V(G)|$. Then $\alpha(G) = \theta^*(G)$ and \begin{equation*} R^*(G,\delta) = \log \alpha(G) + R^*(K_c, \delta). \end{equation*} \end{proposition} \begin{IEEEproof} For any graph $H$, $\frac{|V(H)|}{\chi(H)} \leq \alpha(H)$ because some color class is at least as large as the average and $\alpha(G) \leq \theta^*(H)$ by the pigeonhole principle. If $H$ satisfies the conditions of this proposition, the inequalities must be tight. Let $\ensuremath{\mathcal{S}}$ be the set of maximal cliques in $G$. There is a fractional clique covering of $G$ of weight $\theta^*(G)$. This means that there is some weight vector $w \in \mathbb{R}_+^{\ensuremath{\mathcal{S}}}$ such that $\mathbf{1}^Tw = \theta^*(G)$ and $\sum_{S:u \in S} w_S \geq 1$ for all $u \in V(G)$. Because $\theta^*(G)\omega(G) = |V(G)|$, only cliques of size $\omega(G)$ are assigned nonzero weight. For each $S \in \ensuremath{\mathcal{S}}$, $G[S]$ (the subgraph of $G$ induced by $S$) is isomorphic to $K_c$. For each $T =T_1 \times \ldots \times T_{|\ensuremath{\mathcal{S}}|} \in \ensuremath{\mathcal{S}}^n$, $G(n,d)[T] = K_c(n,d)$. Thus \begin{IEEEeqnarray}{rCl} \alpha(G(n,d)) &\leq& \sum_{T \in \ensuremath{\mathcal{S}}^n} \alpha(G(n,d)[T]) \prod_{i \in [n]} w_{T_i}\nonumber\\ &\leq& \alpha(K_c(n,d)) \sum_{T \in \ensuremath{\mathcal{S}}^n} \prod_{i \in [n]} w_{T_i}\nonumber\\ &=& \alpha(K_c(n,d)) \left( \sum_{S \in \ensuremath{\mathcal{S}}} w_S\right)^n\nonumber\\ &=& \theta^*(G)^n \alpha(K_c(n,d))\label{cover} \end{IEEEeqnarray} There is a homomorphism $G \to K_{\chi(G)}$, so from \eqref{eq:ach1} and \eqref{cover}, \begin{equation*} \log \frac{|V(G)|}{\chi^*(G)} + R^*(K_c, \delta) \leq R^*(G,\delta) \leq \log \theta^*(G) + R^*(K_c, \delta)\,. \end{equation*} These bounds are both equal to $\log \alpha(G) + R^*(K_c, \delta)$. \end{IEEEproof} \subsection{Sum of cliques} The simplicity of Proposition~\ref{prop:tight-cover} depends on the fact that all cliques involved are the same size. When every optimal clique cover involves multiple sizes of cliques, complications ensue. \begin{proposition} \label{sec:unequal-cliques} Let $G= a_1 K_1 + a_c K_c$ and let $q = \frac{a_c}{a_i}+1$. Then \[ R^*(G,\delta) = \log a_1 + \max_{0 \leq \lambda \leq 1} \left[ H_q(\lambda) + \lambda R^*\left(K_c,\frac{\delta}{\lambda}\right)\right]. \] \end{proposition} \begin{IEEEproof} $G(n,d) = \sum_i \binom{n}{i}a_c^ia_1^{n-i} K_c(i,d)$. $R^*(G,\delta)$ depends only on the largest term in this sum. Let $i = \lambda n$. We have $\limsup_{n\to\infty} \lambda \frac{1}{\lambda n} \log K_c(\lambda n,\delta n) = p R^*\left(K_c,\frac{\delta}{\lambda}\right)$ and $\binom{n}{i}a_c^ia_1^{n-i} = a_1^n\binom{n}{i}(q-1)^i$. \end{IEEEproof} \bibliographystyle{IEEEtran}
\section{Introduction} \label{sec:intro} We study bounded solutions $(Y,Z,U)$ to backward stochastic differential equations with jumps \[ Y_t = \xi +\int_t^T f_s(Y_{s-},Z_s,U_s)\, {\rm d}s-\int_t^T Z_s\, {\rm d}B_s-\int_t^T \mskip-10mu \int_E U_s(e)\, \widetilde{\mu}({\rm d}s,{\rm d}e)\,, \] which are jointly driven by a Brownian motion $B$ and a compensated random measure $\widetilde{\mu}=\mu-\nu^{\mathbb{P}}$ of some integer-valued random measure $\mu$ on a probability space $(\Omega,\cal{F},\mathbb{P})$. This is an extension of the classical BSDE theory on Wiener space towards BSDEs which involve jumps (JBSDEs), that are driven by the compensated random measure $\widetilde{\mu}$, and do evolve on non-Brownian filtrations. Such JBSDEs do involve an additional stochastic integral with respect to the compensated jump measure $\widetilde{\mu}$ whose integrand $U$, in contrast to the integrand $Z$, typically takes values in an infinite dimensional function space instead of an Euclidean space. Comparison theorems for BSDEs with jumps require more delicate technical conditions than in the Brownian case, see \cite{BarlesBuckdahnPardoux97,Royer06,CohenElliott10}. The starting point for our paper is a slight generalization of the seminal $({\rm\bf A}_{\mathbf\gamma})$-condition for comparison due to \cite{Royer06}. Our first contribution are extensions of comparison, existence and uniqueness results for bounded solutions of JBSDEs to the case of infinite jump activity for a family (\ref{generator1}) of generators, that do not need to be Lipschitz in the $U$-argument. This shows how the monotone stability approach to BSDEs with jumps, pioneered by \cite{Morlais09} for one particular generator, permits for a concise proof in a setting, that may be of particular appeal in a pure jump case without a Brownian motion, see Corollary~\ref{cor:JBSDEZzero}. While the strong approximation step for this ansatz is usually laborious, we present a compact proof with a $\mathcal{S}^1$-closedness argument and more generality of the generator in the $U$-argument for infinite activity of jumps. To be useful towards applications, our second contribution are sufficient concrete criteria for comparison and wellposedness that are comparably easy to verify in actual examples, as they are formulated in terms of properties of certain functions for generators $f$ from the family (\ref{generator1}) w.r.t.\ basically Euclidean arguments. This is the main trust for the comparison theorem in Section~\ref{sec:comp} (see Theorem~\ref{comparetheo} and Proposition~\ref{estimatetheo}, compared to Proposition~\ref{comparegeneral}) and the wellposedness Theorem~\ref{infinitetheo} (in comparison to Theorem~\ref{infinitetheogeneral}, whose conditions are more general but more abstract). A third contribution are the many examples which illustrate the scope and applicability of our results and of the, often quite technical, assumptions that are frequently needed for JBSDE results in the literature. Indeed, the range of the imposed combinations of several technical assumptions is often not immediately clear, and we believe that a discussion of several examples and counter examples can help to shed some light on the scope and the differences of some assumptions prevailing in the literature, and might also caution against possible pitfalls. The approach in this paper can be described in more detail as follows: The comparison theorem gives rise to a-priori estimates on the $L^\infty$-norm for the $Y$-component of the JBSDE solution. This step enables a quick intermediate result on existence and uniqueness for JBSDEs with finite jump activity. To advance from here to infinite activity, we approximate the generator $f$ by a monotone sequence of generators for which solutions do exist, extending the monotone stability approach from \cite{Kobylanski00} and (for a particular JBSDE) \cite{Morlais09,Morlais10}. For the present paper, the compensator $\nu(\omega,{\rm d}t,{\rm d}e)$ of $\mu(\omega,{\rm d}t,{\rm d}e)$ can be stochastic and does not need to be a product measure like $\lambda({\rm d}e)\otimes {\rm d}t$, as it would be natural e.g.\ in a L\'evy-process setting, but it is allowed to be inhomogeneous in that it can vary predictably with $(\omega, t)$. In this sense, $\nu$ is only assumed to be absolutely continuous to some reference product measure $\lambda\otimes {\rm d}t$ with $\lambda$ being $\sigma$-finite, see equation (\ref{nuzetadensity}). Such appears useful, but requires some care in the specification of generator properties in~Section~\ref{sec:prelim}. For the filtration we assume that $\widetilde{\mu}$ jointly with $B$ (or alone) satisfies the property of weak predictable representation for martingales, see (\ref{WPRP}). As explained in Example~\ref{example_WPRP}, such setup permits for a range of stochastic dependencies between $B$ and $\widetilde{\mu}$, which appear useful for modeling of applications, and encompasses many interesting driving noises for jumps in BSDEs; This includes L\'evy processes, Poisson random measures, marked point processes, (semi-)Markov chains or much more general step processes, connecting to a wide range of literature, e.g.\ \cite{CohenElliott10,CFJ16,GeissLabart16,GeissS16,GeissS16ejp,BandiniC17}. The literature on BSDE started with the classical study \cite{PardouxPeng90} of square integrable solutions to BSDEs driven solely by Brownian motion $B$ under global Lipschitz assumptions. One important extension concerns generators $f$ which are non-Lipschitz but have quadratic growth in $Z$, for which \cite{Kobylanski00} derived bounded solutions by pioneering a monotone stability approach, and \cite{Tevzadze08} by a fixed point approach. Square integrable solutions under global Lipschitz conditions for BSDEs with jumps from a Poisson random measures are first studied by \cite{TangLi94,BarlesBuckdahnPardoux97}. There is a lot of development in JBSDE theory recently. See for instance \cite{Bandini15, PapapantoleonEtal16, KrusePopier16,KrusePopier17,OuknineEF17} for results under global Lipschitz conditions on the generator with respect to on $(Z,U)$. In the context of non-Lipschitz generators that are quadratic (also in $Z$, with exponential growth in $U$), JBSDEs have been studied to our knowledge at first by \cite{Morlais09} using a monotone stability approach for a specific generator that is related to exponential utility, by \cite{ElKarouiMatoussiNgoupeyou16} using a quadratic-exponential semimartingale approach from \cite{BarrieuElKaroui13}, and by \cite{LaevenStadje14} or \cite{KPZ15} with again different approaches, relying on duality methods or, respectively, the fixed-point idea of \cite{Tevzadze08} for quadratic BSDEs. For extensive surveys of the active literature with more references, let us refer to \cite{KrusePopier16,Yao17}, who contribute results on $L^p$-solutions for generators, being monotone in the $Y$-component, that are very general in many aspects. Their assumptions on the filtrations or generator's dependence on $(Y,Z)$ are for instance more general than ours. But the present paper still contributes on other aspects, noted above. For instance, \cite{Yao17} assumes finite activity of jumps and a Lipschitz continuity in $U$. More relations to some other related literature are being explained in many examples throughout the paper, see e.g.\ in Section~\ref{sec:appl}. Moreover, it is fair to say that results in the JBSDE literature often involve combinations of many technical assumptions; To understand the scope, applicability and differences of those assumptions, it appears helpful to discuss concrete examples and applications. The paper is organized as follows. Section~\ref{sec:prelim} introduces the setting and mathematical background. In Sections~\ref{sec:comp} and \ref{sec:exandu}, we prove comparison results and show existence as well as uniqueness for bounded solutions to JBSDEs, both for finite and infinite activity of jumps. Last but not least, Section~\ref{sec:appl} discusses several examples to shed light on the scope of the results and of the underlying technical assumptions, and to illustrate some differences to those in related literature. \section{Preliminaries}\label{sec:prelim} This section presents the technical framework, sets notations and discusses key conditions. First we recall essential facts on stochastic integration w.r.t.\ random measures and on bounded solutions for Backward SDEs which are driven jointly by Brownian motions and a compensated random measure. For notions from stochastic analysis not explained here we refer to \cite{JacodShiryaev03,HeWangYan92}. Inequalities between measurable functions are understood almost everywhere w.r.t.\ an appropriate reference measure, typically $\mathbb{P}$ or $\mathbb{P}\otimes {\rm d}t$. Let $T<\infty$ be a finite time horizon and $(\Omega, \mathcal{F}, (\mathcal{F}_t)_{0\leq t\leq T},\mathbb{P})$ a filtered probability space with a filtration $\mathbb{F}= (\mathcal{F}_t)_{0\leq t\leq T}$ satisfying the usual conditions of right continuity and completeness, assuming $ \mathcal{F}_T= \mathcal{F}$ and $ \mathcal{F}_0$ being trivial (under $\mathbb{P}$); Thus we can and do take all semimartingales to have right continuous paths with left limits, so-called c\`adl\`ag paths. Expectations (under $\mathbb{P}$) are denoted by $\mathbb{E}=\mathbb{E}_{\mathbb{P}}$. We will denote by ${\sf \bf A}^{T}$ the transpose of a matrix ${\sf \bf A}$ and simply write $\bm{xy}:={\bm x}^T{\bm y}$ for the scalar product for two vectors ${\bm x},{\bm y}$ of same dimensionality. Let $H$ be a separable Hilbert space and denote by $\mathcal{B}(E)$ the Borel $\sigma$-field of $E:=H\backslash \{ 0\}$, e.g.\ $H=\mathbb{R}^l$, $l\in \mathbb{N}$ or $H=\ell^2\subset \mathbb{R}^{\mathbb{N}}$. Then $(E,\mathcal{B}(E))$ is a standard Borel space. In addition, let $B$ be a $d$-dimensional Brownian motion. Stochastic integrals of a vector valued predictable process $Z$ w.r.t.\ a semimartingale $X$, e.g.\ $X=B$, of the same dimensionality are scalar valued semimartingales starting at zero and denoted by $\int_{(0,t]} Z {\rm d}X=\int_0^t Z {\rm d}X=Z\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} X_t$ for $t\in [0,T]$. The \textit{predictable} $\sigma$-field on $\Omega \times [0,T]$ (w.r.t.\ $ (\mathcal{F}_t)_{0\leq t\leq T}$) is denoted by $\mathcal{P}$ and $\widetilde{\mathcal{P}}:=\mathcal{P}\otimes \mathcal{B} (E)$ is the respective $\sigma$-field on $\widetilde{\Omega}:=\Omega \times [0,T] \times E$. Let $\mu$ be an integer-valued random measure with compensator $\nu =\nu^{\mathbb{P}}$ (under $\mathbb{P}$) which is taken to be absolutely continuous to $\lambda \otimes {\rm d}t$ for a $\sigma$-finite measure $\lambda$ on $(E,\mathcal{B}(E))$ satisfying $\int_E 1\wedge |e|^2 \lambda ({\rm d}e)<\infty$ with some $\widetilde{\mathcal{P}}$-measurable, bounded and non-negative density $\zeta$, such that \begin{equation} \label{nuzetadensity} \nu ({\rm d}t,{\rm d}e)=\zeta (t,e)\, \lambda ({\rm d}e)\, {\rm d}t = \zeta_t\, {\rm d}\lambda \,{\rm d}t, \end{equation} with $0\leq \zeta (t,e)\leq c_{\nu}$ $\mathbb{P}\otimes \lambda\otimes {\rm d}t$-a.e.\ for some constant $c_{\nu}>0$. Note that $L^2(\lambda)$ and $L^2(\zeta_t{\rm d}\lambda)$ are separable Hilbert spaces since $\lambda$ (and $\lambda_t:=\zeta_t\, {\rm d}\lambda$) is $\sigma$-finite and $\mathcal{B}(E)$ is finitely generated. Since the density $\zeta$ can vary with $(\omega,t)$, the compensator $\nu$ can be time-inhomogeneous and stochastic. Such permits for a richer dependence structure for $(B,\widetilde{\mu})$;\ For instance, the intensity and distribution of jump heights could vary according to some diffusion process. Yet, it also brings a few technical complications, e.g.\ function-valued integrand processes $U$ from $\mathcal{L}^2(\widetilde{\mu})$ (as defined below) for the JBSDE need not take values in one given $L^2$-space (for a.e.\ $(\omega,t)$), like e.g.\ $L^2(\lambda)$ if $\zeta\equiv1$, and the specifications of the domain and of the measurability for the generator functions should take account of such. For stochastic integration w.r.t.\ $\widetilde{\mu}$ and $B$ we define sets of $\mathbb{R}$-valued processes \begin{align*} \mathcal{S}^{p}&:=\mathcal{S}^{p}(\mathbb{P} ):= \Big\{Y\, \mbox{ c\`adl\`ag} \, :\, |Y |_{p}:= \Big\lVert \sup\limits_{0\leq t\leq T} |Y_t|\, \Big\rVert_{L^{p}(\mathbb{P})} < \infty \Big\} \quad\mbox{for } p \in [1,\infty]\,,\\ \mathcal{L}^2(\widetilde{\mu}) &:= \Big\{ U\, \mbox{ } \widetilde{\mathcal{P}}\mbox{-measurable} \, :\, \lVert U \rVert_{\mathcal{L}^2(\widetilde{\mu})}^2 := \mathbb{E}\Big( \int_0^T \mskip-10mu \int_E |U_s(e)|^2\, \nu({\rm d}s,{\rm d}e) \Big) < \infty \Big\}\,, \end{align*} and the set of $\mathbb{R}^{d}$-valued processes \begin{align*} \mathcal{L}^2(B) &:= \Big\{ \theta\, \,\mbox{ } \mathcal{P}\mbox{-measurable} \, :\, \lVert \theta \rVert_{\mathcal{L}^2(B)}^2 := \mathbb{E}\Big( \int_0^T \lVert \theta_s \rVert^2\, {\rm d}s\, \Big) <\infty \Big\}, \end{align*} where $\widetilde{\mu}=\widetilde{\mu}^{\mathbb{P}}=\mu -\nu$ denotes the compensated measure of $\mu$ (under $\mathbb{P}$). Recall that for any predictable function $U$, $\mathbb{E} (|U|* \mu_T)=\mathbb{E} (|U|*\nu_T)$ by the definition of a compensator. If $(|U|^2*\mu)^{1/2}$ is locally integrable, then $U$ is integrable w.r.t.\ $\widetilde{\mu}$, and $U*\widetilde{\mu}$ is defined as the purely discontinuous local martingale with jump process $\big(\int_E U_t(e)\, \mu(\{ t\} ,{\rm d}e)\big)_t$ by \cite[Def.II.1.27]{JacodShiryaev03} noting that $\nu$ is absolutely continuous to $\lambda \otimes {\rm d}t$. For $Z\in \mathcal{L}^2(B)$ and $U\in \mathcal{L}^2(\widetilde{\mu})$ we recall that $Z\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B$ and $U*\widetilde{\mu}= (U*\widetilde{\mu}_t)_{0\le t\le T}$ with $U*\widetilde{\mu}_t =\int_0^t \int_E U_s(e)\, \widetilde{\mu}({\rm d}s,{\rm d}e)$ are square integrable martingales by \cite[Thm.II.1.33]{JacodShiryaev03}. For $Z,Z'\in \mathcal{L}^2(B)$ and $U,U'\in \mathcal{L}^2(\widetilde{\mu})$ we have for the predictable quadratic covariations that $\big\langle U*\widetilde{\mu},U'*\widetilde{\mu}\big\rangle_t=\int_0^t \mskip-5mu \int_E U_s(e)U_s'(e)\, \nu ({\rm d}s,{\rm d}e)$ by \cite[Thm.II.1.33]{JacodShiryaev03}, $\big\langle \int Z\, {\rm d}B, \int Z'\, {\rm d}B\rangle_t =\int_0^t Z_s^{T} Z_s'\, {\rm d}s$ and $\big\langle \int Z\, {\rm d}B, U*\widetilde{\mu}\big\rangle_t=0$ by \cite[Thm.I.4.2]{JacodShiryaev03}. \\ We denote the space of square integrable martingales by $\mathcal{M}^2$ and its norm by $\lVert \cdot \rVert_{\mathcal{M}^2}$ with $\lVert M\rVert_{\mathcal{M}^2}=\mathbb{E} (M_T^2)^{\sfrac{1}{2}}$. We recall \cite[Thm.10.9.4]{HeWangYan92} that the subspace of BMO($\mathbb{P}$)-martingales ${\rm BMO}(\mathbb{P} )$ contains any square integrable martingale $M$ with uniformly bounded jumps and bounded conditional expectations for increments of the quadratic variation process: \[ \sup\limits_{0\leq t\leq T} \left\lVert\mathbb{E} \big((M_T-M_t)^2\,|\,\mathcal{F}_t\big)\right\rVert_{L^\infty(\mathbb{P})} = \sup\limits_{0\leq t\leq T} \left\lVert\mathbb{E} \big(\langle M\rangle_T-\langle M\rangle_t\, |\,\mathcal{F}_t\big)\right\rVert_{L^\infty(\mathbb{P})} \le {\rm const} < \infty. \] We will assume that the continuous martingale $B$ and the compensated measure $\widetilde{\mu}$ of an integer-valued random measure $\mu$ (or $\widetilde{\mu}$ alone, see Example~\ref{example_WPRP}.1 and Corollary~\ref{cor:JBSDEZzero} with trivial $B=0$) jointly have the weak predictable representation property (weak PRP) w.r.t.\ the filtration $(\mathcal{F}_t)_{0\leq t\leq T}$, in that every square integrable martingale $M$ has a (unique) representation, i.e. \begin{equation} \label{WPRP} \text{for all} \:M\in {\cal{M}}^2 \;\text{there exists } Z,U \;\text{such that }\; M=M_0 +\int Z\, {\rm d}B+U*\widetilde{\mu}\,, \end{equation} with (unique) $Z \in\mathcal{L}^2(B)$ and $U\in \mathcal{L}^2(\widetilde{\mu})$. Let us note that in the literature \cite[III.\S4c]{JacodShiryaev03} or \cite[XIII.\S2]{HeWangYan92} the weak representation property is defined as a decomposition like $(\ref{WPRP})$ for any local martingale $M$ with integrands $Z$, $U$ being integrable in the sense of local martingales. Such clearly implies our formulation above. Indeed, for a (locally) square integrable martingale $M$ in such a decomposition both integrands must be at least locally square integrable and $\langle M\rangle= \int |Z|^2\,{\rm d}t+|U|^2*\nu$ by strong orthogonality of the stochastic integrals. Then $E[\langle M\rangle_T]<\infty$ implies that $Z$, $U$ are in the respective $\mathcal{L}^2$-spaces. We exemplify how (\ref{WPRP}) connects with a wide literature. \begin{example} \label{example_WPRP} The weak predictable representation property (\ref{WPRP}) holds in the cases below. Cases 1.-4.\ are well known from classical theory \cite{HeWangYan92} (for details cf.\ \cite[Example~2.1]{Becherer06}). \begin{enumerate}\item[1.] Let $X$ be a L\'evy process with $X_0=0$ and predictable characteristics $(\alpha ,\beta ,\nu )$ (under $\mathbb{P}$). Then the continuous martingale part $X^c$ (rescaled to a Brownian motion if $\beta\neq0$, or being trivial if $\beta=0$) and the compensated jump measure $\widetilde{\mu}^X=\mu^X-\nu$ of $X$ have the weak PRP w.r.t.\ the usual filtration $\mathbb{F}^{X}$ generated by $X$. An example for a L\'evy process of infinite activity is the Gamma process. One can add that weak PRP even holds in the sense of Thm~III.4.34 from \cite{JacodShiryaev03} for the more general class of PII-processes with independent increments. This class encompasses the more familiar L\'evy processes without requiring time-homogeneity or stochastic continuity. \item[2.] Assume that $B$ and $\widetilde{\mu}$ satisfy (\ref{WPRP}) under $\mathbb{P}$. Let $\mathbb{P}'$ be an equivalent probability measure with density process $Z$. Then the Brownian motion $\nolinebreak{B':=B-\int (Z_-)^{-1}\, {\rm d}\langle Z,B\rangle}$ and $\widetilde{\mu}':=\mu-\nu^{\mathbb{P}'}$ have the weak PRP (\ref{WPRP}) also w.r.t.\ $\mathbb{P}'$ under the same filtration. \item[3.] Let $B$ be a Brownian motion independent of a step process $X$ (in the sense of~\cite[Ch.\ 11]{HeWangYan92}). Then $B$ and $\widetilde{\mu}$, the compensated measure of the jump measure $\mu^X$ of $X$, have the weak PRP w.r.t.\ the usual filtration generated by $X$ and $B$. An example for a step process is a multivariate (non-explosive) point process, as appearing in \cite{CFJ16}. \item[4.] A (semi-)Markov chain $X$, possibly time-inhomogeneous, is a step process. Thus weak PRP (\ref{WPRP}) holds for a filtration generated by a Brownian motion and an independent Markov chain, relating later results to literature \cite{CohenElliott10,ConfortolaFuhrman14,BandiniC17} on BSDEs driven by compensated random measures of the respective pure-jump (semi-)Markov processes. Markov chains $X$ on countable state spaces can be chosen \cite{CohenElliott10} to take values in the set of unit vectors $\{e_i:i\in \mathbb{N}\}$ of the sequence space $\ell^2\subset \mathbb{R}^{\mathbb{N}}$, with jumps $\Delta X$ taking values $e_i-e_j$, $i,j\in \mathbb{N}$. \item[5.] The pure jump martingale $U *\widetilde{\mu}$ (for $U \in \mathcal{L}^2(\widetilde{\mu})$) may be written as a series of mutually orthogonal martingales. More precisely, assume that the compensator coincides with the product measure $\lambda \otimes {\rm d}t$, i.e.\ $\zeta=1$. Let $(u^n)_{n\in \mathbb{N}}$ be an orthonormal basis (ONB) of the separable Hilbert space $L^2(\lambda )$ with scalar product $\langle u,v\rangle :=\int_E u(e)v(e)\, \lambda ({\rm d}e)$. Let $U_t=\sum_{n\in \mathbb{N}} \langle U_t,u^n\rangle u^n$ be the basis expansion of $U_t$ for $U\in \mathcal{L}^2(\widetilde{\mu})$, $t\le T$. Then it holds (in ${\cal M}^2$) \begin{equation} \label{repformula} U*\widetilde{\mu}= \sum_{n\in \mathbb{N}} \int_0^{\cdot} \langle U_t,u^n\rangle \int_E u^n(e)\, \widetilde{\mu}({\rm d}t,{\rm d}e) =: \sum_{n\in \mathbb{N}} \int_0^{\cdot} \alpha^n_t \,{\rm d}L^n_t=\sum_{n\in \mathbb{N}} \alpha^n \stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} L^n, \end{equation} for $\alpha_t^n:=\langle U_t,u^n\rangle$ and $L^n:=u^n*\widetilde{\mu}$. Indeed, setting $F_t^n:=\sum_{k=1}^n \langle U_t,u^k\rangle u^k=\sum_{k=1}^n \alpha_t^k u^k$ one sees that $\|\sum_{k=1}^\infty |\alpha^k|^2\|_{L^1(\mathbb{P}\otimes {\rm d}t)} \le \lVert U\rVert_{\mathcal{L}^2(\widetilde{\mu})}^2 <\infty$. By dominated convergence one obtains as $n\to \infty$ \begin{equation*} \lVert F^n-U \rVert_{\mathcal{L}^2(\widetilde{\mu})}^2 = \mathbb{E} \Big( \int_0^T \mskip-10mu \int_E |F_t^n(e)-U_t(e)|^2\lambda ({\rm d}e)\,{\rm d}t\Big) = \mathbb{E} \Big( \int_0^T \sum_{k=n+1}^\infty |\alpha_t^k|^2\, {\rm d}t \Big) \rightarrow 0. \end{equation*} Isometry implies that the stochastic integrals $F^n*\widetilde{\mu}$ converge to $U *\widetilde{\mu}$ in ${\cal M}^2$, proving (\ref{repformula}). In particular, we see how the PRP $(\ref{WPRP})$ w.r.t.\ a random measure can be rewritten as series of ordinary stochastic integrals w.r.t.\ scalar-valued strongly orthogonal martingales $L^n$, which are in fact L\'evy processes with deterministic characteristics $(0,0,\int u^n(e)\, \lambda ({\rm d}e))$. In this sense, the general condition $(\ref{WPRP})$ links well with results on PRP and BSDEs for L\'evy processes in~\cite{NualartSchoutens00,NualartSchoutens01} who study a specific Teugels martingale basis consisting of compensated power jump processes for L\'evy processes which satisfy exponential moment conditions. For a systematic analysis of related PRP results, comprising general L\'evy processes, see \cite{DiTellaEngelbert13,DiTellaE15}. \item[6.] Previous arguments could extend to the general case with $\zeta \not\equiv 1$ in $(\ref{nuzetadensity})$. To this end, suppose $U^n$ to be in ${\cal L}^2(\widetilde{\mu})$ such that for all $t\le T$ the sequence $(U_t^n)_{n\in \mathbb{N}}$ is ONB of $L^2(\lambda_t)$ for ${\rm d}\lambda_t=\zeta_t {\rm d}\lambda$ with scalar product $\langle u,v \rangle_t :=\int_E u(e)v(e)\, \zeta (t,e)\lambda ({\rm d}e)$. Analogously to case 5.\ above, with $\alpha_t^n:=\langle U_t,U_t^n\rangle_t$ and $L^n:=U^n*\widetilde{\mu}$ one gets equalities of martingales (in ${\cal M}^2$) \begin{equation*} U*\widetilde{\mu} = \sum_{n\in \mathbb{N}} \int_0^{\cdot} \langle U_t,U_t^n\rangle_t \int_E U_t^n(e)\, \widetilde{\mu}({\rm d}t,{\rm d}e) =: \sum_{n\in \mathbb{N}} \alpha^n \stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} L^n\,. \end{equation*} \end{enumerate} \end{example} To proceed, we now define a solution of the Backward SDE with jumps to be a triple $(Y,Z,U)$ of processes in the space $\mathcal{S}^{p} \times \mathcal{L}^2(B) \times \mathcal{L}^2(\widetilde{\mu})$ for a suitable $p\in (1,\infty ]$ that satisfies \begin{equation} Y_t = \xi + \int_{t}^{T} f_s(Y_{s-},Z_s,U_s)\, {\rm d}s-\int_{t}^{T}Z_s\, {\rm d}B_s - \int_{t}^{T}\mskip-10mu \int_{E} U_s(e)\, \widetilde{\mu}({\rm d}s,{\rm d}e),\quad 0\leq t\leq T, \label{BSDE} \end{equation} for given data $(\xi ,f)$, consisting of a $\mathcal{F}_T$-measurable random variable $\xi$ and a generator function $f_t(y,z,u)=f(\omega ,t,y,z,u)$. The values $p$ will be specified below in the respective results, although a particular focus will be on bounded BSDE solutions (i.e.\ $p=\infty$). Because we permit $\nu$ to be time-inhomogeneous with a bounded but possibly non-constant density $\zeta$ in (\ref{nuzetadensity}), it does not hold in general that $U_t$ takes values a.e.\ in one space $L^2(\lambda)$ for $U\in \mathcal{L}^2(\widetilde{\mu})$. This requires some extra consideration about the domain of definition and measurability of $f$, as the generator function $f$ needs to be defined for $u$-arguments from a suitable domain, which cannot be some fixed $L^2$-space in general (and needs to be larger than $L^2(\lambda)$), as integrability of $u=U_t(\omega,\cdot)$ over $e\in E$ may vary with $(\omega,t)$. On suitable larger domains, one typically may have to admit for $f$ to attain non-finite values. To this end, let us denote by $L^0(\mathcal{B}(E),\lambda )$ the space of all $\mathcal{B}(E)$-measurable functions with the topology of convergence in measure and define \begin{equation}\label{utnorm} |u-u'|_t:=\Big( \int_E |u(e)-u'(e)|^2\, \zeta (t,e)\, \lambda ({\rm d}e) \Big)^{\frac{1}{2}}, \end{equation} for functions $u,u'$ in $L^0(\mathcal{B}(E),\lambda )$. Terminal conditions $\xi$ for BSDE considered in this paper will be taken to be square integrable $\xi \in L^{2}(\mathcal{F}_T)$ and often even as bounded $\nolinebreak{\xi \in L^{\infty}(\mathcal{F}_T)}$. Generator functions $f: \Omega \times [0,T]\times \mathbb{R} \times \mathbb{R}^d \times L^0(\mathcal{B}(E),\lambda) \rightarrow \overline{\mathbb{R}}$ are always taken to be $\mathcal{P}\otimes \mathcal{B} (\mathbb{R}^{d+1})\otimes \mathcal{B} (L^0(\mathcal{B} (E),\lambda ))$-measurable. Main Theorems $\ref{comparetheo}$ and $\ref{infinitetheo}$ are derived for families of generators having the form \begin{align} f_t(y,z,u):= \widehat{f}_t(y,z) + \int_A g_t(y,z,u(e),e) \zeta (t,e) \lambda ({\rm d}e)\, &\quad\mbox{(where finitely defined)} \label{generator1} \end{align} and $f_t(y,z,u):=\infty$ elsewhere, or more specially (for a $g$-component not depending on $y,z$) \begin{align} f_t(y,z,u):= \widehat{f}_t(y,z) + \int_A g_t(u(e),e)\, \zeta (t,e)\, \lambda ({\rm d}e)\,& \quad \mbox{(where finitely defined)} \label{generator} \end{align} and $f_t(y,z,u):=\infty$ elsewhere, for a $\mathcal{B}(E)$-measurable set $A$ and component functions $\widehat{f}$, $g$ where $\nolinebreak{\widehat{f}: \Omega \times [0,T] \times \mathbb{R}^{1+d} \rightarrow {\mathbb{R}}}$ is $\mathcal{P}\otimes \mathcal{B}(\mathbb{R}^{d+1})$-measurable and $\nolinebreak{g: \Omega \times [0,T]\times \mathbb{R}^{1+d} \times \mathbb{R} \times E \rightarrow \mathbb{R}}$ is $\mathcal{P}\otimes \mathcal{B}(\mathbb{R}^{d+2}) \otimes \mathcal{B}(E)$-measurable. Clearly statements for generators of the form $(\ref{generator1})$ are also true for those of the (more particular) form $(\ref{generator})$. (In)finite activity relates to generators with $\lambda (A)<\infty$ (respectively $\lambda (A)=\infty$). A simple but useful technical Lemma clarifies how we can (and always will) choose a bounded representative for $U$ in a BSDE solution $(Y,Z,U)$ with bounded $Y$. \begin{lemma} \label{basicprops2} Let $(Y,Z,U)\in \mathcal{S}^{\infty} \times \mathcal{L}^2(B)\times \mathcal{L}^2(\widetilde{\mu})$ be a solution of some JBSDE $(\ref{BSDE})$ with data $(\xi, f)$. Then there exists a representative $U'$ of $U$, bounded pointwise by $2|Y|_{\infty}$, such that $U'=U$ in $\mathcal{L}^2(\widetilde{\mu})$ and $\mathbb{P}\otimes {\rm d}t$-a-e., and $(Y,Z,U')$ solves the BSDE $(\xi ,f)$. \end{lemma} \begin{proof} We reproduce a brief argument sufficient to our general setting, similarly to e.g.\ \cite[Cor.1]{Morlais09} or \cite[proof of Thm.3.5]{Becherer06}. Use that $\mu(\omega,{\rm d}t,{\rm d}e) = \sum_{s\ge 0} \mathds{1}_{D}(\omega,s)\,\updelta_{(s,\beta_s(\omega))}({\rm d}t,{\rm d}e)$ for an optional $E$-valued process $\beta$ and a thin set $D$, since $\mu$ is an integer-valued random measure \cite[II.\S1b]{JacodShiryaev03}. Clearly the jump $\Delta Y_t(\omega)=(Y_t-Y_{t-})(\omega)=\int_E U_t(\omega,e)\,\mu(\omega;\{t\},{\rm d}e)$ is equal to $\mathds{1}_D(\omega,t)U_t(\omega ,\beta_t(\omega ))$ and bounded by $2|Y|_{\infty}$. For $U'_t(\omega ,e):=U_t(\omega ,e)\mathds{1}_D(\omega ,t)\mathds{1}_{\{\beta_t\}}(e)$, we have $U_t(\omega ,\beta_t(\omega ))=U'_t(\omega ,\beta_t(\omega ))$ on $D$, and $\nolinebreak{\sum_{s\ge 0} \mathds{1}_D(\omega,s)|U_s-U'_s|^2(\omega ,\beta_s(\omega))=0}$ implies $E[ |U-U'|^2*\nu_T]= E[|U-U'|^2*\mu_T]=0$. Since $U=U'$ in $\mathcal{L}^2(\widetilde{\mu})$ and $U_t=U'_t$ in $L^0(\mathcal{B}(E),\lambda )$, the BSDE is solved by $(Y,Z,U')$. \end{proof} Under these conditions, we can and will take $U$ to be bounded by twice the norm of $Y$; Defining $|U|_{\infty}:=\mathop{\mbox{ess sup}}_{(\omega,t,e)} |U_t(e)|$ for $U\in \mathcal{L}^2(\widetilde{\mu})$ yields $|U|_{\infty}\leq 2|Y|_{\infty}$ for any bounded BSDE solution $(Y,Z,U)$. The next lemma notes that the stochastic integrals of bounded JBSDE solutions are BMO-martingales when some truncated generator function is bounded from above (below) by $+(-)\langle M\rangle$ for a BMO-martingale $M$; Moreover, their BMO-norms depend only on $|Y|_{\infty}$, the BMO-norm of $M$ and the horizon $T$. See \cite[Lem.1.3]{KentiaPhD} for details of the proof, and note that BMO-properties of integrals of (bounded) BSDEs are of course a well-studied topic, cf.\ \cite{ManiaChik14} and references therein. \begin{lemma} \label{BMOproperty} Let $(Y,Z,U)\in\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ be a bounded solution to the BSDE $(\xi ,f)$. Assume there is $M\in{\rm BMO}(\mathbb{P} )$ such that $\nolinebreak{\int_t^T f_s(Y_{s-},Z_s,U_s)\, {\rm d}s\leq \langle M\rangle_T-\langle M\rangle_t}$ or $-\int_t^T f_s(Y_{s-},Z_s,U_s)\, {\rm d}s$ $\leq \langle M\rangle_T-\langle M\rangle_t$. Then $\int Z\, {\rm d}B$ and $U*\widetilde{\mu}$ are {\rm BMO}-martingales and their {\rm BMO}-norms (resp.\ $L^2$-norms) are bounded by a constant depending on $|Y|_{\infty}$ and $\lVert M\rVert_{{\rm BMO}(\mathbb{P} )}$ (resp. on $|Y|_{\infty}$, $\lVert M\rVert_{\mathcal{M}^2}$). \end{lemma} \section{Comparison theorems and a-priori-estimates}\label{sec:comp} The next proposition sets the stage for the main comparison Theorem~\ref{comparetheo} and the a-priori-$L^\infty$-estimate of Proposition~\ref{estimatetheo} for this section. We follow the line of proof of the seminal Thm.~2.5 from \cite{Royer06}, with slight generalizations that are needed in the sequel. Just some details for the change of measure argument are elaborated slightly differently, measurable dependencies of the random field $\gamma$ are specified in more detail, and less is assumed on the generators. Instead of imposing specific conditions on the generators which imply existence of solutions, we only insist that we have solutions and impose a generalized $({\rm \bf A}_{\bm \gamma})$-condition as explained in Example~\ref{exagamma}.1. \begin{proposition} \label{comparegeneral} Let $(Y^i,Z^i,U^i)\in \mathcal{S}^{\infty}\times \mathcal{L}^2(B)\times \mathcal{L}^2(\widetilde{\mu})$ be solutions to the BSDE $(\ref{BSDE})$ for data $(\xi_i, f_i)$, $i=1,2$. Assume that $f_2$ is Lipschitz continuous w.r.t.\ $y$ and $z$. Let $\gamma :\Omega \times [0,T]\times \mathbb{R}^{d+3} \times E\rightarrow [-1,\infty )$ with $(\omega ,t,y,z,u,u',e)\mapsto \gamma_t^{y,z,u,u'}(e)$ be a $\mathcal{P}\otimes \mathcal{B} (\mathbb{R}^{d+3})\otimes \mathcal{B} (E)$-measurable function such that for $\overline{\gamma} :=\gamma^{Y_{-}^2,Z^2,U^1,U^2}$ it holds \begin{equation}\label{gamma**} \begin{split} &f_2(t,Y_{t-}^2,Z_t^2,U_t^1) - f_2(t,Y_{t-}^2,Z_t^2,U_t^2) \leq \int_E \overline{\gamma}_t(e)\, (U_t^1(e)-U_t^2(e))\, \zeta (t,e)\, \lambda ({\rm d}e),\ \mathbb{P}\otimes {\rm d}t\text{-a.e.}\\ &\mbox{and the stochastic exponential $\mathcal{E}(\int \beta\, {\rm d}B+\overline{\gamma}*\widetilde{\mu})$ is a martingale for $\beta$ from $(\ref{linearization})$.} \end{split} \end{equation} Then a comparison result holds, that is $\xi_1\leq \xi_2$ and $f_1(t,Y_{t-}^1,Z_t^1,U_t^1)\leq f_2(t,Y_{t-}^1,Z_t^1,U_t^1)$ together imply $Y_t^1\leq Y_t^2$ for all $t\leq T$. \end{proposition} \begin{proof} We define $\widehat{\xi}:=\xi_1-\xi_2$, $\widehat{Y}:=Y^1-Y^2$, $\widehat{Z}:=Z^1-Z^2$ and $\widehat{U}:=U^1-U^2$. The processes \begin{align} \label{linearization} \alpha_s & := \mathds{1}_{\{Y_{s-}^1\neq Y_{s-}^2\}} \frac{f_2(s,Y_{s-}^1,Z_s^1,U_s^1)-f_2(s,Y_{s-}^2,Z_s^1,U_s^1)}{(Y_{s-}^1-Y_{s-}^2)}\,, \nonumber \\ \beta_s &:= \mathds{1}_{\{ Z_s^1\neq Z_s^2 \}} \frac{f_2(s,Y_{s-}^2,Z_s^1,U_s^1)-f_2(s,Y_{s-}^2,Z_s^2,U_s^1)}{\lVert Z_s^1-Z_s^2 \rVert^2} (Z_s^1-Z_s^2) \end{align} and $R_t :=\exp (\int_0^t \alpha_s\, {\rm d}s)$ are bounded due to the Lipschitz assumption on $f_2$. As in \cite{Royer06}, applying It\^o's formula to $R\widehat{Y}$ between $\tau\wedge t$ and $\tau\wedge T$ for some stopping times $\tau$ yields \begin{align*} (R\widehat{Y})_{\tau\wedge t} &= (R\widehat{Y})_{\tau\wedge T}+\int_{\tau\wedge t}^{\tau\wedge T} R_s\big(f_1(s,Y_{s-}^1,Z_s^1,U_s^1)-f_2(s,Y_{s-}^2,Z_s^2,U_s^2)\big)\, {\rm d}s\\ &\quad -\int_{\tau\wedge t}^{\tau\wedge T} R_s\widehat{Z}_s\, {\rm d}B_s-\int_{\tau\wedge t}^{\tau\wedge T} \int_E R_s\widehat{U}_s(e)\, \widetilde{\mu}({\rm d}s,{\rm d}e)-\int_{\tau\wedge t}^{\tau\wedge T} R_s\alpha_s\widehat{Y}_{s-}\, {\rm d}s. \end{align*} Set $M:=\int R\widehat{Z}\, {\rm d}B+(R\widehat{U})*\widetilde{\mu}$ and $N:=\int \beta\, {\rm d}B+\overline{\gamma} *\widetilde{\mu}$. Then ${\rm d}\mathbb{Q} :=\mathcal{E} (N)_T{\rm d}\mathbb{P}$ defines an absolutely continuous probability by the martingale property of the stochastic exponential $\mathcal{E}(N)\ge 0$; cf.\ \cite[Lem.9.40]{HeWangYan92}. By Girsanov $L:=M-\langle M,N\rangle$ is a local $\mathbb{Q}$-martingale, and the inequality \begin{align}\nonumber \hspace{-0.2cm}f_1(s,Y_{s-}^1,Z_s^1,U_s^1)-f_2(s,Y_{s-}^2,Z_s^2,U_s^2) &\leq \alpha_s \widehat{Y}_{s-}+\beta_s \widehat{Z}_s+\int_E \overline{\gamma}_s(e)\widehat{U}_s(e)\,\zeta_s (e)\,\lambda ({\rm d}e)\, \mathbb{P} \otimes {\rm d}s\text{-a.e.}\\ \text{implies} \quad \label{esti} (R\widehat{Y})_{\tau\wedge t}&\leq (R\widehat{Y})_{\tau\wedge T}-(L_T^{\tau}-L_t^{\tau}). \end{align} Localizing $L$ along a sequence of stopping times $\tau_n\uparrow \infty$ and taking conditional expectations, we obtain $\nolinebreak{\mathbb{E}_{\mathbb{Q}} \big((R\widehat{Y})_{t\wedge \tau^n}\,\big\lvert\,\mathcal{F}_t\big)\leq \mathbb{E}_{\mathbb{Q}} \big((R\widehat{Y})_{\tau^n\wedge T}\,\big\lvert\,\mathcal{F}_t \big)}$ for each $n\in \mathbb{N}$. Dominated convergence yields the estimate $\nolinebreak{R_t\widehat{Y}_t\leq \mathbb{E}_{\mathbb{Q}} \big(R_T\widehat{\xi}\,\big\lvert\,\mathcal{F}_t\big)\leq 0}$ and thus $Y_t^1\leq Y_t^2$. \end{proof} \begin{remark} \begin{enumerate}\item[1.] Switching roles of $f_1$ and $f_2$, one gets that if $f_1$ is Lipschitz in $y$,$z$ and satisfies $(\ref{gamma**})$ instead of $f_2$, then $\xi_1\leq \xi_2$ and $f_1(t,Y_{t-}^2,Z_t^2,U_t^2)\leq f_2(t,Y_{t-}^2,Z_t^2,U_t^2)$ imply $Y_t^1\leq Y_t^2$. \item[2.] The result of Proposition \ref{comparegeneral} remains valid (with a similar proof) if one requires that the $Y$-components of JBSDE solutions to compare are in $\mathcal{S}^2$ instead of $\mathcal{S}^\infty$, and the stochastic exponential $\mathcal{E}(\beta\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B+\overline{\gamma}\ast\widetilde{\mu})$ is in $\mathcal{S}^2$. However, as it is stated, Proposition \ref{comparegeneral} is exactly what we will need to apply in the sequel to derive, e.g., Proposition~$\ref{finitetheo}$ and Theorem~$\ref{infinitetheo}$. \end{enumerate} \end{remark} \begin{example} \label{exmartingale} Sufficient conditions for $\mathcal{E} (\overline{\gamma}*\widetilde{\mu})$ to be a martingale are, for instance, \begin{enumerate} \item \label{exmartingale1} $\Delta (\overline{\gamma}*\widetilde{\mu})>-1$ and $\mathbb{E} \big(\exp (\langle \overline{\gamma}*\widetilde{\mu} \rangle_T )\big) =\mathbb{E} \big( \exp \big( \int_0^T\int_E |\overline{\gamma}_s(e)|^2\, \nu ({\rm d}s,{\rm d}e)\big) \big)<\infty$; see~\cite[Thm.9]{ProtterShimbo08}. This holds i.p.\ if $\int_E |\overline{\gamma}_s(e)|^2\, \zeta (s,e)\, \lambda ({\rm d}e)<const.<\infty$ $\mathbb{P} \otimes {\rm d}s$-a.e.\ and $\overline{\gamma}>-1$. \item \label{exmartingale2} $\Delta (\overline{\gamma}*\widetilde{\mu})\geq -1+\delta$ for $\delta >0$ and $\overline{\gamma}*\widetilde{\mu}$ is a ${\rm BMO}(\mathbb{P} )$-martingale due to Kazamaki \cite{Kazamaki79}. \item \label{exmartingale3} $\Delta (\overline{\gamma}*\widetilde{\mu})\geq -1$ and $\overline{\gamma}*\widetilde{\mu}$ is a uniformly integrable martingale and $\mathbb{E} \big(\exp (\langle \overline{\gamma}*\widetilde{\mu} \rangle_T )\big)<\infty$; see~\cite[Thm.I.8]{LepingleMemin78}. Such a condition is satisfied when $\overline{\gamma}$ is bounded and $\lvert \overline{\gamma}\rvert\le \psi,\ \mathbb{P}\otimes {\rm d}t\otimes \lambda\text{-a.e.}$ for a function $\psi\in L^2(\lambda)$ and $\zeta\equiv 1$. The latter is what is required for instance in the comparison Thm.4.2 of \cite{QuenezSulem13}. \end{enumerate} Note that under above conditions, also the stochastic exponential $\mathcal{E} (\int \beta {\rm d}B+\overline{\gamma}*\widetilde{\mu})$ for $\beta$ bounded and predictable is a martingale, as it is easily seen by Novikov's criterion. \end{example} In the statement of Proposition \ref{comparegeneral}, the dependence of the process $\overline{\gamma}$ on the BSDE solutions is not needed for the proof as the same result holds if $\overline{\gamma}$ is just a predictable process such that the estimate on the generator $f_2$ and the martingale property (\ref{gamma**}) hold. The further functional dependence is needed for the sequel, as required in the following \begin{definition} \label{agammadef} We say that an $\overline{\mathbb{R}}$-valued generator function $f$ satisfies condition ${\bf ({\rm \bf A}_{\bm \gamma})}$ if there is a $\mathcal{P}\otimes \mathcal{B} (\mathbb{R}^{d+3})\otimes \mathcal{B} (E)$-measurable function $\gamma :\Omega \times [0,T]\times \mathbb{R}^{d+3} \times E\rightarrow (-1,\infty )$ given by $(\omega ,t,y,z,u,u',e)\mapsto \gamma_t^{y,z,u,u'}(e)$ such that for all $(Y,Z,U,U')\in \mathcal{S}^{\infty}\times \mathcal{L}^2(B)\times (\mathcal{L}^2(\widetilde{\mu}))^2$ with $|U|_{\infty}< \infty$, $|U'|_{\infty}<\infty$ it holds for $\overline{\gamma}:=\gamma^{Y_-,Z,U,U'}$ \begin{equation} \label{gamma*} \begin{split} &f_t(Y_{t-},Z_t,U_t)\! -\! f_t(Y_{t-},Z_t,U'_t)\! \leq\! \int_E\! \overline{\gamma}_t(e)(U_t(e)-U'_t(e)) \zeta (t,e) \lambda ({\rm d}e),\, \mathbb{P}\otimes {\rm d}t\text{-a.e.}\\ &\mbox{and $\mathcal{E}(\int \beta {\rm d}B+\overline{\gamma}*\widetilde{\mu})$ is a martingale for every bounded and predictable $\beta$.} \end{split} \end{equation} We will say that $f$ satisfies condition $({\rm \bf A}'_{\bm \gamma})$ if the above holds for all bounded $U$ and $U'$ with additionally $U*\widetilde{\mu}$ and $U'*\widetilde{\mu}$ in ${\rm BMO}(\mathbb{P} )$. \end{definition} Clearly, existence and applicability of a suitable comparison result for solutions to JBSDEs implies their uniqueness. In other words, if there exists a bounded solution for a generator being Lipschitz w.r.t.\ $y$ and $z$ which satisfies $({\rm \bf A}_{\bm \gamma})$ or $({\rm \bf A}'_{\bm \gamma})$, we obtain that such a solution is unique. \begin{example} \label{exgamma} The natural candidate for $\gamma$ for generators $f$ of the form $(\ref{generator1})$ is given by \begin{align} \gamma_s^{y,z,u,u'}(e)=\frac{g_s(y,z,u,e)-g_s(y,z,u',e)}{u-u'}\ \mathds{1}_A(e)\,\mathds{1}_{\{u\neq u'\}}, \label{gammaform} \end{align} which is $\mathcal{P}\otimes \mathcal{B} (\mathbb{R}^{d+3} )\otimes \mathcal{B} (E)$-measurable since $g$ is. Assuming absolute continuity of $g$ in $u$, we can express $\gamma_s^{y,z,u,u'}(e)= \int_0^1 \frac{\partialup}{\partialup u}g_s(y,z,tu+(1-t)u',e)\, {\rm d}t\, \mathds{1}_A(e)$, by noting that \begin{equation*} (u-u')\int_0^1 \frac{\partialup}{{\partialup} u}g_s(y,z,tu+(1-t)u',e)\, {\rm d}t\, \mathds{1}_A(e) = \int_0^1 \frac{\partialup}{\partialup t}\left[(g_s(y,z,tu+(1-t)u',e))\right]\, {\rm d}t\, \mathds{1}_A(e). \end{equation*} For generators of type $(\ref{generator})$ the $\gamma$ simply is \( \gamma_s^{y,z,u,u'}(e)=\int_0^1 \frac{\partialup}{\partialup u}g_s(tu+(1-t)u',e)\, {\rm d}t\, \mathds{1}_A(e)\,. \) \end{example} \begin{definition} \label{defAfininfi} We say that a generator $f$ satisfies condition $({\rm \bf A}_{\rm \bf fin})$ or $({\rm \bf A}_{\rm \bf infi})$ (on a set $D$) if \begin{enumerate} \item $({\rm \bf A}_{\rm \bf fin})$: $f$ is of the form $(\ref{generator1})$ with $\lambda (A)<\infty$, is Lipschitz continuous w.r.t.\ $y$ and $z$ uniformly in $(t,\omega,u)$, and the map $u \mapsto g(t,y,z,u,e)$ is absolutely continuous (in $u$) for all $(\omega ,t,y,z,e)$ (in $D\subseteq \Omega \times [0,T]\times \mathbb{R} \times \mathbb{R}^d \times E$), i.e.\ $g(t,y,z,u,e) = g(0)+\int_0^ug'(t,y,z,x,e){\rm d}x$, with density function $g'$ being strictly greater than $-1$ (on $D$) and locally bounded (in u) from above, uniformly in $(\omega ,t,y,z,e)$. \item $({\rm \bf A}_{\rm \bf infi})$: $f$ is of the form $(\ref{generator})$, is Lipschitz continuous w.r.t.\ $y$ and $z$ uniformly in $(t,\omega,u)$, and the map $u \mapsto g_t(u,e)$ is absolutely continuous (in $u$) for all $(\omega ,t,e)$ (in $D$), i.e.\ $g(t,u,e) = g(0)+\int_0^ug'(t,x,e){\rm d}x$, with density function $g'$ being such that for all $c\in(0,\infty)$ there exists $K(c)\in\mathbb{R}$ and $\delta(c)\in(0,1)$ with $-1+\delta(c)\le g'(x)$ and $\lvert g'(x)\rvert\le K(c)\lvert x\rvert$ for all $x$ with $\lvert x\rvert \le c.$ \end{enumerate} \end{definition} \begin{remark} Note that under condition $({\rm \bf A}_{\rm \bf infi})$ the density function $g'$ is necessarily locally bounded, in particular with $\lvert g'(x)\rvert\le K(c)c=:\bar{K}(c)<\infty$ for all $x\in[-c,c]$. \end{remark} \begin{example} Sufficient conditions for condition $({\rm \bf A}_{\bm \gamma})$ and $({\rm \bf A}'_{\bm \gamma})$ are \label{exagamma} \begin{enumerate}\item[1.] $\gamma$ is a $\mathcal{P}\otimes \mathcal{B}(\mathbb{R}^{d+3})\otimes \mathcal{B}(E)$-measurable function satisfying the inequality in $(\ref{gamma*})$ and \[ C_1(1\wedge |e|)\leq \gamma_t^{y,z,u,u'}(e)\leq C_2(1\wedge |e|) \] on $E=\mathbb{R}^l\setminus\{ 0\}$ ($l\in\mathbb{N}$), for some $C_1\in (-1,0]$ and $C_2>0$. In this case $\exp (\langle \int \beta {\rm d}B+\overline{\gamma} *\widetilde{\mu} \rangle_T )$ is clearly bounded and the jumps of $\int \beta {\rm d}B+\overline{\gamma} *\widetilde{\mu}$ are bigger than $-1$. Hence $\mathcal{E}\left(\int \beta {\rm d}B+\overline{\gamma} *\widetilde{\mu}\right)$ is a positive martingale \cite[Thm.9]{ProtterShimbo08}. Thus Definition~\ref{agammadef} generalizes the original $({\rm \bf A}_{\bm \gamma})$-condition introduced by \cite{Royer06} for Poisson random measures. \item[2.] $({\rm \bf A}_{\rm \bf fin})$ is sufficient for $({\rm \bf A}_{\bm \gamma})$. This follows from Example~\ref{exmartingale}.\ref{exmartingale1}, $(\ref{gammaform})$ and $\lambda (A)<\infty$. \item[3.] $({\rm \bf A}_{\rm \bf infi})$ is sufficient for $({\rm \bf A}'_{\bm \gamma})$. To see this, let $u,u'$ be bounded by $c$ and $\gamma$ be the natural candidate in Example \ref{exgamma}. Then $|\gamma_s^{y,z,u,u'}(e)|\leq \int_{u'}^u|g'(x)|{\rm d}x/(u-u')\le K(c)(|u|+|u'|)$. Hence $\int \beta {\rm d}B+\overline{\gamma}*\widetilde{\mu}$ is a BMO-martingale by the BMO-property of $U*\widetilde{\mu}$ and $U'*\widetilde{\mu}$ with some lower bound $-1+\delta$ for its jumps. And $\mathcal{E}(\int \beta {\rm d}B+\overline{\gamma}*\widetilde{\mu})$ is a martingale by part~\ref{exmartingale2} of Example~$\ref{exmartingale}$. \item[4.] Condition $({\rm \bf A}_{\rm \bf fin})$ above is satisfied if, e.g., $f$ is of the form $(\ref{generator1})$ with $\lambda (A)<\infty$, is Lipschitz continuous w.r.t.\ $y$ and $z$, and the map $u \mapsto g(t,y,z,u,e)$ is continuously differentiable for all $(\omega ,t,y,z,e)$ (in $D$) such that the derivative is strictly greater than $-1$ (on $D\subseteq \Omega \times [0,T]\times \mathbb{R} \times \mathbb{R}^d \times E$) and locally bounded (in $u$) from above, uniformly in $(\omega ,t,y,z,e)$. \item[5.] Condition $({\rm \bf A}_{\rm \bf infi})$ is valid if for instance $f$ is of the form $(\ref{generator})$, is Lipschitz continuous w.r.t.\ $y$ and $z$, and the map $u \mapsto g_t(u,e)$ is twice continuously differentiable for all $(\omega ,t,e)$ with the derivatives being locally bounded uniformly in $(\omega ,t,e)$, the first derivative being (locally) bounded away from $-1$ with a lower bound $-1+\delta$ for some $\delta >0$, and $\frac{\partialup g}{\partialup u}(t,0,e)\equiv 0$. \end{enumerate} \end{example} As an application of the above, we can now provide simple conditions for comparison in terms of concrete properties of the generator function, which are easier to verify than the more general but abstract conditions on the existence of a suitable function $\gamma$ as in Proposition~\ref{comparegeneral} or the general conditions by \cite{CohenElliott10}. Note that no convexity is required in the $z$ or $u$ argument of the generator. The result will be applied later to prove existence and uniqueness of JBSDE solutions. \begin{theorem}[Comparison Theorem] \label{comparetheo} A comparison result between bounded BSDE solutions in the sense of Proposition~\ref{comparegeneral} holds true in each of the following cases: \begin{enumerate} \item \emph{(finite activity)} $f_2$ satisfies $({\rm \bf A}_{\rm \bf fin})$. \item \emph{(infinite activity)} $f_2$ satisfies $({\rm \bf A}_{\rm \bf infi})$ and $U^1*\widetilde{\mu}$ and $U^2*\widetilde{\mu}$ are {\rm BMO}($\mathbb{P}$)-martingales for the corresponding JBSDE solutions $(Y^1,Z^1,U^1)$ and $(Y^2,Z^2,U^2)$. \end{enumerate} \end{theorem} \begin{proof} This follows directly from Proposition~\ref{comparegeneral} and Example~\ref{exagamma}, noting that representation $(\ref{gammaform})$ in connection with condition $({\rm \bf A}_{\rm \bf fin})$ resp. $({\rm \bf A}_{\rm \bf infi})$ meets the sufficient conditions in Example~\ref{exmartingale}. \end{proof} Unlike classical a-priori estimates that offer some $L^2$-norm estimates for the BSDE solution in terms of the data, the next result gives a simple $L^{\infty}$-estimate for the $Y$-component of the solution. Such will be useful for the derivation of BSDE solution bounds and for truncation arguments. \begin{proposition}\label{estimategeneral} Let $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ be a solution to the BSDE $(\xi ,f)$ with $\xi \in L^{\infty}(\mathcal{F}_T)$, $f$ be Lipschitz continuous w.r.t.\ $(y,z)$ with Lipschitz constant $K_f^{y,z}$ and satisfying $({\rm \bf A}_{\bm \gamma})$ with $f_.(0,0,0)$ bounded. Then $|Y_t|\leq \exp \big(K_f^{y,z}(T-t)\big)\big(|\xi |_{\infty}+(T-t)|f_.(0,0,0)|_{\infty}\big)$ for $t\leq T$. \end{proposition} \begin{proof} Set $(Y^1,Z^1,U^1)=(Y,Z,U)$, $(\xi^1,f^1)=(\xi ,f)$, $(Y^2,Z^2,U^2)=(0,0,0)$ and $(\xi^2,f^2)=(0,f)$. Then following the proof of Proposition \ref{comparegeneral}, equation ($\ref{esti}$) becomes \[ (RY)_{\tau\wedge t} \leq (RY)_{\tau\wedge T}+\int_{\tau\wedge t}^{\tau\wedge T} R_sf_s(0,0,0)\, {\rm d}s-(L_T^{\tau}-L_t^{\tau}), \quad t\in [0,T], \] for all stopping times $\tau $ where $L:=M-\langle M,N\rangle$ is in $\mathcal{M}_{\rm loc}(\mathbb{Q} )$, $M:=\int RZ\, {\rm d}B+(RU)*\widetilde{\mu}$ is in $\mathcal{M}^2$, $N:=\int \beta\, {\rm d}B+\overline{\gamma}*\widetilde{\mu}$ with $\overline{\gamma}:=\gamma^{0,0,U,0}$ and the probability measure $\mathbb{Q}\approx \mathbb{P}$ is given by ${\rm d}\mathbb{Q} :=\mathcal{E} (N)_T{\rm d}\mathbb{P}$. Localizing $L$ along some sequence $\tau^n\uparrow \infty$ of stopping times yields $\mathbb{E}_{\mathbb{Q}}\big((RY)_{\tau^n\wedge t}\,\big\lvert\,\mathcal{F}_t\big )\leq \mathbb{E}_{\mathbb{Q}}\big((RY)_{\tau^n\wedge T}+\int_{\tau\wedge t}^{\tau\wedge T} R_sf_s(0,0,0)\, {\rm d}s\,\big\lvert\,\mathcal{F}_t\big)$. By dominated convergence, we conclude that $\mathbb{P}$-a.e \[ Y_t \leq \mathbb{E}_{\mathbb{Q}}\Big( \frac{R_T}{R_t}\xi +\int_t^T \frac{R_s}{R_t}f_s(0,0,0)\, {\rm d}s\, \Big|\, \mathcal{F}_t\Big) \leq {\rm e}^{K_f^{y,z}(T-t)}\big(|\xi |_{\infty}+(T-t)|f_\cdot(0,0,0)|_{\infty}\big). \] Analogously, if we define $\overline{N}:=\int \beta\, {\rm d}B+\overline{\widetilde{\gamma}}*\widetilde{\mu}$ with $\overline{\widetilde{\gamma}}:=\gamma^{0,0,0,U}$, and $\overline{\mathbb{Q}}$ equivalent to $\mathbb{P}$ via ${\rm d}\overline{\mathbb{Q}}:=\mathcal{E} (\overline{N})_T{\rm d}\mathbb{P}$, we deduce that $\overline{L}:=M-\langle M,\overline{N}\rangle$ is in $\mathcal{M}_{\rm loc}(\overline{\mathbb{Q}})$ and \[ (RY)_{\tau\wedge t} \geq (RY)_{\tau\wedge T}+\int_{\tau\wedge t}^{\tau\wedge T} R_sf_s(0,0,0)\, {\rm d}s-(\overline{L}_T^{\tau}-\overline{L}_t^{\tau}), \quad t\in [0,T], \] for all stopping times $\tau$. This yields the required lower bound. \end{proof} Again, we can specify explicit conditions on the generator function that are sufficient to ensure the more abstract assumptions of the previous result. \begin{proposition} \label{estimatetheo} Let $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ be a solution to the BSDE $(\xi ,f)$ with $\xi$ in $L^{\infty}(\mathcal{F}_T)$, $f$ being Lipschitz continuous w.r.t.\ $(y,z)$ with Lipschitz constant $K_f^{y,z}$ such that $f_.(0,0,0)$ is bounded. Assume that one of the following conditions holds: \begin{enumerate} \item \emph{(finite activity)} $f$ satisfies $({\rm \bf A}_{\rm \bf fin})$. \item \emph{(infinite activity)} $f$ satisfies $({\rm \bf A}_{\rm \bf infi})$ and $U*\widetilde{\mu}$ is a {\rm BMO}($\mathbb{P}$)-martingale. \end{enumerate} Then $|Y_t|\leq \exp \big(K_f^{y,z}(T-t)\big)\big(|\xi |_{\infty}+(T-t)|f_s(0,0,0)|_{\infty}\big)$ holds for all $t\leq T$, in particular $|Y|_{\infty}\leq \exp \big(K_f^{y,z}T\big)\big(|\xi |_{\infty}+T|f_s(0,0,0)|_{\infty}\big)$. \end{proposition} \begin{proof} This follows directly from Proposition~\ref{estimategeneral} and Example~\ref{exagamma}, since $f$ satisfies condition $({\rm \bf A}_{\bm \gamma})$ (resp. $({\rm \bf A}'_{\bm \gamma})$) using equation~(\ref{gammaform}). \end{proof} In the last part of this section we apply our comparison theorem for more concrete generators. To this end, we consider a generator $f$ being truncated at bounds $a<b$ (depending on time only) as \begin{align} \label{tildef} \widetilde{f}_t(y,z,u):=f_t\big(\kappa (t,y),\,z,\,\kappa (t,y+u)-\kappa (t,y)\big), \end{align} with $\kappa (t,y):=\big(a(t)\vee y\big)\wedge b(t)$. Next, we show that if a generator satisfies $({\rm \bf A}_{\bm \gamma})$ within the truncation bounds, then the truncated generator satisfies $({\rm \bf A}_{\bm \gamma})$ everywhere. \begin{lemma} \label{trunclemma} Let $f$ satisfy~(\ref{gamma*}) for $Y,U$ such that $a(t)\leq Y_{t-},Y_{t-}+U_t(e),Y_{t-}+U'_t(e)\leq b(t)$, $t\in [0,T]$ and let $\gamma$ satisfy one of the conditions of Example~\ref{exmartingale} for the martingale property of $\mathcal{E}(\overline{\gamma}*\widetilde{\mu})$. Then $\widetilde{f}$ satisfies~(\ref{gamma*}). Especially, if $f$ satisfies $({\rm \bf A}_{\rm \bf fin})$ on the set where $a(t)\leq y,y+u \leq b(t)$ then $\widetilde{f}$ is Lipschitz in $(y,z)$, locally Lipschitz in $u$ and satisfies $({\rm \bf A}_{\bm \gamma})$. \end{lemma} \begin{proof} Using monotonicity of $x\mapsto \kappa (t,x)$, we get that $\widetilde{f}_t(Y_{t-},Z_t,U_t)-\widetilde{f}_t(Y_{t-},Z_t,U'_t)$ equals \begin{align*} & f_t\big(\kappa (t,Y_{t-}),Z_t,\kappa (t,Y_{t-}+U_t)-\kappa (t,Y_{t-})\big)-f_t\big(\kappa (t,Y_{t-}),Z_t,\kappa (t,Y_{t-}+U'_t)-\kappa (t,Y_{t-})\big) \\ & \quad \leq \int_E \overline{\gamma}_t(e) \big(\kappa (t,Y_{t-}+U_t(e)) -\kappa (t,Y_{t-}+U'_t(e))\big)\, \zeta (t,e)\, \lambda ({\rm d}e) \\ & \quad \leq \int_E \overline{\gamma}_t(e) \big(\mathds{1}_{\{ \overline{\gamma}\geq 0, U\geq U'\} }+\mathds{1}_{\{ \overline{\gamma}<0, U<U'\}}\big)\big(U_t(e)-U'_t(e)\big)\, \zeta (t,e)\, \lambda ({\rm d}e). \end{align*} Setting $\overline{\gamma^*}:= \overline{\gamma}\big(\mathds{1}_{\{ \overline{\gamma}\geq 0, U\geq U'\} }+\mathds{1}_{\{ \overline{\gamma}<0, U<U'\} }\big)$ we see that the stochastic exponential $\mathcal{E}\big(\int \beta {\rm d}B+\overline{\gamma^*}*\widetilde{\mu}\big)$ is a martingale for all bounded and predictable processes $\beta$ and $\widetilde{f}$ satisfies~(\ref{gamma*}). The latter claim easily follows from the fact that if $f$ satisfies $({\rm \bf A}_{\rm \bf fin})$ on $a(t)\leq y,y+u \leq b(t)$ then $f$ satisfies~(\ref{gamma*}) on $a(t)\leq Y_{t-},Y_{t-}+U_t(e),Y_{t-}+U'_t(e) \leq b(t)$ using Example~\ref{exagamma}.2. The Lipschitz properties of $\widetilde{f}$ follow from the fact that $\kappa$ is a contraction and $f$ is Lipschitz within the truncation bounds. \end{proof} Concrete $L^\infty$-bounds for bounded solutions to BSDE $(\xi ,f)$ with suitable $\widehat{f}$-part are provided by \begin{proposition} \label{ODEbounds} Let $f$ be a generator of the form $(\ref{generator1})$ with $\big|\widehat{f}_t(y,z)\big|\leq K_1+K_2|y|$ for some $K_1,K_2\geq 0$, $g_t(y,z,0,e)\equiv 0$ and $\xi \in L^{\infty}(\mathcal{F}_T)$ with $c_1\leq \xi \leq c_2$ for some $c_1,c_2\in \mathbb{R}$. Assume that there are solutions $a$ and $b$ to the ODEs $y'(t)=K_1+K_2|y(t)|$, $y(T)=c_1$ and $y'(t)=-(K_1+K_2|y(t)|)$, $y(T)=c_2$ respectively, such that $a\leq b$ on $[0,T]$. If the truncated generator $\widetilde{f}$ in $(\ref{tildef})$ satisfies $({\rm \bf A}_{\bm \gamma})$ and is Lipschitz in $(y,z)$, then any solution $(\widetilde{Y},\widetilde{Z},\widetilde{U})\in\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the JBSDE $(\xi ,\widetilde{f})$ also solves the JBSDE $(\xi ,f)$ and satisfies $a(t)\leq \widetilde{Y}_t\leq b(t),$ $t\in [0,T]$. \end{proposition} \begin{proof} We set $Y_t:=\kappa (t,\widetilde{Y}_t)$, $Z_t:=\widetilde{Z}_t$, $U_t(e):=\kappa (t,\widetilde{Y}_{t-}+\widetilde{U}_t(e))-\kappa (t,\widetilde{Y}_{t-})$ and \[ f_t^{\,i}(y,z,u):= \widehat{f}_t^{\,i}\big(\kappa (t,y),z\big)+\int_E g_t\big(\kappa (t,y),z,\kappa (t,y+u)-\kappa (t,y),e\big)\, \zeta (t,e)\, \lambda ({\rm d}e) \] with $\widehat{f}_t^{\,1}(y,z):=-(K_1+K_2|y|)$, $\widehat{f}_t^{\,2}(y,z):=\widehat{f}_t(y,z)$ and $\widehat{f}_t^{\,3}(y,z):=K_1+K_2|y|$. By the assumptions on the ODEs, we have that $(a(t),0,0)$ solves the BSDE $(c_1,f^1)$ and $(b(t),0,0)$ solves the BSDE $(c_2,f^3)$. Taking into account that $\widetilde{f}^{\,1}\leq \widetilde{f}^{\,2}\leq \widetilde{f}^{\,3}$, $c_1 \leq \xi \leq c_2$ and $\widetilde{f}^{\,2}$ satisfies $({\rm \bf A}_{\bm \gamma})$, comparison theorem Proposition~\ref{comparegeneral} yields $a(t)\leq \widetilde{Y}_t\leq b(t)$. Hence, $Y$ and $\widetilde{Y}$ are indistinguishable, $U=\widetilde{U}$ in $\mathcal{L}^2(\widetilde{\mu})$ and $(\widetilde{Y},\widetilde{Z},\widetilde{U})$ solves the BSDE $(\xi ,f)$. \end{proof} In the next section, we apply these results to two situations: Using Corollary~\ref{bechereralternative}, we give an alternative proof of Thm.3.5 of \cite{Becherer06} via a comparison principle instead of an argument with stopping times. Moreover, the estimates in Corollary~\ref{boundscor} are applied to solve the power utility maximization problem via a JBSDE approach in Section~\ref{subsubsec:powut}. \section{Existence and uniqueness of bounded solutions}\label{sec:exandu} This section studies BSDE with jumps by the monotone stability approach. Building on (straighforward) results for finite activity, the infinite activity case is treated by monotone approximations. \subsection{The case of finite activity} \begin{definition} A generator function $f$ satisfies condition $({\rm \bf B}_{\bm \gamma})$, if it is Lipschitz continuous in $(y,z)$, locally Lipschitz continuous in $u$ (in the sense that $u\mapsto f_t(y,z,-c\vee u\wedge c)$ is Lipschitz continuous for any $c\in(0,\infty)$), $f_.(0,0,0)$ is bounded, and $f$ satisfies condition $({\rm \bf A}_{\bm \gamma})$. \end{definition} The next result readily leads to Proposition~\ref{finitetheo}, for $A$ in (\ref{generator1}) with $\lambda(A)<\infty$. \begin{proposition} \label{finitetheogeneral} Let $\xi \in L^{\infty}(\mathcal{F}_T)$ and $f$ satisfies $({\rm \bf B}_{\bm \gamma})$. Then there exists a unique solution $(Y,Z,U)$ in $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the BSDE $(\xi ,f)$. Moreover for all $t\in[0,T]$, $|Y_t|$ is bounded by $\exp \big(K_f^{y,z}(T-t)\big)\big(|\xi |_{\infty}+(T-t)|f_.(0,0,0)|_{\infty}\big)$. \end{proposition} \begin{proof} Consider the Lipschitz generator $f_t^c(y,z,u):=f_t\big(y,z,(u\vee (-c))\wedge c\big)$ with $c>0$ and Lipschitz constant $K_{f^c}$. By classical fixed point arguments and a-priori estimates (cf.\ e.g.\ \cite[Prop.3.2, 3.3]{Becherer06}) there is a unique solution $(Y^c,Z^c,U^c) \in \mathcal{S}^2\times \mathcal{L}^2(B)\times \mathcal{L}^2(\widetilde{\mu})$ to the BSDE $(\xi ,f^c)$; it satisfies \[ |Y_t^c| \leq C \mathbb{E} \Big( |\xi |^2+\int_t^T |f_s^c(0,0,0)|^2\, {\rm d}s\, \Big|\, \mathcal{F}_t\Big) \leq C\big(|\xi |_{\infty}^2+T|f_.(0,0,0)|_{\infty}^2\big)<\infty, \] for some constant $C=C(T,K_{f^c})$. Now Proposition $\ref{estimategeneral}$ implies that $ |Y_t^c| $ is dominated by $ \exp \big(K_f^{y,z}(T-t)\big)\big(|\xi |_{\infty}+(T-t)|f_.(0,0,0)|_{\infty}\big) $ { for all }$c>0$. Choosing $c\geq 2\exp \big(K_f^{y,z}T\big)\big(|\xi |_{\infty}+T|f_.(0,0,0)|_{\infty}\big)$ we get that $(Y^c,Z^c,U^c)$ with $Y^c\in \mathcal{S}^{\infty}$ solves the BSDE $(\xi ,f)$ since $U^c$ is bounded by $c$. Uniqueness follows by comparison. \end{proof} This leads to a preliminary result on bounded solutions if jumps are of finite activity. \begin{proposition} \label{finitetheo} Let $\xi \in L^{\infty}(\mathcal{F}_T)$ and let $f$ satisfy $({\rm \bf A}_{\rm \bf fin})$ (recall Definition~\ref{defAfininfi}) with $f_.(0,0,0)$ bounded. Then there exists a unique solution $(Y,Z,U)$ in $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the BSDE $(\xi ,f)$. Moreover for all $t\in[0,T]$, $|Y_t|$ is bounded by $\exp \big(K_f^{y,z}(T-t)\big)\big(|\xi |_{\infty}+(T-t)|f_.(0,0,0)|_{\infty}\big)$. \end{proposition} \begin{proof} Noting that local Lipschitz continuity in $u$ follows from the absolute continuity of $g$ in $u$ with locally bounded density function, the claim follows from Propositions~\ref{estimatetheo} and \ref{finitetheogeneral}. \end{proof} \begin{corollary} \label{bechereralternative} Let $\xi \in L^{\infty}(\mathcal{F}_T)$ and let $f$ be a generator satisfying $({\rm \bf A}_{\rm \bf fin})$, with $g_t(y,z,0,e)\equiv 0$ and $|\widehat{f}_t(y,z)|\leq K_1+K_2|y|$ for some $K_1,K_2\geq 0$. Set \begin{equation*} b(t) = \begin{cases} (|\xi |_{\infty}+\frac{K_1}{K_2})\exp (K_2(T-t))-\frac{K_1}{K_2}, & K_2\neq 0 \\ |\xi |_{\infty}+K_1(T-t), & K_2=0. \end{cases} \end{equation*} Then there exists a unique solution $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the BSDE $(\xi ,f)$ and moreover $|Y_t|\leq b_t$ for $t\in[0,T]$. Finally $\int Z\, {\rm d}B$ and $U*\widetilde{\mu}$ are {\rm BMO}$(\mathbb{P} )$-martingales. \end{corollary} \begin{proof} By Lemma~\ref{trunclemma} and Proposition~\ref{finitetheo}, there is a unique solution $(Y,Z,U)$ in the space $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the BSDE $(\xi ,\widetilde{f})$. By Proposition~\ref{ODEbounds}, it also solves the BSDE $(\xi ,f)$ and $-b(t)\leq Y_t\leq b(t),\ \forall t\in[0,T]$. Uniqueness follows from the fact that one can apply the comparison Theorem~\ref{comparetheo} for generators satisfying $({\rm \bf A}_{\rm \bf fin})$. The BMO property follows from Lemma~\ref{BMOproperty}. \end{proof} \begin{remark} Corollary~\ref{bechereralternative} is similar to Thm.3.5 in \cite{Becherer06} but its proof is different: It relies on previous comparison results for JBSDEs instead of stopping arguments. The stochastic integrals of the BSDE solution are BMO-martingales under the assumptions for Lemma~\ref{BMOproperty}, which hold e.g.\ under the conditions for \cite[Thm.~3.6]{Becherer06}. \end{remark} \begin{corollary} \label{boundscor} Let $\xi \in L^{\infty}(\mathcal{F}_T)$ with $\xi \geq C$ for some constant $C>0$, $K\geq 0$ and set $a(t):=C\exp (-K(T-t))$ and $b(t)=|\xi |_{\infty} \exp (K(T-t)),\ \forall t\in[0,T]$. Assume $f$ satisfies $({\rm \bf A}_{\rm \bf fin})$ for $c\leq y,y+u\leq d$ for all $c,d\in \mathbb{R}$ with $0<c<d$, and that $\big|\widehat{f}_t(y,z)\big|\leq K|y|$ and $g_t(y,z,0,e)=0$. Then there exists a unique solution $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the BSDE $(\xi ,f)$ with $Y\geq \epsilon$ for some $\epsilon >0$. Moreover, it holds $a(t)\leq Y_t\leq b(t)$ and $\int Z\, {\rm d}B$ and $U*\widetilde{\mu}$ are {\rm BMO}$(\mathbb{P} )$-martingales. \end{corollary} \begin{proof} This can be shown with a similar argument for the uniqueness as above: Let $(Y',Z',U')$ be another solution to the BSDE $(\xi ,f)$ with $Y'\geq \epsilon$ for some $\epsilon >0$. Then $f$ satisfies $({\rm \bf A}_{\rm \bf fin})$ for $a(t)\wedge \epsilon \leq y,\,y+u\leq b(t)\vee |Y'|_{\infty}$; hence the solutions coincide by comparison. \end{proof} \begin{example} As a special case of Corollary~\ref{boundscor} to be applied in Section~\ref{subsubsec:powut}, setting $K:=\big(\gamma |\varphi |_{\infty}^2\big)/\big(2(1-\gamma )^2\big)$ for some $\gamma \in (0,1)$ and some predictable and bounded process $\varphi$ we define \begin{align*} f_t(y,z,u) &:= \widehat{f}_t(y,z) +\int_E g_t(y,u,e)\, \zeta (t,e)\, \lambda ({\rm d}e)\\ &:=\frac{\gamma}{2(1-\gamma )^2}|\varphi_t|^2y+\int_E \left(\frac{1}{1-\gamma}((u(e)+y)^{1-\gamma}y^{\gamma}-y)-u(e)\right)\, \zeta (t,e)\, \lambda ({\rm d}e). \end{align*} From \( \frac{\partialup g}{\partialup y}(t,y,u,e) =\left( \frac{u+y}{y}\right)^{1-\gamma}+\frac{\gamma}{1-\gamma}\left( \frac{u+y}{y} \right)^{-\gamma}-\frac{1}{1-\gamma}, \) we see that $f$ is Lipschitz in $y$ within the truncation bounds. Moreover, $g$ is continuously differentiable with bounded derivatives and we have \( \frac{\partialup g}{\partialup u}(t,y,u,e)=\left( \frac{u+y}{y} \right)^{-\gamma}-1>-1, \) for $c \leq y,y+u\leq d$. \end{example} \subsection{The case of infinite activity} For linear generators of the form \( f_t(y,z,u):=\alpha_t^0 +\alpha_t y+\beta_t z+\int_E \gamma_t(e)u(e)\, \zeta (t,e)\, \lambda ({\rm d}e), \) with predictable coefficients $\alpha^0$, $\alpha$, $\beta$ and $\gamma$, JBSDE solutions can be represented by an adjoint process. In our context of bounded solutions, one needs rather weak conditions on the adjoint process. This will be used later on in Section~\ref{sec:appl}. The idea of proof is standard, cf.\ \cite[Lem.1.23]{KentiaPhD} for details. \begin{lemma} \label{lem:RepSolLinBSDEs} Let $f$ be a linear generator of the form above and $\xi\in L^{\infty}(\mathcal{F}_T)$. \begin{enumerate} \item Assume that $(Y,Z,U)\in \mathcal{S}^{\infty}\times \mathcal{L}^2(B)\times \mathcal{L}^2(\widetilde{\mu} )$ solves the BSDE $(\xi ,f)$. Suppose that the adjoint process $(\Gamma_s^t)_{s\in[t,T]}:=(\exp (\int_t^s \alpha_u\, {\rm d}u)\mathcal{E}(\int \beta {\rm d}B+\gamma*\widetilde{\mu})_t^s)_{s\in[t, T]}$ is in $\mathcal{S}^1$ for any $t\le T$ and $\alpha^0$ is bounded. Then $Y$ is represented as \( Y_t=\mathbb{E}\big[\Gamma_T^t \xi+\int_t^T \Gamma_s^t \alpha_s^0\, {\rm d}s|\mathcal{F}_t\big]. \) \item Let $\alpha^0$, $\alpha$, $\beta$ and $\widetilde{\gamma}_t:=\int_E |\gamma_t(e)|^2\, \zeta (t,e)\lambda ({\rm d}e)$, $t\in [0,T]$, be bounded and $\gamma \geq -1$. Then there is a unique solution in $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the BSDE $(\xi ,f)$ and Part~1.\ applies. \end{enumerate} \end{lemma} Our aim is to prove existence and uniqueness beyond Proposition~\ref{finitetheo} for infinite activity of jumps, that means $\lambda (A)$ may be infinite in (\ref{generator1}). To show Theorems $\ref{infinitetheogeneral}$ and $\ref{infinitetheo}$, we use a monotone stability approach of \cite{Kobylanski00}: By approximating a generator $f$ of the form $(\ref{generator})$ (with $A$ such that $\lambda (A)=\infty$) by a sequence $(f^n)_{n\in \mathbb{N}}$ of the form $(\ref{generator})$ (with $A_n$ such that $\lambda (A_n)<\infty$) for which solutions' existence is guaranteed, one gets that the limit of these solutions exist and it solves the BSDE with the original data. As in \cite{Kobylanski00}, the monotone approximation approach is perceived as being not easy in execution, a main problem usually being to prove strong convergence of the stochastic integral parts for the BSDE. By Proposition~\ref{strongconv} convergence works for small terminal condition $\xi$. That is why we can not apply this Proposition directly to data $(\xi ,f^n)_{n\in \mathbb{N}}$. Instead we sum (converging) solutions for small ${1}/{N}$-fractions of the desired terminal condition. This is inspired by the iterative ansatz from \cite{Morlais10} for a particular generator. For our generator family, we adapt and elaborate proofs, using e.g.\ a $\mathcal{S}^1$-closeness argument for the proof of the strong approximation step. Compared to \cite{Morlais10}, the analysis for our general family of JBSDEs adds clarity and structural insight into what is really needed. It extends the scope of the BSDE stability approach \cite{Kobylanski00,Morlais10}, in particular with regards to non-Lipschitz dependencies in the jump-integrand, while the proof shows comparable ease for the (usually laborious) strong approximation step in the setup under consideration. Differently to e.g.\ \cite{ElKarouiMatoussiNgoupeyou16,Morlais10,Yao17}, no exponential transforms or convolutions are needed here, as our generators are ``quadratic'' in $U$ but not in $Z$. Despite similarities at first sight, a closer look reveals that Theorem~\ref{infinitetheogeneral} is quite different from \cite[Thm.5.4]{KPZ15}, both in the method of proof and in scope: They prove existence for small terminal conditions by following the fixed point approach by \cite{Tevzadze08}, whereas we show stability for small terminal conditions (Proposition~\ref{strongconv}) and apply a different pasting procedure, approximating not only terminal data but also generators. Here wellposedness of the approximating JBSDEs is obtained directly from classical theory by using comparison and estimates from Section~\ref{sec:comp}, which enable us to argue within uniform a-priori bounds for the approximating sequence. Examples in Section~\ref{sec:appl} further demonstrate that also the scope of our results is different. In more detail, the task for the next Theorem~\ref{infinitetheogeneral} is to construct generators $(f^{k,n})_{1\leq k\leq N, n\in \mathbb{N}}$ and solutions $(Y^{k,n},Z^{k,n},U^{k,n})$ to the BSDEs with data $(\xi /N,f^{k,n})$ for $N$ large enough such that $(Y^{k,n},Z^{k,n},U^{k,n})$ converges if $n \to \infty$ and $(Y^n,Z^n,U^n):=\sum_{k=1}^N (Y^{k,n},Z^{k,n},U^{k,n})$ solves the BSDE $(\xi ,f^n)$. In this case $(Y^n,Z^n,U^n)$ converges and its limit is a solution candidate for the BSDE $(\xi ,f)$. For this program, we next show a stability result for JBSDE. \begin{proposition} \label{strongconv} Let $(\xi^n) \subset L^{\infty}(\mathcal{F}_T)$ with $\xi^n\rightarrow \xi$ in $L^2(\mathcal{F}_T)$ and $(f^n)_{n\in \mathbb{N}}$ be a sequence of generators with $f^n_.(0,0,0)=0,\ \forall n$, having property $(B_{\gamma^n})$ such that $K_f^{y,z}:=\sup_{n\in \mathbb{N}} K_{f^n}^{y,z}<\infty$. Denote by $(Y^n,Z^n,U^n)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ the solution to the BSDE $(\xi ,f^n)$ with $Y^n$ bounded by $|\xi |_{\infty}\exp (K_{f^n}^{y,z}T)$ and set $\tilde{c}:=|\xi |_{\infty}\exp (K_f^{y,z}T)$. Assume that $Y^n$ converges pointwise, $(Z^n,U^n)\rightarrow (Z,U)$ converges weakly in $\mathcal{L}^2(B) \times \mathcal{L}^2(\widetilde{\mu})$ and $|f_t^n(0,0,u)|\leq \widehat{K}|u|_t^2+\widehat{L}_t$ for all $n$ and $u$ with $|u|\leq 2\tilde{c}$, $\widehat{K}\in \mathbb{R}_+$ and $\widehat{L}\in L^1(\mathbb{P}\otimes {\rm d}t)$. Then $(Z^n,U^n)$ converges to $(Z,U)$ strongly in $\mathcal{L}^2(B) \times \mathcal{L}^2(\widetilde{\mu})$, if $|\xi |_{\infty}\equiv \tilde{c}\exp (-K_f^{y,z}T) \leq {\exp (-K_f^{y,z}T)}/({80 \max \{ K_f^{y,z},\widehat{K}\} })$. \end{proposition} \begin{proof} We note that $(Y^n,Z^n,U^n)$ is uniquely defined by Proposition $\ref{finitetheogeneral}$. To prove strong convergence of $(Z^{n})_{n\in\mathbb{N}}$ and $(U^{n})_{n\in \mathbb{N}}$ we consider $\updelta Y:=Y^{n}-Y^{m}$, $\updelta Z:=Z^{n}-Z^{m}$, $\updelta U:=U^{n}-U^{m}$ and apply It\^o's formula for general semimartingales to $(\updelta Y)^2$ to obtain \begin{align*} (\updelta Y_0)^2 =&\; (\updelta Y_T)^2 +\int_0^T 2\updelta Y_{s-} (f_s^{n}(Y_{s-}^{n},Z_s^{n},U_s^{n})-f_s^{m}(Y_{s-}^{m},Z_s^{m},U_s^{m})) {\rm d}s \\ & -\int_0^T \lVert \updelta Z_s\rVert^2 {\rm d}s-2\int_0^T \updelta Y_{s-} \updelta Z_s\, {\rm d}B_s -\int_0^T \mskip-10mu \int_E (\updelta Y_{s-} +\updelta U_s(e))^2-(\updelta Y_{s-})^2\, \widetilde{\mu} ({\rm d}s,{\rm d}e)\\ & -\int_0^T \mskip-10mu \int_E (\updelta Y_{s-} +\updelta U_s(e))^2-(\updelta Y_{s-})^2-2\updelta Y_{s-}\updelta U_s(e)\, \nu ({\rm d}s,{\rm d}e). \end{align*} Noting that the stochastic integrals are martingales one concludes that \begin{equation}\label{ineq1}\begin{split} &\mathbb{E}\Big( \int_0^T 2\updelta Y_{s-}(f_s^{n}(Y_{s-}^{n},Z_s^{n},U_s^{n})-f_s^{m}(Y_{s-}^{m},Z_s^{m},U_s^{m}))\, {\rm d}s \Big)\\ &= \mathbb{E}\Big( \int_0^T \mskip-10mu \int_E \updelta U_s(e)^2\, \nu ({\rm d}s,{\rm d}e) \Big) +\mathbb{E}\Big( \int_0^T \lVert \updelta Z_s\rVert^2\, {\rm d}s \Big) - \mathbb{E}\big((\updelta Y_T)^2)+\mathbb{E}((\updelta Y_0)^2\big) . \end{split} \end{equation} Using the inequalities $a\leq a^2+\sfrac{1}{4}$, $(a+b)^2\leq 2(a^2+b^2)$, $(a+b+c)^2\leq 3(a^2+b^2+c^2)$, the Lipschitz property of $f^{n}$ in $y$ and $z$ and the estimate for $f_t^n(0,0,u)$, we have \begin{equation}\label{ineq2} \begin{split} &|f_s^{n}(Y_{s-}^{n},Z_s^{n},U_s^{n})-f_s^{m}(Y_{s-}^{m},Z_s^{m},U_s^{m})|\\ &\quad \leq K_{f^{n}}^{y,z} (|Y_{s-}^{n}|+\lVert Z_s^{n}\rVert )+K_{f^{m}}^{y,z}(|Y_{s-}^{m}|+\lVert Z_s^{m}\rVert )+\widehat{K} |U_s^{n}|_s^2+\widehat{L}_s +\widehat{K} |U_s^{m}|_s^2+\widehat{L}_s\\ &\quad \leq K_1+2\widehat{L}_s+K_2(\lVert \updelta Z_s\rVert^2+\lVert Z_s^{n}-Z_s\rVert^2+\lVert Z_s\rVert^2 +|\updelta U_s|_s^2+|U_s^{n}-U_s|_s^2+ |U_s|_s^2), \end{split} \end{equation} where $K_1:=K_f^{y,z}(2\tilde{c}+\sfrac{1}{2})\in \mathbb{R}$, $K_2:=5\max \{ K_f^{y,z},\widehat{K}\}$ and $\vert\cdot\vert_t$ is defined in (\ref{utnorm}). Combing inequalities ($\ref{ineq1}$) and ($\ref{ineq2}$) yields \begin{align*} \mathbb{E} \Big( \int_0^T \lVert \updelta Z_s\rVert^2+|\updelta U_s|_s^2\, {\rm d}s \Big) \le 2\mathbb{E} \Big( \int_0^T &|\updelta Y_{s-}|(K_1+2\widehat{L}_s+K_2(\lVert \updelta Z_s\rVert^2+\lVert Z_s^{n}-Z_s\rVert^2+\lVert Z_s\rVert^2\Big.\\ &\Big.+|\updelta U_s|_s^2+|U_s^{n}-U_s|_s^2+|U_s|_s^2))\, {\rm d}s \Big) + \mathbb{E} \big((\xi^n-\xi^m)^2\big). \end{align*} Let us recall that the predictable projection of $Y$, denoted by $Y^{\rm p}$, is defined as the unique predictable process $X$ such that $X_{\tau}=\mathbb{E} (Y_{\tau}|\mathcal{F}_{\tau-})$ on $\{ \tau<\infty \}$ for all predictable times $\tau$. For $Y^{n}$ it holds $(Y^{n})^{\rm p}=Y_-^{n}$. This follows from \cite[Prop.I.2.35.]{JacodShiryaev03} using that $Y^n$ is c\`adl\`ag, adapted and quasi-left-continuous, as $\Delta Y_{\tau}=\Delta U*\widetilde{\mu}_{\tau}=0$ on $\{ \tau<\infty \}$ holds for all predictable times $\tau$ thanks to the absolute continuity of the compensator $\nu$. Noting that $1-2K_2|\updelta Y_{s-}|\geq 1-4K_2\tilde{c}\geq 3/4$ and setting $Y:=\lim_{n\rightarrow \infty}Y^n$ we deduce by the weak convergence of $(Z^{n})_{n\in \mathbb{N}}$ and $(U^{n})_{n\in \mathbb{N}}$, $Y_{-}^{n}=(Y^{n})^{\rm p} \uparrow (Y)^{\rm p}$ as $n\rightarrow \infty$ and by Lebesgue's dominated convergence theorem \begin{align*} & \frac{3}{4} \mathbb{E}\Big( \int_0^T \lVert Z_s^{n}-Z_s\rVert^2+|U_s^{n}-U_s|_s^2\, {\rm d}s\Big)\\ & \leq \frac{3}{4}\liminf\limits_{m\rightarrow \infty} \mathbb{E}\Big( \int_0^T \lVert Z_s^{n}-Z_s^{m}\rVert^2+|U_s^{n}-U_s^{m}|_s^2\, {\rm d}s \Big) \\ & \leq \liminf\limits_{m\rightarrow \infty} 2\mathbb{E} \Big( \int_0^T |\updelta Y_{s-}|(K_1+2\widehat{L}_s+K_2(\lVert Z_s^{n}-Z_s\rVert^2+\lVert Z_s\rVert^2+|U_s^{n}-U_s|_s^2+|U_s|_s^2))\, {\rm d}s \Big)\\ &\qquad\qquad+\mathbb{E} \big((\xi^m-\xi^n)^2\big) \\ & = 2\mathbb{E}\Big( \int_0^T |Y_{s-}^{n}-(Y_s)^{\rm p}|( K_1+2\widehat{L}_s+K_2(\lVert Z_s^{n}-Z_s\rVert^2+\lVert Z_s\rVert^2+|U_s^{n}-U_s|_s^2+|U_s|_s^2))\, {\rm d}s\Big)\\ &\quad+\mathbb{E} \big((\xi -\xi^n)^2\big). \end{align*} Noting $\sfrac{3}{4}-2K_2|Y_{s-}^{n}-(Y_s)^{\rm p}|\geq \sfrac{3}{4}-4K_2\tilde{c}\geq \sfrac{1}{2}$, one obtains with dominated convergence \begin{align*} &\frac{1}{2}\limsup\limits_{n\rightarrow \infty} \mathbb{E}\Big( \int_0^T \lVert Z_s^{n}-Z_s\rVert^2+|U_s^{n}-U_s|_s^2\, {\rm d}s\Big) \\ &\qquad \leq \limsup\limits_{n\rightarrow \infty} 2\mathbb{E} \Big( \int_0^T |Y_{s-}^{n}-(Y_s)^{\rm p}|(K_1+2\widehat{L}_s+\lVert Z_s\rVert^2+|U_s|_s^2)\, {\rm d}s \Big) +\mathbb{E} \big((\xi^n-\xi )^2\big)=0. \end{align*} \end{proof} We will need the following result which is a slight variation of \cite[Lem.2.5]{Kobylanski00}. \begin{lemma} \label{helplemma2} Let $(Z^n)_{n\in \mathbb{N}}$ be convergent in $\mathcal{L}^2(B)$ and $(U^n)_{n\in \mathbb{N}}$ convergent in $\mathcal{L}^2(\widetilde{\mu})$. Then there exists a subsequence $(n_k)_{k\in \mathbb{N}}$ such that \( \sup\limits_{n_k} \lVert Z^{n_k} \rVert \in L^2(\mathbb{P} \otimes {\rm d}t) \; \mbox{and} \; \sup\limits_{n_k} |U_t^{n_k}|_t \in L^2(\mathbb{P} \otimes {\rm d}t). \) \end{lemma} \begin{proof} The result for $(Z^n)_{n\in \mathbb{N}}$ is from~\cite{Kobylanski00} and the argument for $(U^n)_{n\in \mathbb{N}}$ is analogous. \end{proof} \begin{theorem}[Monotone stability, infinite activity] \label{infinitetheogeneral} Let $\xi \in L^{\infty}(\mathcal{F}_T)$ and let $(f^n)_n$ be a sequence of generators satisfying condition~$(B_{\gamma^n})$ with $K_f^{y,z}:=\sup_{n\in\mathbb{N}}K_{f^n}^{y,z}<\infty$. Assume that \begin{enumerate}\item[1.]\label{zerosolution} there is $(\widehat{Y},\widehat{Z},\widehat{U})$ in $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ with $\widehat{U}$ bounded and $f_t^n(\widehat{Y}_{t-},\widehat{Z}_t,\widehat{U}_t)\equiv 0$ for all $n$, \item[2.]\label{quadbound} for all $u\in L^0(\mathcal{B}(E),\lambda)$ with $|u|\leq |\widehat{U}|_{\infty}+2|\xi |_{\infty}\exp (K_f^{y,z}T)$ there exists $\widehat{K}\in \mathbb{R}_+$ and a process $\widehat{L}\in L^1(\mathbb{P}\otimes {\rm d}t)$ such that $|f_t^n(0,0,u)|\leq \widehat{K}|u|_t^2+\widehat{L}_t$ for each $n\in \mathbb{N}$, \item[3.] the sequence $(f^n)_{n\in\mathbb{N}}$ converges pointwise and monotonically to a generator $f$, \item[4.]\label{BMOprop} there is a ${\rm BMO}(\mathbb{P} )$-martingale $M$ such that for all truncated generators $f_t^{n,\hat{c}}(y,z,u):=f_t^n\big((y\vee (-\hat{c}))\wedge \hat{c},z,(u\vee (-2\hat{c}))\wedge (2\hat{c})\big)$ with $\hat{c}:= |\widehat{Y}|_{\infty}+(|\widehat{U}|_{\infty}/2)+\exp (K_f^{y,z}T)|\xi |_{\infty}$ holds $\int_t^T f_s^{n,\hat{c}}(Y_{s-},Z_s,U_s)\, {\rm d}s\leq \langle M\rangle_T-\langle M\rangle_t$ or $-\int_t^T f_s^{n,\hat{c}}(Y_{s-},Z_s,U_s)\, {\rm d}s\leq \langle M\rangle_T-\langle M\rangle_t$ for all $n\in \mathbb{N}$, $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$, and \item[5.] \label{convprop} for all $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ and $(U^n)_{n\in \mathbb{N}}\in \mathcal{L}^2(\widetilde{\mu})$ with $U^n\rightarrow U$ in $L^2(\widetilde{\mu})$ it holds $f^n(Y_{-},Z,U^n) \longrightarrow f(Y_{-},Z,U)$ in $L^1(\mathbb{P}\otimes {\rm d}t)$. \end{enumerate} Then \begin{enumerate} \renewcommand{\labelenumi}{\roman{enumi}} \item $\mskip-10mu )$ there exists a solution $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ for the BSDE $(\xi ,f)$, with $\int Z\, {\rm d}B$ and $U*\widetilde{\mu}$ being {\rm BMO}$(\mathbb{P} )$-martingales, and \item $\mskip-10mu )$ this solution is unique if additionally $f$ satisfies condition $({\rm \bf A}'_{\bm \gamma})$. \end{enumerate} \end{theorem} \begin{proof} Let us first outline the overall program of the proof. We want to construct generators $(f^{k,n})_{1\leq k\leq N, n\in \mathbb{N}}$ and solutions $(Y^{k,n},Z^{k,n},U^{k,n})$ to the BSDEs $(\xi /N,f^{k,n})$ for $N$ sufficiently large (to employ Proposition~\ref{strongconv} and get that $((Y^{k,n},Z^{k,n},U^{k,n}))_{n\in \mathbb{N}}$ converges and $(Y^n,Z^n,U^n):=\sum_{k=1}^N (Y^{k,n},Z^{k,n},U^{k,n})$ solves the BSDE $(\xi ,f^n)$). We show that if for some $k<N$ and all $1\leq l\leq k$ and $n\in \mathbb{N}$ we have already constructed generators $(f^{l,n})_{1\leq l\leq k,n\in \mathbb{N}}$ such that there exists solutions $((Y^{l,n},Z^{l,n},U^{l,n}))_{n\in \mathbb{N}}$ to the BSDEs $(\xi /N,f^{l,n})$ converging for $n\rightarrow \infty$, with $|Y^{l,n}|_{\infty}\leq \exp (K_f^{y,z}T)|\xi |_{\infty}/N=:\tilde{c}$, then for $\overline{Y}^{k,n}:=\widehat{Y}+\sum_{l=1}^k Y^{l,n}$ with $\overline{Z}^{k,n}$ and $\overline{U}^{k,n}$ defined analogously and \begin{align} \label{induct} f_t^{k+1,n}(y,z,u):= f_t^n\big(y+\overline{Y}_{t-}^{k,n},z+\overline{Z}_t^{k,n},u+\overline{U}_t^{k,n}\big)-f_t^n\big(\overline{Y}_{t-}^{k,n},\overline{Z}_t^{k,n},\overline{U}_t^{k,n}\big) \end{align} there are solutions $(Y^{k+1,n},Z^{k+1,n},U^{k+1,n})\in\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the BSDEs $(\xi /N,f^{k+1,n})$, converging (in $n$) and satisfying $|Y^{k+1,n}|_{\infty}\leq \tilde{c}$. Starting initially with the triple $(Y^{0,n},Z^{0,n},U^{0,n})$ defined by $(Y^{0,n},Z^{0,n},U^{0,n}):=(\widehat{Y},\widehat{Z},\widehat{U})$, formula~$(\ref{induct})$ gives an inductive construction of the generators $f^{k,n}$ and triples $(Y^{k,n},Z^{k,n},U^{k,n})\in\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ solving the BSDE $(\xi /N,f^{k,n})$ and converging for $n\rightarrow \infty$ with $|Y^{k,n}|_{\infty}\leq \tilde{c}$ for each $n\in N$ and $1\leq k\leq N$.\\ Note that $f^{k+1,n}$ is Lipschitz continuous in $y$ and $z$ with Lipschitz constant $K_{f^n}^{y,z}$, locally Lipschitz in $u$ and satisfies condition $(A_{\gamma^{k+1,n}})$ with \[ \gamma_s^{k+1,n}(y,z,u,u',e) := \gamma_s^n\big(y+\overline{Y}^{k,n}_{s-},z+\overline{Z}^{k,n}_s,u+\overline{U}_s^{k,n}(e),u'+\overline{U}_s^{k,n}(e),e\big) \] and $f_t^{k+1,n}(0,0,0)\equiv 0$. Hence by the existence and uniqueness result for the finite activity case (see Proposition~\ref{finitetheogeneral}), there exists a unique solution $(Y^{k+1,n},Z^{k+1,n},U^{k+1,n})$ to the BSDE $(\xi /N,f^{k+1,n})$ such that $Y^{k+1,n}$ is bounded by $\tilde{c}$.\\ To apply Proposition~\ref{strongconv}, we have to check that the sequence $(Y^{k+1,n})_{n\in \mathbb{N}}$ converges pointwise, that $(Z^{k+1,n},U^{k+1,n})_{n\in \mathbb{N}}$ converges weakly in $\mathcal{L}^2(B)\times \mathcal{L}^2(\widetilde{\mu})$ and that $f^{k+1,n}(0,0,u)$ can be locally bounded by an affine function in $|u|^2$. Having telescoping sums in $(\ref{induct})$ implies that $(\overline{Y}^{l,n},\overline{Z}^{l,n},\overline{U}^{l,n})$ solves the BSDE $(\widehat{Y}_T+l\xi/N ,f^n)$. By the comparison result of Proposition~\ref{comparegeneral}, the sequences $(\overline{Y}^{k,n})_{n\in \mathbb{N}}$ and $(\overline{Y}^{k+1,n})_{n\in \mathbb{N}}$ are monotonic (and bounded) in $n$ so that finite limits $\lim_{n\rightarrow \infty}Y^{k+1,n}=\lim_{n\rightarrow \infty}\overline{Y}^{k+1,n}-\lim_{n\rightarrow \infty}\overline{Y}^{k,n}$ exists, $\mathbb{P}\otimes {\rm d}t$-a.e.. By Lemma~\ref{BMOproperty}, the sequences $(\overline{Z}^{k,n},\overline{U}^{k,n})_{n\in\mathbb{N}}$ and $(\overline{Z}^{k+1,n},\overline{U}^{k+1,n})_{n\in\mathbb{N}}$ are bounded in $\mathcal{L}^2(B)\times \mathcal{L}^2(\widetilde{\mu})$; hence $(Z^{k+1,n},U^{k+1,n})$ is weakly convergent in $\mathcal{L}^2(B)\times \mathcal{L}^2(\widetilde{\mu})$ along a subsequence which we still index by $n$ for simplicity. Due to the Lipschitz continuity of $f^n$ and Assumption $2.$, we get for all $|u|\leq 2\tilde{c}$ that \begin{align*} \big|f_t^{k+1,n}(0,0,u)\big| &\leq \big|f_t^n\big(\overline{Y}_{t-}^{k,n},\overline{Z}_t^{k,n},u+\overline{U}_t^{k,n}\big)-f_t^n\big(\overline{Y}_{t-}^{k,n},\overline{Z}_t^{k,n},\overline{U}_t^{k,n}\big)\big| & \\ &\leq 2K_{f^n}^{y,z}\big(|\overline{Y}_{t-}^{k,n}|+\lVert \overline{Z}_t^{k,n}\rVert\big) +\widehat{K}\big(|u+\overline{U}_t^{k,n}|_t^2+|\overline{U}_t^{k,n}|_t^2\big)+2\widehat{L}_t \\ &\leq 2\widehat{K}|u|_t^2 +\widetilde{L}_t, \end{align*} where $\widetilde{L}_t=2K_f^{y,z}(\hat{c}+\sup_{n\in \mathbb{N}}\lVert \overline{Z}_t^{k,n}\rVert^2+\sfrac{1}{4})+3\widehat{K}\sup_{n\in\mathbb{N}}|\overline{U}_t^{k,n}|_t^2+2\widehat{L}_t$. Here we used that by induction hypothesis $(\overline{Z}^{k,n},\overline{U}^{k,n})_n$ is convergent so that $\sup_{n\in \mathbb{N}}(\lVert \overline{Z}_t^{k,n}\rVert^2+|\overline{U}_t^{k,n}|_t^2)$ is $\mathbb{P}\otimes {\rm d}t$-integrable by Lemma~\ref{helplemma2} along a subsequence which again for simplicity we still index by $n$. This implies that $\widetilde{L}\in L^1(\mathbb{P}\otimes {\rm d}t)$, and therefore by Proposition~\ref{strongconv}, the sequence $(Z^n,U^n):=(\overline{Z}^{N,n},\overline{U}^{N,n})$ converges in $\mathcal{L}^2(B)\times \mathcal{L}^2(\widetilde{\mu})$ to some $(Z,U)$ in $\mathcal{L}^2(B)\times \mathcal{L}^2(\widetilde{\mu})$ while $(Y^n):=(\overline{Y}^{N,n})$ converges to some $Y$. Hence, $f^n(Y^n_-,Z^n,U^n)-f^n(Y_-,Z,U^n)$ converges to $0$ in $L^1(\mathbb{P}\otimes {\rm d}t)$ and by Assumption $5.$ we have $f^n(Y^n_-,Z^n,U^n)\rightarrow f(Y_-,Z,U)$ in $L^1(\mathbb{P}\otimes {\rm d}t)$. The stochastic integrals $(Z^n-Z^m)\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B$ and $(U^n-U^m)*\widetilde{\mu}$ belong to $\mathcal{S}^2\subset \mathcal{S}^1$ by Doob's inequality, with $\mathcal{S}^1$-norms being bounded by a multiple of $\lVert Z^n-Z^m\rVert_{\mathcal{L}^2(B)}$ and $\lVert U^n-U^m\rVert_{\mathcal{L}^2(\widetilde{\mu})}$ respectively. Since $|Y^n-Y^m|_{\mathcal{S}^1}$ is dominated by \[ \lVert f^n(Y^n_-,Z^n,U^n)-f^m(Y^m_-,Z^m,U^m)\rVert_{L^1(\mathbb{P}\otimes {\rm d}t)} +C(\lVert Z^n-Z^m\rVert_{\mathcal{L}^2(B)}+\lVert U^n-U^m\rVert_{\mathcal{L}^2(\widetilde{\mu})}) \] for some constant $C>0$ with the bound tending to $0$ as $n,m\rightarrow 0$, we can take $Y$ in $\mathcal{S}^1$ due to completeness of $\mathcal{S}^1$; see \cite[VII. 3,64]{DellacherieMeyer82}.\\ Finally, $(Y,Z,U)$ solves the BSDE $(\xi ,f)$ since the approximating solutions $(Y^n,Z^n,U^n)_{n\in\mathbb{N}}$ of the BSDE $(\xi ,f^n)_{n\in\mathbb{N}}$ converge to some $(Y,Z,U)\in\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ and $f^n(Y^n_-,Z^n,U^n)$ tends to $f(Y_-,Z,U)$ in $L^1(\mathbb{P}\otimes {\rm d}t)$. Hence, we have $\int_0^t f_s^n(Y^n_{s-},Z_s^n,U_s^n){\rm d}s \rightarrow \int_0^t f_s(Y_{s-},Z_s,U_s){\rm d}s$, $\int_0^t Z_s^n {\rm d}B_s\rightarrow \int_0^t Z_s {\rm d}B_s$ and $U^n*\widetilde{\mu}_t \rightarrow U*\widetilde{\mu}_t$ $\mathbb{P}$-a.s.\ (along a subsequence) for all $0\leq t\leq T$. \end{proof} The next corollary to Theorem \ref{infinitetheogeneral} provides conditions under which the $Z$-component of the JBSDE solution vanishes. Such is useful for applications in a pure-jump context (see e.g.\ Section~\ref{subsubsec:CaseDiscAssetPrice} or \cite{CFJ16}) with weak PRP by $\widetilde{\mu}$ alone (cf.\ Example~\ref{example_WPRP}-1.,3.,4.), without a Brownian motion. Clearly an independent Brownian motion can always be added by enlarging the probability space, but it is then natural to ask for a JBSDE solution with trivial $Z$-component, adapted to the original filtration. Instead of re-doing the entire argument leading to Theorem~\ref{infinitetheogeneral} but now for JBSDEs solely driven by a random measure $\widetilde{\mu}$ with generators without a $z$-argument, the next result gives a direct argument to this end. An example where the corollary is applied is given in Section~\ref{subsubsec:CaseDiscAssetPrice}. \begin{corollary}\label{cor:JBSDEZzero} Let $\mu=\mu^X$ be the random measure associated to a pure-jump process $X$, such that the compensated random measure $\widetilde{\mu}$ alone has the weak PRP (see (\ref{WPRP})) with respect to the usual filtration $\mathbb{F}^X$ of $X$. Let $B$ be a $d$-dimensional Brownian motion independent of $X$. With respect to $\mathbb{F}:=\mathbb{F}^{B,X}$, let $f, (f^n)_n,\xi$ satisfy the assumptions of Theorem \ref{infinitetheogeneral} with $\widehat{Z}=0$ and $f$ satisfying $({\rm \bf A}'_{\bm \gamma})$. Let $\xi$ be in $ L^\infty(\mathcal{F}^X_T)$ and $f,f^n$ be $\mathcal{P}(\mathbb{F}^X)\otimes \mathcal{B}(\mathbb{R}^{d+1})\otimes\mathcal{B}(L^0(\mathcal{B}(E)))$-measurable. Then the JBSDE $(\xi,f)$ admits a unique solution $(Y,Z,U)$ in $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$, and we have that $Y$ is $\mathbb{F}^X$-adapted, $Z=0$, and $U$ can be taken as measurable with respect to $\widetilde{\mathcal{P}}(\mathbb{F}^X)$. \end{corollary} \begin{proof} Let $B'$ be a ($1$-dimensional) Brownian motion independent of $(B,X)$. Then $\bar{B} := (B,B')$ is a $(d+1)$-dimensional Brownian motion independent of $X$. Let $\mathbb{F}':=\mathbb{F}^{B',X}$ and $\bar{\mathbb{F}}:=\mathbb{F}^{\bar{B},X}$ denote the usual filtrations of $(B',X)$ and $(\bar{B},X)$. As in Example \ref{example_WPRP}.3., $(B,\widetilde{\mu})$, $(B',\widetilde{\mu})$ and $(\bar{B},\widetilde{\mu})$ each admits the weak PRP w.r.t.\ $\mathbb{F},\mathbb{F}'$ and $\bar{\mathbb{F}}$ respectively. Now consider the generator function $\widetilde{f}$ that does not depend on $z$ and is defined by $\widetilde{f}_t(y,u) := f_t(y,0,u)$. Because $\widehat{Z}=0$, the conditions for Theorem \ref{infinitetheogeneral} are met by $\widetilde{f}^n:=f^n(\cdot,0,\cdot)$. In addition, $\widetilde{f}$ satisfies condition $({\rm \bf A}'_{\bm \gamma})$ since $f$ does. Since $\xi$ is $\mathcal{F}^X_T$-measurable and $\widetilde{f}$ is $\mathcal{P}(\mathbb{F}^X)\otimes \mathcal{B}(\mathbb{R})\otimes\mathcal{B}(L^0(\mathcal{B}(E)))$-measurable, then by Theorem~\ref{infinitetheogeneral} the JBSDE $(\xi,\widetilde{f})$ simultaneously admits unique solutions $(Y,Z,U)$, $(Y',Z',U')$ and $(\bar{Y},\bar{Z},\bar{U})$ in the respective $\mathcal{S}^\infty\times \mathcal{L}^2(\cdot)\times\mathcal{L}^2(\widetilde{\mu})$-spaces for each of the filtrations $\mathbb{F},\mathbb{F}'$ and $\bar{\mathbb{F}}$. Noting that both $\mathbb{F}$ and $\mathbb{F}'$ are sub-filtrations of $\bar{\mathbb{F}}$, we get by uniqueness of $(\bar{Y},\bar{Z},\bar{U})$ that $Z\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B = Z'\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B' = \bar{Z}\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{}\bar{B}$ and that $Y$ is $\mathbb{F}^X$-adapted. The former implies $Z=Z'=0$ by the strong orthogonality of $B$ and $B'$. The claim follows, by noting that the JBSDE gives the (unique) canonical decomposition of the special semimartingale $Y$ and using weak predictable martingale representation in $\mathbb{F}^X$. \end{proof} A natural ansatz to approximate an $f$ of the form $(\ref{generator})$ with $\lambda (A)=\infty$ is by taking \begin{align} \label{fapprox} f_t^n(y,z,u):= \widehat{f}_t(y,z)+\int_{A^n} g_t(u(e),e)\, \zeta (t,e)\, \lambda ({\rm d}e), \end{align} for an increasing sequence $(A_n)_{n\in \mathbb{N}}\uparrow A$ of measurable sets with $\lambda (A_n)<\infty$ (as $\lambda$ is $\sigma$-finite). \begin{theorem}[Wellposedness, infinite activity of jumps] \label{infinitetheo} Let the generator $f$ of the JBSDE be of the form (\ref{generator}) and let $\xi$ be in $ L^{\infty}(\mathcal{F}_T)$. Let $\widehat{f}$ be Lipschitz continuous with respect to $(y,z)$ uniformly in $(\omega,t,u)$, and let $u\mapsto g(t,u,e)$ be absolutely continuous in $u$, for all $(\omega ,t,e)$, with its density function $g'(t,u,e)$ being strictly greater than $-1$ and locally bounded (in $u$) from above. Assume that \begin{enumerate}\item[1.]\label{zerosolution2} there exists $(\widehat{Y},\widehat{Z},\widehat{U})\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ with $|\widehat{U}|_{\infty}<\infty$, $\widehat{f}_t(\widehat{Y}_t,\widehat{Z}_t)\equiv 0$, $g_t(\widehat{U}_t(e),e)\equiv 0$, \item[2.] the function $g$ is locally bounded in $|u|^2$ uniformly in $(\omega ,t,e)$, i.e.\ locally in $u$ (for any bounded neighborhood $N$ of $0$) there exists a $K>0$ such that $|g_t(u,e)|\leq K|u|^2$ (for all $u\in N$), \item[3.] and there exists $D:\mathbb{R} \mapsto \mathbb{R}$ continuous such that either $g\geq 0$ and $\widehat{f}_t(y,z)\geq D(y)$ for $|y|\leq \hat{c}:=|\widehat{Y}|_{\infty}+(|\widehat{U}|_{\infty}/2)+|\xi |_{\infty}\exp (K_{\widehat{f}}^{y,z}T)$, or $g\leq 0$ and $\widehat{f}_t(y,z)\leq D(y)$ for $|y|\leq \hat{c}$. \end{enumerate} Then \begin{enumerate} \renewcommand{\labelenumi}{\roman{enumi}} \item $\mskip-10mu )$ there exists a solution $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the JBSDE and for each solution triple the stochastic integrals $\int Z\, {\rm d}B$ and $U*\widetilde{\mu}$ are {\rm BMO}-martingales, and \item $\mskip-10mu )$ this solution is unique if moreover the function $g$ satisfies condition $({\rm \bf A}_{\rm \bf infi})$. \end{enumerate} Finally, the same statements hold if condition $1.$ is replaced by assuming that $f$ is not depending on $y$, i.e.\ $f_t(y,z,u)=f_t(z,u)$, and that $\widehat{f}$ is bounded. \end{theorem} \begin{proof} We check that the assumptions of Theorem~\ref{infinitetheogeneral} are satisfied. Clearly conditions $1.$ and $2.$ are sufficient for assumptions $1.$ and $2.$ in Theorem~\ref{infinitetheogeneral}. The $f^n$ given by $(\ref{fapprox})$ satisfy conditions~$(B_{\gamma^n})$ (cf.\ Example~\ref{exagamma} and note $\lambda(A_n)<\infty$) and the sequence $(f^n)$ is either monotone increasing or monotone decreasing, depending on the sign of $g$. For the next assumption $4.$, $f^{n,\hat{c}}$ is bounded from above (or resp. below) by $\sup_{|y|\leq \hat{c}}D(y)$ (respectively $\inf_{|y|\leq \hat{c}}D(y)$). To show that also condition $5.$ of Theorem~\ref{infinitetheogeneral} holds, we prove that $g_t(U_t^n(e),e)\,\mathds{1}_{A_n}(e)$ converge to $g_t(U_t(e),e)$ in $L^1(\mathbb{P}\otimes \nu)$ as $n\to \infty$ for $U^n\rightarrow U$ in $\mathcal{L}^2(\widetilde{\mu})$, recalling $(\ref{nuzetadensity})$. We set $B_n:=\big(g_t(U_t^n(e),e)-g_t(U_t(e),e)\big)\,\mathds{1}_{A_n}(e)$ and $C_n:=g_t(U_t(e),e)\,\mathds{1}_{A_n^c}(e)$. Both sequences $(B_n)_{n\in\mathbb{N}}$ and $(C_n)_{n\in\mathbb{N}}$ converge to $0$ $\mathbb{P}\otimes \nu$-a.e.\ since $U^n\rightarrow U$ in $L^2(\mathbb{P}\otimes \nu)$, $g$ is locally Lipschitz in $u$ and $A_n^c\downarrow \emptyset$. Moreover, they are bounded by integrable random variables. In particular, $B_n$ is bounded by $\widehat{K}\big(\sup_{n\in\mathbb{N}}|U_t^n(e)|^2+|U_t(e)|^2\big)$ for some $\widehat{K}>0$ which is integrable along a subsequence due to Lemma~\ref{helplemma2}. Hence applying the dominated convergence theorem yields the desired result.\\ In the alternative case without the Assumption $1.$, existence is still guaranteed. Indeed, let $f_t(y,z,u)=f_t(z,u)$ and $\widehat{f}$ be bounded. Denoting $\widetilde{f}_t(z,u):=f_t(z,u)-f_t(0,0)$ and $\widetilde{\xi}:=\xi +\int_0^T f_t(0,0)\, {\rm d}t$, there exists a unique solution $(\widetilde{Y},Z,U)$ in $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the BSDE $(\widetilde{\xi},\widetilde{f})$ with $\int Z\, {\rm d}B$ and $U*\widetilde{\mu}$ being BMO-martingales by the first version of this theorem and noting that $g_t(0,e)\equiv 0$ and $f_t(0,0)=\widehat{f}_t(0)$ is bounded. Taking $Y_t:=\widetilde{Y}_t-\int_0^t \overline{f}_s(0,0)\, {\rm d}s$, we obtain that $(Y,Z,U)$ solves the BSDE with the data $(\xi ,f)$. If moreover the function $f$ satisfies $({\rm \bf A}_{\rm \bf infi})$, then $f$ satisfies $({\rm \bf A}'_{\bm \gamma})$ (cf.\ Example \ref{exagamma}.3.) and hence uniqueness follows from applicability of the comparison argument in Proposition~\ref{comparegeneral}. \end{proof} \begin{example} A function $g$ is locally bounded in $|u|^2$ in the sense of condition 2. in Theorem~\ref{infinitetheo} if, for instance, $ u\mapsto g_t(u,e)$ is twice differentiable for any $(\omega ,t,e)$, with the second derivative in $u$ being locally bounded uniformly in $(\omega ,t,e)$, and $g_t(0,e)\equiv g'_t(0,e)\equiv 0$ vanishing. \end{example} \begin{example} An example for a generator that satisfies the assumption of Theorem~\ref{infinitetheo} but has super-exponential growth is $f$ of the form (\ref{generator}) with $\widehat{f}\equiv0$ and $g_t(u)=\exp(|u^+|^2)-1$. Here exists, in general, no $\gamma\in (0,\infty)$ such that $-\frac{1}{\gamma}(e^{-u}+u-1)\le g_t(u) \le \frac{1}{\gamma}(e^u-u-1)$ holds for all $u$ and $t$. Thus, the example appears not to satisfy exponential growth assumptions as formulated, e.g., in \cite{AntonelliMancini16}[Assumption (H), Thm.1], \cite {ElKarouiMatoussiNgoupeyou16}[2.condition, Def.5.6] or \cite{KPZ15}[Assumption~3.1]. \end{example} Note that convexity is not required for our theorems on comparison, existence and uniqueness for JBSDEs. Many relevant applications are convex in nature, but not all, see examples in Section~\ref{subsubsec:CaseDiscAssetPrice}. \section{Examples from optimal control problems in finance} \label{sec:appl} Results for JBSDEs in the literature commonly rely on combinations of several, sometimes rather technical, assumptions. But their scope might be difficult to judge at first sight, without examples, and to verify them could be not easy. We discuss concrete examples to illustrate the applicability and the scope of the previous results. The examples do also help to shed some light on connections and differences to related literature. Counter examples might caution against potential pitfalls. The applications in Section~\ref{subsect:ExpoUtilMax} are about exponential utility maximization, possibly with an additive liability, and illustrate how the JBSDE theory from previous sections applies in this problem, which is closely related to the entropic risk measure and has indeed been a standard motivation for much of the (quadratic, non-Lipschitz) JBSDE theory, cf.\ \cite{Becherer06,BarrieuElKaroui09,Morlais09,Becherer10uiv,LaevenStadje14,KPZ15}. A result on existence of a solution for the specific JBSDE of this application has been presented in \cite{Morlais10}, being more general in some aspects (compact constraints, jump-diffusion stock price) but less so in others (multiple assets, time inhomogeneous $\mu$, unbounded controls). Section~\ref{subsubsec:powut} shows how a change of coordinates can transform a JBSDE, that arises from an optimal control problem but appears to be out of scope at first, into a JBSDE for which theory of Section~\ref{sec:exandu} can be applied to derive optimal controls from BSDE results, like in \cite{Huetal05}. To our best knowledge, the considered power-utility problem with jumps and multiplicative liability is solved for the first time in this spirit. Finally, Section~\ref{subsec:gdprice} derives JBSDE solutions for the no-good-deal valuation problem in incomplete markets, which is posed over a multiplicatively stable sub-family of arbitrage-free pricing measures. Also here, where the (non-linear) JBSDE generator is even Lipschitz, the slight generalization of Proposition~\ref{comparegeneral} to the classical comparison result by \cite{Royer06} is useful; Indeed, the process $\gamma$ in (\ref{eq:IneqonGenwithGammadiffFromRoyer}) is such that the martingale condition (\ref{gamma**}) for Proposition~\ref{comparegeneral} can be readily verified, while the same appears not clear for condition $({\rm \bf A}_{\bm \gamma})$ in \cite[Thm.2.3]{Royer06}. Sections~\ref{subsubsec:CaseContAssetPrice}, \ref{subsubsec:powut} and \ref{subsec:gdprice} consider models for a financial market within the framework of Section~\ref{sec:prelim}, consisting of one savings account with zero interest rate (for simplicity) and $k$ risky assets ($k\leq d$), whose discounted prices evolve according to the stochastic differential equation \begin{align}\label{eq:continuousStock} {\rm d}S_t={\rm diag}(S_t^i)_{1\leq i\leq k}\sigma_t (\varphi_t {\rm d}t+{\rm d}B_t)=:{\rm diag}(S_t){\rm d}R_t, \quad t\in [0,T], \end{align} with $S_0\in (0,\infty)^k$, where the market price of risk $\varphi$ is a predictable $\mathbb{R}^d$-valued process, with $\varphi_t \in \mathrm{Im}\, \sigma_t^{T}=(\mathrm{Ker}\, \sigma_t)^{\bot}$ for all $t\leq T$, and $\sigma$ is a predictable $\mathbb{R}^{k\times d}$-valued process such that $\sigma$ is of full rank $k$ (i.e.\ $\det (\sigma_t\sigma_t^{T})\neq 0$ $\mathbb{P}\otimes {\rm d}t$-a.e.) and integrable w.r.t.\ \( \widehat{B}:=B+\int_0^\cdot \varphi_t\, {\rm d}t. \) We take the market price of risk $\varphi$ to be bounded $\mathbb{P}\otimes {\rm d}t$-a.e.. The market is free of arbitrage in the sense that the set ${\cal M}^{\rm e}$ of equivalent local martingale measures for $S$ is non-empty. In particular, ${\cal M}^{\rm e}$ contains the minimal martingale measure \begin{align} {\rm d}\widehat{\mathbb{P}}:=\mathcal{E}\left( -\varphi\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B \right)_T {\rm d}\mathbb{P}=\exp \Big( -\varphi\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B_T-\frac{1}{2}\int_0^T |\varphi_t|^2\, {\rm d}t \Big) {\rm d}\mathbb{P}, \label{newmeasure} \end{align} under which $\widehat{B}$ is a Brownian motion and $S$ is a local martingale by Girsanov's theorem. Clearly, the market (\ref{eq:continuousStock}) is incomplete in general (even if $k=d$ and $\sigma$ is invertible, when the random measure is not trivial, filtration then being non-Brownian), cf.\ Example~$\ref{example_WPRP}$. \subsection{Exponential utility maximization}\label{subsect:ExpoUtilMax} For a market with stock prices as in (\ref{eq:continuousStock}), consider the expected utility maximization problem \begin{align} \label{utilitymax1} v_t(x) =\mathop{\mbox{ess sup}}_{\theta\in \Theta} \mathbb{E} \big(u\big(X_T^{\theta,t,x}-\xi \big)|\mathcal{F}_t\big), \quad t\le T,\ x\in \mathbb{R}, \end{align} for the exponential utility function $u(x):=-\exp (-\alpha x)$ with absolute risk aversion $\alpha >0$, with some additive liability $\xi$ and for wealth processes $X^{\theta,t,x}$ of admissible trading strategies $\theta$ as defined below. We are going to show, how the value process $v$ and optimal trading strategy $\theta^*$ for the problem (\ref{utilitymax1}) can be fully described by a JBSDEs for two distinct problem cases. \subsubsection{Case with continuous price processes of risky assets}\label{subsubsec:CaseContAssetPrice} The set of available trading strategies $\Theta$ consists of all $\mathbb{R}^d$-valued, predictable, S-integrable processes $\theta$ for which the following two conditions are satisfied: $\mathbb{E}( \int_0^T |\theta_t|^2\, {\rm d}t )$ is finite, and the family $\big\{ \exp( -\alpha \int_0^{\tau} \theta_t {\rm d}\widehat{B}_t )\,\big| \,\tau \mbox{ stopping time, }\tau \leq T \big\}$ of random variables is uniformly integrable under $\mathbb{P}$. Starting from initial capital $x\in \mathbb{R}$ at some time $t\le T$, the wealth process corresponding to investment strategy $\theta\in \Theta$ is given by $X_s^{\theta}=X_s^{\theta,t,x}=x+\int_t^s \theta_u\, {\rm d}\widehat{B}_u$, $s\in [t,T]$. For this subsection, we assume $k=d$ (so $f$ will not be quadratic in $z$). Let $(Y,Z,U)$ in $\mathcal{S}_{\widehat{\mathbb{P}}}^{\infty}\times \mathcal{L}_{\widehat{\mathbb{P}}}^2(\widehat{B})\times \mathcal{L}_{\widehat{\mathbb{P}}}^2(\widetilde{\mu})$ be the unique solution to the BSDE \( Y_t =\xi +\int_t^T f_s(Y_{s-},Z_s,U_s)\, {\rm d}s-\int_t^T Z_s\, {\rm d}\widehat{B}_s-\int_t^T \mskip-10mu \int_E U_s(e)\, \widetilde{\mu}({\rm d}s,{\rm d}e) \) under the minimal local martingale measure $\widehat{\mathbb{P}}$ for the generator \begin{equation} \label{fgenexput} f_t(y,z,u):=-\frac{|\varphi_t|^2}{2\alpha}+\int_E \frac{\exp (\alpha u(e))-\alpha u(e)-1}{\alpha}\, \zeta (t,e)\, \lambda ({\rm d}e)\, \end{equation} which does exist by Theorem~\ref{infinitetheo}. Under $\mathbb{P}$ the BSDE is of the form \[ Y_t =\xi +\int_t^T f_s(Y_{s-},Z_s,U_s)-\varphi_sZ_s\, {\rm d}s-\int_t^T Z_s\, {\rm d}B_s-\int_t^T \mskip-10mu \int_E U_s(e)\, \widetilde{\mu}({\rm d}s,{\rm d}e). \] To prove optimality by a martingale principle one constructs, cf.\ \cite{Huetal05}, a family of processes $(V^{\theta})_{\theta \in \Theta}$ such that three conditions are satisfied: {(i)} $V_t^{\theta}=V_t$ is a fixed $\mathcal{F}_t$-measurable bounded random variable invariant over $\theta\in \Theta$, {(ii)} $V_T^{\theta}=-\exp (-\alpha (X_T^{\theta}-\xi ))=-\exp \big(-\alpha \big(x+\int_t^T \theta_s {\rm d}\widehat{B}_s-\xi \big)\big)$, and {(iii)} $V^{\theta}$ is a supermartingale for all $\theta \in \Theta$ and there exists a $\theta^* \in \Theta$ such that $V_s^{\theta^*}$ ($s\in [t,T]$) is a $\mathbb{P}$-martingale. Then $\theta^*$ is the optimal strategy and $(V^{\theta^*}_s)_{s\in[t,T]}$ is the value process of the control problem (\ref{utilitymax1}). Indeed, $\mathbb{E}\big(V_T^{\theta}\,\big|\,\mathcal{F}_t\big)\leq V_t^{\theta}=V_t^{\theta^*}=\mathbb{E}\big(V_T^{\theta^*}\,\big|\,\mathcal{F}_t\big)$ for each $\theta \in \Theta$ implies $v_t(x)=\mathop{\mbox{ess sup}}_{\theta \in \Theta}\mathbb{E}\big(V_T^{\theta}\,\big|\,\mathcal{F}_t\big)=V_t^{\theta^*}$. An ansatz $V^{\theta}= u(X^{\theta}-Y)$ yields \begin{align*} V_s^{\theta}&= V_t^{\theta} \exp\Big( \frac{\alpha^2}{2} \int_t^s \Big| \theta_r-Z_r-\frac{\varphi_r}{\alpha}\Big|^2\,{\rm d}r \Big)\, \mathcal{E}(M)_t^s \quad \mbox{for all }s\in [t,T],\quad\text{with} \\ M_t&= -\alpha \int_0^t \theta_r-Z_r\, {\rm d}\widehat{B}_r+\int_0^t \mskip-5mu \int_E \exp (\alpha U_r(e)-1)\, \widetilde{\mu}({\rm d}r,{\rm d}e) \quad \mbox{and} \quad \mathcal{E}(M)_t^s:=\frac{\mathcal{E}(M)_s}{\mathcal{E}(M)_t}. \end{align*} Therefore, $V^{\theta}$ is a supermartingale for all $\theta \in \Theta$ and a martingale for $\theta^{*}=Z+\varphi /\alpha$ due to the fact that $\mathcal{E} (M)$ is a (local) martingale of the form \[ \mathcal{E}(M)_s=\exp \Big( -\frac{\alpha^2}{2}\int_0^s |\theta_u-Z_u-\varphi_u/\alpha |^2\, {\rm d}u \Big)\, \exp \Big(-\alpha \Big(Y_0+\int_0^s\theta_u\, {\rm d}\widehat{B}_u-Y_s\Big)\Big)\,. \] Using the boundedness of $Y$, one readily obtains by arguments like in \cite{Huetal05,Morlais10} that $\mathcal{E}(M)$ is uniformly integrable and hence a martingale (see\ e.g.\ eqn.~(4.19) in \cite{Becherer06}). This yields \begin{example} Let $k=d$ and $\lambda (E)\leq \infty$. Let $(Y,Z,U)\in \mathcal{S}_{\widehat{\mathbb{P}}}^{\infty}\times \mathcal{L}_{\widehat{\mathbb{P}}}^2(\widehat{B})\times \mathcal{L}_{\widehat{\mathbb{P}}}^2(\widetilde{\mu})$ be the unique solution to the BSDE $(\xi,f)$ under $\widehat{\mathbb{P}}$ for generator $f$ from (\ref{fgenexput}). Then the strategy $\theta^*=Z+{\varphi}/{\alpha}$ is optimal for the control problem (\ref{utilitymax1}) and achieves at any time $t\le T$ the maximal expected exponential utility $v_t(x)=-\exp (-\alpha (x-Y_t))=V^{\theta^*}_t$. \end{example} Note that exponential utility maximization is closely related to the popular entropic convex risk measure. We will relate to this in Example~\ref{counterexplcomparison} to further illustrate the scope of assumptions. \subsubsection{Case with discontinuous risky asset price processes}\label{subsubsec:CaseDiscAssetPrice} We further illustrate the extend to which results by \cite{Morlais09,Morlais10}, who has pioneered the stability approach to BSDE with jumps specifically for exponential utility, fit into our framework and demonstrate by concrete examples some notable differences in scope in relation to complementary approaches. To this end, let us consider the same utility problem but now in a financial market with pure-jump asset price processes, possibly of infinite activity (as e.g.\ in the CGMY model of \cite{CGMY02}), and with constraint on trading strategies. We note that a pure-jump setting appears as a natural setup for our JBSDE results, which admit for generators that are (roughly said) 'quadratic' in the $u$-argument but not in $z$-argument, differently from, e.g., \cite{Morlais10,KPZ15,LaevenStadje14,AntonelliMancini16,Yao17}. Let $\mu=\mu^L$ be the random measure associated to a pure-jump L\'evy process $L$ with L\'evy measure $\lambda({\rm d}e)$, on $E=\mathbb{R}^1\setminus\{0\}$. Let $\mathbb{F}=\mathbb{F}^L$ be the usual filtration generated by $L$. The compensated random measure $\widetilde{\mu}=\widetilde{\mu}^L:=\mu^L-\nu$, with $\nu({\rm d}t,{\rm d}e)=\lambda({\rm d}e){\rm d}t$ of $L$ alone has the weak PRP w.r.t.\ the filtration $\mathbb{F}$ (see Example \ref{example_WPRP}.1.). Note that $\mu$ could be of infinite activity, i.e.\ $\lambda(E) \le \infty$, for instance for $L$ being a Gamma process. In contrast to the setup of Section \ref{subsubsec:CaseContAssetPrice}, we consider now a financial market whose single risky asset prices evolves in a non-continuous fashion, being given by a pure-jump process \begin{equation*} {\rm d}S_t =S_{t-}\Big(\beta_t{\rm d}t+\int_E\psi_t(e)\widetilde{\mu}({\rm d}t,{\rm d}e\Big)\quad \text{for $t\in[0,T]$, with $S_0\in (0,\infty)$,} \end{equation*} where $\beta$ is predictable and bounded, and $\psi>-1$ is $\widetilde{\mathcal{P}}$-measurable, in $L^2(\mathbb{P}\otimes\lambda\otimes {\rm d}t)\cap L^\infty(\mathbb{P}\otimes\lambda\otimes {\rm d}t)$ and satisfies $\int_E\lvert\psi_t(e)\rvert^2\lambda({\rm d}e)<\text{const.}$ $\mathbb{P}\otimes {\rm d}t$-a.e.. The set $\Theta$ of admissible trading strategies consists of all $\mathbb{R}$-valued predictable $S$-integrable processes $\theta\in L^2(\mathbb{P}\otimes {\rm d}t)$, such that $\theta_t(\omega)\in C$ for all $(t,\omega)$, for a fixed compact set $C\subset \mathbb{R}$ of trading constraint containing $0$. Interpreting trading strategies $\theta$ as amount of wealth invested into the risky asset yields wealth process $X^{\theta,t,x}$ from initial capital $x$ at time $t$ as $$ X^{\theta,t,x}_s = X^{\theta,t,x}_t + \int_t^s\theta_u\frac{{\rm d}S_u}{S_{u-}} = x + \int_t^s\theta_u\Big(\beta_u{\rm d}u+\int_E\psi_u(e)\widetilde{\mu}({\rm d}u,{\rm d}e)\Big),\quad s\ge t. $$ Because of the compactness of $C$ and the fact that $\psi\in L^2(\mathbb{P}\otimes\lambda\otimes {\rm d}t)\cap L^\infty(\mathbb{P}\otimes\lambda\otimes {\rm d}t)$, admissible strategies are bounded and for all $\theta\in\Theta$ one can verify that \( \left\lbrace \exp(-\alpha X^\theta_\tau)|\ \tau\ \text{an $\mathbb{F}$-stopping time}\right\rbrace \) {is uniformly integrable}; arguments being like in \cite[Lem.1]{Morlais10}. Consider the JBSDE \begin{equation}\label{eq:JBSDEUMP} -{\rm d}Y_t = f(t,U_t){\rm d}t - \int_E U_t(e)\widetilde{\mu}({\rm d}t,{\rm d}e),\quad Y_T=\xi, \end{equation} with terminal condition $\xi\in L^\infty(\mathcal{F}_T)$ and generator $f$ defined pointwise by \begin{equation}\label{eq:GenJBSDEUMP} f(t,u) := \inf_{\theta\in C}\Big(-\theta\beta_t+\int_Eg_\alpha\big(u(e)-\theta\psi_t(e)\big)\lambda({\rm d}e)\Big),\quad t\in[0,T], \end{equation} for the function $g_\alpha:\mathbb{R}\to\mathbb{R}$ with $g_\alpha(u) := {({\rm e}^{\alpha u}-\alpha u-1)}/{\alpha}$. We have the following \begin{example} Let $(Y,U)\in \mathcal{S}^{\infty}\times \mathcal{L}^2(\widetilde{\mu})$ be the unique solution to the JBSDE (\ref{eq:JBSDEUMP}). Then the strategy $\theta^*$ such that $\theta^{*}_t$ achieves the infimum in (\ref{eq:GenJBSDEUMP}) for $f(t,U_t)$ is optimal for the control problem (\ref{utilitymax1}) and achieves at any $t\in[0,T]$ the maximal expected exponential utility $v_t(x)=-\exp (-\alpha (x-Y_t))=V^{\theta^*}_t$. \end{example} \begin{proof} Using the martingale optimality principle one obtains, like in the cited literature and analogously to Section \ref{subsubsec:CaseContAssetPrice}, that if $(Y,U)\in\mathcal{S}^\infty\times \mathcal{L}^2(\widetilde{\mu})$ is a solution to the JBSDE (\ref{eq:JBSDEUMP}) then the solution to the utility maximization problem (\ref{utilitymax1}) is indeed given by $v_t(x) = u(x-Y_t)$, with the strategy $\theta^*$ where $\theta^{*}_t(\omega)$ achieves the infimum $f(\omega,t,U_t(\omega))$ in (\ref{eq:GenJBSDEUMP}) for all $(\omega,t)$ being optimal (it exists by measurable selection \cite{Rockafellar}). To complete the derivation of this example, it thus just remains to show that the JBSDE (\ref{eq:JBSDEUMP}) indeed admits a unique solution, with trivial $Z$-component $Z=0$. This is shown by applying Theorem~\ref{infinitetheogeneral} and Corollary~\ref{cor:JBSDEZzero} since $\xi\in L^\infty(\mathcal{F}^L_T)$ and the generator $f$ does not have a $z$-argument and is $\mathbb{F}^L$-predictable in $(t,\omega)$. It is straightforward, albeit somewhat tedious, to verify that the conditions~1-5 and $(B_{\gamma^n})$, $n\in \mathbb{N}$, for Theorem~\ref{infinitetheogeneral} are indeed satisfied for the sequence of $\mathbb{F}^L$-predictable generators functions \begin{equation*} f^n(t,u) := \inf_{\theta\in C}\Big(-\theta\beta_t+\int_{A_n}g_\alpha\big(u(e)-\theta\psi_t(e)\big)\lambda({\rm d}e)\Big), \end{equation*} where $(A_n)_n$ is a sequence of measurable sets with $A_n\uparrow E$ and $\lambda(A_n)<\infty$ for all $n\in\mathbb{N}$, typically $A_n = (-\infty,-1/n]\cup[1/n,+\infty).$ Let us refer to \cite[Example~1.32]{KentiaPhD} for details of this verification, but explain here how to proceed further with the proof. By the first claim of Theorem~\ref{infinitetheogeneral} (together with Corollary~\ref{cor:JBSDEZzero}) one then gets existence of a solution $(Y,U)\in\mathcal{S}^\infty\times\mathcal{L}^2(\widetilde{\mu})$ to the JBSDE (\ref{eq:JBSDEUMP}), such that $U\ast\widetilde{\mu}$ is a BMO-martingale. To obtain uniqueness by applying the second claim, we need to check that $f$ satisfies condition $({\rm \bf A}'_{\bm \gamma})$: To this end, we define \( \gamma^{u,u'}_t(e) := \sup_{\theta\in C}\gamma^{\theta,u,u'}_t(e)\mathds{1}_{\{u\ge u'\}} +\inf_{\theta\in C}\gamma^{\theta,u,u'}_t(e)\mathds{1}_{\{u< u'\}}, \) for $\gamma^{\theta,u,u'}_t(e) := \int_0^1g'_\alpha\big(l(u-\theta\psi_t(e))+(1-l)(u'-\theta\psi_t(e))\big){\rm d}l$. Then (by Examples~\ref{exgamma} and \ref{exagamma}-2.) we get \( f(t,U_t) - f(t,U'_t) \le \int_E \gamma^{U,U'}_t(e)\big( U_t(e) - U'_t(e)\big)\lambda({\rm d}e) \) for all $U,U'$ with $\lvert U\rvert_\infty<\infty,\lvert U'\rvert_\infty<\infty$. Now let $u,u'$ be bounded by $c>0$; Since $g'_\alpha(0)=0$, applying the mean-value theorem to $g'_\alpha$ in the expression of $\gamma^{\theta,u,u'}$ gives \( \big\lvert \gamma^{\theta,u,u'}_t(e)\big\rvert \le \sup_{|x|\le \tilde{c}}\lvert g''_{\alpha}(x)\rvert\big( \lvert u\rvert + \lvert u'\rvert +\lvert \theta\rvert \lvert \psi_t(e)\rvert \big) \) { for all }$\theta\in C$, where $\tilde{c}:=c+\lVert \psi\rVert_\infty \text{diam}(C)$. This implies (for $c=\lvert U\rvert_\infty\vee\lvert U'\rvert_\infty<\infty$) \begin{equation*} \sup_{\theta\in C}\big\lvert \gamma^{\theta,U,U'}_t(e)\big\rvert \le \sup_{|x|\le \tilde{c}}\lvert g''_{\alpha}(x)\rvert\Big( \lvert U_t(e)\rvert + \lvert U'_t(e)\rvert +\text{diam}(C) \lvert\psi_t(e)\rvert\Big). \end{equation*} Since $\lvert \inf_\theta\gamma^\theta\rvert \le \sup_\theta\lvert\gamma^\theta\rvert$, $\lvert \sup_\theta\gamma^\theta\rvert \le \sup_\theta\lvert\gamma^\theta\rvert$ and $\psi\ast\widetilde{\mu}$ is a BMO-martingale (as $\psi$ is bounded and $\int_E\lvert\psi_t(e)\rvert^2\lambda({\rm d}e)<\text{const.},\ \mathbb{P}\otimes {\rm d}t$-a.e.\ by assumption), then $\gamma^{U,U'}\ast\widetilde{\mu}$ is a BMO-martingale if $U\ast\widetilde{\mu}$ and $U'\ast\widetilde{\mu}$ are, thanks to $\lvert U\rvert_\infty<\infty$ and $\lvert U'\rvert_\infty<\infty$. Hence $f$ satisfies $({\rm \bf A}'_{\bm \gamma})$. \end{proof} \begin{example}\label{counterexplcomparison} (entropic convex risk measure) Let us consider the special case $\beta=\psi\equiv 0$ and $S\equiv 1$, i.e.\ the exponential utility problem {\em without} trading opportunities in a risky asset. One gets the important and well known example of the (dynamic) entropic risk measure $Y_t= (1/\alpha)\log \mathbb{E} (\exp(\alpha \xi) |\mathcal{F}_t)$ whose JBSDE description can be identified directly by exponential transformation. In the setup of the present subsection, this JBSDE is covered by the application study of \cite{Morlais10} and also by our comparison and wellposedness theorems, without any further conditions on the pure-jump L\'evy process. In contrast, let us demonstrate that the same scope is not already offered by the seminal comparison Thm.2.5 of \cite{Royer06} because her key condition (${\rm \bf A}_{\bm \gamma}$) is not satisfied, which is also supposed for results in \cite[as Assumpt.6.1 for wellposedness in Thm.6.3(i) and for comparison in Prop.6.4]{KPZ15} (and is further used for applications in \cite{KPZ16}): Indeed for $\alpha:=1$, just consider a compound Poisson process $L$ (being of finite activity) with uniformly distributed jump heights, taking $\lambda({\rm d}x):=\mathds{1}_{(0,1]}{\rm d}x$ ($x\in E=\mathbb{R}\setminus\{0\}$). Clearly, the generator $f(u)=\int_E \exp(u(x))-u(x)-1\,\lambda({\rm d}x)=:\int_E g(u(x))\lambda({\rm d}x)$ is not Lipschitz in $u\in L^2(\lambda)$. With $u^{\pm}(x):=\frac 1 2 (\pm {x}^{-3/2}+nx)\mathds{1}_{(1/n,1]}(x)$ in $L^2(\lambda)$ for $n\in \mathbb{N}$, we get $\int_0^1 {\rm e}^{u^+}-{\rm e}^{u^-}-u^+ + u^- {\rm d}\lambda \to \infty$ for $n\to \infty $ while $\int_0^1(u^+-u^-)(x) \cdot(1\wedge |x|){\rm d}x \le \int_0^1 x^{-1/2}{\rm d}x<\infty$ for all $n$, noting that $ {\rm e}^{u^+}-{\rm e}^{u^-}-u^+ + u^-\ge n x^{-1/2}\mathds{1}_{(1/n,1]}$. Thus, there cannot be constants $c_1\in (-1,0]$, $c_2<\infty$, such that $f(u)-f(v) \le \int_E (u-v)(x)\gamma^{u,v}(x)\,\lambda({\rm d}x)$ for all $u,v$, with $c_1(1\wedge|x|)\le \gamma^{u,v}(x) \le c_2(1\wedge|x|)$; This shows that condition (${\rm \bf A}_{\bm \gamma}$) in \cite{Royer06}, which is used as Assumption~6.1 in \cite{KPZ15}, is not satisfied here. Actually, the seminal (${\rm \bf A}_{\bm \gamma}$) condition from \cite{Royer06} does imply Lipschitz continuity of the generator in $u$. Similarly, a related condition on the jump measure has been stated in the assumptions of the main theorem in \cite[Thm.~1, see their inequality (4)]{AntonelliMancini16}; Their acticle further assumes (like also \cite{Yao17}, for instance) finite jump activity in that $\lambda(E)<\infty$ holds (in our notation, they write $\eta$ for $\lambda$), what is true in the present example (but is not required for \cite{Royer06}, or our previous sections). But in this example there cannot exist constants $c_1\in (-1,0]$, $c_2<\infty$ such that $f(u)-f(u') \le \int_E (u-u')(x)\gamma^{u,u'}(x)\,\lambda({\rm d}x)$ would hold for all $u,u'\in L^2(\lambda)$, with suitable functions $c_1 \le \gamma^{u,u'}(x) \le c_2 $. Indeed, the latter would imply (using Chauchy-Schwarz inequality) that $f$ is Lipschitz in $u$ on $L^2(\lambda)$, what is not true. Hence, the assumptions for Theorem~1 in \cite{AntonelliMancini16} appear not satisfied for the entropic risk example, and its conditions (with inequality (4) assumed for all $u,u'$) would imply that the JBSDE generator has to be Lipschitz continuous in $u\in L^2(\lambda$). \end{example} \begin{example}\label{ex:counterexampKPZ} We continue with the previous entropic risk example, but now take a standard Poisson process instead, i.e.\ $\lambda({\rm d}e) = \updelta_{\{1\}}({\rm d}e)$ as Dirac point measure at the fixed jump height $1$. Then $L^2(\lambda)$ is isomorphic to $\mathbb{R}$, and $f(u)=g(u)=\exp(u)-u-1$ for $u\in \mathbb{R}$. Obviously $g'$ and $g''$ are of exponential growth (in $u$) and cannot be bounded globally in $u\in \mathbb{R}$ by an affine function or by constants; hence Assumption~5.1(iii) for \cite[Thm.5.4]{KPZ15} cannot be satisfied. Moreover, also Assumption~4.3(iii) for \cite[Thms.4.3, 5.4 and 6.3(ii)]{KPZ15}, noting their Lem.5.4, appears clearly violated since (taking $u'=0$) there exist no $\psi,c\in \mathbb{R}$ such that $ |g(u)-\psi u| \le c |u|^2$ for all $u\in \mathbb{R}$. \end{example} Note that, since the function $(u,\theta)\mapsto f^\theta(\cdot,u) :=-\theta\beta_\cdot+\int_Eg_\alpha\big(u(e)-\theta\psi_\cdot(e)\big)\lambda({\rm d}e)$ is convex, the generator constructed as $f=\inf_{\theta\in C}f^\theta(\cdot,u)$ (cf.\ \ref{eq:GenJBSDEUMP}) would be convex in $u$ if the constraint set $C$ were assumed to be convex; But for non-convex trading constraints $C$ the generator can be non-convex in general. Similar constructions of generators are typical in this application context see e.g.\ \cite[eqn.~(15)]{LaevenStadje14}. Some results on JBSDE in the literature are using convexity of the generator function. In contrast, convexity is not being required for the present paper. Next, we give a concrete example where $f$ in (\ref{eq:GenJBSDEUMP}) for the (primal) control problem is indeed non-convex in $u$. To this end, consider a simple trading constraint that is non-convex, taking $ C:=\{\theta^0,\ldots,\theta^m\}\subset \mathbb{R} $ as a finite set including the zero $\theta^0:=0$. Here $f$ of JBSDE (\ref{eq:JBSDEUMP}) becomes $$ f(t,u)=\inf_{k\in\{0,\ldots,m\}}\Big(-\theta^k\beta_t+\int_Eg_\alpha\big(u(e)-\theta^k\psi_t(e)\big)\lambda({\rm d}e)\Big)\,. $$ \begin{example} Continuing with the above generator $f$, now let us take the particular case where $\lambda({\rm d}e) = \updelta_{\{1\}}({\rm d}e)$, i.e.\ $L$ is a standard Poisson process with constant jump height $1$, and let $\alpha=1$ and $\beta=0$. Observing that $L^2(\lambda)$ here is isomorphic to $\mathbb{R}$, we see that \begin{equation}\label{eq:simplegeneratorf} f(t,u)=\min_{k\in\{0,\ldots,m\}}\left({\rm e}^{(u-\theta^k\psi_t)}-(u-\theta^k\psi_t) -1 \right), \end{equation} is clearly non-convex in $u\in\mathbb{R}$, unless $\psi \equiv 0$ or $C=\{0\}$. But $f$ in (\ref{eq:simplegeneratorf}) is absolutely continuous in $u$ with density function being strictly greater than $-1$, locally bounded in u from above and locally of linear growth; as this $f$ satisfies condition $({\rm \bf A}_{\rm \bf infi})$, existence and uniqueness for the corresponding JBSDE (\ref{eq:JBSDEUMP}) can be obtained from Theorem~\ref{infinitetheo}. Similarly as before, one can check that in this example the assumptions of \cite[Thm.2.5]{Royer06} and \cite[Thm.5.4, Thm.6.3(i)-(ii), Prop.6.4]{KPZ15} for comparison and wellposedness of JBSDE are not satisfied; The example clearly shows how non-convex constraints can indeed lead to a non-convex $f$, which does not satisfy the conditions for the JBSDE results of \cite[Thm.A28, Cor.A29, Prop.A30, being used further in the proofs for Thms.4.3, 4.5, all involving convexity assumption ``(c)'']{LaevenStadje14}. \end{example} We proceed next with examples beyond exponential utility, that was the topic in \cite{Morlais09,Morlais10}). \subsection{Power utility maximization}\label{subsubsec:powut} Again for the market with stock price dynamics (\ref{eq:continuousStock}), we consider the utility maximization problem \begin{align} \label{utilitymax2} v_t(x) =\mathop{\mbox{ess sup}}_{\theta\in \Theta}\, \mathbb{E} \big(u\big(X_T^{\theta,t,x}\big)\xi\, \big\lvert\,\mathcal{F}_t\big)= \frac{1}{\gamma}\mathop{\mbox{ess sup}}_{\theta\in \Theta}\, \mathbb{E} \big(u\big(X_T^{\theta,t,x} \xi'\big)\, \big\lvert\, \mathcal{F}_t\big)\,,\quad t\le T,\, x>0, \end{align} for power utility $u(x)=x^{\gamma}/\gamma$ with relative risk aversion $1-\gamma>0$ for $\gamma \in (0,1)$, with multiplicative liability $\xi$ (alternatively, $\xi':=(\gamma \xi)^{1/\gamma}$ can be interpreted as an unknown future tax rate). The wealth process of strategy $\theta$ (denoting fraction of wealth invested) is $X^{\theta}_s=X^{\theta,t,x}_s =x+\int_t^s X_u^{\theta}\theta_u\, {\rm d}\widehat{B}_u=x\mathcal{E}(\int \theta {\rm d}\widehat{B})_t^s$ for $s\in[t,T]$, for $\theta \in \Theta$, with the set $\Theta$ of strategies given by all $\mathbb{R}^d$-valued, predictable, $S$-integrable processes such that $\theta\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B$ is a ${\rm BMO}(\mathbb{P})$-martingale, cf.\ \cite{HeWangYan92}. \begin{proposition} \label{propbdblw} Let $k=d$. Assume that there is a solution $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ to the BSDE $(\xi ,f)$ with $f_t(y,z,u):=(\gamma/(2-2\gamma))\,y\,|\varphi_t+{y}/{z}|^2$ and $\int Z\, {\rm d}B\in {\rm BMO}(\mathbb{P} )$ and where $\xi$ is in $L^{\infty}(\mathcal{F}_T)$ with $\xi \geq c$ for some $c>0$. Then $Y\geq c$ holds and $V^{\theta}:=u(X^{\theta})Y$ is a supermartingale for all $\theta$ in $\Theta$ and $V^{\theta^*}$ is a martingale for $\theta^* :=(1-\gamma)^{-1}(\varphi +{Z}/{Y_-})\in \Theta$. \end{proposition} \begin{proof} Clearly, $V^{\theta}$ is adapted. Kazamaki's criterion $\mathcal{E}(\int_0^. \gamma \theta_u {\rm d}\widehat{B}_u)$ is an $r$-integrable martingale for some $r>1$. Hence $\sup_{t\leq s\leq T} \mathcal{E}(\int_0^. \gamma \theta_u {\rm d}\widehat{B}_u)_t^s$ is integrable by Doob's inequality. By \begin{equation*} \mathcal{E}(\theta\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{}\widehat{B})^{\gamma} = \mathcal{E}(\gamma \theta\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} \widehat{B}) \exp \Big( -\frac{1}{2}\gamma (1-\gamma )\int_0^. |\theta_u|^2\, {\rm d}u\Big) \leq \mathcal{E}(\gamma \theta\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{}\widehat{B})\,, \end{equation*} we conclude that $V^{\theta}$ is dominated by $\sup_{t\leq s\leq T}U(X_s^{\theta})|Y|_{\infty}\in L^1(\mathbb{P} )$. By It\^o's formula, ${\rm d}V_s^{\theta}$ equals a local martingale plus the finite variation part \[ u(X_s^{\theta})\left(-f_s(Y_{s-},Z_s,U_s)+\gamma \left(Y_{s-}\Big(\theta_s \varphi_s +\frac{1}{2}(\gamma -1)|\theta_s|^2\Big)+\theta_s Z_s\right)\right){\rm d}s\,. \] The latter part is decreasing for all $\theta \in \Theta$ and vanishes at zero for $\theta=\theta^*$. So $V^{\theta}$ is a local (super)martingale. Uniform integrability of $V^{\theta}$ yields the (super)martingale property. By the classical martingale optimality principle of optimal control follows that $ v_t(x)=\mathop{\mbox{ess sup}}_{\theta\in \Theta} \mathbb{E} (u(X_T^{\theta}\xi^{1/\gamma} )|\mathcal{F}_t)$ equals $V_t^{\theta^*}=\gamma^{-1}x^{\gamma}Y_t\,,$ and evaluating at $\theta \equiv 0$ yields $\gamma^{-1}x^{\gamma}\mathbb{E} (\xi |\mathcal{F}_t)\leq \gamma^{-1}x^{\gamma}Y_t$ and hence $Y\geq c$. Note that $\theta^*$ is in $\Theta$ since $\varphi$ is bounded, $Y$ is bounded away from $0$ and $Z$ is an BMO integrand. \end{proof} Let $(Y,Z,U)$ be a solution to the BSDE $(\xi ,f)$ with the above data. Since a suitable solution theory for quadratic BSDEs with jumps is not available, we transform coordinates by letting \begin{align} \widetilde{Y}_t:=Y_t^{\frac{1}{1-\gamma}},\quad \widetilde{Z}_t:=\frac{1}{1-\gamma}Y_{t-}^{\frac{\gamma}{1-\gamma}}Z_t \quad \mbox{and} \quad \widetilde{U}_t:=(Y_{t-}+U_t)^{\frac{1}{1-\gamma}}-Y_{t-}^{\frac{1}{1-\gamma}}\,, \label{vartrafo} \end{align} such that $(\widetilde{Y},\widetilde{Z},\widetilde{U})$ solves the BSDE for data $(\widetilde{\xi},\widetilde{f})$ with $\widetilde{\xi} =\xi^{1/(1-\gamma)}$ and $\widetilde{f}_t(y,z,u)$ given by \[ \frac{\gamma |\varphi_t|^2}{2(1-\gamma )^2}y+\frac{\gamma}{1-\gamma}\varphi_tz +\int_E \left(\frac{1}{1-\gamma}\left((u(e)+y)^{1-\gamma}y^{\gamma}-y\right)-u(e)\right)\, \zeta (t,e)\, \lambda ({\rm d}e). \] Looking at the proof of Lemma~\ref{basicprops2}, we may assume that $U+Y_-$ coincides pointwise with $Y_-$ or $Y$ so that the above transformation is well-defined due to $Y\geq c$. In fact, $(\ref{vartrafo})$ gives a bijection between solutions with positive Y-components to the BSDEs $(\xi ,f)$ and $(\widetilde{\xi},\widetilde{f})$ in $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$. Next, we show the existence of a JBSDE solution for data $(\xi ,f)$ with $\xi \geq c$ for some $c>0$. Under the probability measure ${{\rm d}\widetilde{\mathbb{P}}}:=\mathcal{E}\big(\gamma(1-\gamma)^{-1}\,\varphi\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B\big)_T \, {{\rm d}\mathbb{P}}$ the process $\widetilde{B}=B-\int_0^. \gamma(1-\gamma)^{-1} \varphi_t\, {\rm d}t$ is a Brownian motion and the JBSDE \[ \widetilde{Y}_t =\widetilde{\xi} +\int_t^T \widetilde{f}_s(\widetilde{Y}_{s-},\widetilde{Z}_s,\widetilde{U}_s)\, {\rm d}s -\int_t^T \widetilde{Z}_s\, {\rm d}B_s-\int_t^T \int_E \widetilde{U}_s(e)\, \widetilde{\mu}({\rm d}s,{\rm d}e) \] under $\mathbb{P}$ is of the following form under $\widetilde{\mathbb{P}}$ \begin{align} \label{BSDEtildeP} \widetilde{Y}_t =\widetilde{\xi} +\int_t^T \Big( \widetilde{f}_s(\widetilde{Y}_{s-},\widetilde{Z}_s,\widetilde{U}_s)-\frac{\gamma \varphi_s}{1-\gamma}\widetilde{Z}_s\Big) \, {\rm d}s -\int_t^T \widetilde{Z}_s\, {\rm d}\widetilde{B}_s-\int_t^T \int_E \widetilde{U}_s(e)\, \widetilde{\mu}({\rm d}s,{\rm d}e)\,, \end{align} noting that $\nu$ is the compensator of $\mu$ under $\mathbb{P}$ and $\widetilde{\mathbb{P}}$ as well. In fact, we have \begin{lemma} \label{bijection} Assume $\lambda (E)<\infty$. Then $(\widetilde{Y},\widetilde{Z},\widetilde{U})\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ solves the BSDE $(\widetilde{\xi},\widetilde{f})$ such that $\int \widetilde{Z}\, {\rm d}B$ is in ${\rm BMO}(\mathbb{P} )$ if and only if $(\widetilde{Y},\widetilde{Z},\widetilde{U})\in \mathcal{S}_{\widetilde{\mathbb{P}}}^{\infty}\times \mathcal{L}_{\widetilde{\mathbb{P}}}^2(\widetilde{B})\times \mathcal{L}_{\widetilde{\mathbb{P}}}^2(\widetilde{\mu})$ solves the BSDE $\big(\widetilde{\xi},\widetilde{f}(y,z,u)-\gamma(1-\gamma)^{-1}\varphi z\big)$ such that $\int \widetilde{Z}\, {\rm d}\widetilde{B}$ is in ${\rm BMO}(\widetilde{\mathbb{P}} )$. \end{lemma} \begin{proof} Equivalence of $\mathbb{P}$ and $\widetilde{\mathbb{P}}$ imply that $\widetilde{Y}\in \mathcal{S}^{\infty}$ if and only if $\widetilde{Y}\in \mathcal{S}_{\widetilde{\mathbb{P}}}^{\infty}$. Given $\lambda (E)<\infty$, $\widetilde{U}\in \mathcal{L}^2(\widetilde{\mu})$ holds if and only if $\widetilde{U}\in \mathcal{L}_{\widetilde{\mathbb{P}}}^2(\widetilde{\mu})$ due to the boundedness of $\widetilde{U}$. By \cite[Thm.3.6]{Kazamaki94}, the restriction of the Girsanov transform \( \Phi: \mathcal{M}_{\rm c}^{{\rm loc},0}(\mathbb{P})\longrightarrow \mathcal{M}_{\rm c}^{{\rm loc},0}(\widetilde{\mathbb{P}}), \)with \( M\mapsto M-\langle M,\int_0^. \frac{\gamma \varphi}{1-\gamma}\, {\rm d}B_s\rangle, \) onto ${\rm BMO}(\mathbb{P})$ yields a bijection between BMO$(\mathbb{P})$-martingales and BMO$(\widetilde{\mathbb{P}})$-martingales. Thus, $\int \widetilde{Z}\, {\rm d}B$ is in ${\rm BMO}(\mathbb{P})$ if and only if $\int \widetilde{Z}\, {\rm d}\widetilde{B}$ is in ${\rm BMO}(\widetilde{\mathbb{P}} )$ for $Z=(1-\gamma )\widetilde{Y}_-^{\gamma}\widetilde{Z}$ since $\Phi \big( \int \widetilde{Z}\, {\rm d}B\big)=\int \widetilde{Z}\, {\rm d}B-\int \gamma(1-\gamma)^{-1}\varphi \widetilde{Z}_s\, {\rm d}s=\int \widetilde{Z}\, {\rm d}\widetilde{B}$. In particular, $\widetilde{Z}\in \mathcal{L}^2(B)$ iff $\widetilde{Z}\in \mathcal{L}_{\widetilde{\mathbb{P}}}^2(\widetilde{B})$. \end{proof} According to Corollary~\ref{boundscor} there exists a unique solution $\big(\widetilde{Y},\widetilde{Z},\widetilde{U}\big)\in \mathcal{S}_{\widetilde{\mathbb{P}}}^{\infty}\times \mathcal{L}_{\widetilde{\mathbb{P}}}^2(B)\times \mathcal{L}_{\widetilde{\mathbb{P}}}^2(\widetilde{\mu})$ with positive $Y$-component to the BSDE~(\ref{BSDEtildeP}) with \[ c^{\frac{1}{1-\gamma}}\exp \Big( -\frac{\gamma |\varphi |_{\infty}^2}{2(1-\gamma )^2} (T-t)\Big)\, \leq\, \widetilde{Y}_t\,\leq\, |\xi |_{\infty}\exp \Big( \frac{\gamma |\varphi |_{\infty}^2}{2(1-\gamma )^2}(T-t)\Big) \] such that $\int \widetilde{Z}\, {\rm d}\widetilde{B}$ and $\widetilde{U}*\widetilde{\mu}^{\widetilde{\mathbb{P}}}$ are BMO($\widetilde{\mathbb{P}}$)-martingales. By Lemma~\ref{bijection} and the statement of Proposition~\ref{propbdblw} that every bounded solution to the BSDE $(\xi ,f)$ is bounded from below away from zero in $Y\ge c >0$, there is a unique solution $(Y,Z,U)$ in $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ with $\int Z\, {\rm d}B\in {\rm BMO}(\mathbb{P} )$ and it is given by the coordinate transform (\ref{vartrafo}). We note that $Y$ (resp. $\widetilde Y$) can be interpreted as (dual) opportunity process, see \cite[Sect.4]{Nutz10}. Overall, we obtain \begin{theorem} Assume $\lambda (E)<\infty$ and $d=k$. Let $f_s(y,z,u)= \gamma(2-2\gamma)^{-1}\,y\,\big| \varphi_s+{z}/{y}\big|^2$ and let $\xi \in L^{\infty}(\mathcal{F}_T)$ with $\xi \geq c$ for some $c> 0$. Then there exists a unique solution $(Y,Z,U)\in \SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$ with $\int Z\, {\rm d}B\in {\rm BMO}(\mathbb{P} )$ to the BSDE $(\xi ,f)$. Then the strategy $\theta_s^{*}=(1-\gamma)^{-1}\Big( \varphi_s+Z_s/Y_{s-} \Big)$ is optimal for the control problem (\ref{utilitymax2}), achieving $v_t(x) =\gamma^{-1}x^{\gamma}Y_t=V^{\theta^*}_t$. \end{theorem} \subsection{Valuation by good-deal bounds} \label{subsec:gdprice} In incomplete financial markets without arbitrage, there exist infinitely many pricing measures and the bounds imposed on valuations solely by the principle of no-arbitrage are typically far too wide for applications in practice. Good-deal bounds \cite{CochraneSaaRequejo00} have been introduced in the finance literature to obtain tighter bounds, by ruling out not only arbitrage but also trading opportunities with overly attractive reward-for-risk ratios, so-called good deals. See \cite{BechererKentia17a,BechererKentia17b} for more recent references. In \cite{CochraneSaaRequejo00,BjoerkSlinko06} good deals have been defined in terms of too favorable instantaneous Sharpe ratios (rate of excess return per unit rate of volatility) for continuous diffusion processes. This has been substancially generalized to a jump-diffusion setup by \cite{BjoerkSlinko06}, who describe good-deal bounds as solutions of nonlinear partial-integro differential equations by using (formal) HJB methods. We are going to complement their work here by a, possibly non-Markovian, rigorous description by JBSDEs. See \cite{DelongPelsser15} for a study of a case where the measure $\lambda$ has finite support. In our setting, the following description of the set $\mathcal{M}^{\rm e}$ of martingale measures is routine. \begin{proposition}\label{pro:CharactOfMe} $\mathcal{M}^{\rm e}$ consists of those measures $\mathbb{Q}\approx \mathbb{P}$ such that ${{\rm d}\mathbb{Q}}/{\rm d}\mathbb{P}=\mathcal{E}\left( \beta\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B + \gamma\ast\widetilde{\mu}\right)$, where $\gamma>-1$ is a $\widetilde{\mathcal{P}}$-measurable and $\widetilde{\mu}$-integrable function, and $\beta$ is a predictable process with $\int_0^T\abs{\beta_s}^2{\rm d}s<\infty$, satisfying $\beta=-\varphi+\eta$, such that $\eta\in\mathrm{Ker}\ \sigma,\ \mathbb{P}\otimes {\rm d}t\textrm{-a.e.}$. \end{proposition} We will refer to the tuple $(\gamma,\beta)$ for such a density ${\rm d}\mathbb{Q}/{\rm d}\mathbb{P}$ as the Girsanov kernel of $\mathbb{Q}$ relative to $\mathbb{P}$. Clearly, our market is incomplete in general as there exists infinitely many measures in $\mathcal{M}^{\rm e}$ if $\widetilde{\mu}$ is non-trivial or $k<d$. Bj\"ork and Slinko employed an extended Hansen-Jagannathan inequality \cite[see Sect.2]{BjoerkSlinko06} to bound the instantaneous Sharpe ratio by imposing a bound on market prices of risk. More precisely, Thm.2.3 of \cite{BjoerkSlinko06} showed that the instantaneous Sharpe ratio ${SR_t}$ in any market extended by derivative assets (i.e.\ for any local $\mathbb{Q}$-martingale) at any time $t$ satisfies $\abs{SR_t}\le \Vert(\gamma_t,\beta_t)\Vert_{L^2(\lambda_t)\times\mathbb{R}^d}$, with a (sharp) upper bound in terms of an $L^2$-norm for Girsanov kernels $(\gamma,\beta)$ of pricing measures in $\mathcal{M}^{\rm e}$, with $\lambda_t(\omega)({\rm d}e) := \zeta_t(\omega,e)\lambda({\rm d}e)$. As no-good-deal restriction they therefore impose a bound on the kernels of pricing measures \begin{equation}\label{eq:NGDRESTRICTIONWITHBconst} \Vert(\gamma_t,\beta_t)\Vert^2_{L^2(\lambda_t)\times\mathbb{R}^d}= \Vert \gamma_t\Vert^2_{L^2(\lambda_t)} + \abs{\beta_t}^2_{\mathbb{R}^d} \le K^2,\quad t\le T, \end{equation} by some given constant $K>0$. To complement the analysis of the problem posed by \cite{BjoerkSlinko06}, we are going to describe the dynamic good deal bounds rigorously by JBSDEs in a more general, possibly non-Markovian, setting with no-good-deal restriction as in (\ref{eq:NGDRESTRICTIONWITHBconst}), where $K$ can be a positive predictable bounded process instead of a constant. To this end, let the correspondence (set-valued) process $C$ be given by \begin{equation}\label{eq:CorrCNGDBoundSR} C_t := \left\lbrace(\gamma,\eta)\in L^2(\lambda_t)\times\mathbb{R}^d\,\Big\lvert\,\ \gamma>-1,\; \eta\in \mathrm{Ker}\, \sigma_t,\;\textrm{and }\;\Vert \gamma\Vert^2_{L^2(\lambda_t)} + \abs{\eta}^2_{\mathbb{R}^d}+ \abs{\varphi_t}^2_{\mathbb{R}^d} \le K_t^2\right\rbrace. \end{equation} We will write $(\gamma,\eta)\in C$ to denote that $\eta$ is a predictable process and $\gamma$ is a $\widetilde{\mathcal{P}}$-measurable process with with $(\gamma_t(\omega),\eta_t(\omega))\in C_t(\omega)$ holding for all $ (t,\omega)\in [0,T]\times\Omega$. For $(\gamma,\eta)\in C$, we know (cf.\ Example~\ref{exmartingale}.\ref{exmartingale1}) that $\mathcal{E}\big((-\varphi+\eta)\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B+\gamma\ast\widetilde{\mu}\big)>0$ is a martingale that defines as a density process of a probability measure $\mathbb{Q}^{\gamma, \eta}$ which is equivalent to $\mathbb{P}$. The set of such probability measures \begin{equation}\label{eq:QngdDefinition} \mathcal{Q}^{\mathrm{ngd}}:=\left\lbrace \mathbb{Q}^{\gamma,\eta}\,|\,\ (\gamma,\eta)\in C\right\rbrace\subseteq \mathcal{M}^{\rm e}, \end{equation} defines our set of no-good-deal measures. Beyond boundedness of $\varphi$, assume that $\abs{\varphi_t}_{\mathbb{R}^d}+\epsilon < K_t$ holds for for some $\epsilon>0$ for all $\ t\le T$. Then, in particular, the minimal martingale measure $\widehat{\mathbb{P}}=\mathbb{Q}^{\widehat{\gamma},\widehat{\eta}}$ is in $\mathcal{Q}^{\textrm{ngd}}\neq \emptyset$, with $(\widehat{\gamma},\widehat{\eta})\equiv(0,0)\in C$. For contingent claims $X\in L^\infty(\mathbb{P} )$, the processes \begin{equation*} \pi^u_t(X) := \mathop{\mbox{ess sup}}_{\mathbb{Q}\in\mathcal{Q}^{\textrm{ngd}}}\mathbb{E}_{\mathbb{Q}}(X|\mathcal{F}_t)\quad\textrm{and}\quad\pi^l_t(X) :=\mathop{\mbox{ess inf}}_{\mathbb{Q}\in\mathcal{Q}^{\textrm{ngd}}}\mathbb{E}_{\mathbb{Q}}(X|\mathcal{F}_t),\quad t\le T, \end{equation*} define the upper and lower good-deal bounds. Noting $\pi^l_\cdot(X)=-\pi^u(-X)$, we focus on $\pi^u(-X)$. One can check that the good-deal bound process satisfies good dynamic properties, e.g.\ time-consistency and recursiveness (cf.\ e.g.\ \cite[Lem.1]{BechererKentia17a}). By applying the comparison result of Proposition \ref{comparegeneral}, we are going to obtain $\pi^u(X)$ as the value process $Y$ of a BSDE with terminal condition $X\in L^\infty(\mathbb{P} )$. Denoting by $\Pi_t(\cdot)$ and $\Pi^\bot_t(\cdot)$ the orthogonal projections on $\mathrm{Im}\ \sigma_t^{T}$ and $\mathrm{Ker}\ \sigma_t$, we have the following lemma (cf.\ \cite[Lemmas~2.14, 2.22]{KentiaPhD} for details). \begin{lemma}\label{lem:OptProblemExist} For $Z\in \mathcal{L}^2(B)$ and $U\in \mathcal{L}^2(\widetilde{\mu})$ there exists $\bar{\eta}=\bar{\eta}(Z,U)$ predictable and $\bar{\gamma}=\bar{\gamma}(Z,U)$ $\widetilde{\mathcal{P}}$-measurable such that for $\mathbb{P}\otimes {\rm d}t$-almost all $(\omega,t)\in \Omega\times [0,T]$ holds \begin{equation}\label{eq:OptPBSR} \bar{\eta}_t\Pi^\bot_t(Z_t)+\int_EU_t(e)\bar{\gamma}_t(e)\zeta_t(e)\lambda({\rm d}e)= \max_{(\gamma,\eta)\in \bar{C}}\Big(\eta_t\Pi^\bot_t(Z_t)+\int_EU_t(e)\gamma_t(e)\zeta_t(e)\lambda({\rm d}e)\Big), \end{equation} where $\bar{C}_t= \left\lbrace(\gamma,\eta)\in L^2(\lambda_t)\times\mathbb{R}^d\,\Big\lvert\, \gamma\ge-1,\ \eta\in \mathrm{Ker}\ \sigma_t,\ \Vert \gamma\Vert^2_{L^2(\lambda_t)}+\abs{\eta}^2_{\mathbb{R}^d}\le K^2_t-\abs{ \varphi_t}^2_{\mathbb{R}^d}\right\rbrace$ is the closure of $C_t$ in $L^2(\lambda_t)\times\mathbb{R}^d$ for any $t\le T$. \end{lemma} To $(\bar{\gamma},\bar{\eta})\in\bar{C}$ of Lemma \ref{lem:OptProblemExist}, we associate a probability measure $\bar{\mathbb{Q}}\ll\mathbb{P}$ defined via ${{\rm d}\bar{\mathbb{Q}}}= \mathcal{E}\left((-\varphi+\bar{\eta})\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B + \bar{\gamma}\ast\widetilde{\mu}\right)\,{\rm d}\mathbb{P}$, which may not be equivalent to $\mathbb{P}$ as $\bar{\gamma}$ may be $-1$ on a non-negligible set. While $\bar{\mathbb{Q}}$ might not be in $\mathcal{Q}^{\textrm{ngd}}$ it belongs to the $L^1(\mathbb{P})$-closure of $\mathcal{Q}^{\textrm{ngd}}$ in general, as shown in \begin{lemma}\label{lem:QbarApprox} For $Z\in \mathcal{L}^2(B)$ and $U\in \mathcal{L}^2(\widetilde{\mu})$, let $(\bar{\gamma},\bar{\eta})$ be as in Lemma \ref{lem:OptProblemExist}. Define the measures $\bar{\mathbb{Q}}\ll\mathbb{P}$ via ${{\rm d}\bar{\mathbb{Q}}}= \mathcal{E}\big((-\varphi+\bar{\eta})\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B + \bar{\gamma}\ast\widetilde{\mu}\big) \,{{\rm d}\mathbb{P}}$ and $\mathbb{Q}^n := (1/n)\widehat{\mathbb{P}} + (1-1/n)\bar{\mathbb{Q}}$ for $n\in\mathbb{N}$. Then the densities ${\rm d}\mathbb{Q}^n/{\rm d}\mathbb{P}$ of the sequence $\left(\mathbb{Q}^n\right)_{n\in\mathbb{N}}$ in $ \mathcal{Q}^{\textrm{ngd}}$ converge to the one of $\bar{\mathbb{Q}}$ in $L^1(\mathbb{P})$ for $n\to\infty$. Consequently, $\pi^u_t(X)\ge \mathbb{E}_{\bar{\mathbb{Q}}}(X|\mathcal{F}_t)$ holds for all $ t\le T$. \end{lemma} \begin{proof} Let $n\in \mathbb{N}$. Clearly $\mathbb{Q}^n\approx\mathbb{P}$. Moreover ${{\rm d}\mathbb{Q}^n}/{{\rm d}\mathbb{P}}=Z^n:= (1/n)\widehat{Z} + (1-1/n)\bar{Z}$ with $\widehat{Z}:={{\rm d}\widehat{\mathbb{Q}}}/{{\rm d}\mathbb{P}}=\mathcal{E}(-\varphi\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B)$ and $\bar{Z}:={{\rm d}\bar{\mathbb{Q}}}/{{\rm d}\mathbb{P}}$. It\^o formula then yields $Z^n =\mathcal{E}\big((-\varphi+\eta^n)\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B+\gamma^n\ast\widetilde{\mu}\big)$ for $\eta^n=\alpha\bar{\eta}$ being predictable and $\gamma^n = \alpha\bar{\gamma}$ is $\widetilde{\mathcal{P}}$-measurable with $\alpha = {(1-1/n)(\bar{Z}}/{Z^n})\in[0,1)$ thanks to $\widehat{Z}>0$. Therefore $\eta^n\in\mathrm{Ker}\ \sigma$ and $\gamma^n>-1$ due to $\bar{\gamma}\ge-1$. Hence $(\eta^n,\gamma^n)\in C$ and so $\mathbb{Q}^n =\mathbb{Q}^{\gamma^n,\eta^n}$ is in $\mathcal{Q}^{\textrm{ngd}}$. Convergence of $\mathbb{Q}^n$ to $\bar{\mathbb{Q}}$ in $L^1(\mathbb{P})$ as $n\to\infty$ is straightforward by definition of $\mathbb{Q}^n$ and this implies $\pi^u_t(X)\ge \mathbb{E}_{\bar{\mathbb{Q}}}(X|\mathcal{F}_t)$ for all $ t\le T$. \end{proof} The dynamic good-deal bound $\pi^u(X)$ of $X\in L^\infty(\mathbb{P} )$ is given by the solution to the JBSDE \begin{equation}\label{eq:BSDENGD-ExampleSR} -{\rm d}Y_t = \Big((-\varphi_t+\bar{\eta}_t)Z_t+\int_EU_t(e)\bar{\gamma}_t(e)\zeta_t(e)\lambda({\rm d}e)\Big){\rm d}t -Z_t{\rm d}B_t - \int_E U_t(e)\widetilde{\mu}({\rm d}t,{\rm d}e),\quad t\in[0,T], \end{equation} for terminal condition $Y_T=X$, with $\bar{\gamma}=\bar{\gamma}(Z,U)$, $\bar{\eta}=\bar{\eta}(Z,U)$ given by Lemma~\ref{lem:OptProblemExist}, according to \begin{theorem}\label{thm:BSDEEssSupHasSol} For $X\in L^\infty(\mathbb{P} )$, the JBSDE above with $(\bar{\gamma},\bar{\eta})$ from (\ref{eq:OptPBSR}) has a unique solution $(Y,Z,U)$ in $\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$. Moreover there exists $\bar{\mathbb{Q}}\ll \mathbb{P}$ in the $L^1$-closure of $\mathcal{Q}^{\textrm{ngd}}$ (cf.\ Lemma~\ref{lem:QbarApprox}), with density ${{\rm d}\bar{\mathbb{Q}}}/{{\rm d}\mathbb{P}}= \mathcal{E}\left((-\varphi+\bar{\eta})\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B + \bar{\gamma}\ast\widetilde{\mu}\right)$ such that the good-deal bound satisfies \begin{equation}\label{eq:ResultNGDBoundfromCompThm} \pi^u_t(X) = \mathop{\mbox{ess sup}}_{\mathbb{Q}\in \mathcal{Q}^{\textrm{ngd}}}\,\mathbb{E}_{\mathbb{Q}}(X|\mathcal{F}_t)=Y_t=\mathbb{E}_{\bar{\mathbb{Q}}}(X|\mathcal{F}_t)\quad \textrm{ for } t\le T. \end{equation} \end{theorem} \begin{proof} Consider the family of BSDE generator functions defined for $(z,u)\in\mathbb{R}^d\times L^2(\zeta_\cdot {\rm d}\lambda)$ by $f^{(\gamma,\eta)}(\cdot,z,u) := (-\varphi_\cdot+\eta_\cdot)z+ \int_Eu(e)\gamma_\cdot(e)\zeta_\cdot(e)\lambda({\rm d}e)$ and $f^{(\gamma,\eta)}(\cdot,z,u):=0$ elsewhere, for $(\gamma,\eta)\in\bar{C}$, where coefficients $\left(\gamma_t(\omega),-\varphi_t(\omega)+\eta_t(\omega)\right)$ of $f^{(\gamma,\eta)}$ are bounded in $L^2(\lambda_t(\omega))\times\mathbb{R}^d$ by $K_f:=\Vert K\Vert_\infty\in (0,\infty)$ for all $(\gamma,\eta)$ and $(t,\omega)$. By Lemma \ref{lem:OptProblemExist}, a classical generator function $f$ for the JBSDE (\ref{eq:BSDENGD-ExampleSR}) can be defined such that ($\mathbb{P}\otimes {\rm d}t$-a.e.) $f(\cdot,z,u)=\mathop{\mbox{ess sup}}_{(\gamma,\eta)\in \bar{C}}f^{(\gamma,\eta)}(\cdot,z,u)$ for all $(z,u)\in\mathbb{R}^d\times L^2(\zeta_\cdot {\rm d}\lambda)$ and $f$ is (a.e.) Lipschitz continuous in $(z,u)\in\mathbb{R}^d\times L^2(\lambda_t(\omega)),$ with Lipschitz constant $K_f$. Indeed, such generator function $f$ can be defined at first (up to a $\mathbb{P}\otimes {\rm d}t$-nullset) for countably many $(z,u)$ with $z\in\mathbb{Q}^d$ and $u\in\{u^n,\, n\in\mathbb{N}\}$ dense subset of $L^2(\lambda)$ and, noting that $u\,\zeta_t(\omega)^{1/2}$ is in $L^2(\lambda)$ for $u$ in $L^2(\lambda_t(\omega))$, by Lipschitz-continuous extension for all $(z,u)\in \mathbb{R}^d\times L^2(\lambda_t(\omega))$. By setting $f(t,z,u):=0$ elsewhere (for $u\in L^0(\mathcal{B}(E),\lambda)\setminus L^2(\lambda_t(\omega))$), one can define $f$ as Lipschitz continuous even for $(z,u)\in \mathbb{R}^d\times L^0(\mathcal{B}(E),\lambda)$. By classical theory for Lipschitz-JBSDE, equation (\ref{eq:BSDENGD-ExampleSR}) thus has a unique solution $(Y,Z,U)$ in $\mathcal{S}^2\times\mathcal{L}^2(B)\times\mathcal{L}^2(\widetilde{\mu})$ which by boundedness of X satisfies $Y\in\mathcal{S}^\infty$ (cf.\ e.g.\ \cite[Prop.3.2-3.3]{Becherer06}). Note that for all $(\gamma,\eta)\in\bar{C}$, clearly $\beta :=-\varphi+\eta$ is bounded and $\int_E\lvert \gamma_t(e)\rvert^2\zeta_t(e)\lambda({\rm d}e)$ is bounded uniformly in $t\le T$. Hence by Lemma \ref{lem:RepSolLinBSDEs}, the BSDEs with generators $f^{\gamma,\eta}$ also have unique solutions $(Y^{\gamma,\eta},Z^{\gamma,\eta},U^{\gamma,\eta})\in\SSS^{\infty}\times \LL^2(B)\times \LL^2(\widetilde{\mu})$, which satisfy $Y^{\gamma,\eta}_t=\mathbb{E}_{\mathbb{Q}^{\gamma,\eta}}(X|\mathcal{F}_t)$, $ \mathbb{Q}^{\gamma,\eta}\textrm{-a.s.,}\ t\le T$. Since $f=f^{\bar{\gamma},\bar{\eta}}$, we also have $Y_t = \mathbb{E}_{\bar{\mathbb{Q}}}(X|\mathcal{F}_t)$, $\bar{\mathbb{Q}}\textrm{-a.s.}$. By Lemma \ref{lem:QbarApprox} holds $\pi^u_t(X)\ge \mathbb{E}_{\bar{\mathbb{Q}}}(X|\mathcal{F}_t)$, $ \bar{\mathbb{Q}}\textrm{-a.s.}$, for all $ t\le T$. To complete the proof, we show that $\pi^u_t(X)\le Y_t$. For all $(\gamma,\eta)\in C$ (defining $\mathbb{Q}^{\gamma,\eta}\in\mathcal{Q}^{\textrm{ngd}}$) we have that $ f_t(Z_t,U_t)=f^{\bar{\gamma},\bar{\eta}}_t(Z_t,U_t) $ dominates $f^{\gamma,\eta}_t(Z_t,U_t)$ for a.e.\ $t\le T$. Noting that $f^{\gamma,\eta}$ are Lipschitz in $(z,u)$ with (uniform) Lipschitz constant $K_f$ and \begin{equation}\label{eq:IneqonGenwithGammadiffFromRoyer} f^{\gamma,\eta}_t(Z^{\gamma,\eta}_t,U_t) -f^{\gamma,\eta}_t(Z^{\gamma,\eta}_t,U^{\gamma,\eta}_t) =\int_E\gamma_t(e)(U_t(e)-U^{\gamma,\eta}_t(e))\zeta_t(e)\lambda({\rm d}e),\quad t\le T\,, \end{equation} with $\mathcal{E}\left((-\varphi+\eta)\stackrel{\mbox{\hspace{-4pt}\tiny{\tiny$\bullet$}}\hspace{-4pt}}{} B+\gamma\ast\widetilde{\mu}\right)$ being a martingale (see Example \ref{exmartingale}), one can apply comparison as in Proposition \ref{comparegeneral} to get $Y_t\ge Y^{\gamma,\eta}_t$, $\mathbb{P}\textrm{-a.s.},\ t\le T,\ (\gamma,\eta)\in C$. Hence $Y_t\ge \mathop{\mbox{ess sup}}_{(\gamma,\eta)}Y^{\gamma,\eta}_t=\pi^u_t(X)$, $t\le T$, for $(\gamma,-\varphi+\eta)$ ranging over all Girsanov kernels of measures $\mathbb{Q}\in\mathcal{Q}^{\textrm{ngd}}$. \end{proof} \small \newcommand{\etalchar}[1]{$^{#1}$}
\section{Introduction} Fabricating materials with predetermined structural features, especially at the nanoscale, remains an outstanding challenge. While technological advances in top-down approaches such as lithography have expanded the possibilities in this arena, these methods are often prohibitively slow and expensive to implement at the length scales of interest for industrial nanomanufacturing applications\cite{PhotonicMatsDesign,PhotonicMatsDesign2}. Bottom-up approaches such as the designed self assembly of particles (molecules, nanocrystals, colloids, etc) into desired morphologies represent promising alternatives \cite{SelfAssemblySuperlatticeCatalysis,JanusParticlesSelfAssemblyRev,SelfAssemblyForcesReview}. The success of these latter strategies relies upon the ability to ``tune'' the relevant interactions for assembly \cite{ColloidInteractionTuning_1,SelfAssemblyForcesReview,ColloidInteractionsReview}, e.g., by synthesizing nanoparticles with precisely defined shape, size, and surface chemistry, as well as by dispersing such particles into different solution environments. It also depends upon the ability to guide such efforts by determining in advance which types of interactions will deliver assemblies with the desired structural features at thermodynamic equilibrium. Generally, methods to address the latter can be separated into {\em forward} approaches, wherein a series of candidate particle systems (or model interactions) are judiciously chosen and subsequently tested for suitability, or {\em inverse} methods, wherein interactions that could produce the desired structure are directly determined theoretically, typically via a constrained optimization calculation. While forward strategies are often intuitive and straightforward to apply, they can be time consuming and expensive to successfully execute. Inverse design approaches, although not always as easy to formulate and solve, offer the possibility of a more precise and definitive determination of the interactions required to achieve a desired end result \cite{InvDesignTechRev,InvDesignGeneral,InvDesignPerspective}. One classic example of an inverse materials design problem is determining which isotropic pair potentials stabilize a specified ground state lattice. Previous studies addressing this type of problem found pair interactions that favor a wide variety of open two dimensional (e.g., square and honeycomb) \cite{InvDesignKagome,InvDesignKagomeFunctionalMethod,MT_SquareHoneyConvexCom,RT_HoneyDoubleWell} and three dimensional (e.g., diamond, wurtzite, and simple cubic) \cite{MT_DiamondConvex,InvDesignKagomeDiamond} target lattices, many of which readily assemble from the disordered fluid state upon cooling in a simulation. Interestingly, using stochastic optimization methods, Jain et al. have demonstrated that these low-coordinated ground state structures can even be stabilized over a wide range of density by convex repulsive pair potentials\cite{AvniPotModel,Avni3DLattices,AvniDimTransfer}, qualitatively similar to the effective interactions \cite{SelfAssemblyForcesReview} characteristic of soft gels, micelles, star polymers, etc. The specific functional form of the interactions considered in these latter studies is given by a generalized form of the Fomin potential \cite{AvniPotModel} \begin{equation} \begin{aligned} \phi(r/\sigma) &= \epsilon \lbrace A(r/\sigma)^{-n} + \sum_{i=1}^{2} \lambda_i(1-\tanh[k_i(r/\sigma-\delta_i)]) \\ &+f_{\text{shift}}(r/\sigma) \rbrace H[(r_{\text{cut}}-r)/\sigma] \label{eq:potform} \end{aligned} \end{equation} where $\sigma$ and $\epsilon$ represent characteristic length and energy scales respectively; $H$ is the Heaviside function; $\{A,n,\lambda_i, k_i,\delta_i\}$ are variable parameters, one of which is fixed to ensure $\phi(1)=\epsilon$; $r_{\text{cut}}$ is a cut-off radius; $f_{\text{shift}}$ is a quadratic function $f_{\text{shift}}(r/\sigma)= P (r/\sigma)^2 + Q r/\sigma + R$ added to enforce $\phi(r_{\text{cut}}/\sigma)= \phi'(r_{\text{cut}}/\sigma)= \phi''(r_{\text{cut}}/\sigma)= 0$. Pair potentials of the form provided by Eq.~\ref{eq:potform} are considered in this work as well. For notational simplicity, all quantities reported from here forward are implicitly nondimensionalized by appropriate combinations of $\epsilon$ and $\sigma$. Recently, we improved the efficiency of Jain et al.'s optimization strategy by reformulating it as an analytical nonlinear program that can be solved numerically \cite{SquLat_dmu_opt}. Using this approach, we studied the consequences of designing interactions that stabilize the target structure over a wide density range while requiring that it maintain a minimum chemical potential advantage $\Delta \mu$ over select competing lattices. Interestingly, this chemical potential constraint led to the discovery of new interactions that increased target structure thermal stability (albeit at the expense of stability with respect to changes in density). Here, we build on this optimization framework and consider two new and contrasting design targets for self assembly from particles with convex repulsive potentials: the kagome and the equilateral snub square lattices. While both target structures have been previously demonstrated to self-assemble using patchy particles\cite{ArchStructures_PatchyParticles}, polygons \cite{ArchStructures_PatchyPolygons} or binary mixtures \cite{ArchStructures_BinaryMix}, this work is the first to address them using isotropic convex repulsive interactions in a single component system. In particular, assembly of the kagome lattice is of interest in magnetic materials due to its unusual properties arising from geometrical frustration \cite{KagomeMagFrustationRev,TopologicalExcitationsKagomeMagnet}. Materials exhibiting a kagome lattice are known to be difficult to synthesize experimentally, and though there are now a few isotropic model potentials known to stabilize this structure \cite{InvDesignKagome,InvDesignKagomeFunctionalMethod,BT_QuinticPotentialKagomeHoneycomb,ZT_MuOptKagomeAsymLats}, none of them are of the simple convex repulsive type considered here. Additionally, the kagome lattice presents an attractive design target for an isotropic potential in one respect: the spatial distributions of particles in its coordination shells are symmetric. In fact, we show here that one can design convex repulsive interactions that stabilize the kagome lattice ground state over a wide range of density, and that particles with these interactions readily self-assemble into the kagome lattice from the fluid upon cooling. The equilateral snub square lattice, on the other hand, presents a significantly more challenging design target for an isotropic pair potential. First, the neighbors in the coordination shells surrounding each particle in this lattice have an asymmetric spatial distribution. The difficulties in stabilizing such asymmetric arrangements with an isotropic potential have been discussed previously in an insightful paper by Zhang et al., \cite{ZT_MuOptKagomeAsymLats} and, to our knowledge, have yet to be overcome in a design application with an isotropic, convex repulsive pair potential. The second complication is that the snub square lattice is very similar to the elongated triangular lattice, sharing the same specific area at close packing and identical numbers of neighbors in the first two coordination shells (reminiscent of diamond and wurtzite lattices in three dimensions). Finally, the highly coordinated first shell of the snub square lattice (with five neighbors) also puts it in close competition with the common triangular lattice (with six neighbors). In this work, to successfully overcome these hurdles in designing interactions that assemble particles into the snub square lattice, we enforce a minimum chemical potential advantage of the target structure over select competing lattices during the potential optimization. We consider a weak and a strong constraint and find that, consistent to previous work, the latter leads to enhanced thermal stability of the designed snub square structure \cite{SquLat_dmu_opt}. The article is organized as follows. In Section \ref{sec:Methods}, we briefly describe our previously introduced method for designing isotropic and convex repulsive pair potentials to stabilize a prescribed lattice, extended here to include the range of the potential as a decision variable. We also describe Monte Carlo simulation quenches that we use to test whether the particles interacting via the designed potentials readily assemble into the target structures rapid isochoric cooling from the fluid state. Next we present the designed pair potentials for the kagome and the snub square lattices in Section \ref{sec:Results} as well as the results from the Monte Carlo quenches. In the case of the snub square lattice, we explore the thermal stability of structures associated with two pair potentials designed using different constraints on their chemical potential advantage over select competitors. Finally, we present concluding remarks in Section \ref{sec:Conclusion}. \section{Methods} \label{sec:Methods} \subsection{Inverse Design of the Pair Potential} The inverse design optimization we use here is formulated analytically as a nonlinear program in which one seeks parameters of the pair potential of Eq.~$1$ that (1) make it convex repulsive and (2) maximize the range of density for which the target structure is the ground state (i.e., has lower chemical potential than equi-pressure competing lattices). This optimization can be cast in a way that also includes a constraint that ensures that the target structure, at a given density $\rho_0$, exhibits a minimum prescribed chemical potential advantage $\Delta \mu$ over those lattices in a select pool of `flag-point' competing structures, a strategy shown previously to enhance the target's thermal stability$^{20}$. Additionally, this analytical formulation offers solution strength and computing time advantages that are more difficult to achieve with familiar stochastic approaches (e.g. simulated annealing, genetic algorithms, etc). The complete formulation and implementation of this approach, including the required equations and their numerical solution using GAMS (Generalized Algebraic Modeling System) \cite{GAMSWorldBank,GamsSoftware2013,GamsGuide2013}, are presented elsewhere \cite{SquLat_dmu_opt}. In previous work$^{20}$ , we considered the pair potential cut-off, $r_{\text {cut}}$, to be a fixed parameter. As such, we constrained the second derivative of the potential using the inequality \begin{equation} \phi''(\mathbf{r}) > 0 \label{eq:d2phi_fix} \end{equation} where $\mathbf{r}$ was discretized as a fixed distribution of pair separations between $0$ and $r_{\text {cut}}$. Here, we allow for $r_{\text{cut}}$ to itself be a decision variable in the optimization that can vary between $r_{\text{c,min}}$ and $r_{\text{c,max}}$. Including $r_{\text{cut}}$ as a decision variable allows the optimizer to use an additional degree of freedom to adjust near-feasible solutions to conform to our interaction constraints (i.e., normality and convexity). Additionally, having a $r_{\text{cut}}$ as a decision variable ensures that the optimization has the flexibility to extend the pair interaction to include sufficient coordination shells to stabilize a desired target. Considering these advantages, we restrict Eq.~\ref{eq:d2phi_fix} to apply between $0$ and $r_{\text{c,min}}$, and then we add an equation, \begin{equation} \phi''(\mathbf{r}_v) > 0, \end{equation} where $\mathbf{r}_v$ is represented by ten points evenly distributed between $r_{\text{c,min}}$ and $r_{\text{c,max}}$. More specifically, $\mathbf{r}$ in eq. \ref{eq:d2phi_fix} is evaluated at fifty points between 0 and $r_{\text{c,min}}$ distributed in an approximately 1:6:5 ratio from ranges $[0.3,0.8)$, $[0.8,1.2)$, and $[1.2,r_{\text{c,min}})$ (modified slightly as to best fit individual targets). This generalization reduces to the originally considered sixty fixed points in $\mathbf{r}$ if $r_{\text{cut}}$ is assigned a constant value. For optimizations targeting the kagome lattice with no $\Delta\mu$ constraint and the snub square lattice with the weak constraint $\Delta\mu=0.01$, we assigned $r_{\text{cut}}$ to constant values of 3 and 2, respectively. For the optimization targeting the snub square lattice with the strong constraint $\Delta\mu=0.04$, we employed a variable $r_{\text{ cut}}$ from $r_{\text{c, min}}=1.8$ to $r_{\text{c, max}}=2.5$ and obtained an optimized value of $r_{\text{cut}}=1.80082033$. \subsection{Competing Lattices} \label{sec:CompLattices} In carrying out pair potential optimizations, one compares the chemical potential of the target lattice to that of lattices in a small pool of competing structures. For our initial optimization, this competitive pool comprised Bravais and non-Bravais lattices which commonly occur in the phase diagram of two-dimensional systems with soft, repulsive interactions \cite{SquLat_dmu_opt}. Once an optimized pair potential was obtained considering this initial competitive pool, a forward calculation was carried out to determine its ground-state phase diagram. Any new structures that appear in this phase diagram with chemical potentials comparable to the target lattice were added to the competitive pool, and a new optimization was performed. This procedure was repeated until no new competitive lattices were discovered in the forward calculation of the ground-state phase diagram for the optimized potential. In order to design interactions with enhanced thermal stability of the target structure, potential optimizations can also be carried out with a constraint that enforces a minimum chemical potential advantage $\Delta \mu$ of the target at density $\rho_0$ over a small pool of equi-pressure lattices that serve as `flag points' on the $\mu$ hypersurface \cite{SquLat_dmu_opt}. Ideally, one chooses flag-point lattices to be natural competing structures, some of which may be related to the target by a simple disturbance of the former's ideal configuration. More information and examples on how the choice of flag-point lattices for a given target might be determined are provided in our previous work \cite{SquLat_dmu_opt}. For the present study, the final competing pools for different target structures are as follows, where an asterisk indicates a lattice is also used as a flag-point competitor for the chemical potential constraint. For the kagome target with no explicit $\Delta\mu$ constraint, the resulting competing lattices included elongated triangular, triangular, equilateral snub square, honeycomb, rectangular ($b/a=2.01$), `kagome-B' (i.e. a kagome with non-uniform aspect ratio), and distorted-honeycomb. Interestingly, twisted kagome, a related kagome structure by rigid rotation of the triangular motifs, did not arise explicitly as a competitor in the forward calculations but might prove necessary as a flag-point competitor in a $\Delta\mu$ constraint optimization. For the equiliateral snub square target for which a weak ($\Delta\mu=0.01$) and strong ($\Delta\mu=0.04$) chemical potential advantage constraint was enforced, the competing lattices included elongated triangular*, triangular*, honeycomb*, square*, elongated triangular* ($b/a=1.15$), rectangular ($b/a=1.17$), snub square ($b/a=1.005$) and distorted snub square. For full details on kagome-B, distorted-honeycomb and distorted snub square lattices, please see the Appendix. \subsection{Monte Carlo Quenches} The assembly of target structures from the optimized potentials was tested via quenches from sufficiently high temperature fluid states in canonical Monte Carlo simulations utilizing periodic boundary conditions. For the kagome lattice, a system of $N=1200$ particles and a simulation cell with dimensions adjusted to fix density at $\rho=1.40$ were first equilibrated in the fluid state at $T=0.023$ and then isochorically quenched in two steps: first to $T=0.01$ and subsequently to $T=0.005$. For the equilateral snub square forming potentials, similarly sized systems became kinetically trapped in defective structures during isochoric Monte Carlo quenches from the fluid, but smaller systems readily assembled into the designed target structure. For this lattice, we report results with $N=64$ particles with simulation cell size adjusted to fix density to $\rho=1.425$. The pair potential designed using the chemical potential constraint $\Delta\mu=0.01$ could be equilibrated in the fluid state at $T=0.0655$, and it was subsequently quenched to $T=0.0309$ to induce assembly of the snub square lattice. The potential designed using the chemical potential constraint $\Delta\mu=0.04$ exhibited a snub square structure with enhanced thermal stability, and thus the equilibration of the fluid state was carried out at the higher temperature of $T=0.1$. For this system, assembly from the fluid state was observed in a two step quench, first cooling to $T=0.482$ and then to $T=0.0309$ to refine the structure. \begin{figure*}[ht] \includegraphics[scale=0.85]{kagome_pot_psi.eps} \caption{a) Pair potential $\phi(r)$ and force $-\phi'(r)$ of Eq.~\ref{eq:potform} with parameters optimized to maximize the range of density for which the ground state is the kagome lattice. b) Plot of $\psi(r)$ of Eq.~4 with kagome lattice coordination shell distances indicated by vertical black lines located for the optimization density $\rho=1.40$.} \label{fig:kag_potpsi} \end{figure*} \section{Results and Discussion} \label{sec:Results} \begin{table*}[ht] \caption{Parameters for the convex repulsive pair potential $\phi(r)$ of Eq.~\ref{eq:potform} found to maximize the density range for which kagome and equilateral snub square lattices are the ground states. SS-A and B refer to parameters for two snub square favoring potentials optimized with $\Delta\mu$ constraint values of $0.01$ and $0.04$, respectively.} \label{tab:potpars} \begin{ruledtabular} \begin{tabular}{lccccccccc} &$A$ &$n$ &$l_1$ &$k_1$ &$d_1$ &$l_2$ &$k_2$ &$d_2$ &$r_c$ \\ \hline kagome &0.01978 &5.49978 &-0.06066 &2.53278 &1.94071 &1.06271 &1.73321 &1.04372 &3.00000 \\ SS-A &2.55737 &1.53719 &0.10022 &6.24964 &1.48785 &0.15066 &7.72221 &1.12084 &2.00000 \\ SS-B &26.26595 &1.75476 &1.00266 &3.41639 &1.52736 &-13.85332 &3.92417 &0.68249 &1.80082 \\ \end{tabular} \end{ruledtabular} \end{table*} Using the optimization strategy described in Section~\ref{sec:Methods}, we were able to find a convex repulsive potential $\phi(r)$ that maximized the density range $\Delta\rho$ for which the kagome lattice was the ground state with a value of $\Delta\rho=0.415$. In one sense, this may not seem surprising. As alluded to in the Introduction, structures such as the kagome lattice with symmetric spatial distributions of particles in their coordination shells tend to be more amenable to stabilization with an isotropic pair potential. This favorable predisposition, however, does not guarantee the existence of a desired interaction form. In fact, Eq.~\ref{eq:potform} with optimized parameters provided in Table~\ref{tab:potpars} is, to our knowledge, the only purely convex repulsive pair interaction reported to stabilize the kagome lattice, and our ability to easily find it is a testament to the robustness of the design approach. The other pair potentials known to stabilize this structure do so via incorporation of other features at specific separations (e.g., attractive wells, concave shoulders, etc.) \cite{InvDesignKagome,InvDesignKagomeFunctionalMethod,BT_QuinticPotentialKagomeHoneycomb,ZT_MuOptKagomeAsymLats}, which may be more challenging to realize in practice. How can a seemingly featureless convex repulsive pair interaction select a structure as specific as the kagome lattice over its competitors? As can be seen in Fig.~\ref{fig:kag_potpsi}a), the principal features of the designed kagome potential lie within the radial range of $0.5 \lesssim r \lesssim 2$, where it transits from a core ($r \lesssim 0.5$) into an approximately linear ramp (i.e. the force, $-\phi(r)'$ is nearly constant value at these points as shown by the dashed line in the figure). The implications of this form can be more clearly appreciated by considering a function $\psi(r)$ which we previously showed\cite{SquLat_dmu_opt} is related not only to the pair potential but also to the chemical potential of a ground-state lattice: \begin{align} \mu_l=\sum_{i}^{r_{i,l} < r_c} n_{i,l}\psi(r_{i,l}(\rho_l)) \\ \nonumber \psi(r) \equiv \frac{\phi(r)}{2} - \frac{r \phi'(r)}{4} \label{eq:psir} \end{align} where $r_{i,l}$ denotes the $i^{\text{th}}$ coordination shell distance for a lattice of type $l$ at density $\rho_l$. In short, $\psi(r)$ helps understand what radially-varying `weights' (due to the form of the pair potential) would multiply the occupation numbers $n_{i,l}$ in a given lattice $l$ to determine the coordination shell contributions to its chemical potential $\mu_l$. A plot of $\psi(r)$ for the kagome potential is shown in Fig.~\ref{fig:kag_potpsi}b) at a density ($\rho=1.4$) near the middle of the target lattice's stable range on the ground-state phase diagram. Perhaps the most prominent feature of this function is the shoulder that it exhibits for separations in the range $0.6 \lesssim r \lesssim 1.35$ before decaying to close zero by $r \sim 2.2$. In particular, this shoulder shape helps penalize the heavily coordinated first shell of competitors such as triangular and snub square lattice (6 and 5 neighbors respectively) throughout the kagome lattice density range by keeping the relative contribution from this shell nearly constant. Similarly, the decaying tail destabilizes more evenly spread shells from competitors like the rectangular lattice while making $\psi(r)$ small and smooth enough to diminish the contribution from the more heavily coordinated third shell in the kagome lattice (6 neighbors). Together, these features help establish the kagome lattice as the stable structure and explain the wide density range achieved as per our design goal. \begin{figure}[ht] \includegraphics[scale=0.87]{kagome_lattice.eps} \caption{Configuration snapshot from a Monte Carlo simulation of a kagome lattice that self assembled from a fluid of the optimized potential (discussed in text) upon quenching to $T=0.005$ at $\rho=1.4$ Inset depicts a zoomed in view of a representative region. See Section ~\ref{sec:Methods} for simulation details.} \label{fig:kag_conf} \end{figure} To verify thermal stability of the kagome lattice with the optimized potential, we carried out Monte Carlo simulations (as described in Section ~\ref{sec:Methods}) from the disordered fluid state for which the kagome lattice readily assembled upon quenching. In Figure~\ref{fig:kag_conf}, we show a representative configuration of the quenched structure. As can be seen, only very minor imperfections are present in the assembled kagome lattice, arising from the usual misalignment of the nucleated crystal relative to the periodically replicated simulation cell. \begin{figure}[ht] \includegraphics[scale=0.27]{kagome_gr.eps} \caption{Radial distribution function of the perfect equilibrium kagome crystal (solid blue line) and the kagome crystal assembled from a fluid quench (dashed red) at $T=0.005$.} \label{fig:kag_gr} \end{figure} We can more concretely quantify the order displayed by the assembled kagome lattice by comparing its radial distribution function $g(r)$ to that of an equilibrated perfect crystal at the same temperature. As shown in figure \ref{fig:kag_gr}, the quenched structure very nearly matches the perfect ordering in all coordination shells. Further supporting this observation, the potential energy difference between the quenched-assembled and equilibrated perfect crystal structures was less than $0.05\%$. Overall, these results show that our designed convex repulsive pair potential thermodynamically favors the kagome lattice, a structure which readily self assembles from the fluid state upon cooling. Moving on to our next design target, we present results for the significantly more challenging equilateral snub square lattice. The inherent difficulty is discovering an isotropic pair potential, and especially a convex repulsive interaction, that can not only selectively lower the chemical potential of this target relative to similar triangular and elongated triangular lattices, but also stabilize the snub square structure despite the asymmetric spatial distribution of neighbors in its coordination shells. As described in Section~\ref{sec:Methods}, to help ensure a significant free energy gap relative to competitors, we enforced a nonzero chemical potential advantage $\Delta\mu$ constraint for the target lattice over appropriately selected `flag-point' lattices in the ground state. Additionally, considering previous results where the severity of such a $\Delta\mu$ constraint correlated with the thermal stability of the designed target structure\cite{SquLat_dmu_opt}, we explored the behaviors of assemblies that resulted from optimizations with weak and strong constraints ($\Delta\mu=0.01$ and $\Delta\mu=0.04$, respectively). The potential parameters obtained from this procedure are provided in Table \ref{tab:potpars}. To our knowledge, these are the only isotropic and convex-repulsive interactions that have been reported to stabilize the equilateral snub-square lattice. \begin{figure*}[ht] \includegraphics[scale=0.85]{snubsquare_pots_psis.eps} \caption{a) Pair potential $\phi(r)$ and force $-\phi'(r)/4$ (divided by four here to fit graph) of Eq.~\ref{eq:potform} with parameters optimized to maximize the range of density for which the ground state is the equilateral snub square lattice, subject to a chemical potential advantage constraint $\Delta\mu=0.01$ (blue) and $\Delta\mu=0.04$ (red) of the target structure over select `flag-point' competitors. b) Plot of $\psi(r)$ of Eq.~4 for these pair potentials. Vertical black lines indicate snub-square lattice coordination shell distances at optimization density $\rho=1.425$.} \label{fig:snub_potpsi} \end{figure*} Considering the difference in constraints used to obtain these potentials, it is insightful to consider plots of optimized $\phi(r)$ and the corresponding auxiliary function $\psi(r)$ as shown in Figure \ref{fig:snub_potpsi}. As can be seen in the potential plot (solid line), both pair potentials show a `core' ($r \lesssim 0.8$) and a `two-ramp' repulsion in the ranges $0.8 \lesssim 1.25$ and $1.25 \lesssim r \lesssim 1.65$ (i.e. near constant force--see dashed plots), respectively that together result in a two-plateau structure for $\psi(r)$. In analogy to the optimized kagome interaction, the first plateau is situated such that the target lattice's second coordination shell falls after the first plateau, ensuring that the first coordination shell is more strongly weighted than more distant shells in the chemical potential. The second plateau also plays a critical role--It penalizes competing lattices relative to the snub square by creating a high value of $\psi(r)$ at distances corresponding to their third coordination shell, which raises the chemical potential of competitors with more third-shell neighbors (e.g., the triangular lattice has six neighbors in its third shell versus only one for the snub square lattice). Note also that the elevated $\Delta\mu=0.04$ constraint led to steeper radial decays in $\psi(r)$ near the core and potential cut-off regions as well as sharpened plateau regions in comparison to the potential obtained with $\Delta\mu=0.01$.\cite{AnalysisSupp} These trends are consistent with previous results on designing potentials to stabilize square lattices \cite{SquLat_dmu_opt}, where increasing the $\Delta\mu$ constraint led to similarly sharpened interaction features that more heavily penalized competing structures. Such features also led to enhanced target lattice thermal stability, which is consistent with our current results as we discuss next. \begin{figure*}[ht] \includegraphics[scale=0.4]{snubsquare_lattices_001_004.eps} \caption{a) Configuration snapshots from Monte Carlo simulations of equilibrium snub square lattices that self assembled from the fluid upon quenching to $T=0.0309$ at $\rho=1.425$. Two cases, for pair potentials obtained via optimizations with chemical potential advantage constraints (a) $\Delta\mu=0.01$ and (b) $\Delta\mu=0.04$ of the target structure over select `flag-point' competitors are shown and discussed in the text. See Section ~\ref{sec:Methods} for simulation details.} \label{fig:snub_conf} \end{figure*} As detailed in Section \ref{sec:Methods}, Monte Carlo simulations of particles interacting with these optimized pair potentials were able to assemble into the snub square lattice from the higher-temperature fluid. While larger systems displayed sluggish assembly kinetics, smaller systems readily assembled into the the designed structure. When compared at the same temperature, potentials designed with $\Delta\mu=0.01$ and $\Delta\mu=0.04$ showed structural differences that point to enhanced thermal stability of the latter. As shown in Figure~\ref{fig:snub_conf}, assembled lattices of the potential designed with the stronger constraint (panel b) displayed less irregularity in the characteristic triangular and square tiling motifs than those with the weaker constraint (panel a). \begin{figure}[ht] \includegraphics[scale=0.27]{snubsquare_grs.eps} \caption{Radial distribution functions of equilateral snub square lattices that assembled from a fluid quench at $T=0.0309$. The two cases shown are with pair potentials obtained via optimizations with chemical potential advantage constraints $\Delta\mu=0.01$ (blue) and $\Delta\mu=0.04$ (red) of the target structure over select `flag-point' competitors. Both distributions have excellent agreement with those of their respective perfect equilibrium snub square crystals (not shown).} \label{fig:snub_gr} \end{figure} These differences are better appreciated in the radial distribution functions for both potentials where significantly sharper resolution of coordination shells is achieved for the $\Delta\mu=0.04$ potential as can be seen in Figure~\ref{fig:snub_gr}. This is poignant in the difficult to stabilize third shell of the snub square lattice where a {\em single} neighbor particle is expected to reside. This third shell neighbor corresponds to the third peak in the radial distribution, which as seen, is broader and somewhat overlapped with that of the fourth peak for the $\Delta\mu=0.01$ potential, whereas it is well resolved for the $\Delta\mu=0.04$ case. A similar trend likewise holds for longer range order ($r \sim 3$) where neighboring peaks coalesce for the $\Delta\mu=0.01$ system, while they remain distinguishable for the $\Delta\mu=0.04$ potential. Of course, peak resolution improves at lower temperatures for both potentials, but that this distinction can be observed for the higher temperature presented here ($T=0.0309$) is a testament of the superior thermal stability obtained by the interaction designed with a higher $\Delta\mu$ constraint. Another indication is (naturally) the melting temperature itself, where the first melt temperature exhibited by the $\Delta\mu=0.04$ interaction in Monte Carlo simulations was $23\%$ higher than for the $\Delta\mu=0.01$ potential for the same density (not shown). As expected from the earlier work on designing square lattices \cite{SquLat_dmu_opt}, however, the trade off of this improved thermal stability was the substantially reduced density range of stability for the ground state $\Delta\rho$, which was over four times lower for the $\Delta\mu=0.04$ system as compared to the $\Delta\mu=0.01$ potential (0.05 vs 0.23 respectively). \section{Conclusion} \label{sec:Conclusion} We have extended our recently introduced inverse design approach to find, to our knowledge, the first isotropic, convex repulsive pair potentials that favor assembly of two contrasting two-dimensional structures: the kagome and the equilateral snub square lattice. The kagome lattice's symmetric distribution of neighbors in its coordination shells make it particularly amenable to stabilization by an isotropic potential. For this structure, we use our optimization framework to design a strict-convex repulsive pair potential that maximizes the density for which the target is the ground state. We find that particles interacting via this potential readily self assemble into a kagome lattice from the fluid state upon cooling in Monte Carlo simulations. On the other hand, designing isotropic, convex repulsive pair potentials that favor the equilateral snub square lattice is more challenging due to the asymmetric distribution of neighbors in its coordination shells and the presence of several closely related competing structures. To help address these challenges, and thereby provide a significant free energy gap between the snub square lattice and competitors \cite{SquLat_dmu_opt}, we required that the target ground-state structure maintain a minimum chemical potential advantage $\Delta \mu$ over select competitors during the parameter optimization. We find that, while larger systems of particles display sluggish assembly kinetics, smaller systems of particles interacting with the optimized potentials readily assemble into the snub square lattice from the fluid. As expected, based on previous work designing potentials for square lattices \cite{SquLat_dmu_opt}, a stronger $\Delta \mu$ constraint in the optimization led to enhanced thermal stability of the resulting snub square lattice but a significantly reduced density range for which it was the stable ground state. \begin{acknowledgments} We acknowledge Prof. Jeffrey Errington for helpful conversations regarding the Monte Carlo quench simulations. T.M.T. acknowledges support of the Welch Foundation (F-1696) and the National Science. Foundation (CBET-1403768). We also acknowledge the Texas Advanced Computing Center (TACC) at the University of Texas at Austin for providing computing resources used to obtain results presented in this paper. \end{acknowledgments}
\section{Introduction} \label{sect:1} The radial-velocity (RV) technique is an indirect method that measures the stellar wobble induced by a planet orbiting its host star with Doppler spectrostrcopy. It is fundamental for transit surveys, where it is used to confirm the exoplanet candidates and to understand their composition through measuring the planet mass. Based on this, the planet density is derived with the help of the radius measured using the transit light curve. Important results have been achieved in the \emph{Kepler} era, such as the confirmation of Kepler-78 with the HIRES and the HARPS-N spectrographs \citep{Sanchis-Ojeda-2013,Howard-2013b,Pepe-2013}, the characterization of the exoplanet Kepler 10-c, which has 17 Earth masses \citep[][]{Dumusque-2014}, and the indication that all planets below $\sim 6\,M_{\oplus}$ have a similar rocky composition \citep[][]{Dressing-2015}. However, the RV technique is strongly limited by the faintness of \emph{Kepler} targets. This will not be the case for upcoming photometric space missions such as TESS \citep[][]{Ricker-2014} and PLATO \citep[][]{Rauer-2014}, which will deliver hundreds of good candidates for RV follow-up. Obtaining the planet density is also important to estimate the scale height of the atmosphere that might exist on a planet, and thus form an idea of the detectability of chemical species in this atmosphere. This will be crucial in the \emph{James Webb Space Telescope} era, when this scale height needs to be known before dozens of hours of telescope time are spent trying to detect chemical species in the atmosphere of rocky planets orbiting M dwarfs. In addition to complementing transit detections that are restricted to a very limited orbital configuration in terms of inclinations, precise RVs may also be the only technique for detecting low-mass planets orbiting nearby bright stars, for which the atmospheres will be characterized with direct-imaging future space missions. The RV technique is sensitive not only to possible companions, but also to signals arising from the photosphere of the host star, called stellar signals here. Now that the \ms\,precision level has been reached by the best spectrographs, it is obvious that stars introduce signals at a similar level, which strongly complicates the detection and measurement of small-mass planets. There are several examples in the literature that show this, and we present here only a few of them. Gl581 is assumed to have between three and six planets \citep[][]{Hatzes-2016,Anglada-Escude-2015, Robertson-2014, Baluev-2013, Vogt-2012, Gregory-2011, Vogt-2010b, Mayor-2009b}, HD40307 between four and six planets \citep[][]{Diaz-2016,Tuomi-2013a}, and GJ667C between three and seven planets \citep[][]{Feroz-2014,Anglada-Escude-2012a,Gregory-2012}. In all these systems, the number of detected planets strongly depends on the model used to fit the data, and this is a sign that stellar signals are not properly modeled. Different models exists to mitigate the effect of stellar signals, but without precisely knowing the contribution of stellar and planetary signals in real observations, it is extremely difficult to determine how efficient the different methods are in correcting for stellar signals. We note that the HARPS-N solar telescope \citep[][]{Dumusque-2015b} will deliver the perfect real data set on which the RV effect of stellar signals can be better determined. Likewise, these future data sets will help in determining the efficiency with which different techniques can recover tiny planetary signals such as those from Venus despite stellar signals. Other facilities are also observing the Sun-as-a-star using high-resolution spectroscopy: the SONG spectrograph \citep[][]{Palle-2013}, the PEPSI spectrograph \citep[][]{Strassmeier-2015}, and the G\"ottingen FTS spectrograph \citep[][]{Lemke-2016}. The data provided by these facilities, often allowing higher spectral resolution than HARPS-N, are complementary to the data obtained by the HARPS-N solar telescope and therefore will be extremely useful for characterizing the RV effect of the stellar signal in more detail through analyzing spectral line variations (spectral line bisector and full width at half maximum, FWHM). To be able to test the efficiency of the different techniques in recovering tiny planetary signals despite stellar signals, we started the RV fitting challenge initiative. The idea of the RV fitting challenge is \begin{itemize} \item to generate simulated RV time series that include realistic planetary and stellar signals, and \item to share these times series with the community so that different teams using different techniques to account for stellar signal can search for the injected planetary signal. \end{itemize} When the planetary signal injected in the data is known exactly, it is \emph{\textup{a posteriori}} possible to test the efficiency of the different methods used to search for planetary signals despite stellar signals. This RV fitting challenge exercise was performed between October 2014 and June 2015, and an analysis of the results of the different teams will be presented in a forthcoming paper \citep[][]{Dumusque-2016b}. We note that a similar challenge was previously posed in the exoplanet field to test the efficiency of different algorithms to recover planetary transit in photometric light curves \citep[][]{Moutou-2005b}. The goal of this first paper is to describe the simulation we used to generate the different RV time series of the RV fitting challenge and to present the planets that were artificially injected into each of them. Although complex models can be used to estimate the effect of the different stellar signals (see Sect. \ref{sect:10}), we adopt here a simple approach based on real observations that therefore already includes the RV effect of stellar oscillations and granulation. We then model the RV variation induced by activity using a simplistic simulation of active region appearance on the solar surface, based on empirical properties derived from solar observations. This approach allows us to easily and rapidly generate RV times series that are similar to real RV measurements. We can therefore use these time series to further test the efficiency of the different methods used to search for planetary signals despite stellar signals. A \emph{wiki} was created for the purpose of the RV fitting challenge to invite participants to collaborate in designing the optimal data set, and to share it. This can be accessed at \url{https://rv-challenge.wikispaces.com} to follow the preliminary discussions before the data set of the RV fitting challenge was created, to download the data set (data also available at CDS), and to see preliminary results. Section \ref{sect:10} introduces the different stellar signals that affect RV measurements. In Sect. \ref{sect:2} we present the simulation that we used to model RV stellar signals and instrumental noise, followed in Sect. \ref{sect:3} by a description of the model used to generate RV variations induced by stellar activity. In Sect. \ref{sect:4} we perform a comparison between real and simulated data to check that our simulation of stellar signals gives realistic results, and finally, we conclude in Sect. \ref{sect:5}. \section{Stellar signals and their effects on precise RV measurements} \label{sect:10} Stellar signals affecting RV measurements can be separated into four categories: \begin{itemize} \item stellar oscillations on timescales of a few minutes for solar-like stars, \item stellar granulation and supergranulation on timescales of a few minutes to 48 hours, \item short-term stellar activity on the timescale of the stellar rotation period, which is induced by rotation in the presence of evolving surface magnetic inhomogeneities (mainly spots and plages), and \item long-term stellar activity on timescales of several years, which is induced by stellar magnetic cycles. \end{itemize} \emph{Stellar oscillations} are produced by pressure waves (p-modes) propagating at the surface of solar-type stars and inducing a dilatation and contraction of external envelopes over timescales of a few minutes \citep[5 minutes for the Sun,][]{Kjeldsen-1995,Ulrich-1970,Leighton-1962,Evans-1962}. The RV signature of these modes typically varies between 10 and 400 \cms, depending on the stellar type and evolutionary stage. The amplitude and period of oscillation modes increases with mass along the main sequence. Theory predicts that the frequencies of p-modes increase with the square root of the stellar mean density and that their amplitudes are proportional to the luminosity over mass ratio (Christensen-Dalsgaard 2004). The most precise spectrographs today can reach sub-\ms\,RV precision and are therefore capable of directly resolving stellar oscillations on solar-type stars other than the Sun \citep[][]{Arentoft-2008,Bouchy-2001,Bedding-2001,Martic-1999}. \emph{Stellar granulation and supergranulation} that are due to the convective nature of solar-type stars also affect RV measurements at the order of the \ms level \citep[][]{Dumusque-2011}. These convective phenomena can be found throughout the stellar surface, except in active regions where convection is significantly lower \citep[e.g.,][]{Brandt-1990,Livingston-1982,Dravins-1982}. The surface convection has been studied in detail on the Sun and also by using 3D simulations \citep[e.g.,][]{Beeck-2013a,Beeck-2013b,Holzreuter-2013,de-la-Cruz-Rodriguez-2011,Asplund-2000,Dravins-1981}. While most of these simulations often modeled a few spectral lines and in a very small box compared to the solar surface, some other models allow reproducing the disk-integrated visible spectrum, which can then be used to measure full-disk RV variations as is done for exoplanet observations \citep[][]{Meunier-2015,Cegla-2013,Allende-Prieto-2013}. From these simulations and from high-spatial resolution observations of the Sun, it is very well known that photospheric lines that emerge from the granules and intergranular lanes (which surround granules) are not only shifted with respect to each other as a result of the opposite velocity field, but are highly asymmetric and are characterized by bisectors of opposite slope. The strong asymmetry of spectral lines originating from granules is largely cancelled out by the opposite asymmetry of the intergranular lanes. The line shifts and asymmetries observed in stellar spectra are therefore much smaller than the asymmetries and shifts of the spectral lines that originate from either the granules or the intergranular lanes. \emph{Short-term stellar activity} is induced by stellar rotation in the presence of active regions, dark spots, and bright plages. When the star rotates, these active regions induce an RV variation by two different physical processes. Because the temperatures in these regions differ from the average surface temperature, their emerging flux is different. Sunspots are $\sim$700 K cooler than the effective temperature of the Sun \citep[][]{Meunier-2010a} and therefore have a much lower flux than quiet solar photosphere regions. A spot will therefore break the flux balance between the blueshifted approaching limb and the redshifted receding limb of a rotating star and will induce an RV variation as it passes across the visible stellar disk. A plage at the disk center is only slightly hotter than the average effective temperature and will induce a weak flux effect. A plage on the limb will be brighter because of the center-to-limb brightness dependence \citep[][]{Unruh-1999, Frazier-1971}, but at this location, the star emits less light as a result of limb darkening. Independently of its location, a plage will therefore induce a weaker flux effect than a spot, even if plages tend to be an order of magnitude more extended than spots \citep[][]{Chapman-2001}. The second effect is induced because strong local magnetic fields inhibit convection inside active regions \citep[][]{Brandt-1990,Cavallini-1985a,Livingston-1982,Dravins-1982}. This inhibition of convection suppresses the convective blueshift effect, $\sim$300 \ms\,for the Sun, inside active regions. These regions therefore appear redshifted compared to the quiet photosphere \citep[see Fig. 3 in][]{Cavallini-1985a}, which implies an RV variation as active regions appear and disappear from the visible part of the stellar disk through rotation. \emph{Long-term stellar activity} due to a solar-like magnetic cycle affects RV measurements on a timescale of several years. The idea that magnetic cycles perturb RVs was first reported by \citet{Campbell-1988} and \citet{Dravins-1985}. The level of magnetic activity in solar-type stars has been studied for more than 50 years using the Mount Wilson S-index and the $\log$(R$^{\prime}_{HK}$)\,index \citep[][]{Wilson-1963}, and it has been shown that this index and the magnetic field strength are closely related \citep[e.g.,][]{Schrijver-1989}. Variation in the activity level of thousands of FGK dwarfs has been studied \citep[][]{Hall-2007,Baliunas-1995,Wilson-1978}, but it was realized only eventually that RVs can be influenced by magnetic cycles. A few attempts of measuring such an effect in the Sun yielded somewhat contradictory results: \citet{Deming-1994} found a peak-to-peak RV variation of 28 \ms throughout the solar cycle, while \citet{McMillan-1993} obtained constant RVs within $\sim$4 \ms. Measurements of similar RV effects in other stars have remained inconclusive \citep[][]{Santos-2010a,Isaacson-2010,Wright-2005,Paulson-2002} until the work of \citet{Lovis-2011b} and \citet{Dumusque-2011c}. Solar-like magnetic cycles are characterized by an increasing filling factor of active regions when the activity level rises. Because convection is strongly reduced in active regions as a result of the magnetic field (see previous paragraph), the star will appear redder (positive velocity) during its high-activity phase. A positive correlation between the RVs and the activity level is therefore observed \citep[][]{Meunier-2010a,Lindegren-2003}. This is the most commonly given explanation, although some other physical processes might be responsible for this long-term RV-activity correlation, for example, the variation in surface flows proposed by \citet{Makarov-2010}. \section{Simulating instrumental noise and stellar signals} \label{sect:2} The goal of the RV fitting challenge is to measure the efficiency of the different techniques that are used to search for planetary signals embedded in stellar signals. This measurement can only be made on simulated RV measurements, for which we precisely know the planetary signals that should be recovered. These simulated RV time series need to be realistic, however, if we wish to be able to use the conclusions of the RV fitting challenge for real data sets. In this section, we describe the model that we used to simulate in a simple way realistic RV, BIS SPAN, FWHM, and $\log$(R$^{\prime}_{HK}$)\,time series. \subsection{Instrumental noise and stellar signal induced by oscillations, granulation, and supergranulation} \label{sect:2-0} Instrumental noise and stellar signals induced by oscillations, granulation, and supergranulation are known to have timescales shorter than a few days. These types of signals can be studied using continuous high-cadence observations of solar-type stars on a timescale of a week \citep[][]{Dumusque-2011a}. These observations are crucial for asteroseismology studies and have been collected by the HARPS spectrograph \citep[][]{Teixeira-2009,Bazot-2007,Bouchy-2005b}. In particular, the G8 dwarf $\tau$\,Ceti (\object{HD10700}) was observed with a cadence of 54 to 71 seconds over six consecutive nights \citep[][]{Teixeira-2009}. We used these real measurements to estimate the RV effect of instrumental noise and stellar signals induced by oscillations, granulation, and supergranulation, and to generate realistic RV data that included all these signals. The strategy we employed to generate realistic data that include instrumental noise and stellar signals is to first transform the time-domain RVs of $\tau$\,Ceti into the frequency domain, fit the power of the signal as a function of frequency, and finally return to the time domain while changing the phase of all frequencies randomly \citep[][]{Dumusque-2011a}. Changing the phases allows us to reconstruct RV measurements that are differently sampled than the original data, but still include similar instrumental and stellar signals. \begin{figure*}[t] \begin{center} \includegraphics[width=16.4cm]{HD10700_tau_cet_harps_spectrum_for_RV_with_all_components.pdf} \caption{Raw RVs of $\tau$\,Ceti in the frequency domain (blue line) and binned in frequency (red dots). The best fit to the data (red line), using the model presented in Eq. \ref{eq:2-0-1}, is obtained considering two power laws to account for supergranulation and granulation (black continuous lines), a Lorentzian profile to account for stellar oscillations (dashed line), and a constant to include white instrumental noise (dotted line).} \label{fig:2-0-0} \end{center} \end{figure*} To transform the time-domain RV measurements of $\tau$\,Ceti into the frequency domain, we used the generalized Lomb-Scargle periodogram \citep[GLS,][]{Zechmeister-2009,Scargle-1982,Lomb-1976a}. Figure \ref{fig:2-0-0} shows the result of this transformation, which highlights four different components: \begin{itemize} \item Supergranulation and granulation at low frequency, which we can fit using an empirical power law as initially proposed by \citet{Harvey-1984} and reviewed by \citet{Andersen-1994} and \citet{Palle-1995}.\item Stellar oscillations that create a bump in the power spectrum seen at high frequency. We can account for this feature using a Lorentzian profile \citep[][]{Lefebvre-2008}, \item Instrumental noise at very high frequency. Within the assumption that this noise is white, we can fit it using a constant value spanning the entire frequency range. The value of this constant is only seen at very high frequency because of the strong oscillation, granulation, and supergranulation signals at lower frequencies. \end{itemize} Considering these different sources of signal, we can fit the frequency-domain RV measurements using the following model: \begin{equation} \label{eq:2-0-1} P(\nu) = \sum_{i=1}^2{\frac{A_i}{1+(B_i\nu)^{C_i}}}+A_L\frac{\Gamma^2}{(\nu-\nu_0)^2+\Gamma^2}+C_{inst}, \end{equation} where $A_i$, $B_i$ , and $C_i$ are parameters that account for granulation and supergranulation, and $i$ differentiates one source of the signal from the other. $A_L$, $\Gamma,$ and $\nu_0$ are the amplitude, the FWHM and the center of the bump created by stellar oscillations, and $C_{inst}$ is the constant amplitude of the white instrumental noise. More details about this fit can be found in \citet{Dumusque-2011a}. \begin{figure*}[t] \begin{center} \includegraphics[width=16.4cm]{HD10700_tau_cet_harps_spectrum_for_RV_BIS_SPAN_FWHM.pdf} \caption{Raw RV, BIS SPAN, FWHM and $\log$(R$^{\prime}_{HK}$)\,of $\tau$\,Ceti in the frequency domain (blue line) and binned in frequency (red dots). The best fit of each observable (red line) is obtained using the model presented in Eq. \ref{eq:2-0-1} for the RVs and the model presented in Eq. \ref{eq:2-0-2} for the other observables.} \label{fig:2-0-1} \end{center} \end{figure*} The RV is not the only observable to be affected by stellar signals. The bisector span \citep[BIS SPAN,][]{Queloz-2001} and the FWHM of the cross-correlation function \citep[CCF,][]{Pepe-2002a,Baranne-1996} are also affected. The power spectrum of these two observables in Fig. \ref{fig:2-0-1} shows the supergranulation and granulation signals at low frequency and the signal of instrumental noise at very high frequency. However, we do not detect a bump caused by stellar oscillations. We decided to fit the power spectrum of the BIS SPAN and the FWHM using a model similar to Eq. \ref{eq:2-0-1}, but only considering one component to fit granulation and supergranulation and one constant to account for instrumental noise. In this case, we have \begin{equation} \label{eq:2-0-2} P(\nu) = \frac{A}{1+(B\nu)^{C}}+C_{inst}. \end{equation} The calcium activity index $\log$(R$^{\prime}_{HK}$)\,in the frequency domain shows a similar behavior as for the BIS SPAN and the FWHM. We therefore fit this observable using the same model. The best fit of each observable in the frequency domain contains the information on the amplitude of the stellar and instrumental signals as a function of frequency. Returning to the time domain using the inverse transformation of the GLS applied to the best fit allows creating simulated RV, BIS SPAN, FWHM, and $\log$(R$^{\prime}_{HK}$)\,measurements. These simulated measurements include stellar and instrumental signals of similar amplitude as observed in the original measurements of $\tau$\,\,Ceti. During the inversion process, the phase of each point in frequency must be changed to generate the data for any observational date. We did not elect to use the phases calculated by the GLS periodogram because it will reproduce the real data after inversion, setting the RVs to zero during the observation gaps. We chose a uniformly random phase between $0$ and $2\pi$ for each point in frequency before applying the inverse GLS periodogram transformation. To check that simulated data that include stellar and instrumental signals are realistic when compared to observations, we selected four quiet solar-type stars that have thoroughly been observed with HARPS: $\tau$\,Ceti (G8V), HD20794 (G8V), HD192310 (K3V), and HD85512 (K5V). For each star, we generated simulated data using the same calendar as the real measurements. We then computed the rms of the RVs, the BIS SPAN, the FWHM, and the $\log$(R$^{\prime}_{HK}$)\,for all chunks of ten consecutive days, including at least seven observations. In Fig. \ref{fig:2-0-2} we show the results of this comparison. The agreement between the rms measured on the observed and simulated data demonstrates that we are able to create simulated data that include stellar and instrumental signals similar to real observations performed with HARPS. \begin{figure*} \begin{center} \includegraphics[width=8.2cm]{Comparison_fake_RV_using_HD10700_tau_cet_harps_and_real_RV_HD10700.pdf} \includegraphics[width=8.2cm]{Comparison_fake_RV_using_HD10700_tau_cet_harps_and_real_RV_HD20794.pdf} \includegraphics[width=8.2cm]{Comparison_fake_RV_using_HD10700_tau_cet_harps_and_real_RV_HD192310.pdf} \includegraphics[width=8.2cm]{Comparison_fake_RV_using_HD10700_tau_cet_harps_and_real_RV_HD85512.pdf} \caption{Comparison between the simulated and real data for $\tau$\,\,Ceti (HD10700), HD20794, HD192310, and HD85512. For each star, the simulated data are generated with the same calendar as the observed measurements. We then compute the rms of the RVs, the BIS SPAN, the FWHM, and the $\log$(R$^{\prime}_{HK}$)\,for chunks of ten consecutive days each, including at least seven observations. Each subplot shows the histogram of the rms computed based on the observed (blue) and simulated (red) data, with the corresponding median highlighted by the dashed vertical lines and its value reported in the legend. The agreement between the histograms and the median values demonstrates that the simulated data that include granulation signal, oscillation signal, and instrumental noise are similar to the real observations performed with HARPS.} \label{fig:2-0-2} \end{center} \end{figure*} \subsection{Signal induced by stellar activity} \label{sect:2-1} The vast majority of solar-type stars presents a solar-like magnetic cycle \citep[][]{Lovis-2011b,Dumusque-2011}. During one cycle, the activity of a star changes from a quiet phase where only a few active regions appear on its surface to an active phase where a significant fraction of its surface is covered by active regions. These active regions, consisting of dark spots or bright plages, induce a deformation of spectral lines because their difference in contrast with respect to the photosphere breaks the flux balance between the blueshifted approaching and the redshifted receding limb of a rotating star. In addition, inhibited convection by strong local magnetic fields in these active regions also modifies the shape of spectral lines. Both of these effects induce a change in the barycenter of each spectral line, therefore implying a spurious RV shift. More details about the effect of spots and plages on stellar spectra and RV measurements are reported in \citet{Dumusque-2014b}, \citet{Meunier-2010a}, \citet{Desort-2007}, \citet{Saar-1997b}, and references therein. Stellar activity can be separated into two components: one on short timescales, induced by stellar rotation in the presence of evolving active regions, and another on long timescales, induced by the increasing or decreasing number of active regions that are a result of solar-like magnetic cycles. We discuss the effect of short-term activity in the next section. Long-term activity is addressed in Sect. \ref{sect:2-1-2}. For an active region of a given size, contrast, latitude, and longitude, and a given rotation period, we can use the SOAP 2.0 code to estimate the effects of this active region on photometry, RV, BIS SPAN, and FWHM as the star rotates\footnote{\url{http://astro.up.pt/resources/soap2/}} \citep[][]{Dumusque-2014b}. To estimate the photometric, RV, BIS SPAN, and FWHM variations induced by an active region, SOAP 2.0 divides the stellar surface into thousands of cells, each of which contains the average line profile of a solar active region or of the solar quiet photosphere, depending on whether the cells cover active regions or not. These line profiles are derived by computing the CCF\footnote{The CCFs are obtained by cross correlation of the spectral atlases with the binary mask commonly used on HARPS measurements to derive the CCF of G dwarfs. This binary mask exhibits holes at the position of each spectral line, each hole being weighted by the depth of the corresponding spectral line. This allows giving more weight to the deep lines because they contain more RV information \citep[][]{Pepe-2002a}. The RV precision on a spectral line is inversely proportional to the derivative of the spectrum \citep[see Eq. 3 in][]{Bouchy-2001b}. Thus deep spectral lines have wings with stronger slopes, thus higher derivative values, which in the end implies a better RV precision.} of the NSO solar spectral atlases for a quiet-photosphere region \citep[][]{Wallace-1998} and a sunspot \citep[][]{Wallace-2005}. In the same way as for the simulation of stellar oscillations and granulation presented in Sect. \ref{sect:2-0}, SOAP 2.0 uses real observations to avoid modeling the complex spectrum emerging from the quiet photosphere and active regions \citep[e.g.,][]{Balasubramaniam-2002}. The convective blueshift effect in the quiet photosphere and its inhibition in active regions is naturally included in the different average line profiles. The line profile in each cell is weighted according to the emerging flux: 1 for quiet-photosphere regions, smaller than 1 and constant for spot regions, and larger than 1 but varying with distance from the limb for plages to account for the limb-brightening effect \citep[][]{Akimov-1982,Frazier-1971}. Finally all the cells are summed, taking into account stellar rotation and limb darkening to obtain a full-disk average line profile from which it is possible to derive the photometry, RV, BIS SPAN, and FWHM. For more details we refer to \citet{Dumusque-2014b}. We note that SOAP 2.0, as published, does not consider a wavelength dependency for the contrast of spots and plages\footnote{The contrast of an active region is measured from the difference in temperature of the region with respect to the photosphere and for the center of the visible bandpass.} and no limb-center variation in the bisector of quiet regions \citep[][]{Cavallini-1985b}, although this last effect seems negligible \citep[see Appendix B in][]{Dumusque-2014b}. In addition, the code is not capable of estimating the variation in calcium activity index $\log$(R$^{\prime}_{HK}$), which is an important observable that probes the presence of active regions. In the next section, we modify the SOAP 2.0 code to derive an estimate for the $\log$(R$^{\prime}_{HK}$)\,variation in presence of active regions. \subsubsection{Deriving the calcium activity index with SOAP 2.0} \label{sect:2-1-0} The calcium activity index $S_{\mathrm{index}}$ is a measure of the emission seen in the core of the \ion{Ca}{ii} H and K lines \citep[e.g.,][]{Vaughan-1978}: \makeatletter \def\@eqnnum{{\normalsize \normalcolor (\theequation)}} \makeatother {\small \begin{eqnarray} \label{eq:sect:2-1-0-0} S_{\mathrm{index}} &=& \frac{H+K}{C_{3900} + C_{4000}},\\ \mathrm{Log}(\mathrm{R'}_{HK}) &=& \mathrm{Log}\left[1.34.10^{-4}\,C_{cf}\,S_{\mathrm{index}}\right],\nonumber\\ C_{cf} &=& 1.13(B-V)^3 - 3.91 (B-V)^2 + 2.84 (B-V) - 0.47,\nonumber \end{eqnarray} } where $H$ and $K$ are the total fluxes measured in the core of the \ion{Ca}{ii} H and K lines, and $C_{3900}$ and $C_{4000}$ are the total fluxes in the 20\,\AA \,pseudo-continuums centered on 3900 and 4000\,\AA. We also show here the conversion from $S_{\mathrm{index}}$ to $\log$(R$^{\prime}_{HK}$)\,\citep[][]{Noyes-1984}. The calcium activity indicator $\log$(R$^{\prime}_{HK}$)\,is corrected for the stellar energy distribution and therefore is used to compare the activity between stars of different spectral types. This calcium activity index is often used as a proxy for stellar activity when analyzing RV measurements. Therefore, we decided to model the variation of this observable using SOAP 2.0 for the purpose of the RV fitting challenge. It is possible in SOAP 2.0 to place a high-resolution spectrum rather than its CCF in each simulation cell. To estimate the calcium activity index, we included the part of the NSO solar spectral atlases that includes the \ion{Ca}{ii} H and K lines and the surrounding continuums used to calculate $S_{\mathrm{index}}$. Unfortunately, the NSO solar spectral atlases used only begin at 3920\,\AA, which prevents us from measuring the flux in the pseudo-continuum centered on 3900\,\AA. Considering that the $S_{\mathrm{index}}$ for the quiet Sun\footnote{$\log$(R$^{\prime}_{HK}$)\,for the quiet Sun is -5.0. Using Eq. \ref{eq:sect:2-1-0-0} and a B-V of 0.656, $\log$(R$^{\prime}_{HK}$)$=-5.0$ implies that $S_{\mathrm{index}}=0.16.$} is 0.16, we can estimate the total flux measured in the two 20\,\AA\,pseudo continuums, $C_{3900} + C_{4000} = \frac{H_{\mathrm{quiet\,Sun}}+K_{\mathrm{quiet\,Sun}}}{0.16}$, and therefore we have \begin{equation} \label{eq:sect:2-1-0-1} S_{\mathrm{index}} = \frac{0.16\,(H+K)}{H_{\mathrm{quiet\,Sun}}+K_{\mathrm{quiet\,Sun}}}. \end{equation} \begin{figure}[t] \begin{center} \includegraphics[width=8.2cm]{SOAP2_with_RHK_plage_5_percent.pdf} \caption{Effect in RV, BIS SPAN, FWHM, and $S_{\mathrm{index}}$ induced by stellar rotation in presence of an equatorial plage. The plage is 5\% in area of the visible hemisphere, and the stellar rotation period is 25 days. The plage is on the limb at a rotation phase of -0.25 and 0.25 and at disk center for phase 0.} \label{fig:2-1-0-0} \end{center} \end{figure} Using this formula, we can estimate the variation of the calcium activity index with SOAP 2.0 as a visible active region rotates with the solar disk. Figure \ref{fig:2-1-0-0} shows the result of a SOAP 2.0 simulation for an equatorial plage covering 5\% in surface area of the visible hemisphere. In this example, the amplitude in $S_{\mathrm{index}}$ observed is 0.027, from 0.160 to 0.187, which corresponds to a variation in $\log$(R$^{\prime}_{HK}$)\,of 0.15, from -5.0 to -4.85. Figure \ref{fig:2-1-0-1} illustrates the variation in emission seen in the core of the \ion{Ca}{ii} H and K lines between a case when no plage is present (quiet Sun) and when a plage that covers 5\% of the surface is at disk center (active Sun). \begin{figure*}[t] \begin{center} \includegraphics[width=16.4cm]{emission_Ca_II_H_K_phase__-0_00.pdf} \caption{Comparison between the core of the \ion{Ca}{ii} H and K lines and the 20\,\AA\,pseudo-continum centered on 4000\,\AA\,when the star is quiet (blue) and when an equatorial plage of 5\% in surface area of an hemisphere is at the disk center (red, corresponds to phase 0 in Fig. \ref{fig:2-1-0-0})} \label{fig:2-1-0-1} \end{center} \end{figure*} The effect of an active region on photometry, RV, BIS SPAN, and FWHM is proportional to the active region surface area \citep[see Fig. 8 in][]{Dumusque-2014}. This is expected because a large active region should induce the same effect on these observables as several smaller active regions of which it might consist. We show in Fig. \ref{fig:2-1-0-2} that the $S_{\mathrm{index}}$ is also proportional to the covered surface area. This proportionality is crucial for our simulation of stellar activity because it will allow us to measure the total effect of these regions by summing the individual contribution of each of them when we consider several active regions on the stellar surface in Sect. \ref{sect:2-1-2} . \begin{figure}[t] \begin{center} \includegraphics[width=8.2cm]{area_spot_vs_S_index.pdf} \caption{ $S_{\mathrm{index}}$ as a function of the active region surface area. By removing the quiet-Sun $S_{\mathrm{index}}$ value, i.e., 0.16, from the measured $S_{\mathrm{index}}$, we observe a proportionality with the plage surface area.} \label{fig:2-1-0-2} \end{center} \end{figure} We note that the study presented here shows the effect of plages on the calcium activity index. A similar behavior can be seen for spots, but with a smaller $S_{\mathrm{index}}$ variation, as spots tend to be an order of magnitude smaller than plages \citep[][]{Chapman-2001} and much fainter than the quiet photosphere. We are aware that this model does not correctly estimate the maximum variation amplitude in $S_{\mathrm{index}}$ for a given active region. This model can only give an approximate estimate because \begin{itemize} \item we were unable to use the pseudo-continuum at 3900\,\AA\,to measure the $S_{\mathrm{index}}$ because this pseudo-continuum is absent from the NSO solar spectral atlases we used, \item we did not consider that the flux in the core of the \ion{Ca}{ii} H and K lines would need to be multiplied by a triangular function to match the Mount Wilson survey observations \citep[][]{Vaughan-1978}, \item we used in this simulation the NSO solar spectral atlas of a spot to model the \ion{Ca}{ii} H and K emission in a plage. These different active regions have different magnetic field strengths, therefore different emission in the chromosphere, and\item the magnetic field strength varies from one active region to another, implying different emission in the core of the \ion{Ca}{ii} H and K lines. \end{itemize} However, important for the RV fitting challenge is not the maximum amplitude of the variation observed in $S_{\mathrm{index}}$, but its variation as a function of time. This time variation is assumed to be correctly taken into account because the value of $S_{\mathrm{index}}$ changes with the projection of the active region toward the line of sight, and its variation is symmetric with respect to the stellar disk center (see Fig. \ref{fig:2-1-0-0}). \subsubsection{Simulating the RV short- and long-term activity signals of the Sun} \label{sect:2-1-2} In the preceding section, we showed that we are able to estimate the effect of active regions on the different observables obtained from HARPS-like spectrographs using SOAP 2.0. It is not possible, however, to consider the appearance and size evolution of active regions with SOAP 2.0, which is necessary to model the activity of Sun-like stars. To do so, we used a model developed in \citet{Dumusque-2011b}. In this previous work, the authors used empirical laws from solar observations to simulate the appearance of spot groups on the solar surface because spots tend to appear in groups. Here, we improve this model by also considering plages, which are generally found to surround spots. In the new model, a plage group will surround a spot group to form what we refer to as an active region group (ARG). Considering an ARG is possible because the amplitude of the variations observed in RV, BIS SPAN, FWHM, and $\log$(R$^{\prime}_{HK}$)\,are proportional to the active region surface area \citep[see Fig. 8 in][and Sect. \ref{sect:2-1-0} here for the calcium activity index]{Dumusque-2014b}. This ensures that considering the individual effect of ten active regions covering an ARG and then summing their contribution, or simply considering the effect of the ARG, will give the same results. We present here a summary of the empirical laws derived from solar observations that we used to simulate the appearance of ARGs on the surface of a star. For more details we refer to \citet{Dumusque-2011b}. We note that the goal here is not to simulate the activity of the Sun, as this can be extremely complex and requires sophisticated magnetohydrodynamic models like CO5BOLD \citep[][]{Freytag-2012}, but to model in a simple way the observed phenomena that lead to RV variations.\\ \emph{Appearance and evolution of active region groups}\\ We followed \citet{Dumusque-2011b} to simulate the appearance and evolution of spot groups and started with an empirical law from solar observations that describes their lifetime distribution \citep[][]{Howard-2000}: \begin{itemize} \item 50\% of the spot groups have lifetimes of between 1 h and 2 days, \item 40\% of the spot groups have lifetimes of between 2 days and 11 days, and \item 10\% of the spot groups have lifetimes of between 11 days and 2 months. \end{itemize} For simplicity, we assumed that spot groups and plage regions surrounding them, forming what we call ARGs, are tightly related. Plage groups appear and disappear at the same time as spot groups and evolve in size in a similar way. Plage groups cover a surface area that is ten times larger than the area coverd by spot groups \citep[][]{Chapman-2001}. The lifetime of an ARG is correlated to its maximum surface area \citep[][]{Howard-2000}. For a surface area measured in filling factors, that is, the surface area ratio between the active region and the visible hemisphere, the largest size of an ARG is given by% \begin{equation}\label{eq:2-1-2-0} f_{ARG,max}=10^{-4}T, \end{equation} where the maximum filling factor of the ARG $f_{ARG,max}$ is expressed in hemisphere, and the lifetime $T$ in days. As in \citet{Dumusque-2011b}, we did not consider small ARGs that last shorter than one day and affect the RV signal only negligibly. The appearance of ARGs is ruled by a Poisson law: \begin{equation}\label{eq:2-1-2-1} P[(N(t+\tau)-N(t))=k]=\frac{e^{-\lambda\tau}(\lambda\tau)^k}{k!} \qquad k=0, 1, \cdots, \end{equation} where $P$ is the appearance probability of an ARG, $N$ is the number of ARGs, $t$ is the time, $\tau$ is the time step, and $\lambda$ is the average appearance rate of ARGs per unit of time. When an ARG appears on the stellar surface, it starts with a null size that increases during the first third of the ARG lifetime up to its maximum size as defined by Eq. \ref{eq:2-1-2-0}. The size then decreases during the remaining two thirds of its lifetime. Active region groups appear around preferred active longitudes, with a Gaussian distribution centered on 0 and a dispersion of 15 degrees. Compared to the work of \citet{Dumusque-2011b}, where 4, 5, or 6 active longitudes could exist, we here only considered the five-case scenario that breaks the symmetry between the northern and southern hemisphere.\\ \emph{Solar magnetic cycle}\\ The Sun has an 11-year magnetic cycle, during which the so-called \emph{\textup{sunspot number}} on the visible hemisphere varies from zero to $\sim$150-200, as seen for cycles\footnote{see \url{http://solarscience.msfc.nasa.gov/SunspotCycle.shtml}} 21, 22, and 23. We note that because of difficulties in counting small spots inside spot groups, the \textup{sunspot number }does not correspond to the precise number of spots at a given time, but is defined as ten times the number of spot groups plus the number of individual spots. The average number of spots inside spot groups is $\sim$10, therefore the sunspot number\emph{} represents an average number of spots at a given time. A solar magnetic cycle is characterized by a progressive increase in the number of ARGs until the maximum of the cycle is reached, followed by a progressive decrease until nearly no ARGs remain on the solar surface. During a magnetic cycle, it is also observed that ARGs migrate from high latitude, $\pm 30$ degrees at the beginning of the cycle, toward the equator \citep[][]{Maunder-1904,Lockyer-1904}. To include both of these effects in our simulation, we used a time-dependent average appearance rate of ARGs ($\lambda$ in Eq. \ref{eq:2-1-2-1}) and a time-dependent latitude: {\small \begin{eqnarray}\label{eq:2-1-2-2} \lambda(t) &=& (\lambda_{\mathrm{max\,activity}}-0.5).\left[-0.5\,cos\left(2\pi\left[\frac{t}{P_{\mathrm{cycle}}}+\phi_0\right]\right)+0.5\right] + 0.5, \nonumber \\ \theta(t) &=& \theta_{\mathrm{min\,activity}}.\left[1-\frac{1}{2\pi}.\left(2\pi\left[\frac{t}{P_{\mathrm{cycle}}}+\phi_0\right]\right).\mathrm{modulo}\left(2\pi\right)\right], \end{eqnarray} } where $t$ is the time, $\lambda_{\mathrm{max\,activity}}$ is the appearance rate of ARGs per unit of time for the highest activity level, $P_{\mathrm{cycle}}$ is the period of the magnetic cycle, $\phi_0$ is the phase of the magnetic cycle at time 0 (between 0 and 1), and $\theta_{\mathrm{min\,activity}}=\pm30\,\mathrm{degrees}$ is the latitude at which ARGs appear at the beginning of the magnetic cycle. We note that we added $0.5\,\mathrm{ARG}.\mathrm{day}^{-1}$ to $\lambda(t)$ here to consider a low but non-zero appearance probability of ARGs at the lowest activity level. To reproduce an average number of 150 to 200 spots, as observed on the Sun for the last maximum activity level of cycle 21, 22, and 23, we needed to consider\footnote{We note that the average appearance rate of ARGs per unit of time is slightly higher than twice the value reported in \citet{Dumusque-2011b}. This discrepancy is explained by the fact that we here counted the average appearance rate of ARGs per unit of time over the entire surface, while \citet{Dumusque-2011b} considered the average appearance rate of ARGs per unit of time over the visible hemisphere. This new definition makes more sense.} $\lambda_{\mathrm{max\,activity}} = 10.5\,\mathrm{ARGs}.\mathrm{day}^{-1}$. This value was selected after several simulations modeling solar maximum, that is, fixing $\lambda(t)$ to $\lambda_{\mathrm{max\,activity}}$ and considering $\theta(t) = \pm15\,\mathrm{degrees}$. Our simulation only gives us information about the total number of ARG or spot groups. To derive the total number of spots, we used as in \citet{Dumusque-2011b} the proportionality between the number of spots per group and the spot group surface area\footnote{From Fig. 4 in \citet{Hathaway-2008}, we derive that $N_{\mathrm{spot\,group}} = 3.3\,10^{2}\,S_{\mathrm{spot\,group}}$, where $N_{\mathrm{spot\,group}}$ is the number of spots in the spot group and $S_{\mathrm{spot\,group}}$ is the surface area of the spot group in percent of hemisphere.}, which is one tenth of the ARG surface area by construction. Because ARGs migrate from high toward low latitudes, it is important to consider the observed solar differential rotation. We considered here an empirical law derived from solar observations by \citet{Howard-1996}: \begin{equation}\label{eq:2-1-2-3} \omega=A+B\sin^2\theta, \end{equation} where $\omega$ is the angular speed in $\mathrm{degree}.\mathrm{day}^{-1}$, $\theta$ is the latitude of the ARG, $A = 14.476 \pm 0.006\,\mathrm{degree}.\mathrm{day}^{-1}$ is the angular speed of the solar equator, and $B=-2.875 \pm 0.058\,\mathrm{day}^{-1}$ is the amplitude of the differential rotation. ARGs at higher latitudes therefore rotate more slowly than their lower latitude analogs. \subsubsection{Solar activity model and comparison with observations} \label{sect:2-1-3} The physics included in our simulation of solar activity is rather simple, and we do not intend to model solar observations precisely. For a more complex and realistic model, we refer to \citet{Borgniet-2015}. However, as the goal of this activity model is to simulate the activity of solar-type stars for the purpose of the RV fitting challenge, a first-order agreement with solar observations is sufficient. In Figs. \ref{fig:2-1-2-0}, \ref{fig:2-1-2-1}, and \ref{fig:2-1-2-2} we show the results of a five-year simulation of the Sun, with a magnetic cycle period set to three years. \begin{figure*}[t] \begin{center} \includegraphics[width=8.2cm]{spot_number_and_area_coverage_log_Rhk_48_period_25_05_incli_90_magn_cycle_phase0_0_0.pdf} \includegraphics[width=8.2cm]{Flux_and_RV_effect_log_Rhk_48_period_25_05_incli_90_magn_cycle_phase0_0_0} \caption{Simulated solar-like magnetic cycle, with a period set to three years. {\emph Left:} Variation as a function of time of the total number of spots and of the projected filling factor of spot groups (SGs) and plage groups (PGs). The red line represents a monthly smoothing of the data. {\emph Right:} Flux, RV, and $\log$(R$^{\prime}_{HK}$)\,variations as a function of time. Blue corresponds to the effect of spot groups, green to the effect of plage groups, and red to the combined effect. For the RV and the $\log$(R$^{\prime}_{HK}$), the red line overlaps the green one, implying that the variation of these observables is fully dominated by plage groups.} \label{fig:2-1-2-0} \end{center} \end{figure*} We first compare the results of our simulation with the observed maximum number of spots, as well as the projected filling factor of spots and plages. In the left panel of Fig. \ref{fig:2-1-2-0} we show the evolution of the spot number and the variation in the projected filling factor for the spot and the plage groups. The number of spots on the visible hemisphere, averaged over a month, peaks at 160 and 208 for the first and second maxima of the magnetic cycle. For the same times, the projected filling factor of the spot groups is 0.23 and 0.29\%, and by construction, the projected filling factor of the plage groups is ten times larger. \citet{Meunier-2010a} derived these projected filling factor values for cycle 23 using MDI/SOHO magnetograms, and \citet{Borgniet-2015} studied their monthly averages. The highest values found for cycle 23 are $\sim$0.2\% for the projected filling factor of spots and $\sim$3\% for the filling factor of plages. Considering these values, our simulation reproduces solar observations, although it may slightly underestimates the surface area covered by plages. In the right panel of Fig. \ref{fig:2-1-2-0} we show the variations in flux, RV and $\log$(R$^{\prime}_{HK}$)\,from our simulation\footnote{Our simulation is based on SOAP 2.0 and therefore return the $S_{\mathrm{index}}$ variation (see Sect. \ref{sect:2-1-0}). $\log$(R$^{\prime}_{HK}$)\,is derived using Eq. \ref{eq:sect:2-1-0-0} \citep{Noyes-1984}, considering a solar B-V of 0.656. }. The flux effect induced by spots is nearly compensated for by plages, which can be explained by spots being fainter and plages being brighter than the solar quiet photosphere. For the RV, our simulation demonstrates that the observed variation is fully dominated by plages, as stated in several preceding studies of slow rotators like the Sun \citep[][]{Dumusque-2014,Meunier-2010a}. This is also expected for $\log$(R$^{\prime}_{HK}$)\,because spots have a negligible surface area compared to plages, and they are much fainter. The peak-to-peak amplitude of the long-term RV variation in our simulated data set is about 20\ms, which is compatible with the amplitudes measured on a large sample of solar-like dwarfs \citep[][]{Lovis-2011b, Dumusque-2011}. We note, however, that the simulated $\log$(R$^{\prime}_{HK}$)\,peak-to-peak variation is underestimated by a factor of two when compared to the Sun. It should be 0.2 dex, ranging between -5 and -4.8. As already discussed in Sect. \ref{sect:2-1-0}, our modeling of the $S_{\mathrm{index}}$ using SOAP 2.0, and therefore $\log$(R$^{\prime}_{HK}$), is missing some important information to correctly simulate the absolute variation observed in $\log$(R$^{\prime}_{HK}$). The different groups analyzing the data of the RV fitting challenge will use this observable to probe the presence of active regions, to understand the RV red noise component that is induced by active regions, and to measure rotation periods by studying its periodicity (and not the estimated rotational period using the average level in $\log$(R$^{\prime}_{HK}$)\,\citep[][]{Mamajek-2008, Noyes-1984}, which is incorrect in the simulated data). The correct variation amplitude is therefore not crucial, but the variation of $\log$(R$^{\prime}_{HK}$)\,as a function of time should be modeled properly, which is the case. Finally, we show in Fig. \ref{fig:2-1-2-1} the butterfly diagram, that is, the latitude of ARGs as a function of time. ARGs appear at a latitude of $\pm30$ degrees and migrate toward the equator during the course of a magnetic cycle. This simulated pattern agrees with the observations performed in cycle 23 \citep[see Fig. 3 in][]{Borgniet-2015}. We also show in Fig. \ref{fig:2-1-2-2} that $\log$(R$^{\prime}_{HK}$)\,is proportional to the projected filling factor of ARGs, which is observed for the Sun \citep[][]{Meunier-2013}. In conclusion, using simple empirical laws for the appearance and decay of ARGs on the solar surface, we are able to reproduce the activity observed in solar magnetic cycle 23 with good accuracy. Some more complex simulations are able to reproduce solar activity more precisely \citep[][]{Borgniet-2015}, however, they use several additional parameters that can not be constrained for stars other than the Sun. Because our goal is to simulate the activity of solar-type stars and then use the results to simulate RV observations for the RV fitting challenge, our simple activity simulation is sufficient. \begin{figure}[t] \begin{center} \includegraphics[width=8.2cm]{Butterfly_diagram_log_Rhk_48_period_25_05_incli_90_magn_cycle_phase0_0_0.pdf} \caption{Butterfly diagram showing the latitude of the ARGs as a function of time. During the three years of the magnetic cycle simulated here, the active regions migrate from a latitude of 30 degrees to the equator. The new cycle begins when ARGs again appear at high latitude.} \label{fig:2-1-2-1} \end{center} \end{figure} \begin{figure}[t] \begin{center} \includegraphics[width=8.2cm]{Correlations_rhk_ff_log_Rhk_48_period_25_05_incli_90_magn_cycle_phase0_0_0.pdf} \caption{$\log$(R$^{\prime}_{HK}$)\,activity index as a function of the ARGs projected filling factor. Here we sum the contribution of all the ARGs including spots and plages.} \label{fig:2-1-2-2} \end{center} \end{figure} \section{Data set for the RV fitting challenge} \label{sect:3} The data set for the RV fitting challenge is composed of simulated and real planetary systems including instrumental noise and stellar signals. In this section we describe how these systems were generated and selected. The data of all these systems can be downloaded at CDS or on the \emph{wiki} of the RV fitting challenge at \url{https://rv-challenge.wikispaces.com/Dataset+for+RV+challenge}. \subsection{Simulated data} \label{sect:3-1} To obtain realistic RV observations for the purpose of the RV fitting challenge, we first selected a realistic observational calendar and then generated RV measurements for these times, using the different models described above to simulate instrumental and stellar signals. We selected the observational calendars of $\tau$\,Ceti (HD10700), HD192310, $\alpha$\,Cen\,B (HD128621), and Corot-7 from HARPS public available data\footnote{See the ESO archive: \url{http://archive.eso.org/cms.html}}. Except for Corot-7, these are the stars that have been the most frequently followed using this instrument \citep[][]{Pepe-2011}. Given that those stars are observed on every possible night, over $\sim$200 nights allocated per year, it is difficult to obtain a better observational sampling using ground-based instruments \citep[however, see the CHIRON, the automatic planet finder, and the MINERVA RV facilities,][]{Tokovinin-2013,Vogt-2014a,Swift-2015b}. To generate one set of data, we first selected an observational calendar from the available ones and simulated the expected signals induced by instrumental noise, stellar oscillations, granulation, and supergranulation for the same times, as explained in Sect. \ref{sect:2-0}. We then selected an 11-year period for the magnetic cycle of the star, the phase of the magnetic cycle for the first measurement in the calendar, and the rotation period of the star, and we simulated the stellar activity based on our solar model described in Sect. \ref{sect:2-1}. This model for solar activity will estimate the effect of active regions every two hours for the entire time span of the observations. We finally selected the points in the activity simulation that are closest in time to the calendar and added their contribution to the data that were generated to include instrumental noise, stellar oscillations, granulation, and supergranulation. Because activity varies on the timescale of stellar rotation periods, longer than 20 days in all our cases, the maximum one-hour discrepancy in time that we can have between the activity model and the calendar is not relevant. In Fig. \ref{fig:2-0-2} we do not compare the rms of $\alpha$\,Cen\,B and Corot-7 to the simulated data because these stars present significant activity that will induce a higher rms for all observables in our ten day chunks. However, these stars probably have similar signals induced by granulation, stellar oscillations, and instrumental noise because they are close to $\tau$\,Ceti in spectral type. In total, the data set for the RV fitting challenge includes ten simulated planetary systems: 1 to 5, 7, 8, 12, 13, and 15. In addition, before generating the data set for the RV fitting challenge, a test system was simulated so that the different teams ready to analyze the data of the RV fitting challenge could prepare themselves and test their method for recovering planetary signals despite stellar signals. This test data set included the RV, BIS SPAN, FWHM, and $\log$(R$^{\prime}_{HK}$)\,variations induced by a planet with a 16-day period and stellar signals, like for the other systems of the RV fitting challenge. However, in addition, this test data set also included the RV, BIS SPAN, FWHM, and $\log$(R$^{\prime}_{HK}$)\,variations of each individual signal component, that is, the planetary signal, the oscillation, granulation, and supergranulation signals, the instrumental noise, and the activity signal. This test data can be downloaded at \url{https://rv-challenge.wikispaces.com/Test+dataset}. \subsection{Real data} \label{sect:3-2} To test the realism of the simulated data, we included real RV measurements obtained by HARPS in five systems of the RV fitting challenge. We show in Table \ref{data} that the HARPS publicly available RV measurements of HD192310 (system 6), $\alpha$\,Cen\,B (HD128621, systems 9,10, and11) and Corot-7 (system 14) are included. System 6 includes the real HARPS measurements of HD192310, including therefore planets b and c \citep[][]{Howard-2011, Pepe-2011}. We note that this system was rejected because of problems when generating the times series (see Sect. \ref{sect:3-3}). System 9 includes the real data set of $\alpha$\,Cen\,B that was used to detect the Earth-mass planet orbiting the star \citep[][]{Dumusque-2012}. We note, however, that the 50 \cms signal claimed as a planet at the time is probably an artifact that is due to sampling and the model used to mitigate stellar signals \citep[][]{Rajpaul-2016}. To prevent the different teams involved in the RV fitting challenge from recognizing the real data of $\alpha$\,Cen\,B, we shifted the starting date to JDB=2455000, inverted the time, added a Gaussian noise of 5 \cms, and changed the gamma velocity of the star. The data therefore looked different, but have the same stellar and planetary signals (if existing), only with a different phase. Systems 10 and 11 also used the real RV measurements of $\alpha$\,Cen\,B, but this time we added simulated planetary signals (see Sect. \ref{sect:3-3} and Table \ref{data}). Adding these extra signals changed the original data significantly, and we therefore did not modify the original data like for system 9. Finally, system 14 includes the real RV data of Corot-7 taken with HARPS, including thus two to three planetary signals \citep[the third planet might be due to activity, see][]{Haywood-2014,Queloz-2009}. As in system 9, we disguised the data so that the different teams analyzing the times series could not recognize them. \subsection{Injected planetary systems} \label{sect:3-3} The goal of the RV fitting challenge is to assess at which precision planetary signals can be detected in RV measurements that are affected by stellar signals. This can only be done if we precisely know the planetary signals present in the data. We therefore injected planetary systems that were detected by \emph{Kepler} \citep[][]{Mullally-2015} and by HARPS \citep[][]{Mayor-2011} in our simulated RV measurements and also in a few real RV time-series. We summarize the different planetary signals present in the data set for the RV fitting challenge in Table \ref{data}. We note that no planetary signals were injected in systems 4, 8, 9, 13, and 14. We also note that for the real planetary systems i) we did not include all the detected planets, ii) we changed the published mass and eccentricity by less than 10\%, and iii) we chose a random time at periastron passage to prevent the participant of the RV fitting challenge from recognizing the planetary systems. Finally, in addition to detected planets, we also injected simulated planetary signals. We decided to inject them to test \begin{itemize} \item when techniques relying on Gaussian process regression or other red-noise models were suppressing planetary signals when the orbital period was close to stellar rotation or an harmonic, \item the ability of any correction techniques to detect Earth twins, that is, Earth-mass planets in the habitable zone, \item the effect of long-term trends when searching for close-in planets. \end{itemize} We rejected system 6 because we discovered a bug in the way we generated the RVs. The idea of this data set was to use the HARPS measurements of HD192310, to have real stellar and instrumental signals, and to add some addition planets to the already present signals of HD192310b and HD192310c. This data set was supposed to be similar to the simulated data set 7 for an additional comparison between real and simulated data. However, in the process of adding extra planets, we also added a simulated signal for HD192310b and c. The RV time series of system 6 therefore includes the real planetary signals of planet b and c, plus simulated signals for these two planets, with the same period, amplitude, and eccentricity as the real signals, but different argument of periastron and time of periastron passage. As the sum of two Keplerians with same period, amplitude and eccentricity, but different argument of periastron and time of periastron passage cannot be represented as one Keplerian\footnote{this is the case if the eccentricity is null, however}, we decided to reject this system from the data set of the RV fitting challenge. To discover the real and simulated planetary signals present in the data, the different teams were supposed to fit two Keplerians at the period of planet b and two at the period of planet c, which is possible but normally excluded for planetary system stability reasons. Rejecting system 6, we are left with fourteen data sets, containing a total of 45 injected planetary signals. In addition to those 45 planets, we have a few others, probably those present in the real data sets 9, 10, and 11 ($\alpha$\,Cen\,Bb) and those that are present in system 14 (Corot-7b, c, and perhaps d). \section{Comparison between simulated and real data} \label{sect:4} The goal of the RV fitting challenge is to test the efficiency of different methods in recovering planetary signals despite stellar signals. Testing the efficiency of different techniques on simulated data can be useless when those simulated data are not realistic. To be able to test the realism of our simulated data, we simulated some systems as closely as possible to the real systems selected for the data set of the RV fitting challenge. Thus systems 9 and 13, 11 and 12, and 14 and 15, including real and simulated data, can be compared. In Figs. \ref{fig:annex0}, \ref{fig:annex1}, \ref{fig:annex2}, \ref{fig:annex3}. \ref{fig:annex4}, \ref{fig:annex5}, and \ref{fig:annex6}, we plot the RV as a function of time and the correlation between all the time series of each RV fitting challenge system. We can perform a first comparison between real and simulated systems by considering the correlation between the different time series. Comparing real system 9 and simulated system 13 shown in Figs. \ref{fig:annex3} and \ref{fig:annex5}, we see that the peak-to-peak amplitude of the raw RV variation is 19 \ms\,for the real data when the RV drift induced by $\alpha$\,Cen\,A is removed, using the parameters found in \citet{Dumusque-2012}, while it is twice that for the simulated data, 41 \ms. When we remove the effect of the magnetic cycle in the RVs of both systems using a linear correlation with $\log$(R$^{\prime}_{HK}$)\,\citep[][]{Meunier-2013}, the peak amplitude of the RV variation in the real and simulated data becomes very similar, 11 and 13 \ms, respectively. This implies that the amplitude of the simulated stellar signal induced by oscillations, granulation, supergranulation, and short-term activity is similar to what is observed in the real data. However, the simulated magnetic cycle induces a RV variation that is twice larger than what is observed. The real measurements used for system 9 are the data gathered by HARPS on $\alpha$\,Cen\,B, a K0 dwarf. It has been shown that for a similar amplitude magnetic cycle in $\log$(R$^{\prime}_{HK}$), the induced RV variation has a larger amplitude for G dwarfs than for K dwarfs because of the lower convective velocities in stars of later spectral type \citep[][]{Lovis-2011b, Dumusque-2011}. The simulation of the magnetic cycle presented in Sect. \ref{sect:2-1-2} is based on the Sun, a G2 dwarf, therefore it is not surprising that our simulation overestimates the RV effect of the magnetic cycle when simulating $\alpha$\,Cen\,B data. Equation 13 in \citet{Lovis-2011b} shows that the slope of the linear correlation between RV and $\log$(R$^{\prime}_{HK}$)\,is 30.3 for the Sun ($T_{eff}=5778\,K$) and 15.1 for $\alpha$\,Cen\,B ($T_{eff}=5214\,K$ and considering solar metallicity). This implies that for the same magnetic cycle in $\log$(R$^{\prime}_{HK}$), the RV peak-to-peak amplitude will be twice as high for the Sun as for $\alpha$\,Cen\,B, exactly the factor of two observed here. A similar behavior can explain why the peak-to-peak amplitude in BIS SPAN and FWHM is larger for the simulated than the real measurements. The magnetic cycle effects on the RVs, BIS SPAN and FWHM can be modeled and corrected for using $\log$(R$^{\prime}_{HK}$), therefore this overestimation should not complicate the detection of planets in systems 13 compared to system 9. As already stated in Sect. \ref{sect:2-1-3}, this difference in amplitude is a problem if the different teams that analyze the data aim to estimate the rotational period using the average level in $\log$(R$^{\prime}_{HK}$)\,\citep[][]{Mamajek-2008, Noyes-1984}. Comparing the correlations between all the parameters, we see very similar behaviors, with tighter correlations for the simulated data than for the real ones, however, which should not be the case because the simulated data have twice the dispersion in this case. This can probably be explained by our simplistic modeling of short- and long-term stellar activity that considered that all spots and plages induce the same variation\footnote{as estimate from SOAP 2.0} that is just scaled to account for the active region size. Comparing real system 11 and simulated system 12 shown in Figs. \ref{fig:annex4} and \ref{fig:annex5}, we arrive at similar conclusions as for system 9 and 13. This is expected because the only difference between system 11 from 9 and system 12 from 13 is the addition of planetary signals. These injected planetary signals all have a smaller semi-amplitude than the effects of stellar signals (see Table \ref{data}) and therefore do not contribute significantly to the correlations present in the data. Comparing real system 14 and simulated system 15 shown in Fig. \ref{fig:annex6}, we directly see that the simulated $\log$(R$^{\prime}_{HK}$)\,has values far below the measured $\log$(R$^{\prime}_{HK}$). The Corot-7 data were used to generate system 14. Corot-7 is a G9 dwarf \citep[][]{Leger-2009} far more active than the Sun. Our simulation based on the Sun is therefore not able to reproduce similar activity levels in $\log$(R$^{\prime}_{HK}$). When we simulated system 15, we artificially increased the level of stellar activity so that the peak-to-peak variation in the simulated data would be similar to the real data. It is therefore not possible to simply compare these two systems at this stage, but a trend is seen in the RVs of system 15 and a strong correlation can be seen between the RVs and the $\log$(R$^{\prime}_{HK}$), which is not the case in system 14. This is because we generated the data for system 15 as if it were a quiet solar-like star and then multiplied the RV, BIS SPAN, and FWHM time series to account for the higher dispersion seen in the active star Corot-7 compared to the quiet Sun. However, in this process, we also multiplied the magnetic cycle effect, which should not be done as the amplitude of the magnetic cycle is proportional to the velocity of convection and its inhibition in active regions, which is not related to the higher activity of Corot-7 that is due to its younger age. A first comparison between real and simulated data shows that the simulation of stellar signals presented in this paper, although simple, manages to reproduce the RV, BIS SPAN, FWHM, and $\log$(R$^{\prime}_{HK}$)\,variations observed in real measurements fairly well, mainly in terms of the observed correlation between the different time series. A more detailed discussion is left for a forthcoming paper, which will present the result of the different teams that analyzed the data set of the RV fitting challenge \citep[][]{Dumusque-2016b}. \section{Conclusion} \label{sect:5} We presented here the simulation of instrumental and stellar signals that led to the data set of the RV fitting challenge. This simulation, based on solar and stellar observations, allows generating realistic instrumental signals from HARPS and stellar signals induced by oscillations, granulation, and supergranulation, and magnetic activity on the rotation period and magnetic cycle timescales. The simulation is able to reproduce the variations seen in RV, BIS SPAN, FWHM, and $\log$(R$^{\prime}_{HK}$). The simulation of instrumental and stellar signals was used to generate two-thirds of the 15 systems included in the data set of the RV fitting challenge. The remaining third of the data set corresponds to real measurements obtained with HARPS. These real measurements are important for checking the realism of simulated systems, which is critical if we wish to draw valid conclusions from the results of the RV fitting challenge \citep[][]{Dumusque-2016b}. A first comparison between simulated and real data shows that the simulation of stellar signals presented in this paper manages to reproduce the correlation between the different observables given in the data set of the RV fitting challenge fairly well, that is, RV, BIS SPAN, FWHM, and $\log$(R$^{\prime}_{HK}$). A more detailed comparison is left for a forthcoming analysis \citep[][]{Dumusque-2016b}. Two versions of the data set of the RV fitting challenge exist and can be downloaded at the CDS or on the RV fitting challenge \emph{wiki}. The first version is the blind-test data set given to the different teams to recover planetary signals embedded in stellar signals; it can be downloaded at \url{https://rv-challenge.wikispaces.com/Dataset+for+RV+challenge}. In this version, only the RV, BIS SPAN, FWHM, and $\log$(R$^{\prime}_{HK}$)\,variations are given without extra information. The second version includes the variation of the same observables, but separately for each signal component present in the data, in addition to stellar and planet properties; it can be downloaded at \url{https://rv-challenge.wikispaces.com/Details+about+the+dataset}. It is therefore possible to use this more detailed version to check \emph{\textup{a posteriori}} that planetary signals recovered in the data correspond to true signals, that models to fit activity are indeed adjusting the correct activity component, and so on. This more detailed version of the data set of the RV fitting challenge was given to the different teams after they completed their analysis of the blind-test data set. We hope that in addition to the different teams that participated in the analysis of the data set of the RV fitting challenge, other teams will use these data to search for new methods for recovering planetary signals embedded in stellar signals. Determining the best methods is critical for the immediate future, when TESS \citep[][]{Ricker-2014} and PLATO \citep[][]{Rauer-2014} will deliver hundreds of good candidates for RV follow-up with ultra-precise spectrographs such as ESPRESSO \citep[][]{Pepe-2014}, G-CLEF \citep[][]{Fzresz-2014}, and EXPRES (PI: D. A. Fischer and C. Jurgenson). \begin{acknowledgements} X. Dumusque is extremely grateful to S. Aigrain, G. Anglada-Escud\'e, G. Bou\'e, A. Correia, R. D\'iaz, D. A. Fischer, E. B. Ford, P. C. Gregory, A. Hatzes, J. S. Jenkins, A. Santerne, S. H. Saar, G. Scandariato, and M. Tuomi for interesting discussions about the design of the data set of the RV fitting challenge and the best way to organize it. X. Dumusque also acknowledges the Society in Science$-$The Branco Weiss Fellowship for its financial support. \end{acknowledgements} \bibliographystyle{aa}
\section{Introduction} \label{sec:introduction} More and more high-resolution images show that debris disks often take the form of rings, sometimes narrow, sometimes eccentric. Well-resolved examples include HR4796 \citep{schneider09, thalmann11, lagrange12}, Fomalhaut \citep{stapelfeldt04, kalas05}, HD 181327 \citep{schneider06}, $\zeta^2$ Reticuli \citep{eiroa10}, HD 202628 \citep{krist12}, and HD 115600 \citep{currie15}. These rings may indicate the presence of hidden planets, which can clear the central cavities in the rings and also excite the ring eccentricities via secular perturbations \citep{roques94, wyatt99, kuchner03, quillen06, chiang09, rodigas14, nesvold15}. At shorter wavelengths, regions of an eccentric disk near pericenter appear brighter because they receive more flux from the host star. \citet{wyatt99} named this phenomenon ``pericenter glow'' and developed a model for an eccentric debris ring interacting with a single planetary perturber. Their model disk consists of massless particles whose eccentricities differ only in the direction of the free eccentricity. The resulting ring suffices to explain the offset in the solar zodiacal cloud from the sun and to fit observations of several debris disks, yielding constraints on the disks' forced eccentricity and the masses of the hidden planetary perturbers. However, variations in the disk surface density also affect its apparent brightness, and in a steady-state disk the density should peak at apocenter simply because typical orbit velocities are slowest there. Though modeling done by \citet{wyatt99} predicted a brightness enhancement at pericenter for HR 4796 at 18.2~$\mu$m, their disk model showed a 2\% density enhancement at apocenter. Analogous apocentric density enhancements occur in more recent dynamical models of eccentric planets interacting with disks \citep[see, for example,][]{nesvold13, pearce14}. Indeed, submillimeter observations of the very well-observed eccentric Fomalhaut disk consistently suggest apocentric brightness enhancements. JCMT images of Fomalhaut by \citet{holland03} show slight enhancements of the flux near apocenter; these enhancements are less than the quoted uncertainty in the photometry, but they appear in both 450~$\mu$m and 850~$\mu$m bands. When \citet{marsh05} imaged the Fomalhaut disk at 350~$\mu$m using the SHARC II (Submillimeter High Angular Resolution Camera II) at the Caltech Submillimeter Observatory, they found that the ring has an apocentric enhancement of approximately 14\% in integrated column density. More recently, \citet{ricci12} imaged Fomalhaut's disk at 7~mm with the ATCA and noted that the lobe of the disk near apocenter ``...appears to be more extended, showing two possible asymmetric structures toward east and south.'' The highest resolution ALMA images of Fomalhaut by \citet{boley12} at 350~GHz (1~mm) also show enhanced flux near apocenter in the maps corrected for the single-dish beam. Here we describe a new model for debris rings that illustrates the wavelength dependence in the apocenter/pericenter flux ratio due to the competing effects of azimuthal asymmetries in dust density and stellar illumination. Our primary interest here is mid-infrared and longer wavelengths, so we focus on dust particles and planetesimals large enough to avoid radiation pressure effects and consider only absorbed and re-radiated, rather than scattered, emission. In Section \ref{sec:semianalytic}, we begin by describing a semi-analytic model for estimating the surface density of a steady-state distribution of collisionless planetesimals and show that the density of a dust ring varies with longitude and peaks at apocenter. In Section \ref{sec:smack}, we verify this result for a collisional ring using SMACK \citep{nesvold13}, a numerical model of debris disk evolution that incorporates both collisions and dynamics in 3D. Finally in Section \ref{sec:rerad}, we combine a simple dust reradiation model with our models of surface density to simulate the brightness of the Fomalhaut and $\epsilon$ Eridani rings, and demonstrate that the ratio between pericenter and apocenter flux varies with wavelength. We summarize our results and discuss the implications for future observations of eccentric rings in Section \ref{sec:conclusions}. \section{Semi-Analytic Model} \label{sec:semianalytic} The surface brightness of an optically thin debris disk depends on the underlying spatial distribution of the dust as well as on the dust particles' absorption, reradiation, and scattering properties. In this section, we use basic orbit geometry and a simple Monte Carlo simulation to estimate the surface density of a eccentric ring of collisionless particles and its dependence on longitude from pericenter. \subsection{Disk Density Calculations} We first estimate the linear number density, $\ell$, of an eccentric ring of particles as a function of longitude, $f$, in the ring. $\ell(f)$ is the most relevant quantity for the many images of disks that are unresolved in the radial direction. We assume that the particles form an annulus about the star, and that their eccentricity, inclination, and semimajor axis distributions are centered respectively on values $e$, 0, $a$ and have widths $\Delta e<e\ll 1$, $\Delta i\simeq \Delta e$, $\Delta a\simeq a\Delta e$. Because we are considering a ring that appears eccentric overall and has a fractional radial width no larger than $\Delta e$, we must constrain the longitude of pericenter $\varpi$ to a distribution centered on $\varpi=0$ with width \begin{equation} \Delta\varpi \simeq \sqrt{1-e^2}\,\Delta e/e . \label{eqn:deltaomega} \end{equation} Also, we assume the particles' orbital phases and longitudes of the ascending node are distributed uniformly. For a single particle in a stable elliptical orbit given by \begin{equation} r=\frac{a(1-e^2)}{1+e\cos f} \;\;\;, \label{eqn:r} \end{equation} the time-averaged linear number density along the orbit is inversely proportional to the local Keplerian velocity: $\ell_\mathrm{single}(f)\propto 1/v(f)$ where $v(f)$ is given by \begin{equation} \label{eqn:velocity} \begin{split} v(f) & = \left(\frac{GM_*}{a}\frac{1+2e\cos f+e^2}{1-e^2}\right)^{1/2} \\ & \simeq v_0\left(1+e\cos f +e^2\left(1-\frac{\cos^2 f}{8}\right)\right) \\ v_0 & = \sqrt{GM_*/a}\;\;\;. \end{split} \end{equation} Here $v_0$ is simply the orbital velocity of a circular orbit with the same $a$. We consider only mildly eccentric disks ($e\ll 1$), so to lowest order in $e$ the linear number density in the disk scales as \begin{equation} \ell_\mathrm{single}(f) \propto \frac{1}{v(f)}\propto 1-e \cos f. \label{eqn:ell} \end{equation} In short, because particles orbit faster at pericenter and slower at apocenter, their number density decreases at pericenter and increases at apocenter by the same fractional amount $e$. \citet{marsh05} also calculated $\ell(f)$ by a somewhat different method and found a similar enhancement at apocenter. In a disk of such particles, the overall linear density $\ell(f)$ is the sum of all the individual densities $\ell_\mathrm{single}(f-\varpi)$. For a disk with particle orbit elements within the ranges given above, the linear density dependence on $f$ should remain close to that of $\ell_\mathrm{single}(f)$, that is, \begin{equation} \ell(f)\appropto 1-e \cos f \;\;\;, \end{equation} with slight variations due to the finite widths of the distributions of orbit elements. \subsection{Monte Carlo Simulations} To check our scaling argument above, we performed each Monte Carlo disk simulation by randomly drawing $5\times 10^4$ disk particle orbits from orbit element distributions as follows. The semimajor axes, eccentricities, longitudes of pericenter, and inclinations were drawn from Gaussian distributions with center values and widths ($\sigma$) given by \begin{itemize} \item typical eccentricity $e$ and eccentricity width $\Delta e$ chosen for each disk; \item typical semimajor axis $a=1$ and semimajor axis width $\Delta a=\Delta e$; \item typical longitude of pericenter $\varpi=0$ and corresponding width $\Delta\varpi$ given by Equation~\ref{eqn:deltaomega}; \item typical inclination $i=0$ and inclination width $\Delta i=\Delta e$. \end{itemize} The particles' longitudes of the ascending node and mean anomalies were chosen from uniform distributions over $[0,2\pi)$. We then measured the linear density as a function of longitude for each simulation, an example of which is shown in Figure~\ref{fig:lindensity}. As expected, $\ell$ varies nearly sinusoidally with $f$ with amplitude about equal to the eccentricity. In the above density calculations we assumed the grains are distributed uniformly along their orbits. In particular, we ignored azimuthal variations in dust production caused by differences in the frequency and severity of collisions between larger planetesimals induced, for example, by perturbations from planets orbiting in the system \citep[see, for example,][]{nesvold15}. These should be unimportant in our work here on gravitationally bound particles in a steady state disk, since any effects of azimuthal variations in their production rate should smear out within an orbit period\footnote{While azimuthal variations in production rate might indeed affect the steady state distribution of unbound dust small enough to be affected by radiation pressure, we leave studies on their behavior to future work}. In the next section we describe a numerical test of this effect. \section{Numerical Model with SMACK} \label{sec:smack} The semi-analytic model described in Section \ref{sec:semianalytic} assumes that the given ranges of orbit elements accurately represent a steady state disk. To test these assumption and the results of the semi-analytic model, we simulated the collisional and dynamical evolution of the planetesimals using SMACK \citep{nesvold13}. SMACK uses an N-body integrator to track the orbits of superparticles, clouds of parent bodies with a range of sizes. When two superparticles collide, SMACK updates the superparticles' trajectories and size distributions to account statistically for collisions between their planetesimals and tracks the mass of dust (\textless 1 mm in size) produced in the collision. We modeled the evolution of a ring of planetesimals in orbit around a solar-mass star. The planetesimals were represented by 10,000 superparticles of uniform size whose orbital elements were initially uniformly distributed with the ranges in Table~\ref{tab:initial}. Each superparticle represented a size distribution of planetesimals with range and slope given in Table~\ref{tab:initial}. We set the initial vertical optical depth of the ring to $10^{-4}$. While the semi-analytic model includes the eccentric ring alone, in order to induce and maintain an eccentricity in the SMACK model we added a 3 $M_\mathrm{Jupiter}$ planet to the system at semimajor axis 50 AU with eccentricity 0.1, then evolved the system for $10^7$ yr. \begin{deluxetable}{lc} \tablewidth{0pt} \tablecaption{Initial conditions for the SMACK model. \label{tab:initial}} \tablehead{\colhead{Parameter } & \colhead{Initial Disk Values} } \startdata Semimajor Axis ($a$) & 50-100 AU\\ Eccentricity ($e$) & 0.0-0.2 \\ Inclination ($i$) & 0.0-0.1 \\ Longitude of Ascending Node ($\Omega$) & 0-$2\pi$ \\ Argument of pericenter ($\omega$) & 0-$2\pi$ \\ Mean Anomaly & 0-$2\pi$ \\ Size distribution index ($q$)& $-3.5$\\ Planetesimal sizes & 1~mm to 10~cm\\ Optical depth& $10^{-4}$\\ Number of superparticles& $10^4$ \enddata \end{deluxetable} A snapshot of the simulation at this point shows that most of the superparticle eccentricities are distributed in a single roughly symmetric peak with half-width $\Delta e\simeq 0.07$, while perhaps 10\% form a tail extending to larger eccentricities (0.3 to 0.5). The peak eccentricity value is about 0.12, the median is about 0.14, and the mean is about 0.15. This distribution is broadly similar to our semi-analytic model assumptions except in that $\Delta e\simeq e$ rather than $\Delta e\ll e$. The corresponding normalized disk linear density is shown in Figure \ref{fig:lindensity} and is roughly sinusoidal with a peak at apocenter and amplitude about equal to the median eccentricity. Again, this is broadly consistent with our semi-analytic and MC model predictions. As we would expect, the inclusion of collisions in the SMACK model does not strongly affect the normalized linear density. By definition the eccentric disk has some steady-state finite eccentricity $e$ that persists regardless of the collisions; the Keplerian orbit shape required by this $e$ sets the linear density variation with longitude. Also, because the optical depth is much less than unity, any non-uniformity in dust production spreads around the disk much faster than dust can accumulate at a given longitude. \begin{figure} \centering \includegraphics[scale=0.8]{lindensity.eps} \caption{Linear number density $\ell$ as a function of longitude $f$ in our simulated debris disks. SMACK model data is the thin red line; MC model data is the solid blue line; the $1-e\cos f$ we predict analytically is the dashed black line. The median eccentricity of the SMACK model disk is $e=0.14$ and its eccentricity width is $\Delta e=0.07$; the same $e$ and $\Delta e$ were used in the MC model disk shown here. Both sets of model data were normalized to their respective mean values. $e=0.14$ was also used for the $1-e\cos f$ curve. While the MC model appears to be a very slightly better match to the SMACK model data than the cosine curve --- the root mean square deviation between the SMACK and MC models is about 2\% smaller than that between the SMACK model and the cosine --- all three agree well overall. Note that no fitting was performed; the normalized model data are simply overplotted along with the cosine.} \label{fig:lindensity} \end{figure} \section{Dust Reradiation Model} \label{sec:rerad} We have used semi-analytic and SMACK modeling to simulate the density of the dust ring produced by an eccentric parent body ring and showed that the orbital geometry of the dust produces a peak in surface density at apocenter. The observed flux from the dust is therefore subject to two competing effects: this higher number density at apocenter and the higher temperature at pericenter discussed in detail by \citet{wyatt99}. We now combine our semi-analytic and SMACK results with a simple radiative equilibrium model for dust emission to study the disk emission as a function of longitude at different wavelengths. We apply this surface brightness model to two well-observed disks: Fomalhaut and $\epsilon$ Eridani. \subsection{Dust Model Framework} We assume a passively heated disk containing dust of sizes $\{s\}$ with size distribution $dN/ds\propto s^{-q}$. We assume the disk is optically thin so that the thermal equilibrium condition for each grain is \begin{equation} \int d\lambda A(s,\lambda)L_*\frac{\pi s^2}{4\pi r^2} = \int d\lambda A(s,\lambda)4\pi s^2\sigma_\mathrm{SB}T^4(s,f) \end{equation} where $r=a(1-e^2)/(1+e\cos f)$ is the orbital radius, $T$ is the dust's effective temperature, and the absorptivity $A(s,\lambda)$ is 1 when $s>\lambda$ and scales as $(s/\lambda)^\beta$ otherwise. We solve this iteratively for sizes $s$ over a grid of wavelengths $\lambda$ including the star's blackbody peak and sum over the sizes $s$, with weights assigned according to $dN/ds$, to find the flux at each of the desired wavelengths. \subsection{Fomalhaut} \label{sec:fomalhaut} Because it is so well-observed at wavelengths from UV to mm-wave radio, the Fomalhaut disk \citep[eccentricity $\sim$0.1,][]{kalas05} provides an excellent test for our models. As discussed in Section \ref{sec:introduction}, previous works have consistently found that Fomalhaut exhibits pericenter glow --- i.e., is brightest at its southeast limb --- at wavelengths shorter than about 250~$\mu$m \citep[see, for example,][and references therein]{kalas05,acke12}. However, observations at longer submillimeter wavelengths consistently suggest that the northwest limb appears brighter than would be expected in a uniform ring \citep{holland03,marsh05,boley12}. We applied our dust reradiation model to the Fomalhaut system using stellar temperature $T_*=8590$~K, stellar radius $R_*=1.28\times 10^{11}$~cm, disk semimajor axis $a=133$ AU, radial width $\sim$20~AU, and eccentricity 0.1. To approximate the results of our semi-analytic model, we vary the linear mass density of the disk sinusoidally with longitude with amplitude 0.1 (simulating a disk with eccentricity $\sim$0.1). We explored a grid of absorptivity laws $1.0\leq\beta\leq2.0$ and dust size distributions $3\leq q\leq 4$ to predict the apocenter/pericenter glow from visual to millimeter wavelengths. Figure \ref{fig:fomalhautmodels} shows some examples of our results. Each panel shows the flux as a function of longitude, integrated over the radial width of the disk and normalized to pericenter, for 12 different wavelengths shown as different-colored curves. At the longer wavelengths, the simulated ring exhibits apocenter glow rather than pericenter glow. The location of the peak in flux shifts from apocenter (longitude = $\pi$) to pericenter (longitude = 0) with decreasing wavelength. The shortest wavelength to show apocenter glow in Figure \ref{fig:fomalhautmodels} is typically 160 or 70~$\mu$m. We show a summary view of the apocenter/pericenter flux contrast in Figure \ref{fig:fluxampfomalhaut}, which displays the range of apocenter/pericenter flux ratios occurring across our grid of models as a function of wavelength. Again, the modeled fluxes were integrated over the radial width of the disk, since azimuthal width variations are not well resolved in the images. Here, models exhibiting pericenter glow lie below the black dotted line while models with apocenter glow lie above it. At short wavelengths, all our models exhibit pericenter glow, while at long wavelengths, they all exhibit apocenter glow. This illustrates the competition between higher temperatures at pericenter discussed in detail by \citet{wyatt99}, which for Fomalhaut affect smaller particles more strongly and dominate in the shorter-wavelength emission, and the higher densities at apocenter, whose signature emerges strongly in the long-wavelength emission. Far-infrared and submillimeter observations of Fomalhaut appear broadly consistent with the range of apocenter/pericenter flux ratios our models predict, though flux ratio values based on ALMA and ATCA observations longward of 350~$\mu$m are currently not precise enough to include in Fig.~\ref{fig:fluxampfomalhaut}. A sufficiently large beam can dilute the effect of apocenter glow or blur it with background galaxies or other disk features like clumps, or even disk ansae, which themselves can be limb-brightened if the disk is not face-on. For example, in their discussion of pericenter glow in the Keck image of HR~4796 from \citet{telesco00}, \citet{wyatt99} calculate the effects of beam size and study the disappearance of disk asymmetry as pericenter/apocenter moves away from the disk ansae. Because the beam size in the Fomalhaut images is much smaller relative to the disk size than in the \citet{telesco00} HR 4796 observations, we believe these dilution/confusion effects are less important for the Fomalhaut data of \citet{acke12} and \citet{marsh05}\footnote{We refer here to the deconvolved image of \citet{marsh05}; the deconvolution method uses knowledge of the PSF to extract extra resolution information from strongly overlapped individual fields of view.}. Indeed both sets of disk images appear ring-shaped rather than dumbbell-shaped/double-lobed as in the earlier HR 4796 images. Also, for Fomalhaut \citet{acke12} measure the disk major axis to coincide within 1 degree with the line of nodes in the sky plane, so it is highly unlikely that pericenter orientation masks the pericenter/apocenter flux ratio. In these relatively well-resolved images we believe we can reasonably estimate the uncertainty in the flux ratio due to beam size by convolving a one-dimensional Gaussian of width equal to the beam radius with a cosine representing the sinusoidal flux variation with longitude and quoting the difference in the pre- and post-convolution amplitudes. In order to compensate here for the apparent increase in flux at the disk ansae due to Fomalhaut's 66$^\circ$ inclination, we convolve the cosine with a one-dimensional Gaussian of width equal to the beam radius divided by $\cos 66^\circ$. For the {\em Herschel} data this gives an extra flux uncertainty of $\sim$5\% of the difference between the pericenter and apocenter fluxes at 70 microns and $\sim$13\% of this difference at 160 microns, smaller than the size of the plot symbols. \cite{marsh05} incorporated beam/orientation effects in their data analysis so we infer they are included in the quoted uncertainties\footnote{For the deconvolved SHARC II image our one-dimensional estimation method gives an uncertainty of $\sim$3\%, which is comparable to that of \citet{marsh05}. Nonetheless, in our modeling and analysis we simply adopt the result and uncertainty reported by \citet{marsh05}; we assume their analysis correctly accounted for any effects the deconvolution may have had on the relative flux, as necessary.}. Precisely where the observed flux ratios fall among our models can be a revealing diagnostic of disk properties. Figure \ref{fig:fomalhautmodels160} shows the pericenter to apocenter flux ratio at 70 and at 160~$\mu$m for our Fomalhaut models as a function of $\beta$ and $q$. A {\em Herschel} image of the Fomalhaut disk at 70~$\mu$m shows pericenter glow with an apocenter/pericenter flux ratio of about 0.7 \citep{acke12}. This value corresponds approximately to the line $\beta\simeq 1.9q-3.2$. At 160~$\mu$m, the Fomalhaut ring also shows pericenter glow \citep{acke12}, but the derived apocenter/pericenter flux ratio is about 0.89, corresponding approximately to the line $\beta \gtrsim 1.8q - 4.7$. Observations of Fomalhaut at 7~mm by \citet{ricci12} provide an additional constraint: $q=3.48\pm 0.14$. Combining these constraints with our findings above from the {\em Herschel} 70- and 160-$\mu$m data and our models yields the range $\beta \simeq 1.4$ to 1.7, somewhat higher than the $\beta=1.1$ obtained by \citet{dent00} in their Fomalhaut model. Large values of $\beta$ often point to a lack of larger, millimeter-sized grains in the grain distribution. For example, in the outer regions of T~Tauri disks where grain growth has not yet occurred, $\beta$ is often in the range of 1.7-2 \citep{perez12}. The millimeter dust opacity slope for the ISM yields $\beta\approx 1.7$ \citep{li01}. However, the Fomalhaut system is too old for lack of grain growth to be likely. Explaining the Fomalhaut disk's strong pericenter glow may require additional physics not included in our models, for example radiation from unbound grains or planet-disk interactions more complex than those we considered (e.g.~resonant dynamics). Indeed, \citet{acke12} find that unbound grains contribute about a quarter of the non-stellar flux in their 70~$\mu$m Fomalhaut system simulations. Finally, 350~$\mu$m observations by \cite{marsh05} using SHARC II at the CSO indicate somewhat stronger apocenter glow than our models predict. Either a very steep size distribution ($q>4$), a very shallow absorptivity law ($\beta <1$) or, perhaps least unlikely, a larger eccentricity $e>0.1$ is required in our models to reproduce the \cite{marsh05} result. In fact \citet{acke12} measure $e=0.125$ and $e=0.17$ respectively from their 70~$\mu$m and 160~$\mu$m images. \begin{figure*} \includegraphics[height=\textwidth,angle=90]{absfluxcalset_bigs.eps} \caption{Examples of results of our dust reradiation simulations of the Fomalhaut disk. Each panel shows the radially integrated disk flux as a function of longitude, normalized to pericenter, for 12 different wavelengths, shown as different-colored curves. The top row shows results for absorptivity $\propto(s/\lambda)^1$ and the bottom row corresponds to $(s/\lambda)^{2}$. The left and right columns show results for $q=3$ and $q=4$ respectively. These represent the extremes of the $\lambda$ -- $q$ grid we explored in our dust reradiation simulations. Shorter wavelengths demonstrate pericenter glow, but longer wavelengths exhibit apocenter glow instead. Note the qualitative variation from apocenter to pericenter in the 160~$\mu$m flux (light blue curve) across the panels.} \label{fig:fomalhautmodels} \end{figure*} \begin{figure} \begin{center} \includegraphics[width=\columnwidth]{fluxampfomalhaut_beta3.eps} \caption{Apocenter to pericenter flux ratios (ratio of the radially integrated disk flux at apocenter to that at pericenter) as a function of wavelength for our grid of Fomalhaut dust reradiation models. The red solid curve follows the maximum flux ratio values, which consistently occur at $q=4$, $\beta=1$; the purple dashed/dotted curves follow the flux ratios occurring at $q=3$ and $\beta=2$ (dashed) or $\beta=3$ (dotted). The $q=3$, $\beta=3$ flux ratios are the minimum attained on our parameter grid: extending our upper bound on $\beta$ from 2 to 3 makes little difference in the overall range of model flux ratios. Blue points correspond to measured flux ratios from Herschel data at 70 and 160~$\mu$m \citep{acke12} and from CSO/SHARC II data at 350~$\mu$m \citep{marsh05}. The observed results show broad agreement with our dust reradiation model output. Uncertainties on the \citet{acke12} points are smaller than the plot symbols.} \label{fig:fluxampfomalhaut} \end{center} \end{figure} \begin{figure} \begin{center} \includegraphics[scale=.5]{fluxampgrid070_bigsbeta3.eps} \includegraphics[scale=.5]{fluxampgrid160_bigsbeta3.eps} \caption{Fractional amplitudes (referenced to the pericenter flux) of the 70~$\mu$m (top) and 160~$\mu$m (bottom) fluxes in our grid of Fomalhaut dust reradiation models. All values in our parameter range produce pericenter glow at these wavelengths. The solid contours correspond to apocenter/pericenter flux ratios of 0.7 (top) and 0.89 (bottom), the values extracted from Herschel observations by \cite{acke12}. The dashed contours mark nearby values of the flux ratio and give an idea of how the ratio changes as a function of the size distribution slope $q$ and the absorptivity slope $\beta$.} \end{center} \label{fig:fomalhautmodels160} \end{figure} \subsection{\boldmath $\epsilon$ Eridani} Resolved images of the $\epsilon$ Eridani cold dust disk \citep[$a\simeq 61$~AU][]{greaves14} were recently obtained at several submillimeter/millimeter wavelengths with {\em Herschel}, {\em SCUBA}, and {\em MAMBO} \citep{greaves14,lestrade15}. These images also display azimuthal asymmetry, providing an independent constraint on our models. Because $\epsilon$~Eridani\ \citep[K2V, $T_*\simeq 5084$~K, $R_*\simeq 5.12\times 10^{10}$~cm,][]{kovtyukh03} is much cooler than Fomalhaut, none of its associated dust is subject to radiation pressure or stellar wind blowout \citep{reidemeister11}. Small grains may potentially provide much of the disk's surface area. Following \cite{reidemeister11}, we included grains down to 0.1~$\mu$m in our models of $\epsilon$~Eridani\ . As with Fomalhaut, we produced a grid of models with $3\leq q\leq4$ and $1\leq\beta\leq 3$. For $\epsilon$~Eridani\ we also examined a range of disk eccentricities $0.02\leq e\leq 0.25$, allowing the amplitude of the surface density variation with longitude to scale linearly with eccentricity, as demonstrated in our semi-analytic model. Figure \ref{fig:fluxampepseri} shows our modeling results of $\epsilon$~Eridani\ with $e=0.1$, the disk eccentricity favored by \cite{greaves14}, plotted together with the observed south to north flux ratios. As these fluxes were reported in a variety of formats in the discovery papers, we converted them as follows. \cite{greaves14} report that their 160~$\mu$m, 250~$\mu$m, and 350~$\mu$m flux ratios differ from unity by 3.0, 3.7, and 2.5 times the spread measured in a 9-pixel grid around each point. Assuming a roughly Gaussian distribution of pixel fluxes, the spread among 9 pixels would be $\simeq$2$\sigma$ where $\sigma$ is the Gaussian width parameter. We produced our plotted uncertainties by assigning an uncertainty of $\pm\sigma$ to the north and the south fluxes and propagating errors. Although $\epsilon$~Eridani\ is nearly face-on, with an inclination of $\sim$26 degrees, we estimate using the convolution method described in section~\ref{sec:fomalhaut} that the large {\em Herschel} beam size relative to the disk size adds uncertainties of 27\%, 42\%, and 71\% of the pericenter-apocenter flux difference for 250, 350, and 500 microns respectively. \cite{lestrade15} report in their Figure~5 the 850~$\mu$m and 1200~$\mu$m fluxes as a function of azimuth. For each wavelength we took the 5 points closest to due north and due south, averaged them to get the north and south fluxes, and took the larger of the spread in the points or the uncertainties plotted by \cite{lestrade15} as the overall uncertainty in the north/south fluxes. We then propagated errors to get the uncertainties plotted in Figure~\ref{fig:fluxampepseri}. These overwhelm the flux uncertainties due to beam size. Because the $\epsilon$~Eridani\ disk has no independent pericenter direction determination, the flux asymmetry may be interpreted as either pericenter or apocenter glow. A pericenter glow interpretation of the {\em Herschel} 160-, 250-, and 350-$\mu$m observations is consistent with the range of flux ratios given by our models as long as $e\geq 0.02$. However, plots analogous to those in Figure~\ref{fig:fomalhautmodels160} indicate that with a pericenter glow interpretation, the 160~$\mu$m data consistently favors large $q$ (a steep size distribution) and small $\beta$ (a shallower absorptivity law) while the 350~$\mu$m favors the opposite end of our parameter range, small $q$ and larger $\beta$. By contrast, an apocenter glow interpretation of the {\em Herschel} measurement is compatible with our models only if $e\gtrsim 0.2$. In this case all three {\em Herschel} flux ratios are consistent with a steep size distribution (large $q$) and a shallower absorptivity law (small $\beta$). While our models consistently predict apocenter glow only longwards of 850~$\mu$m, the precision of the flux ratios gleaned from the \citet{lestrade15} data are such that our models appear broadly consistent with either a pericenter or an apocenter glow interpretation. \begin{figure} \begin{center} \includegraphics[scale=.7]{fluxampepseri_beta3.eps} \caption{Same as Figure~\ref{fig:fluxampfomalhaut}, but for the outer disk of $\epsilon$ Eridani \citep[K2V, $T_*=5084$~K, $a=61$~AU][]{kovtyukh03,greaves14}. The dust reradiation models represented here use the disk eccentricity favored by \cite{greaves14}, $e=0.1$. Plotted points correspond to south to north flux ratios derived from {\em Herschel} \citep[crosses][]{greaves14} and {\em SCUBA} and {\em MAMBO} \citep[squares][]{lestrade15} observations. Because the pericenter direction has not been independently determined, the measured flux ratios may be interpreted as pericenter (orange points) or apocenter (blue points) glow. Thin black error bars on the {\em Herschel} data correspond to flux uncertainties due to confusion within the beam. Note that the pericenter glow interpretation of the {\em Herschel} measurements at 350~$\mu$m is inconsistent with all of our models by about $3\sigma$ (see text for discussion of plotted uncertainties): to reproduce that scenario, we would require a size distribution significantly shallower than $q=3$ and/or an absorptivity slope much steeper than $\beta=3$.} \label{fig:fluxampepseri} \end{center} \end{figure} \subsection{Warmer disks} Figure 4 suggests that with its maximum operating wavelength of 28.3 microns, the James Webb Space Telescope (JWST) may not be able to add much to our understanding of pericenter/apocenter asymmetries in Fomalhaut: our Fomalhaut models are degenerate in this band. However, JWST could play an important role for warmer disks. As a final application for our dust reradiation model, we studied disks with semimajor axes of 10, 20, and 30 AU around a Fomalhaut-like A~star. Figure~\ref{fig:fluxampsmalldisk} shows a summary of the results. Due to the higher effective temperature of the dust, we expect the transition wavelength between pericenter and apocenter glow to occur in the far-infrared rather than the submillimeter bands that are important for Fomalhaut and $\epsilon$ Eri. The longest JWST MIRI bands are well-placed to constrain $\beta$ and q in such disks around A stars by measuring pericenter/apocenter asymmetries. Even barely resolved observations at 24 to 30~$\mu$m could constrain the size distribution and eccentricities of those disks. \begin{figure} \begin{center} \includegraphics[width=\columnwidth]{fluxamplambda_beta3.eps} \caption{Apocenter/pericenter flux ratios as a function of wavelength for model debris disks of sizes 10~AU (solid purple), 20~AU (dashed blue), and 30 AU (dash-dotted red) around a Fomalhaut-like A star. As before, our grid of dust reradiation models covered parameter ranges $1\leq\beta\leq 3$, $3\leq q\leq 4$. The top curve of each color/line style follows the maximum flux ratio values in our grid of models, while the bottom curve follows the minimum values. The wavelengths at which the greatest range of flux ratios occur are 24 to 70 $\mu$m. This suggests that observations of pericenter vs. apocenter asymmetries at the longest JWST bands are well-placed to constrain $\beta$ and $q$ in close-in disks around A stars. } \label{fig:fluxampsmalldisk} \end{center} \end{figure} \section{Summary and Discussion} \label{sec:conclusions} Using both semi-analytic and numerical modeling of the azimuthal dust distribution in an eccentric ring of colliding planetesimals, we have studied the wavelength dependence of surface brightness variations using simple assumptions about dust radiative properties and size distributions. We argued that several far-infrared and (sub)millimeter images of Fomalhaut and $\epsilon$ Eridani obtained with Herschel, JCMT, SHARC II, ALMA, and ATCA \citep{holland03,marsh05,ricci12,boley12,greaves14} should be reinterpreted as suggestions or examples of apocenter glow. This reinterpretation also yields new constraints on the grain properties and size distributions from the existing data. Our modeling work also has implications for future observations of debris disks. The James Webb Space Telescope will be a powerful new source of debris disk images, observing at 5-28 microns with the MIRI instrument. Figure~\ref{fig:fluxampsmalldisk} illustrates that this wavelength range is particularly sensitive to pericenter glow. We predict apocenter/pericenter flux ratios as small as 0.1 in this range for dust emitting via the highly temperature-sensitive Wien law. {\em ALMA}, on the other hand, will operate at wavelengths from 3mm to 400$\mu$m, primarily continuing to detect apocenter glow. {\em ALMA} images will be especially useful because, as Figures~\ref{fig:fluxampfomalhaut}, \ref{fig:fluxampepseri}, \ref{fig:fluxampsmalldisk} show, the apocenter/pericenter flux ratio becomes insensitive to dust properties at millimeter wavelengths. For a fixed disk mass, changes in $q$ and $\beta$ mostly affect the flux contributed by the smallest particles: increasing $q$ increases the number of very small particles, while increasing $\beta$ decreases the flux reradiated at wavelengths larger than the particle size. However, for the longest wavelengths, $\lambda\gg s$, the flux from small particles becomes negligible. To lowest order the millimeter apocenter/pericenter flux ratio therefore depends only on the apocenter/pericenter temperature and density contrasts. The largest bodies radiate efficiently and have effective temperature \begin{equation} T\sim T_* (R_*/r)^{1/2}\propto 1\pm e/2 \end{equation} where we assume the star is a blackbody with effective temperature $T_*$ and radius $R_*$ and, in the last step, apply Eq.~\ref{eqn:r} with $f=0$ (top sign) for pericenter and $f=\pi$ for apocenter (bottom sign). Together with Eq.~\ref{eqn:ell} evaluated at $f=0$ and $\pi$, this gives \begin{equation} \mathrm{apocenter/pericenter\;flux\;ratio} \simeq \frac{1-e/2}{1+e/2}\frac{1+e}{1-e} \simeq 1+e \end{equation} where, as before, we take only lowest order terms in the eccentricity. The millimeter apocenter/pericenter flux ratio thus provides a direct estimate of the disk eccentricity. Some systems, like $\epsilon$ Eridani, no doubt contain additional structures that will complicate interpretation of their images. However, with this new understanding of apocenter glow and its wavelength dependence, we can begin future studies of debris disk images pointed in the right direction. \acknowledgments MP was supported by NSERC funds and by an NPP fellowship at Goddard Space Flight Center administered by ORAU through a contract with NASA. MP and MJK were partially supported by NASA grant NNX15AK23G. We thank an anonymous referee for knowledgeable comments that improved our writeup. MP thanks Yoram Lithwick and Yanqin Wu for helpful conversations, and Bok Tower Gardens for their warm hospitality in the later stages of writing.
\section{Introduction} Over the last years the prospects of monolithically integrated on-chip optical interconnects in silicon data storage and processing devices \cite{Alduino_2007} have triggered the development of both Si-based optical components \cite{Assefa_2010, Assefa_2011, Moss_2013} and light sources based on group-IV materials \cite{El_Kurdi_2004, Liu_2010, Rong_2005, Xia_2007, Suess_2013, Ondic__2013, Shakoor_2012, Wirths_2015, Grydlik_2016}. Among the latter, self-organized Ge quantum dots (QDs) are the most widely studied type of light emitters. Typically, Ge QDs are embedded in a photonic crystal slab (PCS) or -resonator (PCR) \cite{Xia_2006, Xia_2009, Tsuboi_2012, Hauke_2010, Hauke_2012} to enhance the light emission probability in the $1.3-1.5\,\mu$m telecommunication range via the Purcell effect \cite{Purcell_1946}. In most investigations, randomly nucleated Ge QDs were employed, which evolve in the Stranski-Krastanow growth mode when grown under compressive strain on a Si(001) substrate \cite{EagleshamPRL1990, MoPRL1990}. Meanwhile, site-control of Ge QDs on pit-patterned substrates \cite{ZhongAPL2003, ZhongAPL2004, StoicaN2007} has been developed to an unprecedented degree of perfection \cite{GrydlikN2013}. It was therefore a straightforward step to embed perfectly ordered Ge QDs in a commensurable manner into two-dimensionally periodic PCSs \cite{JannesariOE2014}. We could recently demonstrate that with this approach a specific mode of a two dimensional PCS can be selectively excited by aligning a QD emitter array with the maxima of the local densities of states (LDOS) \cite{JannesariOE2014} of the desired mode. In a similar way, PCRs were implemented, where a single Ge QD emitter was deterministically positioned at the very location of the one missing air hole in a PCS that defines an H1 cavity \cite{Schatzl2I1ICoGIPG2015, ZengOE2015}. The LDOS is a key quantity for understanding and controlling light-matter interaction in photonic structures \cite{Purcell_1946} and several experimental techniques for LDOS mapping have been developed in recent years. In early attempts, one QD in a randomly nucleated ensemble was singled out, and a dedicated PCR was fabricated around it \cite{BadolatoS2005a}. In this serial approach, mapping requires a separate PCR fabrication step for each QD location in the cavity. More recent techniques employed cavity scanning via nano-emitters that were attached to a scanning probe \cite{FrimmerPRL2011}, by the focused electron beam of a scanning electron microscope (SEM) \cite{SapienzaNM2012}, or by a near field optical microscope \cite{IntontiPRB2008}. In this contribution, we use deterministically positioned single Ge QDs as a means for mapping the LDOS of the resonator modes in PCRs. In an approach suitable for parallel lithographic processing we implemented in a single run a large number of L3 PCRs with different periodicities $a$ of the hexagonal air-hole pattern and varying filling factors $r/a$, where $r$ is the air-hole radius. For each parameter set $\left\{a, r/a \right\}$ ten L3 cavities were fabricated in which the probing Ge QD was systematically moved along the main symmetry axis of the cavity. In this way, we were able to compile line scans of the LDOS in L3 cavities with systematically varying geometry parameters. This novel approach is essentially based on standard Si device technology and, therefore, requires only one alignment step between the two mask layers that define a complete set of resonators and the assigned set of QDs, respectively. Thus, LDOS mapping with deterministically positioned Ge QDs is scalable to arbitrary numbers and configurations of 2D photonic structures. \section{Sample Layout} \label{Sample Layout} The general layout of the L3 PCRs for our experiments is loosely based on the design in Ref. \cite{MinkovSR2014}. We adapted the geometry parameters of the reference design to our experimental constraints, in particular the slab thickness $h$, which is mainly defined by the epilayer thickness, and the air-hole radius $r$, which needs to exceed the maximum QD radius in our technology approach (see next section). Therefore, we set $r\geq75$\,nm and $h=220$\,nm as input parameters of finite-difference time-domain (FDTD) simulations in the open source implementation MEEP \cite{OskooiCPC2010}. The single Ge QD in the cavity was approximated by a cylinder of radius $r = 75$\,nm, a height $z$ between 20\,nm and 50\,nm and a dielectric constant of $\varepsilon$ = 13.56. The chosen $\varepsilon$ value corresponds to the average Ge concentration of $\sim$ 37\,\% in a typical, site-controlled Ge QD deposited at 700$^\circ$C \cite{SchuelliPRL2009, PezzoliNRL2009}. The simulated Ge QD was located at systematically varying positions along the centerline connecting the three missing air holes that define the L3 cavity ($x$-direction in the following). In addition, a small indentation on the slab surface directly above the QD was taken into account, which remains even after high-temperature Si capping (see next section) as a residue of the initially etched pit for QD nucleation \cite{BrehmJoAP2011}. The FDTD results revealed that the small amount of higher index material in the QD leads to a slight shift of the cavity modes to higher wavelengths, whereas missing material ($\varepsilon$ = 1) above the QD causes shifts in opposite direction. Moreover, the respective shifts depend on the location of the QD in the cavity. For an ideal cavity without QD and with planar surfaces, Fig.\,\ref{fig:mode-pattern} shows a compilation of the simulated electric-field energy distributions for the five cavity modes M0-M4. Over the limited wavelength range of the cavity modes the electric-field energy represents to good approximation the LDOS for an electric dipole emitter oriented parallel to the electric field direction at its position \cite{KoenderinkOL2010}. In addition, the dominant in-plane polarization (E$_x$ or E$_y$), the calculated $Q$ factors and the resonance wavelengths in units of $a$ are denoted in the frames of Fig.\,\ref{fig:mode-pattern}. Evidently, each cavity mode shows a unique LDOS pattern, which makes L3 cavities particularly well suited for mapping with single QD emitters positioned at systematically varying locations in the cavity. For the investigated sets of geometry parameters the simulations resulted in a group of higher $Q$ factors (modes M0 and M1) with values of 42000 and 15000, respectively, and a group of low-$Q$ modes (M2-M4) with values below 2000 (Fig.\,\ref{fig:mode-pattern}). \begin{figure}[t \centering \includegraphics[width=0.8\linewidth]{Figure1_Simulations.pdf} \caption{Simulated electric-field energy density distributions of five cavity modes of an ideal L3 cavity without Ge QD). The resonator design is optimized for the $Q$ factor of the ground mode M0 as proposed in Ref. \cite{MinkovSR2014}. The labels indicate the dominant electric field polarization of the mode (E$_x$ or E$_y$), the calculated $Q$ factor and the normalized wavelengths in units of the PCS period $a$.} \label{fig:mode-pattern} \end{figure} Based on the simulated mode patterns, we designed a pair of mask layouts containing 280 complete PCRs. For these, the periods $a$ are varied in seven steps between 330\,nm and 420\,nm, and each period is implemented with four different hole radii to cover a range of filling factors $r/a$ from 0.305 and 0.325. Variations of both $a$ and $r/a$ shift the energetic positions of the cavity modes \cite{joannopoulos2011photonic}, and thus allow for an adjustment of the spectral overlap between the cavity modes and the emission range of the single QD in each cavity. In each of these geometrically defined PCR sets the QD position is systematically moved in nine steps throughout one half of the L3 cavity along the x-direction, and, as a reference, one cavity in each series contains only the Ge wetting layer (WL), but no QD. \section{Sample Fabrication} \label{Sample Fabrication} A serious concern for optical investigations of SiGe QDs on silicon-on-insulator (SOI) substrates was raised by the recent discovery \cite{Hauke_2012, LoSavioAPL2011} of optically active defects in industrial SOI substrates that emit at room temperature in the same wavelength range as SiGe QDs ($1.3-1.6\,\mu$m). Meaningful optical experiments with SiGe QDs require substrates that are free of such defects. For this work, we acquired custom-made SOI substrates with a 2\,$\mu$m thick buried oxide layer (BOX) on which the manufacturer SOITEC performed an additional thinning/re-bonding/annealing process sequence \cite{MalevilleMSaEB1997}. In this way, remnants of the hydrogen implantation for the smart-cut\textsuperscript{\textregistered} process \cite{MalevilleMSaEB1997} should have been removed in a similar way as reported in Ref. \cite{Hauke_2012}. Moreover, the additional thinning process led to a device layer thickness of just 70\,nm, which allowed us to vertically center the Ge QDs in the designed slab thickness of 220\,nm (see Fig.\,\ref{fig:fabrication}(c)). To check the efficient removal of fabrication-induced optically active defects, we performed photoluminescence (PL) experiments on both the bare SOI substrates and processed reference samples. The latter underwent all subsequently described fabrication steps for L3 cavities with the exception of the Ge epilayer. Thus, the reference cavities contained all defects that were either caused by SOI fabrication or induced by our subsequent PCR processing sequence. In the reference PCR we found only negligible indications of defect PL in the spectral range of the Ge QDs, which are $\sim 500$ times smaller than the QD related signals (see Fig.\,\ref{fig:4}(d) further down). We can therefore be sure that the PL signals of the PCR structures in this work originate from the deposited Ge epilayers. \begin{figure \centering \includegraphics[width=0.8\linewidth]{Figure2_fabrication-eps-converted-to.pdf} \caption{Fabrication process for PCRs with a single Ge QD at defined positions within the cavity. (a) Alignment markers defined by EBL are etched deep into the BOX by ICP-RIE. (b) Definition of the preferential nucleation sites for Ge QDs. (c) MBE growth of the QDs and the Si cap layer. (d) Fabrication of the PCR by ICP-RIE and subsequent BOX removal. In this step all QDs in registry with the air holes of the PCR are removed.} \label{fig:fabrication} \end{figure} The fabrication of L3 PCRs followed a modified version of the processing sequence which we have developed recently for the deterministic embedding of site-controlled Ge QDs into two-dimensional photonic crystals and H1 PCRs\cite{JannesariOE2014,Schatzl2I1ICoGIPG2015}. The four basic processing steps are depicted in Fig.\,\ref{fig:fabrication}. In the first step (Fig.\,\ref{fig:fabrication}(a)), alignment marks are etched deep into the BOX of the SOI substrate. They are defined by electron beam lithography (EBL) in a Raith eLine Plus facility equipped with a laser stage that allows for an alignment precision in the 10\,nm range. Anisotropic etching into the BOX is performed at cryogenic temperatures in an inductively coupled (ICP) Oxford 100 reactive ion etcher (RIE) employing an SF$_6$/O$_2$ process \cite{JannesariOE2014}. In the second step (Fig.\,\ref{fig:fabrication}(b)), a set of pits for the preferential nucleation of QDs \cite{ZhongAPL2003, GrydlikN2013, HacklN2011} is fabricated by EBL and a shallow (35$\pm$5\,nm deep) ICP-RIE process. Complete arrays of pits with twice the periodicity of the air hole patterns for the PCRs are realized in this lithography level. Only the one pit that defines the QD position in each of the subsequently processed cavities is slightly moved out of registry in a series of ten adjacent PCR structures. In this way, the cavity QD is shifted systematically between the center and the terminating air hole at one edge of the of the L3 cavity (Fig.\,\ref{fig:SEM}(b)). The alignment marks are used for positioning of the pit-pattern mask, thus defining a reference frame that will be employed again for the later PCR fabrication step. Writing complete pit arrays with comparably small periods is essential for tight size control and perfect ordering of the QDs\cite{GrydlikN2013}. In the third processing step (Fig.\,\ref{fig:fabrication}(c)) the epitaxial layers are deposited. The samples are prepared for epitaxy by resist removal in organic solvents and an oxygen-plasma followed by an RCA cleaning procedure \cite{KernJES1990}. A final treatment in 1\% hydrofluoric acid (HF) removes the natural oxide and provides a hydrogen-terminated surface that stabilizes the pit pattern during subsequent heat treatments \cite{LichtenbergerAPL2003}. The templates are then immediately transferred into the load-lock chamber of a Riber SIVA 45 molecular beam epitaxy (MBE) system and subsequently degassed in the ultra-high vacuum environment of the growth chamber at 750$^\circ$C for 45 min. The epitaxial layer sequence consists of a 40\,nm thick Si buffer, 0.66\,nm of Ge and a 110\,nm thick Si cap. During buffer growth the substrate temperature is ramped from 450 - 550$^\circ$C and is then kept constant at 700$^\circ$C for Ge deposition. Ge growth leads to an approximately three monolayer (ML) thick, Ge-rich WL that covers the entire sample \cite{BrehmPRB2009}, and arrays of perfectly ordered Ge QDs which nucleate at the centers of the predefined pits \cite{GrydlikN2013} (Fig.\,\ref{fig:SEM}(a)). \begin{figure}[t \centering \includegraphics[width=0.8\linewidth]{Figure3_sem_zoom_1.pdf} \caption{SEM images of L3 cavities fabricated during one growth and processing run with a conformal Si cap to allow imaging of the buried Ge QDs. (a) Complete PCR structure with a single Ge QD in the center of the L3 cavity (inset). The periodic QD array with twice the period of the photonic crystal array remains only outside the photonic structure. The inset reveals the modifications of the air hole positions adjacent to the cavity of our adapted high-$Q$ design. (b) Representative set of six simultaneously fabricated L3 cavities in which the Ge QD (marked by an arrow) in the cavity was moved along the horizontal center line of the cavity. As a reference, one of these cavities was written without a pit for QD nucleation, i.e. it contained only the Ge wetting layer (first frame in (b)).} \label{fig:SEM} \end{figure} Two versions of the Si capping layer were grown on a pair of samples with otherwise identical growth and layout parameters. For the first one, the substrate temperature was ramped from 350 to 450$^\circ$C to achieve conformal covering of the Ge QDs \cite{ZhangSST2010}. The second cap version commenced again at 350$^\circ$C to preserve the QD shape, but was then ramped to 700$^\circ$C to partly planarize the epilayer surface \cite{BrehmJoAP2011}. The conformally capped samples were mainly used for visualizing the QD positions by SEM (Fig.\,\ref{fig:SEM}). These samples allowed us to validate an overall alignment precision of better than 20\,nm for the complete process. The partly planarized samples were used for optical characterization because their more homogeneous slab thickness leads to better defined cavities. In the last processing step (Fig.\,\ref{fig:fabrication}(d)) the initially defined alignment marks are exploited again to align the air-hole mask of the PCRs in such a way that the QDs become centered in the air holes. In this way, all QDs are removed during air hole etching except the one remaining in the cavity. The air holes are ICP-RIE etched with perpendicular sidewalls down to the BOX in an SF$_6$/O$_2$ cryo-process. In a last step, the BOX beneath the PCR structures is selectively removed with 40\% HF to achieve free-standing PCR slabs. \section{Optical Characterization} \label{Optical Characterization} \begin{figure}[t \centering \includegraphics[width=1\linewidth]{Figure4_4PLplots_new4.pdf} \caption{(a) PL spectra of an L3 cavity with $a$ = 378\,nm, $r/a$ = 0.31 covering the range of all five modes. Spectra for three different locations of the Ge QD are displayed: center position (black line), edge position (red line) and intermediate position (green line). The vertical lines and the arrows mark the simulated mode maxima (labeled M0$^*-$M4$^*$), which coincide to within 15\,nm with the associated PL peaks. Coupling of the QD in the cavity to the five modes is strongly position dependent and different for each mode. (b) Shift of the PL spectra with filling factor $r/a$ at fixed $a$ = 378\,nm, and, (c), with period $a$ at fixed $a/r$ = 0.31. In (b) and (c) the QD is at the cavity's center. As a reference, PL spectra (amplified by a factor of 15) of ensembles of ordered QDs outside the photonic structures are shown in gray. (d) Comparison of PL spectra from a cavity ($a$ = 399\,nm, $r/a$ = 0.31) with the QD in its center (red line) and an identical cavity that contains just the WL but no QD (black line, scaled up $\times 5$). As a reference, a PL spectrum from an all-Si PCR is shown that has seen all processing steps with exception of the Ge epilayer (blue line, scaled up $\times$ 200).} \label{fig:4} \end{figure} The $Q$ values of the processed cavities were determined by resonant laser scattering experiments, as described in Ref. \cite{GalliAPL2009}. On the Ge-free reference sample, we found $Q$ = 40000 for mode M0, in excellent agreement with the simulation value for this mode. With the Ge epilayer added, the $Q$-factor of this mode decreased to 8200. Although the $Q$ values are not important for the investigations in this contribution, degradation caused by the adding of Ge epilayers can be a concern for other applications. A possible cause could be enhanced roughness of the air hole surfaces introduced by the different etching rates for Si and Ge in the utilized RIE process. To test the basic limitations of our technology sequence, we fabricated and measured also another reference cavity based on the novel high-$Q$ design proposed in Ref. \cite{AlpeggianiAPL2015}. This cavity was implemented on a bare SOI substrate without any epitaxial layer and resulted in a measured $Q$\,=\,1,200,000\,\cite{Simbulatbp2016}, a value that can be considered state-of-the-art. Photoluminescence measurements were performed with a confocal micro-PL setup \cite{JannesariOE2014, HacklN2011} consisting of an excitation diode laser operated at 442\,nm and a microscope objective with a numerical aperture of $NA = 0.7$. The latter is used both for laser focusing and for collecting the PL signal from the sample. The detection spot on the sample with a diameter of $\sim 3\,\mu$m is centered at the selected L3 cavity. For polarization-dependent measurements a $\lambda/2$ plate and a linear polarizer are used to record spectra in 5$^\circ$ rotation steps of the former. The signal is collected perpendicular to the sample surface with an acceptance cone covering a solid angle of $0.15\times4\pi$\,sr. The sample is mounted in a cryostat and maintained at a temperature of 10K. The signal is dispersed in a grating spectrometer and recorded with a liquid-nitrogen cooled InGaAs line detector. To enhance spectral overlap between the cavity modes and QD emission, a rather high laser excitation power of 750\,$\mu$W was chosen which has been shown to cause significant spectral broadening of the time-averaged emission spectrum of single Ge QDs \cite{GrydlikAPL2015}. Figure\,\ref{fig:4} shows PL spectra over the wavelength range of all five cavity modes. In Fig.\,\ref{fig:4}(a), three spectra are depicted for QD positions at the center, the edge and an intermediate position in the L3 cavity, as highlighted in the inserts. The spectra were recorded on PCRs with $a$ = 378\,nm and $r/a$ = 0.31. Evidently, the PL intensities of the modes depend strongly on the QD position in the cavity. The vertical dashed lines in Fig.\,\ref{fig:4}(a) indicate the simulated peak positions of the five modes (labeled at the red arrows), which are consistently shifted by about 15\,nm toward shorter wavelength with respect to the measured resonances. Such small shifts are indicative for minor deviations between the simulated and the implemented geometry parameters of the PCR. In particular, the (effective) hole radii may be affected by the fabrication process due to, e.g., surface roughness or slight tapering of the air holes. The pronounced influence of small changes of $r/a$ is confirmed by the spectral shifts in Fig.\,\ref{fig:4}(b), where $r/a$ varies between 0.305 and 0.325 at $a$ = 378\,nm, with the QD being in the center position for all four spectra. The influence of the PCR period is shown in Fig.\,\ref{fig:4}(c), where $a$ varies between 336\,nm and 399\,nm at a fixed filling factor $r/a$ = 0.31, with the QD again being located in the cavity center. As expected for PCRs with constant slab thickness $h$, the mode wavelengths shift linearly with $a$ \cite{joannopoulos2011photonic} . Figures\,\ref{fig:4}(b) and \ref{fig:4}(c) also contain a reference signal from an array of bare QDs which was measured on an area outside the PCR structures, where the original QD array is preserved after air-hole etching (Fig.\,\ref{fig:SEM}(a)). The reference spectra are multiplied by a factor of 15, highlighting the enhancement of QD emission in the cavities. It is clear from the two data sets in Fig.\,\ref{fig:4}(b) and \ref{fig:4}(c) that within the implemented variation range of the geometry parameters every mode can be spectrally aligned with the intrinsic QD emission band. Also, all five PCR modes show PL peaks in all spectra, i.e. the spectral overlap between the cavity modes and the QD emission band is not very critical under our experimental conditions (see also discussion section). Figure\,\ref{fig:4}(d) compares PL spectra from a cavity with a centered QD and \{$a$ = 399\,nm, $r/a$ = 0.31\} (red line), and a reference cavity of identical geometry that contains just the Ge WL, but no QD (black line). The latter is scaled up by a factor of five for better visibility. The Ge WL behaves essentially as a quantum well (QW) for holes \cite{BrehmPRB2009} that is evenly distributed over the whole cavity. The QW evidently contributes to the PL signal of the cavity modes, but the signal is by a factor of 5 - 20 weaker than the signal caused by a QD in the cavity. In addition, any features in the PL spectrum of the PCR that depend on the QD's position have to be related to the QD, i.e., they cannot be induced by the delocalized WL. For completeness, we also show in Fig.\,\ref{fig:4}(d) the PL spectrum measured for a PCR that contains no Ge at all (blue broken line, amplified 200 times) but was otherwise processed identically as the one containing the WL and a single QD (red line in this figure). Evidently, the emission of residual defects is negligibly small in our PCRs. Figures\,\ref{fig:4}(b) and \ref{fig:4}(c) show that the highest-$Q$ mode M0 emits much weaker than modes M2 and M3, even if M0 is spectrally aligned with the maximum of QD emission. This finding is a consequence of the employed PRC design, which was originally developed for a high $Q$ value of M0 and weak out-coupling perpendicular to the PCS \cite{MinkovSR2014}. \begin{figure}[t \centering \includegraphics[width=0.9\linewidth]{Figure5_polarization_new.pdf} \caption{(a) PL spectra of cavity modes M0 and M1 for the locations of the QD in the L3 cavity ($a=336$\,nm, $r/a=0.31$) indicated in the insets (black: center, red:edge, green between center and edge); the reference spectrum (broken line) represents ordered QDs from a region outside the PCRs (see Fig.\,\ref{fig:SEM}(a)) scaled up by a factor of five for better visibility. (b) Modes M2-M3 for the five QD positions 1-5 indicated in (d) in a L3 cavity ($a=357$\,nm, $r/a=0.31$); the two orthogonal in-plane polarizations labeled x and y are displayed, where x corresponds to the long axis of the L3 cavity. (c) The orthogonal polarization behavior of modes M2 and M3 are shown. The different PCS periods for (a) and (b) were chosen to align the cavity modes to the wavelength range of the QD emission band. } \label{fig:5} \end{figure} For a more detailed investigation of the cavity modes and, in particular, their dependence on the QD position in the cavity, we coarsely aligned the spectral overlaps of either the two high-$Q$ modes M0 and M1, or the group of lower-$Q$ modes M2 - M4, by selecting cavities with appropriate geometry parameters. Figure\,\ref{fig:5}(a) shows in the same scale PL spectra containing modes M0 and M1, again for the center-, edge- and intermediate QD positions. The PCS parameters for the three spectra are $a = 336$\, nm and $r/a = 0.31$. The reference signal from a QD array outside the cavities is scaled up by a factor of five. The spectra show two distinct effects of the QD position: For one, the resonance peaks move slightly with the location of the QD in the cavity. These shifts are in quantitative agreement with our simulations if the local modifications of the dielectric constant by the QD itself and the pit-related material depletion in the Si cap above the QD are taken into account. Secondly, the peak intensities vary strongly with the QD location in a manner that is distinctively different for the two modes. The PL intensity of mode M0 reaches its maximum when the QD is in the center position, whereas the M1 signal becomes minimal under these conditions, in qualitative agreement with the calculated LDOS patterns in Fig.\,\ref{fig:mode-pattern}. Figure\,\ref{fig:5}(b) shows PL spectra of the modes M2 - M4 for in-plane polarizations in $x$ and $y$ direction. To stay near the maximum of the QD emission signal, the set of PCRs with $a = 378$\,nm was chosen here, again with $r/a$ = 0.31. The five frames in Fig.\,\ref{fig:5}(b) represent spectra for the five equidistantly spaced QD positions indicated in Fig.\,\ref{fig:5}(d). Again, a strong modulation of the peak intensities with QD position is observed, as well as an evident mode polarization. In agreement with the simulations in Fig.\,\ref{fig:mode-pattern}, modes M2 and M4 are orthogonally polarized with respect to mode M3. In Fig.\,\ref{fig:5}(c), the measured polarization dependent PL intensity is shown in detail for M2 and M3. Figure\,\ref{fig:6} shows for the five cavity modes complete sets of PL data from all nine QD positions in the cavity in comparison with simulated, normalized LDOS line scans through the cavity center. Within each panel, the shown data points (connected red dots) were measured with a constant excitation laser power on cavities with identical geometrical parameters. The shown PL intensities ($I_{PL}$) are integrated over the resonance linewidth and normalized to the maximum value of $I_{PL}$ in the respective panel. For the groups of high-$Q$ and low-$Q$ modes the same geometry parameters were employed as in Figs.\,\ref{fig:5}(a) and \ref{fig:5}(b), respectively. To highlight the mode symmetries, cross sections of the complete L3 cavity are depicted. Since the QD positions in the experiments were only varied over one half of each cavity, the experimental data points were mirrored at the cavity center for Fig.\,\ref{fig:6}. \begin{figure}[t \centering \fbox{\includegraphics[width=\linewidth]{Figure6_overlays_3_TF.pdf}} \caption{Integrated PL intensities $I_{PL}$ (red connected dots) for QDs positioned equidistantly over an L3 cavity in comparison with electric-field energy $|\bm E|^2$ line scans through the center of the modes in Fig.\,\ref{fig:mode-pattern} (gray areas). Upper (lower) row: high- (low-) $Q$ modes M0, M1 (M2-M4). As in Fig.\,\ref{fig:5}, the PL intensities shown in the upper (lower) row were recorded on cavities with a PCS period of $a$ = 336\,nm (357\,nm) and $r/a$ = 0.31. The electric field energy maps below each frame are extracted from Fig.\,\ref{fig:mode-pattern} and cover the L3 cavity up to the edges of the first air holes in both $x$ and $y$ directions. Only for PCRs with QDs positioned on the positive $x$ axis PL experiments have been performed. To be able to display the complete cavity, the experimental values were mirrored onto the frames' negative $x$ axis. All traces are normalized to their respective maximum.} \label{fig:6} \end{figure} \section{Discussion} \label{sec:Disc} For non-dissipative cavities with modes well separated by their resonance frequency and/or direction of polarization, the LDOS is well approximated by the Purcell factor $F_P$ \cite{Purcell_1946, KoenderinkOL2010}, which is defined as the ratio between the radiative free-decay lifetime $\tau_{free}$ and the cavity radiative lifetime $\tau_c$. In a generalized form $F_P$ depends both on the spatial and the spectral overlap between cavity and emitter according to \cite{GerardJoLT1999} \begin{eqnarray} &&F_P(\bm r,\omega_e,\hat{\bm{e}}_e) =\nonumber \\ &&=\frac{\tau_{free}}{\tau_c}=F_P^{max} \cdot \frac{\kappa^2}{4(\omega_e-\omega_c)^2+\kappa^2} \cdot \frac{|\bm E(\bm r_e)|^2}{|E_{max}|^2} \cdot|\hat{\bm{e}}_e \hat{\bm{e}}_c|^2 .\nonumber \\ && \label{equ:FP} \end{eqnarray} The first term on the right hand side (r.h.s) is the maximum Purcell factor $F_P^{max}=\frac{3Q(\lambda_c/n)^3}{4\pi^2V_{eff}}$ with the cavity quality factor $Q$, the resonance wavelength $\lambda_c/n$ in a cavity medium with an index of refraction $n$ and the effective mode volume $V_{eff}$. The second term defines the spectral overlap of a dipole emitter of frequency $\omega_e$ with cavity mode $\omega_c$, where $\kappa=Q/\omega_c$ . The third term gives the spatial overlap expressed in terms of the modal electric field strength $\bm E(\bm r_e)$ at the emitter position $\bm r_e$, and the mode's maximum modulus of the electric field $E_{max}$. The fourth term contains the polarization unit vectors of emitter and cavity. In general, for solid state emitters radiative and non-radiative decay compete. If non-radiative decay is characterized by a time constant $\tau_{nr}$, the quantum efficiency of the radiative decay into a specific cavity mode is given by $\eta=\frac{\tau_{nr}}{\tau_{nr}+\tau_c}$. Here, all radiative decay channels other than the radiative decay into the cavity mode have been neglected. In the limit $\tau_{nr} \ll \tau_c$ the quantum efficiency $\eta \approx \frac{\tau_{nr}}{\tau_c}$ is proportional to $F_P$. Only in this regime it is possible to map $F_P$ and, thus, the LDOS via the PL \emph{intensity} of a set of emitters placed at different positions of the LDOS profile. In addition, $\tau_{nr}$ needs to stay constant within that set. On the other hand, a direct measurement of $\tau_c$ and, thus, $F_P$ by time dependent PL experiments is not possible in this limit, since the experimentally accessible decay time $\tau_{tot}$ of $I_{PL}$ is dominated by $\tau_{nr}$ according to $\tau_{tot}^{-1}=\tau_{nr}^{-1}+\tau_c^{-1}$. Instead, elaborate methods based on the modeled farfield of the PCRs have to be used to experimentally estimate $F_P$ \cite{SumikuraOE2016}, which are clearly beyond the scope of this work. By measurements of $\tau_{tot}$ in a time-correlated single photon counting setup we verified the aforementioned preconditions for LDOS mapping using $I_{PL}$ as probe. With the exception of the edge positions we found for all data points in Fig.\,\ref{fig:6} $\tau_{tot}=28 \pm 5$\,ns \cite{lifetime}. This findings imply both $\tau_{nr} \ll \tau_c$ and $\tau_{nr}$ being virtually independent of the QD position within the cavity. As a consequence, the overall agreement between the PL experiments and the simulated LDOS line scans in Fig.\,\ref{fig:6} is remarkably good and clearly demonstrates the successful mapping of the L3 LDOS in our deterministic QD positioning approach. Evidently, our experiments are dominated by the third term on the r.h.s. of Eq.\,\ref{equ:FP}, whereas the second term has only minor influence due to the spectral diffusion of the SiGe QD emission. We know from power-dependent PL measurements on single Ge QDs without resonator structure that Ge QDs on Si(001) have rather broad PL signals, even in the limit of very low excitation densities \cite{GrydlikAPL2015}. These broad peaks were attributed to the interplay of several mechanisms that can be related to the type-II band offset and the indirect band gaps of Si and Ge \cite{GrydlikAPL2015}. The type-II band offset leads to strong hole confinement in the Ge QD, whereas the small intrinsic conduction band offset allows only for weak electron confinement in local strain pockets of the Si matrix \cite{BrehmNJP2009, BrehmNRL2010}. Moreover, the strain fields lift the sixfold conduction band degeneracy of Si, leading to a dense and complex system of energy levels \cite{BrehmNJP2009, BrehmNRL2010}. As a consequence, electron fluctuations are to be expected at the high excitation densities employed here leading to spectral diffusion and significantly broadened emission spectra in time averaged experiments \cite{GrydlikAPL2015, KlenovskyPRB2012}. We want to emphasize that our LDOS mapping method greatly benefits from spectral diffusion. While a pronounced spectral diffusion might be disadvantageous for some optical applications, here it essentially makes painstaking spectral matching of single QDs and individual PCR modes (second factor in the r.h.s of Eq.\,\ref{equ:FP}) dispensable. However, LDOS mapping will still be possible under experimental conditions with reduced spectral diffusion, if a sufficient number of cavities with varying geometry parameters is provided. Under these conditions, fine tuning of the spectral overlap between QD emitter and any given cavity mode will become possible with high resolution, as demonstrated in principle in Figs.\,\ref{fig:4}(b) and \ref{fig:4}(c). The size of the Ge QDs impedes to some extent the probing accuracy of narrow LDOS features, such as the minima or maxima of modes M2 and M3. Also, there remains some ambiguity regarding the absolute LDOS minima, which are partly obscured by the aforementioned background signal caused by the Ge wetting layer (Fig.\,\ref{fig:5}(d)). The main discrepancies between experiments and simulations occur for modes that have their LDOS maximum at the very edges of the cavity, in particular modes M1 and M3 (Fig.\,\ref{fig:mode-pattern}). The edge position is in fact a critical location for a QD, as can be seen in Fig.\,\ref{fig:SEM}(b). Because of its finite size, parts of the QD are removed by air-hole etching. Such a damaged QD with one flank terminated by the non-passivated surface of the air hole cannot be assumed to behave in the same way as an emitter further inside the cavity that is fully embedded in the Si matrix. The reduction of $\tau_{nr}$ for such truncated edge-QDs leads to $I_{PL}$ significantly smaller than expected from the simulated LDOS at this position \section{Summary} \label{sec:Sum} In this work we demonstrated the outstanding potential of deterministically positioned single Ge QDs for LDOS mapping in 2D PCRs. Compared to other approaches Ge QDs have several distinct advantages for this type of application: (i) Site-control has reached an unrivaled state of perfection in the Ge/Si heterosystem, with reproducible positioning accuracies of individual Ge QDs better than 20\,nm having been achieved. (ii) Our LDOS mapping results clearly demonstrate the ability of precise and deterministic matching of SiGe QD position and absolute LDOS maximum of PCR modes, which is essential for a vast number of quantum optical applications. Matching of dot position and LDOS maximum of an arbitrary PCR is performed in a single process run only requiring the alignment of the two mask layers for the PC structures and the assigned QDs. Additionally, our method for the site control of Ge QDs is compatible with standard Si device technology and, thus, allows for parallel processing and scalability, a prerequisite for a potential implementation in a Si based integrated optics platform. \section*{Funding Information} Austrian Science Fund (FWF) (F2502-N17, F2512-N17 of the Spezialforschungsbereich IRON (SFB025); P29137-N36). \section*{Acknowledgments} We thank G. Katsaros for providing the custom-made, re-bonded SOI substrates. We are grateful to R. Jannesari, M. Grydlik and D. Gerace for valuable discussions as well as to A. Halilovi\'c and S. Br\"auer for technical clean-room support during the fabrication of the PCRs.
\section{Results} \subsection{Protein switching arrests coarsening of chromatin bridges that bind non-specifically} We perform Brownian dynamics simulations of a flexible chromatin fiber modeled as a bead-and-spring polymer (thickness 30 nm, persistence length 90 nm) interacting non-specifically with either non-switching or switching proteins. These proteins can bind to the fiber at more than one location (in our case through a Lennard-Jones potential; see \textit{Supporting Information}{} for details on the force field, and Fig. 1A,B for a schematic). For simplicity, we assume a protein has the same size as the chromatin beads (a realistic assumption as each is likely to be a protein complex). We also assume proteins stochastically switch between binding and non-binding states at an equal rate, $\alpha$. [Relaxation of either of these assumptions does not qualitatively alter results.] \begin{figure}[t] \begin{center} \centerline{\includegraphics[width=0.85\columnwidth]{NoneqBridgesFig1.png}} \end{center} \vspace*{-0.5 cm} \caption{\textbf{Protein switching arrests coarsening.} In (A-D), active and inactive proteins are colored red and gray respectively; chromatin is represented by strings of blue beads. (A) Schematic of the model (Brownian dynamics simulations). (i) Proteins (lone spheres) switch between red and gray states at rate $\alpha$. (ii) Only proteins in the red state can bind chromatin. (iii) Red and gray beads interact via steric repulsion only. (iv) Proteins can bind to $\ge 2$ sites to create molecular bridges and loops. (B) Snapshots illustrating protein binding/unbinding. Bound active proteins have clustered and compacted chromatin. Bound active proteins 1 and 2 (gray circles) switch and become inactive and dissociate (gray arrows); non-binding proteins a-c in the soluble pool (red circles) become active and sometimes bind to the cluster (red arrows). (C) Snapshots taken (i) $10^4$ and (ii) $2\times 10^4$ simulation units after equilibration. The simulation involved a $5000$-bead fiber (corresponding to 15 Mbp) and $N=4000$ non-switchable proteins, of which half are able to bind. (D) As (C), but for $N=4000$ switchable proteins ($\alpha = 0.0003$ inverse Brownian times). (E) Average cluster size as a function of time. Error bars denote standard deviations of the mean. (i) Non-switching proteins. (ii) Switching proteins; from top to bottom, $\alpha$ equals $0.0001$, $0.0002$, $0.0003$, $0.0004$ and $0.0005$ inverse Brownian times.} \label{fig1} \vspace*{-0.5 cm} \end{figure} First, we consider the case of equilibrium, non-switching proteins, where $\alpha=0$ (Fig. 1C). This case was studied in~\cite{Barbieri2012,Brackley2013,Johnson2015,Nicodemi2009}, and it was shown to lead to polymer collapse~\cite{Barbieri2012,Johnson2015,Nicodemi2009} and clustering of bridges~\cite{Brackley2013,Johnson2015} depending on the protein concentration. For the concentrations used here, clusters coarsen and grow at the expense of smaller aggregates. During the early stages, this resembles the Ostwald ripening characteristic of liquid-gas phase separation; later on, we also observe coalescence of smaller clusters into larger ones (Movie S1). The average cluster size -- measured as the number of bound proteins per cluster -- increases with time with no sign of saturation until all clusters merge into one (Fig. 1Cii, and Movie S1). For early times, cluster size (which is also proportional to its volume) increases approximately linearly with time, as would be expected for Ostwald ripening in density-conserving model B~\cite{Chaikin2000}. For later times, cluster growth is much slower, with a sublinear exponent (close to 0.25 for our parameters, see Fig. 1Ei). This slowing is due to the underlying polymer dynamics -- as in blob formation during the collapse of a homopolymer, which is also slower than simple model B kinetics~\cite{polymercollapsekinetics}. The dynamics with protein switching is remarkably different: now, coarsening is completely arrested, and the system achieves a micro-phase separated state in which clusters have a well-defined average size (Fig. 1D; Movie S2). This size decreases with $\alpha$ (Fig. 1Eii). The arrested phase separation can be understood intuitively as follows. On the one hand, thermodynamics dictates that the system should try to minimize interfaces, and this leads to coarsening, initially via Ostwald ripening, giving the growth laws in Figure 1Ei. On the other hand, non-equilibrium protein switching is a Poisson process, so active proteins switch off at a constant rate $\alpha$, and leave the cluster. [This is not the case for equilibrium proteins which can only unbind thermodynamically; not only is the unbinding rate slower, but such proteins are also highly likely to rebind to a nearby site before ever leaving a cluster]. Then, active proteins only have a timescale of the order $\alpha^{-1}$ in which to form a cluster, before a significant proportion of proteins in that cluster inactivate. Hence, phase separation is arrested. \subsection{A mean field theory quantitatively explains the arrest of coarsening, and predicts average cluster size} To understand more quantitatively how a non-equilibrium biochemical reaction arrests coarsening, we consider a simplified mean field theory which follows the time evolution of the chromatin density {$\rho(\bm{x},t)$}, and of the active protein density $\Phi(\bm{x},t)$. Our equations describe the binding of the proteins to the chromatin together with the diffusion of all components, and they read as follows, \begin{eqnarray}\label{meanfield1} \dot \rho &=& M_{\rho}\nabla^2\left[a_1 \rho - k \nabla^2 \rho - \chi \Phi + g \rho^3\right] \\ \nonumber \dot \Phi &=& M_{\Phi} \nabla^2 \left[a_2 \Phi - \chi \rho \right] - \alpha (\Phi-\Phi_0). \end{eqnarray} These equations can be formally derived starting from a suitable underlying free energy density, and adding protein modification as a reaction term -- the details are discussed in the \textit{Supporting Information}{}. In Eqs.~(\ref{meanfield1}), $M_{\rho}$ and $M_{\Phi}$ are the chromatin and protein mobility respectively, so that $M_{\rho}a_1\equiv D_1$ and $M_{\Phi}a_2\equiv D_2$ represent effective diffusion coefficients, while $\chi$ is the coefficient describing bridging between active proteins and chromatin. Further, $g$ captures steric repulsion in the chromatin fiber, $\kappa$ accounts for effective surface tension effects, and finally the last term in the equation for $\Phi$ models the biochemical reaction, where proteins switch from binding to non-binding, and vice versa, at a rate $\alpha$. For $\alpha=0$, Eqs.~(\ref{meanfield1}) ensure conservation of the global density of both chromatin and proteins -- in other words, this is an example of generalized model B dynamics~\cite{Berry2015,Chaikin2000}. To identify the key parameters in our system, we now choose dimensionless time and space units $t_u=1/\alpha$ and $x_u=\sqrt{D_2/\alpha}$ and redefine $\Phi$ as $\Phi(M_\rho \chi/D_2)$. In these units, our equations become \begin{eqnarray} \dot \rho &=& \mathcal{D}_0 \nabla^2 \rho - A\nabla^4 \rho - \nabla^2 \phi + G \nabla^2 \rho^3 \label{rhod} \\ \dot \Phi &=& \nabla^2 \Phi - X \nabla^2 \rho - (\Phi-\Phi_0), \label{phid} \end{eqnarray} so that the whole parameter space is spanned by the four dimensionless numbers $X=(\chi^2 M_\rho M_\Phi/D_2^2)$; $\mathcal{D}_0=(D_1/D_2)$; $A=\alpha k M_\rho/(D_2^2)$ and $G=gM_\rho/D_2$. One solution of Eqs.~(\ref{rhod}-\ref{phid}) is given by the uniform phase $(\rho,\Phi)=(\rho_0,\Phi_0)$, which is stable in the absence of bridging ($\chi=0$). To see how the interplay of bridging and biochemical switching can create patterns, we performed a linear stability analysis of this uniform state (Fig. 2, detailed in the \textit{Supporting Information}{}). The result is that small perturbations of the uniform phase grow if $X>X_{\rm c}=(\sqrt{A}+\sqrt{\mathcal{D}})^2$ where $\mathcal{D}=\mathcal{D}_0+3G\rho_0^2$. This instability criterion translates in physical units to $\chi>\sqrt{k\alpha/M_\Phi}+\sqrt{(D_2/M_\Phi)[D_1/M_\rho +3g \rho_0^2]}$. Thus, the instability is driven by bridging, whereas diffusion of chromatin and proteins, excluded volume, as well as protein modification, all tend to stabilize uniform chromatin-protein distributions. Importantly, this bridging-induced instability also works at very low protein concentration. Calculating the wavenumber at the onset of instability (see \textit{Supporting Information}{}) unveils the remarkable role played by the biochemical reaction for structure formation. Specifically, we find $q_c=\left(\mathcal{D}/A\right)^{(1/4)}$ for the dimensionless onset wavenumber, translating in physical units to the following typical length scale, \begin{equation} \label{lengthscale} L_c = 2\pi \left[ \4{D_1 D_2 + 3M_\rho g\rho_0^2 D_2}{\alpha k M_\rho} \right ]^{1/4}.\end{equation} Hence, in contrast to models without protein modification, the present system exhibits a short wavelength instability (Fig.~2), which turns into a long wavelength instability only in the limit $\alpha \rightarrow 0$ (which would lead to $L_c \rightarrow \infty$, dotted black line in Fig.~2). Our linear stability analysis therefore suggests that the presence of the biochemical reaction has {\it qualitative} consequences for the clustering in the system, in that it leads to self-limiting cluster sizes, or put differently, to micro-phase separation rather than to macro-phase separation -- in full agreement with the simulations shown in Fig.~1. To further confirm that within our mean field theory clusters cannot coarsen indefinitely, we also performed a weakly non-linear expansion, through which we found that the amplitude of the chromatin density fluctuations close to the uniform state obey the ``real Ginzburg Landau equation'', which is associated with formation of stationary patterns of well-defined self-limiting size~\cite{Cross1993} (see \textit{Supporting Information}{}). Finally, Eq.~(\ref{lengthscale}) also predicts that, at least close to the onset of clustering, the average number of proteins in any aggregate should scale as $L_c^3 \sim \alpha^{-3/4}$, in good agreement with results from our simulations (Fig. S1). \begin{figure}[t] \centering \includegraphics[width=0.85\columnwidth]{NoneqBridgesFig2.png} \caption{\textbf{Mean field theory predicts arrested coarsening with protein modification.} Dispersion relation, showing the growth rate, $\lambda$, as a function of the magnitude of the wavevector, $q$, for fluctuations around the uniform solution of Eqs.~(\ref{rhod}), for $\mathcal{D}=A=1$, and $X=3.5$ (cyan), corresponding to linear stability of the uniform phase, $X=X_{\rm c}=4.0$ (blue), marking the onset of instability, and $X=4.5$ (red), revealing the growth of clusters with a characteristic length scale. The dotted black line shows a typical dispersion relation in the absence of protein modification, which leads to a long wavelength instability.} \label{fig2} \end{figure} \begin{figure*} \centerline{\includegraphics[width=0.9\textwidth]{NoneqBridgesFig3Latest.png}} \caption{\textbf{{\it In silico} FRAP (Brownian dynamics simulations).} (A) Snapshots taken $10^4$ (i,ii) or $2\times 10^4$ (iii,iv) after equilibration, during an {\it in silico} FRAP experiment (only proteins -- and not chromatin beads -- are shown for clarity). (i) The simulation begins with $N=2000$ equilibrium proteins, half of which are able to bind the chromatin fiber, both specifically (interaction strength $15$ $k_BT$, cut-off $1.8 \sigma$) to every 20-th bead in the polymer, and non-specifically (interaction strength $4$ $k_BT$, cut-off $1.8 \sigma$) to any other bead. After $10^4$ time units, a structure with multiple clusters forms. The snapshot shows only a portion of this, for clarity; $5$ clusters of bound proteins have developed (unbound proteins are colored gray, and bound ones in the $5$ clusters a different color). Circled areas will be ``photo-bleached''. (ii) Photo-bleaching involves making bound proteins invisible (the bleached proteins are still present in the simulation). (iii) If proteins can switch, clusters reappear in the same general place (as new proteins replace their ``bleached'' counterparts). (iv) If proteins cannot switch (i.e., $\alpha = 0$), clusters do not recover (as their protein constituents do not recycle). (B) FRAP recovery. Error bars give SD of mean, and time is given in multiples of $10^4$ simulation units; the values of $\alpha$, in units of inverse Brownian times, are as indicated in each panel. Only the post-bleaching signal is shown (the pre-bleaching value would be constant and equal to $1$ in these units). (i) Number of unbleached proteins in the bleached volume (a sphere of $50\sigma$) as a function of time, after bleaching. The signal is normalized with respect to the number of proteins initially in the bleached volume. (ii) Number of unbleached proteins in clusters as a function of time after bleaching, after all proteins in clusters at a given instant are bleached. The signal is normalized with respect to the proteins in clusters at the time of bleaching.} \label{fig3} \end{figure*} \subsection{Switching proteins with specific binding self-assemble into recycling nuclear bodies} The model considered in Figure 1 assumes proteins bind non-specifically. While this is a good approximation for generic heterochromatin-binding proteins in silenced regions, most transcription factors bind to active regions specifically and to most other DNA non-specifically~\cite{kafri}. Therefore, we consider proteins binding with high affinity to every $20$th bead (i.e., every 60 kbp), and with low affinity to all others. [Similar results are expected for different patterns of binding sites~\cite{NAR,Brackley2013}.] Now bound proteins self-assemble into clusters of self-limiting size even when $\alpha=0$ (Fig.~3; Movie S3). In other words, coarsening is always arrested. As suggested previously ~\cite{Brackley2013,JSTAT,enzo}, specific binding creates loops and loop clustering is associated with entropic costs that scale super-linearly with loop number, and this limits cluster growth~\cite{JSTAT}. Although coarsening is arrested whatever the value of $\alpha$, there is a major difference between the dynamics of the equilibrium and switching proteins. Without switching, proteins can only unbind thermodynamically, which requires a long time: as a result, proteins rarely exchange between clusters (Fig. 3, Movie S3). With switching, there is a constant turnover of proteins within the clusters, which recycle all their components over a time $\sim\alpha^{-1}$ (Fig. 3, Movie S4). Reducing the strength of the specific interactions can also lead to protein turnover (Fig. S2), but this requires fine tuning of the parameters so as to simultaneously ensure stable binding and the recycling of proteins in clusters. In contrast, protein modification naturally leads to such recycling for any values of specific and non-specific binding affinity. To quantitatively characterize the dynamics of turnover within clusters, we perform a simulated fluorescence-recovery-after-photobleaching (FRAP) experiment~\cite{FRAP}. In such an experiment some of the clusters are photobleached at a given time, and recovery of fluorescence is then monitored (Fig. 3). The ``fluorescence'' signal (proportional to the number of non-photobleached active proteins in the clusters) recovers quickly in the $\alpha\ne 0$ case (Figs. 3Aiii, 3B), but not in the $\alpha=0$ case (Fig. 3Aiv, 3Bi), at least for large values of the specific interaction strength. The dynamics of recovery can be measured using the number of unbleached proteins in the photobleached volume (Fig. 3Bi); this is proportional to the fluorescence intensity measured in a standard FRAP experiment. Alternatively, the number of unbleached proteins in clusters can be used (Fig. 3Bii). Both approaches give similar recovery timescales, and confirm that protein modification is required to create clusters in which proteins can recycle. The clusters found in Figure 3 typically contain $\sim 20-100$ proteins that recycle (Fig. S3A). Cluster size depends on both protein concentration and interaction energy (e.g., in Fig. S3B there are only $\sim 5-10$ proteins per cluster). Therefore, this mechanism can produce clusters with a wide range of sizes. Note that nuclear bodies range from large nucleoli (up to several $\mu$m), through Cajal, polycomb, and promyelocytic leukemia bodies ($\sim 1$ $\mu$m)~\cite{Sleeman2014,Mao2011,Pirrotta2012}, to transcription factories containing $\sim 10$ active transcription complexes ($\sim 100$ nm)~\cite{peter,Papantonis2013,Marenduzzo2006}. Importantly, like most nuclear bodies, our clusters also retain a ``memory'' of their shape. Thus, in Figure 3A, when most of the components of the pink cluster on the left have turned over, the general shape of the cluster persists (see also Movies S4 and S5, and Fig. S4). This is because the chromatin scaffold associated with the protein clusters (i.e., the sites of specific binding) retains a general 3D structure that does not change much over time (Fig. S5). Taken together, these results strongly support the conjecture that nuclear bodies emerge from the aggregation of bound switching proteins, and that switching both arrests phase separation and ensures that bound proteins continually exchange with the soluble pool. Notably, the nuclear bodies which our clusters resemble generally show FRAP recovery times in the range of tens of minutes~\cite{FRAPCB,FRAPPcG,Kimura2002}. These time scales are too slow to be accounted for by diffusion, and too fast to be compatible with the thermodynamic unbinding of tightly bound proteins (see \textit{Supporting Information}{}). Our results suggest an attractive alternative explanation: that the recovery time, over which nuclear bodies recycle their proteins, is instead linked to protein modification, and it is simply proportional to $\alpha^{-1}$. Typical rates of post-translational protein modification can be of the order of several seconds (and will be slower within nuclear bodies due to macromolecular crowding), and transcription termination occurs minutes after initiation. In light of this, our simulations would predict recovery time scales of the order of $\alpha^{-1}$, or minutes, broadly in agreement with those measured experimentally~\cite{FRAPCB,FRAPPcG,Kimura2002}. Further to this, there is biological evidence that protein modifications can take place within nuclear bodies~\cite{FRAPCB}. For instance, enzymes performing post-translational modifications are found in Cajal bodies~\cite{FRAPCB}, and phosphorylation or ubiquination of the BMI1 subunit of the PcG PRC1 complex are important factors which determine the kinetics of exchange in polycomb bodies~\cite{FRAPPcG}. \subsection{Protein switching preserves TAD structure, while suppressing long-range interactions} Clustering of bridging proteins can lead to the formation of chromatin domains~\cite{Barbieri2012,NAR,Davide,Brackley2013} resembling TADs found in Hi-C data ~\cite{TADs}. It is therefore of interest to ask how switching affects TAD structure and dynamics. Here, we return to a toy model first considered elsewhere: the fiber has a regular pattern of binding and non-binding regions (Fig.~4A), and each binding region spontaneously and reproducibly assembles into a TAD which is flanked by a disordered non-binding region~\cite{NAR}. The regular interspersion of non-binding segments in Figure 4A fixes the locations of TAD boundaries; consequently, clusters form (Fig. 4B,C) at reproducible positions along the fiber, and this -- in turn -- yields TADs seen in averaged contact maps (Fig. 4D). Such patterns resemble those seen in Hi-C data obtained from cell populations. Variations in $\alpha$ have several effects (Fig. 4). First, the configurations found at steady state are qualitatively different. Although cluster growth is limited for both $\alpha=0$ and $\alpha > 0$, the (recycling) clusters formed by switching proteins are much smaller (Figs. 4B, C, and Movie S6). Second (and notwithstanding this qualitative difference), the contact maps close to the diagonal are remarkably similar (Fig. 4D; compare patterns on each side immediately next to the diagonal); this indicates that local TAD structure is largely unperturbed by switching. However, for $\alpha \ne 0$ non-local (i.e., distant) contacts are strikingly suppressed (Fig. 4D, compare patterns on each side far from the diagonal), and higher order folding of one TAD onto another is suppressed. This was demonstrated directly as follows. First, TADs were generated in the presence of non-switching proteins, and then switching turned on; the fraction of non-local contacts falls (Figs 4E, S6). This behaviour can be explained as follows. First, the time scale for the formation of TADs is comparable to (or smaller than) that of protein recycling within a TAD (see \textit{Supporting Information}{} for an estimate of such time scales). Computer simulations of TAD formation in {\it Drosophila} and human chromosomes also suggest that the local structure is formed very rapidly (at most, in minutes)~\cite{NAR,Davide}. Therefore it is plausible that local TAD folding is fast enough not to be perturbed much by protein modification. Second, when a particular protein switches from binding to non-binding, a contact is lost, and it is likely that local ones can reform faster than non-local ones. Furthermore, switching provides a non-equilibrium mechanism allowing faster large-scale rearrangements, and so a more effective trimming of entropically unfavourable long-ranged interactions. In other words, active post-translational modification tilts the balance in favour of local intra-TAD contacts at the expenses of inter-TAD ones. This is consistent with the sharp decay beyond the Mbp scale seen in Hi-C data~\cite{TADs,LiebAiden}. \begin{figure}[t] \centerline{\includegraphics[width=1.\columnwidth]{NoneqBridgesFig4.png}} \caption{\textbf{Switching promotes intra-TAD contacts and suppresses inter-TAD ones.} (A) Overview. Simulations involved $N=2000$ non-switching ($\alpha = 0$) or $N=2000$ switching proteins ($\alpha= 0.0001$ inverse Brownian times); for $\alpha=0$ half of the proteins are binding. In both cases, interaction energy and cut-off were $4$ $k_B T$ and $1.8\sigma$. The fiber (length 15 Mbp) consisted of regularly-interspersed segments containing runs of binding (blue) and non-binding (black) beads (segment sizes 900 and 300 kbp, respectively). (B,C) Snapshots taken after $10^5$ simulation units. Non-binding and binding proteins are colored gray and red, respectively. (D) Contact maps (averages from 10 simulations) for non-switching (top-left triangle), and switching proteins (lower-right triangle). The scale (right) indicates contact frequencies. (E) The evolution of the ratio of non-local contacts over time. A local (non-local) contact is one between beads separated by less (more) than $1.2$ Mbp along the fiber. Here the simulation was run for $10^5$ simulation units with non-switching proteins; switching was then turned on ($\alpha=0.0001$ inverse Brownian times) and the simulation was run for a further $10^5$ simulation units.} \label{fig4} \end{figure} \vspace*{-0.5 cm} \section{Conclusions} To conclude, we have shown that active post-translational protein modication (e.g., phosphorylation, methylation, acetylation~\cite{PTM}, or any other non-equilibrium reaction where a protein switches between binding and non-binding states) has a profound and generic effect on the behaviour of a chromatin-protein mixture. The interplay between protein bridging and protein modification is therefore an important principle underlying nuclear organization within eukaryotes. First, it was previously shown that non-switching proteins able to bind non-specifically to chromatin to form molecular bridges assemble into clusters which have a natural tendency to coarsen~\cite{Brackley2013,Johnson2015}. Here we show that switching changes the behaviour; cluster growth is self-limiting (Fig. 1) -- a phenomenon which be understood via a simple mean field theory (Fig. 2). This theory provides an example of arrested phase separation, and it can explain why nuclear bodies do not progressively enlarge~\cite{nuclearbodies,Sleeman2014,Mao2011,Pirrotta2012}, and why neighbouring clumps of heterochromatin -- whether detected using classical staining and microscopy, or through inspection of Hi-C contact maps~\cite{TADs,Sexton2012} -- rarely merge into one super-domain. Second, when equilibrium (i.e., non-switching) proteins bind specifically to cognates sites on the chromatin fiber, they also cluster; however, specific binding is known to arrest the coarsening~\cite{NAR,Brackley2013}. But in contrast to what is seen in photobleaching experiments~\cite{FRAPCB,FRAPPcG}, bound proteins in the ensuing clusters exchange little with the soluble pool. Moreover, the time scales seen in such bleaching experiments are too slow to be accounted for by diffusion, and too fast to be compatible with the thermodynamic unbinding of tightly-bound proteins. Protein modification provides a neat solution to this paradox: dynamic clusters naturally emerge during simulations, with constituent proteins recycling on a time-scale proportional to the inverse switching rate, $\alpha^{-1}$ (Fig. 3). Importantly, when clusters in simulations are ``photobleached'', they behave like nuclear bodies seen in vivo -- they retain a ``memory'' of their shape, despite the continual exchange with the soluble pool. Finally, switching affects large-scale chromatin organization. Bridging-induced clusters are associated with the formation of chromatin domains, reminiscent of the TADs observed in Hi-C data~\cite{TADs}. Using a fiber patterned in such a way that it spontaneously folds into TADs, we find that switching has little effect on local TAD organization, but strongly suppresses inter-TAD interactions; local contacts are favored over non-local ones (Fig. 4). We expect that similar trends should be observed in more complex models for bridging-induced chromosome organization, such as those in Refs.~\cite{Barbieri2012,NAR,Brackley2013}. While here we focus on a flexible chromatin fiber, we expect that near-identical results should be reached with a semi-flexible one~\cite{Brackley2013,orland}; then, our conclusions should also apply to bacterial DNA. We also expect similar results to be obtained with more complex pathways between active and inactive states (e.g., modeling the cyclic flooding of proteins into nuclei, or their cyclic synthesis/degradation) and it would be of interest to investigate these scenarios. In summary, we demonstrated how non-equilibrium processes involving ephemeral protein states can provide a simple way of understanding how dynamic nuclear bodies of self-limiting size might form, and how chromosomal domains at the larger scale might be organized. This work was funded by ERC (Consolidator Grant 648050, THREEDCELLPHYSICS), and by a Marie Skodowska-Curie Intra European Fellowship (G. A. No. 654908). \vspace*{-0.2 cm} \bibliographystyle{pnas}
\section{Introduction}\label{sec:1} The variational principle of stationary action provides a generic path connecting a representation of a physical system by a scalar function, the Lagrangian, with the equations of motion (EOM) determining its time evolution. Although this relation is not bijective (different Lagrangians may lead to the same EOM), all Lagrangians representing a given physical system have a common property: their actions remain invariant under the same transformations of the involved variables. Symmetries of the Lagrangian under \textit{continuous} transformations then manifestly lead to corresponding conservation laws via Noether's theorem \cite{Noether1918_NVGWZ_1918_235_InvarianteVariationsprobleme}, which can be seen as operating in a twofold way: It (i) provides the form of quantities obeying symmetry-induced conservation laws and, conversely, (ii) dictates the symmetric design of the Lagrangian of a system under predefined conservation laws. A typical example of the latter case is the $U(1)$ symmetric Lagrangian constructed to provide a variational formulation of quantum mechanics, leading to the continuity equation for the probability current. The symmetry of a system under \textit{discrete} spatial transformations also yields conserved quantities, though now by commutation of the corresponding operator with the Hamiltonian rather than through Lagrangian variation. In the context of non-Hermitian quantum systems with symmetry under combined spatial ($\P$) and temporal ($\mathcal{T}$) reflection, a symmetry-induced nonlocal continuity equation can be derived from the Schr\"odinger equation (SE) \cite{Bagchi2001_MPLA_16_2047_GeneralizedContinuity}. This alternative description further necessitates the introduction of a suitably defined nonlocal scalar product reflecting the $\P\mathcal{T}$ transformation in consistently obtained expectation values \cite{Japaridze2002_JPAMG_35_1709_SpaceState}. $\P\mathcal{T}$-induced conservation laws were also obtained recently in the context of nonlinear systems with self-induced $\P\mathcal{T}$ symmetry by applying Noether's theorem to the associated nonlocal Lagrangian possessing a set of continuous symmetries \cite{Sinha2015_PRE_91_042908_SymmetriesExact}, with the $U(1)$ symmetry also treated in paraxial optics \cite{El-ganainy2007_OL_32_2632_TheoryCoupled}. $\P\mathcal{T}$ symmetry and its spontaneous breaking \cite{Chong2011_PRL_106_093902_Mathcalpmathcalt-symBreaking} has received increased attention since its realization in photonic heterostructures, featuring phenomena such as anisotropic transmission resonances~\cite{Ge2012_PRA_85_023802_ConservationRelations}, coherent perfect absorber laser points~\cite{Longhi2010_PRA_82_031801_Mathcalpt-symmetricLaser}, unidirectional invisibility~\cite{Lin2011_PRL_106__UnidirectionalInvisibility}, or absorption enhanced transmission~\cite{Guo2009_PRL_103__ObservationP}, to mention a few. The $\P\mathcal{T}$-adapted nonlocal current of stationary states can here be employed as a natural order parameter \cite{Kalozoumis2014_PRA_90_043809_SystematicPathway,Kalozoumis2016_PRA_93_063831_Mathcalpt-symmetryBreaking} for the symmetry-breaking transition. Nonlocal conservation laws are, nevertheless, not exclusively linked to $\P\mathcal{T}$ symmetric systems. Indeed, Ref.\,\cite{Kalozoumis2014_PRL_113_050403_InvariantsBroken} uses two \textit{different} nonlocal currents to generalize the amplitude mapping in parity and Bloch eigenstates from global to local symmetries in finite domains. The spatial constancy of those stationary currents, derived there from the stationary SE, suggests their origin in suitably generalized conservation laws applied to inversion and translation symmetry, respectively. In view of the above, a natural question which arises is whether such generalized conservation laws adapted to discrete symmetries may arise from a common variational principle. In the present work we answer this question by introducing a two-field Lagrangian whose invariance under global dilatation and phase transformation leads to a mixed continuity equation for the two fields. The treatment is inspired by the method of phase space extension for dissipative systems \cite{Bateman1931_PR_38_815_DissipativeSystems}, with the two states correlated in the Lagrangian here being generally solutions to dual Schr\"odinger equations with opposite imaginary potential terms modeling loss and gain. Together with the symmetry of the Hamiltonian under a discrete spatial transformation, potentially combined with time reversal, the mixed continuity equation produces corresponding generalized nonlocal current conservation laws for a single state. Those apply to any wave mechanical system described effectively by a SE, such as optics in two or three dimensions within the paraxial approximation. In particular, the concept of optical quasipower, used in the literature in the context of $\P\mathcal{T}$ symmetry, is here generalized to, e.\,g., purely lossy systems with arbitrary discrete symmetries. In one dimension, the spatially constant nonlocal currents of Ref.\,\cite{Kalozoumis2014_PRL_113_050403_InvariantsBroken} for stationary states are recovered. The formalism addresses Hermitian and non-Hermitian systems on equal footing in arbitrary dimensions, and its extension to symmetric interacting Hamiltonians is straightforward. It thus provides a unified theoretical framework for the variational extraction of conservation laws for wave systems with discrete spatial symmetries. The paper is organized as follows. In Sec.~\ref{sec:correlator_lagrangian} we introduce the two-field Lagrangian leading to two complementary SEs with opposite imaginary potential via the variational principle. In Sec.~\ref{sec:mixed_cont_eq} Noether's theorem is applied to derive a mixed current-density continuity equation for the two fields. In Sec.~\ref{sec:symmetries} we consider the symmetry of the Hamiltonian under discrete spatial transformations in combination with time reversal, leading to different generalized conservation laws. We conclude the work in Sec.~\ref{sec:conclusion}. \section{Two-field Lagrangian} \label{sec:correlator_lagrangian} The aim is to construct a general Lagrangian involving wave fields that obey Schr\"{o}dinger equations of motion and allow at the same time to derive generalized types of continuity equations corresponding to different symmetries of the system. We start by reviewing the variational derivation of the ordinary continuity equation for the probability density $\rho_\circ(\bs{x},t) = |\Psi(\bs{x},t)|^2$ of a single Schr\"odinger field $\Psi$ from the real Lagrangian density \begin{align}\label{eq:3} \L_\circ &= \Re\left[\Psi^*(i\partial_t - \H_\circ)\Psi \right] \\ &= \Psi^\text{i} (\partial_t \Psi^\text{r} - \H_\circ \Psi^\text{i}) - \Psi^\text{r} (\partial_t \Psi^\text{i} + \H_\circ \Psi^\text{r} ) \end{align} where $\Psi^\text{r} (\Psi^\text{i}) \in \mathbb{R}$ is the real (imaginary) part of $\Psi = \Psi^\text{r} + i \Psi^\text{i}$. The spatial representation of the Hamilton operator is $\H_\circ = -\frac{1}{2}\nabla^2 + V$ with the real potential function $V(\bs{x})$. The Lagrangian is made real by construction to enable unambiguous application of the extremal action principle, treating $\Psi^\text{r},\Psi^\text{i}$ as independent variables. Imposing $\delta S_\circ$ for the action $S_\circ = \int_{\Omega} \int_{t_i}^{t_f} d\bs{x}~dt~\L_\circ$ under variation of the $\Psi^\text{r},\Psi^\text{i}$, with vanishing variations $\delta \Psi^\text{r}, \delta \Psi^\text{i}$ at the boundary of $\Omega$ for any time $t$ and at $t = t_i,t_f$ for all $\bs{x} \in \Omega$, produces the Euler-Lagrange equations $\partial_t \Psi^\text{r} = \H_\circ \Psi^\text{i}$ and $-\partial_t \Psi^\text{i} = \H_\circ \Psi^\text{r}$, which are combined into the Schr\"odinger equation (SE) $i\partial_t \Psi = \H_\circ \Psi$. The invariance of the $\L_\circ$ under the global $U(1)$ phase transformation $\tilde{\Psi} = e^{i \phi} \Psi$ ($\phi \in \mathbb{R}$) can be used to derive the continuity equation $\partial_t \rho_\circ = - \bs{\nabla} \cdot \bs{J}_{\mkern-4mu\circ}$, with the usual current density $\bs{J}_{\mkern-4mu\circ} = (\Psi^* \bs{\nabla} \Psi - \Psi \bs{\nabla} \Psi^*)/2i$, by Noether's first theorem. Throughout, $\bs{\nabla} = \sum_{d = 1,2,3} \hat{\bs{x}}_d \partial/\partial x_d$ denotes differentiation with respect to the coordinate $\bs{x} = \sum_d x_d \hat{\bs{x}}_d $. This common approach clearly cannot be used to derive continuity equations for nonlocal currents as the ones used in Ref.\,\cite{Kalozoumis2014_PRL_113_050403_InvariantsBroken}. It also fails to generate the equations of motion for non-Hermitian Hamiltonians, widely used in effective descriptions. Interestingly, both issues can be treated with a single modification of the Lagrangian, by generalizing it to a form which involves two different fields $\Psi_\pm = \Psi^\text{r}_\pm + i \Psi^\text{i}_\pm$, \begin{align}\label{eq:8} \L &= \Re \left[ \Psi_-^* (i\partial_t - \H)\Psi_+ \right] \\ &= \Psi^\text{i}_- \left(\partial_t \Psi^\text{r}_+ - \H_\circ \Psi^\text{i}_+ - W \Psi^\text{r}_+\right) \nonumber \\ &- \Psi^\text{r}_- \left(\partial_t \Psi^\text{i}_+ + \H_\circ \Psi^\text{r}_+ - W \Psi^\text{i}_+\right) \end{align} where the Hamiltonian $\H = \H_\circ + i W$ generally includes an additional imaginary term $iW(\bs{x})$ representing a simple model for spatially dependent gain ($W>0$) or loss ($W<0$) of density. Now, imposing $\delta S = \int_{\Omega}\int_{t_i}^{t_f} d\bs{x} dt \delta \L = 0$ under variation of the four independent variables $\Psi^\text{r}_\pm,\Psi^\text{i}_\pm$ leads to the Euler-Lagrange equations \begin{equation}\label{eq:10} \partial_t \Psi^\text{r}_\pm = \H_\circ \Psi^\text{i}_\pm \pm W \Psi^\text{r}_\pm, ~~~ \partial_t \Psi^\text{i}_\pm = - \H_\circ \Psi^\text{r}_\pm \pm W \Psi^\text{i}_\pm. \end{equation} Recombining real and imaginary parts, those in turn yield the two complementary SEs \begin{equation}\label{eq:SE_dual} i \partial_t \Psi_\pm = \H_\circ \Psi_\pm \pm i W \Psi_\pm, \end{equation} with Hamiltonians $\H_\pm \equiv \H_\circ \pm i W$ for the two fields $\Psi_\pm$ which thus evolve under opposite gain/loss rate profile $W(\bs{x})$. In this sense, the Lagrangian $\L$ correlates the two states $\Psi_\pm$ via the non-Hermitian part of the effective Hamiltonian. \section{Generalized mixed continuity equation} \label{sec:mixed_cont_eq} We shall now use the introduced two-field Lagrangian to generate a corresponding continuity equation which mixes the two states $\Psi_\pm$. $\L$ is invariant under the transformation \begin{equation}\label{eq:13} \tilde{\Psi}_\pm = e^{\pm \phi} \Psi_\pm, ~~~~~ \phi = \phi^\text{r} + i \phi^\text{i} \end{equation} with the real variables $\phi^\text{r}$ and $\phi^\text{i}$ parametrizing a dilatation and a rotation in the complex plane, respectively, \begin{equation}\label{eq:14} \left( \begin{array}{c} \tilde{\Psi}^\text{r}_\pm \\ \tilde{\Psi}^\text{i}_\pm \end{array} \right) = e^{\pm \phi^\text{r}} \left( \begin{array}{cc} \cos \phi^\text{i} & -\sin \phi^\text{i} \\ \sin \phi^\text{i} & \cos \phi^\text{i} \end{array} \right) \left( \begin{array}{c} \Psi^\text{r}_\pm \\ \Psi^\text{i}_\pm \end{array} \right). \end{equation} We can now exploit the invariance of $\L$ under the above transformation to derive conservation laws for the $\Psi^\text{r}_\pm,\Psi^\text{i}_\pm$ via Noether's theorem. To first order in infinitesimal variations $\delta \phi^\text{r}$ and $\delta \phi^\text{i}$, the field component variations are $\delta_\phi \Psi^\text{r}_\pm = \pm \Psi^\text{r}_\pm \delta \phi^\text{r} - \Psi^\text{i}_\pm \delta \phi^\text{i}$ and $\delta_\phi \Psi^\text{i}_\pm = \pm \Psi^\text{i}_\pm \delta \phi^\text{r} + \Psi^\text{r}_\pm \delta \phi^\text{i}$, leading to a variation \begin{align}\label{eq:19} \delta_\phi \L = \delta \phi^\text{r} [ \Psi^\text{r}_- (\partial_t - W) \Psi^\text{i}_+ &- \Psi^\text{i}_- (\partial_t - W) \Psi^\text{r}_+ \\ &+ \Psi^\text{r}_- \H_\circ \Psi^\text{r}_+ + \Psi^\text{i}_- \H_\circ \Psi^\text{i}_+ ] ~~~~~~~~~~~ \nonumber \\ +~ \delta \phi^\text{i} [\Psi^\text{r}_- (\partial_t - W) \Psi^\text{r}_+ &+ \Psi^\text{i}_- (\partial_t - W) \Psi^\text{i}_+ \nonumber \\ &- \Psi^\text{r}_- \H_\circ \Psi^\text{i}_+ + \Psi^\text{i}_- \H_\circ \Psi^\text{r}_+] \nonumber \end{align} in the Lagrangian. Solving the equations of motion (\ref{eq:10}) for the terms $W \Psi^\text{r}_-$, $W \Psi^\text{i}_-$ and substituting them in Eq.~(\ref{eq:19}), the condition $\delta_\phi \L = 0$ yields the following two equations: \begin{align}\label{eq:21} &\partial_t (\Psi^\text{r}_- \Psi^\text{r}_+ + \Psi^\text{i}_- \Psi^\text{i}_+) = \\ &- \frac{1}{2} \bs{\nabla} \cdot [\Psi^\text{r}_+ \bs{\nabla} \Psi^\text{i}_- -\Psi^\text{i}_- \bs{\nabla} \Psi^\text{r}_+ + \Psi^\text{r}_-\bs{\nabla} \Psi^\text{i}_+ - \Psi^\text{i}_+ \bs{\nabla} \Psi^\text{r}_-], \nonumber \end{align} resulting from the invariance under phase transformation, and \begin{align}\label{eq:22} &\partial_t (\Psi^\text{r}_- \Psi^\text{i}_+ - \Psi^\text{i}_- \Psi^\text{r}_+) = \\ &- \frac{1}{2} \bs{\nabla} \cdot [\Psi^\text{i}_+ \bs{\nabla} \Psi^\text{i}_- - \Psi^\text{i}_- \bs{\nabla} \Psi^\text{i}_+ + \Psi^\text{r}_-\bs{\nabla} \Psi^\text{r}_+ - \Psi^\text{r}_+ \bs{\nabla} \Psi^\text{r}_-], \nonumber \end{align} resulting from the invariance under dilatations. Those equations combine into a single continuity equation \begin{equation}\label{eq:mixed_continuity} \partial_t \rho(\bs{x},t) + \bs{\nabla} \cdot \bs{J}(\bs{x},t) = 0 \end{equation} for the mixed two-state density and current \begin{equation} \rho = \Psi_-^* \Psi_+ , ~~~~ \bs{J} = \frac{1}{2i} \left(\Psi_-^* \bs{\nabla} \Psi_+ - \Psi_+ \bs{\nabla} \Psi_-^* \right). \end{equation} As pointed out by Gottfried \cite{Gottfried2003____QuantumMechanics}, such a conservation law stems from the unitary evolution of any two solutions of the SE, rendering their scalar product constant in time. We here derive this conservation law from the variational principle on the two-field Lagrangian $\L$, and generalize it to non-Hermitian Hamiltonians with $W \neq 0$. If the net flux of $\bs{J}$ at the surface of a domain $\Omega$ vanishes, like when the $\Psi_\pm$ obey von Neumann or Dirichlet boundary conditions on $\Omega$, then Eq.\,(\ref{eq:mixed_continuity}) leads to time-conserved charge $C = \int_\Omega \rho(\bs{x},t) d^D x$ in $D$ dimensions. \begin{table*} \caption{Generalized conservation laws for the currents \textbf{(a)} $\bs{J}_{\mkern-4mu\mathcal{T}}$ in absence of $\mathcal{F}$-symmetry, \textbf{(b)} $\bs{J}_{\mkern-4mu\mathcal{F}}$ in presence of $\mathcal{F}$-symmetry, and \textbf{(c)} $\bs{J}_{\mkern-4mu\mathcal{F}\mathcal{T}}$ in presence of $\mathcal{F}\mathcal{T}$-symmetry, produced by the mixed continuity equation (\ref{eq:mixed_continuity}) upon substitution of $\Psi_-$ in terms of $\Psi_+$ (subscript then omitted) for non-Hermitian Hamiltonian $\H = \H_\circ + iW$. The identity transformation $\mathcal{F} = \mathcal{I}$ reproduces the ordinary probability current conservation in (c).\\ } \bgroup \def\arraystretch{2 \begin{tabularx}{\textwidth}{lccccc} \hline \hspace{5em} & {symmetry} & \hspace{5em} & {density $\rho(\bs{x},t)$} & \hspace{5em} & {current $\bs{J}(\bs{x},t) \times 2i$} \\ \hline (a) & $\mathcal{F}\H\mathcal{F}^{-1} \neq \H$ & & $\Psi(\bs{x},-t) \Psi(\bs{x},t)$ & & $\Psi(\bs{x},-t) \bs{\nabla} \Psi(\bs{x},t) - \Psi(\bs{x},t) \bs{\nabla} \Psi(\bs{x},-t) $ \\ (b) & $\mathcal{F}\H\mathcal{F}^{-1} = \H$ & & $\Psi(\mathcal{F}\bs{x},-t) \Psi(\bs{x},t)$ & & $\Psi(\mathcal{F}\bs{x},-t) \bs{\nabla} \Psi(\bs{x},t) - \Psi(\bs{x},t) \bs{\nabla} \Psi(\mathcal{F}\bs{x},-t) $ \\ (c) & $\mathcal{F}\H\mathcal{F}^{-1} = \H^*$ & & $\Psi^*(\mathcal{F}\bs{x},t) \Psi(\bs{x},t)$ & & $\Psi^*(\mathcal{F}\bs{x},t) \bs{\nabla} \Psi(\bs{x},t) - \Psi(\bs{x},t) \bs{\nabla} \Psi^*(\mathcal{F}\bs{x},t) $ \\ \hline \end{tabularx} \egroup \label{tab:generalized_continuity} \end{table*} \section{Symmetries and generalized \\ conservation laws} \label{sec:symmetries} With the mixed continuity equation (\ref{eq:mixed_continuity}) holding generally for the two arbitrary solutions $\Psi_\pm$ to the SE with $\pm i W$, derived by the \textit{continuous} symmetry of $\L$ in $\phi$, we now use it to derive a set continuity equations for a single state. Those are induced by symmetry of the Hamiltonian under a given \textit{discrete} spatial transformation \begin{equation} \mathcal{F}:~\bs{x} \to \mathbf{y} = \mathcal{F}(\bs{x}) \equiv \mathcal{F}\bs{x}, \end{equation} potentially combined with the operation of time reversal $\mathcal{T}: t \to -t$, which is here additionally expressed by simple complex conjugation, $\mathcal{T}: i \to -i$. We consider transformations $\mathcal{F}$ that leave the Laplacian $\nabla^2$ invariant, that is, reflections, translations, and rotations (or combinations thereof) in dimension $D$, so that the $\mathcal{F}$ symmetry of $\H$ is determined by the potential functions $V(\bs{x})$ and $W(\bs{x})$. For a Hermitian Hamiltonian $\H = \H_\circ = \H^\dagger$, the two SEs (\ref{eq:SE_dual}) become identical ($W = 0$). Setting $\Psi_- = \Psi_+ \equiv \Psi$ then reproduces the ordinary continuity equation for the probability density $\rho_\circ$ and current $\bs{J}_{\mkern-4mu\circ}$ (note that $-i\bs{\nabla}$ is replaced by the kinetic momentum in presence of a vector potential). If $\H$ is additionally $\mathcal{F}$-symmetric, $\mathcal{F}\H\mathcal{F}^{-1} = \H$, then also $\Psi_-(\bs{x},t) = \Psi_+(\mathcal{F}\bs{x},t) \equiv \Psi(\mathcal{F}\bs{x},t)$ is a solution to the common SE, leading through Eq.\,(\ref{eq:mixed_continuity}) to the conservation of a \textit{bilocal} (or two-point) current \begin{equation} \bs{J}_{\mkern-4mu\mathcal{F}}(\bs{x},t) = \frac{1}{2i} [\Psi^*(\mathcal{F}\bs{x},t) \bs{\nabla} \Psi(\bs{x},t) - \Psi(\bs{x},t) \bs{\nabla} \Psi^*(\mathcal{F}\bs{x},t) ] \end{equation} obeying the symmetry-induced continuity equation \begin{equation}\label{eq:bilocal_continuity} \partial_t \rho_\mathcal{F}(\bs{x},t) + \bs{\nabla} \cdot \bs{J}_{\mkern-4mu\mathcal{F}}(\bs{x},t) = 0 \end{equation} with corresponding density $\rho_\mathcal{F}(\bs{x},t) = \Psi^*(\mathcal{F}\bs{x},t)\Psi(\bs{x},t)$. Notably, such a bilocal picture has been used in an alternative interpretation of the double slit experiment \cite{Jr2015_JPAMT_48_155304_BilocalPicture}. This symmetry-induced conservation law carries over to the case of a non-Hermitian $\H$ if $W$ in Eq.\,(\ref{eq:SE_dual}) is $\mathcal{F}$-antisymmetric, $W(\mathcal{F}\bs{x}) = - W(\bs{x})$, that is, if $\H$ is $\mathcal{F}\mathcal{T}$-symmetric. The most prominently studied case is that of $\P\mathcal{T}$-symmetric systems mentioned in the introduction. The associated continuity equation \cite{Bagchi2001_MPLA_16_2047_GeneralizedContinuity} is thereby recovered here setting $\mathcal{F} = \P$. The complementary SEs also produce an alternative conservation law with respect to time reversal for arbitrary $\H$: From Eq.\,(\ref{eq:SE_dual}) the time-reversed state $\Psi_-^*(\bs{x},-t) \equiv \Psi(\bs{x},t)$ solves the SE with $+iW$, so that substituting $\Psi_-$ into Eq.\,(\ref{eq:mixed_continuity}) produces the continuity equation \begin{equation}\label{eq:bitemporal_continuity} \partial_t \rho_\mathcal{T}(\bs{x},t) + \bs{\nabla} \cdot \bs{J}_{\mkern-4mu\mathcal{T}}(\bs{x},t) = 0 \end{equation} for the \textit{bitemporal} (or two-time) current \begin{equation} \bs{J}_{\mkern-4mu\mathcal{T}}(\bs{x},t) = \frac{1}{2i}[\Psi(\bs{x},-t)\bs{\nabla}\Psi(\bs{x},t) - \Psi(\bs{x},t)\bs{\nabla}\Psi(\bs{x},-t)] \end{equation} corresponding to the generalized density $\rho_\mathcal{T}(\bs{x},t) = \Psi(\bs{x},-t)\Psi(\bs{x},t)$. Combining this with $\mathcal{F}$-symmetry yields a conservation law for the combined bilocal and bitemporal current $$ \bs{J}_{\mkern-4mu\mathcal{F}\mathcal{T}}(\bs{x},t) = \frac{1}{2i}[\Psi(\mathcal{F}\bs{x},-t)\bs{\nabla}\Psi(\bs{x},t) - \Psi(\bs{x},t)\bs{\nabla}\Psi(\mathcal{F}\bs{x},-t)]$$ now obeying the continuity equation \begin{equation}\label{eq:FT_continuity} \partial_t \rho_{\mathcal{F}\mathcal{T}}(\bs{x},t) + \bs{\nabla} \cdot \bs{J}_{\mkern-4mu\mathcal{F}\mathcal{T}}(\bs{x},t) = 0 \end{equation} with density $\rho_{\mathcal{F}\mathcal{T}}(\bs{x},t) = \Psi(\mathcal{F}\bs{x},-t)\Psi(\bs{x},t)$ for $\mathcal{F}$-symmetric $\H$ (with $W(\mathcal{F}\bs{x}) = W(\bs{x})$ in the non-Hermitian case). For a stationary state $\Psi(\bs{x},t) = \Psi(\bs{x})e^{-iEt}$ with energy $E$, the spatial part of $\bs{J}_{\mkern-4mu\mathcal{F}}$ and $\bs{J}_{\mkern-4mu\mathcal{F}\mathcal{T}}$ reproduce the domainwise spatial invariants of Ref.\,\cite{Kalozoumis2014_PRL_113_050403_InvariantsBroken}. The continuity equations for the above bilocal and bitemporal currents can be interpreted as a self-correlation of a single particle field at different locations and/or times, resulting from the two-field `correlator' Lagrangian $\L$. The above generalized conservation laws are listed in Table \ref{tab:generalized_continuity}. Note here that, in the general case of a non-Hermitian Hamiltonian, its (mixed) expectation value $\bar{H} = \int \Psi_-^* H \Psi_+ d^Dx$ is not conserved, in spite of the functional form of $\L$ not depending explicitly on the time variable $t$. This can be interpreted by the indirect presence of time in the description via the in- or outflow (`source' or `sink', respectively) of current density in spatial regions with $W(\bs{x}) \neq 0$, which changes temporally in general, so that the variational procedure for continuous time translations is not expected to produce a conserved associated Noether charge $\bar{H}$. Indeed, due to the non-unitary evolution in a general non-Hermitian system, the expectation value of any operator will generally change in time, in accordance with a generalized Heisenberg equation of motion \cite{Baker1990_PRA_42_10_NonHermitianQuantumDynamics}. Here, the $\Psi_{\pm}$ will generally have components of exponentially increasing or decreasing magnitude in time from the imaginary part of their complex energy eigenvalues. For instance, exponential decay is commonly encountered in resonance theory \cite{Moiseyev2011____Non-hermitianQuantum}, and exponential increase in a $\P\mathcal{T}$-symmetric system is discussed in \cite{Zheng2010_PRA_82_010103_MathcalptOptical}, in terms of biorthogonal sets of (complex) energy eigenstates. In the special case of the spatial transformation $\mathcal{F} = \P$, an alternative (so-called $\mathcal{CPT}$) inner product \cite{Bender2002_PRL_89_270401_ComplexExtension} can be defined, by which the characteristics of unitary evolution are retained \cite{Bender2005_CP_46_277_IntroductionPt-symmetric,Mostafazadeh2003_JPAMG_36_7081_ExactPt} for $\P\mathcal{T}$-symmetric potentials. Finally we point out that, although derived here for a single-particle Hamiltonian, the bilocal continuity equations above apply equally to many-particle systems with $\mathcal{F}$-symmetric interaction between particles at positions $\{\bs{x}_n\}$, with $\bs{\nabla}$ in Eq.\,(\ref{eq:mixed_continuity}) replaced by $\bs{\nabla}_{\mkern-4mu n}$ for the $n$-th particle and with the divergence of the resulting $\bs{J}_{\mkern-4mu n}$ summed over $n$; see also Ref.\,\cite{Gottfried2003____QuantumMechanics}. Typical distance-dependent interaction potentials in isolated systems indeed remain invariant under the global distance-preserving transformations $\mathcal{F}$ considered. The above variational framework thus unifies the extraction of generalized conservation laws for systems with discrete spatial symmetries. \section{Conclusions} \label{sec:conclusion} We introduce a Lagrangian involving two wave fields which depend on the same $D+1$ spatio-temporal coordinates and solve the Schr\"odinger equation with imaginary potentials of opposite signs. The Lagrangian interconnects the variations in time and space of a single fields depending on its invariance under discrete spatial $\mathcal{F}$ symmetries combined with time reversal $\mathcal{T}$, thereby acting as a spatiotemporal correlator. Specifically, the phase and dilatation invariance of the two-field Lagrangian is used to derive a mixed continuity equation for the two fields. This is in turn used to generate conservation laws for the generalized current in a single state, in dependence of the Hamiltonian symmetry: a bitemporal current in absence of symmetry, a bilocal current for $\mathcal{F}$-symmetric Hamiltonians, and the combination of these for $\mathcal{F}\mathcal{T}$ symmetry. The Hermitian case recovers the ordinary probability density current continuity, and for stationary states the domainwise constant bilocal currents of Ref.\,\cite{Kalozoumis2014_PRL_113_050403_InvariantsBroken} for $D=1$ dimension are reproduced which were also recently measured experimentally \cite{Kalozoumis2015_PRB_92_014303_InvariantCurrents}. Our approach reveals the origin of symmetry-induced conservation laws in a variational framework and opens up the perspective to construct correlator-Lagrangians as a tool to treat more general field theoretical models. \\ \section*{Acknowledgements} We thank J. Schirmer and J. Stockhofe for useful comments on the manuscript. P. S. gratefully acknowledges illuminating discussions with M. Bartelmann. P. A. K. acknowledges financial support from the IKY Fellowships of Excellence for Postdoctoral Research in Greece - Siemens Program. \\
\section{Introduction} Topological order, a fundamental concept in quantum many-body physics, is best understood in two-dimensional gapped quantum liquids, such as the fractional quantum Hall effect and certain spin liquids~\cite{FQH1,FQH2,Kitaev06,Kitaev,WWZ89,Wen89,Wen90,CGW10,Wen15}. In these systems, quasiparticle excitations with anyonic quantum-statistical properties emerge~\cite{W82}. Their fusion and braiding behavior at large distances define a topological quantum field theory (TQFT), which characterizes the universal properties of the phase~\cite{Bais3,HeMoradiWen,MoradiWen,LiuWangYouWen}. The phase transitions between topological phases are, most of the times, driven by the condensation of bosons~\cite{KO01,Bais1,Bais2,Bais3,YJW12,BW10,BSS12,BSS11,HW13,L14,HW15b,Neupert16}. In the context of TQFTs, a boson is an emergent quasiparticle in the topologically ordered phase with bosonic self-statistics, but which could have nontrivial fusion and braiding relations with the other anyons. Such a quasiparticle can potentially undergo Bose-Einstein condensation, causing a phase transition to another topologically ordered phase. The topological data of the new phase can be inferred from those of the initial topological order \cite{Neupert16}. One motivation to study condensation transitions is to classify topological order. An important example are the 16 types of gauged chiral superconductors introduced by Kitaev~\cite{Kitaev06}. Kiteav showed that while two-dimensional superconductors are classified by an integer $\mathbb{Z}$, only $16$ bulk phases are topologically distinct. This construction can be understood by considering several layers of the elementary (Ising) TQFT. Coupling the layers by condensing inter-layer cooper pairs, one obtains exactly 16 distinct TQFTs including Ising, the toric code and the double semion model. They determine the nature of the topologically protected excitations in the vortices of each superconductor, including their braiding statistics. In essence, $\mathbb{Z}_{16}$ classification is a property of the Ising TQFT. It is imperative to ask whether multi-layer systems of other TQFTs show a similar collapse of the classification from $\mathbb{Z}$ to $\mathbb{Z}_{N}$ for some integer $N$. In this paper, we derive a criterion for when this is not the case, i.e., when the $\mathbb{Z}$ classification generated by a given TQFT is stable. This criterion is based on the fact that there exist bosonic anyons that cannot be condensed. An example are the bosons in multi-layered Fibonacci topological order~\cite{Bookera12,Bais2,Neupert16}. In this work, we generalize this observation by formulating a no-go theorem that constitutes a sufficient obstruction against the condensation of a boson. Our criterion and its proof are given using the tensor category formulation of topological order~\cite{WittenJonesPoly, FFRC06, LW05, LW14, KW14, KWZ15,Kitaev06,Bonderson07,BernevigNeupert15}, which we can use to describe the condensation transition axiomatically~\cite{Bais1,Bais2,Neupert16}. We apply our no-go theorem to several examples, including the forementioned multi-layer Fibonacci TQFTs. {\it Formalism} --- We use the algebraic formulation of anyon condensation discussed in Ref.~\onlinecite{Neupert16}. Here we simply restate the important relations and refer the reader to Ref.~\onlinecite{Neupert16} for details. A \emph{fusion category} is characterized by a set of anyons $a,b,c,\ldots$ and fusion rules $a\times b=\sum_c N^c_{ab} c$ between them. The quantum dimension $d_a$ gives the size of the nonlocal internal Hilbert space associated with anyon $a$, and is equal to largest eigenvalue of the matrix $N_a$ with elements $(N_a)_{bc}\equiv N^c_{ab}$. A \emph{braided tensor category} has additional structure, of which we will use the topological spin $\theta_a$ of $a$, a complex number with $|\theta_a|=1$. Bosons are defined by $\theta_a=1$. A special role is played by the vacuum anyon as the unique identity element of fusion. It is a boson with quantum dimension 1. Condensation is based on a mapping, called restriction, between the anyons $a$ in the original TQFT $\mathcal{A}$ and the anyons $t$ in the condensed fusion category $\mathcal{T}$ characterized by integers $n^t_a\in \mathbb{Z}_{\geq0}$: \begin{equation} a\mapsto a^{\downarrow} \equiv \sum_{t\in \mathcal{T}} n_a^t t,\quad\forall a\in\mathcal{A}. \label{eq: restriction map} \end{equation} If more than one particle appears on the right-hand side of Eq.~\eqref{eq: restriction map}, we say that the $a$ particle \emph{splits}. If $n^t_a\neq0$, we say $t$ is in the \emph{restriction} of $a$ or $t \in a^{\downarrow}$. We require that $n^\varphi_1=1$, where $\varphi$ and $1$ are the vacua in $\mathcal{T}$ and $\mathcal{A}$, respectively. Imposing that condensation commutes with fusion implies the fundamental relation~\cite{Neupert16} \begin{eqnarray} \label{eq.commuteRstrFus} \sum_{r,s\in\mathcal{T}} n^r_a n^s_b \tilde{N}^t_{rs}=\sum_{c\in\mathcal{A}} N^c_{ab} n^t_c, \end{eqnarray} between the fusion coefficients $N^c_{ab}$ in $\mathcal{A}$ and the fusion coefficients $\tilde{N}^t_{rs}$ in ${\cal T}$. A corollary to Eq.~\eqref{eq.commuteRstrFus} \cite{Neupert16} is \begin{equation} d_a=\sum_{r\in\mathcal{T}}n^r_a d_r,\qquad \forall \ a\ \in \mathcal{A}. \label{eq: quantum dimensions} \end{equation} The restriction is compatible with conjugation to antiparticles, i.e., $n^t_a=n^{\bar{t}}_{\bar{a}}$, where bar denotes the (unique) antiparticle of an anyon. We say particle $a$ \emph{condenses} if $\varphi \in a^{\downarrow}$, i.e., $n^\varphi_a\neq0$. Common knowledge in condensed matter physics says that any bosons can condense. However, it may also occur that a specific boson $a$ cannot condense, i.e., there is no solution to the above equations with $n^\varphi_a\neq0$. This is the situation we shall analyze in this paper. Finally, the following definition is useful for formulating our no-go theorem: For a given anyon $b$, a subset $\mathcal{I}_b=\{a_1,\ldots,a_m\}$ of anyons is called a \emph{set of zero modes localized by $b$}~\cite{Barkeshli14} if for all $i,j=1,\ldots, m$: \begin{enumerate} \item The fusion products $a_i\times a_j$ do not contain condensable bosons, except the identity if $a_i=\bar{a}_j$,~\cite{footnote-Ib-set} \item all $a_i$ are zero modes of $b$, by which we mean $a_i\times b= b+\ldots$, (i.e. $N_{a_i b}^b > 0$) \item if a particle $a_i$ is in $\mathcal{I}_b$ then so is its antiparticle. \end{enumerate} Note that the choice of $\mathcal{I}_b$ for a given boson $b$ is not unique and that $\mathcal{I}_b$ may or may not contain the identity. (The above conditions are satisfied in both cases.) Typically, we will be interest to find a set $\mathcal{I}_b$ that is as large as possible. To motivate the terminology of the set $\mathcal{I}_b$, observe that $N_{a b}^b>0$ implies that $a$ anyons can always be emitted or absorbed by $b$. Therefore, $b$ must carry a zero-mode excitation of $a$. We can now state our first main result, a general condition under which a boson $B$ cannot condense. It is an obstruction that is sufficient to show that condensation of $B$ cannot occur. {\it No-go theorem} --- A boson $B$ cannot condense if there exists a set $\mathcal{I}_B$, such that the sum of the quantum dimensions of all anyons in $\mathcal{I}_B$ exceeds the quantum dimension of $B$, i.e., if \begin{equation} d_B<d_{a_1}+d_{a_2}+\cdots+d_{a_m}\punc{.} \label{eq: contradiction} \end{equation} \begin{figure}[t] \begin{center} \includegraphics[width=0.27 \textwidth]{PhysicalPicture.pdf} \caption{ Tunneling processes mediated by an anyon condensate. The gray region is a phase in which a boson $B$ is condensed. a) Vertex of a boson $B$ that localizes a zero mode of anyon $a_i$. In the condensed phase, $B$ can be converted into an identity particle world line (not shown). By the axioms of anyon condensation, processes a) and b) are equivalent, i.e., $B$ can be converted into $a_i$ by tunneling through the condensate. } \label{fig: physical picture} \end{center} \end{figure} \begin{proof} We start by showing that all particles in $\mathcal{I}_B$ do not split, and have distinct restrictions. This follows from inspection of Eq.~\eqref{eq.commuteRstrFus} for $t=\varphi$, $a=a_i$, $b=\bar{a}_j$, \begin{equation} \sum_{r\in \mathcal{T}}n^r_{a_i}n^r_{a_j} =\delta_{i,j} + \sum_{c\neq 1} N_{a_i \bar{a}_j}^c n_c^\varphi, \end{equation} where we used $n^\varphi_c=n^\varphi_{\bar{c}}$. By assumption, there are no condensable bosons in $a_i\times \bar{a}_j$, hence $N_{a_i \bar{a}_j}^c$ and $n^\varphi_c$ cannot be both nonzero for any $c\neq 1$. Thus $\sum_r n^r_{a_i}n^r_{a_i}=1$, implying a single restriction $a^\downarrow_i$ of $a_i$, with $d_{a^{\downarrow}_i}=d_{a_i}$ using \eqnref{eq: quantum dimensions}. Moreover, $\sum_r n^r_{a_i}n^r_{a_j}=0$ if $i\neq j$, implying that the restrictions of $a_i\neq a_j$ are distinct particles. With this knowledge about the restrictions of the $a_i$, Eq.~\eqref{eq.commuteRstrFus} for $t=\varphi$, $a=a_i$, $b=\bar{B}$ evaluates to \begin{equation} n^{\bar{a}^\downarrow_i}_{\bar{B}}=n^{a^\downarrow_i}_B =\sum_c N^{\bar{c}}_{a_i \bar{B}} n^\varphi_c \geq N^B_{a_i B} n^\varphi_B, \end{equation} where we used $N^{\bar{B}}_{a_i \bar{B}}=N^B_{a_i B}$ Inserting this inequality in Eq.~\eqref{eq: quantum dimensions} for $a=B$, and using $d_{a_i}=d_{a^\downarrow_i}$, we have \begin{equation} d_B\geq n^\varphi_B\sum_{i=1}^m N^B_{a_i B}d_{a_i}. \label{eq: quantum dimension condition B} \end{equation} It follows that in a situation where Eq.~\eqref{eq: contradiction} holds, Eq.~\eqref{eq: quantum dimension condition B} implies $n^\varphi_B=0$, i.e., $B$ does not condense. [Note that in the case $N^B_{a_i B}>1$, a stronger form of Eq.~\eqref{eq: contradiction} with $d_{a_i}$ is replaced by $N^B_{a_i B}d_{a_i}$ holds.] To follow up with a pictorial representation of these equations, consider the tunneling of anyons across the domain wall as shown in Fig.~\ref{fig: physical picture}, where each particle $a$ in the uncondensed theory is converted into its restriction $a^{\downarrow}$ in the gray region. Figure~\ref{fig: physical picture}~(a) shows a vertex allowed by the fusion rule $a_i\times B\to B$ in the uncondensed phase. The boson $B$ enters the condensed phase, where it can disappear as it is part of the condensate (one of its restrictions is the vacuum $\varphi$, the world lines of which can be removed at will). By the fundamental assumption that fusion and condensation commute [which is at the heart of Eq.~\eqref{eq.commuteRstrFus}], Fig.~\ref{fig: physical picture}~(a) is equivalent to Fig.~\ref{fig: physical picture}~(b). The latter represents a coherent tunneling process that is mediated by the condensate and converts $B$ into any of the $a_i$. The existence of this process implies that the distinct restriction $a^\downarrow_i$ of any $a_i$ must be in the restriction of $B$. Hence, by Eq.~\eqref{eq: quantum dimensions}, the quantum dimension of $B$ must be large enough to accommodate all the distinct restrictions of the $a_i$, if $B$ condenses. Therefore if we find sufficiently many $a_i$ such that Eq.~\eqref{eq: contradiction} holds, $B$ cannot condense. \end{proof} Note that the no-go theorem does not a priori require knowing the braiding data of $\mathcal{A}$ -- although the modular tensor category structure fixes that data to some extend. The theorem involves only data obtainable from $N_{ab}^c$. We remark that the no-go theorem can only ever yield an obstruction against the condensation of non-Abelian bosons. For Abelian bosons, the theory after condensation can be constructed explicitly, which is a constructive proof that there is no obstruction.~\cite{Neupert16} We now demonstrate that the no-go theorem is practically useful by considering three examples: (i) multiple layers of the Fibonacci TQFT, (ii) single layers of the SO(3)$_k$ TQFT for $k$ odd, and (iii) multiple layers of the latter. We will show that all these theories, while containing bosons, do not admit condensation transitions. All the bosons are noncondensable. Additional general results, concerning for instance TQFTs with a condensing Abelian sector and with only a single boson, are given in the Supplemental Information.~\cite{Supp} {\it Example (i): Multiple layers of Fibonacci} --- The Fibonacci category $\mathcal{A}_{\mathrm{Fib}}$ is a non-Abelian TQFT containing just one nontrivial particle $\tau$ with a fusion rule $\tau\times\tau=1+\tau$, a topological spin $\theta_\tau=e^{\mathrm{i}4\pi/5}$, and a quantum dimension $d_\tau=\phi$ given by the golden ratio $\phi=(1+\sqrt{5})/2$. As $\mathcal{A}_{\mathrm{Fib}}$ does not contain any nontrivial boson, it cannot undergo a condensation transition. We are interested whether the TQFT formed by $N$ identical layers of $\mathcal{A}_{\mathrm{Fib}}$ i.e., the TQFT $\mathcal{A}_{\mathrm{Fib}}^{\otimes N}$, admits a condensation transition. The TQFT $\mathcal{A}_{\mathrm{Fib}}^{\otimes N}$ contains $2^N$ particles corresponding to all possible distributions of $\tau$-particles over the $N$ layers. For each $r=0,\ldots,N$ there are $\binom{N}{r}$ so-called $(r\tau)$ particles with $\tau$'s in exactly $r$ layers, each with spin $\theta_{(r\tau)}=e^{\mathrm{i}4\pi r/5}$ and quantum dimension $d_{(r\tau)}=\phi^r$. The unique $r=0$ particle is the identity of $\mathcal{A}_{\mathrm{Fib}}^{\otimes N}$. From the topological spin, the bosons in $\mathcal{A}_{\mathrm{Fib}}^{\otimes N}$ are $(r\tau)$ particles with $r=5n, \ n\in \mathbb{Z}$. Using the no-go theorem, we show that none of these bosons can condense. Using proof by induction on $n\geq 1$, we show that for any $(5n\tau)$ boson $B$, there exists a set $\mathcal{I}_{(5n\tau)}$ such that Eq.~\eqref{eq: contradiction} holds. We first consider the case $n=1$. Given a $(5\tau)$ boson, we must construct a set $\mathcal{I}_{(5\tau)}$ for this boson. Consider the set formed by all $(2\tau)$ particles obtained by replacing any $3$ $\tau$'s in the boson with a 1. There are $\binom{5}{2}=10$ such $(2\tau)$ particles for a given $(5\tau)$ boson. They form a set $\mathcal{I}_{(5\tau)}$ that obeys point 1--3 from the definition: point 1 holds as any product of two of these particles has at most 4 $\tau$s and is therefore not a (potentially condensable) boson. Points 2 and 3 can be checked by using the Fibonacci fusion rules in each layer. Finally, Eq.~\eqref{eq: contradiction} holds because \begin{equation} d_{(5\tau)}=\phi^5<10 \phi^2=\sum_{a_i\in \mathcal{I}_{(5\tau)}}d_{a_i} \end{equation} evaluates to about $11.1<26.2$. We conclude that none of the $(5\tau)$ bosons condense for any number $N$ of layers of Fibonacci TQFT. For the induction step, we assume that none of the $(5n\tau)$ bosons can condense for $n<n_0$, $n_0>1$, and we show that the same holds for the $(5n_0\tau)$ bosons. Define $r_0:=\lfloor (5n_0-1)/2\rfloor$, where $\lfloor x\rfloor$ is the largest integer smaller than or equal to $x$. For a given $(5n_0\tau)$ boson, form the set $\mathcal{I}_{(5n_0\tau)}$ out of all $(r_0\tau)$-particles that are obtained by replacing any $(5n_0-r_0)$ $\tau$'s in the boson $(5n_0\tau)$ with a 1. There are $\binom{5n_0}{r_0}$ such $(r_0\tau)$ particles. They form a set $\mathcal{I}_{(5n_0\tau)}$ for $(5n_0\tau)$. In particular their fusion products can only contain $(5n\tau)$-bosons with $n<n_0$, which cannot condense by assumption. Equation~\eqref{eq: contradiction} reads for this case \begin{equation} \phi^{5n_0}<\binom{5n_0}{r_0}\phi^{5n_0-r_0}. \label{eq: inequality Fib induction step} \end{equation} Using that $r_0\sim 5n_0/2$ and $\binom{5n_0}{5 n_0/2}\sim4^{5n_0/2}/\sqrt{\pi 5n_0/2}$ for large $n_0$, we obtain that the right-hand side of Eq.~\eqref{eq: inequality Fib induction step} grows like $4^{5n_0/2}\phi^{5n_0/2}/\sqrt{n_0}$, asymptotically dominating the left-hand side. An explicit evaluation yields that Eq.~\eqref{eq: inequality Fib induction step} holds for any $n_0\geq1$ in fact. We have thus shown that none of the $(5n_0\tau)$ bosons can condense. This concludes the induction step and the proof that no boson in $\mathcal{A}_{\mathrm{Fib}}^{\otimes N}$ can condense. {\it Example (ii): Single layer of} SO(3)$_k$ --- Our second example focuses on the (single-layer) TQFTs associated with the Lie group SO(3) at values of odd level $k$. They contain bosons for an infinite subset of $k$. We show that none of these bosons can condense. The SO(3)$_k$ TQFTs with $k$ odd have $(k+1)/2$ anyons $j=0,\cdots, (k-1)/2$ with \begin{equation} d_j=\frac{\sin\left(\pi \frac{2j+1}{k+2}\right)}{\sin\left[\pi/(k+2)\right]},\qquad \theta_j=e^{2\pi\mathrm{i}j \frac{j+1}{k+2}}. \label{eq: quantum dimensions SO(3)} \end{equation} We note that for $k$ odd, all particles have distinct quantum dimensions. The fusion rules are \begin{equation} N^{j_3}_{j_1j_2}= \begin{cases} 1&|j_1-j_2|\leq j_3\leq \mathrm{min}\{j_1+j_2,k-j_1-j_2\}\\ 0&\text{else} \end{cases}. \label{eq: fusion rules SO(3)} \end{equation} The smallest odd $k$ for which SO(3)$_k$ contains a boson is $k=13$, in which $j=5$ is a boson -- an uncondensable one, as we shall see. \begin{figure}[t] \begin{center} \includegraphics[width=0.49 \textwidth]{SO3-FigsForQunatumD.pdf} \caption{ Quantum dimensions and bosons (blue columns) for SO(3)$_k$ theories with a) $k=13$ and b) $k=103$. These are the smallest $k$, for which SO(3)$_k$ contains two and four bosons, respectively. Indicated are also the ranges I--III defined in Eq.~\eqref{eq: ranges}. The maximum quantum dimension coincides with the boundary between range I and II in Eq.~\eqref{eq: ranges}. For instance, to apply the no-go theorem to the $j=5$ boson in a), choose $\mathcal{I}_{j=5}=\{j=2\}$ and use that $d_5\approx3.6$ is smaller than $d_2\approx4.2$. } \label{fig: regions examples} \end{center} \end{figure} The topological spins $\theta_j$ yield the condition $j(j+1)=k+2$ for the lowest $j$ that may correspond to a boson (aside from the vacuum $j=0$). (Frequently, this condition cannot be met with integer $j$, as in the $k=13$ example, and the lowest boson appears at even higher $j$.) We conclude that the first boson after $j=0$ cannot occur for $j$ lower than \begin{equation} j_0=\left\lfloor\sqrt{k+9/4}-1/2\right\rfloor. \label{eq: j0} \end{equation} We will now discuss separately bosons $j$ in the three ranges (see Fig.~\ref{fig: regions examples} for two examples) \begin{subequations} \begin{eqnarray} \text{I.}&&\quad j_0\leq j\leq \lfloor k/4\rfloor \label{eq: range 1} \\ \text{II.}&&\quad \lfloor k/4\rfloor<j\leq\frac{k-1}{2}-\left\lfloor\frac{j_0-1}{2}\right\rfloor \label{eq: range 2} \\ \text{III.}&&\quad \frac{k-1}{2}-\left\lfloor\frac{j_0-1}{2}\right\rfloor<j\leq\frac{k-1}{2}. \label{eq: range 3} \end{eqnarray} \label{eq: ranges} \end{subequations} Due to Eq.~\eqref{eq: j0}, bosons $j_B$ in range III have no bosons in their fusion product $j_B\times j_B$, other than the identity. Thus, from Eq.~\eqref{eq.commuteRstrFus} for $t=\varphi$, and the fact that $B$ are their own antiparticles, we conclude that they cannot split. Using Eq.~\eqref{eq: quantum dimensions} and the fact that they have $d_{j_B}>1$, we conclude that they cannot restrict to the vacuum i.e., they cannot condense. We now use our no-go theorem to show that bosons $j_B$ in range I are non-condensable. Specifically, we show that the particles $0<j<\lfloor j_B/2\rfloor$ form a set $\mathcal{I}_{j_B}$ of $j_B$ obeying Eq.~\eqref{eq: contradiction}. Before establishing that they satisfy the conditions for a set $\mathcal{I}_{j_B}$, let us show that Eq.~\eqref{eq: contradiction} holds for $\mathcal{I}_{j_B}$. For large $k$, we can rely on the following asymptotic estimate. Using that the sine function in Eq.~\eqref{eq: quantum dimensions SO(3)} is monotonously increasing with negative second derivative for $j\leq\lfloor k/4\rfloor$, the estimate \begin{equation} 2 j_B+1<\sum_{j=1}^{\lfloor j_B/2\rfloor -1}(2j+1) \label{eq: range I d estimate} \end{equation} implies Eq.~\eqref{eq: contradiction} for $j_B$ in range I. This inequality holds for all $j_B\geq 10$. Using Eq.~\eqref{eq: j0} we conclude that it applies to all bosons in range I for $k\geq109$. We verified explicitly that inequality~\eqref{eq: contradiction} holds (using the exact values of the quantum dimensions) for all bosons in range I for $k<109$. Finally, it is readily verified using Eq.~\eqref{eq: fusion rules SO(3)} that $\mathcal{I}_{j_B}$ form a set of zero modes localized by $j_B$ provided that all bosons with $j<j_B$ cannot condense. The proof then proceeds straightforwardly by induction. We apply our no-go theorem successively to bosons $j_B$ in range II in order of increasing $j_B$. Using the result that all bosons in range I are uncondensable, one verifies that the particles $j$ with $1\leq j\leq \mathrm{min}\{k-2j_B,\lfloor j_B/2\rfloor-1\}$ form a set $\mathcal{I}_{j_B}$. As for range I, we can estimate the quantum dimensions. From the relation $\sin[\pi(2j_B+1)/(k+2)]=\sin[\pi(k-2j_B+1)/(k+2)]$ we can estimate the quantum dimension of $j_B$ using $\sin[\pi(2j_B+1)/(k+2)]<\pi(k-2j_B+1)/(k+2)$. The quantum dimensions of the anyons in $\mathcal{I}_{j_B}$ are estimated as for range I with $\sin[\pi(2j+1)/(k+2)]<\pi(2j+1)/(k+2)$. Using these estimates we find that if \begin{equation} k-2j_B+1<\sum_{j=1}^{\mathrm{min}\{k-2j_B,\lfloor j_B/2\rfloor-1\}}(2j+1) \label{eq: range II d estimate} \end{equation} holds, Eq.~\eqref{eq: contradiction} follows. In the case $k-2j_B<\lfloor j_B/2\rfloor-1$, Eq.~\eqref{eq: range II d estimate} reduces to $1<(k-2 j_B)^2+(k-2 j_B)$, which is true for all $j_B$ in range II for all $k$. In the case $k-2j_B>\lfloor j_B/2\rfloor-1$, Eq.~\eqref{eq: range II d estimate} simplifies to $k+2<2j_B+(\lfloor j_B/2\rfloor)^2$, which holds for all $j_B$ in range II if $k\geq 37$. We verified explicitly that Eq.~\eqref{eq: contradiction} holds for all bosons in range II if $k<37$ (they appear in $k=13,19,31$). This concludes our proof that no condensation transition is possible in the SO(3)$_k$ TQFT for any odd $k$. We note that this result can be readily extended to SU(2)$_k$ with $k$ odd, since SO(3)$_k$ is the projection of SU(2)$_k$ to anyons with integer $j$. One simply includes the half-integer $j$ anyons in the theory (none of which are bosons). The sets $\mathcal{I}_b$ as defined above remain the same and so do all the quantum dimensions. Hence, we also showed the noncondensability of SU(2)$_k$, with $k$ odd. This is consistent with the ADE classification of SU(2)$_k$~\cite{ADE}: There are no off-diagonal modular invariant partition functions for odd $k$ in SU(2)$_k$~\cite{yellow}. Thus, the no-go theorem provides a proof of this fact that is complementary to the ADE classification. {\it Example (iii): Multiple layers of} SO(3)$_k$ --- We can show that any number of layers of SO(3)$_k$, with $k$ odd, does not contain condensable bosons. Fixing $k$, the proof proceeds again by induction. As induction base, we proof that all multi-layer anyons with a nontrivial particle in only a single layer (and the identity anyon in the other $k-1$ layers) cannot condense nor split. To show that, we can use the single-layer result from Example (ii). For the induction step, we assume that for a fixed $k_0<k$ all multi-layer anyons with nontrivial particles in $l$ layers, $1\leq l\leq k_0$, cannot condense and do not split. We can then show that the same holds for multilayer anyons with nontrivial particles in $k_0+1$ layers, completing the induction. The details of this proof are given in~\cite{Supp}. {\it Summary} --- We have presented a generally applicable no-go theorem against the condensation of a topological boson and illustrated it with several examples. The proof of our theorem uses mostly the fusion (as compared to the braiding) information of the TQFT. We showed a connection between our results and the ADE classification of SU(2)$_k$ theories, indicating that the no-go theorem might be useful for the classification of modular invariant partition functions of conformal field theories more broadly.~\cite{Neupert16} It would be interesting to study, whether other obstructions against boson condensation exist or whether our no-go theorem actually constitutes a necessary condition. In all examples we know, noncondensability is captured by the no-go theorem. The no-go theorem can not only be used to directly classify (symmetry enriched) TQFTs, but also symmetry protected topological phases without intrinsic topological order. The classification of the latter is often related to the former upon gauging the protecting symmetry.~\cite{Levin12,Chen13} Finally, we note that a particle physics analogy of the no-go theorem is that a particle cannot decay if its mass is smaller than the total mass of its potential products. In this picture desintegration amounts to condensation and mass to quantum dimension. \begin{acknowledgments} The authors thank Parsa Bonderson for useful discussions. This work was supported by NSF CAREER DMR-095242, ONR - N00014-11-1-0635, ARO MURI W911NF-12-1-0461, NSF-MRSEC DMR-1420541, FIS2012-33642, SEV-2012-0249, Packard Foundation and Keck grant. \end{acknowledgments}
\section*{Acknowledgments} \begin{abstract} In this work we discuss the numerical discretization of the time-dependent Maxwell's equations using a fully explicit leap-frog type discontinuous Galerkin \linebreak method. We present a sufficient condition for the stability, for cases of typical boundary conditions, either perfect electric, perfect magnetic or first order Silver-M\"{u}ller. The bounds of the stability region point out the influence of not only the mesh size but also the dependence on the choice of the numerical flux and the degree of the polynomials used in the construction of the finite element space, making possible to balance accuracy and computational efficiency. In the model we consider heterogeneous anisotropic permittivity tensors which arise naturally in many applications of interest. Numerical results supporting the analysis are provided. \end{abstract} \keywords{Maxwell's equations, fully explicit leap-frog discontinuous Galerkin method, stability.} \maketitle \section{Introduction} Maxwell's equations are a fundamental set of partial differential equations which describe electromagnetic wave interactions with materials. The advantages of using discontinuous Galerkin time domain (DGTD) methods on the simulation of electromagnetic waves propagation, when compared with classical finite-difference time-domain methods, finite volume time domain methods or finite element time domain methods, have been reported by several authors (see { \it e.g.} \cite{fezoui2005} and references therein cited for an overview). DGTD methods gather many desirable features such as being able to achieve high-order accuracy and easily handle complex geometries. Moreover, they are suitable for parallel implementation on modern multi-graphics processing units. Local refinement strategies can be incorporated due to the possibility of considering irregular meshes with hanging nodes and local spaces of different orders. Despite the relevance of the anisotropic case in applications ({\it e.g.} \cite{bornwolf1999, Leonhardt110, Yeh2009}), most of the formulation of the DGTD methods present in the literature are restricted to isotropic materials (\cite{hesthaven2008, hesthaven2004, lu2004}). Motivated by our application of interest described in \cite{araujo2013, Santos2015}, in the present paper we consider a model with an heterogeneous anisotropic permittivity tensor. The treatment of anisotropic materials within a DGTD framework was discussed for instance in \cite{fezoui2005} (with central fluxes) and in \cite{konig2010} (with upwind fluxes). The stability analysis of DGTD methods for Maxwell's equations was considered in \cite{fezoui2005}, where the scheme that is defined with the central fluxes leads to a locally implicit in time method in the case of Silver-M\"{u}ller absorbing boundary conditions, and \cite{li2012}, where the scheme is defined with the upwind fluxes leading to an implicit method. Our derivation extends the results in \cite{fezoui2005} and \cite{li2012} to a fully explicit in time method for both cases, central fluxes and upwind fluxes. In this paper we study a fully explicit scheme for the numerical solution of Maxwell's equations that uses a nodal DG method (\cite{hesthaven2004}) for the integration in space with an explicit leap-frog type method for the time integration. We present a rigorous proof of stability showing the influence of the mesh size, the choice of the numerical flux and choice of the degree of the polynomials used in the construction of the finite element space and the boundary conditions, which can be either perfect electric, perfect magnetic or first order Silver-M\"uler. The obtained stability condition is of practical relevance since it gives an easy way to balance stability and accuracy. In our approach we take into account the formulation in two space dimensions as well as its generalization for the 3D case. This paper consists in six sections after this introduction. In Section 2, we state the problem and in Section 3 we describe the formulation of the numerical method for the two-dimensional problem. In Section 4 we derive the stability result for the method described in the previous section. We illustrate the theoretical results with numerical examples in Section 5. In the last section we extend the stability results for the three dimensional case. \section{The governing equations} The electromagnetic field consists of coupled electric and magnetic fields, known as electric field intensity, $E$, and magnetic induction, $B$. The effects of these two fundamental fields on matter, can be characterized by the electric displacement and the magnetic field intensity vectors, frequently denoted by $D$ and $H$, respectively. The knowledge of the material properties can be used to derive a useful relation between $D$ and $E$ and between $B$ and $H$. Here we will consider the constitutive relations of the form $D = \epsilon E$ and $B=\mu H$, where $\epsilon$ is the medium's electric permittivity and $\mu$ is the medium's magnetic permeability. In three-dimensional spaces for heterogeneous anisotropic linear media with no source, these equations can be written in the form (\cite{fezoui2005}) \begin{equation}\label{maxwell3D} \epsilon \frac{\partial E}{\partial t} = \mbox{curl } H,\qquad \mu \frac{\partial H}{\partial t} = -\mbox{curl } E. \end{equation} In a similar fashion to \cite{yee1966}, we decompose the electromagnetic wave in a transverse electric (TE) mode and a transverse magnetic (TM) mode, this way reducing the number of equations implemented in our model. This assumption is appropriate when studying {\it e.g.} truly 2D photonic crystals \cite{Dobson1999} or the electrodynamic properties of 2D materials like graphene \cite{Mikhailov2007}. In what follows we shall analyse the time domain Maxwell's equations in the transverse electric (TE) mode, as in \cite{konig2010}, where the only non-vanishing components of the electromagnetic fields are $E_x$, $E_y$ and $H_z$. For this case, and assuming no conductivity effects, the equations in the non-dimensional form are \begin{align} \epsilon\frac{\partial E}{\partial t} &= \nabla \times H \quad \textrm{in } \Omega\times(0,T_f] \label{Maxwell TE1}\\ \mu\frac{\partial H}{\partial t} &= -\mbox{curl } E\label{Maxwell TE3} \quad \textrm{in } \Omega\times(0,T_f], \end{align} where $E=(E_x,E_y)$ and $H=(H_z)$. This equations are set and solved on the bounded polygonal domain $\Omega \subset \mathbb{R}^2.$ % Note that we use the following notation for the vector and scalar curl operators $$ \nabla \times H = \left(\frac{\partial H_z}{\partial y},-\frac{\partial H_z}{\partial x}\right)^T, \quad \mbox{curl } E=\frac{\partial E_y}{\partial x}-\frac{\partial E_x}{\partial y}.$$ The electric permittivity of the medium, $\epsilon$ and the magnetic permeability of the medium $\mu$ are varying in space, being $\epsilon$ an anisotropic tensor \begin{equation}\epsilon=\begin{pmatrix} \epsilon_{xx} & \epsilon_{xy} \\ \epsilon_{yx} & \epsilon_{yy} \end{pmatrix},\label{tensor}\end{equation} while we consider isotropic permeability $\mu$. We assume that electric permittivity tensor $\epsilon$ is symmetric and uniformly positive definite for almost every $(x,y) \in \Omega$, and it is uniformly bounded with a strictly positive lower bound, {\it i.e.}, there are constants $\underline\epsilon>0$ and $\overline \epsilon> 0$ such that, for almost every $(x,y)\in \Omega$, $$\munderbar\epsilon |\xi|^2\le\xi^T\epsilon(x,y)\xi\le \overline\epsilon |\xi|^2,\qquad \forall \xi\in\mathbb{R}^2.$$ We also assume that there are constants $\underline \mu>0$ and $\overline \mu> 0$ such that, for almost every $(x,y) \in \Omega$, $$\underline\mu \le\mu(x,y) \le \overline\mu.$$ Let the unit outward normal vector to the boundary be denoted by $n$. We can define an effective permittivity (\cite{konig2010}) by $$\epsilon_{eff}=\frac{\det(\epsilon)}{n^T \epsilon n},$$ that is used to characterize the speed with which a wave travels along the direction of the unit normal $$c =\sqrt{\frac{n^T \epsilon n }{\mu \det(\epsilon)}}.$$ The model equations (\ref{Maxwell TE1})--(\ref{Maxwell TE3}) must be complemented by proper boundary conditions. Here we consider the most common, either the perfect electric conductor boundary condition (PEC) \begin{equation}\label{PEC} n\times E = 0\qquad \textrm {on } \partial\Omega, \end{equation} the perfect magnetic conductor boundary condition (PMC), % \begin{equation}\label{PMC} n\times H = 0\qquad \textrm {on } \partial\Omega, \end{equation} or the first order Silver-M\"{u}ller absorbing boundary condition \begin{equation}\label{SM} n\times E = c\mu n \times (H\times n)\qquad \textrm {on } \partial\Omega. \end{equation} Initial conditions $$E(x,y,0) = E_0(x,y)\quad\textrm{and}\quad H(x,y,0)= H_0(x,y) \quad \textrm{in }\Omega,$$ must also be provided. We can write Maxwell's equations (\ref{Maxwell TE1})--(\ref{Maxwell TE3}) in a conservation form \begin{eqnarray} \label{q_eq} Q \frac{\partial q}{\partial t}+ \nabla \cdot F(q)=0 \quad \textrm{in } \Omega\times(0,T_f], \end{eqnarray} with \begin{eqnarray*} Q=\begin{pmatrix} \epsilon & 0 \\ 0 & \mu \end{pmatrix}, \quad q=\begin{pmatrix}E_x\\ E_y\\H_z\end{pmatrix} \quad \mbox{and } \quad F(q)= \begin{pmatrix}0 &H_z \\ -H_z & 0\\ -E_y & E_x\end{pmatrix}^T, \end{eqnarray*} where $\nabla \cdot$ denotes the divergence operator. \section{A leap-frog discontinuous Galerkin method} The aim of this section is to derive our computational method. We will consider a nodal discontinuous Galerkin method for the space discretization and a leap-frog method for the time integration. \subsection{The discontinuous Galerkin method}\label{DG_method} Assume that the computational domain $\Omega$ is partitioned into $K$ triangular elements $T_k$ such that $\overline \Omega = \cup_k T_k$. For simplicity, we consider that the resulting mesh $\mathcal T_h$ is conforming, that is, the intersection of two elements is either empty or an edge. Let $h_k$ be the diameter of the triangle $T_k \in \mathcal T_h$, and $h$ be the maximum element diameter, $$h_k=\sup_{P_1,P_2 \in T_K} \|P_1-P_2\|, \quad h=\max_{T_k \in \mathcal T_h}\{h_k\}.$$ We assume that the mesh is regular in the sense that there is a constant $\tau >0$ such that \begin{equation}\label{tau} \forall \, T_k \in \mathcal T_h, \quad \frac{h_k}{\tau_k} \leq \tau, \end{equation} where $\tau_k$ denotes the maximum diameter of a ball inscribed in $T_k$. On each element $T_k$, the solution fields are approximated by polynomials of degree less than or equal to $N$. The global solution $q(x,y,t)$ is then assumed to be approximated by the piecewise $N$ order polynomials $$q(x,y,t)\simeq \tilde q(x,y,t)= \bigoplus _{k=1}^K \tilde{q}_k(x,y,t),$$ defined as the direct sum of the $K$ local polynomial solutions $\tilde{q}_k(x,t)=(\tilde E_{x_k}, \tilde E_{y_k}, \tilde H_{z_k})$. We use the notation $\tilde E_x(x,y,t)=\bigoplus _{k=1}^K \tilde{E}_{x_k}(x,y,t)$, $\tilde E_y(x,y,t)$$=\bigoplus _{k=1}^K \tilde{E}_{y_k}(x,y,t)$, $\tilde H_z(x,y,t)=\bigoplus _{k=1}^K \tilde{H}_{z_k}(x,y,t).$ The finite element space is then taken to be $$V_{N}=\{v \in L^2(\Omega)^3: v|_{T_k} \in P_N(T_k)^3\},$$ where $P_N(T_k)$ denotes the space of polynomials of degree less than or equal to $N$ on $T_k$. % The fields are expanded in terms of interpolating Lagrange polynomials $L_i(x,y)$, $$ \tilde{q}_k(x,y,t)=\sum_{i=1}^{N_p} \tilde{q}_k(x_i,y_i,t)L_i(x,y)=\sum_{i=1}^{N_p} \tilde{q}_{ki}(t) L_i(x,y).$$ Here $N_p$ denotes the number of coefficients that are utilized, which is related with the polynomial order $N$ via $N_p=(N+1)(N+2)/2.$ In order to deduce the method, we start by multiplying equation (\ref{q_eq}) by test functions $v \in V_N$, usually the Lagrange polynomials, and integrate over each element $T_k$. The next step is to employ one integration by parts and to substitute in the resulting contour integral the flux $F$ by a numerical flux $F^*$. Reversing the integration by parts yields \begin{eqnarray*} \int_{T_k} \left(Q \frac{\partial \tilde q}{\partial t} + \nabla \cdot F(\tilde q) \right) v(x,y) \, dx dy = \int_{\partial T_k} n \cdot \left(F(\tilde q)-F^*(\tilde q)\right) v(x,y) \, ds,\end{eqnarray*} where $n$ is the outward pointing unit normal vector of the contour. The approximate fields are allowed to be discontinuous across element boundaries. In this way, we introduce the notation for the jumps of the field values across the interfaces of the elements, $[\tilde E]=\tilde E^--\tilde E^+$ and $[\tilde H]=\tilde H^--\tilde H^+$, where the superscript $``+"$ denotes the neighboring element and the superscript $``-"$ refers to the local cell. Furthermore we introduce, respectively, the cell-impedances and cell-conductances $Z^{\pm}=\mu^{\pm}c^{\pm}$ and $Y^{\pm}=\left(Z^{\pm}\right)^{-1}$ where $$c^{\pm} =\sqrt{\frac{n^T \epsilon^{\pm} n }{\mu^{\pm}\det(\epsilon^{\pm})}}.$$ At the outer cell boundaries we set $Z^+=Z^-$. The coupling between elements is introduced via numerical flux, defined by \begin{eqnarray*} n \cdot \left(F(\tilde q)-F^*(\tilde q)\right) &=&\begin{pmatrix} \frac{-n_y}{Z^++Z^-} \left(Z^+ [\tilde H_z]-\alpha \left(n_x[\tilde E_y]-n_y[\tilde E_x]\right)\right)\\ \frac{n_x}{Z^++Z^-} \left(Z^+ [\tilde H_z]-\alpha \left(n_x[\tilde E_y]-n_y[\tilde E_x]\right)\right)\\ \frac{1}{Y^++Y^-} \left(Y^+ \left(n_x[\tilde E_y]-n_y[\tilde E_x]\right)-\alpha[\tilde H_z]\right) \end{pmatrix}. \end{eqnarray*} The parameter $\alpha \in [0,1]$ in the numerical flux can be used to control dissipation. Taking $\alpha=0$ yields a non dissipative central flux while $\alpha=1$ corresponds to the classic upwind flux. In order to discretize the boundary conditions we set $[\tilde E_x]=2\tilde E_x^-$, $[\tilde E_y]=2\tilde E_y^-$, $[\tilde H_z]=0$ and $[\tilde E_x]=0$, $[\tilde E_y]=0$, $[\tilde H_z]=2\tilde H_z^-$, for PEC and PMC boundary conditions, respectively. For Silver-M\"{u}ller absorbing boundary conditions, using the same kind of approach as in \cite{alvarez2014}, we consider, for upwind fluxes $Z^-\tilde H_z^+ =n_x\tilde E_y^+-n_y\tilde E_x^+ $ or equivalently $\tilde H_z^+=Y^-(n_x\tilde E_y^+-n_y\tilde E_x^+)$ and, for central fluxes $Z^-\tilde H_z^+ =( n_x\tilde E_y^--n_y\tilde E_x^-)$ and $Y^-(n_x\tilde E_y^+-n_y\tilde E_x^+)=\tilde H_z^-.$ This is equivalent to consider, for both upwind and central fluxes, $\alpha=1$ for numerical flux at the outer boundary and $[\tilde E_x]=\tilde E_x^-$, $[\tilde E_y]=\tilde E_y^-$ and $[\tilde H_z]=\tilde H_z^-$. \subsection{Time discretization} To define a fully discrete scheme, we divide the time interval $[0,T]$ into $M$ subintervals by points $0=t^0<t^1<\cdots<t^M=T$, where $t^m=m \Delta t$, $\Delta t$ is the time step size and $T+ \Delta t/2 \leq T_f$. The unknowns related to the electric field are approximated at integer time-stations $t^m$ and are denoted by $\tilde E_k^m=\tilde E_k(.,t^m)$. The unknowns related to the magnetic field are approximated at half-integer time-stations $t^{m+1/2}=(m+\frac{1}{2}) \Delta t$ and are denoted by $\tilde H_k^{m+1/2}=\tilde H_k(.,t^{m+1/2})$. With the above setting, we can now formulate the leap-frog DG method: given an initial approximation $(\tilde E_{x_k}^{0}, \tilde E_{y_k}^{0}, \tilde H_{z_k}^{1/2}) \in V_N$, for each $m=0,1,\ldots, M-1$, find $(\tilde E_{x_k}^{m+1}, \tilde E_{y_k}^{m+1}, \tilde H_{z_k}^{m+1/2}) \in V_N$ such that, $\forall (u_k, v_k, w_k) \in V_N$, \begin{eqnarray} && \left(\epsilon_{xx} \frac{ \tilde E_{x_k}^{m+1}-\tilde E_{x_k}^{m}}{\Delta t} +\epsilon_{xy} \frac{ \tilde E_{y_k}^{m+1}-\tilde E_{y_k}^{m}}{\Delta t} ,u_k \right)_{T_k} = \left(\partial_y \tilde H_{z_k}^{m+1/2}, u_k\right) _{T_k} \nonumber \\ &&\qquad+ \left(\frac{-n_y}{Z^++Z^-}\left(Z^+ [\tilde H_{z}^{m+1/2}]-\alpha \left(n_x[\tilde E_{y}^{m}]-n_y[\tilde E_{x}^{m}]\right)\right) ,u_k\right)_{\partial T_k}, \label{Fdis1}\\ &&\left(\epsilon_{yx} \frac{ \tilde E_{x_k}^{m+1}-\tilde E_{x_k}^{m}}{\Delta t} + \epsilon_{yy} \frac{ \tilde E_{y_k}^{m+1}-\tilde E_{y_k}^{m}}{\Delta t}, v_k \right) _{T_k } = -\left( \partial_x \tilde H_{z_k}^{m+1/2} , v_k \right)_{T_k} \nonumber \\ &&\qquad+ \left(\frac{n_x}{Z^++Z^-} \left(Z^+ [\tilde H_{z}^{m+1/2}]-\alpha \left(n_x[\tilde E_{y}^{m}]-n_y[\tilde E_{x}^{m}]\right)\right) , v_k\right)_{\partial T_k}, \label{Fdis2}\\ &&\left ( \mu \frac{ \tilde H_{z_k}^{m+3/2}-\tilde H_{z_k}^{m+1/2}}{\Delta t}, w_k\right)_{T_k} = \left( \partial_y \tilde E_{x_k}^{m+1} - \partial_x \tilde E_{y_k}^{m+1} ,w_k \right)_{T_k} \nonumber \\ &&\qquad+ \left (\frac{1}{Y^++Y^-} \left(Y^+ (n_x[\tilde E_y^{m+1}]-n_y[\tilde E_x^{m+1}])-\alpha[\tilde H_z^{m+1/2}]\right), w_k\right)_{\partial T_k}, \nonumber \\ \label{Fdis3} \end{eqnarray} where $(\cdot,\cdot)_{T_k}$ and $(\cdot,\cdot)_{\partial T_k}$ denote the classical $L^2(T_k)$ and $L^2(\partial T_k)$ inner-products. The boundary conditions are considered as described in the previous section. We want to emphasize that the scheme (\ref{Fdis1})--(\ref{Fdis3}) is fully explicit in time, in opposition to \cite{li2012}, where the scheme is defined with the upwind fluxes involving the unknowns $E_{k}^{m+1}$ and $H_{k}^{m+3/2}$ and to \cite{fezoui2005}, where the scheme that is defined with the central fluxes leads to a locally implicit time method in the case of Silver-M\"{u}ller absorbing boundary conditions. \section{Stability analysis}\label{section_stability_2D} The aim of this section is to provide a sufficient condition for the $L^2$-stability of the leap-frog DG method (\ref{Fdis1})--(\ref{Fdis3}). Choosing $u_k = \Delta t \tilde{E}_{x_k}^{[m+1/2]}$, $v_k = \Delta t \tilde{E}_{y_k}^{[m+1/2]}$ and $w_k = \Delta t \tilde{H}_{z_k}^{[m+1]}$, where $\tilde{E}^{[m+1/2]}=$ \linebreak $\left(\tilde{E}^{m}+\tilde{E}^{m+1}\right)/2$ and $\tilde{H}^{[m+1]}=\left(\tilde{H}^{m+1/2}+\tilde{H}^{m+3/2}\right)/2$, we have \begin{eqnarray}\label{fv1} &&\left(\epsilon \tilde{E}_k^{m+1},\tilde{E}_k^{m+1}\right)_{T_k}-\left(\epsilon \tilde{E}_k^{m},\tilde{E}_k^{m}\right)_{T_k} =2 \Delta t \left(\nabla \times \tilde{H}_{z_k}^{m+1/2},\tilde{E}_k^{[m+1/2]}\right)_{T_k}\nonumber\\ &&\qquad+ 2\Delta t\left( \frac{-n_y}{Z^++Z^-} \left(Z^+ [\tilde H_{z}^{m+1/2}]-\alpha \left(n_x[\tilde E_{y}^{m}]-n_y[\tilde E_{x}^{m}]\right) \right), \tilde E_{x_k}^{[m+1/2]}\right)_{\partial T_k}\nonumber\\ &&\qquad+2\Delta t\left( \frac{n_x}{Z^++Z^-} \left(Z^+ [\tilde H_{z}^{m+1/2}]-\alpha \left(n_x[\tilde E_{y}^{m}]-n_y[\tilde E_{x}^{m}]\right) \right), \tilde E_{y_k}^{[m+1/2]}\right)_{\partial T_k} \nonumber \end{eqnarray} and \begin{eqnarray} \label{fv2} &&\left(\mu \tilde{H}_{z_k}^{m+3/2},\tilde{H}_{z_k}^{m+3/2}\right)_{T_k}-\left(\mu \tilde{H}_{z_k}^{m+1/2},\tilde{H}_{z_k}^{m+1/2}\right)_{T_k} = -2\Delta t \left( \mbox{curl } \tilde E_{k}^{m+1} ,\tilde{H}_{z_k}^{[m+1]}\right)_{T_k}\nonumber\\ &&\qquad+ 2\Delta t \left( \frac{1}{Y^++Y^-} \left(Y^+ \left(n_x[\tilde E_y^{m+1}]-n_y[\tilde E_x^{m+1}]\right)-\alpha[\tilde H_z^{m+1/2}]\right), \tilde H_{z_k}^{[m+1]}\right)_{\partial T_k}. \nonumber \end{eqnarray} Using the identity, $$ \left( \mbox{curl } \tilde E_{k}^{m+1} ,\tilde{H}_{z_k}^{[m+1]}\right)_{T_k}= \left(\nabla \times \tilde{H}_{z_k}^{[m+1]},\tilde{E}_k^{m+1}\right)_{T_k}+ \left( n_x \tilde{E}_{y_k}^{m+1} - n_y \tilde{E}_{x_k}^{m+1} , \tilde{H}_{z_k}^{[m+1]} \right)_{\partial T_k}, $$ summing (\ref{fv1}) and (\ref{fv2}) from $m=0$ to $m=M-1$, and integrating by parts, we get \begin{eqnarray} &&\left(\epsilon \tilde{E}_k^{M},\tilde{E}_k^{M}\right)_{T_k}+\left(\mu \tilde{H}_{z_k}^{M+1/2},\tilde{H}_{z_k}^{M+1/2}\right)_{T_k}= \left(\epsilon \tilde{E}_k^{0},\tilde{E}_k^{0}\right)_{T_k}+\left(\mu \tilde{H}_{z_k}^{1/2},\tilde{H}_{z_k}^{1/2}\right)_{T_k}\nonumber\\ &&\qquad +\Delta t \left(\nabla \times \tilde{H}_{z_k}^{1/2},\tilde{E}_k^{0}\right)_{T_k} - \Delta t \left(\nabla \times \tilde{H}_{z_k}^{M+1/2},\tilde{E}_k^{M}\right)_{T_k} +2 \Delta t \sum_{m=0}^{M-1} A_k^m,\label{cond} \end{eqnarray} where \begin{eqnarray*} A_k^m &=& \left( \frac{-n_y}{Z^++Z^-} \left(Z^+ [\tilde H_{z}^{m+1/2}]-\alpha \left(n_x[\tilde E_{y}^{m}]-n_y[\tilde E_{x}^{m}]\right) \right), \tilde E_{x_k}^{[m+1/2]}\right)_{\partial T_k}\nonumber\\ &&+\left( \frac{n_x}{Z^++Z^-} \left(Z^+ [\tilde H_{z}^{m+1/2}]-\alpha \left(n_x[\tilde E_{y}^{m}]-n_y[\tilde E_{x}^{m}]\right) \right), \tilde E_{y_k}^{[m+1/2]}\right)_{\partial T_k}\\ &&+\left( \frac{1}{Y^++Y^-} \left(Y^+ \left(n_x[\tilde E_y^{m+1}]-n_y[\tilde E_x^{m+1}]\right)-\alpha[\tilde H_z^{m+1/2}]\right), \tilde H_{z_k}^{[m+1]}\right)_{\partial T_k} \\ &&- \left( n_x \tilde{E}_{y_k}^{m+1} - n_y\tilde{E}_{x_k}^{m+1}, \tilde{H}_{z_k}^{[m+1]} \right)_{\partial T_k}. \end{eqnarray*} Let us denote by $F^{int}$ the set of internal edges and $F^{ext}$ the set of edges that belong to the boundary $\partial \Omega$. Let $\nu_k$ be the set of indices of the neighboring elements of $T_k$. For each $i \in \nu_k$, we consider the internal edge $f_{ik}=T_i \cap T_k$, and we denote by $n_{ik}$ the unit normal oriented from $T_i$ towards $T_k$. For each boundary edge $f_{k}=T_k\cap \partial \Omega$, $n_k$ is taken to be the unitary outer normal vector to $f_k$. Summing over all elements $T_k \in \mathcal T_h$ we obtain % \begin{eqnarray*} \sum_{T_k \in \mathcal T_h} A_k^m = B_1^m+B_2^m, \end{eqnarray*} where $B_1^m=B_{11}^m+B_{12}^m+B_{13}^m$ with \begin{eqnarray} B_{11}^m & =& \sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \Bigg( \frac{-(n_y)_{ki}}{Z_i+Z_k} \left(Z_i [\tilde H_{z_k}^{m+1/2}]-\alpha \left((n_x)_{ki}[\tilde E_{y_k}^{m}]-(n_y)_{ki}[\tilde E_{x_k}^{m}]\right) \right) \tilde E_{x_k}^{[m+1/2]}\nonumber\\ &&\quad + \frac{-(n_y)_{ik}}{Z_i+Z_k} \left(Z_k [\tilde H_{zi}^{m+1/2}]-\alpha \left((n_x)_{ik}[\tilde E_{yi}^{m}]-(n_y)_{ik}[\tilde E_{xi}^{m}] \right)\right) \tilde E_{xi}^{[m+1/2]}\nonumber\\ &&\quad -\frac{Y_i (n_y)_{ki}}{Y_i+Y_k} [\tilde E_{x_k}^{m+1}] \tilde H_{z_k}^{[m+1]} - \frac{Y_k (n_y)_{ik}}{Y_i+Y_k} [\tilde E_{xi}^{m+1}] \tilde H_{zi}^{[m+1]}\nonumber\\ &&\quad + (n_y)_{ki} \tilde{E}_{x_k}^{m+1} \tilde{H}_{z_k}^{[m+1]} + (n_y)_{ik}\tilde{E}_{xi}^{m+1} \tilde{H}_{zi}^{[m+1]} \Bigg)\, ds,\label{B1m} \end{eqnarray} % \begin{eqnarray} B_{12}^m&=&\sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \Bigg( \frac{(n_x)_{ki}}{Z_i+Z_k} \left(Z_i [\tilde H_{z_k}^{m+1/2}]-\alpha \left((n_x)_{ki}[\tilde E_{y_k}^{m}]-(n_y)_{ki}[\tilde E_{x_k}^{m}]\right) \right) \tilde E_{y_k}^{[m+1/2]}\nonumber\\ &&\quad +\frac{(n_x)_{ik}}{Z_i+Z_k} \left(Z_k [\tilde H_{zi}^{m+1/2}]-\alpha \left((n_x)_{ik}[\tilde E_{yi}^{m}]-(n_y)_{ik}[\tilde E_{xi}^{m}]\right) \right) \tilde E_{yi}^{[m+1/2]}\nonumber\\ &&\quad + \frac{Y_i (n_x)_{ki}}{Y_i+Y_k} [\tilde E_{y_k}^{m+1}] \tilde H_{z_k}^{[m+1]} +\frac{Y_k (n_x)_{ik}}{Y_i+Y_k} [\tilde E_{yi}^{m+1}] \tilde H_{zi}^{[m+1]}\nonumber\\ &&\quad - (n_x)_{ki}\tilde{E}_{y_k}^{m+1} \tilde{H}_{z_k}^{[m+1]} - (n_x)_{ik}\tilde{E}_{yi}^{m+1} \tilde{H}_{zi}^{[m+1]} \Bigg)\, ds,\label{B2m} \end{eqnarray} \begin{eqnarray} B_{13}^m=- \sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \Bigg( \frac{\alpha}{Y_i+Y_k} [\tilde H_{z_k}^{m+1/2}] \tilde H_{z_k}^{[m+1]} +\frac{\alpha}{Y_i+Y_k} [\tilde H_{zi}^{m+1/2}] \tilde H_{zi}^{[m+1]} \Bigg)\, ds \label{B3m} \end{eqnarray} % and $B_2^m$ has the terms related with the outer boundary \begin{eqnarray} B_2^m &=& \sum_{f_{k} \in F^{ext} } \int_{f_{k}}\Bigg( \frac{-(n_y)_{k}}{2 Z_k} \left(Z_k [\tilde H_{z_k}^{m+1/2}]-\alpha \left((n_x)_{k}[\tilde E_{y_k}^{m}]-(n_y)_{k}[\tilde E_{x_k}^{m}]\right) \right) \tilde E_{x_k}^{[m+1/2]}\nonumber\\ &&\quad +\frac{(n_x)_{k}}{2 Z_k} \left(Z_k [\tilde H_{z_k}^{m+1/2}]-\alpha \left((n_x)_{k}[\tilde E_{y_k}^{m}]-(n_y)_{k}[\tilde E_{x_k}^{m}]\right) \right) \tilde E_{y_k}^{[m+1/2]}\nonumber\\ &&\quad +\frac{1}{2 Y_k} \left(Y_k \left((n_x)_{k}[\tilde E_{y_k}^{m+1}]-(n_y)_{k}[\tilde E_{x_k}^{m+1}]\right)-\alpha[\tilde H_{z_k}^{m+1/2}]\right) \tilde H_{z_k}^{[m+1]}\nonumber\\ &&\quad - \left( (n_x)_{k} \tilde{E}_{y_k}^{m+1} - (n_y)_{k}\tilde{E}_{x_k}^{m+1} \right) \tilde{H}_{z_k}^{[m+1]} \Bigg)\, ds.\label{B4m} \end{eqnarray} \begin{lemma}\label{B13} Let $B_{11}^m$, $B_{12}^m$ and $B_{13}^m$ be defined by (\ref{B1m}), (\ref{B2m}) and (\ref{B3m}), respectively, and $B_1^m=B_{11}^m+B_{12}^m+B_{13}^m$. Then \begin{eqnarray*} \sum_{m=0}^{M-1} B_1^m &\le& \sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \frac{1}{4(Z_i+Z_k)}\Bigg(-\alpha\left((n_y)_{ki}[\tilde E_{x_k}^{0}]-(n_x)_{ki} [\tilde E_{y_k}^{0}]\right)^2\nonumber\\ &&\quad+2\left((n_x)_{ki}\left( Z_i \tilde E_{y_k}^{0}+Z_k \tilde E_{yi}^{0}\right)- (n_y)_{ki}\left( Z_i \tilde E_{x_k}^{0}+Z_k \tilde E_{xi}^{0}\right)\right)[\tilde H_{z_k}^{1/2}]\nonumber\\ &&\quad +\alpha\left(\left((n_y)_{ki}[\tilde E_{x_k}^{M}]-(n_x)_{ki} [\tilde E_{y_k}^{M}]\right)^2 - \left([\tilde H_{z_k}^{1/2}]^2 -[\tilde H_{z_k}^{M+1/2}]^2 \right)\right) \nonumber\\ &&\quad+ 2 \left((n_y)_{ki}\left( Z_i \tilde E_{x_k}^{M}+Z_k \tilde E_{xi}^{M}\right)-(n_x)_{ki}\left( Z_i \tilde E_{y_k}^{M}+Z_k \tilde E_{yi}^{M}\right)\right)[\tilde H_{z_k}^{M+1/2}]\Bigg) \, ds.\nonumber \end{eqnarray*} \end{lemma} \begin{proof} Since \begin{equation}\label{ZY1} \frac{Z_i}{Z_i+Z_k}+\frac{Y_i}{Y_i+Y_k}=\frac{Z_k}{Z_i+Z_k}+\frac{Y_k}{Y_i+Y_k}=1\end{equation} and \begin{equation}\label{ZY2}\frac{Z_i}{Z_i+Z_k}=\frac{Y_k}{Y_i+Y_k},\qquad \frac{Z_k}{Z_i+Z_k}=\frac{Y_i}{Y_i+Y_k},\end{equation} summing from $m=0$ to $m=M-1$, we conclude that \begin{eqnarray*} \sum_{m=0}^{M-1} B_{11}^m&=& \sum_{f_{ik} \in F^{int} }\int_{f_{ik}} \frac{(n_y)_{ki}}{2(Z_i+Z_k)} \Bigg(- \left(Z_i \tilde E_{x_k}^{0} +Z_k \tilde E_{xi}^{0}\right)[\tilde H_{z_k}^{1/2}] \\ &&\quad + \alpha \left((n_x)_{ki}[\tilde E_{y_k}^{0}]-(n_y)_{ki}[\tilde E_{x_k}^{0}] \right) [\tilde E_{x_k}^{0}]\nonumber\\ &&\quad+ \alpha\sum_{m=0}^{M-1} \left((n_x)_{ki}[\tilde E_{y_k}^{m+1}]-(n_y)_{ki}[\tilde E_{x_k}^{m+1}] + (n_x)_{ki}[\tilde E_{y_k}^{m}]-(n_y)_{ki}[\tilde E_{x_k}^{m}] \right) [\tilde E_{x_k}^{m+1}]\nonumber\\ &&\quad+ \left(Z_i \tilde E_{x_k}^{M} + Z_k\tilde E_{xi}^{M}\right)[\tilde H_{z_k}^{M+1/2}] - \alpha \left((n_x)_{ki}[\tilde E_{y_k}^{M}]-(n_y)_{ki}[\tilde E_{x_k}^{M}] \right) [\tilde E_{x_k}^{M}]\Bigg)\, ds. \nonumber \end{eqnarray*} % In the same way, for $B_{12}^m$ we have % \begin{eqnarray*} \sum_{m=0}^{M-1} B_{12}^m&=& \sum_{f_{ik} \in F^{int} } \int_{f_{ik}}\frac{(n_x)_{ki}}{2(Z_i+Z_k)} \Bigg( \left(Z_i \tilde E_{y_k}^{0}+Z_k\tilde E_{yi}^{0}\right)[\tilde H_{z_k}^{1/2}] - \left((n_x)_{ki}[\tilde E_{y_k}^{0}]-(n_y)_{ki}[\tilde E_{x_k}^{0}] \right) [\tilde E_{y_k}^{0}]\nonumber\\ &&\quad- \alpha \sum_{m=0}^{M-1}\left( (n_x)_{ki}[\tilde E_{y_k}^{m+1}]-(n_y)_{ki}[\tilde E_{x_k}^{m+1}] +(n_x)_{ki}[\tilde E_{y_k}^{m}]-(n_y)_{ki}[\tilde E_{x_k}^{m}] \right) [\tilde E_{y_k}^{m+1}]\nonumber\\ &&\quad- \left(Z_i \tilde E_{y_k}^{M}+Z_k\tilde E_{yi}^{M}\right)[\tilde H_{z_k}^{M+1/2}]+\alpha \left((n_x)_{ki}[\tilde E_{y_k}^{M}]-(n_y)_{ki}[\tilde E_{x_k}^{M}] \right) [\tilde E_{y_k}^{M}]\Bigg)\, ds, \nonumber \end{eqnarray*} and for $B_{13}^m$ \begin{eqnarray*} \sum_{m=0}^{M-1} B_{13}^m= -\sum_{m=0}^{M-1} \sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \frac{\alpha}{2(Y_i+Y_k)} [\tilde H_{z_k}^{m+1/2}] \left([\tilde H_{z_k}^{m+1/2}]+[\tilde H_{z_k}^{m+3/2}]\right) \, ds. \nonumber \end{eqnarray*} Observing that, for general sequences $\{a^m\}$ and $\{b^m\}$, hold \begin{eqnarray*} \sum_{m=0}^{M-1} \left(a^{m+1} + a^{m} \right)a^{m+1}&=& \frac{1}{2} \left(-(a^0)^2 +(a^M)^2 + \sum_{m=0}^{M-1} \left(a^m+a^{m+1}\right)^2 \right), \end{eqnarray*} \begin{eqnarray*} \sum_{m=0}^{M-1} \left(a^{m+1} + a^{m} \right)b^{m+1}&=& \frac{1}{2} \Bigg(-a^0b^0 +a^Mb^M+ \sum_{m=0}^{M-1} \left(a^mb^m+2a^{m}b^{m+1}+a^{m+1}b^{m+1}\right) \Bigg), \end{eqnarray*} we get % \begin{eqnarray*} &&\sum_{m=0}^{M-1} \left( B_{11}^m+ B_{12}^m\right) \le \sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \frac{1}{4(Z_i+Z_k)}\Bigg(-\alpha(n_y)_{ki}^2 \left(-[\tilde E_{x_k}^0]^2 +[\tilde E_{x_k}^{M}]^2 \right)\\ &&\quad +\alpha(n_x)_{ki}(n_y)_{ki}\left(-[\tilde E_{x_k}^0][\tilde E_{y_k}^0] +[\tilde E_{x_k}^{M}][\tilde E_{y_k}^{M}] \right)-2(n_y)_{ki} \left(Z_i \tilde E_{x_k}^{0} +Z_k \tilde E_{xi}^{0}\right)[\tilde H_{z_k}^{1/2}] \nonumber\\ &&\quad+2\alpha(n_y)_{ki} \left((n_x)_{ki}[\tilde E_{y_k}^{0}]-(n_y)_{ki}[\tilde E_{x_k}^{0}] \right) [\tilde E_{x_k}^{0}]+ 2(n_y)_{ki} \left(Z_i \tilde E_{x_k}^{M} + Z_k\tilde E_{xi}^{M}\right)[\tilde H_{z_k}^{M+1/2}]\nonumber\\ &&\quad- 2\alpha(n_y)_{ki} \left((n_x)_{ki}[\tilde E_{y_k}^{M}]-(n_y)_{ki}[\tilde E_{x_k}^{M}] \right) [\tilde E_{x_k}^{M}]-\alpha(n_x)_{ki}^2\left(-[\tilde E_{y_k}^0]^2 +[\tilde E_{y_k}^{M}]^2 \right)\nonumber\\ &&\quad+ \alpha(n_x)_{ki}(n_y)_{ki}\left(-[\tilde E_{x_k}^0][\tilde E_{y_k}^0] +[\tilde E_{x_k}^{M}][\tilde E_{y_k}^{M}] \right)+2(n_x)_{ki} \left(Z_i \tilde E_{y_k}^{0}+Z_k\tilde E_{yi}^{0}\right)[\tilde H_{z_k}^{1/2}] \nonumber\\ &&\quad- 2\alpha(n_x)_{ki} \left((n_x)_{ki}[\tilde E_{y_k}^{0}]-(n_y)_{ki}[\tilde E_{x_k}^{0}] \right) [\tilde E_{y_k}^{0}]- 2(n_x)_{ki} \left(Z_i \tilde E_{y_k}^{M}+Z_k\tilde E_{yi}^{M}\right)[\tilde H_{z_k}^{M+1/2}]\nonumber\\ &&\quad+2\alpha(n_x)_{ki} \left((n_x)_{ki}[\tilde E_{y_k}^{M}]-(n_y)_{ki}[\tilde E_{x_k}^{M}] \right) [\tilde E_{y_k}^{M}]\Bigg)\, ds. \nonumber \end{eqnarray*} We also have \begin{eqnarray*} \sum_{m=0}^{M-1} B_{13}^m&=&-\sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \frac{\alpha}{4(Y_i+Y_k)} \Bigg([\tilde H_{z_k}^{1/2}]^2 -[\tilde H_{z_k}^{M+1/2}]^2+\sum_{m=0}^{M-1} \left([\tilde H_{z_k}^{m+1/2}]+[\tilde H_{z_k}^{m+3/2}] \right)^2\Bigg) \, ds\nonumber\\ &\leq &-\sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \frac{\alpha}{4(Y_i+Y_k)} \left([\tilde H_{z_k}^{1/2}]^2 -[\tilde H_{z_k}^{M+1/2}]^2 \right) \, ds,\nonumber \end{eqnarray*} which concludes the proof. \end{proof} Let us now analyze the term $B_2^m$ for different kinds of boundary conditions. \begin{lemma}\label{B4} Let $B_2^m$ be defined by (\ref{B4m}). Then \begin{eqnarray*} \sum_{m=0}^{M-1}B_2^m &\leq & \sum_{f_{k} \in F^{ext} } \int_{f_{k}} \frac{\beta_1}{4Z_k} \Bigg( -\left((n_y)_{k}\tilde E_{x_k}^{0}-(n_x)_{k}\tilde E_{y_k}^{0} \right)^2+ \left((n_y)_{k}\tilde E_{x_k}^{M}-(n_x)_{k}\tilde E_{y_k}^{M} \right)^2\Bigg)\\ &&\quad+\frac{\beta_2}{2}\Bigg( \tilde H_{z_k}^{1/2} \left((n_x)_{k}\tilde E_{y_k}^{0}-(n_y)_{k}\tilde E_{x_k}^{0} - \frac{\beta_3}{2Y_k} \tilde H_{z_k}^{1/2} \right)\\ &&\quad-\tilde H_{z_k}^{M+1/2}\left((n_x)_{k}\tilde E_{y_k}^{M}-(n_y)_{k}\tilde E_{x_k}^{M} - \frac{\beta_3}{2Y_k} \tilde H_{z_k}^{M+1/2}\right)\Bigg)\, ds, \end{eqnarray*} where $\beta_1=\alpha, \beta_2=0$ for PEC, $\beta_1=0, \beta_2=1$, $\beta_3=\alpha$ for PMC, and $\beta_1=\beta_2=\frac12$, $\beta_3=1$ for Silver-M\"uller boundary conditions. \end{lemma} \begin{proof} First we consider PEC boundary conditions. We have % \begin{eqnarray*} B_2^m &=& \sum_{f_{k} \in F^{ext} } \int_{f_{k}}\frac{ \alpha}{ Z_k}\Bigg( (n_y)_{k} \left((n_x)_{k}\tilde E_{y_k}^{m}-(n_y)_{k}\tilde E_{x_k}^{m}\right) \tilde E_{x_k}^{[m+1/2]}\\ &&- (n_x)_{k} \left((n_x)_{k}\tilde E_{y_k}^{m}-(n_y)_{k}\tilde E_{x_k}^{m}\right) \tilde E_{y_k}^{[m+1/2]} \Bigg)\, ds. \end{eqnarray*} % Summing from $m=0$ to $m=M-1$ we obtain % \begin{eqnarray*} \sum_{m=0}^{M-1} B_2^m &=& \sum_{f_{k} \in F^{ext} } \int_{f_{k}} \frac{\alpha}{4 Z_k}\Bigg( -\left((n_x)_{k}\tilde E_{y_k}^{0}-(n_y)_{k}\tilde E_{x_k}^{0} \right)^2 +\left((n_x)_{k}\tilde E_{y_k}^{M}-(n_y)_{k}\tilde E_{x_k}^{M} \right)^2\\ &&- 4\sum_{m=0}^{M-1} \left((n_x)_{k}\tilde E_{y_k}^{[m+1/2]} -(n_y)_{k}\tilde E_{x_k}^{[m+1/2]}\right)^2 \Bigg)\, ds\\ &\leq& \sum_{f_{k} \in F^{ext} } \int_{f_{k}}\frac{\alpha}{4 Z_k}\Bigg( -\left((n_x)_{k}\tilde E_{y_k}^{0}-(n_y)_{k}\tilde E_{x_k}^{0} \right)^2 + \left((n_x)_{k}\tilde E_{y_k}^{M}-(n_y)_{k}\tilde E_{x_k}^{M} \right)^2\Bigg) \, ds. \end{eqnarray*} % For PMC boundary conditions we have % \begin{eqnarray*} B_2^m &=& \sum_{f_{k} \in F^{ext} } \int_{f_{k}} \Bigg( \tilde H_{z_k}^{m+1/2}\left((n_x)_{k} \tilde E_{y_k}^{[m+1/2]}-(n_y)_{k}\tilde E_{x_k}^{[m+1/2]}\right)\nonumber\\ &&- \left(\frac{\alpha }{ Y_k}\tilde H_{z_k}^{m+1/2}+ (n_x)_{k}\tilde E_{y_k}^{m+1}-(n_y)_{k}\tilde E_{x_k}^{m+1}\right) \tilde H_{z_k}^{[m+1]}\Bigg)\, ds. \end{eqnarray*} % Summing from $m=0$ to $m=M-1$ results % \begin{eqnarray*} \sum_{m=0}^{M-1} B_2^m &\le&\frac12 \sum_{f_{k} \in F^{ext} }\int_{f_{k}} \Bigg( \tilde H_{z_k}^{1/2} \left((n_x)_{k}\tilde E_{y_k}^{0}-(n_y)_{k}\tilde E_{x_k}^{0} - \frac{\alpha}{2Y_k} \tilde H_{z_k}^{1/2} \right)\\ && -\tilde H_{z_k}^{M+1/2}\left((n_x)_{k}\tilde E_{y_k}^{M}-(n_y)_{k}\tilde E_{x_k}^{M} - \frac{\alpha}{2Y_k} \tilde H_{z_k}^{M+1/2}\right)\Bigg)\, ds. \end{eqnarray*} For Silver-M\"uller absorbing boundary conditions we have % \begin{eqnarray*} B_2^m&= & \frac12 \sum_{f_{k} \in F^{ext} }\int_{f_{k}} \Bigg( \left(-(n_y)_{k} \tilde H_{z_k}^{m+1/2}+\frac{(n_y)_{k}}{ Z_k} \left((n_x)_{k}\tilde E_{y_k}^{m}-(n_y)_{k}\tilde E_{x_k}^{m}\right)\right) \tilde E_{x_k}^{[m+1/2]}\nonumber\\ &&+ \left((n_x)_{k} \tilde H_{z_k}^{m+1/2}-\frac{(n_x)_{k}}{ Z_k} \left((n_x)_{k}\tilde E_{y_k}^{m}-(n_y)_{k}\tilde E_{x_k}^{m}\right)\right) \tilde E_{y_k}^{[m+1/2]}\nonumber\\ &&- \left(\frac{1}{Y_k}\tilde H_{z_k}^{m+1/2}+ (n_x)_{k}\tilde E_{y_k}^{m+1}-(n_y)_{k}\tilde E_{x_k}^{m+1}\right) \tilde H_{z_k}^{[m+1]}\Bigg)\, ds. \end{eqnarray*} Summing from $m=0$ to $m=M-1$, and taking into account the previous cases, we deduce that \begin{eqnarray*} \sum_{m=0}^{M-1} B_2^m &\leq& \sum_{f_{k} \in F^{ext} }\int_{f_{k}} \frac{1}{8 Z_k} \Bigg( -\left((n_y)_{k}\tilde E_{x_k}^{0}-(n_x)_{k}\tilde E_{y_k}^{0} \right)^2 +\left((n_y)_{k}\tilde E_{x_k}^{M}-(n_x)_{k}\tilde E_{y_k}^{M} \right)^2\Bigg)\\ &&+\frac14 \Bigg( \tilde H_{z_k}^{1/2} \left((n_x)_{k}\tilde E_{y_k}^{0}-(n_y)_{k}\tilde E_{x_k}^{0} - \frac{1}{2Y_k} \tilde H_{z_k}^{1/2} \right)\\ &&-\tilde H_{z_k}^{M+1/2}\left((n_x)_{k}\tilde E_{y_k}^{M}-(n_y)_{k}\tilde E_{x_k}^{M} - \frac{1}{2Y_k} \tilde H_{z_k}^{M+1/2}\right)\Bigg)\, ds, \end{eqnarray*} which concludes the proof. \end{proof} \begin{theorem} \label{stab_theorem} Let us consider the leap-frog DG method (\ref{Fdis1})--(\ref{Fdis3}) complemented with the discrete boundary conditions defined in Section \ref{DG_method}. If the time step $\Delta t$ is such that \begin{equation}\label{stab_cond} \Delta t < \frac{\min\{\munderbar \epsilon, \munderbar\mu\}}{\max\{{C}_E, C_H\}} \min\{h_k\}, \end{equation} where $${C}_E=\frac12 C_{inv} N^2+C_{\tau}^2 (N+1)(N+2)\left(2+\beta_2+\frac{2\alpha+\beta_1}{2\min\{Z_k\}}\right),$$ $${C}_H= \frac12 C_{inv} N^2+C_{\tau}^2 (N+1)(N+2)\left(2+\beta_2+\frac{\alpha+\beta_2\beta_3}{\min\{ Y_k\}}\right), $$ with $C_{\tau}$ defined by (\ref{inq_trace}) of Lemma \ref{trace} and $C_{inv}$ defined by (\ref{inq_inv}) of Lemma \ref{inverse_ineq}, and $\beta_1=\alpha, \beta_2=0$ for PEC, $\beta_1=0, \beta_2=1$, $\beta_3=\alpha$ for PMC, and $\beta_1=\beta_2=\frac12$, $\beta_3=1$ for Silver-M\"uller boundary conditions, then the method is stable. \end{theorem} \begin{proof} From (\ref{cond}) and the previous lemmata, considering the Cauchy-Schwarz's inequality and taking into account that $Z_i/(Z_i+Z_k)<1$, we obtain \begin{eqnarray*} &&\sum_{T_k \in \mathcal T_h}\left( \left(\epsilon \tilde{E}_k^{M},\tilde{E}_k^{M}\right)_{T_k}+\left(\mu \tilde{H}_{z_k}^{M+1/2},\tilde{H}_{z_k}^{M+1/2}\right)_{T_k}\right)\\ &&\le\sum_{T_k \in \mathcal T_h}\left(\left(\epsilon \tilde{E}_k^{0},\tilde{E}_k^{0}\right)_{T_k}+\left(\mu \tilde{H}_{z_k}^{1/2},\tilde{H}_{z_k}^{1/2}\right)_{T_k}\right)\\ &&\qquad+\Delta t \sum_{T_k \in \mathcal T_h}\left(\|\nabla \times \tilde{H}_{z_k}^{1/2}\|_{L^2(T_k)}\|\tilde{E}_k^{0}\|_{L^2(T_k)} +\|\nabla \times \tilde{H}_{z_k}^{M+1/2}\|_{L^2(T_k)}\|\tilde{E}_k^{M}\|_{L^2(T_k)} \right)\\ &&\qquad+2\Delta t \sum_{f_{ik} \in F^{int} } \Big( \| \tilde E^{M}_{k}\|_{L^2(f_{ik})}\|[\tilde H_{z_k}^{M+1/2}]\|_{L^2(f_{ik})}+\|\tilde E^{0}_{k}\|_{L^2(f_{ik})}\|[\tilde H_{z_k}^{1/2}]\|_{L^2(f_{ik})}\Big) \\ &&\qquad+\frac{\alpha \Delta t}{4\min\{Z_k\}}\sum_{f_{ik} \in F^{int} } \| [\tilde E_{k}^{M}]\|^2_{L^2(f_{ik})} +\frac{\alpha\Delta t}{4 \min\{Y_k\}}\sum_{f_{ik} \in F^{int}}\| [\tilde H_{z_k}^{M+1/2}]\|_{L^2(f_{ik})}^2\\ &&\qquad+\frac{\beta_1\Delta t}{2 \min\{Z_k\}}\sum_{f_{k} \in F^{ext}} \| \tilde E_k^M\|_{L^2(f_k)}^2 +\frac{\beta_2\beta_3\Delta t}{ \min\{Y_k\}}\sum_{f_{k} \in F^{ext}}\|\tilde H_{z_k}^{M+1/2}\|_{L^2(f_k)}^2 \\ &&\qquad+ 2\beta_2\Delta t\sum_{f_{k} \in F^{ext}}\left( \|\tilde H_{z_k}^{1/2}\|_{L^2(f_k)}\| \tilde E_{k}^{0}\|_{L^2(f_k)} + \|\tilde H_{z_k}^{M+1/2}\|_{L^2(f_k)} \| \tilde E_{k}^{M}\|_{L^2(f_k)}\right). \end{eqnarray*} % Using the inequality (\ref{inq_trace}) of Lemma \ref{trace} and the inequality (\ref{inq_inv}) of Lemma \ref{inverse_ineq} (both in Appendix), we get \begin{eqnarray*} &&\min\{\munderbar\epsilon,\munderbar\mu\}\left(\|\tilde{E}^{M}\|^2_{\Omega}+\|\tilde{H}_{z}^{M+1/2}\|^2_{\Omega}\right)\le\max\{\bar\epsilon, \bar\mu\}\left(\|\tilde{E}^{0}\|^2_{\Omega}+\|\tilde{H}_{z}^{1/2}\|^2_{\Omega}\right)\\ &&\qquad+\frac{\Delta t}{2} C_{inv} N^2 \max\left\{h_k^{-1} \right\} \left(\|\tilde{H}_{z}^{1/2}\|_{\Omega}^2 + \|\tilde{E}^{0}\|_{\Omega}^2 +\| \tilde{H}_{z}^{M+1/2}\|_{\Omega}^2+ \|\tilde{E}^{M}\|_{\Omega}^2 \right)\\ &&\qquad+C_{\tau}^2 (N+1)(N+2)\Delta t\max\left\{h_k^{-1} \right\}\left(2+\beta_2+\frac{2\alpha+\beta_1}{2\min\{Z_k\}}\right) \| \tilde E^M\|_{\Omega}^2\\ &&\qquad+C_{\tau}^2 (N+1)(N+2)\Delta t\max\left\{h_k^{-1} \right\}\left(2+\beta_2+\frac{\alpha+\beta_2\beta_3}{\min\{ Y_k\}}\right) \| \tilde H_{z}^{M+1/2}\|_{\Omega}^2\\ &&\qquad+C_{\tau}^2 (N+1)(N+2)\Delta t\max\left\{h_k^{-1} \right\}\left(2+\beta_2\right)\left( \| \tilde E^0\|_{\Omega}^2+ \|\tilde H_{z}^{1/2}\|_{\Omega}^2 \right). \end{eqnarray*} and so, taking ${C}_0=\frac12 C_{inv} N^2+ C_{\tau}^2 (N+1)(N+2)\left(2+ \beta_2\right),$ % \begin{eqnarray*} &&\left(\min\{\munderbar \epsilon, \munderbar\mu\}-\Delta t \max\left\{h_k^{-1} \right\}\max\{{C}_E, C_H\}\right)\left(\|\tilde{E}^{M}\|^2_{L^2(\Omega)}+\|\tilde{H}_{z}^{M+1/2}\|^2_{L^2(\Omega)}\right)\\ &&\qquad \le \left(\max\{\bar \epsilon, \bar\mu\}+\Delta t \max\left\{h_k^{-1} \right\}{C}_0\right)\left(\|\tilde{E}^{0}\|^2_{L^2(\Omega)}+\|\tilde{H}_{z}^{1/2}\|^2_{L^2(\Omega)}\right), \end{eqnarray*} which concludes the proof. \end{proof} The stability condition (\ref{stab_cond}) shows that the method is conditionally stable, which is natural since we considered an explicit time discretization. Furthermore, it discloses the influence of the values of $\alpha$, $h_{min}$ and $N$ on the bounds of the stable region. This is of utmost importance to balance accuracy {\it versus } stability. \section{Numerical results} In this section we present numerical results that support the theoretical results derived in the previous section. We can check numerically that (\ref{stab_cond}) defines a sharp stability condition, in terms of the influence of $N$ and $h_{min}=\min\{h_k\}$. In our experiments, we computed $C$ that satisfies \begin{equation}\label{C_stability} \Delta t_{max} = \frac{C}{(N+1)(N+2)} h_{min}, \end{equation} where $\Delta t_{max}$ is the maximum observed value of $\Delta t$ such that the method is stable. For these tests, the domain is the square $\Omega = (-1,1)^2$, the simulation final time is fixed at $T = 1$, we consider a symmetric and positive definite anisotropic constant permittivity tensor (\ref{tensor}), with $\epsilon_{xx} = 5, \epsilon_{xy} = \epsilon_{yx} = 1 $ and $\epsilon_{yy} = 3 $, and $\mu = 1$. We consider equations (\ref{Maxwell TE1})--(\ref{Maxwell TE3}) with initial conditions $E_x(x,y,0) = 0, E_y(x,y,0) = 0, H_z(x,y,\Delta t/2) = \cos(\pi x) \cos(\pi y)\cos(\omega \Delta t/2)$, where $ \omega = \pi \sqrt{\frac{1}{\epsilon_{xx}}+\frac{1}{\epsilon_{yy}}}$, in the case of PEC boundary conditions and \linebreak $E_x(x,y,0) = 0,$ $E_y(x,y,0) = 0,$ $H_z(x,y,\Delta t/2) = \sin(\pi\Delta t/2)\sin(\pi x y) $ in the case of Silver-M\"{u}ller absorbing boundary conditions. In Table \ref{CFL_PEC_CENT} and Table \ref{CFL_PEC_UPWIND} the results are computed for different mesh sizes, considering respectively central and upwind fluxes in the DG method, for the case of PEC boundary conditions, while in Table \ref{CFL_SM_CENT} and Table \ref{CFL_SM_UPWIND}, the results are computed for the case of Silver-M\"uller boundary conditions. { \begin{table}[h!] \footnotesize \begin{tabular}{lcccccccccc} \toprule \multirow{2}{*}{$h_{min}$} & \multicolumn{2}{c}{$N=1$} & \multicolumn{2}{c}{$N=2$} & \multicolumn{2}{c}{$N=3$}& \multicolumn{2}{c}{$N=4$}& \multicolumn{2}{c}{$N=5$}\\ & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$}& {$\Delta t_{max}$} & {$C$} \\ \midrule 0.5657 & 0.17 & 1.80 & 0.1 & 2.12 & 0.065 & 2.30 & 0.044 & 2.33 & 0.032 & 2.37 \\ 0.2828 & 0.088 & 1.87 & 0.05 & 2.12 & 0.031 & 2.20 & 0.021 & 2.23 & 0.016 & 2.37 \\ 0.1414& 0.044 & 1.87 & 0.024 & 2.04 & 0.015 & 2.12 & 0.01 & 2.12 & 0.0078 & 2.32 \\ 0.0707& 0.021 & 1.78 & 0.012 & 2.04 & 0.0078 & 2.20 & 0.0054 & 2.30 & 0.0038 & 2.26 \\ 0.0354& 0.01 & 1.70 & 0.006 & 2.04 & 0.0039 & 2.20 & 0.0027 & 2.30 & 0.0019 & 2.26 \\ 0.0177& 0.0054 & 1.83 & 0.003 & 2.04 & 0.0019 & 2.15 & 0.0013 & 2.21 & 0.00095 & 2.26 \\ \bottomrule \end{tabular} \caption{$\Delta t_{max}$ such that the method is stable and $C$ computed by (\ref{C_stability}) for PEC boundary conditions and central flux. } \label{CFL_PEC_CENT} \end{table} } { \begin{table}[h!] \footnotesize \begin{tabular}{lcccccccccc} \toprule \multirow{2}{*}{$h_{min}$} & \multicolumn{2}{c}{$N=1$} & \multicolumn{2}{c}{$N=2$} & \multicolumn{2}{c}{$N=3$} & \multicolumn{2}{c}{$N=4$} & \multicolumn{2}{c}{$N=5$} \\ & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$}\\ \midrule 0.5657 & 0.10 & 1.06 & 0.056 & 1.19 & 0.034 & 1.20 & 0.023 & 1.22 & 0.016 & 1.19 \\ 0.2828 & 0.047 & 1.00 & 0.026 & 1.10 & 0.016 & 1.13 & 0.011 & 1.17 & 0.0081 & 1.20 \\ 0.1414& 0.023 & 0.98 & 0.012 & 1.02 & 0.008 & 1.13 & 0.0054 & 1.15 & 0.0039 & 1.16 \\ 0.0707& 0.011 & 0.93 & 0.0062 & 1.05 & 0.0039 & 1.10 & 0.0026 & 1.10 & 0.0019 & 1.13 \\ 0.0354& 0.0055 & 0.93 & 0.003 & 1.02 & 0.0019 & 1.07 & 0.0013 & 1.10 & 0.0009 & 1.07 \\ 0.0177& 0.0027 & 0.92 & 0.0015 & 1.02 & 0.0009 & 1.02 & 0.0006 & 1.02 & 0.0004 & 0.95 \\ \bottomrule \end{tabular} \caption{$\Delta t_{max}$ such that the method is stable and $C$ computed by (\ref{C_stability}) for PEC boundary conditions and upwind flux.} \label{CFL_PEC_UPWIND} \end{table} } { \begin{table}[h!] \footnotesize \begin{tabular}{lcccccccccc} \toprule \multirow{2}{*}{$h_{min}$} & \multicolumn{2}{c}{$N=1$} & \multicolumn{2}{c}{$N=2$} & \multicolumn{2}{c}{$N=3$}& \multicolumn{2}{c}{$N=4$}& \multicolumn{2}{c}{$N=5$}\\ & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$}& {$\Delta t_{max}$} & {$C$} \\ \midrule 0.5657 & 0.18 & 1.91 & 0.1 & 2.12 & 0.064 & 2.26 & 0.044 & 2.33 & 0.031 & 2.30 \\ 0.2828 & 0.092 & 1.95 & 0.05 & 2.12 & 0.031 & 2.19 & 0.021 & 2.02 & 0.015 & 2.23 \\ 0.1414& 0.044 & 1.87 & 0.024 & 2.04 & 0.015 & 2.12 & 0.01 & 2.12 & 0.0079 & 2.35 \\ 0.0707& 0.021 & 1.78 & 0.012 & 2.04 & 0.0077 & 2.18 & 0.0053 & 2.25 & 0.0038 & 2.26 \\ 0.0354& 0.01 & 1.70 & 0.006 & 2.04 & 0.0038 & 2.15 & 0.0026 & 2.21 & 0.0019 & 2.26 \\ 0.0177& 0.0053 & 1.80 & 0.003 & 2.04 & 0.0018 & 2.04 & 0.0012 & 2.04 & 0.00095 & 2.26 \\ \bottomrule \end{tabular} \caption{$\Delta t_{max}$ such that the method is stable and $C$ computed by (\ref{C_stability}) for SM boundary conditions and central flux. } \label{CFL_SM_CENT} \end{table} } { \begin{table}[h!] \footnotesize \begin{tabular}{lcccccccccc} \toprule \multirow{2}{*}{$h_{min}$} & \multicolumn{2}{c}{$N=1$} & \multicolumn{2}{c}{$N=2$} & \multicolumn{2}{c}{$N=3$} & \multicolumn{2}{c}{$N=4$} & \multicolumn{2}{c}{$N=5$} \\ & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$} & {$\Delta t_{max}$} & {$C$}\\ \midrule 0.5657 & 0.11 & 1.17 & 0.057 & 1.21 & 0.035 & 1.24 & 0.023 & 1.22 & 0.016 & 1.19 \\ 0.2828 & 0.051 & 1.08 & 0.026 & 1.10 & 0.016 & 1.13 & 0.011 & 1.17 & 0.008 & 1.19 \\ 0.1414& 0.023 & 0.98 & 0.012 & 1.02 & 0.008 & 1.13 & 0.0054 & 1.15 & 0.0039 & 1.16 \\ 0.0707& 0.011 & 0.93 & 0.0061 & 1.04 & 0.0039 & 1.10 & 0.0026 & 1.10 & 0.0019 & 1.13 \\ 0.0354& 0.0055 & 0.93 & 0.003 & 1.02 & 0.0018 & 1.07 & 0.0013 & 1.10 & 0.00097 & 1.15 \\ 0.0177& 0.0027 & 0.92 & 0.0015 & 1.02 & 0.00097 & 1.10 & 0.00065 & 1.10 & 0.00045 & 1.07 \\ \bottomrule \end{tabular} \caption{$\Delta t_{max}$ such that the method is stable and $C$ computed by (\ref{C_stability}) for SM boundary conditions and upwind flux.} \label{CFL_SM_UPWIND} \end{table} } As expected from the condition (\ref{stab_cond}), the numerical examples show that the stability regions corresponding to central fluxes are slightly bigger when compared to the regions obtained using upwind fluxes. From all the examples presented, we may deduce that the right hand side of (\ref{stab_cond}) is a sharp bound for $\Delta t_{max}$. Moreover, we can also conclude that $\Delta t_{max}$ is directly proportional $h_{min}$ and inversely proportional to $(N+1)(N+2)$. \section{Stability of the 3 D model} In this section we extend the analysis in Section \ref{section_stability_2D} of the TE form of Maxwell's equations in two-dimensions to the full three-dimensional time-dependent Maxwell equations (\ref{maxwell3D}), with the equations are set on a bounded polyhedral domain $\Omega \subset {\mathbb R}^3$. We can write the model in a conservation form (\ref{q_eq}) with \begin{eqnarray*} Q=\begin{pmatrix} \epsilon & 0 \\ 0 & \mu \end{pmatrix}, \quad q=\begin{pmatrix}E\\ H\end{pmatrix} \quad \mbox{and } \quad F(q)= \begin{pmatrix} n \times H\\ - n\times E\end{pmatrix}, \end{eqnarray*} where $E=(E_x,E_y,E_z),$ $H=(H_x,H_y,H_z)$ and these are functions of $(x,y,z,t)$. We assume that electric permittivity and the magnetic permeability tensors $\epsilon$ and $\mu$ are symmetric and uniformly positive definite for almost every $(x,y,z) \in \Omega$, and are uniformly bounded with a strictly positive lower bound, {\it i.e.}, there are constants $\underline\epsilon>0$, $\overline \epsilon> 0$ and $\underline\mu>0$, $\overline \mu> 0$ such that, for almost every $(x,y,z)\in \Omega$, $$\munderbar\epsilon |\xi|^2\le\xi^T\epsilon(x,y,z)\xi\le \overline\epsilon |\xi|^2,\qquad \munderbar\mu |\xi|^2\le\xi^T\mu(x,y,z)\xi\le \overline\mu |\xi|^2,\qquad \forall \xi\in\mathbb{R}^3.$$ Let us define an effective permeability (in the same way as the effective permittivity) by $$\mu_{eff}=\frac{\det(\mu)}{n^T \mu n}.$$ Now the the speed with which a wave travels along the direction of the unit normal is given by $$c =\sqrt{\frac{1}{\mu_{eff} \epsilon_{eff}}}.$$ We assume that $\Omega$ is partitioned into $K$ disjoint tetrahedral elements $T_k$. The leap-frog discontinuous Galerkin method is the natural extension of the formulation (\ref{Fdis1})-(\ref{Fdis3}) to the three-dimensional domain, with the numerical flux defined by \begin{eqnarray*} n \cdot \left(F(\tilde q)-F^*(\tilde q)\right) &=&\begin{pmatrix} \frac{-1}{Z^++Z^-} n \times \left(Z^+ [\tilde H]-\alpha n \times [\tilde E] \right)\\ \frac{1}{Y^++Y^-} n \times \left(Y^+ [\tilde E]+\alpha n \times [\tilde H]\right) \end{pmatrix}. \end{eqnarray*} We start by noticing that the following inequalities hold \begin{eqnarray}\label{fv13D} &&\left(\epsilon \tilde{E}_k^{m+1},\tilde{E}_k^{m+1}\right)_{T_k}-\left(\epsilon \tilde{E}_k^{m},\tilde{E}_k^{m}\right)_{T_k} =2 \Delta t \left(\nabla \times \tilde{H}_{k}^{m+1/2},\tilde{E}_k^{[m+1/2]}\right)_{T_k}\nonumber\\ &&\qquad- 2\Delta t\left( \frac{1}{Z^++Z^-} n \times \left(Z^+ [\tilde H^{m+1/2}]-\alpha n \times [\tilde E^{m}] \right), \tilde E_{k}^{[m+1/2]}\right)_{\partial T_k} \end{eqnarray} and \begin{eqnarray} \label{fv23D} \lefteqn{ \left(\mu \tilde{H}_{k}^{m+3/2},\tilde{H}_{k}^{m+3/2}\right)_{T_k}-\left(\mu \tilde{H}_{k}^{m+1/2},\tilde{H}_{k}^{m+1/2}\right)_{T_k} = }\nonumber\\ &&-2\Delta t \left( \nabla \times \tilde E_{k}^{m+1} ,\tilde{H}_{k}^{[m+1]}\right)_{T_k}\nonumber\\ &&+ 2\Delta t \left( \frac{1}{Y^++Y^-} n \times \left(Y^+ [\tilde E^{m+1}]+\alpha n \times [\tilde H^{m+1/2}]\right), \tilde H_{k}^{[m+1]}\right)_{\partial T_k}. \nonumber \\\end{eqnarray} Using the identity, $$ \left( \nabla \times \tilde E_{k}^{m+1} ,\tilde{H}_{k}^{[m+1]}\right)_{T_k}= \left(\nabla \times \tilde{H}_{k}^{[m+1]},\tilde{E}_k^{m+1}\right)_{T_k}+ \left( n \times \tilde{E}_{k}^{m+1} , \tilde{H}_{k}^{[m+1]} \right)_{\partial T_k}, $$ summing (\ref{fv13D}) and (\ref{fv23D}) from $m=0$ to $m=M-1$, and integrating by parts, we get \begin{eqnarray} &&\left(\epsilon \tilde{E}_k^{M},\tilde{E}_k^{M}\right)_{T_k}+\left(\mu \tilde{H}_{k}^{M+1/2},\tilde{H}_{k}^{M+1/2}\right)_{T_k}= \left(\epsilon \tilde{E}_k^{0},\tilde{E}_k^{0}\right)_{T_k}+\left(\mu \tilde{H}_{k}^{1/2},\tilde{H}_{z_k}^{1/2}\right)_{T_k}\nonumber\\ &&\qquad +\Delta t \left(\nabla \times \tilde{H}_{k}^{1/2},\tilde{E}_k^{0}\right)_{T_k} - \Delta t \left(\nabla \times \tilde{H}_{k}^{M+1/2},\tilde{E}_k^{M}\right)_{T_k} +2 \Delta t \sum_{m=0}^{M-1} A_k^m,\label{cond3D} \end{eqnarray} where \begin{eqnarray*} A_k^m &=&- \left( \frac{1}{Z^++Z^-} n \times \left(Z^+ [\tilde H^{m+1/2}]-\alpha n \times [\tilde E^{m}] \right), \tilde E_{k}^{[m+1/2]}\right)_{\partial T_k}\nonumber\\ &&\left( \frac{1}{Y^++Y^-} n \times \left(Y^+ [\tilde E^{m+1}]+\alpha n \times [\tilde H^{m+1/2}]\right), \tilde H_{k}^{[m+1]}\right)_{\partial T_k}\\ &&-\left( n \times \tilde{E}_{k}^{m+1} , \tilde{H}_{k}^{[m+1]} \right)_{\partial T_k}. \end{eqnarray*} Let us consider the following decomposition $$\sum_{T_k\in \mathcal T_h}A_k^m = B_1^m + B_2^m,$$ where \begin{eqnarray} B_1^m & =&\sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \Bigg( \frac{-1}{Z_i+Z_k} n_{ki}\times \left(Z_i [\tilde H_{k}^{m+1/2}]-\alpha n_{ki}\times [\tilde E_{k}^{m}] \right)\cdot \tilde E_{k}^{[m+1/2]}\nonumber\\ &&\quad + \frac{1}{Z_i+Z_k}n_{ki} \times \left(Z_k [\tilde H_{i}^{m+1/2}]+\alpha n_{ki}\times [\tilde E_{i}^{m}]\right) \cdot \tilde E_{i}^{[m+1/2]}\nonumber\\ &&\quad + \frac{1}{Y_i+Y_k} n_{ki}\times \left( Y_i [\tilde E_{k}^{m+1}]+\alpha n_{ki}\times [\tilde H_{k}^{m+1/2}]\right)\cdot \tilde H_{k}^{[m+1]}\nonumber\\ &&\quad - \frac{1}{Y_i+Y_k} n_{ki}\times \left( Y_k [\tilde E_{i}^{m+1}]-\alpha n_{ki}\times [\tilde H_{i}^{m+1/2}]\right)\cdot \tilde H_{i}^{[m+1]}\nonumber\\ &&\quad - n_{ki}\times \tilde{E}_{k}^{m+1} \cdot \tilde{H}_{k}^{[m+1]} + n_{ki}\times \tilde{E}_{i}^{m+1} \cdot \tilde{H}_{i}^{[m+1]} \Bigg)\, ds,\label{B1m3D} \end{eqnarray} and \begin{eqnarray} B_2^m&=&\sum_{f_{k} \in F^{ext} } \int_{f_{k}} \Bigg( - \frac{1}{2 Z_k} n_k \times \left(Z_k [\tilde H_k^{m+1/2}]-\alpha n_k \times [\tilde E_k^{m}] \right) \cdot \tilde E_{k}^{[m+1/2]}\nonumber\\ && + \frac{1}{2Y_k} n_k \times \left(Y_k[\tilde E_k^{m+1}]+\alpha n_k \times [\tilde H_k^{m+1/2}]\right) \cdot \tilde H_{k}^{[m+1]}- n_k \times \tilde{E}_{k}^{m+1} \cdot \tilde{H}_{k}^{[m+1]}\Bigg) \, ds .\label{B2m3D} \end{eqnarray} We will now estimate $B_1^m$ and $B_2^m$. In what follows, we use the inequalities: \begin{equation}\label{cross_dot} u\times v \cdot w = - u\times w\cdot v, \end{equation} and \begin{equation}\label{cross_cross} u\times( v \times w) = v (u\cdot w)-w (u\cdot v). \end{equation} \begin{lemma}\label{B13D} Let $B_1^m$ be defined by (\ref{B1m3D}).% Then \begin{eqnarray} \sum_{m=0}^{M-1}B_1^m & \le& \sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \Bigg(\frac{\alpha}{4(Z_i+Z_k)} [\tilde E_{k}^{M}] \cdot [\tilde E_{k}^{M}]+ \frac{\alpha}{4(Y_i+Y_k)}[\tilde H_{k}^{M+1/2}] \cdot [\tilde H_{k}^{M+1/2}]\nonumber\\ &&+\frac{Z_k}{2(Z_i+Z_k)} \left(n_{ki}\times [\tilde H_k^{1/2}]\cdot [E_k^0] - n_{ki}\times [\tilde H_k^{M+1/2}]\cdot [\tilde E_k^{M}]\right)\nonumber\\ &&+\frac12\left(n_{ki}\times [\tilde H_k^{M+1/2}]\cdot \tilde E_k^{M} - n_{ki}\times [\tilde H_k^{1/2}]\cdot \tilde E_k^{0}\right) \Bigg)\, ds.\nonumber \end{eqnarray} \end{lemma} \begin{proof} Summing from $m=0$ to $m=M-1$, usin (\ref{ZY1}), (\ref{ZY2}), (\ref{cross_dot}) and (\ref{cross_cross}), we obtain \begin{eqnarray} \sum_{m=0}^{M-1}B_1^m &=& \sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \Bigg(\frac{\alpha}{4(Z_i+Z_k)}\Bigg( - [\tilde E_{k}^{0}]^T \left(I-n_{ki} n_{ik}^T\right) [\tilde E_{k}^{0}] + [\tilde E_{k}^{M}]^T \left(I-n_{ki} n_{ik}^T\right) [\tilde E_{k}^{M}] \nonumber\\ && - \sum_{m=0}^{M-1} \left( [\tilde E_{k}^{m}]+ [\tilde E_{k}^{m+1}]\right) ^T \left(I-n_{ki} n_{ik}^T\right) \left( [\tilde E_{k}^{m}]+ [\tilde E_{k}^{m+1}]\right) \Bigg)\nonumber\\ &&+ \frac{\alpha}{4(Y_i+Y_k)}\Bigg( - [\tilde H_{k}^{1/2}]^T \left(I-n_{ki} n_{ik}^T\right) [\tilde H_{k}^{1/2}] + [\tilde H_{k}^{M+1/2}]^T \left(I-n_{ki} n_{ik}^T\right) [\tilde H_{k}^{M+1/2}] \nonumber\\ && - \sum_{m=0}^{M-1} \left( [\tilde H_{k}^{m+1/2}]+ [\tilde H_{k}^{m+3/2}]\right) ^T \left(I-n_{ki} n_{ik}^T\right) \left( [\tilde H_{k}^{m+1/2}]+ [\tilde H_{k}^{m+3/2}]\right) \Bigg)\nonumber\\ && +\frac{Z_k}{2(Z_i+Z_k)} \left(n_{ki}\times [\tilde H_k^{1/2}]\cdot [E_k^0] - n_{ki}\times [\tilde H_k^{M+1/2}]\cdot [\tilde E_k^{M}]\right)\nonumber\\ &&+\frac12\left(n_{ki}\times [\tilde H_k^{M+1/2}]\cdot \tilde E_k^{M} - n_{ki}\times [\tilde H_k^{1/2}]\cdot \tilde E_k^{0}\right) \Bigg)\, ds\nonumber \end{eqnarray} where $I$ is an identity matrix. Since $I-n_{ki} n_{ik}^T$ is a positive semidefinite matrix, \begin{eqnarray} \sum_{m=0}^{M-1}B_1^m &\le& \sum_{f_{ik} \in F^{int} } \int_{f_{ik}} \Bigg(\frac{\alpha}{4(Z_i+Z_k)}\Bigg( [\tilde E_{k}^{M}]^T \left(I-n_{ki} n_{ik}^T\right) [\tilde E_{k}^{M}]\nonumber\\ &&\quad + \frac{\alpha}{4(Y_i+Y_k)}\Bigg([\tilde H_{k}^{M+1/2}]^T \left(I-n_{ki} n_{ik}^T\right) [\tilde H_{k}^{M+1/2}]\nonumber\\ &&\quad+\frac{Z_k}{2(Z_i+Z_k)} \left(n_{ki}\times [\tilde H_k^{1/2}]\cdot [E_k^0] - n_{ki}\times [\tilde H_k^{M+1/2}]\cdot [\tilde E_k^{M}]\right)\nonumber\\ &&\quad +\frac12\left(n_{ki}\times [\tilde H_k^{M+1/2}]\cdot \tilde E_k^{M} - n_{ki}\times [\tilde H_k^{1/2}]\cdot \tilde E_k^{0}\right) \Bigg)\, ds.\nonumber \end{eqnarray} The proof follows from the fact that, since the matriz $I-n_{ki} n_{ik}^T$ is an orthogonal projector, $x^T (I-n_{ki} n_{ik}^T)x\le x\cdot x$, for all vector $x$. \end{proof} \begin{lemma}\label{B23D} Let $B_2^m$ be defined by (\ref{B2m3D}).% Then \begin{eqnarray*} \sum_{m=0}^{M-1} B_2^m &\leq &\sum_{f_{k} \in F^{ext} } \int_{f_{k}}\Bigg(\frac{\beta_1}{4 Z_k}\Bigg( -\left(n_{k} \times \tilde E_{k}^{0} \right) \cdot \left(n_{k} \times \tilde E_{k}^{0} \right)+ \left(n_{k} \times \tilde E_{k}^{M} \right) \cdot \left(n_{k} \times \tilde E_{k}^{M} \right)\Bigg) \nonumber\\ &&+ \frac{\beta_3}{4 Y_k}\Bigg( -\left(n_{k} \times \tilde H_{k}^{1/2} \right) \cdot \left(n_{k} \times \tilde H_{k}^{1/2} \right)+ \left(n_{k} \times \tilde H_{k}^{M+1/2} \right) \nonumber\\ && \cdot \left(n_{k} \times \tilde H_{k}^{M+1/2} \right)\Bigg) + \frac{\beta_2}{2} \left(n_k \times \tilde{E}_{k}^{0} \cdot \tilde{H}_{k}^{1/2}- n_k \times \tilde{E}_{k}^{M} \cdot \tilde{H}_{k}^{M+1/2} \right)\Bigg) \, ds, \end{eqnarray*} where $\beta_1=\alpha, \beta_2=0$ for PEC, $\beta_1=0, \beta_2=1$, $\beta_3=\alpha$ for PMC, and $\beta_1=\beta_2=\beta_3=\frac12$ for Silver-M\"uller boundary conditions. \end{lemma} \begin{proof} First we consider PEC boundary conditions. We have % \begin{eqnarray*} B_2^m = \sum_{f_{k} \in F^{ext} } \int_{f_{k}} \frac{1}{ Z_k} n_k \times \left(\alpha n_k \times \tilde E_k^{m} \right) \cdot \tilde E_{k}^{[m+1/2]} \, ds, \end{eqnarray*} % and then % \begin{eqnarray*} \sum_{m=0}^{M-1} B_2^m &\leq & \sum_{f_{k} \in F^{ext} } \int_{f_{k}}\frac{\alpha}{4 Z_k}\Bigg( -\left(n_{k} \times \tilde E_{k}^{0} \right) \cdot \left(n_{k} \times \tilde E_{k}^{0} \right)+ \left(n_{k} \times \tilde E_{k}^{M} \right) \cdot \left(n_{k} \times \tilde E_{k}^{M} \right)\Bigg) \, ds. \end{eqnarray*} For PMC boundary conditions, results \begin{eqnarray*} B_2^m&=&\sum_{f_{k} \in F^{ext} } \int_{f_{k}} \Bigg(- n_k \times \tilde H_k^{m+1/2} \cdot \tilde E_{k}^{[m+1/2]}+ \frac{\alpha}{Y_k} n_k \times \left(n_k \times \tilde H_k^{m+1/2} \right) \cdot \tilde H_{k}^{[m+1]}\nonumber\\ &&\quad- n_k \times \tilde{E}_{k}^{m+1} \cdot \tilde{H}_{k}^{[m+1]}\Bigg) \, ds, \end{eqnarray*} % and then \begin{eqnarray*} \sum_{m=0}^{M-1} B_2^m &\leq &\sum_{f_{k} \in F^{ext} } \int_{f_{k}} \Bigg(\frac{\alpha}{4 Y_k}\Bigg( -\left(n_{k} \times \tilde H_{k}^{1/2} \right) \cdot \left(n_{k} \times \tilde H_{k}^{1/2} \right)+ \left(n_{k} \times \tilde H_{k}^{M+1/2} \right) \nonumber\\ && \cdot \left(n_{k} \times \tilde H_{k}^{M+1/2} \right)\Bigg) + \frac{1}{2} n_k \times \tilde{E}_{k}^{0} \cdot \tilde{H}_{k}^{1/2}- \frac{1}{2} n_k \times \tilde{E}_{k}^{M} \cdot \tilde{H}_{k}^{M+1/2}\Bigg) \, ds. \end{eqnarray*} For Silver-M\"uler boundary conditions, we have \begin{eqnarray*} B_2^m&= &\sum_{f_{k} \in F^{ext} } \int_{f_{k}} \Bigg( - \frac{1}{2 Z_k} n_k \times \left(Z_k \tilde H_k^{m+1/2}- n_k \times \tilde E_k^{m}\right) \cdot \tilde E_{k}^{[m+1/2]} \nonumber\\ &&+ \frac{1}{2Y_k} n_k \times \left(Y_k \tilde E_k^{m+1}+ n_k \times \tilde H_k^{m+1/2} \right) \cdot \tilde H_{k}^{[m+1]}- n_k \times \tilde{E}_{k}^{m+1} \cdot \tilde{H}_{k}^{[m+1]}\Bigg) \, ds \nonumber\\ &=&\sum_{f_{k} \in F^{ext} } \int_{f_{k}}\Bigg( - \frac{1}{2 Z_k} n_k \times \left(Z_k \tilde H_k^{m+1/2}- n_k \times \tilde E_k^{m}\right) \cdot \tilde E_{k}^{[m+1/2]} \nonumber\\ &&+ \frac{1}{2Y_k} n_k \times \left( n_k \times \tilde H_k^{m+1/2} \right) \cdot \tilde H_{k}^{[m+1]}.- \frac{1}{2} n_k \times \tilde{E}_{k}^{m+1} \cdot \tilde{H}_{k}^{[m+1]}\Bigg) \, ds, \end{eqnarray*} and then \begin{eqnarray*} \sum_{m=0}^{M-1} B_2^m &\leq& \sum_{f_{k} \in F^{ext} } \int_{f_{k}}\Bigg(\frac{1}{8 Z_k}\Bigg( -\left(n_{k} \times \tilde E_{k}^{0} \right) \cdot \left(n_{k} \times \tilde E_{k}^{0} \right)+ \left(n_{k} \times \tilde E_{k}^{M} \right) \cdot \left(n_{k} \times \tilde E_{k}^{M} \right)\Bigg) \nonumber\\ &&+ \frac{1}{8 Y_k}\Bigg( -\left(n_{k} \times \tilde H_{k}^{1/2} \right) \cdot \left(n_{k} \times \tilde H_{k}^{1/2} \right)+ \left(n_{k} \times \tilde H_{k}^{M+1/2} \right) \nonumber\\ && \cdot \left(n_{k} \times \tilde H_{k}^{M+1/2} \right)\Bigg) + \frac{1}{4} n_k \times \tilde{E}_{k}^{0} \cdot \tilde{H}_{k}^{1/2}- \frac{1}{4} n_k \times \tilde{E}_{k}^{M} \cdot \tilde{H}_{k}^{M+1/2}\Bigg) \, ds, \end{eqnarray*} which concludes the proof. \end{proof} \begin{theorem} \label{stab_theorem3D} Let us consider the leap-frog DG method (\ref{Fdis1})--(\ref{Fdis3}) complemented with the discrete boundary conditions defined in Section \ref{DG_method}. If the time step $\Delta t$ is such that \begin{equation}\label{stab_cond3D} \Delta t < \frac{\min\{\munderbar \epsilon, \munderbar\mu\}}{\max\{{C}_E, C_H\}} \min\{h_k\}, \end{equation} where $${C}_E=\frac12 C_{inv} N^2+C_{\tau}^2 (N+1)(N+3)\left(3+\frac{\beta_2}{2}+\frac{\alpha+\beta_1}{2\min\{Z_k\}}\right),$$ $${C}_H= \frac12 C_{inv} N^2+C_{\tau}^2 (N+1)(N+3)\left(3+\frac{\beta_2}{2}+\frac{\alpha+\beta_3}{2\min\{ Y_k\}}\right), $$ with $C_{\tau}$ defined by (\ref{inq_trace_3D}) of Lemma \ref{trace} and $C_{inv}$ defined by (\ref{inq_inv}) of Lemma \ref{inverse_ineq}, and $\beta_1=\alpha, \beta_2=0$ for PEC, $\beta_1=0, \beta_2=1$, $\beta_3=\alpha$ for PMC, and $\beta_1=\beta_2=\frac12$, $\beta_3=1$ for Silver-M\"uller boundary conditions, then the method is stable. \end{theorem} \begin{proof} As for the 2D case, from (\ref{cond3D}) and the previous lemmata, considering the Cauchy-Schwarz's and triangular inequality inequality, taking into account that $Z_i/(Z_i+Z_k)<1$, and using the inequality (\ref{inq_trace_3D}) of Lemma \ref{trace} and the inequality (\ref{inq_inv}) of Lemma \ref{inverse_ineq} (both in Appendix), we get \begin{eqnarray*} \lefteqn{ \min\{\munderbar\epsilon,\munderbar\mu\}\left(\|\tilde{E}^{M}\|^2_{\Omega}+\|\tilde{H}_{z}^{M+1/2}\|^2_{\Omega}\right)\le\max\{\bar\epsilon, \bar\mu\}\left(\|\tilde{E}^{0}\|^2_{\Omega}+\|\tilde{H}_{z}^{1/2}\|^2_{\Omega}\right)}\\ &&+\frac{\Delta t}{2} C_{inv} N^2 \max\left\{h_k^{-1} \right\} \left(\|\tilde{H}_{z}^{1/2}\|_{\Omega}^2 + \|\tilde{E}^{0}\|_{\Omega}^2 +\| \tilde{H}_{z}^{M+1/2}\|_{\Omega}^2+ \|\tilde{E}^{M}\|_{\Omega}^2 \right)\\ &&+C_{\tau}^2 (N+1)(N+3)\Delta t\max\left\{h_k^{-1} \right\}\left(3+\frac{\beta_2}{2}+\frac{\alpha+\beta_1}{2\min\{Z_k\}}\right)\left( \| \tilde E^0\|_{\Omega}^2 + \| \tilde E^M\|_{\Omega}^2\right)\\ &&+C_{\tau}^2 (N+1)(N+3)\Delta t\max\left\{h_k^{-1} \right\}\left(3+\frac{\beta_2}{2}+\frac{\alpha+\beta_3}{2\min\{ Y_k\}}\right) \left( \| \tilde H_{z}^{1/2}\|_{\Omega}^2 + \| \tilde H_{z}^{M+1/2}\|_{\Omega}^2\right). \end{eqnarray*} and so % \begin{eqnarray*} &&\left(\min\{\munderbar \epsilon, \munderbar\mu\}-\Delta t \max\left\{h_k^{-1} \right\}\max\{{C}_E, C_H\}\right)\left(\|\tilde{E}^{M}\|^2_{L^2(\Omega)}+\|\tilde{H}_{z}^{M+1/2}\|^2_{L^2(\Omega)}\right)\\ &&\qquad \le \left(\max\{\bar \epsilon, \bar\mu\}+\Delta t \max\left\{h_k^{-1} \right\}\max\{{C}_E, C_H\}\right)\left(\|\tilde{E}^{0}\|^2_{L^2(\Omega)}+\|\tilde{H}_{z}^{1/2}\|^2_{L^2(\Omega)}\right), \end{eqnarray*} which proves the result. \end{proof} \section*{Acknowledgments} This work was partially supported by the Centre for Mathematics of the University of Coimbra -- UID/MAT/00324/2013, funded by the Portuguese Government through FCT/MEC and co-funded by the European Regional Development Fund through the Partnership Agreement PT2020; and by the Portuguese Government through FCT/MEC under the project PTDC/SAU-ENB/119132/2010 and the BD grant SFRH/BD/51860/2012.
\section{Introduction} Symmetry under spatial transformations is a simple yet fundamental concept underlying the description of most systems in contemporary physics as the origin of conserved quantities. In quantum theory and wave mechanics, symmetry-induced conservation laws are extended from continuous to discrete transformations in terms of commutation of the corresponding operators with the Hamiltonian, which in turn dictates the spatial structure of stationary states. Ubiquitous paradigms are reflection ($\P$) or finite translation ($\mathcal{{K}}$) symmetry imposing definite parity or Bloch momentum on Hamiltonian eigenstates, which then provide the basis for understanding phenomena such as selection rules of level transitions in atoms \cite{Zettili2009____QuantumMechanics} or the formation of band structure in crystals \cite{Jiles1994____IntroductionElectronic}. In intricate lattice systems of intense current interest such as topological insulators \cite{Hasan2010_RMP_82_3045_TextitcolloquiumTopological}, Weyl semimetals \cite{Burkov2011_PRB_84_235126_TopologicalNodal}, and Lieb lattices \cite{Vicencio2015_PRL_114_245503_ObservationLocalized}, state localization and transport properties are also predominantly traced back to broken or unbroken spatial symmetries in combination with the operation of time reversal ($\mathcal{{T}}$). The significance of broken spatiotemporal symmetries has further been addressed for driven quantum systems \cite{Grossmann1991_PRL_67_516_CoherentDestruction,Lehmann2003_JCP_118_3283_RectificationLaser-induced} in relation to directional transport \cite{Denisov2007_PRA_75_063424_PeriodicallyDriven}. Since symmetries are naturally addressed with respect to commutation with the global system Hamiltonian, they are usually regarded dichotomously as broken or unbroken. Nevertheless, in a composite system the Hamiltonian elements may retain a certain spatial symmetry \textit{locally} in a subdomain of configuration space although it is broken \textit{globally}; we refer to this case as a `local symmetry' (LS). Although there is clearly a remnant of the considered symmetry in the corresponding subsystem, it is not evident how to track this information in the eigenstates of the Hamiltonian since it generally does not commute with the LS operation. At the same time, LSs are actually inherently paramount to a variety of systems such as aperiodic lattices with long-range order \cite{Macia2006_RPP_69_397_RoleAperiodic,Albuquerque2003_PR_376_225_TheoryElementary,Lahini2009_PRL_103_013901_ObservationLocalization,Morfonios2014_ND_78_71_LocalSymmetry}, partially disordered media \cite{Wochner2009_PNAS_106_11511_X-rayCross,Lahini2008_PRL_100_013906_AndersonLocalization,Mustapha2013_JPCM_25_105401_UseSymmetry}, and single complex molecules \cite{Pascal2001_JPCA_105_9040_ConciseSet,Domagaa2008_JAC_41_1140_OptimalLocal}. A typical example are also generic solid state nanostructures \cite{Ferry1997____TransportNanostructures}, where unavoidable impurities and defects (usually modeled as $\P$-symmetric) separate the host crystal into finite $\mathcal{{K}}$-symmetric parts. LS may further be present by design in artificial devices like, e.\,g., multilayered photonic setups \cite{Zhukovsky2010_PRA_81_053808_PerfectTransmission,Peng2002_APL_80_3063_Symmetry-inducedPerfect}, acoustic waveguides \cite{Hladky-hennion2013_JAP_113_154901_AcousticWave,Theocharis2014_NJP_16_093017_LimitsSlow}, or magnonic systems \cite{Hsueh2011_JOSAB_28_2584_FeaturesPerfect}, due to restrictions of finiteness or functionality. In fact, even global spatial symmetry is generally rendered local as soon as a system's immediate environment is included in the description. The spatial structure of stationary states in continuous, one-dimensional (1D), locally symmetric scattering potentials was recently pinpointed within the framework of symmetry-adapted nonlocal currents (NLCs) \cite{Kalozoumis2013_PRA_87_032113_LocalSymmetries,Kalozoumis2014_PRL_113_050403_InvariantsBroken,Zampetakis2016_JPAMT_49_195304_InvariantCurrent}: At any real frequency, two distinct NLCs are spatially constant within subdomains of local $\P$ or $\mathcal{{K}}$ symmetry. They provide a mapping of field amplitudes between LS related points, thus generalizing the mapping through parity or Bloch factors for global symmetry \cite{Kalozoumis2014_PRL_113_050403_InvariantsBroken}. The NLCs were further linked to perfectly transmitting states \cite{Kalozoumis2013_PRA_88_033857_LocalSymmetries} and proposed as a natural order parameter for spontaneous symmetry breaking in non-Hermitian $\P\mathcal{{T}}$-symmetric systems \cite{Kalozoumis2014_PRA_90_043809_SystematicPathway,Kalozoumis2016_PRA_93_063831_Mathcalpt-symmetryBreaking}, as well as observed experimentally in lossy acoustic setups \cite{Kalozoumis2015_PRB_92_014303_InvariantCurrents}. The stationary translational invariance of the NLCs suggests that they are governed by a continuity equation incorporating the associated symmetry transform. In the case of global space reflection in continuous systems, the conservation of a symmetry-adapted two-point Schr\"odinger current has been shown under the combination of $\P$ with time reversal $\mathcal{{T}}$ \cite{Bagchi2001_MPLA_16_2047_GeneralizedContinuity,Japaridze2002_JPAMG_35_1709_SpaceState,Jr2015_JPAMT_48_155304_BilocalPicture}, and can be derived alternatively via gauge invariance of a nonlocal Lagrangian \cite{Sinha2015_PRE_91_042908_SymmetriesExact}. The underlying global $\P\mathcal{{T}}$ symmetry has gained increased attention since it admits real discrete spectrum for non-Hermitian systems \cite{Bender1998_PRL_80_5243_RealSpectra,Bender2007_RPP_70_947_MakingSense} in parametric regions where density loss and gain are balanced \cite{Weigert2004_CJP_54_1139_PhysicalInterpretation}, and has also been intensively investigated in wave scattering \cite{Cannata2007_AP_322_397_Scattering-symmetric,Chong2011_PRL_106_093902_Mathcalpmathcalt-symBreaking,Schomerus2013_PTRSL_371_20120194_ScatteringTheory,Ambichl2013_PRX_3_041030_BreakingPt,Garmon2015_PRA_92_022125_BoundStates}. General non-Hermitian Hamiltonians are of particular interest in discrete models, where the coupling between sites constitutes an additional degree of freedom for design and control \cite{Longhi2016_PRA_93_022102_Non-HermitianTight-binding,Makris2016_IJSTQ_22_42_ConstantIntensity}. A reliable platform of applicability is provided by photonic waveguide arrays, which are well described by an effective discrete Schr\"odinger equation with tight-binding Hamiltonian \cite{Eisenberg2000_PRL_85_1863_DiffractionManagement,Schomerus2013_PTRSL_371_20120194_ScatteringTheory}. In discrete models, already the local current becomes a two-point quantity, naturally defined to flow on the `link' between two lattice sites \cite{Baranger1991_PRB_44_10637_ClassicalQuantum,Boykin2010_EJP_31_1077_CurrentDensity}. The question is then raised of how to formulate discrete conservation laws for nonlocal quantities entailing different links. At the same time, discrete arrays are ideal for implementing global or local spatial symmetries, by adjusting the onsite Hamiltonian elements or the inter-site hoppings. As an example, in a certain class of discrete structures with `hidden' symmetries in the state space \cite{Teimourpour2014_PRA_90_053817_LightTransport}, conserved quantities from global operators commuting with the Hamiltonian can be identified. Partial $\P\mathcal{{T}}$ symmetry along a given coordinates has also been implemented for coupled oscillator systems \cite{Beygi2015_PRA_91_062101_CoupledOscillator}, in the form of dimer arrays featuring synchronous Bloch-Zener oscillations \cite{Bender2015_PRA_92_041803_Wave-packetSelf-imaging}, or in synthetic lattices with solitonic excitations \cite{Wimmer2015_NC_6_7782_ObservationOptical}. In view of the above, connecting discrete nonlocal link currents to general symmetry transformations restricted to lattice subdomains would constitute a framework to establish a relation between field state properties and LS. In the present work, we combine the concept of local symmetry transformations with that of nonlocal current continuity for discrete---generally non-Hermitian---Schr\"odinger models. We thereby identify the breaking of LSs as sources for the NLCs flowing along transformation related links. In this way, the proposed framework unifies the treatment of Hermitian and non-Hermitian setups in the context of LS and its breaking, for arbitrary imposed boundary conditions. Further, the NLCs are given in operator form, making the extension to multiple links per site straightforward. With photonic waveguide arrays in mind, we apply the framework to 1D tight-binding Hermitian and non-Hermitian lattice systems with local $\S$ or $\S\mathcal{{T}}$ symmetry, respectively, with $\S = \P$ (inversion) or $\mathcal{{K}}$ (finite translation). The evolution of the associated LS-adapted nonlocal charge is then given in terms of the NLCs at LS domain boundaries. Together with a defined dual NLC, mapping relations are derived which relate the amplitudes of general states at symmetry-transformed sites and connect the NLCs with the local current. It is then demonstrated how domainwise constant NLCs of stationary states reveal different types of LS encoded in arbitrarily irregular eigenstates, generalized also to periodically driven arrays. Finally, the density profile of perfectly transmitting scattering states is shown to be characterized by NLCs in terms of its LS. The paper is organized as follows. In \cref{sec:transform} we introduce the concept of LSs and the corresponding local site permutations. Section \ref{sec:discrete_continuity} is devoted to the discrete nonlocal current-density continuity and its relation to LSs. In \cref{sec:stat_invariants_mappings} we address the properties of NLCs in stationary states, derive symmetry-induced amplitude mapping relations and the connection to the local current, and generalize the NLC to driven arrays. In \cref{sec:bound_eigenmodes} we discuss the cases of complete, overlapping, and gapped LS, and provide examples of invariant NLCs in non-Hermitian and driven finite arrays. In \cref{sec:scattering} we consider the NLCs in scattering states, derive their relation to perfect transmission and illustrate their invariance in locally symmetric non-Hermitian scatterers. Section \ref{sec:conclusions} concludes with future perspectives. \begin{figure}[t!] \centering \includegraphics[width=.83\columnwidth]{./setup_hamiltonian.pdf} \caption{Sketch of a 1D finite lattice in the form of a photonic \hyphenation{wave-gui-de} waveguide array which is \textbf{(a)} locally inversion ($\P$) symmetric about a center $\alpha$ or \textbf{(b)} translation ($\mathcal{{K}}$) symmetric with period $L$, for sites $n$ within a domain $\mathbb{D}$ (solid blue line), together with the corresponding close-coupling Hamiltonian matrix $H$ and local transformation (site permutation) matrix $P_\mathbb{D}$ or $K_\mathbb{D}$, respectively. $P_\mathbb{D}$ maps $\mathbb{D}$ to itself, while $K_\mathbb{D}$ performs a cyclic shift permutation by $L$ sites on $\mathbb{U} = \mathbb{D} \cup \mathbb{L}$, where $\mathbb{L}$ (solid purple line) is the rightmost period in $\mathbb{U}$ (dotted blue line). } \label{fig:setup} \end{figure} \section{Local symmetry operations} \label{sec:transform} To define the concept and explicit form of a LS operation in a 1D discrete model, we start by considering a single-particle, time-independent Hamiltonian $\hat{H}$ represented on $N$ localized site excitations $\ket{n}$, $n = 1,2,\dots,N $, with onsite potential elements $v_n = H_{nn} = \braket{n|\hat{H}|n}$ and hopping elements $h_{n,n'} = H_{nn'} = \braket{n|\hat{H}|n'}$ from site $n'$ to $n \neq n'$. The temporal evolution of a quantum state \begin{equation} \label{eq:psi} \ket{\psi} = \sum_{n=1}^N \psi_n \ket{n} \end{equation} is then governed by the Schr\"odinger equation (SE) \begin{equation} \label{eq:Schr} i\partial_t \ket{\psi} = \hat{H} \ket{\psi} \end{equation} where we set $\hbar = 1$. Such a discrete model is widely used to describe coherent electron transport in 1D lattice potentials like the ones induced in quantum dot arrays, but also as a finite difference approximation to the continuous SE by choosing appropriate (typically equal) hopping values. In particular, \cref{eq:Schr} effectively also describes light propagation in photonic waveguide arrays within the paraxial approximation \cite{Eisenberg2000_PRL_85_1863_DiffractionManagement,Schomerus2013_PTRSL_371_20120194_ScatteringTheory} for small lateral wave vector components. 1D versions of such a photonic array are schematically depicted in \cref{fig:setup}. Time $t$ is here represented by the longitudinal spatial coordinate $z$ along the waveguides, and energy $E$ is accordingly represented by the light propagation constant along $z$. Onsite potentials $v_n$ correspond to the refractive indices of waveguides, while the hoppings $h_{n,n'}$ are proportional to the overlap of the light field localized in waveguides $n,n'$ and thereby mapped to their distance. Remarkable agreement with experimental results is achieved already in the tight-binding approximation \cite{Szameit2007_OE_15_1579_ControlDirectional} with $h_{n,n'} = 0$ for $|n-n'|>1$, which we will focus on in the following. Given the above framework for a discrete 1D Schr\"odinger model, we consider a bijective mapping $\S_\mathbb{D}: \mathbb{D} \rightarrow \bar{\mathbb{D}}$ given by \begin{equation} \label{eq:site_mapping} \S_\mathbb{D}: n \to \bar{n} = \S_\mathbb{D}(n) = \begin{cases} \P_\mathbb{D}(n) &= 2\alpha - n \\ \mathcal{{K}}_\mathbb{D}(n) &= L + n \end{cases}, \end{equation} which performs a local inversion ($\P$) through a center $\alpha$ or translation ($\mathcal{{K}}$) by a length $L$ of sites $n \in \mathbb{D}$ to sites $\bar{n} \in \bar{\mathbb{D}}$, where the domain $\mathbb{D} \subseteq \mathbb{N}$ is generally a subset of the total set $\mathbb{N}$ of all sites. Suppose now that the discrete system described by the Hamiltonian elements $H_{mn}$ remains invariant under this site mapping, that is, \begin{equation} \label{eq:Hmn_local_Ssym} H_{\bar{m}\bar{n}} = H_{mn} ~~~\forall~ m,n \in \mathbb{D}, \end{equation} so that $\S_\mathbb{D}$ is a symmetry transformation of the system. We then say that the system possesses a \textit{local} symmetry in the union $\mathbb{U} \equiv \mathbb{D} \cup \bar{\mathbb{D}}$. A LS is thus contrasted with a \textit{global} symmetry of the system for which $\mathbb{D} = \mathbb{N}$. Locally $\P$- and $\mathcal{{K}}$-symmetric photonic arrays are depicted in \cref{fig:setup}\,(a) and (b), respectively \cite{note}. $\P_\mathbb{D}$ maps a domain $\mathbb{D}$ to itself, so that $\mathbb{D} = \bar{\mathbb{D}} = \mathbb{U}$, while $\mathcal{{K}}_\mathbb{D}$ shifts $\mathbb{D}$ by $L$ sites, so that $\mathbb{U} = \mathbb{D} \cup \mathbb{L}$ where $\mathbb{L}$ are the rightmost $L$ sites in $\mathbb{U}$ (for $L \leqslant D$); see \cref{fig:setup}. With the (symmetry) mapping $\S_\mathbb{D}$ transforming the site indices $n$, we correspondingly define an operator \begin{equation} \label{eq:Sigma_operator} \hat{\varSigma}_\mathbb{D} = \sum_{n=1}^N \hat{\sigma}_{n;\mathbb{D}}, ~~~ \hat{\sigma}_{n;\mathbb{D}} = \ket{n}\bra{\S_\mathbb{D}(n)} = \ket{n}\bra{\bar{n}} \end{equation} which replaces the wave amplitude $\psi_n$ with $\psi_{\bar{n}}$ for the basis ket $\ket{n}$ when acting on a state $\ket{\psi}$ (cf. \cref{eq:psi}), \begin{equation} \label{eq:Sigma_psi} \hat{\varSigma}_\mathbb{D} \ket{\psi} = \sum_{n=1}^N \psi_{\bar{n}} \ket{n} \equiv \ket{\bar{\psi}}, \end{equation} since the basis $\{\ket{n}\}$ is assumed orthonormal ($\braket{m|n} = \delta_{mn}$), so that we can symbolically write the action as an amplitude mapping $\hat{\varSigma}_\mathbb{D}: \psi_n \rightarrow \psi_{\bar{n}}$, with $\hat{\varSigma}_\mathbb{D} = \hat{P}_\mathbb{D}, \hat{K}_\mathbb{D}$, in analogy with the local \textit{site} mapping in \cref{eq:site_mapping} for $\S_\mathbb{D} = \P_\mathbb{D},\mathcal{{K}}_\mathbb{D}$. The associated matrix ${{\varSigma}}_\mathbb{D}$ then has elements $[{{\varSigma}}_\mathbb{D}]_{mn} = \braket{m|\hat{\varSigma}|n} = \delta_{\bar{m}n}$, as depicted in \cref{fig:setup}: $P_\mathbb{D}$ performs a (partial) mirror permutation of the sites within $\mathbb{D}$, while $K_\mathbb{D}$ shifts sites within $\mathbb{D}$ by $L$---we choose $[{{\varSigma}}_\mathbb{D}]_{mn} = \delta_{\bar{m}-D,n}$ for $m \in \mathbb{L}$ so that the last $L$ sites in $\mathbb{U}$ are mapped to the first $L$ ones. The permutation matrix thus acts on the whole array but permutes only sites amplitudes within the domain $\mathbb{U}$ where the LS of the system resides while leaving sites outside $\mathbb{U}$ unchanged. Note that multiple symmetry domains $\mathbb{D}_d$ ($d=1,2,\dots$) may in general be present, with corresponding centers $\alpha_d$ or periods $L_d$. The total symmetry domain is then the (generally disconnected) set $\mathbb{D} = \bigcup_d \mathbb{D}_d$, with the mapping for each separate $\mathbb{D}_d$ entering \cref{eq:site_mapping}. Different types of LS will be addressed in \cref{sec:symmetry_types}. Symmetry of a system under a transformation is usually associated with the commutation of the corresponding symmetry operator with the Hamiltonian. In the case of global symmetry, that is, $\mathbb{D} = \mathbb{N}$ in the present setting (with $N = \infty$ implied for translation symmetry), the Hamiltonian indeed commutes with the matrix ${{\varSigma}}_\mathbb{D}$ and the energy eigenstates are also eigenstates of the symmetry operation with the corresponding eigenvalues: Under inversion or translation the wave amplitudes are mapped to $\psi_{\bar{n}} = \lambda \psi_n$ with the parity $\lambda = \pm 1$ or the Bloch phase $\lambda = e^{ikL}$ ($k$ being the quasimomentum) as prefactors, respectively. In the case of a LS, although the \textit{system} remains invariant under the site permutation, the associated operator generally does not commute with the Hamiltonian, \begin{equation} \label{eq:noncommutation} [\hat{\varSigma}_\mathbb{D},\hat{H}] \neq 0. \end{equation} The reason is the change in coupling of the domain $\mathbb{D}$ to its surroundings: The end sites of $\mathbb{D}$ in a 1D array are not coupled to the same sites after the local permutation, and so the transformed Hamiltonian $\bar{H} \equiv \varSigma^{\dagger}H\varSigma$ (recall that $\varSigma^{-1} = \varSigma^{\dagger}$ for any permutation matrix) generally contains altered nonzero hopping elements $\bar{H}_{mn} \neq H_{mn}$ for $m \in \mathbb{D}$ and $n \notin \mathbb{D}$; cf. \cref{eq:Hmn_local_Ssym}. As outlined in \cref{app:time_reversal}, for a non-Hermitian $\hat{H}$ it becomes relevant to combine the spatial transformation with time reversal $\mathcal{{T}}$, and the corresponding local $\S_\mathbb{D}\mathcal{{T}}$ symmetry is expressed by $H_{\bar{m}\bar{n}} = H_{mn}^*$ for $m,n \in \mathbb{D}$, while generally $[\hat{\varSigma}_\mathbb{D}\hat{T},\hat{H}] \neq 0$. We here raise question if the presence of symmetries in the system are in some way imprinted on the structure of its states, even if those symmetries are not global but of finite extent. The aim is thus to find a characterization of the field amplitude configuration in terms of a quantity which follows the underlying LSs of the system. To do so, in the following section we turn to the notion of nonlocal current-density continuity in its discrete form and adapt it to the LS framework. \section{Discrete nonlocal current-density continuity} \label{sec:discrete_continuity} With respect to the spatial transformation $\S_\mathbb{D}$, we generalize the local discrete current-density continuity, outlined in \cref{app:continuity_local}, to a nonlocal form by replacing the local density operator $\hat{\rho}_n$ with $\hat{\sigma}_n = \ket{n}\bra{\bar{n}}$ from \cref{eq:Sigma_operator} (we drop the subscript $\mathbb{D}$ from now on). The latter is now identified with a nonlocal density operator corresponding to the off-diagonal part of the site-represented density operator $\hat{\rho} = \ket{\psi}\bra{\psi}$ associated with the transformation $\S$, so that \begin{equation} \label{eq:nonlocal_density} \sigma_n \equiv \braket{\psi|\hat{\sigma}_n|\psi} = \braket{\bar{n}|\hat{\rho}|n} = \psi_n^* \psi_{\bar{n}} \end{equation} constitutes a symmetry-adapted nonlocal density in state $\psi$ Its sum over $n$ yields the total `nonlocal charge' \begin{equation} \label{eq:nonlocal_charge} \varSigma_\psi = \braket{\psi | \hat{\varSigma} | \psi} = \sum_n \sigma_n, \end{equation} also known as `quasipower' \cite{Sarma2014_PRE_89_052918_ContinuousDiscrete} in globally $\P\mathcal{{T}}$-symmetric photonic systems, in analogy to the usual charge (i.\,e. quantum probability), or power in photonics, $I_\psi = \braket{\psi | \hat{I} | \psi} = \sum_n \rho_n$ ($\hat{I}$ being the identity operator). Using the SE, the temporal evolution of $\sigma_n$ is given by \begin{equation} \label{eq:continuity_nonlocal} \partial_t \sigma_n = q_n - i (v_{\bar{n}} - v_n^*) \sigma_n = q_n + \beta_n \sigma_n, \end{equation} with $\beta_n \equiv (v_{\bar{n}} - v_n^*)/i$ characterizing the onsite asymmetry, and where $q_n = q_n^+ + q_n^-$ assigned to site $n$ is the sum of the \textit{nonlocal} currents defined by \begin{align} \label{eq:q_n+-} iq_n^\pm &\equiv iq_{n,\S}^\pm \equiv iq_{n,n \pm 1; \S} =\nonumber \\ &\psi_n^* h_{\S(n),\S(n \pm 1)} \psi_{\S(n \pm 1)} - \psi_{n \pm 1}^* h_{n,n \pm 1}^* \psi_{\S(n)} \end{align} for a local transformation $\S = \S_\mathbb{D}$ given in \cref{eq:site_mapping}, with $\S(n \pm 1) = \bar{n} \mp 1$ and $\bar{n} \pm 1$ for $\S = \P$ (inversion) and $\mathcal{{K}}$ (translation), respectively. Considering Hermitian hoppings, $h_{m,n} = h_{n,m}^*$, these four-site currents $q_{n,\P}^\pm$ and $q_{n,\mathcal{{K}}}^\pm$ can be written as the expectation values \begin{align} \label{eq:q_n_+-_expval} &{q}_{n,\S}^\pm = \braket{\psi|\hat{q}_{n,\S}^\pm|\psi} ~~~~ (\S = \P,\mathcal{{K}}) \end{align} of the corresponding nonlocal current operators \begin{subequations} \label{eq:q_n_+-_operator} \begin{align} \hat{q}_{n,\P}^\pm &= \frac{1}{i} (\hat{\sigma}_{n,\P}\hat{H}^\pm - \hat{H}^\pm\hat{\sigma}_{n,\P}), \label{eq:q_n_+-_P_operator} \\ \hat{q}_{n,\mathcal{{K}}}^\pm &= \frac{1}{i} (\hat{\sigma}_{n,\mathcal{{K}}}\hat{H}^\pm - \hat{H}^\mp\hat{\sigma}_{n,\mathcal{{K}}}), \label{eq:q_n_+-_K_operator} \end{align} \end{subequations} in analogy with \cref{eq:j_n_+-_operator}, with the transformation type $\P$ or $\mathcal{{K}}$ entering $\hat{\sigma}$ here explicitly indicated, $\hat{H}^\pm$ being the upper/lower hopping operator (see \cref{app:continuity_local}). Outside the domain $\mathbb{U}$ of the mapping where $\bar{n} = n$, the translation current reproduces the usual current, $\hat{q}_{n=\bar{n},\mathcal{{K}}}^\pm = \hat{j}_n^\pm$, and so \cref{eq:continuity_nonlocal} reproduces the local current-density continuity in \cref{eq:continuity_local}. For both $\P$ and $\mathcal{{K}}$, the total current operator is given by \begin{equation} \hat{q}_n = \hat{q}_n^+ + \hat{q}_n^- = \frac{1}{i} [\hat{\sigma}_n,\hat{H} - \hat{V}], \end{equation} where $\hat{V} = \hat{H} - \hat{H}^+ - \hat{H}^-$ is the diagonal part of the Hamiltonian. Note here that, like the usual currents $j_n^\pm$, the $q_n^\pm$ can be seen as link currents, though not flowing along one link but along the two ones corresponding to the hoppings $h_{\S(n),\S(n \pm 1)}$ and $h_{n,n \pm 1}^*$ entering \cref{eq:q_n+-}. This nonlocal `flow' is illustrated in \cref{fig:nonlocal_flow}. Using the transformation matrices $\varSigma_\mathbb{D} = P_\mathbb{D}, K_\mathbb{D}$ (depicted in the example of \cref{fig:setup}), the $q_n^\pm = \braket{\psi|\hat{q}_n^\pm|\psi}$ in \cref{eq:q_n+-} for the whole setup $\mathbb{N}$ can be written as the components of an $N$-entry column vector $\bs{q}^\pm = [q_1^\pm ~q_2^\pm ~ \cdots ~ q_N^\pm]^\top$ given by (cf. \cref{eq:q_n_+-_P_operator,eq:q_n_+-_K_operator}) \begin{subequations} \label{eq:q_n_+-_vector} \begin{align} i\bs{q}^{\pm}_\P &= \text{d}[\bs{\psi}^\dagger] P_\mathbb{D} H^\pm \bs{\psi} - \text{d}[\bs{\psi}^\dagger H^\pm] P_\mathbb{D} \bs{\psi}, \label{eq:q_n_+-_P_vector} \\ i\bs{q}^{\pm}_\mathcal{{K}} &= \text{d}[\bs{\psi}^\dagger] K_\mathbb{D} H^\pm \bs{\psi} - \text{d}[\bs{\psi}^\dagger H^\mp] K_\mathbb{D} \bs{\psi} \label{eq:q_n_+-_K_vector} \end{align} \end{subequations} for local $\P,\mathcal{{K}}$-transformation, respectively, where $\bs{\psi} = [\psi_1 ~\psi_2 ~ \cdots ~ \psi_N]^\top$ and $\text{d}[\bs{a}]$ denotes the $N \times N$ diagonal matrix with the components of (row or column) vector $\bs{a}$ along its diagonal. The above expression for the $q_n^\pm$ becomes convenient when evaluating them for a given Hamiltonian and (numerically computed) state amplitudes $\psi_n$, as will be done in the following sections. \begin{figure}[t!] \centering \includegraphics[width=.9\columnwidth]{./nonlocal_flow.pdf} \caption{Nonlocal current flow on pairs of $\S$-related links for \textbf{(a)} inversion $\S = \P$ and \textbf{(b)} translation $\S = \mathcal{{K}}$ transform. Solid (dotted) lines indicate the term $\psi_n^* h_{\S(n),\S(n \pm 1)} \psi_{\S(n \pm 1)}$ ($\psi_{n \pm 1}^* h_{n,n \pm 1}^* \psi_{\S(n)}$) entering each upper ($+$) and lower ($-$) NLC $q_{n,\S}^\pm$ ($\S = \P,\mathcal{{K}}$) on the links into a site pair $n,\bar{n}$; see \cref{eq:q_n+-}. Inset: The translation NLC reproduces the local link current $j_n^\pm$ for $\bar{n} = n$. } \label{fig:nonlocal_flow} \end{figure} For a given site transformation $\S$, the form of the nonlocal continuity equation (\ref{eq:continuity_nonlocal}) is similar to \cref{eq:continuity_local} with the loss/gain function $\gamma_n$ replaced by $\beta_n$ which characterizes the sources for the nonlocal density $\sigma_n$. For a system with $\S$-symmetric onsite potential, $v_{\bar{n}} = v_n$ or $[\hat{V},\hat{\varSigma}]=0$, we have $\beta_n = \gamma_n$ and the sources (sinks) of $\sigma_n$ are represented by the gain (loss) of $\rho_n$ at individual sites $n$ like in \cref{eq:continuity_local}, and $\hat{q}_n = [\hat{\sigma}_n,\hat{H}]/i$ like in \cref{eq:j_n_tot_operator}. Those sources and sinks vanish if the potential is real, but if the $v_n$ are not $\S$-symmetric, then in \cref{eq:continuity_nonlocal} there is a contribution to $\beta_n$ from the potential differences between $\S$-related sites. In other words, locally \textit{broken spatial potential symmetries act as sources} for the associated nonlocal density. If a system has locally $\S\mathcal{{T}}$-symmetric non-Hermitian onsite potential, $v_{\bar{n}} = v_n^*$ or $[\hat{V},\hat{\varSigma}\hat{T}]=0$, then $\beta_n = 0$ within the symmetry domain $\mathbb{D}$ and \cref{eq:continuity_nonlocal} reduces to $\partial_t \sigma_n = q_n$. This means that the net NLC $q_n$ vanishes within $\mathbb{D}$ for stationary states, in contrast to $j_n$ which may vary spatially for $\gamma_n \neq 0$. As shown in \cref{app:bitemporal_nlc}, an alternative nonlocal continuity equation can finally be established for a \textit{bitemporal} nonlocal density and associated current by projecting $\hat{\sigma}\ket{\psi}$ onto the time-reversed state $\mathcal{{T}}\ket{\psi} = \ket{\psi^{\mathsmaller\T}}$ instead of $\ket{\psi}$ in \cref{eq:nonlocal_density}. The relation of \textit{stationary} NLCs to LSs will be elaborated on in the next section. To see first the impact of the system symmetry on a general (nonstationary) state $\ket{\psi}$ via the NLCs, let us consider the evolution of the nonlocal charge (see \cref{eq:nonlocal_charge}) within a subdomain $\mathbb{D} \subseteq \mathbb{N}$, denoted $\varSigma_\psi^\mathbb{D}$, which obeys (cf. \cref{eq:continuity_nonlocal}) \begin{equation} \label{eq:charge_evolution} \partial_t \varSigma_\psi^\mathbb{D} = Q_\mathbb{D} + \sum_{n \in \mathbb{D}} \beta_n \sigma_n, \end{equation} where $Q_\mathbb{D} = \sum_{n \in \mathbb{D}} q_n$ is the total net NLC within $\mathbb{D}$. Now, if the \textit{hoppings} of the system are $\S_\mathbb{D}\mathcal{{T}}$-symmetric, $h_{\S(n),\S(n \pm 1)} = h_{n,n \pm 1}^*$, then from the NLC expression (\ref{eq:q_n+-}) we get, in general, \begin{equation} \label{eq:q_n-1_+_equal_-q_n_-} q_{n \mp 1,\S}^\pm = - \eta_{n \mp 1,n}^* q_{n,\S}^\mp ~~~~ (\S = \P,\mathcal{{K}}) \end{equation} where we define the \textit{hopping ratio} \begin{equation} \label{eq:eta_mn} \eta_{m,n} = \frac{h_{m,n}}{h_{n,m}} \end{equation} between the hopping elements in opposite directions on the link $(m,n)$, here with $m = n \pm 1$. For \textit{equidirectional} hoppings ($\eta_{m,n} = 1$) within $\mathbb{D}$, $Q_\mathbb{D}$ thus equals the sum $q_{\partial\mathbb{D}}$ of currents $q_m^\pm$ on links above/below sites $m$ of the upper/lower boundaries $\partial\mathbb{D}^\pm$ of $\mathbb{D}$, \begin{equation} \label{eq:Q_D} Q_\mathbb{D} = q_{\partial\mathbb{D}} \equiv \sum_{m \in \partial\mathbb{D}^\pm} q_m^\pm, \end{equation} since the upper and lower NLCs cancel out on each link within $\mathbb{D}$. Hence, if also the potential is $\S_\mathbb{D}\mathcal{{T}}$-symmetric ($\beta_{n\in\mathbb{D}} = 0$), then the temporal change $\partial_t \varSigma_\psi^\mathbb{D}$ in \cref{eq:charge_evolution} is affected only by those boundary currents $q_{\partial\mathbb{D}}$. Recall that $\mathbb{D}$ may be disconnected, as a union of distinct subdomains $\mathbb{D}_d$ as mentioned above, entailing equally many $q_m^\pm$ pairs at its boundary points. In the special case of \textit{global} $\P\mathcal{{T}}$-symmetry in $\mathbb{D} = \mathbb{N}$, we have $\beta_n = 0$ but also $q_{\partial\mathbb{D}} = 0$ since the boundary currents $q_1^-,q_N^+$ vanish for the isolated array (where $h_{1,0} = h_{N+1,N} = 0$ by definition). Thus $Q_{\mathbb{D=N}} = 0$ in \cref{eq:Q_D} and thereby $\partial_t \varSigma_\psi^\mathbb{N} = 0$, reproducing the well-known constancy of the nonlocal charge (quasipower) in systems with $\P\mathcal{{T}}$-symmetric potential \cite{Bagchi2001_MPLA_16_2047_GeneralizedContinuity,Sarma2014_PRE_89_052918_ContinuousDiscrete}. \section{Stationary state invariants and amplitude symmetry mapping} \label{sec:stat_invariants_mappings} Having established the concept of nonlocal discrete continuity in the above operator form and adapted it to symmetry mappings, we will now use the NLCs to show how LSs of the lattice system are encoded into its stationary states. For an eigenstate \begin{equation} \label{eq:mode} \ket{\phi} = \sum_n a_n e^{-iE t} \ket{n} = e^{-iE t} \ket{a} \end{equation} of the Hamiltonian, $\hat{H} \ket{\phi} = E\ket{\phi}$, with generally complex eigenvalue $E = E^\circ + i\varGamma/2$ ($E^\circ,\varGamma \in \mathbb{R}$) if the $\hat{H}$ is (effectively) non-Hermitian \cite{Moiseyev2011____Non-hermitianQuantum}, \cref{eq:continuity_nonlocal} yields \begin{equation} \label{eq:continuity_nonlocal_eigenstate} q_n + (\beta_n - \varGamma) \sigma_n = 0. \end{equation} Thus, at sites with $\S\mathcal{{T}}$-symmetric onsite elements ($\beta_n = 0$), a stationary state $\ket{\phi}$ with $\varGamma = 0$ has vanishing sum of NLC amplitudes, \begin{equation} \label{eq:q_n_vanishing} q_{n,\S} = q_{n,\S}^+ + q_{n,\S}^- = 0 ~~~~ (\S = \P,\mathcal{{K}}) \end{equation} following a nonlocal form of a quantum Kirchhoff law. For $\S\mathcal{{T}}$-symmetric hoppings $h_{n,n \pm 1}$, the above equation can be combined with \cref{eq:q_n-1_+_equal_-q_n_-} to obtain \begin{equation} \label{eq:q_n_+-_transfer} q_{n,\S}^\pm = \eta_{n,n \mp 1}^* \, q_{n \mp 1,\S}^\pm ~~~~ (\S = \P,\mathcal{{K}}) \end{equation} for consecutive nonlocal link currents. Thus, in a \textit{connected} domain $\mathbb{D}$ where the system has $\S\mathcal{{T}}$-symmetric Hamiltonian elements , obeying \cref{eq:Hmn_local_STsym}, the NLC $q_{n,\S}^+$ ($q_{n,\S}^-$) accumulates the hopping ratios as a prefactor when traversing the domain forwards (backwards). For complex \textit{Hermitian} hoppings, $\eta_{n,n \mp 1} = e^{2i\varphi_{n,n \mp 1}}$ and the currents accumulate a Peierls-like hopping phase factor along $\mathbb{D}$. If the hoppings are $\S\mathcal{{T}}$-symmetric and equidirectional, $h_{m,n} = h_{n,m}$ (generally complex, as may be the case in photonic arrays \cite{Golshani2014_PRL_113_123903_ImpactLoss} depending on the host medium), the $q_{n,\S}^\pm$ are explicitly given by \begin{subequations} \begin{align} \label{eq:q_n_+-_stat_state} i q_{n,\P}^\pm &= h_{n,n\pm 1} (a_{n}^*a_{\bar{n} \mp 1} - a_{n\pm 1}^*a_{\bar{n}}), \\ i q_{n,\mathcal{{K}}}^\pm &= h_{n,n\pm 1} (a_{n}^*a_{\bar{n} \pm 1} - a_{n\pm 1}^*a_{\bar{n}}), \end{align} \end{subequations} and are \textit{translationally invariant} (spatially constant) in $\mathbb{D}$ for a stationary state with real $E$. To establish a connection between $\S$-transformations and the state structure via NLCs (see \cref{sec:current_mapping} below), it is convenient to introduce a \textit{dual} NLC $\mathring{q}_{n,\S}^\pm$, as described in \cref{app:dual_nlc}. For a stationary state, it has the same \textit{spatial} part as the bitemporal NLC in \cref{eq:qTrev_n+-} with $\mathring{q}_{n}^\pm = q_{n}^{{\mathsmaller\T}\pm} \, e^{-2iEt}$. Both $q_{n}^{{\mathsmaller\T}\pm}$ and $\mathring{q}_{n}^\pm$ are invariant in a locally $\S$-symmetric domain for an energy eigenstate, as shown in \cref{app:bitemporal_nlc,app:dual_nlc}, respectively. We focus on the equal-time NLCs $q_{n}^\pm$ and $\mathring{q}_{n}^\pm$ in the remainder of the paper. \subsection{Nonlocal invariants in $\S(\mathcal{{T}})$-symmetric domains and corresponding stationary states} \label{sec:stationary_invariants} Let us now consider the NLCs $q_{n}^\pm$ and $\mathring{q}_{n}^\pm$ in the concrete case of equidirectional hoppings $h_{n,n \pm 1} = h_{n \pm 1,n}$, and distinguish some basic properties as follows:\\ \noindent\textbf{\small (i)} In a stationary state $\ket{\phi}$ with real energy $E$, local $\P_{\mathbb{D}}\mathcal{{T}}$-symmetry ($v_{\bar{n}= 2\alpha - n} = v^*_n$, $h_{\bar{n},\bar{n}\pm1} = h_{n,n\mp1}^*$) or local $\mathcal{{K}}_{\mathbb{D}}\mathcal{{T}}$-symmetry ($v_{\bar{n}= n+L} = v^*_n$, $h_{\bar{n},\bar{n}\pm1} = h_{n,n\pm1}^*$) yields spatially constant corresponding currents \begin{equation} \label{eq:q_constant_D} q_{n,\S}^\pm = q_{\mathbb{D},\S}^\pm ~~~~ (\S = \P,\mathcal{{K}}) \end{equation} for all $n \in \mathbb{D}$ with $h_{n,n \pm 1} = h_{n \pm 1,n}$. In particular for $\P_{\mathbb{D}}\mathcal{{T}}$ symmetry it can be shown that $q_{\mathbb{D},\P}^\pm$ vanishes for a state vector $\bs{\phi}$ whose part $\bs{\phi}_\mathbb{D} = \{ \phi_{n \in \mathbb{D}} \}$ is a local $\P\mathcal{{T}}$ `eigenstate', \textit{and vice versa}, that is, \begin{equation} \label{eq:q_P_zero} \phi_{\bar{n}}^* = \lambda_{\mathbb{D},\P\mathcal{{T}}} \, \phi_n, ~n \in \mathbb{D} ~~ \Longleftrightarrow ~~ q_{\mathbb{D},\P}^\pm = 0, \end{equation} with unimodular `eigenvalue', $|\lambda_{\mathbb{D},\P\mathcal{{T}}}| = 1$, which in turn corresponds to locally symmetric density $\rho_n$ within $\mathbb{D}$. In fact, this applies for arbitrary $\P_{\mathbb{D}}\mathcal{{T}}$-symmetric hoppings, since no hopping ratio is accumulated in \cref{eq:q_n_+-_transfer} for zero current. For the (local) $\P\mathcal{{T}}$ eigenstate above it further holds that \begin{equation} \label{eq:qtilde_P_j_PTeig} \lambda_{\mathbb{D},\P\mathcal{{T}}} \, \mathring{q}_{n,\P}^\pm = - j_n^\pm = j_{\bar{n}}^\mp, \end{equation} connecting the dual nonlocal current with the local one.\\ \noindent\textbf{\small (ii)} For local $\P_{\mathbb{D}}$-symmetry ($v_{\bar{n}= 2\alpha - n} = v_n$, $h_{\bar{n},\bar{n}\pm1} = h_{n,n\mp1}$) or local $\mathcal{{K}}_{\mathbb{D}}$-symmetry ($v_{\bar{n}= L + n} = v_n$, $h_{\bar{n},\bar{n}\pm1} = h_{n,n\pm1}$), the dual (time-dependent) quantities $\mathring{q}_{n,\S}^\pm$ are spatially constant in $\mathbb{D}$, \begin{equation} \label{eq:qtilde_constant_D} \mathring{q}_{n,\S}^\pm = \mathring{q}_{\mathbb{D},\S}^\pm ~~~~ (\S = \P,\mathcal{{K}}). \end{equation} We underline that those invariants exist also for non-Hermitian $\S_\mathbb{D}$-symmetric potentials, e.\,g. with (locally) symmetric loss profile or `unbalanced' loss/gain elements. In analogy to \cref{eq:q_P_zero}, $\mathring{q}_{\mathbb{D},\P}^\pm$ vanishes iff the part $\bs{\phi}_\mathbb{D}$ is a local $\P$ `eigenstate', \begin{equation} \label{eq:qtilde_P_zero} \phi_{\bar{n}} = \lambda_{\mathbb{D},\P} \, \phi_n, ~n \in \mathbb{D} ~~ \Longleftrightarrow ~~ \mathring{q}_{\mathbb{D},\P}^\pm = 0, \end{equation} now with eigenvalue $\lambda_{\mathbb{D},\P} = \pm 1$, and then also \begin{equation} \label{eq:q_P_j_Peig} \lambda_{\mathbb{D},\P} \, q_{n,\P}^\pm = j_n^\pm = j_{\bar{n}}^\mp \end{equation} holds in $\mathbb{D}$. \\ \noindent\textbf{\small (iii)} For a general state $\ket{\psi}$, $q_{n}^\pm$ and $\mathring{q}_{n}^\pm$ are $\P_\mathbb{D}\mathcal{{T}}$-symmetric and $\P_\mathbb{D}$-antisymmetric by construction, respectively, \begin{equation} \label{eq:q_P_symmetry_by_construction} q_{n,\P}^{\pm} = q_{\bar{n},\P}^{\mp *} ~~~ \text{and} ~~~ \mathring{q}_{n,\P}^{\pm} = -\mathring{q}_{\bar{n},\P}^{\mp}. \end{equation} For equidirectional $\P_\mathbb{D}\mathcal{{T}}$- or $\P_\mathbb{D}$-symmetric hoppings we further have that \begin{equation} \label{eq:q_P_symmetry} q_{\bar{n} \mp 1,\P}^\pm = -q_{n,\P}^{\pm *} ~~~ \text{or} ~~~ \mathring{q}_{\bar{n} \mp 1,\P}^\pm = \mathring{q}_{n,\P}^{\pm} \end{equation} within $\mathbb{D}$, respectively, for \textit{arbitrary} onsite elements $v_n$. Thus, the $|q_{n,\P}^\pm|$ or $\mathring{q}_{n,\P}^\pm$ are then locally symmetric about the center $\alpha$ (that is, about the shifted center $\alpha \mp \frac{1}{2}$ if assigned to sites) for any complex potential profile, regardless of its symmetry. If also the potential is $\P_\mathbb{D}\mathcal{{T}}$-symmetric, then \cref{eq:q_constant_D,eq:q_P_symmetry} imply that stationary NLCs are imaginary in $\mathbb{D}$ for real $E$: $q_{n,\P}^\pm \in i\mathbb{R}$.\\ \noindent\textbf{\small (iv)} For an eigenstate (Bloch state) $\ket{\phi^k}$ of the finite translation operator $\hat{K}$ with wavefunction $\phi_n^k = e^{ikn} \chi^k_n$, where $\chi^k_n = \chi^k_{n+L}$, the associated NLC equals the local current times the Bloch factor while its dual vanishes, \begin{equation} \label{eq:q_K_Bloch} q_{n,\mathcal{{K}}}^\pm = j_{n}^\pm e^{ikL}, ~~~~ \mathring{q}_{n,\mathcal{{K}}}^{\pm} = 0. \end{equation} This applies for energy eigenstates of globally $\mathcal{{K}}$-symmetric systems of period $L$ with symmetry domain $\mathbb{D} = \mathbb{N}$, including finite ring structures (where site $n = N$ is coupled to site $n = 1$). Recall here that a $\mathcal{{K}}\mathcal{{T}}$-symmetric potential, where the $q_{n,\mathcal{{K}}}^\pm$ above may be spatially constant, has period $L$ only if it is real (whereby it is $\mathcal{{K}}$-symmetric), in which case also the $j_{n}^\pm$ are conserved.\\ \noindent\textbf{\small (v)} The NLCs for a forward translation $\mathcal{{K}}^+(n) = \bar{n} = n + L$ in a general state $\ket{\psi}$ are related to those for a backward translation $\mathcal{{K}}^-(n) = n - L$ from the mapped site $\bar{n}$ by \begin{equation} \label{eq:q_K_-L} q_{n,\mathcal{{K}}^+}^\pm = -q_{\bar{n},\mathcal{{K}}^-}^{\mp *}, ~~~ \mathring{q}_{n,\mathcal{{K}}^+}^\pm = -\mathring{q}_{\bar{n},\mathcal{{K}}^-}^{\mp} \end{equation} for $\mathcal{{K}}\mathcal{{T}}$- and $\mathcal{{K}}$-symmetric equidirectional hoppings, respectively. Thus, for a stationary state (with real $E$), although the $q_{n,\mathcal{{K}}^+}^\pm$ are constant only in the subdomain $\mathbb{D}$ of a locally $\mathcal{{K}}\mathcal{{T}}$-symmetric domain $\mathbb{U} = \mathbb{D} \cup \mathbb{L}$ (see \cref{fig:setup}), we can assign $-q_{n,\mathcal{{K}}^-}^{\mp *} = q_{n-L,\mathcal{{K}}^+}^\pm = q_{\mathbb{D},\mathcal{{K}}^+}^\pm$ to (links from) sites $n$ in the last period $\mathbb{L}$, and similarly for $\mathcal{{K}}$ symmetry and the $\mathring{q}_{n,\mathcal{{K}}}^\pm$. This way the symmetry is expressed by nonlocal invariants throughout the whole domain $\mathbb{U}$. \subsection{Amplitude mapping and current connection} \label{sec:current_mapping} The wave amplitude $\psi_{\S(n)}$ at the transformed site is related to that of the original one $\psi_n$ and its conjugate via the $q_{n,\S}^\pm,\mathring{q}_{n,\S}^\pm,j_n^\pm$ through the general identity \begin{equation} \label{eq:current_mapping} \psi_{\S(n)} = \frac{1}{j_n^\pm} \left( q_{n,\S}^\pm \,\psi_n - \mathring{q}_{n,\S}^\pm \,\psi_n^* \right), \end{equation} holding for arbitrary $\hat{H}$, where both the upper and lower sign in $\pm$ can be chosen; see derivation in \cref{app:mapping_derivation}. If the potential $v_n$ is both $\S_\mathbb{D} \mathcal{{T}}$- and $\S_\mathbb{D}$-symmetric (that is, real and $\S_\mathbb{D}$-symmetric), then both $q_{n,\S}^\pm = q_{\mathbb{D},\S}^\pm$ and $\mathring{q}_{n,\S}^\pm = \mathring{q}_{\mathbb{D},\S}^\pm$, as well as $j_n^\pm = j_\mathbb{D}^\pm$, are spatially constant within $\mathbb{D}$ for a stationary state $\ket{\phi}$. Hence, \cref{eq:current_mapping} becomes \begin{equation} \label{eq:current_mapping_stat} \phi_{\S(n)} = \frac{q_{\mathbb{D},\S}^\pm}{j_\mathbb{D}^\pm} \,\phi_n - \frac{\mathring{q}_{\mathbb{D},\S}^\pm}{j_\mathbb{D}^\pm} \,\phi_n^* \end{equation} for all $n$ in $\mathbb{D}$, providing a linear \textit{mapping relation} from $\phi_n,\phi_n^*$ to $\phi_{\S(n)}$ with constant coefficients $q_{\mathbb{D},\S}^\pm/j_\mathbb{D}^\pm$ and $\mathring{q}_{\mathbb{D},\S}^\pm/j_\mathbb{D}^\pm$ which can be evaluated for any link $(n,n \pm 1)$ in $\mathbb{D}$. This mapping is illustrated in \cref{fig:mapping}\,(a). Note that the same stationary mapping (\ref{eq:current_mapping_stat}) would be arrived at by formulating the identity in \cref{eq:current_mapping} using the bitemporal NLC $q_{n,\S}^{{\mathsmaller\T}\pm}$ instead of $\mathring{q}_{n,\S}^\pm$, as explained in \cref{app:mapping_derivation}. \begin{figure}[t!] \centering \includegraphics[width=.9\columnwidth]{./mapping.pdf} \caption{Symmetry-induced domain amplitude mapping: Within a locally $\P$-symmetric subdomain (blue line) of a 1D array, the amplitude at site $n$ is mapped to its image at $\bar{n}$, as indicated by arrows together with the quantities required for the mapping. \textbf{(a)} Current mapping via \cref{eq:current_mapping_stat} in terms of translation invariant local currents $j_n^\pm$ and NLCs $q_n^\pm$, $\mathring{q}_n^\pm$ evaluated at $n = \alpha$ using $a_{\alpha}$ and $a_{\alpha\pm 1}$ (red line). Dotted contour on end sites indicate current flow to ensure $j_n^\pm \neq 0$. \textbf{(b)} Summation mapping via \cref{eq:sum_map_PT} in terms of amplitudes and couplings up to the domain center $\alpha$ (green line) and the domain invariant $q^\pm_\alpha$. } \label{fig:mapping} \end{figure} This mapping is clearly not applicable for real spatial components $a_n$ of $\ket{\phi}$ in $\mathbb{D}$ (or trivially complex through a common prefactor), since the $j_\mathbb{D}^\pm$ then vanish. At the same time, real $a_n$ yield equimodular $q_{n,\S}^\pm$ and $\mathring{q}_{n,\S}^\pm$, which in turn coincides quite generally with vanishing local current. Indeed, a general identity connecting the nonlocal and local currents on links to sites $n$ and $\bar{n} = \S(n)$ is (see \cref{app:mapping_derivation}) \begin{equation} \label{eq:current_connection} |q_{n,\S}^\pm|^2 - |\mathring{q}_{n,\S}^\pm|^2 = j_n^\pm j_{\S(n)}^{\pm s} \end{equation} with the sign $s = -,+$ for $\S = \P,\mathcal{{K}}$, respectively, implying $j_{\P(n)}^{\mp} = j_{\P(n),\P(n \pm 1)}$ and $j_{\mathcal{{K}}(n)}^{\pm} = j_{\mathcal{{K}}(n),\mathcal{{K}}(n \pm 1)}$. This \textit{current connection} holds also for $j_n^\pm = 0$, in which case $\mathring{q}_{n,\S}^\pm = e^{2i\theta_n}q_{n,\S}^\pm$, where $\theta_n$ is the phase of the general wavefunction $\psi_n = |\psi_n|e^{i\theta_n}$, as can easily be checked. For a stationary state we further have that $j_n^\pm j_{\S(n)}^\pm = s(j_n^\pm)^2 \equiv s(j_{\mathbb{U}}^\pm)^2$ within a Hermitian domain $\mathbb{U} \ni n,\S(n)$. Thus, the wave amplitudes in \textit{different} local $\S\mathcal{{T}}$ or $\S$ symmetry domains $\mathbb{D}_d$ ($d=1,2,\dots$) in a globally Hermitian system are interrelated by common differences $|q_{\mathbb{D}_1,\S}^\pm|^2 - |\mathring{q}_{\mathbb{D}_1,\S}^\pm|^2 = |q_{\mathbb{D}_2,\S}^\pm|^2 - |\mathring{q}_{\mathbb{D}_2,\S}^\pm|^2 = \dots = s|j_\mathbb{N}^\pm|^2$ through \cref{eq:current_connection} for $\S = \P,\mathcal{{K}}$. Considering $\S$-symmetry, the mapping relation (\ref{eq:current_mapping_stat}) can be seen as a generalization of the parity and Bloch theorems (which map amplitudes to a symmetry-related site via the associated eigenvalue) from global to local $\P$- and $\mathcal{{K}}$-symmetry, respectively, where breaking of the global symmetry adds an admixture of the complex conjugate $\phi_n^*$ to the mapping. Thus, using the NLCs, local symmetry can be used to facilitate the computation of spatial parts of eigenstates (knowing their symmetry-related parts) even in the case where symmetry under a given transformation is broken at domain boundaries. Taking the continuum limit with lattice constant $\ell \to 0$ (setting all hoppings equal), \cref{eq:current_mapping_stat} reproduces the generalized Bloch and parity theorems of Ref.\,\cite{Kalozoumis2014_PRL_113_050403_InvariantsBroken} for stationary states. Those are here extended to non-Hermitian Hamiltonians with variable hoppings and are shown to follow from the general identity (\ref{eq:current_mapping}) for arbitrary states. The usual (global) versions are recovered for $\mathbb{D} = \mathbb{N}$; see \cref{app:mapping_derivation}. \subsection{Summation amplitude mapping} \label{sec:sum_mapping} While the current connection (\ref{eq:current_connection}) holds for any $\hat{H}$ and $\ket{\psi}$, the mapping identity (\ref{eq:current_mapping}) is only for nonzero $j_n$, as realized for scattering setups (see \cref{sec:scattering}) or bound setups with sources and/or sinks (see \ref{sec:non-Hermitian}). As shown in \cref{app:mapping_derivation}, the NLCs can be used to map also amplitudes without using the (potentially vanishing) local current $j_n$, in the form of a general \textit{summation} mapping; see \cref{eq:sum_map_gen}. In the case of real amplitudes $a_n$ of a stationary state within an odd-sized domain $\mathbb{D}$, locally $\P\mathcal{{T}}$-symmetric around $\alpha$, we obtain the mapping \begin{equation} \label{eq:sum_map_PT} a_{\bar{n}} = a_n \left( 1 - i q_\mathbb{D}^+ \sum_{m=n}^{\alpha-1} \frac{1}{a_{m} h_{m,m+1}^* a_{m+1}} \right) \end{equation} with constant NLC $q_\mathbb{D}^+$ in $\mathbb{D}$ (with the upper sign selected here). The image amplitudes $a_{\bar{n}}$ can thus be determined from multiple $a_n$'s, as illustrated \cref{fig:mapping}\,(b). The same can be done for an odd-sized $\P$-symmetric domain using $\mathring{q}_\mathbb{D}^+$ and $a_{m},h_{m,m+1}$ in \cref{eq:sum_map_PT}. In other cases (e.\,g. $\P(\mathcal{{T}})$ symmetry with even $D$, or $\mathcal{{K}}(\mathcal{{T}})$ symmetry), \cref{eq:sum_map_gen} yields the amplitude mapping provided that the quotient $a_{\bar{n}_0}/a_{n_0}$ can be previously determined. \subsection{Invariants in periodically modulated systems} \label{sec:inv_per_mod} For a time-dependent Hamiltonian $\hat{H}(t)$ there are no stationary eigenstates and so no spatially invariant NLCs in symmetry domains. In the case, however, of a \textit{periodic} modulation with frequency $\omega$, \begin{equation} \hat{H}(t) = \hat{H}(t + \tau), ~~~~ \tau = 2\pi/\omega, \end{equation} the Schr\"odinger equation (\ref{eq:Schr}) admits solutions of the form \begin{equation} \label{eq:Floquet_state} \ket{\psi^{{\mu}}(t)} = e^{-i\epsilon_{{\mu}}t} \ket{\phi^{{\mu}}(t)}, ~~ \ket{\phi^{{\mu}}(t)} = \ket{\phi^{{\mu}}(t + \tau)}, \end{equation} where the real \textit{quasienergies} $\epsilon_{{\mu}}$ are defined up to multiples of $2\pi$. Being \textit{quasi}-stationary eigenstates of the modified Hamiltonian operator $\hat{H}_F = \hat{H} - i\partial_t$ with eigenvalues $\epsilon_{{\mu}}$, the periodic Floquet modes $\ket{\phi^{{\mu}}(t)}$ suggest the existence of a type of nonlocal invariants within spatially symmetric domains, in analogy to those for stationary states of a static $\hat{H}$. Indeed, integrating the nonlocal continuity \cref{eq:continuity_nonlocal} in a Floquet state $\ket{\psi^{{\mu}}}$ over one period $\tau$ for a potential $v_n(t)$ (assumed real for simplicity) which is locally $\S$-symmetric at any $t$, $v_\ba{n}(t) = v_n(t)$, we obtain \begin{equation} \bar{q}_{n;\mu} \equiv \bar{q}_{n;\mu}^+ + \bar{q}_{n;\mu}^+ = \left[ \, \sigma_{n;\mu}(t) \, \right]_0^\tau = 0 \end{equation} since $\sigma_{n;\mu}(t) = \braket{\psi^{{\mu}}(t)|\hat{\sigma}_{n}|\psi^{{\mu}}(t)}$ is periodic, where \begin{equation} \bar{q}_{n;\mu}^\pm = \frac{1}{\tau} \int_0^\tau dt \, q_{n;\mu}^\pm(t) \end{equation} are the period-averaged NLCs in state $\ket{\psi^{{\mu}}}$. Just like in the case of static $\hat{H}$, we have $\bar{q}_{n \mp 1;\mu}^\pm = \bar{q}_{n;\mu}^\mp$ for equidirectional (assumed real) $\S$-symmetric hoppings $h_{\S(n),\S(n \pm 1)} = h_{n,n \pm 1}$, so that the $\bar{q}_{n;\mu}^\pm$ are spatially constant in the domain of symmetry $\mathbb{D}$; cf. \cref{eq:q_n_+-_transfer}. This generalizes the characterization of the LSs by associated invariants to 1D systems driven periodically with arbitrary strength. Like their static counterpart, the period invariants $\bar{q}_{n;\mu}^\pm$ also exist independently of boundary conditions; they will be illustrated in an example with bound Floquet modes in \cref{sec:inv_per_mod_bound_Floquet}. \section{Nonlocal currents of bound eigenmodes} \label{sec:bound_eigenmodes} Having established the existence of symmetry-induced stationary 1D invariants, we now address their occurrence in bound systems. We first illustrate the various types of LS in 1D, then show how the NLCs relate to symmetry breaking in globally $\S\mathcal{{T}}$-symmetric non-Hermitian setups, and finally give an example of invariants in a periodically modulated array. Lengths, field amplitudes and ${\mathcal{H}}$-elements are measured in units of $\ell$ (lattice constant), $a^\circ$ (amplitude unit) and $\epsilon$ (${\mathcal{H}}$-element unit), respectively, which are in turn set to unity, $\ell = a^\circ = \epsilon = 1$. \begin{figure*} \begin{center} \includegraphics[width=1\textwidth]{./local_symmetries.pdf} \caption{Types of local symmetry (LS) and corresponding local permutation matrices for \textbf{(i)} inversion and \textbf{(ii)} translation transforms for finite 1D arrays of $N = 15$ sites. Plotted quantities (indicated in legend) are: real onsite potential $u_n$ (dark gray), real hoppings $h_{nm}$ between sites (light gray), eigenmode amplitudes $\phi^\nu_n$ (orange), $10i$ times imaginary NLC $q_{n,\nu}^+$ of mode $\nu$ (purple). \textbf{(a)} Global symmetry within $\mathbb{U} = \mathbb{N}$, where $\mathbb{N}$ covers the complete system, \textbf{(b)} complete LS (CLS) in non-overlapping subdomains $\mathbb{D}_d \subset \mathbb{N} = \bigcup_d \mathbb{D}_d$, \textbf{(c)} overlapping LS for two different LS operations, and \textbf{(d)} gapped symmetry within $\mathbb{U} = \mathbb{N}$. Eigenmodes (i) $\nu = 8,7,9,7$ and (ii) $\nu = 6,10,8,6$ for (a,b,c,d), respectively, were chosen with visibly distinct $q_{\mathbb{D}_d}^+$ as a criterion. In (a,i) and (a,ii) the $q_{n,\S}^+$ for a LS transform are additionally shown. In order to illustrate their domainwise constancy, the (upper) NLCs are plotted at the sites $n$ below the links $(n,n+1)$ they are defined on. In (ii), backward invariants $-q_{\bar{n},\mathcal{{K}}^-}^{\mp *}$ are plotted in the last period of each LS domain; see \cref{eq:q_K_-L}. Solid vertical lines indicate LS domains, dotted lines the local (i) inversion points $\alpha_d$ and (ii) translation lengths $L_d$. Shaded areas indicate lack of symmetry under the considered transform. All plotted quantities are dimensionless, with each panel row being of height $1/2$, as indicated on the upper left in (a,i). } \label{fig:local_symmetries} \end{center} \end{figure*} \subsection{Types of local symmetry} \label{sec:symmetry_types} To illustrate different types of symmetry, we consider an array of $N = 15$ sites with real onsite elements $v_n = u_n$ and hoppings $h_{n,n \pm 1}$, so that the mode amplitudes $a^{\nu}_n$ of an eigenstate $\ket{\phi^{\nu}} = \sum_n \phi^{\nu}_n \ket{n} = \sum_n a^{\nu}_n e^{-iE_\nu t} \ket{n}$ with eigenvalue $E_\nu$ ($\nu = 1,2,\dots,N$) can also be chosen real. The NLCs \begin{equation} \label{eq:q_n_psi_wavepacket} q_{n;\psi}^\pm = \sum_\nu |c_\nu|^2 q_{n;\nu}^\pm + \sum_\nu \sum_{\mu \neq \nu} c_\nu^* c_\mu q_{n;\nu\mu}^\pm \end{equation} in a general state (wavepacket) $\ket{\psi} = \sum_\nu c_\nu \ket{\phi^{\nu}}$ are composed of a linear combination of the $q_{n;\nu}^\pm$ of individual modes $\nu$ as well as mixed-mode currents $iq_{n;\nu\mu}^\pm \equiv \phi^{\nu *}_n h_{\S(n),\S(n \pm 1)} \phi^\mu_{\S(n \pm 1)} - \phi^{\nu *}_{n \pm 1} h_{n,n \pm 1}^* \phi^\mu_{\S(n)}$ ($\S = \P,\mathcal{{K}}$) which oscillate with frequency $E_\nu - E_\mu$. All general statements of \cref{sec:discrete_continuity,sec:stat_invariants_mappings} about NLCs of general states $\ket{\psi}$ apply to $q_{n;\psi}^\pm$, while, in particular, the stationary currents $q_{n;\nu}^\pm$ are additionally translation invariant in a corresponding LS domain $\mathbb{D}$. In the following, we discuss the different types of local $\P$- and $\mathcal{{K}}$-symmetry in terms of the example arrays shown in \cref{fig:local_symmetries} together with the locally invariant $q_{n;\nu}^\pm$ for selected modes $\ket{\phi^{\nu}}$ as well as the $\P_\mathbb{D}$- and $\mathcal{{K}}_\mathbb{D}$-matrices producing them via \cref{eq:q_n_+-_vector}. \\ \noindent \textit{(a) Global symmetry} \\ In the case of global symmetry, there is a connected maximal symmetry domain $\mathbb{U} = \mathbb{N}$ which extends over the complete setup. We call a (local) symmetry maximal \cite{Morfonios2014_ND_78_71_LocalSymmetry} if the corresponding domain $\mathbb{U} = \mathbb{D} \cup \bar{\mathbb{D}}$ is the largest one with the given center $\alpha$ (for $\P$ symmetry) or period $L$ (for $\mathcal{{K}}$ symmetry). In the case of global $\P$ symmetry, shown in \cref{fig:local_symmetries}\,(a,i), the corresponding permutation matrix $P_\mathbb{D} = P_\mathbb{N}$ is the usual anti-diagonal unit matrix (upper inset), and the $q_{n;\nu}^\pm$ vanish for any mode $\ket{\phi^\nu}$ due to its definite parity (see \cref{eq:q_P_zero}). If $\mathbb{N}$ contains a subdomain $\mathbb{D}_1$ which is locally $\P_{\mathbb{D}_1}$-symmetric, then its image $\P(\mathbb{D}_1)$ under the global inversion has opposite invariants $q_{\P(\mathbb{D}_1);\nu}^\pm = - q_{\mathbb{D}_1;\nu}^\pm$, as seen in the lower panel of \cref{fig:local_symmetries}\,(a,i) together with the corresponding local inversion matrix (lower inset). We call a finite system `globally' $\mathcal{{K}}$-symmetric here if it is periodic in $\mathbb{U} = \mathbb{D} \cup \mathbb{L} = \mathbb{N}$, i.e. consisting of repeated copies of its last period $\mathbb{L}$, as in \cref{fig:local_symmetries}\,(a,ii). While the $q_{n;\nu}^\pm$ in $\mathbb{L}$ differ from those in $\mathbb{D}$, we assign the backward invariants $-q_{\bar{n},\mathcal{{K}}^-}^{\mp *}$ (see \cref{eq:q_K_-L}) to $\mathbb{L}$ in order to illustrate the $\mathcal{{K}}_\mathbb{D}$-symmetry. As seen in the lower panel of \cref{fig:local_symmetries}\,(a,ii), a different period leads to different NLCs. \\ \noindent \textit{(b) Complete local symmetry} \\ In the case of complete LS (CLS), the setup is exactly covered by more than one maximal non-overlapping symmetry domains $\mathbb{U}_d$ (of size $D_d \geqslant 1$), that is, $\mathbb{N} = \mathbb{U} = \bigcup_d \mathbb{U}_d$ with $\mathbb{U}_d \cap \mathbb{U}_{d'} = \varnothing$, as exemplified in \cref{fig:local_symmetries}\,(b). The corresponding $P_\mathbb{D}$- and $K_\mathbb{D}$-matrices are block-diagonal with the blocks being local inversion and translation permutation matrices. The local order of the Hamiltonian is here completely mapped to the domain invariants $q_{\mathbb{D}_d;\nu}^\pm$ which thus expose the symmetry information encoded in the states $\ket{\phi^\nu}$. Note that, for both local $\P$ and $\mathcal{{K}}$ symmetry, this information is otherwise not at all visible by the mode amplitude profiles alone for an arbitrary CLS setup. The concept of CLS may serve to characterize order between the limits of perfect periodicity and uncorrelated disorder in extended systems, alternatively to quasiperiodicity (or deterministic aperiodicity) \cite{Morfonios2014_ND_78_71_LocalSymmetry}. \\ \noindent \textit{(c) Overlapping local symmetry} \\ The case of overlapping LS refers to the existence of \textit{different} symmetry domains of the same setup with common sites, that is, there are (composite) LS domains $\mathbb{U} = \bigcup_d \mathbb{U}_d$ and $\mathbb{U}' = \bigcup_d \mathbb{U}'_d$ with $\mathbb{U}_d \neq \mathbb{U}'_d$ but $\mathbb{U}_d \cap \mathbb{U}'_d \neq \varnothing$ for some $\mathbb{U}_d,\mathbb{U}'_d$. Examples of non-CLS setups with overlapping $\P$- and $\mathcal{{K}}$-symmetric domains are shown in \cref{fig:local_symmetries}\,(c,i) and (c,ii), respectively. Note that overlapping $\P$-symmetric domains with common center $\alpha$ or $\mathcal{{K}}$-symmetric domains with common period $\mathbb{L}$ have equal invariant currents $q_{n;\nu}^\pm$, respectively. In general, a setup may contain mixed local $\P$ and $\mathcal{{K}}$ symmetries in different domains which in turn may overlap, and the concept of overlapping LS may be used to analyze order in complex systems at different scales \cite{Morfonios2014_ND_78_71_LocalSymmetry}. If overlapping LS domains occur in a CLS system, then we speak of different CLS \textit{decompositions} of the system. As has been shown for continuous models \cite{Kalozoumis2013_PRA_88_033857_LocalSymmetries}, scattering setups with multiple complete local $\P$-symmetry decompositions can enable the design of transparency at multiple incoming frequencies.\\ \noindent \textit{(d) Gapped (local) symmetry} \\ If the Hamiltonian elements in one (or more than one) subdomain(s) of a LS domain are modified so that they break the considered symmetry, then the original LS domain becomes disconnected, or `gapped', as illustrated in \cref{fig:local_symmetries}\,(d). The $q_{n;\nu}^\pm$ are then spatially constant in the symmetric subparts of $\mathbb{D}$ outside the gap(s), but generally unequal in different subparts (recall that their constancy pertains from \cref{eq:q_n_+-_transfer} for a connected LS domain). In the case of gapped $\P$ symmetry, however, the identity (\ref{eq:q_P_symmetry}) yields equal $q_{n;\nu}^\pm$ at symmetry-related subparts for real amplitudes $a_n$, despite intervening gaps, as seen in \cref{fig:local_symmetries}\,(d,i) with equal (vanishing) $q_{n;\nu}^+$ at the left and right ends. In the case of gapped $\mathcal{{K}}$ symmetry, gaps induce distinct constant $q_{n;\nu}^\pm$'s in each unperturbed part. The example in \cref{fig:local_symmetries}\,(d,ii) shows the constancy of $q_{n;\mathcal{{K}}^+}^+$ (with period $L = 9$) before the gap, equal to the $-q_{n;\mathcal{{K}}^-}^+$ shown after the gap. The blocks of the associated $\varSigma$-matrix corresponding to gaps are diagonal, yielding $q_{n;\nu}^+ = j_{n;\nu}^+ = 0$ in the gaps for $\mathcal{{K}}$ transformations. Note that the gaps may as well be locally symmetric under another transformation (e.\,g. $\P$-symmetric about their center), thus yielding a \textit{nested} LS, which can be expressed through locally constant $q_{n;\nu}^\pm$'s by accordingly modifying those permutation matrix blocks. \begin{figure}[t!] \centering \includegraphics[width=.9\columnwidth]{./nonherm_modeQ_sites.pdf} \caption{Real (solid) and imaginary (dotted) part of \textbf{(a)} spectrum $E_\nu$, \textbf{(b)} spatially resolved upper NLCs $iq_{n;\nu}^+$ (offset by site index $n$), and \textbf{(c)} total upper NLC $iQ_{\mathbb{D};\nu}^+$ within $\mathbb{D}$, in the modes $\nu$ of a \textbf{(i)} $\P\mathcal{{T}}$-symmetric array with $\{ v_n \} = \{ i\eta, i\gamma, u, -i\gamma, -i\eta \}$, $\{ h_{n,n+1} \} = \{ h, 2h, 2h, h \}$ where $u = \eta = 0.06$ and $h = 0.1$, and a \textbf{(ii)} $\mathcal{{K}}\mathcal{{T}}$-symmetric array with $\{ v_n \} = \{ 0, u + i\gamma, 0, u - i\gamma, 0 \}$, $\{ h_{n,n+1} \} = \{ h, 2h, h, 2h \}$ where $u = 0.15$ and $h = 0.1$, for varying loss/gain parameter $\gamma$. Vertical lines indicate exceptional values of $\gamma$ where transitions from complex to real eigenvalues $E_\nu$ occur, corresponding to transitions from complex to (i) zero $q_{n,\P}^+$ and (ii) imaginary $q_{n,\mathcal{{K}}}^+$ in the respective modes. Note that $q_{N,\P}^+ = 0$ identically in (b,i) since it `flows' on the nonexisting links $(0,1)$ and $(N,N+1)$. By convention, $\mathbb{D} \equiv \{1,2\}$ in (ii); see text. } \label{fig:nonherm_modeQ_sites} \end{figure} \subsection{Nonlocal currents in $\P\mathcal{{T}}$- and $\mathcal{{K}}\mathcal{{T}}$-symmetric non-Hermitian arrays} \label{sec:non-Hermitian} We now proceed to demonstrate some properties of eigenmode NLCs for minimalistic examples of globally $\P\mathcal{{T}}$- and $\mathcal{{K}}\mathcal{{T}}$-symmetric non-Hermitian arrays, as shown in \cref{fig:nonherm_modeQ_sites}, and in particular their relation to spontaneous symmetry breaking. The non-Hermiticity is implemented by complex onsite potentials, while the hoppings are taken to be real and equidirectional. Global $\P\mathcal{{T}}$ symmetry is known to allow for parameter regimes of loss/gain elements $\gamma_n$ where a subspace of common eigenstates $\ket{\phi^\nu}$ of $\hat{H}$ and $\hat{P}\hat{T}$ with real $\hat{H}$-eigenvalues exists, originating essentially from the balance between loss and gain in density. The rest of $\hat{H}$-eigenstates are `spontaneously' symmetry-broken non-$\hat{P}\hat{T}$-eigenstates, which come in $\hat{P}\hat{T}$-related pairs $\ket{\phi^\nu},\ket{\phi^{\nu\prime}}$ with complex conjugate eigenvalues $E_\nu,E_\nu'$. We now notice that the $\P\mathcal{{T}}$-unbroken modes are naturally distinguished by vanishing of the corresponding constant NLCs $q_{n,\P}^\pm$, as follows from \cref{eq:q_P_zero} for the case $\mathbb{D} = \mathbb{N}$ of global symmetry. This is illustrated in \cref{fig:nonherm_modeQ_sites}\,(i) for a $\P\mathcal{{T}}$-symmetric $N=5$-site array with two loss/gain parameters $\gamma,\eta$, where a real central onsite energy $v$ is added to break the $\pm E_\nu^\circ$ symmetry of the $\hat{H}$-eigenvalues $E_\nu = E_\nu^\circ + i \varGamma_\nu/2$ shown in \cref{fig:nonherm_modeQ_sites}\,(a,i). As we see, all $q_{\mathbb{N};\nu}^+$ vanish within the $\gamma$-range (for fixed $\eta$) corresponding to the unbroken phase of real $E_\nu$ in \cref{fig:nonherm_modeQ_sites}\,(a,i). In the $\P\mathcal{{T}}$-broken phase of complex $E_\nu$, the $q_{n;\nu}^\pm$ are not spatially constant, since $q_{n \mp 1;\nu}^\pm = q_{n;\nu}^\mp \neq q_{n;\nu}^\pm$ for $\varGamma_\nu \neq 0$ (and $\beta_n = 0$) in \cref{eq:continuity_nonlocal_eigenstate}. While generally $q_{n;\nu}^\pm \neq 0$ in the $\P\mathcal{{T}}$-broken phase, the \textit{remnant} of $\P\mathcal{{T}}$ symmetry in the occurrence of $\P\mathcal{{T}}$-related eigenmode pairs is expressed by vanishing sum of NLCs: By its definition, $q_{n;\nu}^\pm$ will be opposite $q_{n;\nu'}^\pm$ in the paired eigenstate $\ket{\phi^{\nu\prime}} = \hat{P}\hat{T} \ket{\phi^\nu}$ with $E_\nu' = E_\nu^*$, \begin{equation} \label{eq:q_n_PT_pair_zero_sum} q_{n;\nu}^\pm + q_{n;\nu'}^\pm = 0. \end{equation} Summing separately the $q_{n;\nu}^\pm$ along the array, the total upper/lower NLCs $Q_{\mathbb{D};\nu}^\pm = \sum_{n \in \mathbb{D}} q_{n;\nu}^\pm$ (here $\mathbb{D} = \mathbb{N}$) in state $\ket{\phi^\nu}$ each serve as a single parameter which distinguish $\P\mathcal{{T}}$-unbroken ($Q_{\mathbb{D};\nu}^\pm = 0$) from $\P\mathcal{{T}}$-broken ($Q_{\mathbb{D};\nu}^\pm \neq 0$) modes for a given setup configuration. This is seen in \cref{fig:nonherm_modeQ_sites}\,(c,i) for $Q_{\mathbb{D};\nu}^+$ (note that $Q_{\mathbb{D};\nu}^\pm \in i\mathbb{R}$ due to \cref{eq:q_P_symmetry}). The $\P\mathcal{{T}}$ symmetry remnant in the broken phase may further be expressed by the vanishing sum of $Q_{\mathbb{D};\nu}^\pm$ over all modes, $\sum_\nu Q_{\mathbb{D};\nu}^\pm = 0$. The nonlocal charge (quasipower) $\varSigma_\psi^\mathbb{D} = \braket{\psi|\hat{\varSigma}|\psi}$ for a general state $\ket{\psi}$ was shown in \cref{sec:discrete_continuity} to remain constant in time (longitudinal direction) $t$ under under global $\P\mathcal{{T}}$ symmetry ($\mathbb{D} = \mathbb{N}$) following from the vanishing total NLC $Q_\mathbb{N} = Q_\mathbb{N}^+ + Q_\mathbb{N}^- = 0$. In particular for the eigenmodes $\ket{\phi^\nu}$ addressed here, we have \begin{equation} \varGamma_\nu \varSigma_\nu^\mathbb{N} = \partial_t \varSigma_\nu^\mathbb{N} = Q_{\mathbb{N};\nu} = 0, \end{equation} which shows that the nonlocal charge $\varSigma_\nu^\mathbb{N}$ is zero in $\P\mathcal{{T}}$-broken eigenmodes with $\varGamma_\nu \neq 0$. The $\P\mathcal{{T}}$ symmetry of $\hat{H}$ is not a necessary condition for the occurrence of real $E_\nu$ \cite{Klaiman2008_PRA_78_062113_Non-HermitianHamiltonians}, which we now exploit to show the induced invariance of translation NLCs $q_{n,\mathcal{{K}}}^\pm$ in a $\mathcal{{K}}\mathcal{{T}}$-symmetric example array. Specifically, we implement a non-Hermitian version of the Su-Schrieffer-Heeger model \cite{Zhu2014_PRA_89_062102_MathcalptSymmetry}, which can be considered as a special case of the non-Hermitian Aubry-Andr\'e-Harper model proposed in Ref.\,\cite{Harter2016_PRA_93_062101_Mathcalpt-breakingThreshold}, in an array of odd size $N$ where the hoppings are $\mathcal{{K}}$-symmetric with period $L = 2$ and the potential is simultaneously $\mathcal{{K}}\mathcal{{T}}$- and $\P\mathcal{{T}}$-symmetric. The latter property enables the presence of loss/gain-balanced eigenmodes with real $E_\nu$ \cite{Harter2016_PRA_93_062101_Mathcalpt-breakingThreshold}. Since the array does not consist of an integer number of periods, we set $\mathbb{D} \equiv \{1,2,\dots,N-L-1\}$, in which $H_{m,n} = H_{m+L,n+L}$. In \cref{fig:nonherm_modeQ_sites}\,(ii) the $q_{n,\mathcal{{K}}}^+$ are shown for $N=5$ and a single site pair with loss/gain $\gamma$ supporting a phase of real $E_\nu$; see \cref{fig:nonherm_modeQ_sites}\,(a,ii). Real onsite energies $v$ are added to break the $\pm E^\circ$-symmetry of the spectrum. As seen in \cref{fig:nonherm_modeQ_sites}\,(b,ii), for each eigenmode the $\gamma$-region with real $E_\nu$ is distinguished by a spatially constant and imaginary $q_{n,\mathcal{{K}};\nu}^+$, where $-q_{n,\mathcal{{K}}^-}^{- *} = q_{n-L,\mathcal{{K}}^+}^+$ is assigned to the last three sites $\mathbb{N} \setminus \mathbb{D} = \{3,4,5\}$; recall \cref{eq:q_K_-L}. Outside this $\gamma$-region, the $q_{n,\mathcal{{K}};\nu}^\pm$ vary along the array and have a real part, signifying the spontaneous breaking of loss/gain balance in the eigenstates. In analogy to the $\P\mathcal{{T}}$-symmetric case above, though, a remnant of the symmetry of the system can be expressed in the broken phase by the imaginary sums $\sum_\nu Q_{\mathbb{D};\nu}^\pm \in i\mathbb{R}$, as anticipated by the $Q_{\mathbb{D};\nu}^+$ in \cref{fig:nonherm_modeQ_sites}\,(c,ii). The characteristic of imaginary NLCs in the unbroken phase thus survives in the sum of total NLCs within $\mathbb{D}$ over all modes. In the above non-Hermitian setup examples, we chose arrays with global $\P\mathcal{{T}}$ (or $\mathcal{{K}}\mathcal{{T}}$) symmetry which enable the possibility of a completely real eigenspectrum, in order to reveal the connection of the NLCs to the transition between phases of unitary and nonunitary evolution when varying loss/gain strengths. In particular, we saw that the NLCs vanish for all eigenstates in the $\P\mathcal{{T}}$-unbroken phase, corresponding to globally symmetric eigenstate densities. As seen from \cref{eq:q_P_zero}, however, the NLCs could also be used as indicators for \textit{locally} symmetric density of any given eigenstate. In a completely locally $\P\mathcal{{T}}$-symmetric array (i.\,e. decomposable into different, non-overlapping $\P\mathcal{{T}}$-symmetric domains), the simultaneous vanishing of all the attached domains' NLCs may thus aid in the engineering of selected real eigenvalues induced by balanced gain and loss, even though the setup is globally $\P\mathcal{{T}}$-asymmetric. \begin{figure}[t!] \centering \includegraphics[width=.95\columnwidth]{./ls_driven.pdf} \caption{\textbf{(a)} Setup with $N = 12$ sites composed of two domains $\mathbb{D}_1$, $\mathbb{D}_2$ which are locally $\P$-symmetric for the value $s = 1$ of a scaling parameter $s$ multiplying the onsite potentials $u_{3}, u_{4}, u_{5}, u_{10}$ (colored green), with periodically modulated hoppings $h_{n,n \pm 1}(t) = (1 + \frac{1}{2}\sin\pi t/8) h_{n,n \pm 1}(0)$. \textbf{(b)} Time evolution over one period $\tau$ of the NLC in Floquet mode $\mu = 7$ associated with the local inversions $\P_{\mathbb{D}_1}$, $\P_{\mathbb{D}_2}$. \textbf{(c)} Period averaged NLC for varying scaling parameter $s$, showing the domainwise constancy in the case $s = 1$ of local symmetry. } \label{fig:ls_driven} \end{figure} \subsection{Period invariants of bound Floquet states} \label{sec:inv_per_mod_bound_Floquet} The invariance of period-averaged NLCs $\bar{q}_{n;\mu}^\pm$ in Floquet states, derived in \cref{sec:inv_per_mod}, applies for arbitrary boundary conditions and symmetry (under $\P$ or $\mathcal{{K}}$, potentially combined with $\mathcal{{T}}$). Their continuous counterpart was very recently shown to expose defects in locally $\mathcal{{K}}$-symmetric potentials under periodic boundary conditions \cite{Wulf2016_PRE_93_052215_ExposingLocal}. We here exploit the discrete tight-binding form of $\hat{H}$ to drive the hoppings of a locally $\P$-symmetric array in time, corresponding to periodically modulated \cite{Szameit2008_PRL_101_203902_ObservationDefect-free,Garanovich2012_PR_518_1_LightPropagation} photonic waveguides; alternatively, the onsite potential could be driven \cite{Longhi2006_PRB_73_193305_TransmissionLocalization}. We consider a Hermitian array of $N = 12$ sites with LS controlled by a scaling parameter $s$ multiplying the real potential $u_n$ on sites $n = 4,5,6,10$; see \cref{fig:ls_driven}\,(a). For $s = 1$ the setup has CLS, with two $6$-site $\P$-symmetric subdomains $\mathbb{D}_1$ and $\mathbb{D}_2$, which is broken for $s \neq 1$. With any type of periodic driving applicable, we here choose an global in-phase harmonic modulation of relative amplitude $f = 1/2$ on the hoppings, \begin{equation} h_{n,n \pm 1}(t) = (1 + f\sin\omega t) h_{n,n \pm 1}^\circ ; ~~ n, n \pm 1 \in \mathbb{N}, \end{equation} with frequency $\omega = \pi/8$. The Floquet modes $\ket{\phi^{{\mu}}(t)}$ of the system are computed with the Floquet matrix method \cite{Grifoni1998_PR_304_229_DrivenQuantum} including a total of $6$ sidebands. The upper NLCs $q_{n;\mu}^+(t)$ in the Floquet state with $\mu = 7$ (chosen simply to yield distinctly varying NLCs) are shown in \cref{fig:ls_driven}\,(b) for the CLS case $s = 1$. As is seen, at any instant $t$ we have that $iq_{\bar{n} \mp 1;\mu}^\pm(t) = [iq_{n;\mu}^{\pm}(t)]^*$ in each $\P$-symmetric subdomain from \cref{eq:q_P_symmetry}, which clearly holds also for the present dynamical NLCs. What is not directly anticipated from the time evolution is that their averages $\bar{q}_{n;\mu}^\pm$ over a period $\tau$ are real and spatially constant within $\mathbb{D}_1$ and $\mathbb{D}_2$, as was established in \cref{sec:inv_per_mod}. The profile of the period-averaged NLCs in relation to LS is illustrated in \cref{fig:ls_driven}\,(c) by continuously varying $s$. For $s < 1$ the system has no symmetry around $\alpha_1$ in $\mathbb{D}_1$, and the $|\bar{q}_{n \in \mathbb{D}_1;\mu}^+|$ are symmetric on the links around $\alpha_1$. The subdomain $\mathbb{D}_2$, where only one site is modified by $s$, has a gapped $\P$ symmetry, and the $|\bar{q}_{n \in \mathbb{D}_2;\mu}^+|$ are spatially constant in the subdomain $\mathbb{D}_2 \setminus \{ 9,10 \}$ (i.\,e., only $|\bar{q}_{9;\mu}^+| \equiv |\bar{q}_{9,10;\mu}|$ on the central link across $\alpha_2$ deviates from the rest). In both domains we see that $|\bar{q}_{n;\mu}^+|$ becomes spatially constant in the limit of CLS when $s = 1$. Alternatively to the bound array considered here, an interesting perspective would be to study the behavior of NLCs in driven scattering setups where, e.\,g. Floquet bound states \cite{Longhi2013_SR_3__FloquetBound} may arise in the energy continuum. \section{Nonlocal currents in stationary scattering} \label{sec:scattering} In the previous section the NLCs and their invariance in LS domains were investigated in various types of bound setups with discrete eigenspectra. We now apply the framework of NLCs to stationary \textit{scattering}, where the energy $E$ (longitudinal propagation constant for photonic waveguides) is a given input parameter, to demonstrate their domainwise invariance and relation to transmission in discrete structures with LSs. In the following, we will focus on (local) $\P$-symmetric scatterers, whose corresponding NLCs are to be related to perfect transmission ($\mf{T} =1$) of composite setups. We first consider a general scatterer localized in a domain $\mathbb{D}$ with transmission and left (right) reflection amplitudes $\mf{t}$ and $\mf{r}$ ($\mf{r}'$ ), respectively, and ingoing plane wave amplitude $\mf{c}_<^+$ ($\mf{c}_>^-$) on the left (right). As detailed in \cref{app:scattering_NLC}, the NLC under $\P_\mathbb{D}$ on the first links on the left ($l$) and right ($r$) of the scatterer takes the form \begin{align} \label{eq:q_scat_in_t_r_general} &q_{l-1,l} = q_{r+1,r}^* = 2h \sin k \,\times \\ &\left\{ \, ( 1 - \mathring{\mf{r}}^* \mathring{\mf{r}}') \, \mathring{\mf{c}}_+^* \mathring{\mf{c}}_- - |\mf{t}|^2 \, \mathring{\mf{c}}_+ \mathring{\mf{c}}_-^* - \mathring{\mf{r}}^* \mf{t} \, |\mathring{\mf{c}}_+|^2 - \mf{t}^{*} \mathring{\mf{r}}' \, |\mathring{\mf{c}}_-|^2 \, \right\}, \nonumber \end{align} where $\mathring{\mf{c}}_+ \equiv \zeta^{+\alpha} \mf{c}_<^{+}$, $\mathring{\mf{c}}_- \equiv \zeta^{-\alpha} \mf{c}_>^{-}$ and $\mathring{\mf{r}} \equiv \zeta^{-2\alpha} \mf{r}$ are the ingoing and reflection amplitudes, respectively, for the same scatterer shifted to the origin ($\alpha \to 0$), with $\zeta = e^{ik}$ for quasimomentum $k$ away from the scatterer. \begin{figure}[t!] \centering \includegraphics[width=1\columnwidth]{./ptr.pdf} \caption{Scattering off a locally $\P$-symmetric Hermitian array composed of three LS domains: $\mathbb{D}_A$ and $\mathbb{D}_B$ each containing a scatterer with Hamiltonian parameter $w$ (top sketch), and an intervening free propagation domain $\mathbb{D}_C$. Reflection magnitudes \textbf{(a1)} $|\mf{r}_A|$ of $\mathbb{D}_A$, \textbf{(a2)} $|\mf{r}_B|$ of $\mathbb{D}_B$, and \textbf{(a3)} $|\mf{r}|$ of the composite array $\mathbb{D} = \{ \mathbb{D}_A,\mathbb{D}_C,\mathbb{D}_B \}$, as well as quantities \textbf{(a4)} $||\mf{r}_A'| - |\mf{r}_B^*||^{1/2}$, \textbf{(a5)} $|(\arg\mf{r}_A' - \arg\mf{r}_B^*)\,\text{mod}\,2\pi|/2\pi$, and \textbf{(a6)} $||q_A| - |q_B||^{1/2}$, which vanish at unit transmission (PTR, $\mf{r} = 0$), for varying $w$ and $k$. An sPTR (aPTR) occurs at $w,k$ where $\mf{r}_A' = \mf{r}_B^* = 0$ ($\neq 0$), in which case $|q_A| = |q_B| = 0$ ($\neq 0$), indicated by $\square$ ($\text{\protect\rotatebox[origin=c]{45}{$\square$}}$). \textbf{(b1)} Transmission $|\mf{t}|^2$ and NLCs $q_{A,B,C}$ (offset by $1$ and scaled by overall maximum) in varying $k$ for $w \approx 0.1687$ and \textbf{(b2)} density $|\psi_n|^2$ (offset by $1,2,3$) at $k$-values indicated by $\square,\triangle,\text{\hspace{-.5em}\protect\rotatebox[origin=bl]{60}{$\triangle$}}$ in zoomed inset of (b1) where $q_A = q_B = q_C = 0$ (corresponding to the sPTR in (a)), $q_A = 0 \approx q_C$, $q_A = 0$, respectively. $|\psi_n|^2$ is $\P_{\mathbb{D}_X}$-symmetric when $q_X = 0$ ($X=A,B,C$). \textbf{(c1)} $|\mf{t}|^2$ and $q_{A,B}$ for $w \approx 0.1254$ and \textbf{(c2)} $|\psi_n|^2$ at $k$ indicated by $\text{\protect\rotatebox[origin=c]{45}{$\square$}}$ in inset where $q_A = q_B \neq 0$ corresponding to the aPTR in (a); green dashed line shows $\arg[\mf{t}\zeta^{2(\alpha_2 - \alpha_1)}]/\pi$. $\mathbb{D}_A$ ($\mathbb{D}_B$) is here augmented symmetrically by 1 (2) site(s) into $\mathbb{D}_A'$ ($\mathbb{D}_B'$). } \label{fig:ptr} \end{figure} \subsection{Local $\P$ symmetry and perfect transmission} \label{sec:ptr} Let us now assume the scatterer to be $\P$-symmetric within a connected domain $\mathbb{D}$ and Hermitian with equidirectional hoppings, meaning that $q_\mathbb{D}^+ = q_{l-1,l} \in i \mathbb{R}$ is translation invariant along $\mathbb{D}$. We then also have that $\mathring{\mf{r}} = \mathring{\mf{r}}'$ from the $\P$ symmetry of the scatterer (around the origin) and $1 - |\mf{r}|^2 = |\mf{t}|^2$, $\mf{t}^{*} \mathring{\mf{r}}' = - \mathring{\mf{r}}^* \mf{t}$ from the unitarity of the $\mathsf{S}$-matrix (see \cref{app:scattering_NLC}), so that the NLC expression reduces to \begin{align} \label{eq:q_scat_in_t_r_herm_Psymm} q_\mathbb{D}^+ &= q_\mathbb{D}^{-*} = 2h \sin k \,\times \nonumber \\ &\left\{ \, |\mf{t}|^2 \, \left( \mathring{\mf{c}}_+^* \mathring{\mf{c}}_- - \mathring{\mf{c}}_+ \mathring{\mf{c}}_-^* \right) - \mathring{\mf{r}}^* \mf{t} \, \left( |\mathring{\mf{c}}_+|^2 - |\mathring{\mf{c}}_-|^2 \right) \, \right\}, \end{align} where we note that $\mathring{\mf{r}}^* \mf{t} \in i\mathbb{R}$. This expression shows how the $q_\mathbb{D}^\pm$ depend on the characteristics $\mf{t}$, $\mf{r}$ and position $\alpha$ of the scatterer (domain $\mathbb{D}$) as well as the amplitudes incident on it. At the center $k = 0$ and edges $k = \pm \pi$ of the leads' Brillouin zone, the scattering NLCs vanish generically. Away from those $k$-points, $q_\mathbb{D}^\pm = 0$ and thereby symmetric density $\rho_n$ in $\mathbb{D}$ (see \cref{eq:q_P_zero}) can be achieved by tuning the ingoing amplitudes to satisfy $\left( |\mathring{\mf{c}}_+|^2 - |\mathring{\mf{c}}_-|^2 \right)/\text{Im}[\mathring{\mf{c}}_+^* \mathring{\mf{c}}_-] = \pm 2 |\mf{t}|/|\mf{r}|$ for $\mathring{\mf{r}}^* \mf{t} \in i\mathbb{R}^\pm$. For example, this is satisfied for $\mathring{\mf{c}}_+ = 1$ and $|\mathring{\mf{c}}_-| = \sqrt{2} - 1$ at all $E$ for which $\arg{\mathring{\mf{c}}_-} = \pm \arcsin \, |\mf{r}/\mf{t}|$. A special situation occurs for $\mathsf{S}$-matrix eigenstates, in which $\mathring{\mf{c}}_+ = \pm \mathring{\mf{c}}_-$ and thus $q_\mathbb{D}^\pm = 0$ for any $\mf{t},\mf{r}$. For a globally $\P$-symmetric (about $\alpha = 0$) Hermitian scatterer, those states are simultaneously $\hat{P}$ eigenstates with eigenvalues $\lambda_\P = \pm 1$ and $\hat{P}\hat{T}$ eigenstates with eigenvalues $\lambda_{\P\mathcal{{T}}} = e^{i\vartheta_\lambda}$ where $\vartheta_\lambda = -2\arg(\mf{c}) - \arg(\mf{t} \pm \mf{r})$ (note that $|\mf{t} \pm \mf{r}| = 1$ in this case). In the most common setting for a single scatterer, however, there is only one incoming wave from the left ($\mathring{\mf{c}}_- = 0$) or from the right ($\mathring{\mf{c}}_+ = 0$). In this case, from \cref{eq:q_scat_in_t_r_herm_Psymm} $q_\mathbb{D}^\pm = 0$ only if the scatterer is transparent at the given $k$, $\mf{r} = 0$, and vice versa (or if $\mf{t} = 0$, which strictly only occurs for singular potentials in unbiased 1D systems, in contrast to Fano transmission zeros when multiple interference paths are available \cite{Miroshnichenko2005_PRE_71_036626_NonlinearFano}). Thus, perfect transmission $\mf{T} = 1$ is accompanied by a $\P_\mathbb{D}$-symmetric density $\rho_n$ within $\mathbb{D}$ ($\P_\mathbb{D} \mathcal{{T}}$-symmetric $\psi_{n;E}$ up to a phase). The assumption $\mathring{\mf{c}}_{-(+)} = 0$ for left (right) incidence is compatible with the connection to another, generally different, locally symmetric scatterer on the right (left) of $\mathbb{D}$ which is also transparent at the same $k$. By adjusting the Hamiltonian parameters, a CLS setups may be assembled from multiple, simultaneously transparent scatterers in LS domains $\mathbb{D}_d$ ($d = 1,2,\dots$), with the state density following the LS of the setup. We refer to such a state as a `symmetric' perfect transmission resonance (sPTR); an example is illustrated in \cref{fig:ptr}. We here have two scatterers localized in domains $\mathbb{D}_A$ and $\mathbb{D}_B$, connected via a free (with $h,u$ like in the leads) gap $\mathbb{D}_C$, with their scattering properties shown in \cref{fig:ptr}\,(a). As we see in \cref{fig:ptr}\,(b), the vanishing of the individual $q_A^+,q_B^+,q_C^+$ reveals the $k$ at which the density $\rho_n$ is locally symmetric in $\mathbb{D}_A,\mathbb{D}_B,\mathbb{D}_C$, respectively, and an sPTR occurs when $q_A^+ = q_B^+ = q_C^+ = 0$. In contrast to an sPTR, transparency ($\mf{T} = 1$) may also occur in a state whose density does not follow any LS of the setup, which we refer to as an `asymmetric' PTR (aPTR). To see the relation of the NLCs to the occurrence of an aPTR, we consider a Hermitian setup of two different scatterers $\mathbb{D}_1$ and $\mathbb{D}_2$ with corresponding scattering matrices $\mathsf{S}_1$ and $\mathsf{S}_2$. The total $\mathsf{S}$-matrix has elements $\mf{r} = \mf{r}_1 + \mf{p}\mf{t}_1'\mf{r}_2\mf{t}_1$, $\mf{r}' = \mf{r}_2' + \mf{p}\mf{t}_2\mf{r}_1'\mf{t}_2'$, and $\mf{t} = \mf{t}' = \mf{p}\mf{t}_1\mf{t}_2$, where $\mf{p} = (1 - \mf{r}_2\mf{r}_1')$ accounts for all orders of multiple reflections between the scatterers. The condition $|\mf{t}| = 1$ for a PTR leads to $|\mf{r}_1'-\mf{r}_2|^2 = -4|\mf{r}_1'||\mf{r}_2|\sin\vartheta_1'\sin\vartheta_2$, with $\vartheta_{1,2}^{(\prime)}$ being the phases of $\mf{r}_{1,2}^{(\prime)}$, which in turn is equivalent to \begin{equation} \label{eq:PTR_condition} \mf{r}_1' = \mf{r}_2^*, \end{equation} as can be seen geometrically in the complex plane. Thus, in the special case $|\mf{t}_1| = |\mf{t}_2| = 1$, the phases $\vartheta_1',\vartheta_2$ are arbitrary, while $(\vartheta_1' + \vartheta_2)\,\text{mod}\,2\pi = 0$ must hold for $|\mf{t}_1| = |\mf{t}_2| \neq 1$ \cite{Zhukovsky2010_PRA_81_053808_PerfectTransmission}. If both scatterers are $\P$-symmetric about their centers, it additionally holds that $\mathring{\mf{r}}_d^*\mf{t}^{ }_d \in i\mathbb{R}$ ($d=1,2$), and it can then be shown that \begin{equation} \label{eq:t_PTR} \mf{t} = \pm \zeta^{2(\alpha_1 - \alpha_2)} \end{equation} at the PTR. That is, the phase of the transmission amplitude depends (up to $\pi$) only on the distance between the centers of \textit{any} two arbitrary but locally $\P$-symmetric scatterers. Assuming the scatterers to be $\P$-symmetric, each will also have spatially constant NLC $q_{\mathbb{D}_d}^\pm \in i\mathbb{R}$ ($d = 1,2$) at a given $E$. As shown in \cref{app:derivation_q}, at a PTR it then holds that \begin{equation} \label{eq:PTR_condition_q} q_{\mathbb{D}_1}^+ = \pm q_{\mathbb{D}_2}^+, \end{equation} the sign being determined by the details of a given setup. This is demonstrated in the example setup of \cref{fig:ptr}\,(c), featuring an aPTR where the nonzero NLCs $q_{\mathbb{D}_1}^+ \equiv q_A^+$ and $q_{\mathbb{D}_2}^+ \equiv q_B^+$ cross. The PTR relation in \cref{eq:t_PTR} can also be derived using \cref{eq:PTR_condition_q}; see \cref{app:derivation_q}. To summarize, if the setup of two LS scatterers is perfectly transmitting, then it always holds that $|q_{\mathbb{D}_1}^+| = |q_{\mathbb{D}_2}^+|$, with two possible cases with respect to the symmetry of $\rho_n$: (i) If $|q_{\mathbb{D}_1}^+| = |q_{\mathbb{D}_2}^+| = 0$, then we have an sPTR with $\rho_n$ being $\P$-symmetric in the LS domains. (ii) If $|q_{\mathbb{D}_1}^+| = |q_{\mathbb{D}_2}^+| \neq 0$, then we have an aPTR and $\rho_n$ is asymmetric with respect to the LS domains. The NLCs thus connect the transport properties of globally asymmetric systems to the spatially resolved profile of the scattering state amplitude with respect to its possible LSs. In composite CLS setup of multiple scatterers, there may be parts of locally symmetric and asymmetric $\rho_n$ at a PTR indicated by zero and nonzero equal NLC invariants, respectively. \begin{figure}[t!] \centering \includegraphics[width=1\columnwidth]{./local_pt.pdf} \caption{Scattering off a locally $\P\mathcal{{T}}$-symmetric non-Hermitian array $\mathbb{D} = \{\mathbb{D}_A,\mathbb{D}_B\}$ with onsite elements $\{v_n\}_X = \{0,-i\gamma_X,0,+i\gamma_X,0 \}$ ($X = A,B$) and common hoppings $\{h_{n,n+1} \} = 0.1\times\{ 1.0,1.5,1.5,1.0\}$. \textbf{(a1)} Quantity $|\mf{T} - 1| - \sqrt{\mf{R}\mf{R}'}$ of $\mathbb{D}$ and NLCs \textbf{(a2)} $q^+_A/i$ of $\mathbb{D}_A$ and \textbf{(a3)} $q^+_B/i$ of $\mathbb{D}_B$ for unit incoming amplitude from the left, in varying $k$ and $\gamma_B$ for fixed $\gamma_A = 0.15$. The colormap is normalized to $1$ in (a1) and truncated at $\pm 1$ in (a2,a3); it scales with the power of $1/4$ to increase contrast. \textbf{(b)} Density $|\psi_n|^2$ ($\circ$) and spatially resolved NLCs $q^+_{n}$ ({\tiny $\square$}) for local $\P_{\mathbb{D}_{A,B}}$ transforms, $q^{+\prime}_{n}$ ({\scriptsize $\triangledown$}) and $\mathring{q}^{+\prime}_{n}$ ({\scriptsize $\vartriangle$}) for global $\P$ transform, for $\gamma_B = \gamma_A \equiv \gamma$ (global $\P\mathcal{{T}}$ symmetry) at $k = \pi/3$ indicated by upper dotted line in (a1). \textbf{(c)} Same as (b) but for $\gamma_B = -\gamma_A \equiv \gamma$ (global $\P$ symmetry) at $k = 0.6\pi$ indicated by lower dotted line in (a1). } \label{fig:local_pt} \end{figure} \subsection{Invariants in locally $\P\mathcal{{T}}$-symmetric scattering} \label{sec:non-Hermitian_scattering} We close this section by addressing the NLCs of scattering states in non-Hermitian setups. Since the energy is here a free input parameter which is chosen real, the translation invariance of the NLCs in locally $\P\mathcal{{T}}$-symmetric domains is manifest for any choice of loss/gain parameters. In the case of a $\P\mathcal{{T}}$-symmetric scatterer, the $\mathsf{S}$-matrix elements are subject to the generalized unitarity relation \cite{Ge2012_PRA_85_023802_ConservationRelations} \begin{equation} \label{eq:conservation_PT} |\mf{t}|^2 - \frac{\mf{t}^*}{\mf{t}~}\mathring{\mf{r}} \, \mathring{\mf{r}}' = 1 ~~ \Rightarrow ~~ |\mf{T} - 1| = \sqrt{\mf{R}\mf{R}'} \end{equation} for $\mf{t} \neq 0$, with $\mf{t}^*\mf{r},\mf{t}^*\mf{r}' \in i \mathbb{R}$. The general expression (\ref{eq:q_scat_in_t_r_general}) for the NLC then becomes \begin{align} \label{eq:q_scat_in_t_r_PTsymm} q_\mathbb{D}^+ &= q_\mathbb{D}^{-*} = 2h \sin k \,\times \nonumber \\ &\left\{ \, |\mf{t}|^2 \, \left( \mathring{\mf{c}}_+^* \mathring{\mf{c}}_- - \mathring{\mf{c}}_+ \mathring{\mf{c}}_-^* \right) - \mathring{\mf{r}}^* \mf{t} \, |\mathring{\mf{c}}_+|^2 - \mathring{\mf{r}}' \mf{t}^* \, |\mathring{\mf{c}}_-|^2 \, \right\}, \end{align} which further reduces to \cref{eq:q_scat_in_t_r_herm_Psymm} if the $\P\mathcal{{T}}$-symmetric scatterer is also Hermitian. A $\P\mathcal{{T}}$-unbroken phase for a globally $\P\mathcal{{T}}$-symmetric, two-terminal scattering setup may be identified as the parametric region of $\hat{H}$ with unimodular $\mathsf{S}$-matrix eigenvalues $\lambda_\mathsf{S}^{1,2}$ at given energy \cite{Chong2011_PRL_106_093902_Mathcalpmathcalt-symBreaking}. Indeed, for $\mathsf{S}$-matrix eigenstates, where $\mf{c}_{<(>)}^{-(+)} = \lambda_\mathsf{S}^{1,2} \mf{c}_{<(>)}^{+(-)}$, the NLC becomes \begin{equation} \label{eq:q_scat_Seig} q_{\mathbb{D}}^+ = q_\mathbb{D}^{-*} = 2h \sin k \mathring{\mf{c}}_<^{+*} \, \mathring{\mf{c}}_>^- \left( 1 - |\lambda_\mathsf{S}^{1,2}|^2 \right), \end{equation} yielding a $\hat{P}\hat{T}$ eigenstate when $|\lambda_\mathsf{S}^{1,2}| = 1$ since then $q_{\mathbb{D}}^\pm = 0$. The latter condition, however, can be met in \cref{eq:q_scat_in_t_r_PTsymm} also for non-$\mathsf{S}$-eigenstates in dependence of the incoming amplitudes $\mathring{\mf{c}}_<^{+}, \mathring{\mf{c}}_>^-$ for a given $\mathsf{S}(E)$. The crossing from zero to nonzero NLC thus provides an extended identification of a $\P\mathcal{{T}}$ `phase transition' in scattering beyond $\mathsf{S}$-matrix eigenstates \cite{Kalozoumis2014_PRA_90_043809_SystematicPathway}, identical to that of bound systems (as discussed above in \cref{sec:non-Hermitian}). More importantly, the vanishing of NLCs can be employed to identify configurations with \textit{locally} $\P\mathcal{{T}}$-invariant states, that is, where \cref{eq:q_P_zero} is fulfilled in a $\P\mathcal{{T}}$-symmetric subdomain of the setup. As an example, in \cref{fig:local_pt} we consider a non-Hermitian setup of two attached domains $\mathbb{D}_A$, $\mathbb{D}_B$ with loss/gain parameter pairs $\pm \gamma_A$, $\pm \gamma_B$, respectively. The setup is designed such that it is globally $\P\mathcal{{T}}$-symmetric ($\P$-symmetric) for $\gamma_B = \gamma_A$ ($\gamma_B = -\gamma_A$). As we see in \cref{fig:local_pt}\,(a1), there are values of $\gamma_B \neq \gamma_A$ where \cref{eq:conservation_PT} is fulfilled at certain energies (see white contours), such that the system behaves as being $\P\mathcal{{T}}$-symmetric in terms of its $\mathsf{S}$-matrix. Interestingly, it is possible to fulfill \cref{eq:conservation_PT} at all $k$ with a locally $\P\mathcal{{T}}$-symmetric setup for appropriately chosen loss/gain parameters, as seen for the present setup for $\gamma_B = \gamma_A/3 = 0.05$ (lower horizontal white line in \cref{fig:local_pt}\,(a1)). In \cref{fig:local_pt}\,(a2) and (a3) we see that the NLCs $q_A^+$ and $q_B^+$, corresponding to local $\P\mathcal{{T}}$-symmetry in $\mathbb{D}_A$ and $\mathbb{D}_B$, vanish at different contours in the $(k,\gamma_B)$-plane, revealing the occurrence of locally symmetric density embedded into the globally $\P\mathcal{{T}}$-asymmetric system. Leaving a more comprehensive investigation of NLCs in relation to scattering properties of locally $\P\mathcal{{T}}$-symmetric setups for future work, we focus now on their spatial constancy in 1D domains. This is illustrated in \cref{fig:local_pt}\,(b) and (c), where the considered setup is, apart from locally $\P\mathcal{{T}}$-symmetric, also globally $\P\mathcal{{T}}$- and $\P$-symmetric, respectively. At the chosen generic $k$-values, the density profile $|\psi_n|^2$ is completely asymmetric under any of those symmetry transformations at the chosen (generic) $k$-values. For the local $\P$ transforms in $\mathbb{D}_A$ and $\mathbb{D}_B$, the domainwise constancy of the associated NLC $q_n^+$ reveals the local $\P\mathcal{{T}}$ symmetry of $\hat{H}$ encoded in the scattering state. Note that this is achievable because $E$ is set real as an input parameter, in contrast to non-Hermitian \textit{bound} 1D systems where local $\P\mathcal{{T}}$ symmetry typically does not support real eigenenergies. In \cref{fig:local_pt}\,(b), the constant NLC $q_n^{+\prime}$ (associated with global $\P$ transform) reflects the global $\P\mathcal{{T}}$ symmetry, while the dual NLC $\mathring{q}_n^{+\prime}$ is (varying but) symmetric; see \cref{eq:q_P_symmetry}. In \cref{fig:local_pt}\,(c), we have the opposite situation: $q_n^{+\prime}$ is symmetric, while the constant $\mathring{q}_n^{+\prime}$ reflects the global $\P$ symmetry, even in the presence of loss and gain. \section{Conclusions and perspectives} \label{sec:conclusions} A discrete nonlocal current-density continuity formalism was developed to relate localized spatial symmetries to Schr\"odinger wave properties in Hermitian and non-Hermitian lattice systems. Sources and sinks of the nonlocal currents (NLCs) are identified in the breaking of the local symmetries (LSs), with the associated charge evolution governed by the NLCs at symmetry domain boundaries. For stationary states, the symmetry-adapted NLCs are translationally invariant in one-dimensional finite domains with $\S(\mathcal{{T}})$-symmetric sub-Hamiltonians, where $\S = \P$ (inversion) or $\mathcal{{K}}$ (translation) is potentially combined with $\mathcal{{T}}$ (time reversal). These invariant NLCs reflect the local symmetries of generic single-particle lattice Hamiltonians encoded into arbitrarily irregular field profiles, and enable the mapping between wave amplitudes of symmetry-related sites in finite domains. We illustrated the NLC invariance in cases of complete, overlapping, and gapped domainwise symmetry, as well as for non-Hermitian (locally) $\P\mathcal{{T}}$- and $\mathcal{{K}}\mathcal{{T}}$-symmetric (scattering) systems with balanced gain and loss. In scattering setups, the NLCs were further shown to classify perfect transmission resonances with respect to their spatially resolved density profile, being symmetric (asymmetric) in adjacent locally symmetric lattice subdomains with equal and zero (nonzero) NLC magnitude. Further, in periodically driven setups the NLC invariance was shown to be retained for quasi-stationary (Floquet) states on period-average, thus revealing LSs also far from equilibrium. To summarize, the developed theoretical framework generalizes the concept of global symmetries with globally induced (state-independent) properties to local symmetries with locally induced (state-dependent) properties of lattice wave excitations. We have here utilized photonic waveguide arrays as an applicational platform since they are well described by a discrete Schr\"odinger equation with nearest neighbor couplings. The formalism and general results apply equally to other lattice systems modeled effectively by a discrete Schr\"odinger equation, like superlattice nanostructures or quantum dot arrays \cite{Ferry1997____TransportNanostructures}. For stationary states the applicability is further broadened to generic wave mechanical systems described by a discretized Helmholtz equation, such as e.\,g. granular acoustic media with domainwise homogeneities \cite{Boechler2011_JAP_109_074906_TunableVibrational}. In the limit of large site density with constant inter-site hopping, the same formalism can be equally employed for spatially continuous systems (with the lattice used as a numerical grid), treating simulations of, e.\,g., photonic multilayer devices \cite{Zhukovsky2010_PRA_81_053808_PerfectTransmission,Peng2002_APL_80_3063_Symmetry-inducedPerfect} or acoustic waveguides \cite{Hladky-hennion2013_JAP_113_154901_AcousticWave,Theocharis2014_NJP_16_093017_LimitsSlow}. The generic character of the proposed framework, based on a continuity equation, \cref{eq:continuity_nonlocal}, allows for a unified description of LS in Hermitian and non-Hermitian setups, independently of the boundary conditions imposed. Further, the present operator formulation of the NLCs, expressed in \cref{eq:q_n_+-_operator}, enables a straightforward extension beyond nearest neighbor couplings or to higher dimensions, simply by including the additional couplings into the hopping operators $\hat{H}^\pm$ accordingly. In general, the net NLC assigned to a site with (multidimensional) index $\bs{n}$ will then consist of the sum of nonlocal link currents $iq_{\bs{n}\bs{m}}^\S = \psi_\bs{n}^* h_{\S(\bs{n},\bs{m})} \psi_{\S(\bs{m})} - \psi_{\S(\bs{n})}h_{\bs{n},\bs{m}}^* \psi_{\bs{m}}^*$ over connected sites $\bs{m}$ for a given symmetry operation $\S$, defined in analogy with the 1D NLCs in \cref{eq:q_n+-}. A thorough account on symmetry considerations and associated NLCs in planar discrete systems, where rotations and plane reflections add to the possible $\S$-transforms, is presented in Ref.\,\cite{Roentgen2017_AOP_380_135_Non-localCurrents}. There, also the connectivity of sites under general local transformations plays a decisive role in defining NLCs \cite{connectivity}. Multidimensional divergence naturally prevents individual $q_{\bs{n}\bs{m}}^\S$ from being spatially constant along a selected dimension, just as is the case for the usual current. NLC invariance does apply if the sites $\bs{m}$ above represent next-nearest or (selected) remote neighbors along a \textit{single} dimension, as is effectively the case, e.\,g., for zigzag chains with embedded scatterers \cite{Stockhofe2015_PRA_92_023605_Sub-Supercritical} or discrete helical structures \cite{Stockhofe2015_PRA_91_023606_BlochDynamics}, respectively. Extended locally symmetric domains in such setups will then be distinguished by constant NLCs in arbitrary stationary states. The domainwise invariant stationary NLCs may further be generalized to discrete \textit{interacting} systems where the interaction itself is represented by a locally $\S\mathcal{{T}}$-symmetric function on the lattice sites. A promising case would be the discrete version of self-induced $\P\mathcal{{T}}$-symmetric potentials \cite{Sarma2014_PRE_89_052918_ContinuousDiscrete,Sinha2015_PRE_91_042908_SymmetriesExact} in lattice subdomains, with the mean-field nonlinear term $\rho_n = |\psi_n|^2$ replaced by the nonlocal density $\sigma_n = \psi_n^*\psi_{\bar{n}}$. Finally, an intriguing prospect would be to investigate local \textit{dynamical} symmetries, i.\,e. time reversal or translation symmetries within finite temporal intervals, potentially combined with local spatial symmetries, and their implications for nonequilibrium states. With the above perspectives, we believe that the developed connection between discrete nonlocal continuity and local symmetries may contribute to the understanding of wave structure and response in discrete systems with localized regularities. \section*{Acknowledgements} We are thankful to M.\,R\"ontgen for fruitful suggestions and critical reading of the manuscript, as well as to S.\,Weimann, A.\,Szameit, and A.\,V.\,Zampetaki for helpful discussions. C.\,V.\,M. and P.\,S. gratefully acknowledge funding by the Deutsche Forschungsgemeinschaft under grant DFG SCHM 885/29-1.
\section{Introduction \label{Sec:Intro}} Recent developments in the design of spintronic devices favor perpendicular magnetization, increasing the interest in materials with perpendicular magnetic anisotropy~\cite{Carcia85APL,Draaisma87JMMM,Monso02APL,Ikeda10NM}. One advantage is that devices with the same thermal stability can be switched more easily if the magnetization is perpendicular than if it is in plane~\cite{Ikeda10NM,Jung08APL,Nakayama08JAP,Sbiaa11JAP,Heinonen10JAP,Worledge11APL}. Since magnetostatic interactions favor in-plane magnetization for a thin film geometry, perpendicular magnetic anisotropy requires materials and interfaces that have strong magnetocrystalline anisotropy. Numerous computational studies~\cite{Daalderop92PRL,Daalderop94PRB,Sakuma94JPSJ,Nakamura10PRB,Yang11PRB,Odkhuu13PRB,Khoo13PRB,Hallal13PRB} show the importance of interfaces on magnetocrystalline anisotropy. The theory developed by Bruno~\cite{Bruno89APA,Bruno89PRB}, which provides an insightful explanation of the surface magnetocrystalline anisotropy and its correlation with orbital moment~\cite{Oppeneer98JMMM}, has been confirmed by experiments~\cite{Weller95PRL,Shaw13PRB}. The cases for which the Bruno's theory does not apply~\cite{Andersson07PRL} require a case by case study through first-principles calculations, making it difficult to get much insight. Some insight into perpendicular magnetic anisotropy can be gained by studying it within a simple model. One such model is the two-dimensional Rashba model~\cite{Bychkov84JETPL}. A two-dimensional Rashba model includes only minimal terms imposed by symmetry breaking. As extensive theoretical studies have shown, a two-dimensional Rashba model can capture most of the qualitative physics of spin-orbit coupling with broken inversion symmetry, such as the intrinsic spin Hall effect~\cite{Sinova04PRL,Inoue04PRB}, the intrinsic anomalous Hall effect~\cite{Inoue06PRL}, the fieldlike spin-orbit torque~\cite{Manchon08PRB,Matos-A09PRB}, the dampinglike spin-orbit torque~\cite{Wang12PRL,Kim12PRB,Pesin12PRB,Kurebayashi14NN}, the Dzyaloshinskii-Moriya interaction~\cite{Dzyaloshinskii57SPJ,Moriya60PR,Fert80PRL,Kim13PRL}, chiral spin motive forces~\cite{Kim12PRL,Tatara13PRB}, and corrections to the magnetic damping~\cite{Kim12PRL}, each of which has received attention because of its relevance for efficient device applications. Despite the extensive studies, exploring magnetocrystalline anisotropy within the simple model is still limited. Magnetocrystalline anisotropy derived from a two-dimensional Rashba model may clarify the correlations between it and various physical quantities listed above. There are recent theoretical and experimental studies on the possible correlation between the magnetic anisotropy and the Rashba spin-orbit coupling strength. The theories~\cite{Xu12JAP,Barnes14SR} report a simple proportionality relation between perpendicular magnetic anisotropy and square of the Rashba spin-orbit coupling strength and argued its connection to the voltage-controlled magnetic anisotropy~\cite{Nakamura10PRB,Weisheit07Science,Duan08PRL,Maruyama09NN,Wang12NM,Shiota13APL}. However, these experiments require further interpretation. Nistor \emph{et al.}~\cite{Nistor10IEEE} report the positive correlation between the Rashba spin-orbit coupling strength and the perpendicular magnetic anisotropy while Kim \emph{et al.}~\cite{Kim16APL} report an enhanced perpendicular magnetic anisotropy accompanied by a reduced Dzyaloshinskii-Moriya interaction in case of Ir/Co. Considering that the Dzyaloshinskii-Moriya interaction and the Rashba spin-orbit coupling are correlated according to \ocite{Kim13PRL}, the perpendicular magnetic anisotropy and the Rashba spin-orbit coupling vary opposite ways in the latter experiment. These inconsistent observations imply that the correlation is, even if it exists, not a simple proportionality. In such conceptually confusing situations, simple models, like that in this work, may provide insight into such complicated behavior. In this paper, we compute the magnetocrystalline anisotropy within a two-dimensional Rashba model in order to explore the correlation between the magnetocryatalline anisotropy and the Rashba spin-orbit coupling. We start from Rashba models added to different kinetic dispersions (Sec.~\ref{Sec:Model}) and demonstrate the following core results. First, a two-dimensional ferromagnetic Rashba model with a free electron dispersion results in \emph{exactly} zero anisotropy once the Fermi level is above a certain threshold value (Sec.~\ref{Sec:Result-A}). This behavior suggests that the simple model is not suitable for studying the magnetic anisotropic energy in that regime. Second, simple modifications of the model do give a finite magnetocrystalline anisotropy proportional to the square of the Rashba parameter (Sec.~\ref{Sec:Result-B}). We illustrate with tight-binding Hamiltonians that a Rashba system acquires perpendicular magnetic anisotropy for wide parameter ranges once the Brillouin zone and energy band width being finite in size is taken into account in the model. This demonstrates that the absence of magnetic anisotropy is a peculiar feature of the former free-electron Rashba model and we discuss the similarity of this behavior to the intrinsic spin Hall conductivity~\cite{Inoue04PRB}. Third, we show that the magnetocrystalline anisotropy of the modified Rashba models strongly depends on the band filling (Sec.~\ref{Sec:Result-B}). The system has in-plane magnetic anisotropy for low band filling. As the electronic states are occupied, the anisotropy evolves from in-plane to perpendicular and back to in-plane for high electron density. This suggests that it may be possible to see such behavior in systems in which the interfacial charge density can be modified, for example through a gate voltage. This also provides a way to reconcile mutually contradictory experimental results~\cite{Nistor10IEEE,Kim16APL} since different band filling can result in opposite behaviors of the magnetocrystalline anisotropy. We make further remarks in Sec.~\ref{Sec:Result-C} and summarize the paper in Sec.~\ref{Sec:Conclusion}. We present the analytic details in Appendix. \section{Model and formalism\label{Sec:Model}} We first present the model and formalism for a quadratic dispersion and then generalize the model to a tight-binding dispersion. In this paper, we call a Rashba model with a quadratic dispersion a ``free-electron Rashba model" and call a Rashba model with a tight-binding dispersion a ``tight-binding Rashba model". All the models include ferromagnetism in the same manner. \begin{figure} \includegraphics[width=6.4cm]{Fig1_electron_density} \caption{Geometrical meaning of $N_+(E)$, the number of minority electrons per unit area that satisfies $E_+(k_x,k_y)\le E$. $N_+(E)$ is given by the area enclosed by the constant energy contour of $E_+(k_x,k_y)=E$. $N_-(E)$, the number of majority electrons per unit area that satisfies $E_-(k_x,k_y)\le E$, has the similar meaning (not shown in the figure).} \label{Fig:electron_density} \end{figure} A ferromagnetic free-electron Rashba model is described by the following Hamiltonian. \begin{equation} H=\frac{\vec{p}^2}{2m_e}+J\vec{\sigma}\cdot\vec{m}+\frac{\alpha_R}{\hbar}(\vec{\sigma}\times\vec{p})\cdot\vhat{z},\label{Eq:Rashba_quadratic} \end{equation} where $\vec{p}$ is the momentum operator of itinerant electrons, $m_e$ is the effective electron mass, $J>0$ is the exchange energy between conduction electrons and the magnetization, $\vec{\sigma}$ is the vector of the Pauli spin matrices, $\alpha_R$ is the Rashba parameter, $\vhat{z}$ is the interface normal direction perpendicular to the two-dimensional space, and $\vec{m}$ is a unit vector along the direction of magnetization. The terms in Eq.~(\ref{Eq:Rashba_quadratic}) reflect the quadratic kinetic energy, the exchange interaction, and the Rashba spin-orbit coupling, respectively. The second and third term originate respectively from the time-reversal symmetry breaking (magnetism) and the space-inversion symmetry breaking (interface). Thus, the Rashba model is a minimal model taking account of the symmetry breaking features of the system. There are various types of Rashba models depending on the momentum dependence of spin-orbit coupling Hamiltonian~\cite{Gerchikov92SPS}. We confine the scope of the paper to the linear Rashba model that is linear in $\vec{p}$ [the last term in Eq.~(\ref{Eq:Rashba_quadratic})] and is the most widely used form. We emphasize that the Rashba model is mainly useful for its pedagogical value rather than its ability to make quantitative predictions for real materials~\cite{Krasovskii14PRB,Grytsyuk16PRB}. In Ref.~\cite{Grytsyuk16PRB}, the authors find that while it is possible to extract an effective Rashba parameter for realistic interfaces, it was not possible to connect this parameter to the calculated magnetocrystalline anisotropy. Still, even though the simple Rashba model may have only limited direct connection to the electronic structure of most interfaces of interest, it does provide a qualitative understanding of their physical properties. Diagonalization of Eq.~(\ref{Eq:Rashba_quadratic}) gives the single particle energy spectrum of the free-electron Rashba model. For a homogeneous magnetic texture, $H$ commutes with $\vec{p}$, thus $\vec{k}=\vec{p}/\hbar$ is a good quantum number. In terms of $\vec{k}$, diagonalization of the $2\times2$ Hamiltonian gives the energy eigenvalues $E_\pm(k_x,k_y)$ of $H$ for spin majority and minority bands, where $+$ and $-$ refer to minority and majority bands respectively. \begin{equation} E_\pm(k_x,k_y)=\frac{\hbar^2k^2}{2m_e}\pm\sqrt{J^2+2J\alpha_R(k_ym_x-k_xm_y)+\alpha_R^2k^2},\label{Eq:quadratic E_pm} \end{equation} where $k=|\vec{k}|$. Since the system has rotational symmetry around $\vhat{z}$ axis~\cite{Garello13NN}, we assume $m_y=0$ from now on. The total electron energy is given by summing up single particle energies at all electronic states below the Fermi level. To do this, we define $N_\pm(E)$, the number of minority/majority electrons per unit area that satisfies $E_\pm(k_x,k_y)\le E$. The geometrical meaning of $N_\pm(E)$ is the area enclosed by the constant energy contour $E_\pm(k_x,k_y)=E$ (Fig.~\ref{Fig:electron_density}). With this definition, the density of states for each band is given by $dN_\pm/dE$. Therefore, the expression of the total energy per unit area is given by \begin{equation} E_{\rm tot}(E_F)=\int_{E_{\rm min}^-}^{E_F}E\frac{dN_-}{dE}dE+\eta\int_{E_{\rm min}^+}^{E_F}E\frac{dN_+}{dE}dE,\label{Eq:total energy} \end{equation} where $E_{\rm min}^\pm$ is the band bottom energy of each band, below which $N_\pm(E)=0$. $\eta=0$ if $E_F<E_{\rm min}^+$ so that there is no occupied minority state, and $\eta=1$ otherwise. Such a factor is absent for the first term because we only consider the Fermi level $E_F$ above $E_{\rm min}^-$. Otherwise, the magnetocrystalline anisotropy is trivially zero since there is no occupied state. The total energy density depends on the direction of magnetization in general. We then compute the magnetocrystalline anisotropy by the difference of the total energy density for perpendicular and in-plane magnetizations; $\Delta E=E_{\rm tot}|_{\vec{m}=\vhat{x}}-E_{\rm tot}|_{\vec{m}=\vhat{z}}$. To compute $\Delta E$ from Eq.~(\ref{Eq:total energy}), the Fermi levels for $\vec{m}=\vhat{x}$ and $\vec{m}=\vhat{z}$ need to be specified. Since the energy dispersion [Eq.~(\ref{Eq:quadratic E_pm})] is in general dependent on $\vec{m}$, the Fermi level also changes as a function of $\vec{m}$, because the total electron density does not change for an isolated magnetic system. Thus, we fix the total electron density as a constraint. To fix the total electron density as a constraint, we define the total electron density below energy $E$. \begin{equation} N_e(E)=N_-(E)+\eta N_+(E).\label{Eq:total number density} \end{equation} The domain of $E$ is $E\ge E_{\rm min}^-$ so that $N_e(E)\ge0$. Since $N_e(E)$ is a strictly increasing function of $E$ in the domain, it has an inverse function in $N_e\ge 0$. We denote the inverse function by $\varepsilon_F(N_e)$. $\varepsilon_F$ has the same physical meaning as the Fermi level $E_F$ for a given electron density $N_e$. However, we use the different symbols to emphasize that $\varepsilon_F$ is given by a \emph{function} of the electron density while $E_F$ is just a \emph{given constant}. With this definitions, the magnetocrystalline anisotropy is given by \begin{equation} \Delta E(N_e)=E_{\rm tot}\left(\varepsilon_F(N_e)\right)|_{\vec{m}=\vhat{x}}-E_{\rm tot}\left(\varepsilon_F(N_e)\right)|_{\vec{m}=\vhat{z}}.\label{Eq:fixed electron density} \end{equation} This is the central equation of the formalism to compute the magnetocrystalline anisotropy. We now compute the magnetic anisotropy for a tight-binding Rashba model. To construct a tight-binding Hamiltonian, we discretize Eq.~(\ref{Eq:Rashba_quadratic})~\cite{Mireles01PRB,Pareek02PRB}. In the main text, we use a tight-binding Hamiltonian for a two-dimensional square lattice as an example. The construction and the results of a tight-binding Hamiltonian for a two-dimensional hexagonal lattice (equivalently a triangular lattice) are presented in Appendix~\ref{Sec(A):hexagonal}. For simplicity, we use a two-band tight-binding Hamiltonian including spin degrees of freedom only, but ignoring all orbital degrees of freedom. \begin{subequations} The tight-binding Hamiltonian we construct here is given by \begin{equation} H=H_K+H_J+H_R, \end{equation} where $H_K$, $H_J$, and $H_R$ are the discretized versions of the kinetic energy, the exchange energy, and the Rashba Hamiltonian, respectively. $H_K$ is constructed by the hopping terms to the nearest neightbor sites. \begin{equation} H_K=-\frac{\hbar^2}{2m_ea^2}\sum_{pq\sigma}(C_{p+1,q,\sigma}^\dagger C_{p,q,\sigma}+C_{p,q+1,\sigma}^\dagger C_{p,q,\sigma})+\mathrm{h.c.}, \end{equation} where $a$ is the lattice constant, $p$ and $q$ are the site indicies, and $C_{p,q,\sigma}$ is the electron annihilation operator at site $(x,y)=(pa,qa)$ with spin $\sigma$. h.c. refers to hermitian conjugate of all the terms in front of it. Each term in the summand corresponds to hopping to $x$ and $y$ directions respectively. The hopping parameter $-(\hbar^2/2m_ea^2)$ is determined by matching the energy dispersion with the free electron dispersion $\hbar^2k^2/2m_e$ in the continuum limit $a\to0$. $H_J$ is constructed by on-site energy that mixes the spin degree of freedom. \begin{equation} H_J=J\sum_{pq\sigma\sigma'}\left[C_{p,q,\sigma}^\dagger(\vec{\sigma})_{\sigma,\sigma'}C_{p,q,\sigma'}\right]\cdot\vec{m}, \end{equation} where $(\vec{\sigma})_{\sigma,\sigma'}$ is the matrix element of the Pauli matrices. $H_R$ is constructed as following. We impose a hopping term from a site to a neighboring site, along a direction $\vhat{u}$. Since $\vhat{u}$ corresponds to the electron momentum direction, the term acquires a spin Pauli matrix $(\vec{\sigma}\times\vhat{u})\cdot\vhat{z}$. Then, a hopping term along the $y$ direction acquiring $\sigma_x$ is given by $itC_{p,q+1,\sigma'}^\dagger(\sigma_x)_{\sigma,\sigma'}C_{p,q,\sigma}$, where $t$ is a real hopping parameter. After considering all the neighboring hopping terms satisfying the hermiticity condition, we determine the hopping parameter by taking continuum limit up to $\mathcal{O}(a^2)$ and matching the energy dispersion with Eq.~(\ref{Eq:quadratic E_pm}). In this way, we end up with \begin{align} H_R&=i\frac{\alpha_R}{2a}\sum_{pq\sigma\sigma'}\left[C_{p,q+1,\sigma}^\dagger(\sigma_x)_{\sigma,\sigma'}C_{p,q,\sigma}\right.\nonumber\\ &\phantom{=i\frac{\alpha_R}{2a}\sum_{pq\sigma\sigma'}[~}\left.-C_{p+1,q,\sigma}^\dagger(\sigma_y)_{\sigma,\sigma'}C_{p,q,\sigma}\right]+\mathrm{h.c.}. \end{align} \label{Eq:TB Hamiltonian} \end{subequations} For more details of determining the hopping parameters, see the example in Appendix~\ref{Sec(A):hexagonal} for a two-dimensional hexagonal lattice. Now we use the same formalism [Eq.~(\ref{Eq:fixed electron density})]. We use the discrete translational symmetry of the lattice to use the Bloch theorem and compute the energy dispersion relation as a function of the crystal momentum. One difference is that the Brillouin zone and the band width for a tight-binding Hamiltonian are finite (Fig.~\ref{Fig:BZ}), while these are infinite for the free electron model Eq.~(\ref{Eq:Rashba_quadratic}). Therefore, the domain of the integration in Eq.~(\ref{Eq:total energy}) is not only limited by the Fermi contour, but also limited by the Brillouin zone boundary. We show in Sec.~\ref{Sec:Result-B} that the finite band width is a crucial feature for emergence of perpendicular magnetic anisotropy for wide ranges of parameters. \begin{figure} \includegraphics[width=7.6cm]{Fig2_BZ} \caption{Brillouin zone of Eq.~(\ref{Eq:TB Hamiltonian}). We denote the $\rm \Gamma$ and $\rm M$ points for later purpose. } \label{Fig:BZ} \end{figure} \section{Magnetocrystalline anisotropy\label{Sec:Result}} \subsection{Free-electron Rashba model\label{Sec:Result-A}} Although the free electron model we present above [Eq.~(\ref{Eq:Rashba_quadratic})] has a simple form, it still requires complicated mathematics to assess the magnetocrystalline anisotropy predicted by the model since a constant energy contour given by Eq.~(\ref{Eq:quadratic E_pm}) is a quartic curve. In this section, we first discuss results of a perturbative analysis, which assumes $\alpha_R$ to be small and keeps terms only up to $\mathcal{O}(\alpha_R^2)$. In this regime, a constant energy contour is a quadratic curve which allows the magnetocrystalline anisotropy to be calculated analytically. The analytic results shall give useful insight into the model. We then go beyond the perturbative regime and discuss exact results in the nonperturbative regime with arbitrary $\alpha_R$. In particular, we check if the conclusions from the perturbative analysis remain valid in the nonperturbative regime. \subsubsection{Perturbation theory: Insights into the model} As we show in Appendix.~\ref{Sec:Detail-A}, expanding Eq.~(\ref{Eq:quadratic E_pm}) up to $\mathcal{O}(\alpha_R^2)$, we obtain a quadratic equation with respect to $(k_x,k_y)$. The contour $E_\pm(k_x,k_y)=E$ forms an ellipse, by which the area enclosed is exactly computable. Since $N_\pm(E)$ is exactly given in a simple way, calculating Eq.~(\ref{Eq:total energy}) is straightforward. In this perturbative regime, the relation between electron number density and the Fermi level Eq.~(\ref{Eq:total number density}) is linearly given so inverting $N_e(E)$ is also straightforward. Then, the magnetic anisotropy $\Delta E(N_e)$ [Eq.~(\ref{Eq:fixed electron density})] is evaluated after simple algebra. There are two different regimes; $E_F<E_{\rm min}^+$ and $E_F\ge E_{\rm min}^+$. For the first case, there are no minority electrons. For this case, $\eta=0$ in Eq.~(\ref{Eq:total energy}). In the second case, the minority band is also occupied. For this case, $\eta=1$ in Eq.~(\ref{Eq:total energy}). We examine the cases one by one. When only majority band is occupied ($\eta=0$), the magnetocrystalline anisotropy [Eq.~(\ref{Eq:fixed electron density})] is \begin{equation} \Delta E(N_e)=-\frac{N_em_e\alpha_R^2}{2\hbar^2}\left(1-\frac{N_e}{N_-(E_{\rm min}^+)}\right)~~\mathrm{(majority~only)}.\label{Eq:MCA majority only} \end{equation} Here $N_-(E_{\rm min}^+)$ is the electron density when the Fermi level touches the bottom of the minority band. The result shows that the magnetocrystalline anisotropy is at least quadratic in $\alpha_R$. Below we show this is a result of symmetry that the magnetocrystalline anisotropy should be an even function of $\alpha_R$. Equation~(\ref{Eq:MCA majority only}) is valid only when there is no minority electrons $0<N_e<N_-(E_{\rm min}^+)$. We show in Appendix~\ref{Sec:Detail-A} that $N_-(E_{\rm min}^+)=Jm_e/\pi\hbar^2+\mathcal{O}(\alpha_R^2)$, which is independent of $\vec{m}$~\footnote{We can ignore the $\mathcal{O}(\alpha_R^2)$ term here since Eq.~(\ref{Eq:MCA majority only}) is already proportional to $\alpha_R^2$.}. Since $N_e<N_-(E_{\rm min}^+)$, Eq.~(\ref{Eq:MCA majority only}) predicts the magnetocryatalline anisotropy to be negative. The sign corresponds to in-plane magnetic anisotropy, which is counter to the na\"{i}ve expectation that the Rashba spin-orbit coupling generates the perpendicular magnetic anisotropy. However, this observation does not contradict experimental observations showing perpendicular magnetic anisotropy since experimental results are usually obtained when both bands are occupied. Next we examine the second regime where both bands are occupied ($\eta=1$). Strikingly, the same formalism leads us \begin{equation} \Delta E(N_e)=0~~\mathrm{(both~bands~occupied)},\label{Eq:absence MCA} \end{equation} regardless of $N_e$. There is no magnetocrystalline anisotropy for this case. An intuitive way to understand this striking behavior is observing the absence of angular dependence of $N_e$ as a function of the Fermi level. In Appendix~\ref{Sec:Detail-A}, we show that, once both bands are occupied, \begin{equation} (2\pi)^2 N_e(E_F)=\frac{4\pi m_e(m_e\alpha_R^2+E_F\hbar^2)}{\hbar^4},\label{Eq:Ne vs EF} \end{equation} which has no $\vec{m}$ dependence. Therefore, when we increase the number of electrons slightly by $dN_e$, the contribution to the additional magnetocrystalline anisotropy is $E_FdN_e=[(\pi \hbar^2N_e/m_e)-(m_e\alpha_R^2/\hbar^2)]dN_e$. Since this is independent of the direction of magnetization, adding electrons does not change the magnetocrystalline anisotropy at all. By noting that Eq.~(\ref{Eq:MCA majority only}) vanishes $N_e=N_-(E_{\rm min}^+)$, we end up with Eq.~(\ref{Eq:absence MCA}). There is a recent theory~\cite{Barnes14SR} which predicts perpendicular magnetic anisotropy with the free-electron Rashba model. In that work, the magnetocrystalline anisotropy is expressed by a characteristic energy denoted by $T$. Here we show that $T$ takes a value within that model such that the anisotropy is strictly zero. To summarize this section, by using a perturbative approach, we make the following observations. First, the free-electron Rashba model model gives the magnetocrystalline anisotropy that is at least quadratic in $\alpha_R$. Second, the model does not give perpendicular magnetic anisotropy. Third, the magnetocrystalline anisotropy vanishes unless only a single band is occupied. We summarize the result in Fig.~\ref{Fig:summary_quadratic}. \begin{figure} \includegraphics[width=8.4cm]{Fig3_summary_quadratic} \caption{Summary of the results of the magnetocrystalline anisotropy (MCA) from the ferromagnetic free-electron Rashba model. The lower band and the upper band are respectively majority and minority band. The horizonal and vertical displacements of each band are respectively due to Rashba spin-orbit coupling and the exchange splitting. The diagram shows behaviors of the magnetocrystalline anisotropy for each region. The calculated magnetocrystalline anisotropy shows in-plane magnetic anisotropy (IMA) when electrons in the ground state occupy only the majority band, and the magnetic anisotropy energy is at least quadratic in the Rashba parameter $\alpha_R$. On the other hand, the magnetocrystalline anisotropy vanishes once both bands are partially occupied in the ground state.} \label{Fig:summary_quadratic} \end{figure} \subsubsection{Beyond perturbation: Extension of validity} So far, we examined the properties of the free-electron Rashba model in the perturbative regime. The perturbative approach allows gaining insight into the model easily but it works only for small $\alpha_R$. In this section, we go beyond the perturbative regime to see if the conclusions we made in the previous section change when $\alpha_R$ is not small. We prove that the qualitative results from the perturbative analysis remain valid for large $\alpha_R$ as well. First we prove that the magnetocrystalline anisotropy is at least quadratic in $\alpha_R$. For this, we consider the sign reversal of $\alpha_R$. This does not affect the energy eigenvalue spectrum of the Hamiltonian at all since the energy eigenvalue satisfies the property, $E(k_x,k_y;\alpha_R)=E(-k_x,-k_y;-\alpha_R)$ [see Eq.~(\ref{Eq:quadratic E_pm})]. Since the total energy density cannot change by a rotational transformation, it should be invariant under $\alpha_R\to-\alpha_R$. Therefore, the magnetocrystalline anisotropy may be expanded as a power series of $\alpha_R^2$ with the leading order term proportional to $\alpha_R^2$~\footnote{By the same transformation, we also end up with that the total energy density is expanded by $(1-m_z^2)$.}. When $\alpha_R$ becomes larger, higher order terms in $\alpha_R^2$ can contribute. In Fig.~\ref{Fig:quadratic_numerical}, we numerically compute the magnetocrystalline anisotropy divided by $\alpha_R^2$. We see that the first three curves almost overlap with each other. However, when $\alpha_R$ becomes larger so $\alpha_R k_F$ is comparable to $J$, the magnetocryatalline anisotropy divided by $\alpha_R^2$ varies as $\alpha_R$ changes, implying the breakdown of the perturbative result [Eq.~(\ref{Eq:MCA majority only})]. Although the perturbation theory breaks down quantitatively, qualitative features remain the same for a wide range of $\alpha_R$. In particular, Fig.~\ref{Fig:quadratic_numerical} shows that the magnetocrystalline anisotropy predicted by the free-electron Rashba model is negative (in-plane magnetic anisotropy) for low electron density and vanishes (within the numerical error of our calculation) once the total electron density goes above threshold value. Perpendicular magnetic anisotropy is never generated. \begin{figure} \includegraphics[width=8.6cm]{Fig4_quadratic_numerical} \caption{(color online) Numerical computation of the magnetocryatalline anisotropy (MCA) divided by $\alpha_R^2$ within the free-electron Rashba model. The results show in-plane magnetic anisotropy for wide range of the Rashba parameter and zero anistropy after a certain threshold within the numerical error. Note that the magnetocrystalline anisotropy is proportional to $\alpha_R^2$ for small Rashba parameters, confirming the result of our perturbation approach. We use $J=1~\mathrm{eV}$ for the simulation.} \label{Fig:quadratic_numerical} \end{figure} It turns out that Eq.~(\ref{Eq:absence MCA}) can be rigourously proven for arbitrary $\alpha_R$. Due to its complexity, here we sketch the proof only briefly. The detailed proof is presented in Appendix~\ref{Sec:Detail-B}. The proof proceeds as follows. First, we consider a situation where both bands are occupied for both $\vec{m}=\vhat{x}$ and $\vec{m}=\vhat{z}$, which occurs if and only if $E_F\ge J$~\footnote{It is still possible for the minority band to be occupied for $\vec{m}=\vhat{x}$ but not for $\vec{m}=\vhat{z}$. This case is not eligible for the proof. The assumption requires that the minority band should be occupied regardless of the direction of magnetization. For more information, see Appendix~\ref{Sec:Detail-B}.}. We then use the Cauchy integral formalism for complex contour integrals to show that Eq.~(\ref{Eq:Ne vs EF}) holds beyond the perturbative regime. As discussed in the previous section, Eq.~(\ref{Eq:Ne vs EF}) implies that the magnetocrystalline anisotropy is independent of the Fermi level when $E_F\ge J$. Next, we show that $\Delta E$ vanishes in the large $E_F$ limit. When combined together these features prove that $\Delta E$ should be exactly zero for $E_F\ge J$, which is nothing but Eq.~(\ref{Eq:absence MCA}). Here we emphasize that although Eq.~(\ref{Eq:absence MCA}) holds for arbitrary $\alpha_R$, it is very unstable with respect to the model variation since it is crucially dependent on $N_e$ being independent of the magnetization $\vec{m}$ [Eq.~(\ref{Eq:Ne vs EF})], which holds only for the idealized free-electron Rashba model [Eq.~(\ref{Eq:Rashba_quadratic})]. Various types of modification of the Rashba model which make it more realistic can break this independence and result in the violation of Eq.~(\ref{Eq:absence MCA}). Possible deformations include the change of dispersion from strictly quadratic and truncation of the infinite band width to finite width. In the next section, we consider a tight-binding Rashba model, which is more realistic than the idealized free-electron Rashba model in the sense that the former has finite band width whereas the latter has infinite band width. This model shows that Eq.~(\ref{Eq:absence MCA}) is indeed violated and perpendicular magnetic anisotropy emerges. In passing, we note that not only the magnetocrystalline anisotropy but also other properties of the idealized free-electron Rashba model are peculiar. A well known example is the intrinsic spin Hall conductivity~\cite{Sinova04PRL,Inoue04PRB}. For the idealized free-electron Rashba model, it vanishes identically when both bands are partially filled but for slightly modified Rashba models~\cite{Murakami04PRB,Nomura05PRB}, it is finite. \subsection{Tight-binding Rashba model\label{Sec:Result-B}} \begin{figure} \includegraphics[width=8.6cm]{Fig5_TB-numerical} \caption{(color online) (a) Energy dispersion of the tight-binding Rashba model [Eq.~(\ref{Eq:energy dispersion - tight binding})]. Energies as a function of $k_y$, for $k_x=0$, are given by the red and blue curves for majority and minority bands respectively. The asymmetry between $-k_y$ and $k_y$ originates from the Rashba interaction which is taken to be $\alpha_R=0.02~\mathrm{eV}\cdot\mathrm{nm}$ in this figure. Near the band minimum, the energy dispersion can be approximated by a quadratic dispersion [Eq.~(\ref{Eq:quadratic E_pm})]. However, near the Brillouin zone boundary, it differs significantly. The magnetization direction is taken to be $\vec{m}=(1/2,0,\sqrt{3}/2)$. Depending on the Rashba parameter and the direction of magnetization, the dispersion can be even more complicated particularly when the two bands approach each other. (b) The magnetocrystalline anisotropy (MCA) as a function of the total electron density divided by the electron density for completely filled bands $N_{\rm max}=2.2\times10^{19}\rm m^{-2}$. We use the Rashba parameters $\alpha_R=0.02~\mathrm{eV}\cdot$nm,$~0.05~\mathrm{eV}\cdot$nm, and $0.08~\mathrm{eV}\cdot$nm. The results show in-plane magnetic anisotropy (IMA) for very low and very high electron occupation. For a wide range of the intermediate electron density, it shows perpendicular magneitc anisotropy (PMA). (c) The peak values of the magnetocrystalline anisotropy as a function of the Rashba parameter. The blue circles are the simulation results and the solid line is a quadratic fitting result. $J=1\rm~eV$, $m_e=9.1\times10^{-31}\rm~kg$, and $a=0.3\rm~nm$. The area of the two-dimensional system in this simulation is $L\times L$ where $L=60\rm~nm$ is the length of each direction.} \label{Fig:TB-numerical} \end{figure} We consider the tight-binding Rashba model for a square lattice. From Eq.~(\ref{Eq:TB Hamiltonian}), we use the discrete crystal symmetry and the Bloch theorem. We define $C_{\vec{k},\sigma}=(1/\sqrt{N})\sum_{p,q}\exp(ik_xpa+ik_yqa)C_{p,q,\sigma}$, where $N$ is the total number of sites and $\vec{k}$=$(k_x,k_y)$ is the crystal momentum within the Brillouin zone in Fig.~\ref{Fig:BZ}, which diagonalizes the Hamiltonian. We define the reduced $2\times2$ Hamiltonian $h(\vec{k})$ by $H=\sum_{\vec{k},\sigma,\sigma'}C_{\vec{k},\sigma'}^\dagger [h(\vec{k})]_{\sigma',\sigma}C_{\vec{k},\sigma}$, where $[h(\vec{k})]_{\sigma',\sigma}$ is the matrix element of $h(\vec{k})$ in the $2\times2$ spin space. Since $h(\vec{k})$ is a $2\times2$ matrix, we compute the eigenvalues exactly. \begin{align} E_\pm(\vec{k})&=-\frac{\hbar^2}{m_ea^2}(\cos k_xa+\cos k_ya)\pm\left[J^2m_z^2\phantom{\frac{\alpha_R}{a}}\right.\nonumber\\ &\quad\left.+\left(J m_x+\frac{\alpha_R}{a}\sin k_ya\right)^2+\left(J m_y-\frac{\alpha_R}{a}\sin k_xa\right)^2\right]^{1/2}.\label{Eq:energy dispersion - tight binding} \end{align} We plot Eq.~(\ref{Eq:energy dispersion - tight binding}) as a function of $k_y$ for $k_x=0$ in Fig.~\ref{Fig:TB-numerical}(a). The formalism given in Eq.~(\ref{Eq:fixed electron density}) provides a way to compute the magnetocrystalline anisotropy. In this section, we present the results for a two-dimensional square lattice only. The result for a two-dimensional hexagonal lattice is presented in Appendix~\ref{Sec(A):hexagonal}. Figure~\ref{Fig:TB-numerical}(b) shows the relation between the magnetocrystalline anisotropy and the electron density (normalized to one when both majority and minority bands are completely filled). For low electron density ($N_e\lesssim0.25N_{\rm max}$), the system acquires in-plane magnetic anisotropy. This is understandable in that a parabolic approximation of the dispersion relation [Eq.~(\ref{Eq:energy dispersion - tight binding})] is equivalent to that of the free-electron Rashba model [Eq.~(\ref{Eq:quadratic E_pm})]. However, as the electron density increases, the parabolic approximation breaks down, thus the system can acquire perpendicular magnetic anisotropy from the point where the effective mass becomes negative ($N_e\approx0.25N_{\rm max}$). After this point, the perpendicular magnetic anisotropy persist widely, until $N_e\approx0.75N_{\rm max}$, covering the whole regime where the two spin bands overlap, which is in distinct contrast to the prediction [Eq.~(\ref{Eq:absence MCA})] of the idealized free-electron Rashba model. Our computation shows a similar behavior to a first-principles calculation~\cite{Daalderop92PRL} on the band filling dependence of the magnetocrystalline anisotropy. Although a simple Rashba model cannot be exact, it provides much insight into the system. Changing the electron density by means of substituting atoms or an external voltage can change not only the magnitude of the magnetocrystalline anisotropy but also its sign. There are two key differences between the tight-binding Rashba model and the free-electron Rashba model that give rise to finite perpendicular magnetic anisotropy. The first difference is the deviation of the dispersion from a quadratic. It allows a nonzero magnetocrystalline anisotropy for a wide range of band filling, due to breakdown of Eq.~(\ref{Eq:Ne vs EF}). Once the relation between $N_e$ and $E_F$ has a magnetization dependence, a finite magnetocrystalline anisotropy can arise even if both bands are occupied. The second difference is finiteness of band width (or Brillouin zone). It plays a crucial role for the sign of the magnetocrystalline anisotropy. Since the band width is finite, there must be both maximum (band top) and minimum (band bottom) energies. Near the band bottom (the $\mathrm{\Gamma}$ point in Fig.~\ref{Fig:BZ}), the dispersion is electron-like with a positive effective mass. Thus, the theory in Sec.~\ref{Sec:Result-A} is relevant, and the sign of the magnetocrystalline anisotropy corresponds to in-plane magnetic anisotropy for low electron density. On the other hand, near the band top (the $\mathrm{M}$ point in Fig.~\ref{Fig:BZ}), the dispersion is holelike with a negative effective mass. Since the behavior is opposite to the electron-like part, the sign of the magnetocrystalline anisotropy can correspond to perpendicular magnetic anisotropy. As a result, the magnetocrystalline anisotropy near the band top of the majority band corresponds to perpendicular magnetic anisotropy [Fig.~\ref{Fig:TB-numerical}(b)]. We remark that our analysis is similar to that in \ocite{Daalderop94PRB}, which implies that most important qualitative features of the anisotropy energy can be understood by analyzing high symmetry points, where band maximum and minimum are located. Figure~\ref{Fig:TB-numerical}(c) indicates that the magnetocrystalline anisotropy is proportional to $\alpha_R^2$ in a reasonable range of $\alpha_R$. We argue analytically in Sec.~\ref{Sec:Result-A} that the magnetocryatalline anisotropy can be expanded in terms of $\alpha_R^2$. The same argument applies to this tight-binding Rashba model. We discuss below in Sec.~\ref{Sec:Result-C} the implication of the sign independence on experimental observation of the correlation between the magnetocrystalline anisotropy and other spin-orbit coupling phenomena. \begin{figure} \includegraphics[width=7.3cm]{Fig6_MCA_Jsd} \caption{(color online) The magnetocrystalline anisotropy (MCA) for various the exchange energies $J=\rm0.3~eV,~0.6~eV$, and 0.9 eV with a fixed Rashba parameter $\alpha_R=0.05\rm~eV\cdot$nm. $m_e=9.1\times10^{-31}$ kg, and $a=0.3$ nm are used. The stronger the exchange energy is, the higher the magnetocrystalline anisotropy is. On the other hand, the weaker the exchange energy is, the wider the range of the electron density that acquires perpendicular magnetic anisotropy. } \label{Fig:MCA_Jsd} \end{figure} We now fix the Rashba parameter and compute the magnetocrystalline anisotropy for various exchange strengths. Figure~\ref{Fig:MCA_Jsd} shows the result. The general behaviors discussed above remain the same. The weaker $J$ is, the wider the range of the emergence of perpendicular magnetic anisotropy is. This is because the band overlap between the majority and minority bands increases as $J$ decreases. On the other hand, the stronger $J$ is, the stronger the magnetocrystalline anisotropy is. Therefore, we conclude that materials with strong $J$ are advantageous to achieve a strong magnetocrystalline anisotropy with high controllability under an external voltage. On the other hand, materials with weak $J$ are advantageous for perpendicular magnetic anisotropies that stably exists over a wide range of the electron density. The mirror symmetry of the magnetocrystalline anisotropy in Fig.~\ref{Fig:TB-numerical}(b) originates from the symmetry between electrons at the $\rm \Gamma$ point and holes at the $\rm M$ point. From Eq.~(\ref{Eq:energy dispersion - tight binding}), the total energy density for completely filled bands is $E_{\rm filled}=(2\pi)^{-2}\int_{-\pi/a}^{\pi/a}\int_{-\pi/a}^{\pi/a}[E_+(k_x,k_y)+E_-(k_x,k_y)]d^2k=0$, thus the magnetocrystalline anisotropy at high electron density can be computed by hole contributions near the $\rm M$ point. In other words, $\Delta E(N_{\rm max}-N_e)$ is the same as the contribution from $N_e$ number of holes. Equation~(\ref{Eq:energy dispersion - tight binding}) shows the symmetry between the electron-like $\rm \Gamma$ point and holelike $\rm M$ point, $E_\pm(k_x,k_y)=-E_\mp(\pi/a-k_x,\pi/a-k_y)$, which implies $\Delta E(N_{\rm max}-N_e)=\Delta E(N_e)$. This is a model-specific property. For instance, in Appendix~\ref{Sec(A):hexagonal}, we start from a two-dimensional hexagonal lattice for which the dispersion does not have such symmetry [Eq.~(\ref{Eq(A):hexagonal dispersion})] and shows that this mirror symmetry around $N_e=0.5N_{\rm max}$ is not general. There are four kinks in the magnetocrystalline anisotropy in Fig.~\ref{Fig:TB-numerical}(b). We observe that the two kinks around $N_e\approx 0.3N_{\rm max}$ and $N_e\approx 0.7N_{\rm max}$ correspond to the bottom of the minority band and the top of the majority band, respectively. Since the minority band starts to be occupied from $N_e\approx 0.3N_{\rm max}$, the behaviors of the magnetocrystalline anisotropy below and above this value are different. Similarly, the majority band is no longer occupied above $N_e\approx 0.7N_{\rm max}$. There are two more kinks near $N_e\approx 0.25N_{\rm max}$ and $N_e\approx 0.75N_{\rm max}$. We see that these occur near the point where each band are half filled. Near these points, electrons at the Fermi level is near inflection points of the energy dispersion so the effective mass changes its sign. The existence of kinks is quite general as presented in Fig.~\ref{Fig:MCA_Jsd} and Appendix~\ref{Sec(A):hexagonal}. To summarize this section, we perform tight-binding calculations for the magnetocrystalline anisotropy within a discretized Rashba model. The deviation from a quadratic dispersion allows a nonzero magnetocrystalline anisotropy even when both bands are occupied. The finite band width allows emergence of perpendicular magnetic anisotropy over a wide range of the total electron density. The resulting magnetocrystalline anisotropy is proportional to $\alpha_R^2$ for a reasonable range of $\alpha_R$. Even though $\alpha_R$ becomes larger than that, the magnetocrystalline anisotropy is independent of the sign of $\alpha_R$ due to symmetry, and is constrained by symmetry to be even powers of $\alpha_R$. The implications of the sign independence and comparison with experiments are discussed in the next section. We perform similar calculations for a two-dimensional hexagonal lattice as well as a square lattice discussed here. The results are present in Appendix~\ref{Sec(A):hexagonal}. \subsection{Remarks\label{Sec:Result-C}} The dependence of the magnetocrystalline anisotropy on $\alpha_R$ differs from the corresponding dependence of many other phenomena of spin-orbit coupling origin. In the previous sections, we show by symmetry that the magnetocrystalline anisotropy is independent of the sign of $\alpha_R$. As a result, it is quadratic in $\alpha_R$ for a reasonable range of $\alpha_R$. On the other hand, other phenomena of spin-orbit origin such as spin-orbit torque and Dzyaloshinskii-Moriya interaction have a linear contribution in $\alpha_R$. This feature has clear experimental implications. When a magnetic layer has two interfaces with opposite Rashba parameters, the total spin-orbit torques and the total Dzyaloshinskii-Moriya interaction arising from the both interfaces are zero since they are odd in $\alpha_R$ and the contributions from the two interfaces mutually cancel each other. However, such cancellation does not occur for the magnetocrystalline anisotropy and the contributions from the two interfaces add up since the anisotropy is even in $\alpha_R$. A similar phenomenon persists even when only one interface of a magnetic layer is subject to strong inversion asymmetry, if there are multiple energy bands. It is demonstrated~\cite{Park13PRB} that multiple bands for a given interface may experience different signs of the Rashba spin-orbit coupling. In such a situation, it is possible that contributions of those bands to the magnetocrystalline anisotropy can add up whereas their contributions to the linear spin-orbit phenomena such as spin-orbit torque and Dzyaloshinskii-Moriya interaction tend to cancel out. This observation indicates that simple proportionality analysis in experiments may fail to capture the correlation between the magnetocrystalline anisotropy and other phenomena of spin-orbit coupling origin. In this sense, our observation can be consistent with a recent experiment~\cite{Kim16APL} reporting the opposite behaviors of the Dzyaloshinskii-Moriya interaction and the perpendicular magnetic anisotropy in Ir/Co/AlO$_x$ multilayers for various thickness of Co. According to the work, the Dzyaloshinskii-Moriya interaction reduces as the thickness of Co increases, while the perpendicular magnetic anisotropy increases. This difference may originate from multiple origins of the spin-orbit coupling phenomena, such as multiple interfaces and multiple orbital bands. As the thickness of Co increases, the contributions to the Dzyaloshinskii-Moriya interaction may cancel out while those to the magnetocrystalline anisotropy should add up. One remark is in order. Although our theory demonstrate that the positive correlation between the magnetocrystalline anisotropy and other spin-orbit coupling phenomena may breakdown, it is not necessarily the explanation of the breakdown observed in \ocite{Kim16APL} because there are other sources of magnetocrystalline anisotropy. We observe that the magnetocrystalline anisotropy depends on the total electron density [Fig.~\ref{Fig:TB-numerical}(b)] and it can even change its sign. The strong dependence of magnetocrystalline anisotropy on the total electron density is another feature that requires a well-controlled experiment to observe the correlation. When one varies the experimental conditions to obtain systems with various spin-orbit coupling parameters, the total electron density at the interface may change, which disturbs clear interpretation of the dependence of the magnetocrystalline anisotropy on the spin-orbit coupling parameter. The density-dependent magnetocrystalline anisotropy opens another route of the voltage-controlled magnetic anisotropy~\cite{Nakamura10PRB,Weisheit07Science,Duan08PRL,Maruyama09NN,Wang12NM,Shiota13APL}. The voltage-controlled magnetic anisotropy received considerable attention due to its significant potential to enhance the efficiency of spintronic devices. There are previous theories~\cite{Xu12JAP,Barnes14SR} suggesting that modulating the Rashba parameter by applying an external voltage is a possible route of the voltage-controlled magnetic anisotropy. However, it is unlikely to be a main mechanism in metallic ferromagnetic films in which a nominal potential gradient is not a main mechanism generating Rashba parameters~\cite{Park13PRB}. An external electric field is shielded by electron screening in the metal, thus it is difficult to change the Rashba parameter significantly. On the other hand, density variations by doping or an external voltage can change the electron density at the interface, changing the interfacial contributions to the magnetocrystalline anisotropy significantly. The conclusion from the simple model is consistent with first-principle studies~\cite{Duan08PRL,Kyuno96JPSJ}. \section{Conclusion\label{Sec:Conclusion}} In conclusion, we compute the magnetoctrystalline anisotropy for simple ferromagnetic Rashba models. The properties dramatically change depending on the dispersion relations. For a free electron (quadratic) dispersion, the system does not acquire perpendicular magnetic anisotropy at all. More interestingly, we analytically show that the magnetocrystalline anisotropy is \emph{exactly} zero regardless of the Rashba coupling strength if both majority and minority bands are partially occupied in the ground state. This result is not consistent with experimental observations, implying that a free electron dispersion is not suitable for studying perpendicular magnetic anisotropy arising from the Rashba interaction. We thus generalize the model to have a finite band width, which necessarily generates deviation from the free electron dispersion. We start from tight-binding Hamiltonians and conclude that the system acquires perpendicular magnetic anisotropy over wide range of parameters, consistent with experimental observations. A finite band width is a crucial feature of the tight-binding Hamiltonians that gives rise to perpendicular magnetic anisotropy. We also observe that the magnetocrystalline anisotropy depends on the band filling and it can even change its sign. We argue that the interface electron density modulation by voltage is a more important cause of voltage-controlled magnetic anisotropy than the voltage-controlled modulation of the Rashba parameter is. Our results show the possibility of breakdown of positive correlation between perpendicular magnetic anisotropy and other spin-orbit coupling phenomena. In particular, if there are multiple sources of spin-orbit coupling phenomena, such as multiple interfaces and multiple orbital bands, experimental observation of the correlation requires careful analysis. \begin{acknowledgments} The authors acknowledge R. D. McMichael, C.-Y. You, P. M. Haney, and J. McClelland for critical reading of the manuscript. K.W.K. acknowledges support under the Cooperative Research Agreement between the University of Maryland and the National Institute of Standards and Technology, Center for Nanoscale Science and Technology, Grant No. 70NANB10H193, through the University of Maryland. K.W.K. was also supported by Center for Nanoscale Science and Technology, National Institute of Standards and Technology, based on a Collaborative Research Agreement with Basic Science Research Institute, Pohang University of Science and Technology. K.J.L was supported by the National Research Foundation of Korea (Grant No. 2011-028163, 2015M3D1A1070465). H.W.L. was supported by the National Research Foundation of Korea (Grant No. 2013R1A2A2A05006237) and the Ministry of Trade, Industry and Energy of Korea (Grant No. 10044723). \end{acknowledgments} \begin{appendix} \section{Tight-binding Rashba model for a two-dimensional hexagonal lattice\label{Sec(A):hexagonal}} The two-dimensional hexagonal lattice we use here is presented in Fig.~\ref{Fig(A):hexagonal}. We construct a tight-binding Hamiltonian by the same way illustrated in Sec.~\ref{Sec:Model}. First we define the electron annihilation operator $C_{p,q,\sigma}$ at the site $(p,q)$ and spin $\sigma$. The indices of a site are defined by assigning its position to be $pa\vhat{u}_1+qa\vhat{u}_2$ where $\vhat{u}=\vhat{x}$ and $\vhat{u}_2=(1/2)\vhat{x}+(\sqrt{3}/2)\vhat{y}$. Then, the Hamiltonian is \begin{subequations} \begin{equation} H=H_K+H_J+H_R, \end{equation} where \begin{align} H_K&=-t_k\sum_{pq\sigma}\left(C_{p+1,q,\sigma}^\dagger C_{p,q,\sigma}+C_{p,q+1,\sigma}^\dagger C_{p,q,\sigma}\right.\nonumber\\ &\phantom{=t_k\sum_{pq\sigma}~}\quad\left.+C_{p+1,q-1,\sigma}^\dagger C_{p,q,\sigma}\right)+\rm h.c.,\\ H_J&=J\sum_{pq\sigma\sigma'}\left[C_{p,q,\sigma}^\dagger(\vec{\sigma})_{\sigma,\sigma'}C_{p,q,\sigma'}\right]\cdot\vec{m},\\ H_R&=it_R\sum_{pq\sigma\sigma'}\left[C_{p+1,q,\sigma}^\dagger[(\vhat{u}_1\times\vhat{z})\cdot\vec{\sigma}]C_{p,q,\sigma}\right.\nonumber\\ &\phantom{it_R\sum_{pq\sigma\sigma'}(}\quad+C_{p,q+1,\sigma}^\dagger[(\vhat{u}_2\times\vhat{z})\cdot\vec{\sigma}]C_{p,q,\sigma}\nonumber\\ &\phantom{it_R\sum_{pq\sigma\sigma'}(}\quad\left.+C_{p+1,q-1,\sigma}^\dagger[((\vhat{u}_1-\vhat{u}_2)\times\vhat{z})\cdot\vec{\sigma}]C_{p,q,\sigma}\right]+\rm h.c., \end{align} \end{subequations} where $t_k$ and $t_R$ are hopping parameters to be determined. By using Bloch theorem, the Hamiltonian can be written by 2$\times$2 matrix, of which the eigenvalues are exactly given. \begin{align} E_\pm(\vec{k})&=-2t_k\left(\cos k_xa+2\cos \frac{k_xa}{2}\cos\frac{\sqrt{3}k_ya}{2}\right)\pm\tilde{J},\\ \tilde{J}^2&=J^2 m_z^2+\left(J m_x+2\sqrt{3}t_R\cos\frac{k_xa}{2}\sin\frac{\sqrt{3}k_ya}{2}\right)^2\nonumber\\ &\quad+\left(J m_y-2t_R\sin\frac{k_xa}{2}\cos\frac{\sqrt{3}k_ya}{2}-2t_R\sin k_xa\right)^2.\label{Eq(A):hexagonal dispersion} \end{align} \begin{figure} \includegraphics[width=7.3cm]{Fig8_hexagonal} \caption{The model for a two-dimensional hexagonal lattice. Here $a$ is the lattice constant, $p$ and $q$ are the position indices. There are two principal directions $\vhat{u}_1$ and $\vhat{u}_2$. Then, the position vector of each site is $pa\vhat{u}_1+qa\vhat{u}_2$. The labeled sites by $(p,q+1)$, $(p+1,q)$, and $(p+1,q-1)$ are the neighboring hopping sites. The other three sites are captured by adding hermitian conjugates of these. } \label{Fig(A):hexagonal} \end{figure} The next step is determining $t_k$ and $t_R$. For a continuum limit up to $\mathcal{O}(a^2)$, \begin{equation} E_\pm=-6t_k+\frac{3}{2}t_ka^2k^2\pm\sqrt{J^2+6Jt_Ra(m_xk_y-m_yk_x)+9t_R^2a^2k^2}. \end{equation} This should coincide with the continuum dispersion Eq.~(\ref{Eq:quadratic E_pm}) (up to a constant energy shift). Therefore, we obtain $t_k=\hbar^2/3m_ea^2$ and $t_R=\alpha_R/3a$. \begin{figure} \includegraphics[width=7.6cm]{Fig9_hexagonal_MCA} \caption{(color online) The magnetocrystalline anisotropy computed within a tight-binding Rashba model for a two-dimensional hexagonal lattice result (Fig.~\ref{Fig:TB-numerical}). The overall features are the same as a two-dimensional square lattice, except the absence of the mirror symmetry around the normalized electron density $N_e=0.5N_{\rm max}$. } \label{Fig(A):hexagonal_MCA} \end{figure} We now compute the magnetocrystalline anisotropy by the same way. The result is shown in Fig.~\ref{Fig(A):hexagonal_MCA}. The features discussed in the main text are valid, except the model-specific property of a square lattice that the magnetocrystalline anisotropy is mirror symmetric around $N_e=0.5N_{\rm max}$. \section{Details of the analytic theories\label{Sec:Detail}} \subsection{Perturbation theory for a free-electron Rashba model\label{Sec:Detail-A}} The aim of this section is to present the mathematical derivations of Eqs.~(\ref{Eq:MCA majority only})--(\ref{Eq:Ne vs EF}) from Eq.~(\ref{Eq:quadratic E_pm}) up to $\mathcal{O}(\alpha_R^2)$. Throughout this section, we discard all terms beyond $\mathcal{O}(\alpha_R^2)$. First we compute $N_\pm(E)$ from the energy dispersion. Expanding Eq.~(\ref{Eq:quadratic E_pm}) up to $\mathcal{O}(\alpha_R^2)$, the dispersion relation is approximated by the following quadratic function. \begin{equation} E_\pm(k_x,k_y)=\frac{\hbar^2k_x^2}{2\tilde{m}_\pm^x}+\frac{\hbar^2(k_y\pm k_y^0)^2}{2\tilde{m}_\pm^y}\pm J-\frac{m_e\alpha_R^2\sin^2\theta}{2\hbar^2},\label{Eq:quadratic E_pm approx} \end{equation} where $\theta$ is defined by $\vec{m}=(\sin\theta,0\cos\theta)$, the spin-dependent band shift is given by $k_y^0=m_e\alpha_R\sin\theta/\hbar^2$, and the renormalized masses are \begin{align} \frac{1}{\tilde{m}_\pm^x}=\frac{1}{m_e}\pm\frac{\alpha_R^2}{J\hbar^2},~\frac{1}{\tilde{m}_\pm^y}=\frac{1}{m_e}\pm\frac{\alpha_R^2\cos^2\theta}{J\hbar^2}. \end{align} Then, $(2\pi)^2N_\pm(E)$ is given by the area of the contour of $E=E_\pm(k_x,k_y)$ in $\vec{k}$ space (See Fig.~\ref{Fig:electron_density}). Since $E=E_\pm(k_x,k_y)$ forms an ellipse, the area is analytically computable. \begin{equation} (2\pi)^2N_\pm(E)=\frac{2\pi\sqrt{\tilde{m}_\pm^x\tilde{m}_\pm^y}}{\hbar^2}(E-E_{\rm min}^\pm).\label{Eq:Npm vs E} \end{equation} From Eq.~(\ref{Eq:quadratic E_pm approx}), we obtain the band bottom energies $E_\pm^{\rm min}$ by substituting $\vec{k}=(0,\mp k_y^0)$. \begin{equation} E_{\rm min}^\pm=\pm J-\frac{m_e\alpha_R^2\sin^2\theta}{2\hbar^2}.\label{Eq:Eminpm} \end{equation} We are now ready to compute Eq.~(\ref{Eq:total energy}). Equation~(\ref{Eq:MCA majority only}) is derived by putting $E_F<E_{\rm min}^+$ and $\eta=0$. Then $N_e(E)=N_-(E)$. Inverting the function, we obtain the Fermi level as a function of the total electron density $\varepsilon_F(N_e)=(2\pi\hbar^2/\sqrt{\tilde{m}_-^x\tilde{m}_-^y})N_e+E_{\rm min}^-$. Equation~(\ref{Eq:total energy}) (as a function of $N_e$) is \begin{align} E_{\rm tot}\left(\varepsilon_F(N_e)\right)&=\int_{E_{\rm min}^-}^{\varepsilon_F(N_e)}E\frac{dN_e}{dE}dE=\int_0^{N_e}\varepsilon_F(N_e)dN_e\nonumber\\ &=\frac{\pi\hbar^2}{\sqrt{\tilde{m}_-^x\tilde{m}_-^y}}N_e^2+E_{\rm min}^- N_e. \end{align} Here, at the first line, we change the variable from $E$ to $N_e$ by Eq.~(\ref{Eq:Npm vs E}). Keeping in mind that the renormalized masses and $E_{\rm min}^-$ have angular dependence, we end up with the magnetocrystalline anisotropy \begin{align} \Delta E(N_e)&=E_{\rm tot}\left(\varepsilon_F(N_e)\right)|_{\theta=\pi/2}-E_{\rm tot}\left(\varepsilon_F(N_e)\right)|_{\theta=0}\nonumber\\ &=-\frac{N_em_e\alpha_R^2}{2\hbar^2}\left(1-\frac{N_e}{N_-(E_{\rm min}^+)}\right), \end{align} where $N_-(E_{\rm min}^+)=(Jm_e/\pi\hbar^2)+\mathcal{O}(\alpha_R^2)$ from Eqs.~(\ref{Eq:Npm vs E}) and (\ref{Eq:Eminpm}). This is Eq.~(\ref{Eq:MCA majority only}). To derive Eq.~(\ref{Eq:absence MCA}), we start from taking derivative of Eq.~(\ref{Eq:Npm vs E}) with respect to $E$, \begin{equation} \frac{dN_\pm}{dE}=\frac{\sqrt{\tilde{m}_\pm^x\tilde{m}_\pm^y}}{2\pi\hbar^2}. \end{equation} Therefore, Eq.~(\ref{Eq:fixed electron density}) for $\eta=1$ is given by, after some algebra, \begin{equation} E_{\rm tot}(E_F)=\frac{2\pi m_e(E_F^2-J^2)}{\hbar^2},\label{Eq:E_tot(E_F) both bands} \end{equation} which is independent of $\vec{m}$. We then combine Eq.~(\ref{Eq:Npm vs E}) with Eq.~(\ref{Eq:Eminpm}) to end up with \begin{equation} (2\pi)^2[N_+(E_F)+N_-(E_F)]=\frac{4\pi m_e(m_e\alpha_R^2+E_F\hbar^2)}{\hbar^4}, \end{equation} which is nothing but Eq.~(\ref{Eq:Ne vs EF}). Inverting the function, \begin{equation} \varepsilon_F(N_e)=\frac{\pi \hbar^2}{2m_e}N_e-\frac{m_e\alpha_R^2}{\hbar^2}.\label{Eq:E_F both bands} \end{equation} Combining Eqs.~(\ref{Eq:E_tot(E_F) both bands}) and (\ref{Eq:E_F both bands}), $E_{\rm tot}(\varepsilon(N_e))$ has no angular dependence. Thus Eq.~(\ref{Eq:fixed electron density}) is \begin{equation} \Delta E(N_e)=E_{\rm tot}\left(\varepsilon_F(N_e)\right)|_{\theta=\pi/2}-E_{\rm tot}\left(\varepsilon_F(N_e)\right)|_{\theta=0}=0, \end{equation} when both bands are occupied. This is Eq.~(\ref{Eq:absence MCA}). \subsection{Exact theory for a free-electron Rashba model\label{Sec:Detail-B}} The purpose of this section is to show that Eq.~(\ref{Eq:absence MCA}) holds regardless of how large $\alpha_R$ is. The flow of the proof is sketched in Sec.~\ref{Sec:Result-A}. We first show that i) Eq.~(\ref{Eq:Ne vs EF}) is exact above the total electron density at which both bands are occupied. This implies that the magnetocrystalline anisotropy is independent of $E_F$ in this density range, which amounts to $E_F\ge J$. Then we show that ii) $\lim_{E_F\to\infty}\Delta E=0$. We prove this by showing that $\Delta E$ goes $\mathcal{O}(E_F^{-1})$ at most for large $E_F$ limit. Combining i) and ii), we end up with the result that the magnetocrystalline anisotropy is exactly zero [Eq.~(\ref{Eq:absence MCA})]. \subsubsection{Proof of Eq.~(\ref{Eq:Ne vs EF}) for large $\alpha_R$} We prove Eq.~(\ref{Eq:Ne vs EF}) by using the contour integral technique, mainly, the Cauchy integral theorem. We do not assume that $\alpha_R$ is small. We assume that both bands are occupied for all $\vec{m}$. We first prove that this is equivalent to $E_F\ge J$. To show the forward part of this equivalence, we take $\vec{m}=\vhat{z}$. Then, $E_{\rm min}^+=J$, thus $E_F$ should be greater than or equal to $J$ for the minority band to be occupied. To prove the backward part, we assume $E_F\ge J$. For $\vec{k}=0$, $E_\pm(k_x,k_y)=\pm J\le J\le E_F$. Therefore, $\vec{k}=0$ state is occupied for both bands. One corollary from the proof is that $\vec{k}=0$ is always occupied when $E_F\ge J$. We start from Eq.~(\ref{Eq:quadratic E_pm}) with $\vec{m}=(\sin\theta,0,\cos\theta)$ for $0\le\theta\le\pi/2$. We change the variables $(k_x,k_y)$ to a single complex variable $z=i(k_x+ik_y)$. In terms of $z$, \begin{equation} E_\pm(z)=\frac{\hbar^2 z^*z}{2m_e}\pm\sqrt{J^2\cos^2\theta+\alpha_R^2(z-w)(z^*-w)}, \end{equation} where $w=J\sin\theta/\alpha_R>0$. \begin{figure*} \includegraphics[width=13cm]{Fig7_contour_integral} \caption{(color online) Complex contour integral for $N_e$. Here $C_\pm$ are the integral contours for $N_\pm$, and $D_\pm$ are the enclosed region (blue and red for $+$ an $-$) respectively. The white X is the trivial pole and the magenta Xs are the branch points of the integrand. The trivial pole is at $z=0$ and the branch points are on the real axis and denoted by $r_1$, $r_2$, and $r_3$. In Appendix~\ref{Sec(A):lemma}, we show that $r_i\in D_+$ for no or two of $r_i$ and $r_i\notin D_-$ for the others. It is also shown that $0\in D_+$ if $E_F\ge J$. Thus, we define the branch cuts (magenta lines) by connecting $r_1$ and $r_2$, and connecting $r_3$ and a complex infinity. Therefore, the integrands in Eq.~(\ref{Eq:Ne complex expression}) are analytic in $D_--D_+$. We now can shrink the integral contour $C_\pm$ to $C_0+C_r$ (yellow) by the Cauchy integral theorem, where $C_0$ is a contour surrounding the trivial pole, and $C_r$ is a contour surrounding the branch cut defined by $r_1$ and $r_2$. If even $r_1$ and $r_2$ are not in $D_+$, $C_0$ is the only relevant contour and $C_r$ is outside $D_\pm$. Both cases give the same mathematical results.} \label{Fig:contour} \end{figure*} For a given $E_F$, $N_\pm(E_F)$ is given by the area enclosed by $E_\pm(z)=E_F$ (Fig.~\ref{Fig:electron_density}). By Green's theorem, the area is given by \begin{equation} (2\pi)^2N_\pm=\int_{D_\pm}dk_xdk_y=\int_{C_\pm}\frac{k_xdk_y-k_ydk_x}{2}=\frac{1}{2i}\int_{C_\pm}z^*dz, \end{equation} where $D_\pm=\{z|E_\pm(z)\le E_F\}$ is the set of occupied states and $C_\pm=\{z|E_\pm(z)=E_F\}$ is the boundary of $D_\pm$, that is, the contour of the Fermi level. To perform the integration, we express $z^*$ as a function of $z$. By equating $E_\pm(z)=E_F$ and solving $z^*$, \begin{align} z_{\pm~\mathrm{or}~\mp}^*&=\frac{2m_e}{z^2\hbar^4}\left[m_e\alpha_R^2(z-w)+E_F\hbar^2z\pm\sqrt{R(z)}\right],\label{Eq:zstar}\\ R(z)&=[m_e\alpha_R^2(z-w)+E_Fz\hbar^2]^2-z^2\hbar^4(E_F^2-J^2+\alpha_R^2wz).\label{Eq:Rz} \end{align} Here $z_\pm^*$ are functions of $z$ which satisfy $z^*=z_\pm^*(z)$ on $C_\pm$. We denote the subscript by $\pm$ or $\mp$ since it is ambiguous which one corresponds to the majority band and the minority band. However, it does not affect the final result. The total electron density is then given by \begin{equation} (2\pi)^2N_e(E_F)=\frac{1}{2i}\int_{C_+}z_+^*dz+\frac{1}{2i}\int_{C_-}z_-^*dz.\label{Eq:Ne complex expression} \end{equation} The Cauchy integral theorem implies that the complex contour integrals in Eq.~(\ref{Eq:Ne complex expression}) is equivalent to those around nonanalytical points only. From Eq.~(\ref{Eq:zstar}), there are two types of nonanalytic points of $z_\pm^*$. The first one is the pole at $z=0$. We call this the trivial pole. We show at the beginning of this section that $(k_x,k_y)=0$ is occupied for both bands. That is, the trivial pole $z=0$ is always in $D_\pm$ (See Fig.~\ref{Fig:contour}). The second type comes from the square root function. Since the square root function is multivalued in the complex plane, there are branch cuts which connect the branch points that are defined by the zeros of $R(z)$. The whole branch cuts are nonanalytic points. Thus, it is important to see the behavior of the zeros of $R(z)$. Since $R(z)$ is a cubic polynomial, there are three zeros of $R(z)$. Below we present three properties of the three zeros without proofs. The proofs are presented in Appendix~\ref{Sec(A):lemma}. The first property is that i) \emph{all three zeros of $R(z)$ are real and nonnegative if $E_F\ge J$}. We call the zeros $r_1$, $r_2$, and $r_3$, satisfying $r_1\le r_2\le r_3$. Another important result is that ii) \emph{$r_i\in D_-$ is equivalent to $r_i\in D_+$}. Intuitively, we may say that, if $r_i$ is inside the contour $C_-$, it is also inside the contour $C_+$~\footnote{This statement provides an intuitive understanding of the result, but it is technically subtle if the contour $C_\pm$ is not simple.}. Since $D_+\subset D_-$, one direction of the proof is obvious, but the other direction is not. The last property is that iii) \emph{no or two zeros of $R(z)$ are in $D_\pm$ (or inside $C_\pm$)}. As a result, the situation is summarized in Fig.~\ref{Fig:contour}. We observe that $D_--D_+$ is analytic. Therefore, when we shrink the integral contour by using the Cauchy integral theorem, we can end up with the same contour $C_0+C_r$ for both terms in Eq.~(\ref{Eq:Ne complex expression}). By using the Cauchy integral theorem, both terms in Eq.~(\ref{Eq:Ne complex expression}) share the same integral contour. \begin{equation} (2\pi)^2N_e(E_F)=\frac{1}{2i}\int_{C_0+C_r}(z_+^*+z_-^*)dz. \end{equation} If no zeros of $R(z)$ is in $D_\pm$, $C_0$ is the only relevant contour. However, we below show that contributions from $C_r$ are cancelled out when we add up $z_+^*$ and $z_-^*$. One remark is in order. The situation becomes complicated if any of $r_i$ is exactly on $C_\pm$. For this case, defining $C_\pm$ bypassing $r_i$ with an infinitesimally small radius does not change the result. Another resolution is using continuity of $N_e(E_F)$. Since one of $r_i$ can be exactly on $C_\pm$ only at particular values of $E_F$, we may exclude the particular points in the proof and use the continuity to get $N_e(E_F)$ for the whole domain. The result greatly simplifies the situation. The complicated $\sqrt{R(z)}$ terms in $z_+^*$ and $z_-^*$ are cancelled out when they are added up. \begin{align} (2\pi)^2N_e(E_F)&=\frac{2m_e}{i\hbar^4}\int_{C_0+C_r}\frac{\alpha_R^2m_e(z-w)+E_F\hbar^2z}{z^2}dz\nonumber\\ &=\frac{4\pi m_e}{\hbar^2}\operatorname*{Res}_{z=z_{0}}\frac{\alpha_R^2m_e(z-w)+E_F\hbar^2z}{z^2}\nonumber\\ &=\frac{4\pi m_e(\alpha_R^2m_e+E_F\hbar^2)}{\hbar^4}, \end{align} which is exactly Eq.~(\ref{Eq:Ne vs EF}). At the second line, we use the Cauchy's residue theorem. The importance of the assumption that both bands are occupied in this proof is twofold. First, the condition is equivalent to $E_F\ge J$ so that the zeros of $R(z)$ satisfy the properties proven in Appendix~\ref{Sec(A):lemma}. The properties guarantee that the integrands in Eq.~(\ref{Eq:Ne complex expression}) are analytic in $D_--D_+$ so that we can shrink the integral contours for both bands to the same contour. Second and more importantly, the complicated contributions from $\pm\sqrt{R(z)}$ are cancelled out when we add up the contributions from both bands. Therefore, we can use the Cauchy's residue theorem for the trivial pole $z=0$ only. \subsubsection{Proof of $\lim_{E_F\to\infty}\Delta E=0$} For extremely large $E_F$, the contour of the Fermi level is simple. Therefore, we can define Fermi momenta for each band as a function of the azimuthal angle of the momentum. We write $\vec{k}=(k\cos\phi,k\sin\phi)$. Then, the Fermi momentum $k_{F,\pm}$ is defined by $E_\pm(k_F\cos\phi,k_F\sin\phi)=E_F$. For simplicity of equations, we assume $\alpha_R>0$, but the flow of the proof is the same for general $\alpha_R$. From Eq.~(\ref{Eq:quadratic E_pm}) and by putting $\vec{m}=(\sin\theta,0,\cos\theta)$, \begin{align} k_{F,\pm}&=\sqrt{\frac{2m_eE_F}{\hbar^2}}\mp\frac{m_e\alpha_R}{\hbar^2}+\sqrt{\frac{m_e}{8E_F}}\frac{m_e\alpha_R^2\mp2J\hbar^2\sin\theta\sin\phi}{\hbar^3}\nonumber\\ &\quad\mp\frac{J^2}{4\alpha_RE_F}(1-\sin^2\theta\sin^2\phi)+\mathcal{O}(E_F^{-3/2}).\label{Eq:kF large EF} \end{align} By using the polar coordinate, the total energy density below the Fermi sea is \begin{equation} E_{\rm tot}(E_F)=\frac{1}{(2\pi)^2}\int_0^{2\pi}d\phi\left(\int_0^{k_{F,+}}kE_+dk+\int_0^{k_{F,-}}kE_-dk\right) \end{equation} we can expand the integrand with respect to $1/k$ and integrate term by term since $k_{F,\pm}$ is $\mathcal{O}(E_F^{-1/2})$. After tedious algebra, we end up with \begin{equation} E_{\rm tot}(E_F)=(\theta\mbox{-independent terms})+\mathcal{O}(E_F^{-1}). \end{equation} Therefore, $\Delta E=\mathcal{O}(E_F^{-1})$ at most, which proves that $\lim_{E_F\to\infty}\Delta E=0$. \section{Properties of zeros of $R(z)$\label{Sec(A):lemma}} In this section, we prove some important properties of zeros of $R(z)$ defined by Eq.~(\ref{Eq:Rz}). Since $R(z)$ is a cubic polynomial, it has three zeros. We call these $r_i$ for $i=1,2,3$. We below show that all of $r_i$ are real. Therefore, we can denote $r_i$ by the order of its magnitude $r_1\le r_2\le r_3$. This section consists of three subsections each of which corresponds to each property that we mention in the main text. \subsection{All of $r_i$ are real and nonnegative if $E_F\ge J$} We write down $R(z)=az^3+bz^2+cz+d$. Then, the coefficients are \begin{subequations} \label{Eq(A):R coefficients} \begin{align} a&=-\alpha_R^2\hbar^4w<0,\\ b&=m_e^2\alpha_R^4+2m_E\alpha_R^2E_F\hbar^2+J^2\hbar^4>0,\\ c&=-2m_e\alpha_R^2w(m_e\alpha_R^2+E_F\hbar^2)<0,\\ d&=m_e^2\alpha_R^2w^2>0. \end{align} \end{subequations} Zeros of a cubic polynomial $az^3+bz^2+cz+d$ are all real if and only if $\Delta=18abcd-4b^3d+b^2c^2-4ac^3-27a^2d^2$ is nonnegative. After some algebra, \begin{align} \tilde{\Delta}&=4(E_F^2-J^2)(\alpha^2+2\alpha E_F+J^2)^2-27 \alpha^2J^4t^2\nonumber\\ &\quad+4\alpha J^2(\alpha+E_F)[(\alpha+E_F)^2-9(E_F^2-J^2)]t, \end{align} where $\tilde{\Delta}=\Delta/J^2\hbar^{12}m_e^2\alpha_R^2t$, $\alpha=m_e\alpha_R^2/\hbar^2$ and $t=\cos^2\theta$. We treat $\tilde{\Delta}$ as a function of $t$. $\tilde{\Delta}(t)$ is quadratic and the domain of $t$ is $0\le t\le1$. After some algebra, \begin{align} \tilde{\Delta}(0)&=4(E_F^2-J^2)(\alpha^2+2E_F\alpha+J^2)^2\ge0,\\ \tilde{\Delta}(1)&=(J^2-2\alpha E_F)^2[(\alpha+2E_F)^2-4J^2]\ge0,\\ \tilde{\Delta}_{\rm ext}&=\frac{4}{27}[3E_F^2-3J^2+(\alpha+E_F)^2]^3>0, \end{align} if $E_F\ge J$. Here $\tilde{\Delta}_{\rm ext}$ is the extremum value of $\tilde{\Delta}(t)$ evaluated at the value $t$ satisfying $\tilde{\Delta}'(t)=0$. Since the boundary values and the extremum value are all nonnegative, $\tilde{\Delta}$ (thus $\Delta$) is nonnegative on $0\le t\le1$, proving all of $r_i$ are real. To show $r_i\ge 0$ for all $i$, we see the signs of the coefficients in Eq.~(\ref{Eq(A):R coefficients}). It is easy to see that $R(-z)>0$ for any real and positive $z$. Therefore, $R(z)$ has no negative real zero. \subsection{$r_i\in D_+$ is equivalent to $r_i\in D_-$} This statement is equivalent to that any branch point of $z_\pm^*$ cannot be in $D_--D_+$. It is one of the most important properties that allows us to draw Fig.~\ref{Fig:contour}. Since $D_+\subset D_-$, $r\in D_+\Rightarrow r\in D_-$ is straightforward, but the other direction is not. To prove this, we use the definition of $D_\pm$ that $r_i\in D_\pm$ is equivalent to $E_\pm(r_i)-E_F\le 0$. We start from the following identity. \begin{align} [E_+(z)-E_F][E_-(z)-E_F]&=\left(\frac{m_e\alpha_R^2}{\hbar^2}\frac{z-w}{z}+E_F-\frac{\hbar^2z^*z}{2m_e}\right)^2\nonumber\\ &\quad-\frac{R(z)}{z^2\hbar^4}. \end{align} Since $R(r_i)=0$, the second term in the right-hand side is zero when $z=r_i$. In addition, we show that $r_i$ should be real in the previous section. Therefore, the first term in the right-hand side is nonnegative when $z=r_i$. \begin{equation} [E_+(r_i)-E_F][E_-(r_i)-E_F]\ge 0.\label{Eq(A):E+-EF E--EF} \end{equation} In the main text, we exclude the case where any $r_i$ is exactly on $C_\pm$. Thus, we may assume $E_\pm(r_i)-E_F\ne 0$. Under this assumption, Eq.~(\ref{Eq(A):E+-EF E--EF}) implies that $E_+(r_i)<E_F$ is equivalent to $E_-(r_i)<E_F$. In other words, $r_i\in D_+$ is equivalent to $r_i\in D_-$ for any $r_i$ satisfying $R(r_i)=0$. \subsection{Only even number of $r_i$ are in $D_\pm$} \begin{figure} \includegraphics[width=7.6cm]{Fig10_Rz_roots} \caption{(color online) Two possibilities of the number of $r_i$ in $D_\pm$ satisfying Eq.~(\ref{Eq:Rz condition}). Since $R(k_{F,0})>0$, the only possible domains in which $k_{F,0}$ can be present are (a) $k_{F,0}<r_1$ and (b) $r_2<k_{F,0}<r_3$. The number of $r_i$ less than $k_{F,0}$ is the number of $r_i$ in $D_\pm$. Therefore, either no or two of $r_i$ are in $D_\pm$, leading us to Fig.~\ref{Fig:contour}. } \label{Fig(A):Rz_roots} \end{figure} In the previous section, we show that the branch points of the integral Eq.~(\ref{Eq:Ne complex expression}) ($r_i$) are not in $D_--D_+$. What is important is not only the branch points but also the branch cuts. The branch cuts are defined by connecting a pair of branch points (including the complex infinity if the number of branch points are odd). To show that any branch cut does not have an intersection with $D_--D_+$, only even number of $r_i$ should be in $D_\pm$ (See Fig.~\ref{Fig:contour}). The following lemma is useful for the proof: \emph{$r_i\in D_\pm$ is equivalent to $E_F\ge \hbar^2r_i^2/2m_e$}. This lemma is a corollary of the previous section. With this lemma, we do not need to compute $E_\pm(r_i)$ and compare to $E_F$ in order to check $r_i\in D_\pm$. Instead, we only compare $r_i$ to $\sqrt{2m_eE_F}/\hbar$~\footnote{The nonnegativity of $r_i$ plays a crucial role for deducing this.}. Therefore, it provides a useful criterion to check $r_i\in D_\pm$. We first prove $r_i\in D_\pm\Rightarrow E_F\ge \hbar^2r_i^2/2m_e$. Since $r_i\in D_\pm$, $E_F\ge E_+(r)\ge \hbar^2r_i^2/2m_e$, which is the desired result. We next prove $E_F\ge \hbar^2r_i^2/2m_e\Rightarrow r_i\in D_\pm$. Note that $E_F\ge \hbar^2 r^2/2m_e> E_-(r_i)$, thus $r_i\in D_-$. In the previous section, we show that $r_i\in D_-$ is equivalent to $r_i\in D_+$. Therefore, $r_i\in D_\pm$, which completes the proof. As a result, the statement that we want to show is equivalent to the statement that ``only even number of $r_i$ satisfy $r_i\le k_{F,0}$ where $k_{F,0}=\sqrt{2m_e E_F}/\hbar$." After some algebra, \begin{equation} R(k_{F,0})=2m_eE_F J^2\hbar^2\cos^2\theta+m_e\alpha_R^2(k_{f,0}-w)^2(m_e\alpha_R^2+2E_F\hbar^2). \end{equation} Therefore, $R(k_{F,0})$ is positive unless $\theta=\pi/2$ and $E_F=\hbar^2w^2/2m_e$. The latter case is not our interest because of the following argument. Note that $R(w)=\hbar^4w^2J^2\cos^2\theta$, thus, $w$ is a zero of $R(z)$ when $\theta=\pi/2$. Since $E_F=\hbar^2w^2/2m_e$, $w$ is exactly at the Fermi level (on $C_\pm$). In the main text, we exclude this situation. As a result, we now have \begin{equation} \lim_{z\to\mp\infty} R(z)=\pm\infty,~R(k_{F,0})>0.\label{Eq:Rz condition} \end{equation} Since $R(z)$ has three real and nonnegative zeros, there are only two possibilities as presented in Figs.~\ref{Fig(A):Rz_roots}(a) and \ref{Fig(A):Rz_roots}(b) respectively. Figure~\ref{Fig(A):Rz_roots} shows that either no or two of $r_i$ satisfy $r_i\le k_{F,0}$, which is the desired result. \end{appendix}
\subsection*{Acknowledgements} The authors would like to thank Bob Gompf, Ahmad Issa, D. Kotschick, Ana Lecuona, and Andr\'as Stipsicz for helpful conversations. The first and third authors were partially supported by the ERC Advanced Grant LDTBud, and additionally the third author was partially supported by NSF grant DMS-1148490. The second author is supported by the Alice and Knut Wallenberg foundation. \end{section} \begin{section}{Preliminaries and general statements}\label{general} Recall that the group ${\rm Spin}(n)$ is the double cover of $SO(n)$, which is also its universal cover as long as $n\ge 3$. A \emph{spin structure} on an $n$-manifold $M$ is a lift of the principal $SO(n)$-bundle associated to the tangent space $TM$ to a ${\rm Spin}(n)$-bundle over $M$. A spin structure on $M$ exists if and only if $M$ is orientable and the second Stiefel--Whitney class of its tangent bundle vanishes, i.e. if and only if $w_1(M) = 0 $ and $w_2(M) = 0$; moreover, spin structures on $M$ are an affine space over $H^1(M;\mathbb{Z}/2\mathbb{Z})$. Since every orientable 3-manifold $Y$ is parallelizable, the Stiefel--Whitney classes of its tangent bundle vanish, hence $Y$ always admits a spin structure. Moreover, if $H^1(Y;\mathbb{Z}/2\mathbb{Z}) = 0$, it is unique. This happens, for instance, when $Y$ is a rational homology sphere whose $H_1$ has odd order. Now 4-manifolds, on the other hand, do not always admit spin structures. In fact, a closed, simply connected 4-manifold $X$ admits a spin structure if and only if it has an even intersection form. Spin structures behave well with respect to gluing: if $(X_1, \mathfrak{s}_1)$ and $(X_2, \mathfrak{s}_2)$ are two spin 4-manifold with boundary $\partial X_i = Y$, then $X_1\cup (-X_2)$ admits a spin structure provided the restrictions $\mathfrak{s}_1|_Y$ and $\mathfrak{s}_2|_Y$ agree. This is for free when $Y$ is a rational homology sphere whose $H_1$ has odd order. Throughout we will assume all manifolds and maps to be smooth, and in addition we require that all manifolds be oriented. The following theorem is well-known (see~\cite[Section 5.7]{GS}). \begin{theorem}\label{all embed} Every $3$-manifold embeds in $\#_n S^2 \times S^2$ for some $n$. More precisely, every closed $3$-manifold can be realized as integral surgery on a link in $S^3$ where all the surgery coefficients are even. If there are $n$ components in such a link, then this surgery description gives an embedding into $\#_n S^2 \times S^2$. \end{theorem} \begin{proof}[Sketch of proof] Let $Y$ be a closed 3-manifold (if a 3-manifold has boundary we can double it to obtain a closed 3-manifold, and then embed the double by the following argument). Kaplan~\cite{Kap} gives an algorithm to realize $Y$ as integral surgery on an $n$-component link $L$ (for some $n$) where all the coefficients are even. From this description $Y$ is realized as the boundary of a spin 4-manifold $X$ obtained by attaching $n$ 2-handles to $B^4$ along $L$ with even framings (the intersection form is even, and hence $X$ is spin since it is simply connected). To obtain a handle decomposition for the double $\mathcal{D}X$ of $X$ we add $n$ additional 2-handles, each attached along a 0-framed meridian of a component of $L$, and then a 4-handle. Then repeatedly sliding over these 0-framed meridians results in $n$ 0-framed Hopf pairs (see Figure \ref{f:hopf}), which shows that $\mathcal{D}X$ is diffeomorphic to $\#_n S^2 \times S^2$ (see~\cite[Corollary 5.1.6]{GS} for more details of the necessary handle slides). \end{proof} \begin{figure}[h] \labellist \pinlabel $0$ at -3 0 \pinlabel $0$ at 128 0 \pinlabel $0$ at 313 0 \pinlabel $0$ at 182 0 \endlabellist \centering \includegraphics[scale=0.8]{hopf2} \caption{Two 0-framed Hopf pairs and a 4-handle gives $\#_2 S^2 \times S^2$.}\label{f:hopf} \end{figure} Therefore the following is a well-defined invariant of 3-manifolds. \begin{definition} Given a 3-manifold $M$, let $\varepsilon(M)$ be the minimum $n$ such that $M$ embeds in $\#_n S^2 \times S^2$. Call $\varepsilon(M)$ the \emph{embedding number} of $M$. \end{definition} For example, $M$ embeds in $S^4$ if and only if $\varepsilon(M)=0$. Now we consider some general properties of this invariant. \begin{proposition}\label{p:generalproperties} Let $M$ and $N$ be $3$-manifolds, and let $\overline{M}$ denote $M$ with the opposite orientation. Then the embedding number satisfies the following properties: \begin{enumerate} \item $\varepsilon(M) = \varepsilon(\overline M)$; \item $\varepsilon(M \# N) \leq \varepsilon(M) + \varepsilon(N)$; \item $\varepsilon(M \# \overline{M}) \leq \varepsilon(M)$. \end{enumerate} \end{proposition} \begin{proof} Point (1) is obvious, since every embedding of $M$ is also an embedding of $\overline M$. Now we prove (2). Let $m=\varepsilon(M)$, and $n=\varepsilon(N)$. Then $M$ embeds in $\#_m S^2 \times S^2$ and $N$ embeds in $\#_n S^2 \times S^2$, so the disjoint union $M \sqcup N$ embeds in $\#_{m+n} S^2 \times S^2$. Since $M$ and $N$ embed disjointly in $\#_{m+n} S^2 \times S^2$, their connected sum also embeds. Just perform ambient surgery along an embedded arc $\gamma$ in $\#_{m+n} S^2 \times S^2$ with one endpoint on $M$ and the other endpoint on $N$, such that the interior of the arc misses $M$ and $N$ (notice that in order to arrange the correct orientations we may have to change which connected component of $\#_m S^2 \times S^2\setminus M$ and $\#_n S^2 \times S^2\setminus N$ we use for the connected sum). Therefore $\varepsilon(M \# N) \leq m+n = \varepsilon(M) + \varepsilon(N)$. Now we prove (3). Let $M^\circ$ denote $M$ with an open $B^3$ removed. If $M$ embeds in $\#_n S^2 \times S^2$, then obviously so does $M^\circ$. The boundary of a collar neighborhood $M^\circ \times I$ of $M^\circ$ is $M \# \overline{M}$, and so $M \# \overline{M}$ embeds in $\#_n S^2 \times S^2$ as well, finishing the proof. \end{proof} The next few results explore the relationship between small embedding numbers and bounding an integral or rational homology ball. Here and in the following, $H_*(\cdot)$ will always denote homology with integer coefficients, unless otherwise stated. \begin{proposition}\label{Zspheres} Let $M$ be an integral homology sphere. If $\varepsilon(M) \leq 1$ then $M$ bounds an integral homology ball. \end{proposition} \begin{proof} If $\varepsilon(M) \leq 1$ then $M$ embeds in $S^2 \times S^2$. Let $X_1, X_2$ be the closures of the two connected components of $S^2\times S^2\setminus M$, so that $S^2 \times S^2 = X_1 \cup_M X_2$. Notice that $X_1$ and $X_2$ are spin 4-manifolds since they are codimension-0 submanifolds of the spin manifold $S^2\times S^2$. Since $M$ is an integral homology sphere, the Mayer--Vietoris sequence implies that $H_1(X_1)=H_1(X_2)=0$, and furthermore, we get a splitting $H := Q_{S^2 \times S^2}\cong Q_{X_1} \oplus Q_{X_2}$ using the unimodular intersection forms $Q_{X_1}$ and $Q_{X_2}$. But this implies that one of $Q_{X_1}$ or $Q_{X_2}$ is trivial (since the forms must be even, and $H$ is the only nontrivial even, unimodular form of rank less than 8), say $Q_{X_1}$, and so $X_1$ must be an integral homology ball. \end{proof} Note that we do not know of any obstruction that can distinguish between an integral homology sphere embedding in $S^2 \times S^2$ and embedding in $S^4$. Hence it is possible, although it seems unlikely, that every integral homology sphere that embeds in $S^2 \times S^2$ also embeds in $S^4$. We now give a generalization of Proposition~\ref{Zspheres}. \begin{theorem}\label{t:oddH1} Let $Y$ be a rational homology sphere such that $H_1(Y)$ has odd order. If $\varepsilon(Y) \leq 1$, then $Y$ bounds a spin rational homology ball. \end{theorem} \begin{proof} Suppose $Y$ embeds in $S^2\times S^2$, splitting $S^2\times S^2$ into two spin connected components $X_1$ and $X_2$. Assume by contradiction that $Y$ does not bound a rational homology ball. The Mayer--Vietoris long exact sequence reads: \[ 0 \to H_2(X_1)\oplus H_2(X_2) \to H_2(S^2\times S^2) \to H_1(Y) \to H_1(X_1)\oplus H_1(X_2) \to 0. \] In particular, since $H_1(Y)$ is finite, $H_2(X_1)$ and $H_2(X_2)$ are two free groups, the sum of whose ranks is $2$, and if $Y$ does not bound a rational homology ball, then $\rk H_2(X_1) = \rk H_2(X_2) = 1$. Hence both groups are isomorphic to $\mathbb{Z}$. Moreover, since $|H_1(Y)|$ is odd and it surjects onto $H_1(X_1)$ and $H_1(X_2)$, these two groups have odd order, too. The long exact sequence of the pair for $(X_i, Y)$ reads: \[ 0 \longrightarrow H_2(X_i) \stackrel{\phi}{\longrightarrow} H_2(X_i,Y) \longrightarrow H_1(Y) \longrightarrow H_1(X_i) \longrightarrow 0, \] where the fact that $H_1(X_i,Y)$ vanishes follows from the surjectivity of $H_1(Y)\to H_1(X_i)$, observed above. Now $H_2(X_i,Y)$ may have torsion, since by the universal coefficient theorem and Poincar\'e--Lefschetz duality $H_2(X_i,Y) \cong H^2(X_i) \cong H_2(X_i)\oplus H_1(X_i)$. Let $\alpha$ be a generator of $H_2(X_i)$, and $\beta$ be the Poincar\'e dual of an element in $H^2(X_i)$ that evaluates to 1 on $\alpha$; then $\beta \cdot \alpha =1$ and $\phi(\alpha) = \ell \beta + t$ for some $\ell$ and some torsion element $t\in H_2(X_i,Y)$. But $\alpha \cdot \alpha = \phi(\alpha)\cdot\alpha = \ell \beta \cdot \alpha = \ell$, and so $\ell=2k$ must be an even number, since $Q_{X_i}$ is an even intersection form (because $X_i$ is spin). Since the torsion in $H_2(X_i,Y)$ has odd order, the order of $t$ is an odd number $d$ (if $t=0$, $d=1$). It is easy to see that the element $\bar x = dk\beta$ is \emph{not} in the image of $\phi$, while $2\bar x = \phi(d\alpha)$ is; that is, $\bar x$ is a nonzero element in $\coker \phi$ such that $2\bar x = 0$. But this contradicts the fact that $\coker\phi$ is a subgroup of $H_1(Y)$, which has odd order by assumption. \end{proof} This next theorem is a partial converse to Theorem \ref{t:oddH1}, and both of these theorems will be crucial in understanding which lens spaces $L(p,q)$ with odd $p$ have embedding number 1 (see Section \ref{lens}). \begin{figure}[h] \labellist \pinlabel $m$ at 141 140 \endlabellist \centering \includegraphics[scale=1.0]{rational_ball2} \caption{A rational homology ball with a single 1-handle and a single 2-handle.}\label{f:rational ball} \end{figure} \begin{theorem}\label{t:one1-handle} Let $Y$ be a rational homology sphere such that $H_1(Y)$ has odd order. If $Y$ bounds a rational homology ball with only a single $1$-handle and a single $2$-handle, then $\varepsilon(Y) \leq 1$. \end{theorem} \begin{remark} Note that if $Y$ is an \emph{integral} homology sphere, the argument used to prove \cite[Theorem 2.13]{BB} implies that actually $Y$ embeds in $S^4$, i.e. $\varepsilon(Y)=0$. \end{remark} \begin{proof} We need to show that $Y$ embeds in $S^2 \times S^2$. Let $B$ be a rational homology ball with a single 1-handle and a single 2-handle, such that $\partial B= Y$. Then $B$ has a handle diagram as in Figure \ref{f:rational ball}, where there are $n$ strands running through the dotted circle, and the box labeled $D$ represents some $n$-tangle filling which results in a single attaching circle for a 2-handle with framing $m$. Since $\partial B=Y$, the 2-handle attaching circle has an odd linking number with the dotted circle (because if we surger the 1-handle to a 0-framed 2-handle then the intersection form of the resulting 4-manifold will present $H_1(Y)$). Note that this implies that $n$ (the total number of strands) is odd as well. Let $\gamma$ denote the attaching circle for the 2-handle. Now first consider the case when the framing $m$ is even. Then we attach two additional 2-handles to $B$ along 0-framed meridians of $\gamma$ and the dotted circle, as in the left-hand side of Figure \ref{f:ballsplus}. We can then slide $\gamma$ off the dotted circle by sliding over the 0-framed meridian of the dotted circle, and then the 2-handle attached to the meridian cancels the 1-handle. What remains after the cancellation is a 2-handle attached to $\gamma$ with framing $m$, and another 2-handle attached to a 0-framed meridian of $\gamma$. As in the proof of Theorem \ref{all embed}, we can slide over this meridian some number of times to realize a 0-framed Hopf pair, and then cap off with a 4-handle to obtain $S^2 \times S^2$. \begin{figure}[h] \labellist \pinlabel $m$ at 141 140 \pinlabel $0$ at 165 100 \pinlabel $0$ at 159 39 \pinlabel $m$ at 356 140 \pinlabel $1$ at 380 100 \pinlabel $0$ at 374 39 \endlabellist \centering \includegraphics[scale=0.9]{ballsplus2} \caption{Adding 2-handles to the rational homology ball.}\label{f:ballsplus} \end{figure} When $m$ is odd we again add 2-handles along meridians of $\gamma$ and the dotted circle, but this time we use framing 1 with the meridian of the dotted circle as in the right-hand side of Figure \ref{f:ballsplus}. When we slide $\gamma$ over the 1-framed meridian we increase $m$ by one and $\gamma$ now links this meridian once (see the left-hand side of Figure \ref{f:ballslide}). By sliding the 1-framed meridian over the 0-framed meridian we can unlink $\gamma$ from the 1-framed meridian, and we have reduced to the starting position except $m$ has been increased by one and $\gamma$ runs one fewer time through the dotted circle (see the right-hand side of Figure \ref{f:ballslide}). \begin{figure}[h] \labellist \pinlabel $m+1$ at 70 125 \pinlabel $1$ at 84 77 \pinlabel $0$ at 78 47 \pinlabel $m+1$ at 204 125 \pinlabel $1$ at 228 77 \pinlabel $0$ at 211 47 \endlabellist \centering \includegraphics[scale=1.0]{ballslide2} \caption{Sliding $\gamma$ off the dotted circle.}\label{f:ballslide} \end{figure} We now repeat this combination of handle slides $n$ times to slide $\gamma$ completely off the dotted circle, and then the 1-framed meridian cancels the 1-handle. What remains is a 2-handle attached to $\gamma$ with framing $m+n$, and the 2-handle attached to the 0-framed meridian. Since $n$ is odd, $m+n$ is even, and as before we can obtain $S^2 \times S^2$ by capping off with a 4-handle. \end{proof} \begin{subsection}{Surgery on knots} Let $S^3_{p/q}(K)$ denote the 3-manifold obtained by $p/q$-Dehn surgery on a knot $K$ in $S^3$. Here we prove some simple facts about embedding numbers for 3-manifolds obtained by surgery on knots. \begin{proposition}\label{surgery prop} Let $K$ be a knot in $S^3$. \begin{enumerate} \item $\varepsilon(S^3_{p/q}(K)) \geq 1$ for all $|p| >1$ and $q \neq 0$. \item $\varepsilon(S^3_{2n}(K)) = 1$ for all nonzero $n$. \item $\varepsilon(S^3_{2n+1}(K)) > 1$ if $2n+1$ is not a square. \item $\varepsilon(S^3_{1/{2n}}(K)) \leq 2$ for all nonzero $n$. \end{enumerate} \end{proposition} \begin{proof} \begin{enumerate} \item We must show that $S^3_{p/q}(K)$ does not embed in $S^4$. If a rational homology 3-sphere $Y$ embeds in $S^4$, then $H_1(Y) \cong G \oplus G$ for some torsion group $G$~\cite{Gil-Liv}. Since $H_1(S^3_{p/q}(K))\cong \mathbb{Z}/p\mathbb{Z}$, $S^3_{p/q}(K)$ does not embed in $S^4$. \item This follows from Theorem \ref{all embed} and Part (1). \item If $\varepsilon(S^3_{2n+1}(K)) \leq 1$, then $S^3_{2n+1}(K)$ embeds in $S^2\times S^2$. By Theorem \ref{t:oddH1} $S^3_{2n+1}(K)$ must bound a rational homology ball, and it is well-known that if a rational homology sphere $Y$ bounds a rational homology ball then the order of $H_1(Y)$ is a square (see, for instance, \cite[Proposition 2.2]{AG}). \item By the reverse slam dunk move illustrated in Figure \ref{f:slamdunk} (see~\cite[Section 5.3]{GS} for a discussion of the slam dunk) with $m=2n$, we can realize $M$ as integral surgery on a 2-component link where the coefficients are even. Then by Theorem \ref{all embed} $\varepsilon(M) \leq 2$.\qedhere \end{enumerate} \end{proof} \begin{figure}[h] \labellist \pinlabel $1/m$ at 20 120 \pinlabel $0$ at 98 120 \pinlabel $-m$ at 130 65 \endlabellist \centering \includegraphics[scale=.80]{slamdunk} \caption{The reverse slam dunk move.}\label{f:slamdunk} \end{figure} \begin{remark} It follows from (4) above and Proposition \ref{Zspheres} that if $\varepsilon(S^3_{1/{2m}}(K)) \neq 2$, then $S^3_{1/{2m}}(K)$ bounds an integral homology ball and so all integral homology cobordism invariants (for example, the Rokhlin invariant and the Heegaard Floer correction term) must vanish for this integral homology sphere. \end{remark} Proposition \ref{surgery prop}(3) suggests that most odd surgeries on a knot will have embedding number larger than 1. However, in the next example we show that this is not always the case. \begin{example} We can show that $\varepsilon(S^3_9 (T_{2,3})) = 1$ by realizing $S^3_9 (T_{2,3})$ as the boundary of a rational homology ball with a single 1-handle and a single 2-handle, and then applying Theorem \ref{t:one1-handle}. This is demonstrated in Figure \ref{f:trefoil}. We blow up to obtain the second picture, which we then think of as a 4-dimensional 2-handlebody. Since the 0-framed 2-handle is attached along the unknot, we can surger it to a 1-handle in dotted circle notation to get the third picture. In the third picture we see $S^3_9 (T_{2,3})$ as the boundary of the required rational homology ball. Note that the same argument works for $S^3_{d^2}(T_{d-1,d})$ and $S^3_{d^2}(T_{d,d+1})$ for each odd $d$. \end{example} \begin{figure}[h] \labellist \pinlabel $9$ at 40 25 \pinlabel $-1$ at 368 155 \pinlabel $-1$ at 571 155 \pinlabel $0$ at 288 20 \endlabellist \centering \includegraphics[scale=0.7]{trefoil2} \caption{$S^3_9 (T_{2,3})$ bounds a rational homology ball.}\label{f:trefoil} \end{figure} \end{subsection} \begin{subsection}{Branched double covers} We finish this section by relating the embedding numbers of branched double covers to classical knot invariants. Given a knot $K$ in $S^3$, let $\Sigma(K)$ denote the double cover of $S^3$ branched over $K$. Furthermore, let $g(K)$ denote the Seifert genus of the knot and $u(K)$ denote the unknotting number. \begin{proposition}\label{DBC} For a knot $K$ in $S^3$, let $m$ denote the minimum of $g(K)$ and $u(K)$. Then $\varepsilon(\Sigma(K))\le 2m$. \end{proposition} \begin{proof} It is a standard fact that $K$ bounds a surface in $B^4$, built with a single 0-handle and $2m$ 1-handles. (Note that this is not the case if we replace the Seifert genus with the slice genus.) Now Akbulut and Kirby~\cite{AK} gave an algorithm for how to build a handle decomposition of the branched double cover of $B^4$ over such a surface, and the resulting handle decomposition consists of a single 0-handle and $2m$ 2-handles, all with even framing. Since the boundary of this 4-manifold is $\Sigma(K)$, Theorem \ref{all embed} then finishes the proof. \end{proof} \end{subsection} \end{section} \begin{section}{Brieskorn spheres}\label{Brieskorn} We now consider the embedding numbers of a specific class of 3-manifolds. Recall that the Seifert fibered manifold $\Sigma(p,q,r)$ is the boundary of the Milnor fiber $M_c(p,q,r)$; this is a spin 4-manifold that can be constructed by taking the $p$-fold cover of $B^4$ branched over the pushed-in Seifert surface of minimal genus of the $T_{q,r}$ torus link. Furthermore, $M_c(p,q,r)$ admits a handle decomposition with one 0-handle and $(p-1)(q-1)(r-1)$ 2-handles, all with even framing (see~\cite{AK} and \cite[Section 6.3]{GS}). Therefore doubling $M_c(p,q,r)$ results in $\#_{(p-1)(q-1)(r-1)} S^2 \times S^2$, and we get the following upper bound for the embedding numbers of these Seifert fibered manifolds. \begin{proposition}\label{SFSbound} For the Seifert fibered manifold $\Sigma (p,q,r)$, we have $\varepsilon (\Sigma (p,q,r)) \leq (p-1)(q-1)(r-1)$. \end{proposition} Note that if $p$, $q$, and $r$ are relatively prime then $\Sigma (p,q,r)$ is a Brieskorn homology sphere. While Proposition \ref{SFSbound} gives an upper bound for the embedding numbers of Brieskorn spheres, in many cases we can improve on this bound or even give an exact computation. \begin{proposition} If relatively prime $p$, $q$, and $r$ are all odd, have absolute value greater than $1$, and satisfy $pq+pr+qr= -1$, then $\varepsilon (\Sigma (|p|, |q|, |r|)) = 2$. \end{proposition} \begin{proof} If $\varepsilon (\Sigma (|p|, |q|, |r|)) < 2$, then by Proposition \ref{Zspheres}, $\Sigma (|p|, |q|, |r|)$ bounds an integral homology ball. However, Fintushel and Stern \cite[Theorem 10.7]{FS1} showed that these manifolds never bound integral homology balls. Therefore $\varepsilon (\Sigma (|p|, |q|, |r|)) \geq 2$. Now $\Sigma (|p|, |q|, |r|)$ admits a surgery diagram with a 0-framed unknot and three meridians with framings $\pm p$, $\pm q$, and $\pm r$ (see \cite[Section 1.1.4]{Sav}). Sliding two meridians over the third allows us to slam dunk (see Figure \ref{f:slamdunk}) the 0-framed unknot against the third meridian; this eliminates the 0-framed unknot and turns the third meridian into an $\infty$-framed curve, which can also be removed from the diagram. The result is a surgery diagram with two even-framed components. This shows that $\varepsilon (\Sigma (|p|, |q|, |r|)) = 2$. \end{proof} \begin{example} For odd $p$, the family $\Sigma (p-2, p, (p^2-2p-1)/2)$ of Brieskorn spheres satisfy $\varepsilon (\Sigma (p-2, p, (p^2-2p-1)/2)) = 2$. \end{example} \begin{proposition}\label{Poincare} For the Poincar\'e sphere $\Sigma(2,3,5)$, we have $\varepsilon(\Sigma(2,3,5))=8$. \end{proposition} \begin{proof} Since $\Sigma(2,3,5)$ is the boundary of the $E_8$ plumbing, we immediately have $\varepsilon(\Sigma(2,3,5))\leq 8$ and that the Rokhlin invariant $\mu(\Sigma(2,3,5))$ is nonzero. Now assume that $\Sigma(2,3,5)$ embeds in $\#_m S^2 \times S^2$ for $m<8$, splitting $\#_m S^2 \times S^2$ into two spin pieces $U$ and $V$. Then by the classification of indefinite, unimodular even forms and the fact that there are no definite, unimodular even forms of rank less than 8, both of the intersection forms $Q_U$ and $Q_V$ must have signature 0. This contradicts the fact that $\Sigma(2,3,5)$ has nontrivial Rokhlin invariant, so $\varepsilon(\Sigma(2,3,5))=8$. \end{proof} Note that this proof actually shows that any integral homology sphere with nontrivial Rokhlin invariant has $\varepsilon(\Sigma(2,3,5))\geq8$. The Poincar\'e sphere is one of a collection of Brieskorn spheres obtained by surgery on torus knots, namely $\Sigma(p,q,pqn \pm 1) = S^3_{-1/n}(T_{p,\pm q})$ \cite[Example 1.2]{Sav}. Note that when $n$ is even the embedding numbers are less than or equal to $2$ by Proposition \ref{surgery prop}(4). When $n$ is odd, the situation is more difficult. \begin{proposition}\label{Brieskorn_comp} For any \emph{odd} integer $n>0$ we have: \begin{itemize} \item $\varepsilon(\Sigma(2,3,6n+1)) = 10$. \end{itemize} More generally, for any \emph{odd} integer $n>0$ and \emph{even} integer $p>0$, we have the following bound: \begin{itemize} \item $\varepsilon(\Sigma(p,p+1,p(p+1)n + 1)) \leq (p+1)^2 + 1$. \end{itemize} \end{proposition} \begin{figure}[h] \labellist \pinlabel $0$ at 15 5 \pinlabel $+1$ at 123 67 \pinlabel $n$ at -6 150 \pinlabel $n$ at 192 150 \pinlabel $n$ at 408 150 \pinlabel $-1$ at 350 45 \pinlabel $-(p+1)^2$ at 192 05 \pinlabel $-1$ at 565 45 \pinlabel $-1$ at 424 05 \pinlabel $1$ at 385 110 \pinlabel $1$ at 385 93 \pinlabel $1$ at 385 65 \endlabellist \centering \includegraphics[scale=.75]{torusknotsurgery} \caption{Surgery diagrams for $\Sigma(p,p+1,p(p+1)n + 1)$.}\label{tks} \end{figure} \begin{proof} We start by proving the bound $\varepsilon(\Sigma(p,p+1,p(p+1)n + 1)) \leq (p+1)^2 + 1$. Now $\Sigma(p,p+1,p(p+1)n + 1) = S^3_{-1/n}(T_{p,p+1})$, and therefore we see a surgery diagram for these manifolds in the first picture of Figure \ref{tks}, where we have already performed a reverse slam dunk move (see Figure \ref{f:slamdunk}). Note that we draw $T_{p,p+1}$ so that there are $p+1$ strands, and hence we need to compensate for the full right-handed twist in the $p+1$ strands by adding a $-\frac{1}{p+1}$-twist. Now the goal is to transform this surgery description into one where all the surgery coefficients are even (see~\cite{Kap} for approaches to this type of problem). First we blow up the $p+1$ strands as in the second picture of Figure \ref{tks}. This changes the framing on our knot to $-(p+1)^2$, but now the knot is unknotted. We blow up the knot $(p+1)^2-1$ times as in the third picture of Figure \ref{tks}. Now all the other components have odd framing, and have odd linking number with the knot (here we use the fact that $p+1$ is odd). Hence we can blow down the knot to obtain a surgery diagram with $(p+1)^2 + 1$ even-framed components, and thus we achieve the upper bound on the embedding number by applying Theorem~\ref{all embed} as usual. Now we consider the family $\Sigma(2,3,6n+1)$, for $n$ odd. Applying the upper bound we just obtained to the case $p=2$, we get $\varepsilon(\Sigma(2,3,6n+1)) \leq 10$. As in Proposition \ref{Poincare}, the fact that this each member of family has nontrivial Rokhlin invariant implies that $\varepsilon(\Sigma(2,3,6n+1)) \geq 8$. If for some odd $n$ we have $\varepsilon(\Sigma(2,3,6n+1)) = 8$ or 9, then $\Sigma(2,3,6n+1)$ embeds into $\#_9 S^2 \times S^2$, splitting it into two spin pieces $U$ and $V$. Then the intersection forms $Q_U$ and $Q_V$ are unimodular, even, and have signature $\pm8$. It then follows by the total rank that one form must be $\pm E_8$ and the other $\mp E_8 \oplus H$. Hence $\Sigma(2,3,6n+1)$ bounds a non-standard even definite form, and we claim that this is impossible. Indeed, Ozsv\'ath and Szab\'o computed the Heegaard Floer correction term $d(\Sigma(2,3,6n+1))=0$ \cite[Section 8.1]{OzsvathSzabo-absolutely}. Suppose $\Sigma(2,3,6n+1)$ bounds a negative definite spin 4-manifold $W$ (if it bounds a positive definite spin 4-manifold we can reverse orientations and apply the same argument); \cite[Theorem 9.6]{OzsvathSzabo-absolutely} reads: \[ c_1(\mathfrak{s})^2 + b_2(W) \le 4d(\Sigma(2,3,6n+1)) = 0. \] Since $W$ is even, $0$ is a characteristic vector in $H^2(W)$, and therefore it is the cohomology class of a $\text{spin}^c$~ structure $\mathfrak{s}_0$ on $W$, and setting $\mathfrak{s}=\mathfrak{s}_0$ in the equation above shows $b_2(W)\le 0$. \end{proof} We end this section by using work of Tange to give families of Brieskorn spheres whose embedding numbers grow arbitrarily large. \begin{proposition} Let $\{M_n\}$ denote any one of the following families of Brieskorn spheres (as $n$ ranges over the positive integers): \begin{itemize} \item $\Sigma(4n-2,4n-1,8n-3)$, \item $\Sigma(4n-1,4n,8n-1)$, \item $\Sigma(4n-2,4n-1,8n^2-4n+1)$, or \item $\Sigma(4n-1,4n,8n^2-1)$. \end{itemize} Then $\varepsilon(M_n) \rightarrow \infty$ as $n \rightarrow \infty$. \end{proposition} \begin{proof} Tange~\cite{Tange} showed that $M_n$ bounds a spin, definite 4-manifold $X_n$ with $b_2(X_n)= 8n$. Now, by way of contradiction, suppose there is an $m >0$ such that $\varepsilon(M_n) \leq m$ for all $n$. In particular we can choose $a > m$ such that $8a + 2m < 10a - \frac{10}{4}m +2$, and $M_a$ embeds in $\#_m S^2 \times S^2$, splitting $\#_m S^2 \times S^2$ into two spin pieces $U$ and $V$, say, with $\partial V = \overline{M_a}$. Then $Z:= X_a \cup_{M_a} V$ is a closed, spin 4-manifold, with $$b_2(Z) \leq 8a + 2m < 10a - \frac{10}{4}m +2 = \frac{10}{8}|8a-2m| + 2 \leq \frac{10}{8}|\sigma(Z)|+2.$$ But this contradicts the 10/8-Theorem~\cite{Furuta}. \end{proof} \end{section} \begin{section}{Lens spaces}\label{lens} In this section we study the embedding numbers of lens spaces. We give partial results for lens spaces with small embedding number, and we also study the family $L(n,1)$. In what follows, $L(p,q)$ will always denote the 3-manifold obtained as $-p/q$-surgery along the unknot, and we will assume $p>1$ (i.e. $L(p,q)$ is not the 3-sphere nor $S^1 \times S^2$) and $\gcd(p,q)=1$. Recall that $L(p,q)$ is the double cover of $S^3$ branched over a 2-bridge link, which we denote by $K(p,q)$; namely, $L(p,q) = \Sigma(K(p,q))$. Moreover, $K(p,q)$ is a knot if $p$ is odd, and a 2-component link if $p$ is even. Recall also that $L(p,q)$ is (orientation-preserving) diffeomorphic to $L(p,q')$ if and only if $qq' \equiv 1 \pmod p$, and that $\overline{L(p,q)}= L(p,p-q)$. We start by giving an upper bound. \begin{proposition}\label{bad bound 2} $\varepsilon(L(p,q)) \le p-1$. \end{proposition} \begin{proof} Consider the linear plumbing $P$ associated to the continued fraction expansion $p/q = [a_1,\dots,a_n]^-$, namely: \[ \xygraph{ !{<0cm,0cm>;<1cm,0cm>:<0cm,1cm>::} !~-{@{-}@[|(2.5)]} !{(0,0) }*+{\bullet}="x" !{(1.5,0) }*+{\dots}="a1" !{(3,0) }*+{\bullet}="a2" !{(0,0.4) }*+{-a_1} !{(3,0.4) }*+{-a_n} "x"-"a1" "a2"-"a1" } \] where each $a_i\geq2$. This represent a surgery along a framed link $L$ that is a chain of unknots. Suppose $L'\subset L$ is a characteristic sublink (see \cite[Section 5.7]{GS}) with $\ell'$ components, indexed by the set $I'\subset \{1,\dots, n\}$. For each $i\in I'$, we blow up the $i$-th component of $L$ $a_i-1$ times, and then we blow it down. The resulting link $L''$ has even framing on each component, and presents $L(p,q)$ as the boundary of a spin 2-handlebody $W$. We claim that $b_2(W)\le p-1$. Indeed, it is enough to count the number of components $\ell''$ of $L''$: they are $\ell'' = n+\sum_{i\in I'} (a_i-1) - \ell'$. Since $a_i \ge 2$ for each $i$ we have: \[ \ell'' = n - \ell' +\sum_{i\in I'} (a_i-1) = \sum_{i \not\in I'} 1 + \sum_{i \in I'} (a_i-1) \le \sum_{i=1}^n (a_i-1). \] We now prove by induction on $n$ that $\sum_{i=1}^n (a_i-1) \le p-1$. This is obviously true when $n=1$, since in that case $a_1 = p$. Suppose now $n>1$, and let $p = kq-r$ with $0<r<q$. \[ \sum_{i=1}^n (a_i-1) = a_1-1 + \sum_{i=2}^n(a_i-1) = k-1+\sum_{i=2}^n(a_i-1) \le k-1+q-1, \] where the last inequality follows from the inductive step, and the observation that $q/r = [a_2,\dots,a_n]^-$. Now $k-1+q-1 \le p-1$, since \[ k-1+q \le p = kq-r \Longleftrightarrow r\le (k-1)(q-1), \] which is trivially true since $k\ge 2$ and $q-1\ge r$ by assumption. \end{proof} \begin{remark} In fact, Neumann and Raymond show that, up to reversing the orientation, every lens space bounds a spin linear plumbing of spheres~\cite[Lemma 6.3]{NeumannRaymond}; furthermore, an easy induction shows that the number of spheres in the plumbing is at most $p-1$, giving an alternative proof of the proposition above. \end{remark} Now Proposition~\ref{surgery prop}(1) shows that $\varepsilon(L(p,q)) \ge 1$. Moreover, it has been observed by Rasmussen that every lens space in Lisca's list\footnote{As observed by several authors, the case $\gcd(m,k)=2$ should be included in type (1) in the definition of $\mathcal{R}$ in that paper.}~\cite{Lisca-ribbon} bounds a rational homology ball that admits a handle decomposition with one handle of each index 0, 1, and 2 (see~\cite{LecuonaBaker}). Combining this directly with Theorem~\ref{t:one1-handle} and Theorem~\ref {t:oddH1} gives the following result. \begin{theorem}\label{lens space ball} Every lens space $L(p,q)$ with $p$ odd has $\varepsilon(L(p,q)) = 1$ if and only if it bounds a rational homology ball, i.e. if and only if belongs to Lisca's list. \end{theorem} This naturally leads to considering which lens spaces with $p$ even have embedding number 1. For example, $L(pq\pm1, \mp q^2)$ with $pq$ odd has embedding number 1, since it is $(pq\pm1)$-surgery along $T_{p,q}$~\cite{Moser}. More generally, the Berge conjecture provides more lens spaces for which the embedding number is 1: the classification of lens spaces that arise as surgery along knots in the 3-sphere has been solved by Greene~\cite{Greene}. \begin{question} Are all lens spaces with embedding number 1 either in Lisca's list or in Greene's list? \end{question} We begin the study of this problem by generalizing Theorem~\ref{t:oddH1} for some branched double cover rational homology spheres (and in particular for lens spaces). \begin{proposition}\label{p:spin-link} Let $L$ be a link in $S^3$ with $\ell$ components, whose branched double cover $\Sigma(L)$ is a rational homology sphere. If $\Sigma(L)$ bounds a spin $4$-manifold $W$, $b_2(W) \equiv \ell+1 \pmod 2$. \end{proposition} First of all, let us observe that the proposition does indeed generalize Theorem~\ref{t:oddH1} in the case of lens spaces. Indeed, when $p$ is odd, $L(p,q)$ is the branched double cover of a knot (i.e. $\ell = 1$ in the proposition above), and every embedding of $L(p,q)$ in $S^2\times S^2$ splits the $4$-manifold into two connected components, each with even $b_2$ (namely, $0$ and $2$). On the other hand, when $p$ is even, we have the following corollaries. \begin{corollary} If $p$ is even, $L(p,q)$ bounds no spin rational homology ball. \end{corollary} \begin{proof} Indeed, when $p$ is even, $L(p,q)$ is the double cover of $S^3$ branched over the 2-component link $K(p,q)$, and therefore every spin filling of $L(p,q)$ has odd $b_2$. \end{proof} \begin{corollary} If $p$ is even and $\varepsilon(L(p,q)) = 1$, every embedding of $L(p,q)$ into $S^2\times S^2$ splits $S^2\times S^2$ into two spin $4$-manifolds $X_1$, $X_2$ with $b_2(X_i)=1$, $b_1(X_i) = b_3(X_i) = 0$. \end{corollary} \begin{proof} As remarked above, $L(p,q)$ is the branched double cover of a $2$-component link, hence $\ell = 2$ in the proposition above, and therefore $b_2(X_i)$ is odd. Looking at the Mayer--Vietoris sequence, we have that $b_1(X_i) = b_3(X_i) = 0$; since $b_2(S^2\times S^2) = 2$ and the $b_2(X_i)$ are odd, we have $b_2(X_1) = b_2(X_2) = 1$, hence the corollary follows. \end{proof} \begin{remark} The classification of which lens spaces bound a $4$-manifold $X_1$ as in the corollary above is still an open question. Observe also that, if we restrict our attention to lens spaces $L(p,q)$ with squarefree, even $p$, there is a further restriction on the homology of $X_1$; namely, $H_1(X_1) = H_3(X_1) = 0$, and $H_2(X_1) = \mathbb{Z}$. However, this restriction is not sufficient to allow for a complete classification, either. \end{remark} \begin{proof}[Proof of Proposition~\ref{p:spin-link}] By restriction $\Sigma(L)$ inherits a spin structure $\t$ from $W$. Turaev~\cite[Section 2.2]{Turaev} has shown that to each orientation $o$ on $L$ one can associate a spin structure $\t_o$ on $\Sigma(L)$, and Donald and Owens~\cite[Proposition 3.3]{DonaldOwens} gave the following interpretation of $\t_o$. Fix a Seifert surface for the oriented link $(L,o)$, and push it into the 4-ball, obtaining a surface $F_o$; the branched double cover $\Sigma(B^4,F_o)$ admits a spin structure $\mathfrak{s}_{F_o}$ (the pull-back of the spin structure on $B^4$), and $\t_o$ is the restriction of $\mathfrak{s}_{F_o}$ to $\Sigma(L)$. Recall that $\sigma(L,o)$ is the signature of the double cover $\Sigma(B^4,F_o)$. In the case at hand, since $\Sigma(L)$ is a rational homology sphere, $\det L\neq0$, and the Seifert form of $F_o$ is nondegenerate for every choice of orientation $o$ and every choice of Seifert surface $F_o$. It follows that $\sigma(L,o) \equiv b_1(F_o) \pmod 2$, and since $b_1(F_o) \equiv \ell+1 \pmod 2$, $\sigma(L,o) \equiv \ell+1 \pmod 2$. Summing up, for each spin structure on $\Sigma(L)$ we constructed a spin filling, whose signature is congruent to $\ell+1$ modulo 2. In particular, we have a spin filling $W_\t$ of $(Y,\t)$. We can glue $W_\t$ and $-W$ along $Y$, and we obtain a closed spin $4$-manifold $X$. Thus, since closed spin 4-manifolds have even signature, $\sigma(W_\t) - \sigma(W) = \sigma(X) \equiv 0 \pmod 2$, from which the result follows. \end{proof} \begin{subsection}{The family $L(n,1)$} We now focus on lens spaces of the form $L(n,1)$. For convenience we work with the opposite orientation, $\overline{L(n,1)}=L(n,n-1)$, and so let $L_n$ denote the lens space $L(n,n-1)$. According to Proposition~\ref{surgery prop}, $L_{2n}$ has embedding number 1. However, we can refine the notion of the embedding number by requiring that the restriction of the unique spin structure on $\#_nS^2\times S^2$ induce a given spin structure on the 3-manifold. In particular, the embedding of $L_{2n}$ in $S^2\times S^2$ realizes the restriction of the unique spin structure on the 2-handlebody obtained by attaching a 2-handle to $B^4$ along the unknot, with framing $2n$. We can ask what happens with the other spin structure on $L_{2n}$, which is the restriction of the spin structure on the plumbing $P_{2n}$ of a chain of $2n-1$ spheres with Euler number $-2$. Observe also that $L_{2n+1}$ is the boundary of the plumbing $P_{2n+1}$, and restricting the spin structure on $P_{2n+1}$ gives the unique spin structure on $L_{2n+1}$. For the remainder of this discussion we consider $L_n$, implicitly equipped with the spin structure described above. Proposition~\ref{bad bound 2} states that $\varepsilon(L_n) \leq n-1$. Indeed, we can see this directly since $L_n$ is the boundary of the linear plumbing $P_n$ (the induced surgery diagram is a chain of $n-1$ unknotted components, all with framing $-2$). We will see below that this upper bound can be improved upon in many cases. But first we use the 10/8-Theorem to show that the embedding numbers of these lens spaces grow arbitrarily large. Recall from the introduction that Edmonds~\cite{Edm} proved that every lens space embeds topologically locally flatly in $\#_4 S^2 \times S^2$, and hence we see that these embedding numbers reflect the sharp contrast between the smooth and topological categories of 4-manifolds. In what follows, we will repeatedly use Novikov additivity. More precisely, whenever we have a splitting of $\#_nS^2\times S^2$ into $X$ and $Y$ along a 3-manifold, we have $\sigma(X) + \sigma(Y) = \sigma(\#_nS^2\times S^2) = 0$; that is, $\sigma(X) = -\sigma(Y)$. \begin{proposition}\label{bad lower bound} $\varepsilon(L_n) \geq \frac19 (n+7)$. Additionally, if the $11/8$-Conjecture is true, then $\varepsilon(L_n) \geq \frac{3}{19}(n-1)$. \end{proposition} \begin{proof} As noted above, $L_n = \partial P_n$, where the latter is a spin $4$-manifold with $\sigma(P_n) = 1-n$. Suppose $\varepsilon(L_n) = m$, and fix an embedding of $L_n$ into $\#_{m}S^2\times S^2$. Note we can assume that $m\leq n-1$ by Proposition \ref{bad bound 2}. Let $Z$ be the connected component of the complement of this embedding such that $\partial Z = -L_n$. Consider the closed, spin $4$-manifold $X := P_n \cup_{L_n} Z$: since $L_n$ is a rational homology sphere, $b_2(X) = n-1+b_2(Z)$ and $\sigma(X) = 1-n+\sigma(Z)$. Observe that, by definition, $\sigma(Z) \le b_2(Z)$. By the 10/8-Theorem~\cite{Furuta}, \begin{equation}\label{e:furuta} n-1 + b_2(Z) = b_2(X) \ge \frac54|\sigma(X)| + 2 = \frac54|1-n+\sigma(Z)| + 2= \frac54(n-1-\sigma(Z))+2, \end{equation} and in particular $7-4n-4b_2(Z) \le 5\sigma(Z)-5n \le 5b_2(Z)-5n$, from which we obtain $b_2(Z) \geq \frac19n +\frac79$. Let $Z' = \#_{m}S^2\times S^2 \setminus Z$. By Novikov additivity, $\sigma(Z') = -\sigma(Z)$, and, by gluing $-P_n$ onto $Z'$, the same manipulations as above give the inequality \[ m = \frac12 b_2(\#_{m}S^2\times S^2) = \frac12(b_2(Z) + b_2(Z')) \geq \frac19n+\frac79, \] as desired. Assuming the 11/8-Conjecture, instead of~\eqref{e:furuta} we have \[ n-1 + b_2(Z) = b_2(X) \ge \frac{11}{8}|\sigma(X)| = \frac{11}{8}|1-n+\sigma(Z)|, \] from which one readily obtains $3n-8b_2(Z) \le 11\sigma(Z)+3$, from which the desired bound follows as before. \end{proof} Now we show two relations between $\varepsilon(L_n)$: one is a form of subadditivity, and the other asserts that $\varepsilon(L_{n-1})$ gives tight restrictions on $\varepsilon(L_n)$; in particular, the values can differ by at most 1. \begin{theorem}\label{steps} We have: \begin{enumerate} \item $\varepsilon(L_{m+n}) \le \varepsilon(L_m)+\varepsilon(L_n)+1$; \item $\varepsilon(L_{n-1})-1 \leq \varepsilon(L_{n}) \leq \varepsilon(L_{n-1}) + 1$. \end{enumerate} \end{theorem} We first pause and observe a consequence of (1) in the theorem above. \begin{corollary} The sequence $\varepsilon(L_n)/n$ converges to a limit $\varepsilon_L\in \mathbb{R}$. Moreover, $\varepsilon_L\ge \frac19$, and, if the $11/8$-Conjecture holds, $\varepsilon_L \ge \frac3{19}$. \end{corollary} \begin{proof} The sequence $a_n = \varepsilon(L_n)+1$ is subadditive by Theorem~\ref{steps}(1), above. Therefore, by Fekete's lemma~\cite{Fekete}, we have $\inf_n \frac{a_n}n = \lim_n \frac{a_n}n$. Since $a_n = \varepsilon(L_n) + 1$, we have $\lim_n \frac{\varepsilon(L_n)}n= \lim_n \frac{a_n}n$, and in particular the sequence ${\varepsilon(L_n)}/n$ is convergent. The inequalities follow directly from Proposition~\ref{bad lower bound} above. \end{proof} \begin{remark} Steven Sivek pointed out to the authors that we can obtain upper bounds for $\varepsilon_L$ as follows. Suppose $\varepsilon(L_n) =e$ for some $n$. Then by induction one can show that $\varepsilon(L_{2^k n})\leq2^k(e+1)-1$, and hence $\varepsilon_L \leq \frac{1}{n}(e+1)$. For example, below we will show that $\varepsilon(L_{19})=4$, and so this implies that $\varepsilon_L \leq \frac{5}{19}$. \end{remark} \begin{proof}[Proof of Theorem~\ref{steps}] \begin{enumerate} \item By Proposition~\ref{p:generalproperties}, it is enough to prove that $\varepsilon(L_{m+n}) \le \varepsilon(L_m\#L_n)+1$. Suppose therefore that $\varepsilon(L_m\# L_n) = a$, i.e. that $\#_a S^2\times S^2 = X \cup_{L_m\# L_n} Y$. Consider the cobordism $W_0$ in Figure~\ref{cobordism0}; this is obtained from $(L_m\#L_n)\times I$ (represented by the disjoint plumbings of $m-1$ and $n-1$ components with framings $-2$ in brackets) by adding a $-2$-framed 2-handle $h$ joining two ends of $P_m$ and $P_n$, and a 2-handle $b$ attached along a meridian of the attaching curve of $h$ with framing 0. The upper boundary of $W_0$ is still $L_m\# L_n$. Notice that $W_0$ contains $L_{m+n}$, since it contains the boundary of the plumbing of a chain of $-2$-framed unknots of length $m+n-1$. In particular, the closed 4-manifold $Z_0 = X\cup_{L_m\# L_n} W_0\cup_{L_m\# L_n} Y$ contains a copy of $L_{m+n}$. We will show in Lemma~\ref{l:trivialcob} that $Z_0$ is diffeomorphic to $\#_{a+1} S^2\times S^2$, and hence we obtain $\varepsilon(L_{m+n}) \le a+1$, as desired. \item Suppose that $\varepsilon(L_n)=a$, so that $\#_a S^2 \times S^2 = X \cup_{L_{n}} Y$. Consider the cobordisms $W_1$ in Figure \ref{cobordism} and $W_2$ in Figure \ref{cobordism2}, each consisting of two 2-handles (labelled $h,b$) added to $L_n \times I$. Notice that in both cases the upper boundary of the cobordism is still $L_n$. Hence we can form new spin 4-manifolds $Z_i := X \cup W_i \cup Y$. Now observe that $L_{n-1}$ is embedded in $W_1$ and $L_{n+1}$ is embedded in $W_2$ as middle levels. In both cases, just take the surgery description given by the plumbing of $-2$ spheres and add the surgery curve corresponding to $h$. For $W_2$ the claim is immediate, and for $W_1$ we must slam dunk the 0-framed curve $h$. Now to complete the proof we only need to show that each $Z_i$ is diffeomorphic to $\#_{a+1} S^2 \times S^2$ (to get the right-hand inequality we reindex), and we do this in the next lemma.\qedhere \end{enumerate} \end{proof} \begin{figure}[h] \labellist \pinlabel $\langle-2\rangle$ at 35 -5 \pinlabel $\langle-2\rangle$ at 390 -5 \pinlabel $\hphantom{\langle-2\rangle}h$ at 180 -5 \pinlabel $b$ at 188 90 \pinlabel $0$ at 228 90 \pinlabel $\hphantom{\langle-2\rangle}-2$ at 208 -5 \endlabellist \centering \includegraphics[scale=.95]{cobordism0} \caption{The cobordism $W_0$.}\label{cobordism0} \end{figure} \begin{figure}[h] \labellist \pinlabel $\langle-2\rangle$ at 35 -5 \pinlabel $\langle-2\rangle$ at 92 -5 \pinlabel $\langle-2\rangle$ at 148 -5 \pinlabel $\langle-2\rangle$ at 329 -5 \pinlabel $\langle-2\rangle$ at 386 -5 \pinlabel $h$ at 12 79 \pinlabel $b$ at 12 109 \pinlabel $0$ at 54 79 \pinlabel $0$ at 52 109 \endlabellist \centering \includegraphics[scale=.95]{cobordism1} \caption{The cobordism $W_1$.}\label{cobordism} \end{figure} \begin{figure}[h] \labellist \pinlabel $\langle-2\rangle$ at 35 -5 \pinlabel $\langle-2\rangle$ at 92 -5 \pinlabel $\langle-2\rangle$ at 148 -5 \pinlabel $\langle-2\rangle$ at 329 -5 \pinlabel $\langle-2\rangle$ at 386 -5 \pinlabel $h$ at 12 79 \pinlabel $b$ at 12 109 \pinlabel $-2$ at 57 79 \pinlabel $0$ at 54 109 \endlabellist \centering \includegraphics[scale=.95]{cobordism2} \caption{The cobordism $W_2$.}\label{cobordism2} \end{figure} \begin{lemma}\label{l:trivialcob} In each case above, $Z_i$ is diffeomorphic to $\#_{a+1} S^2 \times S^2$, for $i=0,1,2$. \end{lemma} \begin{proof Let $L$ denote either $L_m\#L_n$ or $L_n$, depending on the respective case. In any of the three cases we can surger $b$ in $W_i$ to a 1-handle in dotted circle notation, and the resulting cobordism is the trivial cobordism $L\times I$ since $h$ will cancel the resulting 1-handle. Therefore we obtain $W_i$ by reversing this operation, i.e. performing surgery on a copy of $S^1 \times D^3$ in $L \times I$. Now consider this operation occurring inside the closed manifold $X \cup (L \times I) \cup Y =\#_a S^2\times S^2$ (where $X$ and $Y$ come from the proof of Theorem~\ref{steps} above, and depend on which case we are in). Since this manifold is simply connected, the surgery curve $S^1 \times \{0\}$ is null-homotopic and the effect of the surgery is to produce a connected summand with one of the two $S^2$ bundles over $S^2$~\cite[Proposition 5.2.3]{GS}. We now claim that $W_i$ is spin: in fact, $W_i$ embeds in the spin $2$-handlebody obtained by removing all brackets in Figures~\ref{cobordism0}--\ref{cobordism2} above. It follows that we must be taking a connected sum with $S^2 \times S^2$, and we get that $Z_i= X \cup W_i \cup Y$ is diffeomorphic to $\#_{a+1} S^2 \times S^2$, as claimed. \end{proof} We end this section with a lengthy discussion of the embedding numbers for $L_n$ with $n\leq 19$. We again emphasize that in this section we are abusing notation by using $\varepsilon(L_{2n})$ to denote the embedding number of $L_{2n}$ with respect to the spin structure that extends over $P_{2n}$. \begin{theorem}\label{t:smallLn} The embedding numbers for $L_n$ with $n\leq 19$ are given by the following table. \begin{center} \begin{tabular}{ |c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c| } \hline $n$ & $2$ & $3$ & $4$ & $5$ & $6$ & $7$ & $8$ & $9$ & $10$ & $11$ & $12$ & $13$ & $14$ & $15$ & $16$ & $17$ & $18$ & $19$\\ \hline $\varepsilon(L_n)$ & $1$ & $2$ & $3$ & $4$ & $5$ & $6$ & $7$ & $8$ & $9$ & $10$ & $11$ & $10$ & $9$ & $8$ & $7$ & $6$ & $5$ & $4$\\ \hline \end{tabular} \end{center} \end{theorem} We will make several of these computations in detail: in particular, we will compute $\varepsilon(L_2)$, $\varepsilon(L_{12})$, and $\varepsilon(L_{19})$, and these will suffice to prove the theorem. We will also give a more explicit computation of $\varepsilon(L_{17})$. Observe that for these values of $n$, Theorem~\ref{bad lower bound} is insufficient to give the necessary lower bounds. From Proposition~\ref{bad bound 2} it follows that $\varepsilon(L_n) \leq n-1$, and for $n=3, \cdots, 11$ we claim that this cannot be improved upon. \begin{claim} $\varepsilon(L_2) = 1$. \end{claim} \begin{proof} Indeed, $L_2$ is understood to have the spin structure induced as the boundary of $P_2$, whose double is $S^2\times S^2$. Moreover, since the order of $H_1(L_2)$ is not a square, $\varepsilon(L_2)\ge 1$, hence $\varepsilon(L_2) = 1$. \end{proof} \begin{claim} $\varepsilon(L_{12})=11$. \end{claim} \begin{proof} Since $L_{12}$ is the boundary of $P_{12}$, by doubling we obtain $\varepsilon(L_{12})\le 11$. If $\varepsilon(L_{12}) < 11$, then $L_{12}$ embeds in $\#_{10} S^2 \times S^2$, splitting it into two spin pieces $U$ and $V$, say, with $\partial U =L_{12}$ and $\partial V = \overline{L_{12}}$. Since the Rokhlin invariant associated to this spin structure satisfies $\mu(L_{12}) = -11 \pmod{16}$, and $b_2(\#_{10} S^2 \times S^2) = 20$, we must have that $\sigma(U)=5$ and $\sigma(V)=-5$. Furthermore, at least one of $U$ or $V$ must have $b_2 \leq 10$, and we can glue this manifold to either $P_{12}$ or $\overline{P_{12}}$ to get a spin closed 4-manifold $X$ with $b_2(X) \leq 21$ and $|\sigma(X)|=16$. But then \[ b_2(X) \leq 21 < \frac{10}{8}(16) +2= \frac{10}{8}|\sigma(X)| +2, \] which contradicts the 10/8-Theorem. \end{proof} Before considering $\varepsilon(L_{19})$ we will first prove directly that $\varepsilon(L_{17}) =6$, since the strategy is the same as for $L_{19}$ and the argument in this case is easier. In both cases we claim that the plumbings $P_{17}$ and $P_{19}$ embed in the $K3$ surface. For $L_{17}$ we show directly that the complement $K3\setminus P_{17}$ consists of a single 0-handle and six 2-handles (necessarily with even framing, since the $K3$ surface is spin), and so the standard argument shows that $\varepsilon(L_{17})\leq6$. However, we were unable to carry out fully the analogous argument for $L_{19}$. Instead we embed $P_{19}$ in a \emph{homotopy} $K3$ such that the complement admits a handle decomposition with a single 0-handle and four even-framed 2-handles, giving $\varepsilon(L_{19})\leq4$. The following fact is related to, though not directly relevant for, computing $\varepsilon(L_n)$. \begin{proposition}\label{sextic cover} The plumbings $P_n$ embed in the standard smooth $K3$ surface for every $n\le 19$. \end{proposition} \begin{proof} It clearly suffices to prove the statement for $n=19$. To this end, recall that there exists a complex sextic $C$ in $\mathbb{CP}^2$ with a unique singular point, whose link is the torus knot $T_{2,19}$ \cite[Theorem 5.8]{sextics}. We can smooth out the singularity of $C$ by taking a small perturbation, thus obtaining a complex curve $C'$. In a neighborhood of the singular point, this has the effect of replacing the singularity with its Milnor fiber $F$, that is isotopic to a push-off of the minimal-genus Seifert surface of $T_{2,19}$ pushed into $B^4$. By taking the double cover of $\mathbb{CP}^2$ branched over $C'$, we obtain a complex $K3$ surface, that contains the double cover of $B^4$ branched over $F$, and this is known to be a plumbing of $-2$-spheres of length $19$. Therefore, $P_{19}$ embeds in a $K3$. \end{proof} Now for $L_{17}$ we can see an embedding of $P_{17}$ explicitly in a handle diagram for the $K3$ surface. \begin{claim} $\varepsilon(L_{17})=6$. Indeed, $P_{17}$ embeds in the $K3$ surface such that the complement admits a handle decomposition with a single $0$-handle and six even-framed $2$-handles. \end{claim} \begin{figure}[h] \labellist \pinlabel $-2$ at 6 28 \pinlabel $0$ at 47 164 \pinlabel $-1$ at 106 5 \pinlabel $0$ at 141 197 \pinlabel $2$ at 152 98 \pinlabel $3$ at 277 98 \pinlabel $1$ at 277 180 \pinlabel $3$ at 221 98 \pinlabel $1$ at 221 180 \pinlabel $3$ at 333 98 \pinlabel $1$ at 333 180 \pinlabel $3$ at 388 98 \pinlabel $1$ at 388 180 \pinlabel $-1$ at 232 50 \pinlabel $-1$ at 259 50 \pinlabel $-1$ at 296 50 \pinlabel $15$ at 269 -10 \endlabellist \centering \includegraphics[scale=0.85]{K3} \caption{A handle diagram for the $K3$ surface.}\label{K3} \end{figure} \begin{proof} In \cite[Section 8.3]{GS} it is shown that Figure~\ref{K3} (plus a 4-handle) is a handle diagram for the $K3$ surface. Notice that in total there are sixteen $-1$-framed meridians. These can be slid, one over the other, as in Figure~\ref{chain}, to form a chain of fifteen $-2$-framed unknots, attached at the end to a $-1$-framed meridian that cancels the 1-handle. Hence we immediately see an embedding of $P_{16}$ into the $K3$ surface. To obtain $P_{17}$ we must work a little harder. If in Figure~\ref{K3} we slide the left-most 0-framed 2-handle over the left-most $-1$-framed meridian as indicated by the arrow, then after isotopy the 0-framed 2-handle becomes a $-1$-framed meridian of the dotted circle, itself with a $-2$-framed meridian (and of course linking the the meridian it slid over). Now we may begin the process of sliding the meridians to create the $-2$ chain, but we gained an extra $-2$-framed 2-handle (the original $-2$-framed 2-handle on the left of the diagram). After these slides we will see $P_{17}$ embedded in the $K3$ surface, linked with two $-1$-framed meridians. Either of these meridians cancels the 1-handle after sliding the remaining 2-handles off. The result will be a handle diagram for the $K3$ surface composed of twenty-two 2-handles, a single 0- and 4-handle, and with $P_{17}$ as a sub-handlebody. Then if we take the 2-handles not in $P_{17}$ and the 4-handle, and turn this handlebody upside down, we get a handlebody with a single 0-handle, and six even-framed 2-handles (necessarily even-framed, since the $K3$ surface is spin) with $L_{17}$ as the boundary. Hence $\varepsilon(L_{17})\leq 6$. Now we finish the claim by showing $L_{17}$ does not embed in $\#_5 S^2 \times S^2$. If it did, it would split $\#_5 S^2 \times S^2$ into two spin pieces $U$ and $V$. Since $\mu(L_{17})=-16 \equiv 0$ (mod 16), we have $\sigma(U)=\sigma(V)=0$. At least one of $U$ or $V$ must have $b_2 \leq5$, and gluing this manifold to either $P_{17}$ or $\overline{P_{17}}$ results in a closed spin 4-manifold $X$ with \[ b_2(X)\leq 21 < \frac{10}{8}(16) +2= \frac{10}{8}|\sigma(X)| +2, \] which contradicts the 10/8-Theorem. \end{proof} \begin{figure}[h] \labellist \pinlabel $-1$ at 22 28 \pinlabel $-1$ at 47 28 \pinlabel $-1$ at 76 28 \pinlabel $-1$ at 131 61 \pinlabel $-2$ at 132 16 \pinlabel $-1$ at 174 28 \pinlabel $-2$ at 227 30 \pinlabel $-1$ at 229 61 \pinlabel $-2$ at 227 10 \endlabellist \centering \includegraphics[scale=1.25]{chain} \caption{Sliding $-1$-framed meridians.}\label{chain} \end{figure} Observe that our argument shows that $L_{17}$ can be obtained by even-framed surgery on a 6-component link in $S^3$. In principle one could follow through the handle calculus to realize this surgery diagram, but we have not done this. For $L_{19}$ we were unable to prove that the complement of $P_{19}$ in the $K3$ surface (given by the embedding described in Proposition~\ref{sextic cover}) admits a handle decomposition without 1- or 3-handles. Instead we will construct a certain \emph{smooth} sextic in $\mathbb{CP}^2$ whose branched double cover is a homotopy $K3$, which we denote by $\mathcal{K}$, such that $P_{19}$ embeds in $\mathcal{K}$ with a complement that admits a handle decomposition with a single 0-handle and four even-framed 2-handles. \begin{lemma} There is a genus-$1$ cobordism $C$ from $T_{2,19}$ to $T_{6,6}$ with no minima and no maxima. \end{lemma} \begin{proof} Consider the group $B_6$ of braids on six strands; we let $\sigma_1,\dots,\sigma_5$ denote the five standard generators, and $\tau = \sigma_1\sigma_2\dots\sigma_5$ be their product; the full twist on six strands is then $\tau^6$. We note the following relation in the braid group that holds for every $i+j\le5$: $\tau^j \sigma_i = \sigma_{i+j}\tau^j$. In particular, we will make use of the relations $\sigma_3\tau = \tau\sigma_2$ and $\sigma_2\sigma_3\tau = \tau\sigma_1\sigma_2$, and of the fact that $\sigma_1$, $\sigma_3$ and $\sigma_5$ commute. \begin{figure} \includegraphics[width=0.8\textwidth]{braid} \caption{The braid $\beta = \tau^2\sigma_1^3\sigma_3^6\sigma_5^4$; strands are numbered from top to bottom, and the braid is to be read from left to right. Note that $\sigma_1$, $\sigma_3$, and $\sigma_5$ commute, hence we can draw them as vertically aligned. The thinner lines exhibit an unknotted solid torus that contains the braid, hence showing that the closure of $\beta$ is a 2-cable of the unknot.}\label{f:braid} \end{figure} We claim that $T_{2,19}$ is the closure of the 6-braid $\beta = \tau^2\sigma_1^3\sigma_3^6\sigma_5^4$ (see Figure~\ref{f:braid} above). In fact, the closure of $\beta$ clearly represents a $2$-cable of the unknot, seen as a 3-braid; therefore, $\widehat\beta$ is a torus knot $T_{2,q}$ for some $q$. Moreover, since $\beta$ is quasipositive, the slice genus of its closure is determined by the exponent of $\beta$ \cite{R}. It follows that $g_*(\widehat\beta) = 9$, thus $\widehat\beta = T_{2,19}$, as claimed. We now exhibit the cobordism, by adding bands corresponding to generators. Indeed, let us write: \[ \tau^2\sigma_1^3\sigma_3^6\sigma_5^4 = \tau^2(\sigma_1\sigma_3\sigma_5)\sigma_3(\sigma_1\sigma_3\sigma_5)\sigma_3(\sigma_1\sigma_3\sigma_5)\sigma_3\sigma_5; \] we can insert bands corresponding to $\sigma_2$ and $\sigma_4$ in each $\sigma_1\sigma_3\sigma_5$ factor, and one extra $\sigma_4$ in the next-to-last position, thus obtaining: \[ \gamma := \tau^2\cdot\tau\cdot\sigma_3\cdot\tau\cdot\sigma_3\cdot\tau\cdot\sigma_3\cdot\sigma_4\cdot\sigma_5. \] We now use the relations $\sigma_3\tau = \tau\sigma_2$ and $\sigma_2\sigma_3\tau = \tau\sigma_1\sigma_2$ mentioned above to write: \[ \gamma = \tau^3\sigma_3\tau\sigma_3\tau\sigma_3\sigma_4\sigma_5 = \tau^4\sigma_2\sigma_3\tau\sigma_3\sigma_4\sigma_5 = \tau^5\sigma_1\sigma_2\sigma_3\sigma_4\sigma_5 = \tau^6, \] and hence $\widehat\gamma = T_{6,6}$. \end{proof} We can now cap off the cobordism in $\mathbb{CP}^2$ with six discs, since the Hopf link $T_{6,6}$ is the link at infinity of a degree-6 curve. Filling the lower boundary component with the Milnor fiber of $T_{2,19}$ (i.e. the pushed-in canonical Seifert surface) we obtain a genus-10 smooth surface $F$ in the homology class $6h\in H_2(\mathbb{CP}^2)$. The double cover of $\mathbb{CP}^2$ branched over $F$ is a spin 4-manifold $\mathcal{K}$, since the homology class $[F]$ is even, but not divisible by 4~\cite{Nagami}; moreover, the Euler characteristic is 24, since the surface $F$ is of genus 10. Since $F$ contains the Milnor fiber of $T_{2,19}$, and the double cover of $B^4$ branched over this surface is $P_{19}$~\cite{AK}, we see that $P_{19}$ embeds in $\mathcal{K}$. \begin{lemma} The complement of $P_{19}$ in $\mathcal{K}$ admits a handle decomposition with a single $0$-handle and four even-framed $2$-handles. \end{lemma} \begin{proof} $F$ is constructed so that the standard Morse function on $\mathbb{CP}^2$ induces a handle decomposition of $F$ with a single 0-handle, twenty-five 1-handles, and six 2-handles. We now apply work of Akbulut and Kirby~\cite{AK} (see also \cite[Section 6.3]{GS}) to determine the structure of the handle decomposition of the double cover $\Sigma(F)$ of $\mathbb{CP}^2$ branched over $F$. The double cover of $B^4$ branched over a properly embedded surface with a single 0-handle and no 2-handles admits a handle decomposition with a single 0-handle and $k$ 2-handles with even framing, where $k$ is the number of 1-handles of the surface. If we take the double cover of $B^4 \cup 2$-handle branched over such a surface (whose boundary is disjoint from the attaching circle of the 2-handle), the additional 2-handle lifts to two 2-handles in the cover. Now the branched double cover of $B^4$ over the Milnor fiber of $T_{2,19}$ is $P_{19}$, and by the preceding remarks it follows that the branched double cover of the cobordism $C$ constructed above is obtained by attaching only 2-handles from $L_{19} = L(19,18) = \Sigma(T_{2,19})$ to get to $\Sigma(T_{6,6})$. The only potential difficulty is when we take the double cover of $\mathbb{CP}^2 \setminus B^4$ branched over the six disks (the 2-handles of $F$). However, here we can apply a trick from \cite[Section 5]{AK}. Since $F$ is connected, and each disk is glued onto one of the six upper boundary components of $C$, we can connect any pair of disks with an embedded band in $C$. This band can then be ``lifted'' to the 4-handle, connecting the pair of disks and so eliminating one of the 2-handles of $F$. After performing this move five times, we will have isotoped $F$ so that it has a handle decomposition with a single 0-handle and single 2-handle. Then the work of~\cite{AK} implies that the branched double cover admits a handle decomposition without 1- or 3-handles. Since this handle decomposition includes $P_{19}$, the proof is completed by recalling that $\Sigma(F)=\mathcal{K}$ and that $b_2(\mathcal{K}) = 22$. \end{proof} We have not attempted to verify whether $\mathcal{K}$ is diffeomorphic to the $K3$ surface; nor have we attempted to determine the 4-component link in $S^3$ that admits an even-framed surgery to $L_{19}$, whose existence is guaranteed by the argument above. \begin{claim} $\varepsilon(L_{19})=4$. \end{claim} \begin{proof} We have shown that $\varepsilon(L_{19}) \leq4$. The proof of the necessary lower bound is by now a familiar argument. If $L_{19}$ embeds in $\#_3 S^2 \times S^2$, then it would split $\#_3 S^2 \times S^2$ into two spin pieces $U$ and $V$, say, with $\partial U =L_{19}$ and $\partial V = \overline{L_{19}}$. Since $\mu(L_{19})=-18 \equiv -2$ (mod 16), we have $\sigma(U)= -2$ and $\sigma(V)=2$. At least one of $U$ or $V$ must have $b_2 \leq3$, and gluing this manifold to either $P_{19}$ or $\overline{P_{19}}$ results in a closed spin 4-manifold $X$ with \[ b_2(X)\leq 21 < \frac{10}{8}(16) +2= \frac{10}{8}|\sigma(X)| +2, \] which contradicts the 10/8-Theorem. \end{proof} At last, we can sum up everything we have obtained to prove Theorem~\ref{t:smallLn}. \begin{proof}[Proof of Theorem~\ref{t:smallLn}] In the previous claims we have proven that $\varepsilon(L_2) = 1$ and $\varepsilon(L_{12}) = 11$. By Theorem~\ref{steps}(2), $\varepsilon(L_n) = n-1$ for $n=2,\dots, 12$. Analogously, since $\varepsilon(L_{12})= 11$ and $\varepsilon(L_{19}) = 4$, by Theorem~\ref{steps}(2), $\varepsilon(L_n) = 23-n$ for $n=12,\dots, 19$. \end{proof} \begin{remark} We observe here that the computation of the embedding numbers of Theorem~\ref{t:smallLn} can be also done with a case-by-case analysis, without appealing to Theorem~\ref{steps}. Indeed, one can combine explicit constructions (analogous for those of $L_{12}$, $L_{17}$, and $L_{19}$) either with Rokhlin's theorem (for small $n$) or with the 10/8-Theorem (for large $n$) to achieve the same result. \end{remark} \end{subsection} \end{section} \begin{section}{Exact calculations for arbitrarily large embedding numbers}\label{exact} Finally we show how to construct integral and rational homology 3-spheres with arbitrarily large embedding numbers, such that we can give exact calculations provided that we assume the validity of the 11/8-Conjecture. Let $K_n$ be the spin 4-manifold $K_n = \#_{2n} K3$. Then the intersection form $Q_{K_n}$ of $K_n$ is isomorphic to $4nE_8\oplus 6nH$ (note that our convention is that the $E_8$ form is \emph{negative} definite) and so has signature $-32n$ and rank $44n$. Now $K_n$ admits a handle decomposition without 1-handles or 3-handles. With this handle decomposition we can perform handle slides so that in the basis for $H_2(K_n)$ corresponding to the cores of the 2-handles, $Q_{K_n}$ is given by $4nE_8\oplus 6nH$. We can further perform handle slides to obtain a basis such that each of the $n$ copies of $\oplus 6H$ looks like $\left(\begin{array}{cc}Q & I \\ I & O\end{array}\right)$, where all submatrices are $6\times 6$, and $Q$ is defined by the following matrix:\\ $$\begin{pmatrix} -2 & 1 & 0 & 0 & 0 & 0 \\ 1 & -2 & 1 & 0 & 0 & 0 \\ 0 & 1 & -2 & 0 & 0 & 0 \\ 0 & 0 & 1 & -2 & 1 & 0 \\ 0 & 0 & 0 & 1 & -2 & 1 \\ 0 & 0 & 0 & 0 & 1 & -2 \end{pmatrix}.$$\\ Observe that this is possible since doubling the linear plumbing of six $-2$-disk bundles over $S^2$ yields $\#_6 S^2 \times S^2$. Now Let $U_n$ be the sub-handlebody of $K_n$ formed by taking the 0-handle and the 2-handles corresponding to each basis element in the $4n$ $E_8$'s and the first six basis elements in each $\oplus 6H$ block. Then the intersection form $Q_{U_n}$ of $U_n$ will be $4nE_8 \oplus nQ$. One can check that $Q_{U_n}$ is negative definite of rank $38n$, and will have determinant $\pm 7^n$. Hence the boundary $Y_n = \partial U_n$ will be a $\mathbb{Z}/2\mathbb{Z}$-homology sphere, and therefore has a unique spin structure. Let $V_n$ be the closure of $K_n \setminus U_n$. Then by Novikov additivity and Mayer--Vietoris we get that $V_n$ is positive definite of rank $6n$, and so $\overline{V_n}$ is negative definite with $\partial \overline{V_n} = Y_n$. Since $\overline{V_n}$ is a spin 2-handlebody, by doubling we get $\#_{6n} S^2 \times S^2$ and hence $\varepsilon(Y_n) \leq 6n$. \begin{proposition} If the $11/8$-Conjecture is true then $\varepsilon(Y_n) = 6n$. \end{proposition} \begin{proof} Fix a natural number $n$. $Y_n$ embeds in $\#_{\varepsilon(Y_n)} S^2 \times S^2$ and splits $\#_{\varepsilon(Y_n)} S^2 \times S^2$ into two spin pieces, $X_1$ and $X_2$. We can assume that $\partial X_1 = Y_n$ and $\partial X_2 = \overline{Y_n}$. Then let $W_1 = X_1 \cup \overline{U_n}$ and $W_2 = U_n \cup X_2$, where in each case the 4-manifolds are glued along $Y_n$. Now $W_1$ and $W_2$ are spin 4-manifolds, and so assuming the validity of the 11/8-Conjecture we obtain $b_2(W_1) \geq \frac{11}8|\sigma(W_1)|$ and $b_2(W_2) \geq \frac{11}8|\sigma(W_2)|$. By Novikov additivity and Mayer--Vietoris (and applying what we know about $U_n$) these become $b_2(X_1) + 38n \geq \frac{11}8(38n+\sigma(X_1))$ and $b_2(X_2) + 38n \geq \frac{11}8(38n-\sigma(X_2))$. Adding these two inequalities gives $b_2(X_1) + b_2(X_2) +76n \geq \frac{11}8 76n + \frac{11}8(\sigma(X_1) - \sigma(X_2))$. Since $X_1 \cup X_2 = \#_{\varepsilon(Y_n)} S^2 \times S^2$ this simplifies to $2\varepsilon{(Y_n)} +76n \geq \frac{11}8 76n + \frac{11}8 2\sigma(X_1)$, and after rearranging sides $2\varepsilon{(Y_n)} - \frac{11}8 2\sigma(X_1) \geq \frac38 76n$. Finally, since $\sigma(X_1) \geq -\varepsilon{(Y_n)}$, this becomes $\frac{19}4\varepsilon{(Y_n)} \geq \frac38 76n$. Upon simplifying we get that $\varepsilon{(Y_n)} \geq 6n$, and since we saw previously that $\varepsilon(Y_n) \leq 6n$ it follows that $\varepsilon(Y_n) = 6n$. \end{proof} We emphasize that this construction consists of many choices, and each of these choices will affect the resulting manifolds $Y_n$. We can apply a similar argument to compute embedding numbers for integral homology spheres by splitting the intersection form of $\#_{8n} K3$. The intersection form is $16n E_8 \oplus 24n H$, which is isomorphic to $19n E_8 \oplus -3n E_8$. Applying the same technique as above splits $\#_{8n} K3$ along an integral homology sphere $Z_n$ that will have embedding number $24n$. Note that this splitting implies that $Z_n$ bounds two simply connected spin 4-manifolds, one of which has intersection form $16nE_8$ and the other $3nE_8$. In particular, the $Z_n$ bound spin, simply connected, negative definite 4-manifolds that have different $b_2$, answering Question 5.2 in~\cite{Tange}. Our technique has a similar flavor to an argument of Stong~\cite{Stong}, who proved that if the intersection form $Q_X$ of a simply connected closed 4-manifold $X$ decomposes as the direct sum of unimodular forms $U_1 \oplus U_2$, then $X$ can be smoothly decomposed into two simply connected pieces $X_1$ and $X_2$ with $Q_{X_1} = U_1$ and $Q_{X_2} = U_2$. (Note that this is insufficient for our argument; we need that each piece is a 2-handlebody.) Stong's theorem is a strengthening of a result of Freedman and Taylor~\cite{FT}, which only guarantees that $H_1(X_i) = 0$ rather than that the $X_i$ are simply connected. Stong's splitting theorem depends on the following structure theorem. \begin{theorem}[Stong~\cite{Stong}]\label{structure} Let $X$ denote a simply connected closed smooth $4$-manifold. Then $X$ admits a handlebody decomposition $\mathcal{H}$ with $2$-handles $\{ H_1, \cdots, H_m\}$ such that the following holds. \begin{enumerate} \item The attaching circles for the handles $H_1, \cdots, H_r$ represent a free basis for $\pi_1(X^{(1)})$ (where $X^{(1)}$ denotes the union of the $0$-handle and the $1$-handles of $X$), and the attaching circles for the other $2$-handles are null-homotopic in $\pi_1(X^{(1)})$. \item The belt spheres of the handles $H_{r+1}, \cdots, H_{r+s}$ represent a free basis for $\pi_1(\overline{X}^{(3)})$ (where $\overline{X}^{(3)}$ denotes the union of the $4$-handle and the $3$-handles of $X$), and the belt spheres for the other $2$-handles are null-homotopic in $\pi_1(\overline{X}^{(3)})$. \end{enumerate} \end{theorem} Finally, we use this structure theorem to prove a result unrelated to the main theme of the paper, but perhaps interesting in its own right. When the 4-manifold $X$ is non-spin, the result below follows directly from the work of Stong~\cite{Stong} mentioned in the paragraph preceding Theorem~\ref{structure}, and therefore the most interesting case is when $X$ is spin. \begin{theorem}\label{definite splitting} Any simply connected $4$-manifold $X$ can be decomposed as $X = X_1 \cup X_2$, where $X_1$ and $X_2$ are simply connected $4$-manifolds that are positive definite and negative definite, respectively, glued along a rational homology sphere. \end{theorem} \begin{proof} Give $X$ a handlebody decomposition as in Theorem \ref{structure} (and we use the notation of Theorem \ref{structure} as well). Then the cores of the 2-handles $H_{r+s+1}, \dots, H_m$ represent a free basis for $H_2(X) = \mathbb{Z}^{m-r-s}$. If $X$ is definite, then the theorem is trivial with one of the $X_i$ empty. Otherwise $X$ is indefinite and by the classification of indefinite unimodular forms we have that $Q_X$ is isomorphic to either $aE_8 \oplus bH$ or $a\langle 1 \rangle \oplus b\langle -1 \rangle$ for some $a$ and $b$, depending on whether $X$ is spin or non-spin. In the non-spin case we slide and reorder $H_{r+s+1}, \cdots, H_m$ so that the first $a$ handles represent $a\langle 1 \rangle$ and the rest represent $b\langle -1 \rangle$ (where $a+b = m-r-s$). Then we define $X_1$ to be $X^{(1)} \cup H_1 \cup \cdots \cup H_r \cup H_{r+s+1} \cup \cdots \cup H_{r+s+a}$, and let $X_2$ denote the remaining handles. It follows that the $X_i$ are simply connected and definite as required. In the spin case we make a similar argument. We have $Q_X = aE_8 \oplus bH$, and we can assume $a$ is nonnegative if we allow reversing the orientation of $X$. Next we use the fact that $bH$ can be represented by $A=\left(\begin{array}{cc}Q & I \\ I & O\end{array}\right)$, where all submatrices are $b\times b$, and $Q$ is negative definite (as we described earlier, this follows since doubling the linear plumbing of $b$ $-2$-spheres results in $\#_b S^2 \times S^2$). Then we slide and reorder our 2-handles, so that $H_{r+s+1}, \dots, H_{r+s+8a +b}$ represent the first $8a+b$ elements in $aE_8 \oplus A$. Then $X_1 := X^{(1)} \cup H_1 \cup \cdots \cup H_r \cup H_{r+s+1} \cup \cdots \cup H_{r+s+8a+b}$ is simply connected and negative definite, and its complement $X_2$ consisting of the remaining handles will be simply connected and positive definite. In the non-spin case we have that $\det(X_i)=\pm1$, and so we are actually splitting along an integral homology sphere. In the spin case we still have that $\det(X_i) \neq 0$, and so $\partial X_i$ is a rational homology sphere as required. \end{proof} \end{section} \bibliographystyle{amsalpha}
\section{Introduction} \subsection{Motivations} Two of the main open questions studied by neutrino oscillation experiments are the neutrino mass hierarchy, and whether CP symmetry is conserved in those oscillations. In both cases, the experiments are trying to measure differences between neutrinos and anti-neutrinos, and so try to distinguish between interactions of neutrinos and anti-neutrinos in their detectors. In the case of experiments using water Cerenkov detectors, the separation between those interactions can only be statistical as the detectors are not magnetized. Neutrino enriched and anti-neutrino enriched samples can be built using the topological information of the events observed, including the number of reconstructed Cerenkov rings and Michel electrons. For such an approach to work, the distributions of those quantities have to be simulated properly by the simulation software used to do statistical analyses. For neutrinos of a few GeV, they are affected by the multiplicities of charged hadrons, in particular charged pions, produced in deep inelastic (DIS) interactions. In this paper we describe a method to tune the predictions of the neutrino interaction generator NEUT\cite{NEUT}, so that the events generated follow the charged hadrons multiplicity distributions measured by deuterium bubble chamber experiments\cite{BEBC, FNAL}.\\ \subsection{Deep inelastic events in NEUT} In NEUT, events above the pion production threshold are generated differently depending on the value of the invariant mass of the hadronic system W. For values of W lower than 2 GeV/c$^{2}$, different resonant channels are considered (single pion, single kaon and single eta) as well as a DIS background called the `multi-pi' mode. This mode contains all the interactions for which W$<$2 GeV/c$^{2}$ and 3 hadrons or more are produced (all the hadrons outside of the ejected nucleon are assumed to be pions). Above 2 GeV/c$^{2}$, all the events are generated using PYTHIA 5.72\cite{Pythia}, this second region constitutes the `DIS' mode. The tuning described here is applied to the multi-pi and DIS modes. \section{Tuning of the charged hadron multiplicities} \subsection{Tuning procedure} The tuning is done by applying a weight to the events generated by NEUT, which is a function of a certain multiplicity and of the value of W for each event. The bubble chamber experiments measured the charged hadron multiplicities, and this multiplicity is used to compute the weights for the DIS mode. Due to the way multiplicities are generated in NEUT for the multi-pi mode, the total hadron multiplicity is used instead for this mode. The weight is the ratio of the probabilities to obtain an event with a given multiplicity and W according to the bubble chamber experiments and to NEUT: \begin{center} $\displaystyle{\text{Weight}=\frac{P_{Bubble \, chambers}(n, W)}{P_{NEUT}(n,W)}}$ \end{center} The probabilities according to the bubble chamber experiments are obtained by fitting the data of those experiments using a model, whereas the probabilities according to NEUT are obtained by generating a large number of events with this generator. The probabilities are evaluated separately for interactions of neutrinos and anti-neutrinos, and for interactions on protons and on neutrons. Finally, the weights are normalized so as to preserve the total cross-section as a function of W. \subsection{Model used to fit bubble chamber experiments data} The model used is based on KNO scaling\cite{KNO}, according to which the W dependance of the charged hadron multiplicity $P(n_{ch},W)$ can be fully taken into account through the average charged hadron multiplicity as a function of W, $<n_{ch}>(W)$: \begin{equation} \displaystyle{P(n_{ch},W)=P(n_{ch},<n_{ch}>(W))} \end{equation} The probability $P(n_{ch},W)$ can therefore be computed in two steps, as is done for example in the multi-pi mode of NEUT and in the AGKY model\cite{AGKY}. First, the average multiplicity for this W is computed using the empirical relation: \begin{equation} \displaystyle{ <n_{ch}>(W)= A + B \times \ln(W^{2})} \end{equation} Then the probability distribution of the multiplicity is obtained using a slightly modified version of KNO scaling (compared to standard KNO scaling, we have added a parameter $\alpha$ as introduced in \cite{Baranov}): \begin{equation} \displaystyle{P(n_{ch},W)=\frac{1}{<n_{ch}>-\alpha} \times f\left(\frac{n_{ch}-\alpha}{<n_{ch}>-\alpha}, C\right)}, \end{equation} where we use for f the ``Levy function'' used in the AGKY model\cite{AGKY}. This gives a model with 4 parameters A,B,C and $\alpha$. The values of A and B are obtained by fitting the average multiplicity as a function of W in the bubble chamber data, whereas C and $\alpha$ are obtained by fitting the RMS versus the mean of the multiplicity distributions for the different W bins. \subsection{Results of the fit} We use data from bubble chamber experiments on deuterium target, approximated as free neutrons and protons, to avoid the difficulties of modeling reinteractions in the nucleus. Based on the review of the different experiments done in \cite{PRC88}, we use data from two publications: one from the Fermilab 15' bubble chamber containing measurements for neutrino interactions\cite{FNAL}, and one from the Big European Bubble Chamber containing measurements for both neutrinos and anti-neutrinos\cite{BEBC}. Some of the fits are shown as examples in figure \ref{FitResults} (note that C and $\alpha$ are not the parameters directly obtained in the fit on the right plot, their values are deduced from the results of the linear fit), and the values of the parameters obtained in the different cases are summarized in table \ref{FitParams}. \begin{figure}[tbh] \begin{center} \begin{minipage}{0.9\textwidth} \includegraphics[width=0.45\textwidth,clip]{Av_Fit.eps} \hfill \includegraphics[width=0.45\textwidth,clip]{Disp_Fit.eps} \caption{Results of the fit of the bubble chamber data. Left plot: fit of the average charged hadron multiplicities as a function of W for interactions of neutrinos on protons. Right plot: fit of the RMS versus the mean of the multiplicity distributions for different W bins for neutrino interactions on neutrons.} \end{minipage} \label{FitResults} \end{center} \end{figure} \begin{table}[tbh] \caption{Values of the model parameters obtained by fitting data from bubble chamber experiments.} \label{FitParams} \begin{center} \begin{tabular}{lcccc} \hline Parameter & $\nu$-proton & $\nu$-neutron & $\overline{\nu}$-proton & $\overline{\nu}$-neutron\\ \hline A & 0.58 $\pm$ 0.071& 0.35 $\pm$ 0.057 &0.41 $\pm$ 0.26& 0.80 $\pm$ 0.17 \\ B & 1.35 $\pm$ 0.025& 1.24 $\pm$ 0.02 &1.18 $\pm$ 0.088& 0.94 $\pm$ 0.065 \\ $\alpha$ & -0.58 $\pm$ 0.2& -0.89 $\pm$ 0.14& 0.68 $\pm$ 0.36& 0.38 $\pm$ 0.25 \\ C & 9.92 $\pm$ 0.90& 8.02 $\pm$ 0.58 &4.10 $\pm$ 0.75& 3.02 $\pm$ 0.47 \\ \hline \end{tabular} \end{center} \end{table} \section{Effect of the tuning} A sample of NEUT events was generated according to the flux of atmospheric muon neutrinos and anti-neutrinos reaching the Super-Kamiokande detector\cite{SK}, to have a sample of events in a relevant range of hadronic invariant mass to test the tuning procedure. In the case of the DIS mode, the nominal predictions of NEUT were found to underestimate both the average and the dispersion of the charged hadrons multiplicities compared to the bubble chamber data. As can be seen wih the example of the interactions of neutrinos on neutrons shown on figure \ref{TuningEff}, the tuning allows to get good agreement with the data. \begin{figure}[tbh] \begin{center} \begin{minipage}{0.9\textwidth} \includegraphics[width=0.45\textwidth,clip]{Av_numu_n.eps} \hfill \includegraphics[width=0.45\textwidth,clip]{Disp_numu_n.eps} \caption{Effect of the tuning for the DIS mode of NEUT, in the case of interactions of neutrinos on neutrons. The left plot shows the effect on the average charged hadron mulitplicity, and the right plot on the dispersion of those multiplicities.} \end{minipage} \label{TuningEff} \end{center} \end{figure} In the case of the NEUT multi-pi mode, direct comparison to data is more difficult as it would require including the resonant events to which this tuning is not applied, and which have significant uncertainties of their own. We can however note that the tuning increases the average number of pions produced in events from this mode as can be seen on figure \ref{TuningEffMP} (from the definition of the multi-pi mode, all events have at least 2 pions). \begin{figure}[tbh] \begin{center} \begin{minipage}{0.9\textwidth} \includegraphics[width=0.45\textwidth,clip]{MultiPi_numu.eps} \hfill \includegraphics[width=0.45\textwidth,clip]{MultiPi_numubar.eps} \caption{Effect of the tuning on the average number of pions in events from the multi-pi mode of NEUT. Left plot corresponds to neutrino interactions, and right plot to anti-neutrino interactions.} \end{minipage} \label{TuningEffMP} \end{center} \end{figure} \section{Conclusion} We described a tuning procedure of the charged hadron multiplicities for DIS events produced by the neutrino interaction generator NEUT. This procedure allows to reproduce the results of the multiplicity measurements performed by deuterium bubble chamber experiments. The final goal of this work is to use the model described here to propagate uncertainties on the hadron multiplicities to physics analyses, the next step will therefore be to evaluate the systematic uncertainties on this tuning. Those include the errors on the fitted values of the parameters, the differences between deuterium and free nucleons, as well as the hypothesis used in the case of the multi-pi mode to go from a model of the charged hadron multiplicities to a model of the multiplicities of all hadrons in DIS interactions.
\section{INTRODUCTION} \label{sec:intro} As we await the bounty of sources expected from space-based missions like TESS and GAIA, it is imperative that we tool up for the efficient and widespread ground-based follow-up of exoplanet candidates that will be required in complement. While confirmation of the most promising, and likely Earth analogous, candidates will be the prerogative of next-generation instruments like NEID and ESPRESSO, high-precision instruments on small (1-2~m) telescopes will be tasked with providing longer baseline observations on the rest. These instruments fill a niche that would be prohibitively expensive to fulfill with larger facilities, providing both high quality and quantities of data at desired cadence, limited only by the photon collecting power of small apertures. The data already gathered from such instruments (e.g. ELODIE, CORALIE, SOPHIE, CHIRON) are an important part of our extant canon of exoplanetary systems, and there is a growing necessity for more such workhorse RV instruments. Despite the recognition of this necessity, PARAS remains one of the few dedicated high-precision instruments of its caliber currently available to the community \cite{Fischer:2016}. \section{Current Performance} \label{sec:perform} PARAS (PRL Advanced Radial-velocity Abu-sky Search) is a high-precision spectrograph on the 1.2 m telescope in Mt. Abu, India. Owned and operated by the Physical Research Laboratory (PRL), Ahmedabad, India, PARAS was conceived as a facility-class instrument for exoplanet discovery and characterization, with 80-100 nights a year on the telescope. It was designed based on the precision velocimetry lessons learned from its predecessors, particularly HARPS, and is a stabilized fiber-fed high-resolution (R$\sim$67,000) spectrograph with broad wavelength coverage of 3800 - 9600 \AA, and simultaneous ThAr calibration \cite{Chakraborty:2014,Chakraborty:2010}. The primary goal was to target exoplanets around bright G and K dwarfs (V$_{\rm mag}<7$) with long-term RV precisions of 1-2~m~s$^{-1}$, degrading up to 5-10~m~s$^{-1}$ on fainter targets. PARAS is already successfully performing at this level (Fig.~\ref{fig:tauceti}), with further improvements anticipated in temperature control (\S\ref{sec:temp}) and telescope performance (\S\ref{sec:upgrades}). With {\bf demonstrated precisions of $<$~1~m~s$^{-1}$ over $\sim$1 month, and $<$~2~m~s$^{-1}$ over $\sim$1 year} on the RV standard stars Tau Ceti and HD55575, respectively, PARAS is now primed to lend major support to the RV follow-up effort. \begin{figure} \begin{center} \begin{tabular}{c} \includegraphics[width=0.5\textwidth]{spie_tauceti.eps} \includegraphics[width=0.48\textwidth]{spie_hd55575_blue.eps} \end{tabular} \end{center} \caption[tauceti] { \label{fig:tauceti} Radial velocity measurements as a function of time obtained with PARAS on bright RV standard stars. Open grey circles show individual observations while colored circles are binned nightly. {\it (Left:)} PARAS is able to achieve precisions of $<$~1~m~s$^{-1}$ over $\sim$1 month on Tau Ceti (V$_{\rm mag}=3.5$) , and {\it (Right:)} precisions of $<$~2~m~s$^{-1}$ over $\sim$1 year on HD55575 (V$_{\rm mag}=5.58$). This makes PARAS optimally poised for follow-up of bright K2 and TESS targets, as well as detailed stellar characterization and activity monitoring. } \end{figure} \section{Lessons for future Extreme Precision Instruments} \label{sec:lessons} The next generation of planet hunting spectrographs will be the technological progeny of instruments like HARPS and PARAS. We focus here on two such instruments, the Habitable Zone Planet Finder (HPF) and NEID (NN-Explore Investigations with Doppler spectroscopy), that will push our ground-based capabilities in the NIR and optical, respectively. Both instruments directly inherit design choices and operational experience from PARAS, given the overlap in science and instrument teams. \\ \noindent{\bf The Habitable Zone Planet Finder} \\ \indent HPF is a stabilized fiber-fed high-resolution (R$\sim$50,000) near-infrared (NIR) spectrograph designed to detect habitable zone (HZ) planets around M-dwarfs. Currently under construction at Penn State, it will be deployed on the 10 m Hobby-Eberly Telescope (HET) in 2017 \cite{Mahadevan:2014,Mahadevan:2015}. Being a NIR instrument, HPF demands its own R\&D work for issues that are exacerbated at longer wavelengths \cite{Halverson:2015,Hearty:2014,Roy:2014a,Halverson:2014}, but still benefits directly from the lessons offered by PARAS. Both instruments have asymmetric white pupil designs, with R4 echelle gratings. The HPF RV analysis software will be based on the current PARAS pipeline (\S\ref{sec:pipe}). Most interestingly, though, the instruments have some overlap in wavelength: HPF covers 0.8 - 1.3 $ \mu$m, and PARAS extends to $\sim$9600 \AA. This allows us to test NIR calibration techniques for HPF on PARAS (\S\ref{sec:une}), and opens up interesting possibilities for complementary follow-up both chromatically and temporally, since the PRL Mt. Abu Observatory and the MacDonald Observatory are $\sim$12 hours apart. \\ \noindent{\bf NEID} \\ \indent In response to the recommendations of the Astro2010 Decadal Survey, the NASA-NSF Exoplanet Observational Research (NN-EXPLORE) partnership solicited a call for an Extreme Precision Doppler Spectrometer for the 3.5 m WIYN telescope on Kitt Peak. The selected instrument, NEID, is a high-resolution (R$\sim$100,000), ultra-stable optical spectrometer being built by a multi-institutional and interdisciplinary team led by Penn State. Aiming at RV precisions $<$30~cm~s$^{-1}$, it represents the first wave of extreme precision doppler instruments capable of detecting true Earth twins and identifying targets for future space missions such as WFIRST-AFTA, HabEx, or LUVOIR. NEID is designed as a complete radial velocity system, incorporating ultra-stable environmental control, cutting edge wavelength calibration, innovative fiber feed design, and broad wavelength coverage with a suite of chromospheric activity indicators. In many ways, NEID is the true successor of PARAS, with a classical white pupil design, and large monolithic prism cross-disperser that provides a wide 3800-9300 \AA~bandpass on a single detector at high efficiency. Both prisms are made of i-line Ohara glasses that have high homogeneity and excellent transmission into the blue (PBM2Y for NEID, and PBM8Y for PARAS), and positive experience with PARAS was an integral part of this design choice. As a baseline, NEID inherits the PARAS data pipeline (\S\ref{sec:pipe}), although it will be refined for performance at the 30~cm~s$^{-1}$ level with a laser frequency comb calibrator. NEID also uses a deep depletion e2v CCD, very similar to the PARAS detector, which allows us to begin preliminary characterization on a functioning science-grade CCD, and to develop methods to quantify and mitigate issues like fringing and charge diffusion caused by real astrophysical observations (\S\ref{sec:ccd}). The NEID baseline input optics design borrows heavily from PARAS, as does the overall optical alignment plan. Ongoing PARAS operations and an accumulating data stream have also proved valuable in many other ways, including selection of bright, quiet targets with long baselines of observation, and the NEID operations concept for calibration and maintenance. Additionally, there is the interesting possibility of NEID and PARAS working in tandem to provide complementary follow-up given that the observatories are 12.3 hours apart. \begin{figure}[ht] \begin{center} \begin{tabular}{c} \includegraphics[width=0.65\textwidth]{HARPS_RV_ICS.eps} \includegraphics[width=0.3\textwidth]{abcd.eps} \end{tabular} \end{center} \caption[pipe] { \label{fig:pipe} As a baseline, NEID inherits the PARAS data reduction pipeline. The PARAS pipeline currently performs at the same level as the public output of the HARPS pipeline. {\it (Left:)} We verified the technical capability of the PARAS RV analysis algorithms by applying it to 84 HARPS observations of the standard star Tau Ceti, taken over a five year span. Insets show a subset of data collected with an optimized HARPS observing strategy \protect\cite{Dumusque:2011, Pepe:2011} with three observations per night, and long integrations to average over stellar p-modes. {\it (Right:)} Schematic of mask based cross-correlation for CCF and RV recovery \protect\cite{Baranne:1996,Pepe:2002}.} \end{figure} \subsection{Precision RV Pipeline} \label{sec:pipe} In the era of extreme precision RV, every aspect of instrumentation, observation, and analysis come under scrutiny and must be refined. Groundbreaking and believable exoplanet discovery thus relies heavily on the data analysis pipeline. The automated PARAS data reduction pipeline (DRP), described in detail in Chakraborty et al. (2014), performs image processing, optimal extraction, simultaneous ThAr wavelength calibration, and then determines RV measurements via mask cross-correlation \cite{Baranne:1996,Pepe:2002}, with corrections for barycentric motion and instrument drift. Although it already performs at the same level as the HARPS public pipeline (Fig.~\ref{fig:pipe}), it is regularly upgraded to meet the needs of the instrument. As an illustrative example, the prism thermal response to temperature variations on the optical bench (\S\ref{sec:temp}) was causing variations in cross dispersion and hence order location on the detector. The slightly erroneous extractions with the early pipeline had an insidious effect on the RVs. Although we are expecting much better temperature control in the future, the pipeline was consequently equipped to respond to both shifts and stretches in the order re-trace. As PARAS moves from instrument characterization to survey mode, the pipeline is being evolved to meet observer needs, with new modules for faint stars, M dwarfs, and UNe calibration. Version control is also being imposed more strictly as the use of the software propagates beyond the core instrument team. The PARAS DRP will form the basis for the HPF and NEID RV analysis software. Algorithmic precision must be maximized in response to the scant overall error budgets for these next-generation instruments (Halverson et al., {\it in these proceedings}), and there are certain conspicuous areas for improvement. For example (a) moving beyond current optimal extraction routines \cite{Piskunov:2002} to more flexible low-noise methods, (b) applying high precision barycentric correction with measurement of the wavelength dependent flux-weighted mid-exposure time \cite{Wright:2014}, and (c) utilizing the full potential of the laser frequency comb calibrator for individual pixel characterization and the careful treatment of CCD stitch boundaries \cite{Bauer:2015}. Essentially, every subroutine will need to be optimized, and new RV extraction and stellar activity removal methods tested. However, the exploration of these methods will be grounded firmly in the proven pipelines of the previous generation of precision RV instruments. \subsection{CCD Fringing} \label{sec:ccd} \begin{figure} \begin{center} \begin{tabular}{c} \includegraphics[width=0.6\textwidth]{Flats_stitch.eps} \end{tabular} \end{center} \caption[famp] { \label{fig:famp} An extracted flat frame shows the order by order wavelength dependent fringe spectrum in a the PARAS deep depletion e2v CCD231-84-1-D81. In the reddest orders, the amplitude is $\sim$50\% of the normalized flux. Gaps between orders are due to the deliberate truncation of low-signal edges that are not properly deblazed.} \end{figure} Fringing results from interference between incident and reflected beams within the CCD layers, becoming more pernicious at longer wavelengths where the decreasing absorption coefficient for silicon makes a larger proportion of the photons available for interference, as opposed to absorption during first passage. Spectroscopic observations are prone to fringing due to the delivery of essentially monochromatic light to each resolution element, in contrast to imaging where bright sky emission lines are the primary culprit. Furthermore, the structure of the AR coating, varying incident angles across the beam, and the fact that the front and back surfaces of a CCD are not exactly parallel or planar, result in irregularly shaped fringes \cite{Malumuth:2003}. PARAS uses a 4kx4k deep depletion e2v CCD231-84-1-D81 with a custom ASTRO-broadband antireflection (AR) coating for high quantum efficiency across the wavelength range \cite{Chakraborty:2014}. Despite the 40 $\mu$m thickness of the substrate, etaloning creates noticeable fringing in the reddest orders (Fig.~\ref{fig:famp}). NEID will use a very similar 9kx9k e2v CCD with an ASTRO Multi-2 coating, and PARAS provides the rare opportunity to formulate a post-processing fringing cure for NEID with on-sky data. As an aside, our extensive experience with the PARAS deep depletion detector suggests that charge diffusion, which can result in a PSF that is flux dependent, should not be a major issue for NEID, even at 400 nm. There are certain fringe suppression technologies offered by e2v, including `roughening' of the sensor back surface, or the use of a graded AR coating, but these are difficult and expensive to execute on large-format CCDs like the one required for NEID. Furthermore, these are unproven technologies in terms of precision RV, and contribute risk to the aggressive NEID budget and schedule. More typically, contemporaneous flats are used to correct fringing in the reduction pipeline, but the residual effect on RVs is still not well quantified. Figure \ref{fig:fringe} {\it(left)} shows the spectrum of Vega overlaid with an extracted flat frame (the fringe spectrum as produced by a sum-extraction), and the results from simply dividing out the flat spectrum. Although this looks promising, we quantify the effect on RVs using a synthetic M2 BT Settl stellar spectrum (T$_{\rm eff}$ = 3500 K). The synthetic spectrum is modulated by 16 flat frames taken with PARAS on 4 consecutive days, at the beginning of each night. This is then processed with the PARAS RV analysis code, using a custom numerical M2 stellar mask. Figure \ref{fig:fringe} {\it(right)} shows the effect of uncorrected fringing on RV extraction. The variations in fringing, within and between nights, significantly degrade RV precision in a subset of red orders (order 86-92, 8300 - 9050 \AA) compared to precision achieved for a subset of blue orders (order 42-47, 5150 - 5450 \AA). Note that the RV precision in the blue is limited by the fact that we are fitting a Gaussian to a markedly non-Gaussian cross-correlation function (CCF) for these M-dwarfs, where the lack of a clear continuum can produce a lot of structure in the wings. Dividing out a single representative flat improves the red RV precision to $\sigma$=24.4 m s$^{-1}$, indicating that variations in fringing, even within a night, need careful treatment beyond dividing out beginning of the night calibration flats. The NEID ASTRO Multi-2 coating is an improvement on the PARAS coating, and will mitigate the fringing to some degree, However, this is a continuing effort to ensure that we can maximize the utility of the red wavelength coverage in NEID and PARAS, for both stellar activity indicators and RV information content. \begin{figure} \begin{center} \begin{tabular}{c} \hspace*{-0.4in} \includegraphics[width=0.55\textwidth]{fringing_spie.eps} \hspace*{-0.2in} \includegraphics[width=0.53\textwidth]{compare_blue_red_fringing.eps} \end{tabular} \end{center} \caption[fringe] { \label{fig:fringe} Fringing is an issue in the reddest PARAS orders, despite the 40 $\mu$m thickness of the deep depletion e2v CCD. {\it (Top Left:)} One echelle order of the observed spectrum of Vega (black), and an extracted contemporaneous flat frame (red). {\it (Bottom Left:)} Vega, with the extracted flat order divided out. To first order, the flat provides good fringe correction. {\it (Right:)} The effect of uncorrected fringing on RV extraction. Variations in fringing degrade RV precision in a subset of red orders (order 86-92, 8300 - 9050 \AA) compared to precision achieved for a subset of blue orders (order 42-47, 5150 - 5450 \AA). Simply dividing out a single flat improves the red RV precision to $\sigma$=24.4 m s$^{-1}$.} \end{figure} \subsection{Temperature Control} \label{sec:temp} In spite of careful environmental control design \cite{Chakraborty:2014}, PARAS RVs showed seasonal trends in early data. The instrument lives inside two concentric insulation rooms, with temperature control systems in both. The vacuum vessel sits on eight trisolator legs on an insulated and vibration-isolated concrete pier. However, notwithstanding these measures there is heat leakage between the base of the vessel and the pier, leading to imperfect thermal decoupling of the instrument from the mountain. The implementation of additional heaters, air circulation fans, and extra calibrated heat pads, as well as a new temperature sensor on the optical bench has largely solved this problem. The extra heaters are controlled by a custom electronics system for differential response to the sensor, placed close to prism since it is the most thermally vulnerable optical component. Prior to the new system, there was clear wavelength dependent variation in the order locations, and blue orders were shifting more than the red orders. Using the specifications provided by Ohara for the PBM8Y glass (dn/d$\lambda$, dn/dT), we were able to match the order shifts very closely to the modeled prism thermal response, indicating temperature variations up to 0.1$^{\circ}$C. Currently we have improved temperature control at the level of 24.06$\pm$0.01$^{\circ}$C (Fig.~\ref{fig:temp}). With the new system in full automated operation, we expect to control at 24$\pm$0.005$^{\circ}$C. Although these thermal issues are inherent to the underlying concrete pier structure and hence unavoidable for PARAS, they bequeath an important lesson to the environmental control systems of our new instruments, HPF and NEID. \begin{figure} \begin{center} \begin{tabular}{c} \includegraphics[width=0.6\textwidth]{may_temp.eps} \end{tabular} \end{center} \caption[temp] { \label{fig:temp} The improved PARAS temperature control system uses a sensor on the optical bench, close to the base of the prism, to adjust additional heaters. We are currently able to control at 24.06$\pm$0.01$^{\circ}$C, with the expectation that this will improve to $\pm$0.005$^{\circ}$C in the near future with the full implementation of the new system.} \end{figure} \subsection{UNe Calibration Testbed} \label{sec:une} Although ThAr is commonly used for wavelength calibration in the optical (3800 - 6800 \AA) \cite{Redman:2014,Lovis:2007}, we attempt to take full advantage of the red coverage of PARAS using a UNe lamp, which is better suited for the red-optical and NIR (Fig.~\ref{fig:une}) \cite{Redman:2011}. This is a new mode of operation for PARAS, and we have begun observations of certain bright M dwarfs (e.g. GJ411, HD79210) to gauge the precision achievable with bracketed UNe calibration for these targets. Preliminary results show good agreement with the Redman et al. (2011)\cite{Redman:2011} and Palmer et al. (1980)\cite{Palmer:1980} Fourier Transform Spectrograph (FTS) line lists. The wavelength overlap between PARAS and HPF proves highly beneficial in this case, since it allows us to develop a new list of uranium and neon emission lines from high-resolution spectroscopy (Roy et al. {\it in prep}), in anticipation of HPF calibration requirements. Despite fringing issues, the ability to calibrate the redder part of the spectrum with UNe opens up PARAS' capability for observing early M-dwarfs and provides a testbed for NEID's performance on cool stars. \begin{figure} \begin{center} \begin{tabular}{c} \includegraphics[width=0.6\textwidth]{unespec.eps} \end{tabular} \end{center} \caption[une] { \label{fig:une} PARAS observations showing UNe (black) and ThAr (red) calibration spectra. UNe has stronger lines and a richer line density in the NIR, without the contaminating effects of argon\protect\cite{Redman:2011}. Preliminary results indicate that PARAS can successfully operate in a bracketed UNe calibration mode to observe bright early M dwarfs.} \end{figure} \section{Scheduled Upgrades for PARAS} \label{sec:upgrades} Several improvements have already been implemented on PARAS, in concert with instrument characterization. These include enhanced scrambling with the addition of a 50 $\mu$m core octagonal fiber section, regular upgrades to the data reduction pipeline, and added elements for temperature control. The full implementation of the new temperature control system is imminent, which will allow PARAS to reliably gather long baselines of data. However, PARAS is still limited by the performance and size of the 1.2 m telescope. The telescope system is aged and suffers from hysteresis in the RA/Dec drives, flexure issues, and has tracking accuracies of only 1-1.5". To counter these issues, the fiber is undersized with respect to the seeing (1.8" on sky, while seeing varies between 1.3-2.0"). While this lends PSF stability in median seeing conditions, it also leads to light loss. In addition, the reflectivity of the 1.2 m telescope primary can rapidly degrade in bad weather (50-60\%), despite attempts at regular wet cleaning and re-aluminization. In order to optimize scientific yield, a new state-of-the-art robotic 2.5~m telescope is under construction, next to the current facility. PARAS will move to the new telescope in 2019, and receive up to 50\% of the telescope time for exoplanet science. With high-precision RV capability, coverage of a suite of stellar activity indicators, and a substantial guaranteed time allotment on the new telescope, we thus present PARAS as a true workhorse RV instrument for the exoplanet community. \acknowledgments Funding for the PARAS project is provided by the Department of Space, Government of India through the Physical Research Laboratory. We thank the PRL Director for supporting the PARAS program. This work was partially supported by funding from the Center for Exoplanets and Habitable Worlds. The Center for Exoplanets and Habitable Worlds is supported by the Pennsylvania State University, and the Eberly College of Science. We acknowledge support from NSF grants AST 1006676, AST 1126413, AST 1310885, and the NASA Astrobiology Institute (NNA09DA76A) in our pursuit of precision radial velocities in the optical and NIR. AR acknowledges support from the Penn State Downsbrough Graduate Fellowship Program and the Lewis \& Clark Fund for Exploration and Field Research in Astrobiology. AC is grateful to Larry Ramsey (Pennsylvania State University) and Francesco Pepe (Geneva Observatory) for detailed discussions over the years on aspects of building precision RV spectrographs. This work has made use of the SIMBAD database (operated at CDS, Strasbourg, France), and NASA's Astrophysics Data System.
\section{Introduction} \label{s:intoduction} Since the discovery of the muon in cosmic rays at the beginning of the 20th century, the flavor puzzle remains one of the biggest open questions in high-energy physics. This puzzle derives from the bizarre flavor structures present in the Standard Model (SM) and the mystery, if any, behind their origin. Although the SM is able to accommodate all known flavor parameters in its Yukawa matrices, the values of these parameters are completely arbitrary and can only be fixed from experimental measurements. Using symmetries to interpret a large number of apparently arbitrary parameters is a strategy that has been remarkably successful for similar problems in the past. In this spirit, the FN mechanism\cite{Froggatt:1978nt} uses a spontaneously-broken flavor symmetry to explain the large hierarchies observed in the fermionic masses and mixing angles. The SM Yukawas are understood as effective couplings in powers of a small parameter $\varepsilon \equiv \langle \phi\rangle/\Lambda_f$, where $\langle\phi\rangle$ represents the vacuum expectation value~(vev) of the flavon field, $\phi$, and $\Lambda_f$ represents the characteristic mass scale of the flavor mediators. The different elements of the Yukawa matrices can then be explained by suitable assignments of flavor charges to different fields. However, there are a plethora of possible choices for the flavor symmetry and its breaking which are consistent with the existing flavor data\cite{Babu:2009fd,Raidal:2008jk}: Abelian or non-Abelian, continuous or discrete and with a variety of gauge groups and representations\cite{Leurer:1992wg,Leurer:1993gy,Nir:1993mx,Dine:1993np,Ibanez:1994ig,Barbieri:1995uv,Pomarol:1995xc,Dudas:1995yu,Nir:1996am,Binetruy:1996cs,Dudas:1996fe,Binetruy:1996xk,Barbieri:1996ww,Irges:1998ax,Choi:1998wc,Barbieri:1999km,Ma:2001dn,King:2001uz,Nir:2002ah,Babu:2002dz,Ross:2002fb,Altarelli:2002sg,King:2003rf,Dreiner:2003yr,Ross:2004qn,Chankowski:2005qp,deMedeirosVarzielas:2005qg,Altarelli:2005yx,deMedeirosVarzielas:2006fc,Luhn:2007sy,Ishimori:2009ew,Ishimori:2010au,Altarelli:2010gt,Babu:2011mv,King:2013eh,Chen:2014wiw,Kile:2013gla}. In this paper we choose to focus on the FN mechanism as the solution to the flavor puzzle. Although perhaps the best way to test this idea would be to directly produce the flavor mediators, in practice this is impossible if the flavor symmetry is broken at energies much higher than the electroweak~(EW) scale. Given the fact that the Yukawa couplings are dimensionless and depend only on the ratio $\varepsilon = \langle \phi\rangle/\Lambda_f$, in principle the flavor symmetry could be broken at any scale above the EW scale, even close to $M_{\rm Pl}$. Therefore, if the Yukawa couplings are the only remnant of flavor symmetry breaking, we may never be able to unravel the origin of flavor. Nevertheless, as the LHC continues to explore the TeV scale \cite{Aad:2016jxj,Aad:2016qqk,Aad:2016tuk,Aad:2016eki,Aaboud:2016tnv,Aaboud:2016zdn,Aaboud:2016lwz,Khachatryan:2016kdk,Khachatryan:2016xvy,Khachatryan:2016kod,Khachatryan:2016uwr,Khachatryan:2016fll}, we can hope that new physics associated with the breaking of the flavor symmetry may emerge in this energy region. In many extensions of the SM proposed in the literature, this new physics is not completely flavor-blind, and the new interactions have a non-trivial flavor dependence. If this is indeed the case, we expect to find new signatures of flavor at the LHC, complementary to the information already present in the Standard Model. Supersymmetric extensions of the Standard Model provide a nice example of this point\cite{Nilles:1983ge,Haber:1984rc,Martin:1997ns,Chung:2003fi}. In the SM, we can only measure the fermion masses and the left-handed mixings (the relative misalignment between $Y_u$ and $Y_d$ in the quark sector) in the Yukawa matrices; right-handed mixings are completely unobservable as each right-handed matter field couples to a single flavor matrix that can always be diagonalized. However, in SUSY extensions of the SM right-handed fields couple also through their trilinear interactions and moreover may have non-trivial soft-mass matrices. In general these three flavor structures can not be simultaneously diagonalized and their relative misalignment becomes observable\cite{Botella:2004ks}, providing a way to explore whether the mixings in the right-handed sector are small (analogous to the case of the CKM left-handed mixings) or large (similar perhaps to the PMNS neutrino mixings). Similarly, the measure of left-handed mixings in the leptonic fields can clarify whether the large PMNS mixings are due to large Yukawa mixings or to the Majorana nature of the neutrino masses through a type-I seesaw mechanism. Indeed, if SUSY is found at the LHC and these new flavor structures are observed, they may help to elucidate the origin of flavor. If a flavor symmetry \`a la Froggatt-Nielsen\cite{Froggatt:1978nt} is responsible for the observed Yukawa couplings in a SUSY theory, this flavor symmetry should apply at the level of the superfields of the theory, which include both the SM fermions and their superpartners. After the flavor symmetry is broken spontaneously, we will obtain the Yukawa couplings as well as non-trivial corrections to the soft-breaking masses and trilinear couplings\cite{Raidal:2008jk,Ramage:2003pf,Calibbi:2008qt,Calibbi:2009ja,Lalak:2010bk,Calibbi:2011dn,Babu:2014sga}. Theoretical and phenomenological constraints force SUSY breaking to take place in a hidden sector with no renormalizable couplings to the observable fields. Then the soft SUSY-breaking terms may arise from the non-renormalizable operators in the effective theory below the scale $\Lambda_{\rm SUSY}$ at which SUSY breaking is communicated \footnote{This scale should not be confused with the scale of SUSY breaking in the hidden sector. For instance, in the case of gravity mediation $\Lambda_{\rm hid} \simeq 10^{11}$ GeV while $\Lambda_{\rm SUSY} \simeq 10^{19}$ GeV.} to the observable sector by an appropriate mediation mechanism. Likewise, in a theory addressing the origin of flavor, we can define a scale $\Lambda_f$ characterizing the symmetry breaking scale at which the flavor structures arise. In the effective theory below $\Lambda_f$, Yukawa couplings are generated as functions of the flavon vevs, $\langle\phi\rangle/\Lambda_f$. A relative hierarchy between $\Lambda_{\rm SUSY}$ and $\Lambda_f$ can lead to flavor violating effects in the soft terms. For example, in the case of gravity mediation we expect $\Lambda_f\lesssim M_{\text{Pl}} = \Lambda_{\rm SUSY}$. In this case the operators giving rise to the soft-breaking terms are already present below $M_{\text{Pl}}$, while the flavor symmetry is still exact at scales larger than $\Lambda_f$. These operators must respect the family symmetries at the scale at which they are generated. However, at energies lower than $\Lambda_f$, in addition to the effective Yukawa couplings, corrections to these operators, and hence to the soft breaking terms, are also generated as functions of $\langle \phi \rangle/\Lambda_f$. In the $\Lambda_f \lesssim \Lambda_{\rm SUSY}$ case, we therefore expect new sources of flavor non-universality in the soft terms.\footnote{On the other hand, if $\Lambda_{\rm SUSY}\ll \Lambda_f$, the soft terms are not present at the scale of flavor breaking and SUSY breaking. At $\Lambda_f$ the flavor interactions are integrated out but SUSY still remains unbroken. The only renormalizable remnant of the flavor physics below $\Lambda_f$ are the Yukawa couplings. At the scale $\Lambda_{\rm SUSY}$ soft-breaking terms can feel the flavor breaking only through the Yukawa couplings or via non-renormalizable operators proportional to $\Lambda_{\rm SUSY}/\Lambda_f$ and therefore are negligible. One typical example of this scenario will be the case of gauge mediated supersymmetry breaking (GMSB)\cite{Giudice:1998bp,Raidal:2008jk}.} In this article we will show that flavor non-universal couplings are unavoidable in the soft-breaking terms when $\Lambda_f \lesssim \Lambda_{\rm SUSY}$. To illustrate our point, we assume that SUSY breaking is primarily mediated by supergravity, and that the Yukawa structures arise from a broken flavor symmetry through the FN mechanism. We consider two instructive choices for the flavor symmetry, an Abelian $U(1)_f$ and a non-Abelian $SU(3)_f$. We begin in Sec.~\ref{overview} by providing a brief review of the necessary background. Through simplified examples, this section also serves to illustrate the main results of this work, namely that these effective theories generically introduce new sources of flavor non-universality to the scalar sector of the Lagrangian (soft terms). As an application of these results, we consider two instructive choices for the flavor symmetry, an Abelian $U(1)_f$ and a non-Abelian $SU(3)_f$ in Sec.~\ref{examples}. As these SUSY models predict the order of magnitude of the flavor violation expected at low-energies, we show how phenomenological bounds from flavor observables can be used to provide information on the expected scale of the soft terms in Sec.~\ref{phenomenology}. We conclude in Sec.~\ref{conclusions} with an overview of our results and prospects for further phenomenological studies. \section{Supersymmetry and Flavor} \label{overview} The Minimal Supersymmetric Standard Model (MSSM) Lagrangian is determined by the particle content (gauge representations), the superpotential and the soft supersymmetry-breaking terms. The MSSM economically contains only the supersymmetric field content of the SM, with an additional Higgs doublet. As its superpotential (up to the $\mu$-term) is fixed by the Yukawa sector of the SM, the soft-breaking terms encode most of the new parameters of the Lagrangian, unfortunately introducing a huge number of unknowns to the theory (a generic MSSM has a total of 123 parameters, 124 including $\theta_{QCD}$ \cite{Haber:1997if}). As these parameters can potentially give rise to dangerous flavor violation, the MSSM is often said to suffer from a SUSY flavor problem. It is possible however that the mechanism responsible for generating the soft-terms preserves some or all of the structure of a flavor-symmetric ultraviolet completion to the MSSM. As we demonstrate, this is precisely the scenario considered here in this work, where an underlying spontaneously-broken flavor symmetry is {\em simultaneously} responsible for the fermion masses and mixing angles and the different flavor structures in the soft-breaking terms. In this case, the new flavor violating couplings in the SUSY Lagrangian provide a magnificent opportunity to measure new data on flavor, and may hopefully provide hints towards a fundamental theory of flavor. As remarked in the introduction, supersymmetry must be broken in a hidden sector and transmitted to the visible sector through mediators, either radiatively or through non-renormalizable interactions. A minimal option to couple the hidden and visible sectors is gravity, typically referred to as a ``gravity-mediation''. This is the scenario we consider in this paper. In such a mediation scheme, non-renormalizable interactions with the hidden sector suppressed by $M_{\rm Pl}$ modify the couplings of the superpotential, $W$, and the kinetic terms specified by the K\"ahler potential\footnote{To specify completely the supergravity Lagrangian we would need also the gauge kinetic terms, but they play no role in the following discussion.}, $K$. But more importantly, the same non-renormalizable interactions also give rise to the soft-terms after SUSY is broken. Since we are mainly interested in the visible sector, and given that the couplings between the two sectors are gravitationally small, we can, in practice, neglect most of these interactions and the energy transfer between the hidden and visible sector. However, some effects of the hidden sector may still be important at low energies, especially if they break a symmetry which remains exact in the visible sector. An example of this is SUSY breaking; after SUSY is broken in the hidden sector with a non vanishing F-term, $\langle F \rangle \neq 0$, the gravitational interactions transmit this breaking with a strength $m_{\rm soft} \simeq \langle F \rangle/M_{\text{Pl}}$ to the visible sector. The remnants of these interactions in the visible sector are soft SUSY-breaking masses for the scalars and gauginos, as well as the scalar trilinear terms In the following, we assume for simplicity that there is a single F-term, $F_X$, that encodes the effects of SUSY-breaking in the hidden sector, and couples, through gravitational interactions, {\em universally} to all the visible-sector fields. It is important to remember that, aside from pure visible sector couplings, gravitational couplings between the visible and hidden sectors are always present in $K$ and $W$ below $M_{\text{Pl}}$. These couplings are renormalized by visible interactions through RGEs up to the mediation scale $M_{\text{Pl}}$. In the case of a single F-term defined above, all the soft terms in the ``full'' theory, above the flavor scale, $\Lambda_f$, are universal. However, if a flavor symmetry is indeed present in the theory, its pattern of breaking and the details of the underlying theory will dictate new non-universal flavor structures in the low-energy efective theory below $\Lambda_f$. To illustrate this point, let us consider an Abelian flavor symmetry, $U(1)_f$, that breaks spontaneously at a scale $\Lambda_f < M_{\text{Pl}}$, generating the flavor structures. Before the breaking of the flavor symmetry, our superpotential and K\"ahler potential are invariant under both the SM (or GUT) and flavor symmetries. Suppose that the relevant superpotential terms allowed by the symmetries of the theory and which couple the flavons and mediators to the SM fields is given by, \begin{eqnarray} W = g \left( \psi_3 \bar \chi_{-2} \phi+ \chi_2 \bar \chi_{-1} \phi + \chi_1 \bar \chi_0 \phi + \chi_0 \bar \psi_{0} H + \psi_0 \bar \chi_{-1} \bar \phi\right) + M \left( \chi_0 \bar \chi_0 + \chi_1 \bar \chi_{-1} + \chi_2 \bar \chi_{-2} \right) + m \phi \bar \phi + \ldots \,, \label{mediatorW} \end{eqnarray} where we have used subscripts to denote the $U(1)_f$-charges of the SM and mediator fields, and the flavon $\phi$~($\bar \phi$) is taken to have charge $-1$ ($+1$). We assume a common coupling $g$ and mediator mass $M$ to simplify the discussion. Assuming that at $\Lambda_{ f} \sim \langle \phi \rangle$ the flavor symmetry is spontaneously broken, a Yukawa term will be generated upon integrating out the mediators, as shown in the supergraph of Fig.~\ref{fig:superpot1},\footnote{In superfield notation arrows pointing towards the vertex correspond to left-handed fields and those leaving from the vertex right-handed, or alternatively daggered, fields. Then the superpotential terms are vertices with all arrows entering ($W$) or leaving the vertex ($W^*$) while K\"ahler vertices have arrows both entering and leaving the vertex\cite{Grisaru:1979wc,Gates:1983nr,Drees:2004jm}.} which gives rise to a contribution in the effective superpotential, \begin{eqnarray} W_{\rm eff} = g^4 \left(\frac{\langle \phi \rangle}{M}\right)^3 \psi_3 \bar \psi_{0} H +~ \ldots \,. \label{effW1} \end{eqnarray} \begin{figure} \center \includegraphics[width=0.7\textwidth]{Yukawau1.pdf} \caption{Contribution to the superpotential in superfield notation. The superpotential is holomorphic and therefore involves only fields and not daggered fields, \emph{i.e.}, all arrows must enter the vertices in superfield notation.} \label{fig:superpot1} \end{figure} \begin{figure} \center \includegraphics[width=0.8\textwidth]{Trilinearu1.pdf} \caption{Contributions to the A-terms from Fig.~\ref{fig:superpot1}. As noted, for this diagram seven insertions of $F_X$ are possible.} \label{fig:superpot2} \end{figure} Further flavor structures will be generated in the soft-breaking terms, obtained from the superpotential in the full supergravity theory after SUSY is broken in the hidden sector. Above the flavor breaking scale, universal soft terms are generated. For instance, trilinear terms in the potential of the ``full'' theory are simply proportional to the superpotential, \eq{mediatorW}, as V = $m_{3/2} \times W$. In terms of the spurion $X$, which encodes the breaking of SUSY, these trilinear terms correspond to the non-renormalizable couplings $\frac{X}{M_{\rm Pl}} \times W$ with an F-term replacing the $X$ field. Similarly, new trilinear terms will be generated in the effective potential $V_{\rm eff}$ below the flavor breaking scale. However, unlike the contributions to $W_{\rm eff}$, it is easy to see that the trilinear scalar coupling in the effective theory at low energies corresponding to the effective Yukawa coupling of Fig.~\ref{fig:superpot1} has seven different contributions; four with $F_X$ inserted in any of the cubic vertices, plus three contributions with $F_X$ in the superpotential mass, as shown in Fig.~\ref{fig:superpot2}. Here, we have used the fact that all vertices in the full superpotential have a corresponding trilinear coupling stemming from the non-renormalizable interaction $\frac{X}{M_{\rm Pl}} \times W$, and each gives a contribution to the effective trilinear term in the low energy theory of equal size. \begin{figure} \center \includegraphics[width=\textwidth]{Trilcompu1.pdf} \caption{Fig.~\ref{fig:superpot2} drawn in terms of the scalar component fields.} \label{fig:aterm} \end{figure} The same diagrams drawn in terms of the component scalar fields are shown in Fig.~\ref{fig:aterm}. The vertices proportional to $M$ are obtained from the interference of the different components of the $F$-terms from \Eqn{mediatorW}, which are $|F_{\chi_{2}}|^2$, $|F_{\chi_{1}}|^2$ and $|F_{\chi_{0}}|^2$. The term $F_X/M_{\rm Pl}= m_{3/2}$ corresponds to the trilinear term $\frac{X}{M_{\rm Pl}} \times W$. Integrating out the heavy fields and replacing the scalar propagators by $1/M^2$, we obtain 7 identical contributions with coupling $m_{3/2} (\langle \phi \rangle /M)^3$, generating a term $A_{3,0}= 7 \times m_{3/2} (\langle \phi \rangle/M)^3$ in the effective potential; this is to be compared with the Yukawa coupling of the effective superpotential, for which the single supergraph generates only $Y_{3,0}= (\langle \phi \rangle /M)^3$. By this simple example, it is clear that the proportionality factor will change depending on the number of vertices in the full theory and therefore, if we have a different number of flavon insertions generating the various Yukawa elements, {\em the trilinear matrices will never be proportional to Yukawa matrices} \cite{Ross:2002mr,Calibbi:2008qt,Calibbi:2009ja}. \begin{figure} \center \includegraphics[width=0.3\textwidth]{kahler1.pdf} \caption{Contribution to the soft mass from the K\"ahler potential in superfield notation. Arrows entering the vertex represent fields, while arrows leaving the vertex are daggered fields; here $|\langle F_X \rangle |^2/M_{\text{Pl}}^2 = m_{\rm 3/2}^2$.} \label{fig:smass} \end{figure} A similar mismatch occurs for the soft masses. Before flavor symmetry breaking, the soft-masses, obtained from the K\"ahler potential, are universal for all visible fields. This includes the SM, flavon and any mediator fields needed in the model. In terms of the spurion $X$, we can represent these flavor symmetric soft-terms through the supergraph of Fig.~\ref{fig:smass}, and the K\"ahler function at this point would be, \begin{eqnarray} K = \psi^\dagger_i \psi_j \left( \delta_{i j} + \delta_{i j} \frac{ X X^\dagger}{M_{\rm Pl}^2} \right)\, , \end{eqnarray} with $\psi_i$ any of the visible fields. As was the case for the superpotential, after the flavor symmetry is broken, the K\"ahler potential receives new contributions. Since the K\"ahler potential includes the usual wave-function renormalization, the light-field two-point functions in the low energy effective theory receive new contributions mediated by the heavy fields, coupling fields with different flavor charges through an appropriate number of flavon insertions. An example of these two-point functions is shown in Fig.~\ref{fig:kahler1}. In this case, field redefinitions will be necessary to ensure canonical kinetic terms, see \cite{King:2004tx}. \begin{figure} \center \includegraphics[width=0.5\textwidth]{kahleru1.pdf} \caption{Supergraph illustrating a possible non-diagonal K\"ahler couplings induced by integrating out the heavy mediator superfields.} \label{fig:kahler1} \end{figure} Following the same logic as for the trilinear interactions, inserting the SUSY breaking F-term in all possible ways at different points in the diagram makes a difference between the kinetic terms and the soft masses. Again we have several diagrams contributing equally to the soft-breaking masses for each diagram renormalizing the kinetic terms, Fig.~\ref{fig:kahlermass}. In general, the K\"ahler potential after integrating the heavy mediator fields is now, \begin{eqnarray} \label{kahlereff} K = \psi^\dagger_i \psi_j \left( \delta_{i j} + c~\left(\frac{\langle \phi \rangle}{M_\chi}\right)^{q_{ij}} + \left(\delta_{i j}+ b~\left(\frac{\langle \phi \rangle}{M_\chi}\right)^{q_{ij}}\right) \frac{ X X^\dagger}{M_{\rm Pl}^2} + {\rm h.c.} \right) \end{eqnarray} with $b \sim N c$, where $N$ is the number of internal lines we can insert the spurion field.\footnote{As in the case of the trilinears, this may be expressed in terms of the component fields.} Given that the kinetic terms and the soft masses are not proportional, the field redefinition necessary to ensure canonical kinetic terms will not simultaneously diagonalize the soft masses, introducing new sources of flavor violation. These results, that trilinear interactions and soft masses are not proportional in the low-energy theory after integrating out heavy fields, apply generically to all supersymmetric effective theories of flavor with $\Lambda_f \lesssim \Lambda_{\rm SUSY}$. \begin{figure} \center \includegraphics[width=\textwidth]{kahleru1m.pdf} \caption{Off-diagonal contributions to the scalar soft-masses from the K\"ahler diagram of Fig.~\ref{fig:kahler1}. Again, multiple possibilities exist for inserting the supersymmetry breaking term $X X^\dagger $.} \label{fig:kahlermass} \end{figure} \section{Flavor Symmetries} \label{examples} As a first application of the results of the previous section, we consider now the effects of integrating out heavy mediator fields on the structure of the soft-breaking terms in two representative flavor models: a toy $U(1)_f$ model, as an example of an Abelian symmetry, and a non-Abelian $SU(3)_f$ model. In the following, we assume the conditions on the breaking of SUSY of the previous section apply: i) gravity mediation and ii) a single F-term with universal couplings is responsible for generating all the soft-terms of the visible sector. Our goal is not to present completely realistic models, but to show that non-universal soft-terms are a generic prediction of these models, even starting with fully universal soft terms at the mediation scale. Realistic models will have to deal with other problems like Golstone bosons in the case of global symmetries or D-flatness in the case of gauged non-Abelian symmetries, etc. Solutions to all these problems can be found in the literature\cite{Ross:2004qn,Babu:2014sga} or can be avoided altogether with discrete flavor symmetries\cite{Ishimori:2010au,Altarelli:2010gt,King:2013eh}. \subsection{Toy $U(1)_f$ Model} \label{sec:toy} Under the conditions outlined above, our toy $U(1)_f$ model is completely defined by its superpotential, which generalizes the superpotential of Eq.~(\ref{mediatorW}), \begin{eqnarray} W &\supset& g \sum_{q} \left( \psi_{q}^{} \bar \chi_{-q +1}^{}\phi + \chi_{q} \bar \chi_{-q+1}^{} \phi + \chi_{q -1}^{} \bar \chi_{-q}^{} \bar \phi + \chi_{-q}^{} \bar \psi_{q}^{u} H_u + \chi_{-q}^{} \bar \psi_{q}^{d} H_d \right) + \nonumber \\ && +g\left( \bar \psi_{q}^{u} \bar \chi_{-q +1}^{u}\phi + \chi_{q}^{u} \bar \chi_{-q+1}^{u} \phi + \chi_{q -1}^{u} \bar \chi_{-q}^{u} \bar \phi + \bar \psi_{q}^{d} \bar \chi_{-q +1}^{d}\phi + \chi_{q}^{d} \bar \chi_{-q+1}^{d} \phi + \chi_{q -1}^{d} \bar \chi_{-q}^{d} \bar \phi \right) + \nonumber \\ && M \sum_{q} \left( \chi_{q}^{} \bar \chi_{-q}^{} + \chi_{q}^{u} \bar \chi_{-q}^{u} + \chi_{q}^{d} \bar \chi_{-q}^{d} \right)+ m \phi \bar \phi \,, \end{eqnarray} where the $\psi$s ($\bar \psi$s) represent the left-handed (right-handed) SM superfields, $\chi$s and $\bar \chi$s the mediators, and $\phi$ and $\bar \phi$ are the flavons. As before, the subscripts for the $\psi$s and $\chi$s denote their respective $U(1)_f$ charges, chosen positive for the SM fields. The flavon, $\phi$ ($\bar \phi$) is assigned to have $U(1)_f$ charge $-1$ ($+1$). For simplicity, we assume a common coupling, $g$, and a common mass, $M$, for all the mediators. In principle, however, each mediator particle can couple with its own $\order(1)$ coupling and can have a different mass. Similarly, it is well-known that one of the main problems of supersymmetric $U(1)_f$ models is that the equality of soft-masses of the different generations, even in the symmetric limit, is not guaranteed by symmetry. This inequality may generate large off-diagonal entries after rotating to the basis of diagonal Yukawa matrices. This problem is absent in our toy model due to our assumption of a single $F$-term with universal couplings to the visible sector, but should be addressed in a realistic Abelian model. To obtain the low-energy Yukawa couplings and the soft-breaking trilinear interactions in the effective theory below $\Lambda_f$ (or the soft-masses and the K\"ahler function), it is again easiest to work with supergraphs. Drawing supergraphs such as that of Fig.~\ref{fig:superpot1}, one finds that in terms of the small expansion parameter, $\varepsilon ~=~ g (\langle \phi \rangle / M ) ~\ll~ 1$, integrating out the heavy messengers will generate Yukawa interactions of the form \begin{equation} Y_{ij}^{} ~\sim ~ \varepsilon^{n_{ij}}_{}, \qquad n_{ij}^{} = q_i + q_j \,. \end{equation} For the trilinear couplings, we have to take into account that each supergraph generating the Yukawa terms will necessarily contain $n_{ij}$ flavon insertions (cubic vertices) and $n_{ij}$ messenger masses, with one additional vertex to couple the Higgs. This will result in $2 n_{ij}+1$ possibilities to insert the SUSY breaking $F_X$ term, so that the trilinear interactions are given by, \begin{equation} A_{ij}^{} ~\sim ~ m_{3/2}^{}~(2 n_{ij} +1)~ Y_{ij}^{}. \end{equation} The distinct prefactors, $\sim n_{ij}$, in the entries of the trilinear matrix make it {\em not proportional} to the Yukawa matrix, as advertised. We can apply this to an explicit $SU(5)$-inspired pattern for the $U(1)_f$ charges of the SM fermions: $(Q_3, 0)$, $(Q_2, 2)$, $(Q_1, 3)$, $(\overline{d}_3, 0)$, $(\overline{d}_2, 0)$, $(\overline{d}_1, 1)$, $(\overline{u}_3, 0)$, $(\overline{u}_2, 2)$, $(\overline{u}_1, 3)$: Given these charges, the Yukawa matrices are given by, \begin{eqnarray} \label{theYmatrixI} Y_{u} \sim y_t \left( \begin{array}{ccc} e \varepsilon^6&\varepsilon^5& \varepsilon^3\\ \varepsilon^5&d \varepsilon^4& \varepsilon^2\\ \varepsilon^3& \varepsilon^2& 1 \end{array} \right), \qquad\qquad Y_{d} \sim y_b \left( \begin{array}{ccc} e'\varepsilon^4&f'\varepsilon^3& f\varepsilon^3\\ \varepsilon^3&d'\varepsilon^2& h \varepsilon^2\\ \varepsilon &k'& k \end{array} \right), \end{eqnarray} where we have taken the liberty to add $\order(1)$ coefficients in the different entries to reproduce the observed masses and mixings.\footnote{This freedom is a general feature of Abelian models, and can be motivated by modifying our simplified superpotential to allow distinct $\order(1)$ couplings for each term.} Using $\varepsilon = \lambda_C = 0.225$ as the expansion parameter and choosing $e= 1.1$, $e'=1.8$, $d=4.0$, $d'=0.90$, $f=1.3$, $f'=0.82$, $h=1.3$, $k=0.69$ and $k'=1.2$ gives a good fit to the measured quark masses, reproduces correctly the Cabibbo block of the CKM matrix and approximates the smaller CKM elements. Assuming the same $\order(1)$ coefficients appear in the graphs generating the trilinear couplings, we would obtain \begin{eqnarray} \label{theAmatrixI} A_{u} \sim m_{3/2}~y_t \left( \begin{array}{ccc} 13 e\varepsilon^6& 11 \varepsilon^5& 7 \varepsilon^3\\ 11 \varepsilon^5& 9 d \varepsilon^4& 5 \varepsilon^2\\ 7 \varepsilon^3& 5 \varepsilon^2& 1 \end{array} \right), \qquad\qquad A_{d} \sim m_{3/2}~y_b \left( \begin{array}{ccc} 9 e'\varepsilon^4& 7 f'\varepsilon^3& 7f \varepsilon^3\\ 7 \varepsilon^3& 5 d' \varepsilon^2& 5 h \varepsilon^2\\ 3 \varepsilon &k'& k \end{array} \right). \end{eqnarray} To get a sense for the flavor violation induced by this mismatch in order one coefficients, we must go to the Super-CKM (SCKM) basis\footnote{In principle, we should first redefine the fields and obtain canonical kinetic terms as discussed below. However, it can be shown that these fiels redefinitions introduce only subleading corrections in $\varepsilon$\cite{King:2004tx}.}, where the Yukawas are diagonal and in which $A_u$ and $A_d$ take the form, \begin{equation} \label{trilinU1} \nonumber A_u^{} \rightarrow U_u^{} A_u V_u^{\dagger} ~ \approx ~ m_{3/2}~y_t \left( \begin{array}{ccc} 14.6 \varepsilon^6 & 10.9 \varepsilon^5 & 7 \varepsilon^3 \\ 10.9 \varepsilon^5 & 35.9 \varepsilon^4 & 4.9 \varepsilon^2 \\ 7 \varepsilon^3 & 4.9 \varepsilon^2 & 1 \\ \end{array} \right), \quad A_d^{} \rightarrow U_d^{} A_d V_d^{\dagger} ~ \approx ~ m_{3/2}~y_b \left( \begin{array}{ccc} 11.3 \varepsilon^4 & 4 \varepsilon^3 & 6.5 \varepsilon^3 \\ 4.9 \varepsilon^3 & 3.2 \varepsilon^2 & 4.3 \varepsilon^2 \\ 2.1 \varepsilon & 0.86 & 0.49 \\ \end{array} \right). \end{equation} We see that indeed large flavor violating entries can be expected in the trilinear matrices of the low energy effective theory, even starting with completely universal soft terms in the full theory. This non-universality can constrain strongly the allowed squark and gluino masses of the model. In addition to generating the Yukawa and trilinear interactions, integrating over the heavy mediators will also give new off-diagonal contributions to the K\"ahler function, \begin{equation} \label{kahlerab} K ~=~ \psi_i^{\dagger} \psi_j^{} \left( \delta_{ij}^{} + c_{ij}^{} ~+~ (\delta_{ij}^{} + b_{ij}^{})\frac{X X^\dagger}{M_{\rm Pl}^2} + \rm h.c. + \ldots \right), \end{equation} where the coefficients $c_{ij}$ encode the supersymmetric off-diagonal entries in the kinetic terms while the $b_{ij}$ give rise to the soft-breaking masses; the ellipses denote terms of higher order. The mismatch between the wave-function renormalization ($\delta_{ij} + c_{ij}$) and the soft masses ($\delta_{ij} + b_{ij}$) can again be calculated by drawing the appropriate supergraphs. Looking at Fig.~\ref{fig:kahler1}, for example, and remembering that the super-propagator of the mediator gives a factor of $M^{-2}$ (left-right, uncrossed propagator) or $M^{-1}$ (left-left or right-right, crossed propagator), it is tempting to guess that for the K\"ahler function, the leading corrections are proportional to $\varepsilon^{q_{ij}}$, where $q_{ij}=|q_i -q_j|$. This guess is indeed true, except for the special case of $q_{ij}=1$. Given that our superpotential does not include direct couplings between the SM superfields $\psi_{q}$ and the mediators $\bar \chi_{-q}$, one can only generate such a mixing through the supergraph of Fig.~\ref{fig:mixing2}, at the cost of a higher $\varepsilon$ dependence than naively expected. \begin{figure} \center \includegraphics[width=0.4\textwidth]{medmixu1.pdf} \caption{Supergraph giving an effective coupling between the messengers and the SM fields. Such a term is always present but in general gives only higher order $\varepsilon$ corrections to the K\"ahler function.} \label{fig:mixing2} \end{figure} Taking this subtlety into account, we find explicitly that \begin{equation} \label{eq:wavefunc} c_{ij}^{} \sim \begin{cases} (q_{ij}^{} - 1)\varepsilon^{q_{ij}} &\text{for $ q_{ij}^{} \geq 2$} \\ 2 \varepsilon^3 &\text{for $q_{ij}^{} = 1$} \\ \varepsilon^2 &\text{for $q_{ij}^{} = 0$} \,. \end{cases} \end{equation} where we included the leading correction to the diagonal terms that comes from the diagram with a single mediator super-propagator and two $\phi$'s, while the form of the coefficient for the off-diagonal terms stems from the number of different diagrams that can be drawn which contain only a single left-right super-propagator for the mediators. For the soft masses, as remarked in the previous section, we will have $b_{ij} = N c_{ij}$, where $N$ is the number of SUSY breaking insertions, $X^\dagger X/M_{\rm Pl}^2$, we can make for a given supergraph. The counting for the number of possible insertions is straightforward. For a given supergraph contributing to the K\"ahler function, without increasing the powers of the flavor mediator mass, $M$, in the denominator, we can only insert $X^\dagger X/M_{\rm Pl}^2$ in the left-right propagator. However, there is also the possibility of inserting $X^\dagger$ in the single $W^*$ vertex, with $(q_{ij} -1)$ options to insert the $X$ in the remaining $W$ vertices (see Fig.~\ref{fig:kahlermass}). This gives $N = (q_{ij}-1) +1 = q_{ij}$ possibilities. Again, the subtlety for the case $q_{ij} = 1$ requires the additional mass insertion of Fig.~\ref{fig:mixing2}, so that in total we find, \begin{equation} \label{eq:smass} N = \begin{cases} q_{ij}^{} & \text{for $ q_{ij}^{} \geq 2$} \\ 3 & \text{for $q_{ij}^{} = 1$} \\ 2 & \text{for $q_{ij}^{} = 0$} \,. \end{cases} \end{equation} An explicit example, using the same $SU(5)$-inspired charge assignment as before, would give the same coefficients $c_{ij}$ and $b_{ij}$ for $Q$, $\overline{u}$ and $\overline{d}$, \begin{equation} c_{ij}^{(Q,\overline{u},\overline{d})} ~=~ \left( \begin{array}{ccc} \varepsilon^2 & 2 \varepsilon^3 & 2 \varepsilon^3 \\ 2 \varepsilon^3 & \varepsilon^2 & \varepsilon^2 \\ 2 \varepsilon^3 & \varepsilon^2 & \varepsilon^2 \end{array} \right), \qquad\qquad b_{ij}^{(Q,\overline{u},\overline{d})} ~=~ \left( \begin{array}{ccc} 2 \varepsilon^2 & 6 \varepsilon^3 & 6 \varepsilon^3 \\ 6 \varepsilon^3 & 2 \varepsilon^2 & 2 \varepsilon^2 \\ 6 \varepsilon^3 & 2 \varepsilon^2 & 2 \varepsilon^2 \end{array} \right). \end{equation} Again, they are not proportional. One can see this explicitly by canonically normalizing the fields and diagonalizing the matrices $\delta_{ij} + c_{ij}$. As remarked in \cite{King:2004tx}, this can always be achieved by an upper-triangular matrix $T$, $\psi^{\prime} = T \psi$, \begin{equation} T ~=~ \left( \begin{array}{ccc} 1+\frac{\varepsilon^2}{2} & 2 \varepsilon^3 & 2 \varepsilon^3 \\ 0 & 1+\frac{\varepsilon^2}{2} & \varepsilon^2 \\ 0 & 0 & 1+\frac{\varepsilon^2}{2} \end{array} \right). \end{equation} Aside from giving higher-order $\varepsilon$ corrections to the Yukawa matrices, $Y \rightarrow (T^{-1})^\dagger Y T^{-1}$, this will give the soft masses in the canonical basis, $(m_{\rm soft}^2)_{ij} \equiv m_{3/2}^2 (\delta_{ij}+b_{ij})$, \begin{equation} \label{msoftU1} (m_{\rm soft}^2)_{ij} \rightarrow (T^{-1})^\dagger (m_{\rm soft}^2)_{ij} T^{-1} \sim m_{3/2}^2 \left( \begin{array}{ccc} 1 +\varepsilon^2 - \frac{7}{4} \varepsilon^4 & 4 \varepsilon^3 & 4 \varepsilon^3 \\ 4 \varepsilon^3 & 1 +\varepsilon^2 - \frac{7}{4} \varepsilon^4 & \varepsilon^2 -\frac{7}{4} \varepsilon^4 \\ 4 \varepsilon^3 & \varepsilon^2 -\frac{7}{4} \varepsilon^4 & 1 +\varepsilon^2 - \frac{19}{4} \varepsilon^4 \end{array} \right), \end{equation} and due to the mismatch in the order one coefficients of $c_{ij}$ and $b_{ij}$, off-diagonal entries in the soft masses remain after canonical normalization.\footnote{To compare with the usual mass insertion bounds present in the literature, one would need to go to the SCKM basis, \emph{i.e.}, the basis of diagonal Yukawa couplings.} \subsection{$SU(3)_f$ Model} The situation is slightly different in the case of non-Abelian symmetries such as $SU(3)_{\it f}$, with flavon fields transforming as either a ${\bf 3}$ or ${\bf \bar 3}$. In this case, we must introduce several species of mediator fields, both singlets and triplets under $SU(3)_{\it f}$. We consider only $SU(2)_L$ singlet mediators, which always couple through a flavon to the right-handed SM fields and through the Higgs to the left-handed fields. As an illustrative example, we take the model of I.~de Medeiros Varzielas and G.~G.~Ross in Ref.~\cite{deMedeirosVarzielas:2005ax}, supplemented by the appropriate mediator sector. With the fields specified in Tables \ref{tab:higgsb} and \ref{tab:higgsb2} from \cite{deMedeirosVarzielas:2005ax}, the superpotential would be \begin{eqnarray} W &=& g \left( \psi_i~ \bar\chi_{4}^i~ H + ~ \chi_{-4,i}~ \bar\chi_1 ~\bar \phi_{123}^i + ~ \chi_{-4,i}~\bar \chi_2 ~\bar \phi_3^i + ~\chi_{-4,i}~\bar \chi_3 ~\bar \phi_{23}^i + ~\chi_{-3}~ \bar \chi_1~ \Sigma~ \right. \nonumber \\ & & ~~~ \left. + ~ \chi_{-3} ~\bar \psi_i~ \bar \phi_{123}^{i}~ + ~ \chi_{-1} ~\bar \psi_i~ \bar \phi_{23}^{i}~ + ~ \chi_{-2} ~\bar \psi_i~ \bar \phi_3^{i}~+ ~\bar\chi_{3}~ \chi_{-5,i} ~ \bar \phi_{3}^{i}~ \right. \nonumber \\ & & ~~~ \left. + ~\bar \chi_{2}~\chi_{-5,i}~ \bar \phi_{123}^{i}~ + ~\bar\chi_{1} ~\chi_{-3,i}~ \bar \phi_{3}^{i}~ + ~\bar \chi_{2}~\chi_{-3,i} ~ \bar \phi_{23}^{i}~\right) \nonumber \\ & & +~ M_u \left( ~\chi^u_1 ~\bar \chi^u_{-1} + ~ \chi^u_2 ~\bar \chi^u_{-2} + ~\chi^u_3 ~\bar \chi^u_{-3}~ + ~\bar \chi_3^{u,i} ~\chi^u_{-3,i}~+ ~\bar \chi_4^{u,i} ~\chi^u_{-4,i}~ + ~\bar \chi_5^{u,i} ~ \chi^u_{-5,i} \right) \nonumber \\ & & +~ M_d \left( ~\chi^d_1 ~\bar \chi^d_{-1} + ~ \chi^d_2 ~\bar \chi^d_{-2} + ~\chi^d_3 ~\bar \chi^d_{-3}~ + ~\bar \chi_3^{d,i} ~\chi^d_{-3,i}~+ ~\bar \chi_4^{d,i} ~\chi^d_{-4,i}~ + ~\bar \chi_5^{d,i} ~ \chi^d_{-5,i} \right) \,, \end{eqnarray} \begin{table}[tbp] \begin{tabular*}{1.00\textwidth}{@{\extracolsep{\fill}}|c|c c c c c c c|} \hline ~${\bf Field}$ & $\psi$ & $\bar{\psi}$ & ~~~$H$ & $\Sigma$ & $\bar\phi _{3}$ & $\bar\phi _{23}$ & $\bar\phi_{123}$~~~\\ \hline ~${\bf R }$ & $1$ & $1$ & ~~~$0$ & $0$ & $0$ & $0$ & $0$~~~\\ ~${\bf U(1)}$ & $0$ & $0$ & $-4$ & $2$ & $2$ & $1$ & $3$~~~\\ \hline ~${\bf SU(3)_{\it f}}$ & ${\bf 3}$ & ${\bf 3}$ & ~~~${\bf 1}$ & ${\bf 1}$ & ${\bf \bar{3}}$ & ${\bf \bar{3}}$ & ${\bf \bar{3}}$~~~\\ \hline \end{tabular*} \caption{Transformation of the matter superfields under the $SU(3)$ family symmetries.} \label{tab:higgsb} \end{table} \begin{table}[tbp] \begin{tabular*}{1.00\textwidth}{@{\extracolsep{\fill}}|c|c c c c c c c c c c|} \hline ~${\bf Field}$ & $\bar \chi_1$ & ~~$\chi_{-1}$ & ~~$\bar \chi_2$ & ~~$\chi_{-2}$ &~~ $\bar \chi_3$ & ~~$\chi_{-3}$ & ~~$\bar \chi_{4}^k$ & ~~$\chi_{-4,k}$ &~~ $\chi_{-3,k}$ &~~$\chi_{-5,k}$ ~\\ \hline ~${\bf R }$ & $1$ & ~~~$1$ & $1$ & ~~~$1$ & $1$ & ~~~$1$ & $1$ & ~~~$1$ & $1$ &$1$\\ ~${\bf U(1)}$ & $1$ & $-1$ & $2$ & $-2$ & $3$ & $-3$ & $4$ & $-4$ & $-3$ &$-5$~~~\\ \hline ~${\bf SU(3)}_{\it f}$ & ${\bf 1}$ & ~~~${\bf1}$ & ${\bf 1}$ & ~~~$\bf{1}$ & ${\bf 1}$ & ~~~${\bf 1}$ & ${\bf\bar 3}$ & ~~~${\bf 3}$ & ${\bf 3}$& ${\bf 3}$~~~\\ \hline \end{tabular*} \caption{Transformation of the mediator superfields under the $SU(3)$ family symmetries.} \label{tab:higgsb2} \end{table} suppressing the $u$ and $d$ indices on $\psi$ and $H$, and where the flavons, $\bar \phi_3$, $\bar \phi_{23}$ and $\bar \phi_{123}$, are labelled with a subscript indicating the field component whose vev is non-zero. The messenger subscripts denote their charges under an additional $U(1)$ present in the superpotential, and we neglect contributions from the $SU(2)_L$ doublet-mediators, which are assumed to be much heavier. The flavor symmetry is spontaneously broken in two steps: first $SU(3)_f\rightarrow SU(2)_f$, followed by the breaking of the residual $SU(2)_f$. We assume the following alignment of the flavon vevs, \begin{equation} \nonumber \langle \bar{\phi}_3 \rangle ~=~ (~0 ~~~ 0 ~~~ 1~) \otimes \begin{pmatrix} ~\alpha_u & 0 \\ 0 & \alpha_d~ \end{pmatrix}, \end{equation} \begin{equation} \nonumber \langle \bar{\phi}_{23} \rangle ~=~ (~0 ~~~ \beta ~ -\beta~), \end{equation} \begin{equation} \langle \bar{\phi}_{123} \rangle ~=~ (~\gamma ~~~ \gamma ~~~ \gamma~~), \end{equation} where $\bar{\phi}_3$ transforms as a ${\bf 3} \oplus {\bf 1}$ under $SU(2)_R$, obtaining different vevs in the up ($\alpha_u$) and down ($\alpha_d$) sectors, while $\bar{\phi}_{23}$ and $\bar{\phi}_{123}$ are $SU(2)_R$ singlets; the vevs are assumed hierarchical, $\gamma \ll \beta \ll \alpha_u, \, \alpha_d$. When the flavor symmetry is broken, the effective Yukawa couplings arise as the result of integrating out the heavy messengers in processes like those represented in Fig.~\ref{fig:fig01}. For instance, the dominant contribution to $Y_{33}$ will come from the first diagram, whereas the remaining terms in the $2\times3$ block will arise mostly from the third diagram. Similarly, $Y_{12}$ and $Y_{21}$ will be effectively generated by the second diagram and the analogous diagram obtained by changing the order of $\bar \phi_{23}$ and $\bar \phi_{123}$. The resulting Yukawa matrices are then \begin{equation} Y_u ~ \sim ~ y'_t \left( \begin{array}{rrc} 0 & f~\varepsilon^2_u\,\varepsilon_d & -f^\prime~\varepsilon^2_u\,\varepsilon_d \\ f~\varepsilon^2_u\,\varepsilon_d & -\frac{2}{3}\,d\,\varepsilon_u^2 & ~~~\frac{2}{3}\,e\,\varepsilon_u^2 \\ -f^\prime~\varepsilon^2_u\,\varepsilon_d & \frac{2}{3}\,e\,\varepsilon_u^2 & 1 \end{array} \right), \hspace{0.8cm} Y_d ~ \sim ~ y'_b \left( \begin{array}{rrc} 0 & h~\varepsilon^3_d & -k~\varepsilon^3_d \\h~\varepsilon^3_d & ~~l~\varepsilon_d^2 & -k^\prime~\varepsilon_d^2 \\ -k~\varepsilon^3_d & -k^\prime~\varepsilon_d^2 & 1 \end{array} \right), \end{equation} \begin{figure}[h!] \center \includegraphics[width=\textwidth]{Yukawasu3.pdf} \\ \caption{Contributions to the effective Yukawa couplings for the $SU(3)_f$ model in superfield notation.} \label{fig:fig01} \end{figure} \begin{figure}[h!] \center \includegraphics[width=\textwidth]{Kahlersu3.pdf} \caption{Contributions to the K\"ahler couplings in the $SU(3)_f$ model induced by integrating out the heavy mediator superfields.} \label{fig:fig03} \end{figure} where $\frac{\alpha_u}{M_{u}} \simeq \frac{\alpha_d}{M_{d}} \simeq 0.7\equiv \alpha$, $\varepsilon_{f} \equiv \frac{\beta}{M_{f}}$, with $\varepsilon_{d}\simeq 3\,\varepsilon_{u} \sim 0.15$, $\frac{\gamma}{M_{d}} = \varepsilon_{d}^2 $ and $\langle\Sigma\rangle/M_{d}\simeq \mathcal{O}(1)$ whereas $\langle\Sigma\rangle/M_{u}\simeq -2/3\,\langle\Sigma\rangle/M_{d}$. The couplings $y'_t$ and $y'_b$ refer to the top and bottom Yukawa couplings before rotating the matrices to the canonical basis. Again, we allow for order one coefficients in the Yukawa matrices in order to reproduce quark masses and the CKM matrix. Here, they are chosen to be: $f\,=\,0.33$, $f^\prime \,=\,1.0$, $d\,=\,1.62$, $e\,=\,1.0$, $h\,=\,1.14$, $k\,=\,1.0$, $k^\prime\,=\,1.0$ and $l\,=\,0.74$. Once we know the diagrams which contribute to each effective Yukawa coupling, we may calculate the trilinear matrices, which are found to be \begin{equation} A_u \sim m_{3/2}~y'_t \left( \begin{array}{crc} 0 & 5\,f~\varepsilon^2_u\,\varepsilon_d & -5\,f^\prime~\varepsilon^2_u\,\varepsilon_d \\ ~~5\,f~\varepsilon^2_u\,\varepsilon_d & -\frac{14}{3}\,d\,\varepsilon_u^2 & ~\frac{14}{3}\,e\,\varepsilon_u^2 \\ -5\,f^\prime~\varepsilon^2_u\,\varepsilon_d & \frac{14}{3}\,e\,\varepsilon_u^2 & 5 \end{array} \right) \hspace{0.2cm} A_d \sim m_{3/2}~y'_b \left( \begin{array}{rrc} 0 & 5\,h~\varepsilon^3_d & -5\,k~\varepsilon^3_d \\ 5\,h~\varepsilon^3_d & 7\,l~\varepsilon_d^2 & -7\,k^\prime~\varepsilon_d^2 \\ -5\,k~\varepsilon^3_d & -7\,k^\prime~\varepsilon_d^2 & 5 \end{array} \right). \end{equation} Going to the SCKM basis, after canonical normalization of the fields the trilinear matrices are given by \begin{eqnarray} \nonumber A_u & \longrightarrow & U_u.A_u.V_u^\dagger \, \sim \, m_{3/2}\,y_t\, \left( \begin{array}{rcc} 0.3\,\varepsilon_u^2\,\varepsilon_d^2 & ~~-0.7\,\varepsilon^2_u\,\varepsilon_d~~ & 0.3\,\varepsilon_u^2\,\varepsilon_d\\ -0.7\,\varepsilon^2_u\,\varepsilon_d & -7.6~\varepsilon_u^2 & -\,\varepsilon_u^2 \\ 0.4\,\varepsilon^2_u\,\varepsilon_d & ~~~1.3~\varepsilon_u^2 & ~5.0 \end{array} \right), \\ \nonumber \\ \nonumber \\ A_d & \longrightarrow & U_d.A_d.V_d^\dagger ~ \sim ~ m_{3/2}~y_b~ \left( \begin{array}{rrc} -5.3~\varepsilon_d^4 & -2.3~\varepsilon^3_d & ~~2.3~\varepsilon^3_d \\ -2.3~\varepsilon^3_d & 5.2~\varepsilon_d^2 & -1.5~\varepsilon_d^2 \\ 3.1~\varepsilon^3_d & -2.0~\varepsilon_d^2 & 5.0 \end{array} \right). \end{eqnarray} For the soft masses, the structure of the K\"ahler potential in the effective theory is given by \eq{kahlerab}, where as before, $b_{ij}$ encodes the flavor effects in the soft masses while $c_{ij}$ gives the form of the kinetic terms. Under our assumption that the $SU(2)_L$ doublet-messengers are much heavier than their singlet counterparts, their effects in the soft masses of the left-handed SM fields will be negligible; we therefore focus on the right-handed fields. The leading supergraphs can be found in Fig.~\ref{fig:fig03}. The first row of Fig.~\ref{fig:fig03} gives the dominant diagrams which contribute to the coefficients $c_{ij}$, while the second gives a subleading diagram which is supressed by $\alpha^2$. In addition, these diagrams will always have $\alpha^{2n}$ corrections resulting from inserting pairs of $\bar\phi_3$ fields with the flavor indices contracted internally. These corrections can be factored out, amounting to a global rescaling of the fields that plays no role here. Taking all this into account, we obtain, \begin{equation} c^u_{ij} ~ \simeq ~ \left(\begin{array}{ccc} \varepsilon_u^2\,\varepsilon_d^2 & -2\varepsilon_u^3 & 2\varepsilon_u^3 \\ -2 \varepsilon_u^3 & \varepsilon_u^2 & -(1 + \alpha^2) \varepsilon^2_u \\ 2 \varepsilon_u^3 & -(1 + \alpha^2) \varepsilon^2_u & \alpha^2 \end{array} \right),~~ c^d_{ij} ~ \simeq ~ \left(\begin{array}{ccc} \varepsilon_d^4 & \varepsilon^3_d & -\varepsilon^3_d \\ \varepsilon^3_d & \varepsilon_d^2 & -(1 + \alpha^2) \varepsilon_d^2 \\ -\varepsilon^3_d & -(1 + \alpha^2)\varepsilon_d^2 & \alpha^2 \end{array} \right). \end{equation} Now, inserting the $XX^{\dagger}$ vertex in every possible position within the previous diagrams we can calculate the coefficients $b_{ij}$, which are found to be \begin{equation} b^u_{ij} ~ \simeq ~ \left(\begin{array}{ccc} 2 \varepsilon_u^2\,\varepsilon_d & -6 \varepsilon^3_u & 6 \varepsilon^3_u \\ -6 \varepsilon^3_u & 2 \varepsilon_u^2 & -(2 + 5\alpha^2)\varepsilon_u^2 \\ 6\varepsilon^3_u & -(2 + 5\alpha^2)\varepsilon_u^2 & 2 \alpha^2 \end{array} \right) , ~~ b^d_{ij} ~ \simeq ~ \left(\begin{array}{ccc} 2\varepsilon_d^4 & 3\varepsilon^3_d & -3\varepsilon^3_d \\ 3\varepsilon^3_d & 2\varepsilon_d^2 & -(2 + 5 \alpha^2)\varepsilon_d^2 \\ -3\varepsilon^3_d & -(2 + 5\alpha^2)\varepsilon_d^2 & 2 \alpha^2 \end{array} \right). \end{equation} As before, knowing $b_{ij}$, the soft mass matrices are given by $(m_{\mathrm{soft}}^2)_{ij}=m_{3/2}^2(\delta_{ij}+b_{ij})$. Then, the fields should be redefined first in the canonical basis and then in the SCKM basis. Finally, after these field redefinitions, the expression for the soft mass matrices for $\bar{u}$ and $ \bar{d}$ will be, \begin{eqnarray} \left(m^2_{\mathrm{soft}}\right)_{\bar u} &\simeq & m_{3/2}^2 \begin{pmatrix} 1+0.1\,\varepsilon_d^2 & -4~\varepsilon^3_u & ~~~3~\varepsilon^3_u \\ -4~\varepsilon^3_u & ~~1+\varepsilon_u^2~ & ~-3~\varepsilon_u^2~ \\ ~~3~\varepsilon^3_u & -3~\varepsilon_u^2 & ~~1.3 \end{pmatrix} \,, \nonumber \\ \left(m^2_{\mathrm{soft}}\right)_{\bar d} & \simeq & m_{3/2}^2 \begin{pmatrix} 1+2~\varepsilon_d^4 & 0.5~\varepsilon^3_d & ~~~~2~\varepsilon^3_d \\ ~~~0.5~\varepsilon^3_d & ~1+3~\varepsilon^2_d~ & ~-2~\varepsilon_d^2 \\ -2~\varepsilon^3_d & -2~\varepsilon_d^2 & ~~~1.3 \end{pmatrix}\,. \end{eqnarray} \section{Flavor Phenomenology} \label{phenomenology} In the previous sections, we obtained the soft-breaking matrices in two flavor symmetric models by simply assuming they were generated by the same mechanism responsible for generating the Yukawa couplings. Although these structures are to some extent dependent on the mediator sector, we have seen that integrating out the heavy mediator fields always generates non-universalities in the soft terms. In these flavor models, the structures of the soft matrices are fixed by symmetry, no longer unknowns of the (124-)SUSY model, but {\em predictions}. Models in this spirit provide a new point of view for the phenomenology of flavor-supersymmetric models. Effectively, we have only the four parameters of the usual constrained MSSM, with $m_0$, $m_{1/2}$, $\tan \beta$ and sgn($\mu$) serving as inputs, the order of magnitude of the others being fixed by the flavor symmetry.\footnote{Due to our ignorance of the gauge kinetic function at $M_{\rm Pl}$, we take $m_{1/2}$ to be independent from $m_0 = m_{3/2}$.} Our aim is therefore not to constrain the flavor violating entries as functions of the sfermion masses, but rather to constrain the sfermion masses of the model using flavor observables, checking whether these constraints are competitive with direct LHC searches. To this end, we assume that the flavor symmetry is broken at a high scale of order $M_{\rm GUT}$, where the effective soft-breaking matrices are generated. These matrices must then be run using the MSSM renormalization group equations (RGE), in order to obtain the soft-breaking matrices at the electroweak scale and compared with the experimental constraints at low energies. The main effects of the RGE evolution are large contributions of order $\sim -2 m_{1/2}$ to the diagonal elements in the trilinear matrices of the first two generations, with slightly smaller contributions to the third generation (stop) entries. The diagonal elements of the soft-mass matrices receive a large gluino contribution of order $\sim 6 m_{1/2}^2$. On the other hand, off-diagonal entries in these matrices mostly remain unchanged by the running (possible exceptions are entries with $\order(1)$ Yukawa couplings)\cite{Falck:1985aa,Bertolini:1990if,Martin:1993zk,Yamada:1994id}. As an example of these ideas, we may apply the constraints provided by flavor observables to the toy $U(1)_f$ model of Section~\ref{sec:toy}. In this model, all squark soft mass matrices, $m_{\tilde Q}^2$, $m_{\tilde{\bar{u}}}^2$ and $m_{\tilde{\bar d}}^2$ have similar non-universal structures given by \eq{msoftU1}, while the trilinear couplings, $A_u$ and $A_d$ also have sizeable off-diagonal entries as displayed in \eq{trilinU1}. After RGE evolution, the corresponding matrices at the electroweak scale can be extracted, and the off-diagonal elements compared with the usual Mass Insertion (MI) bounds \cite{Gabbiani:1988rb,Hagelin:1992tc,Gabbiani:1996hi,Ciuchini:1998ix}. Taking a fixed squark mass scale, \eq{trilinU1} and \eq{msoftU1} give $(\delta^d_{12,13})_{\rm LL, RR} \simeq 2 \varepsilon^3/3\simeq 7.6 \times 10^{-3}$, $(\delta^d_{23})_{\rm LL, RR}\simeq 2 \varepsilon^2/3\simeq 3.4 \times 10^{-2}$, to be compared with the bounds, $(\delta^d_{12,13})_{\rm LL, RR}$ and $(\delta^d_{12,13})_{\rm LL, RR} \leq \cdots$ In case of LR transitions, our $U(1)$ model has a large right-handed mixing in the Yukawa matrices and therefore the largest mass insertions in this model are \begin{eqnarray} \nonumber & &(\delta^d_{31})_{\rm LR} \simeq 2 \varepsilon/6 m_b \tan \beta/ m_{3/2} \simeq 0.0225 (50/\tan \beta) (500 {\rm GeV }/m_{3/2}) \\ \nonumber & &(\delta^d_{32})_{\rm LL, RR}\simeq 0.05 (50/\tan \beta) (500 {\rm GeV }/m_{3/2}). \end{eqnarray} The relevant bounds in this case are $(\delta^d_{23,32})_{\rm LR} \leq 2 \times 10^{-2} (6 m_{3/2}^2/(500 {\rm GeV })^2)$, which, as we see, could be interesting in the case of large $\tan \beta$ and relatively low $m_{3/2}$ (taking into account the present LHC constraints on squark masses) and will be considered in a future, more phenomenological, work. With these constraints, it is clear that the best observables for this model are the ones associated to transitions between the first and second generations, i.e.: $\Delta m_K$ and, if we take into account possible $\mathcal{O}(1)$ phases in these matrices, $\varepsilon_K$ and $\varepsilon^\prime/\varepsilon$ \cite{Masiero:2000rg}. To show the power of flavor observables in this $U(1)_f$ model, we will simply take the constraints from $\Delta m_K$.\footnote{A full analysis using all available flavor observables is to appear in a future publication \cite{Das:2017unp}.} Although flavor symmetries fix the orders of magnitude of different entries in the soft-breaking matrices in powers of $\varepsilon$, unless we completely define the mediator sector, we cannot predict the $\order(1)$ coefficients. In particular, as we do not know the sign (phase) of these entries, both constructive or destructive interference with the SM contribution are possible. Taking a conservative approach following \cite{Gabbiani:1996hi}, we require that any supersymmetric contribution, (including both different mass insertions and additional supersymmetric particles such as the gluino and chargino), to a given observable must be smaller than the measured experimental value. In this way, we obtain the results given in Fig.~\ref{fig:fig04}. Here, we consider only the dominant contribution given by the gluino, with $(\delta_{12})_{\rm LL}\times (\delta_{12})_{\rm RR}$ interference. The region in red (darker shade) is excluded from $\Delta m_K$, while the region in grey (lighter rectangular shade) is ruled out from direct gluino searches \cite{Aad:2016jxj,Aad:2016qqk,Aad:2016eki,Aaboud:2016tnv,Aaboud:2016zdn,Khachatryan:2016kdk}. The contours in black give an estimate for the average squark masses, obtained from the approximate one-loop RGE relation $m_{\tilde q}^2 \sim 6 m_{1/2}^2 + m_{3/2}^2$. As can be seen from the figure, the experimental bounds from $\Delta m_K$ can be competitive with direct searches for a large range of gluino and gravitino masses for this simple $U(1)$ flavor symmetry. Taken in conjunction with the direct gluino bounds, the flavor constraints in the $U(1)_f$ model can also push up the lower bound for the gluino and squark masses as a function of $m_{3/2}$. The fact that the bounds are stronger for larger $m_{3/2}$ is simply due to the flavor-changing entries being proportional to $m_{3/2}$ and having taken the gluino mass independent from $m_{3/2}$. For the particular case of $m_{1/2}=m_{3/2}$ at $M_{\rm Pl}$, we have $m_{\tilde g}\simeq 2.7 m_{3/2}$ and thus flavor bounds would require $m_{\tilde g}, m_{\tilde q} \gtrsim 2.1$ TeV, improving significantly bounds from direct searches in the $U(1)_f$ scenario. These bounds would be much stronger if these off-diagonal entries had sizeable imaginary parts and we were to apply the limits from $\varepsilon_K$. \begin{figure}[htbp!] \begin{minipage}{0.46\textwidth} \centerline{\includegraphics[width=8cm,height=8cm]{Delta_F_2_v1.png}} \caption{$\Delta m_K$ exclusion plot for the toy $U(1)$ model of the previous section. Points in red (darker shade) exceed the current experimental bounds. The rectangle in gray (light rectangular shade) represents the direct bound on gluino masses from LHC searches and the black contours correspond to different values of the average squark masses. Although we have taken $\tan \beta =2$ in this figure, the constraints are largely independent of $\tan \beta$.} \label{fig:fig04} \end{minipage} \hfill \begin{minipage}{0.46\textwidth} \centerline{\includegraphics[width=8cm,height=8cm]{epskDmKsu3.png}} \caption{$\Delta m_K$ (red/dark gray) and $\varepsilon_K$ (green/light gray) exclusion plot for the $SU(3)_f$ model. Points in red (dark gray) or green (light gray) exceed the current experimental bounds. The rectangle in gray (shaded) represents the direct bound on gluino masses from LHC searches and the black contours correspond to different values of the average squark masses. Although we have taken $\tan \beta =2$ in this figure, the constraints are largely independent of $\tan \beta$.} \label{fig:fig05} \end{minipage} \end{figure} We can apply the same procedure to the $SU(3)_f$ model. In this case, as we have taken the left-handed mediator masses $M_L \gg M_u,M_d$, we can neglect the flavor non-universality in $m_{\tilde Q}^2$, considering only $m_{\tilde{\bar{d}}}^2$ and $m_{\tilde{\bar u}}^2$ apart from the trilinear couplings $A_u$ and $A_d$. Using the same reasoning as for the $U(1)$ model, the most sensitive observables are still $\Delta m_K$ and $\varepsilon_K$, although the bounds from $\Delta m_K$ are much weaker due to the absence of the left-handed mass insertions, which in the $U(1)$ model give the largest contribution to $\Delta m_K$ through a mixed term $(\delta_{12})_{\rm LL} (\delta_{12})_{\rm RR}$. The dominant contribution is now given by the gluino with $(\delta_{12})_{\rm LR}^2 + (\delta_{12})_{\rm RL}^2$ mass insertions. In this case, $\Delta m_K$ would exclude only a ``small'' region with $m_{\tilde g} \simeq m_{\tilde q} \lesssim 500$ GeV. However, if we assume that these flavor-changing entries have imaginary parts of $\order(1)$\cite{Botella:2004ks,Botella:1994cs,Santamaria:1993ah}, \footnote{Sizeable phases in these mass matrices are found in models of spontaneous CP violation in the flavor sector \cite{Ross:2004qn,Calibbi:2008qt,Calibbi:2009ja} which naturally explain the presence of phases in the CKM matrix. However, due to re-phasing freedoms, the imaginary parts are typically subleading.} we can apply the limits from $\varepsilon_K$. In this case, the bounds are much stronger and flavor limits can compete with direct LHC searches for the $SU(3)$ model as well. As we see, the $SU(3)_f$ model is safer than the $U(1)_f$ model, both due to the non-Abelian nature of the symmetry, which relates different generations, and to the small number of flavon insertions in the $SU(3)_f$ model, allowing flavor off-diagonal entries only at higher orders. Although these bounds are model (and mediator) dependent, similar searches, using a complete set of flavor observables, may be applied to any supersymmetric flavor model. A more complete analysis of these effects for different flavor symmetries will be presented in a future work \cite{Das:2017unp}. As we have shown for these simple models, these phenomenological studies may provide a very important tool in ruling out or discovering potential flavor symmetries. \section{Conclusions} \label{conclusions} The peculiar structure of the flavor sector remains one of the most puzzling and intriguing legacies of the SM. The question of whether these patterns arise from a deeper underlying theory, pointing the way to new physics, remains to be answered. Although the hope is that this will indeed be the case, it is clear that additional experimental inputs in the form of new observable flavor interactions would provide a clear boon towards unravelling this mystery. New flavor interactions inherent in supersymmetric theories can provide an excellent laboratory in which to probe models where this underlying theory is governed by a flavor symmetry. Under our assumptions that the soft-breaking terms respect the flavor symmetry and that SUSY breaking is primarily communicated to the visible fields by gravity, these new flavor structures are calculable and governed by the flavor symmetry and the mediator sector of the underlying theory. The large number of parameters in the MSSM is thus vastly reduced. The main result of this work is that even when the ultraviolet theory is flavor symmetric, the soft-terms of the effective theory below $\Lambda_f$ can be strongly non-universal. We have demonstrated this explicitly in the case of two specific models: one with an Abelian $U(1)$ symmetry, the other an $SU(3)$. As these effects are calculable, their phenomenological implications for flavor observables can in principle provide strong constraints on the parameter space of these models. In some cases, these constraints may be competitive with direct LHC searches. With the soft matrices given, indirect flavor measurements can provide a new tool to provide constraints on parameters like the gluino mass or the average scale of the squark masses. Unfortunately, these effects are model dependent, and an obvious extension of this work would be an application of these techniques to a representative set of popular flavor models available in the literature. This would require a more complete phenomenological analysis, taking into account all available flavor observables. In addition, although we have not specified the scale of flavor breaking, if the flavor symmetry is gauged and the scale of its breaking sufficiently light, one may also superimpose the constraints from the associated $Z^\prime$ boson, leading to a further restriction of the parameter space. We have also chosen to focus only on the quark sector, and it would be interesting to see whether these techniques can provide interesting constraints in lepton flavor models. In highlighting these new sources of flavor violation, we hope to provide a new tool for tackling the flavor puzzle in one of the most well studied frameworks for new physics, SUSY. \section*{Acknowledgments} The authors are grateful to A. Santamaria for useful discussions. This work has been partially supported under MEC and MINECO Grants FPA2011-23596, FPA2011-23897 and FPA2014-57816-P and by the ``Centro de Excelencia Severo Ochoa'' Programme under grant SEV-2014-0398. OV acknowledges partial support from the ``Generalitat Valenciana'' grant PROMETEOII/2013/017. All Feynman diagrams have been drawn using Jaxodraw\cite{Binosi:2003yf,Binosi:2008ig}. \bibliographystyle{JHEP}
\section{Introduction} In \cite{UltiAmilcar} some aspects of the relation between the $(p+2)$-banded matrices \begin{equation} \label{JGeneral} J = \left( \begin{array}{cccccc} a_{0,0} & 1 & & \\ a_{1,0} & a_{1,1} & 1 & \\ \vdots & \vdots & \ddots & \ddots \\ a_{p,0} &a_{p,1} & \cdots & a_{p,p} &1 & \\ 0& a_{p+1,1} & & \ddots& \ddots & \ddots\\ & 0 &\ddots \\ & &\ddots \\ \end{array} \right) \end{equation} and the integrable system \begin{equation} \dot{a}_{i,j} = \left(a_{i,i}-a_{j,j}\right)a_{i,j} +a_{i+1,j}-a_{i,j-1}\,,\qquad i,j=0,1,\ldots \label{sistema} \end{equation} were studied. In particular, a method for constructing solutions of this system was given in the case $p=2$. This method is based in the extension of the concept of Darboux transformation, which can be consulted in \cite{Bueno} for the classical tridiagonal case $p=1$. Due to the matrical interpretation of this method, the concept of transform of Darboux was extended in \cite{UltiAmilcar} for an arbitrary $p\in \mathbb{N}$ and a banded matrix $J$ as in (\ref{JGeneral}). However, just in \cite{Dani} the existence of such kind of generalized transformation was determined. As a consequence, now we are under the appropriate conditions to generalize the method for constructing solutions of (\ref{sistema}), given in \cite{UltiAmilcar} in the case $p=2$, to any $p\in \mathbb{N}$. This is precisely the object of this paper. For simplicity of the reading, we recall here some concepts introduced in \cite{UltiAmilcar} and used in \cite{Dani} which will be used in our work. The system (\ref{sistema}) is usually called full Kostant Toda lattice. Here and in the sequel, the dot means differentiation with respect to $t\in \mathbb{R}$. However, in most of the cases we suppress the explicit $t$-dependence for brevity. \begin{defi} The infinite matrix $J$ is called a solution of (\ref{sistema}) if: \begin{enumerate} \item For each $j=0,1\ldots $ the entries $a_{i,j}=a_{i,j}(t)\,,\,i=j,j+1,\ldots, j+p\,,$ of $J$ are continuous functions with complex values defined in an open interval $\mathcal{I}_j$ such that \begin{equation} \bigcap_{j=0}^{N}\mathcal{I}_j \neq \emptyset \quad \text{for any } N\in \mathbb{N}\,. \label{intervalos1} \end{equation} \item The entries $a_{i,j}$ of $J$ verify (\ref{sistema}). \end{enumerate} \end{defi} An important tool for us is the called discrete Korteweg de Vries (KdV) equation, \begin{equation} \label{VolterraGeneral} \dot \gamma_n=\gamma_{n}\left(\sum_{i=1}^{p}\gamma_{n+i}-\sum_{i=1}^{p}\gamma_{n-i}\right)\,,\quad n\in \mathbb{N}\,. \end{equation} This system is an extension of the Volterra lattices studied in \cite{Peherstorfer} and \cite{Simon}. As in (\ref{sistema}), the matrices theory is used to analyze the KdV equations. The matrix associated with this system is $$\Gamma = \left( \begin{array}{ccccc} 0 & 1 & & \\ 0 & 0 & 1 & \\ \vdots & &\ddots & \ddots \\ 0 & \vdots&& \\ \gamma_1 & 0 & & \\ 0& \gamma_2 & \ddots \\ & \ddots &\ddots \\ \end{array} \right)\,. $$ Also we assume that the entries $\gamma_j=\gamma_j(t)\,,\,j\in \mathbb{N}\,,$ of $\Gamma$ are continuous functions with complex values defined in the open intervals $\mathcal{O}_j$ such that \begin{equation} \bigcap_{j=0}^{N}\mathcal{O}_j \neq \emptyset \,, \text{for any } N\in \mathbb{N}\,. \label{intervalos2} \end{equation} \begin{defi} \label{definition2} The matrix $\Gamma$ is called a solution of (\ref{VolterraGeneral}) if the sequence $\{\gamma_n\}$ verify (\ref{VolterraGeneral}) and (\ref{intervalos2}). \end{defi} With respect to the extension of the Darboux transformation, the following definition was introduced in \cite{UltiAmilcar} and analyzed in \cite{Dani}. As usual, here and in the sequel $M_n$ denotes the finite matrix formed by the first $n$ rows and columns of the infinite matrix $M$. \begin{defi} Let $B=\left(b_{ij}\right)\,,\,i,j\in \mathbb{N}\,,$ be a lower Hessenberg $(p+2)$-banded matrix, \begin{equation} \label{B} B = \left( \begin{array}{cccccc} b_{0,0} & 1 & & \\ b_{1,0} & b_{1,1} & 1 & \\ \vdots & \vdots & \ddots & \ddots \\ b_{p,0} &b_{p,1} & \cdots & b_{p,p} &1 & \\ 0& b_{p+1,1} & & \ddots& \ddots & \ddots\\ & 0 &\ddots \\ & &\ddots \\ \end{array} \right) \end{equation} such that $\det(B_n) \neq 0$ for any $n\in \mathbb{N}$. Let $L\,,\,U$ be two lower and upper triangular matrices, respectively, such that the entries in the diagonal of $L$ are $l_{ii}=1$ and $B=LU$ is the (unique) $LU$ factorization of $B$ in these conditions. Assume $L=L^{(1)}L^{(2)}\ldots L^{(p)}$, where \begin{equation} U = \left( \begin{array}{cccccc} \gamma_1 & 1 & \\ & \gamma_{p+2} & 1 \\ & &\gamma_{2p+3} & \ddots \\ &&& \ddots\\ \end{array} \right),\, L^{(i)} = \left( \begin{array}{cccccc} 1 & & \\ \gamma_{i+1} & 1 & \\ & \gamma_{p+i+2} & 1 \\ &&\gamma_{2p+i+3} &\ddots\\ &&&\ddots \end{array} \right),\,i=1,\ldots,p\,. \label{Darboux2} \end{equation} Then the matrical decomposition \begin{equation} L^{(1)}L^{(2)}\cdots L^{(p)}U \label{(8)} \end{equation} is called a Darboux factorization of $B$. Moreover, any circular permutation \begin{equation} L^{(i+1)}\cdots L^{(p)}UL^{(1)}\cdots L^{(i)}\,,\quad i=1,2,\ldots, p\,, \label{9} \end{equation} of (\ref{(8)}) is called a Darboux transformation of $B$. (We understand $UL^{(1)}\cdots L^{(p)}$ in (\ref{9}) when $i=p$.) \end{defi} The main goal of this paper is to obtain some solutions of (\ref{sistema}) using the Darboux transformations of $J-CI$ under certain conditions for $C\in \mathbb{C}$. More precisely, our main result is the following. \begin{teo}\label{teorema1} Let $J$ be a $(p+2)$-banded matrix with the structure given in (\ref{JGeneral}). Assume that $J$ is a solution of (\ref{sistema}) verifying $a_{p+i,i}\neq 0\,,\,i=0,1,\ldots$ and let $C\in \mathbb{C}$ be such that $\det(J_n-CI_n)\neq 0$ for any $n\in \mathbb{N}$. Then there exist $p$ solutions $J^{(1)},\ldots, J^{(p)}$ of (\ref{sistema}) such that the following relations hold. \begin{equation} J^{(i)}=CI+L^{(i+1)}\cdots L^{(p)}UL^{(1)}\cdots L^{(i)}\,,\quad i=0,1,2,\ldots,p \label{7} \end{equation} (assuming $J^{(0)}=J$), where $L^{(i)}\,,\,i=1,2,\ldots,p\,,$ and $U$ have respectively the structure given in (\ref{Darboux2}). Moreover the entries of $U,\,L^{(1)}\,,\cdots \,,L^{(p)}$ provide the sequence $\{\gamma_n\}$, which defines a solution $\Gamma$ of (\ref{VolterraGeneral}). \end{teo} In the development of the paper it is convenient to have another expression of (\ref{7}), which is obtaining when each entry of the matrix $J^{(i)}$ is given in terms of the entries of matrices of $U,\,L^{(1)}\,,\cdots \,,L^{(p)}$. This is, if we write \begin{equation} \label{iMatriz} J^{(j)} = \left( \begin{array}{cccccc} a^{(j)}_{0,0} & 1 & & \\ a^{(j)}_{1,0} & a^{(j)}_{1,1} & 1 & \\ \vdots & \vdots & \ddots & \ddots \\ a^{(j)}_{p,0} &a^{(j)}_{p,1} & \cdots & a^{(j)}_{p,p} &1 & \\ 0& a^{(j)}_{p+1,1} & & \ddots& \ddots & \ddots\\ & 0 &\ddots \\ & &\ddots \\ \end{array} \right)\,,\quad j=0,1,2,\ldots,p\,, \end{equation} then for each $j=0,1,\ldots, p$ from the products on the right hand side of (\ref{7}) we arrive to \begin{eqnarray} a^{(j)}_{i,i} & = & C+ \sum_{s=j+1}^{j+p+1} \gamma_{(i-1)p+i+s}\,,\label{10}\\ a^{(j)}_{i+k,i} & = & \sum_{E^{(j)}_{k}} \gamma_{(i-1)p+i_1+i}\gamma_{ip+i_2+i}\cdots \gamma_{(k+i-1)p+i_{k+1}+i}\,,\label{11}\\ && \quad \quad \quad i=0,1,\ldots\,,\quad k=1,2,\ldots\,,p\,. \nonumber \end{eqnarray} (we recall that $J^{(0)}=J$ and consequently $a^{(0)}_{s,r}=a_{s,r}$). The sum in (\ref{11}) is extended to the set of indices $E^{(j)}_{k}$ defined as $$E^{(j)}_{k}=\{(i_1,\ldots ,i_{k+1}):j+k+1\leq i_{k+1}\leq\cdots \leq i_1\leq j+p+1\}.$$ Frequently, relations (\ref{10})-(\ref{11}) (and by extension (\ref{7})) are known as {\it B\"{a}cklund transformations} associated with (\ref{sistema}) (see \cite{Simon}). We underline the relevance of the Darboux factorization (\ref{(8)}) for obtaining the new solutions $J^{(i)},\,i=1,\ldots, p,$ given in (\ref{7}). In this paper we study this problem, given a method to arrive to (\ref{(8)}) from $J$. In Section \ref{auxiliares} some tools for our work are presented and the main auxiliary results are introduced. In Section \ref{construction} an iterative method for obtaining the Darboux factorization (\ref{(8)}) is studied. Finally, the proof of Theorem 1 is in Section \ref{demostracion}. \section{Auxiliary results}\label{auxiliares} An important tool in our approach is the family of polynomial $\{P_n(z)\}=\{P_n(t,z)\}\,,\,n\in \mathbb{N}\,,$ associated with the matrix $J$. This family is defined by the following recurrence relation. \begin{equation}\label{polinomiosp} \mbox{\hspace{-.8cm}} \left. \begin{array}{r} \displaystyle\sum_{i=n-p}^{n-1}a_{n,i}P_{i}(z)+(a_{n,n}-z)P_{n}(z)+P_{n+1}(z) =0 ,\quad n=0,1,\ldots \\ P_0(z) \equiv 1 \, ,\quad P_{-1}(z) =\cdots =P_{-p}(z)=0\,. \end{array} \right\} \end{equation} If $J$ is a solution of (\ref{sistema}) then each polynomial $P_n=P_n(t,z)$ is a continuous function on $t$. Furthermore, in Lemma 2 of \cite{UltiAmilcar} was proved \begin{equation} \label{derivada} \dot P_n(z)=-\sum_{i=n-p}^{n-1}a_{n,i}P_i\,,\quad n=0,1,\ldots \,. \end{equation} As a consequence of the above comments, for each $n=0,1,\ldots $ we have that $\dot P_n(z)$ is also a continuous function on $t$ in some open interval of $\mathbb{R}$. The following lemma is obtained from (\ref{polinomiosp}) and (\ref{derivada}). \begin{lem} \label{lema1} If $J$ is a solution of (\ref{sistema}) then we have \begin{equation}\label{breve} \dot P_n(z)=(a_{n,n}-z)P_{n}(z)+P_{n+1}(z)\,,\quad n=0,1,\ldots \,. \end{equation} \end{lem} On the other hand, it is well known that for each matrix $J$ and $C\in \mathbb{C} $ in the conditions of Theorem \ref{teorema1} there exists the $LU$ factorization of $J-CI$. This is, there exists a banded lower triangular matrix \begin{equation}\label{1-} L= \left( \begin{array}{ccccccc} 1\\ l_{1,1} & 1 & & \\ \vdots &\ddots &\ddots\\ l_{p,1} & l_{p,2} & \dots & 1 && \\ 0 & l_{p+1,2} & \ddots & & \ddots \\ & 0 &\ddots &\ddots &\ddots \\ \end{array} \right)\,, \end{equation} and there exists an upper triangular matrix $U=U(t)$ as in (\ref{Darboux2}) such that \begin{equation} J -CI=L U , \label{LU} \end{equation} being \begin{equation} J_n -CI_n=L_n U_n \label{LUn} \end{equation} for each $n\in \mathbb{N}$ (see for instance \cite{Gantmacher}). The following auxiliary result also will be used in the proof of Theorem \ref{teorema1}. \begin{lem} \label{lema2} In the above conditions, the entries $\gamma_{np+n+1}\,,n=0,1,\ldots, $ of $U$ verify (\ref{VolterraGeneral}). \end{lem} \noindent Proof.- It is obvious that the recurrence relation (\ref{polinomiosp}) can be rewritten as $$ (J_n-zI_n)\left( \begin{array}{c} P_0(z)\\P_1(z)\\\vdots \\P_{n-1}(z) \end{array} \right)=\left( \begin{array}{c} 0\\0\\\vdots \\-P_{n}(z) \end{array} \right)\,. $$ In particular, for $z=C$ from (\ref{LUn}) we have $$ L_nU_n\left( \begin{array}{c} P_0(C)\\P_1(C)\\\vdots \\P_{n-1}(C) \end{array} \right)=\left( \begin{array}{c} 0\\0\\\vdots \\-P_{n}(C) \end{array} \right)\,. $$ Then, using the fact that $L$ is a triangular matrix whose diagonal entries are 1, $$ U_n\left( \begin{array}{c} P_0(C)\\P_1(C)\\\vdots \\P_{n-1}(C) \end{array} \right)=L_n^{-1}\left( \begin{array}{c} 0\\0\\\vdots \\-P_{n}(C) \end{array} \right)=\left( \begin{array}{c} 0\\0\\\vdots \\-P_{n}(C) \end{array} \right)\,. $$ This is, taking into account the structure of $U$ (see (\ref{Darboux2})), \begin{equation} \gamma_{np+n+1}=-\frac{P_{n+1}(C)}{P_n(C)}\,,\quad n=0,1,\ldots \label{coci} \end{equation} Taking derivatives in (\ref{coci}) we arrive to $$ \dot\gamma_{np+n+1}=-\frac{P_n(C)}{P_{n-1}(C)}\left(\frac{\dot P_n(C)}{P_{n}(C)}-\frac{\dot P_{n-1}(C)}{P_{n-1}(C)} \right)\,. $$ From this and Lemma \ref{lema1}, $$ \dot\gamma_{np+n+1}=\gamma_{np+n+1}\left(a_{n,n}-a_{n-1,n-1}-\gamma_{np+n+1}+\gamma_{(n-1)p+n}\right)\,. $$ Then since (\ref{10}) (with $j=0$) we arrive to (\ref{VolterraGeneral}). \hfill $\Box$ The next result guaranties the existence of the Darboux transformation, which is an important tool in the proof of Theorem \ref{teorema1}. \begin{lem}[Theorem 1 in \cite{Dani}] \label{teorema2} Let $L$ be a lower triangular matrix as in (\ref{1-}) with complex entries, such that $l_{p+j,j+1}\ne 0$ for each $j=0,1,\ldots $ Then there exists a set of $p(p-1)/2$ complex numbers \begin{equation} \left. \begin{array}{ccccc} \gamma_2, & \gamma_{p+3} &\cdots & \cdots &\gamma_{(p-1)p},\\ \gamma_3, & \gamma_{p+4} &\cdots & \gamma_{(p-2)p}, \\ \vdots & \vdots &\adots \\ \gamma_{p-1},& \gamma_{2p},\\ \gamma_p \end{array} \right\} \label{puntos} \end{equation} and there exist $p$ triangular matrices $L^{(i)},\,i=1,\ldots,p\,$, as in (\ref{Darboux2}) such that \begin{equation} L=L^{(1)}L^{(2)}\cdots L^{(p)}\,, \label{(b)} \end{equation} where $\gamma_{k(p+1)+i+1}\neq 0$ for $i=1,2,\ldots , p$ and $k=0,1,\ldots $ Moreover, the factorization (\ref{(b)}) is unique for each fixed set of points (\ref{puntos}) . \end{lem} In \cite{Dani} also the following result is used. Here, the necessary conditions to obtain the set (\ref{puntos}) are explicit. \begin{lem}[Theorem 2 in \cite{Dani}] \label{teoremaDani} Let us consider a $(p+1)$-banded lower triangular matrix $L$ as in (\ref{1-}) such that $l_{p+j,j+1}\ne 0$ for each $j=0,1,\ldots $ Assume $\alpha_1,\alpha_2,\ldots ,\alpha_{p-1}\in \mathbb{C}$ such that \begin{equation} \sum_{s=0}^{p-1}(-1)^s \alpha_{p-s}\alpha_{p-s+1}\cdots \alpha_{p-1}C_k^{(s)}\ne 0\,,\quad \text{for all } k=1,2,\ldots, \label{condition} \end{equation} where $C_1^{(s)}:=l_{p-s-1,1}$ and \begin{equation}\label{*} C_k^{(s)}:=\left| \begin{array}{lcccl} l_{p-s-1,1}&l_{p-s-1,2}&\cdots& \cdots&l_{p-s-1,k}\\ l_{p,1}&l_{p,2}&\ddots &\ddots &l_{p,k}\\ 0 & l_{p+1,2}&\ddots &\ddots &l_{p+1,k}\\ \vdots & \ddots & \ddots& \ddots &\vdots\\ 0& \cdots & 0 & l_{p+k-2,k-1}&l_{p+k-2,k}\\ \end{array} \right|\,,\quad k\geq 2\,, \end{equation} for each $s=0,1,\ldots , p-1$. (We understand $\alpha_{p-s}\alpha_{p-s+1}\cdots \alpha_{p-1}=1$ for $s=0$ and $l_{i,j}=0$ for $j>i+1$.) Then there exists a bi-diagonal matrix \begin{equation} D^{(1)} = \left( \begin{array}{cccccc} 1 & & \\ \alpha_{1} & 1 & \\ & \alpha_{2} & 1 \\ &&\alpha_{3} &\ddots\\ &&&\ddots \end{array} \right) \label{LL} \end{equation} and there exists a $p$-banded lower triangular matrix \begin{equation}\label{A} A= \left( \begin{array}{ccccccc} 1\\ \delta_{2,1} & 1 & & \\ \vdots &\ddots &\ddots\\ \delta_{p,1} & \delta_{p,2} & \dots & 1 && \\ 0 &\delta_{p+1,2} & \ddots & & \ddots \\ & 0 &\ddots &\ddots &\ddots \\ \end{array} \right) \end{equation} such that $\delta_{p+k-1,k}\neq 0\,,\, k=1,2,\ldots \,,$ and \begin{equation} L=D^{(1)}A\,. \label{(a)(a)} \end{equation} Moreover, if the $p$ entries $\alpha_1,\alpha_2,\ldots ,\alpha_{p-1}\in \mathbb{C}$ of $D^{(1)}$ are fixed verifying (\ref{condition}), then (\ref{(a)(a)}) is the unique factorization of $L$ in these conditions. \end{lem} Lemma \ref{teorema2} in \cite{Dani} was obtained as a corollary of Lema \ref{teoremaDani}. The key of this fact is the next lemma, which we use en the proof of our main result. Although the idea of the proof of Lemma \ref{lema5} is implicitly contained in \cite{Dani}, we include it here for an easier reading. \begin{lem} \label{lema5} Let $s\in \{0,1,\ldots , p-2\}$ be and take $N\in \mathbb{N}$. Let us consider the triangular matrix \begin{equation} T^{(s)}= \left( \begin{array}{ccccccc} 1\\ m^{(s)}_{1,1} & 1 & & \\ \vdots &\ddots &\ddots\\ m^{(s)}_{p-s,1} & m^{(s)}_{p-s,2} & \dots & 1 && \\ 0 &m^{(s)}_{p-s+1,2} & \ddots & & \ddots \\ & 0 &\ddots &\ddots &\ddots \\ \end{array} \right)\,, \label{otro26} \end{equation} where $m^{(s)}_{p-s+j,j+1}\neq 0\,,\,j=0,1,\ldots$. Then there exist $p-s-1$ complex values \begin{equation} \label{D} \alpha^{(s)}_{i}\neq 0\,, i=1,2,\ldots,p-s-1\,, \end{equation} such that \begin{equation} \sum_{j=0}^{p-s-1}(-1)^j \alpha^{(s)}_{p-s-j}\alpha^{(s)}_{p-s-j+1}\cdots \alpha^{(s)}_{p-s-1}R_k^{(s,j)}\ne 0 \label{DD} \end{equation} for each $k=1,2,\ldots,N ,$ where $R_1^{(s,r)}=m^{(s)}_{p-s-r-1,1}$ and \begin{equation}\label{*} R_k^{(s,r)}:=\left| \begin{array}{lllcc} m^{(s)}_{p-s-r-1,1}&m^{(s)}_{p-s-r-1,2}&\cdots& \cdots&m^{(s)}_{p-s-r-1,k}\\ m^{(s)}_{p-s,1}&m^{(s)}_{p-s,2}&\cdots& \cdots&m^{(s)}_{p-s,k}\\ 0 & m^{(s)}_{p-s+1,2}&\ddots &\ddots &m^{(s)}_{p-s+1,k}\\ \vdots & \ddots & \ddots& \ddots &\vdots\\ 0& \cdots & 0 & m^{(s)}_{p-s+k-2,k-1}&m^{(s)}_{p-s+k-2,k}\\ \end{array} \right|\,,\quad k\geq 2\,. \end{equation} \end{lem} \noindent Proof.- As in the proof of Theorem 2 in \cite{Dani}, we consider the hyperplanes $\pi_k\,,\,k=1,2,\ldots, N,$ in $\mathbb{R}^{p-s-1}$ given by the equation of the form \begin{equation} R_k^{(s,1)}x_1+ R_k^{(s,2)}x_2+\cdots +R_k^{(s,p-s-1)}x_{p-s-1}=R_k^{(s,0)} \label{AA} \end{equation} and also the hyperplanes $\Psi_i$ of equation $x_i=0\,,\,i=1,\ldots, p-s-1$. We define $\pi:=\bigcup_{k=1}^{N}\pi_k$ and $\Psi:=\bigcup_{i=1}^{p-s-1}\Psi_i$. Then, if $\mu$ is the Lebesgue measure in $\mathbb{R}^{p-s-1}$, it is well known that $\mu(\pi\cup \Psi)=0$ (see \cite{Taylor} for details). As a consequence, there exists a nonnumerable set of points $X\in \mathbb{R}^{p-s-1}$ such that $ X=(x_1,\ldots ,x_{p-s-1})\notin \pi\cup\Psi. $ We choose one of these points and we define iteratively \begin{equation} \alpha^{(s)}_{p-s-j}= \left\{\begin{array}{ccl} x_1 &,& \text{ if }j=1\\ \\ \displaystyle\frac{(-1)^{j+1}x_j}{\alpha^{(s)}_{p-s-j+1}\alpha^{(s)}_{p-s-j+2}\ldots \alpha^{(s)}_{p-s-1}} & , & \text{ if }j=2,\ldots ,p-s-1\,. \end{array} \right. \label{BB} \end{equation} Note that $\alpha^{(s)}_{1},\ldots , \alpha^{(s)}_{p-s-1}$ are well defined because $X\notin \Psi$ and consequently $x_j\neq 0$ for each $j=1,\ldots, p-s-1$. Therefore $\alpha^{(s)}_{i}\ne 0\,,\,i=1,\ldots, p-s-1$. From (\ref{AA}) and (\ref{BB}) we arrive to (\ref{DD}). $\hfill \Box$ \section{Construction of the matrices $L^{(i)},\,i=1,\ldots,p\,$}\label{construction} In the conditions of Lemma \ref{teorema2}, from the set of data (\ref{puntos}) it is possible to build $L^{(1)},\ldots , L^{(p)}$ which are the factors in (\ref{(b)}). With this purpose we will use Table \ref{tabla}. From the Backl\"{u}nd transformation (\ref{11}) (for $j=0$) it is easy to arrive to \begin{eqnarray} \delta^{(i)}_{k}\gamma_{(k+i+1)p+i}& = &a_{k+i+1,i-1} - \sum_{ \widetilde{E}^{(0)}_{k+2}} \gamma_{(i-2)p+i+i_1-1}\gamma_{(i-1)p+i+i_2-1}\cdots \gamma_{(k+i)p+i+i_{k+3}-1}\nonumber\\ & &i\in \mathbb{N},\quad k=-1,0,1,\ldots , p-2\,, \label{(a)} \end{eqnarray} where \begin{equation} \delta^{(i)}_{k}=\gamma_{(i-1)p+i}\gamma_{ip+i}\cdots \gamma_{(k+i)p+i} \label{20} \end{equation} and \begin{equation} \widetilde{E}^{(0)}_{k+2}=\{(i_1,\ldots ,i_{k+3}):k+3\leq i_{k+3}\leq\cdots \leq i_1\leq p+1\,,i_{k+3}<p+1\}. \label{3434} \end{equation} We remark that the subsequence $\{\gamma_{mp+m+1}\}\,,\,m\in \mathbb{N}\,,$ in (\ref{(a)})-(\ref{20}) is known and given in (\ref{coci}). This subsequence of $\{\gamma_n\}$ constitutes the first row of Table \ref{tabla} and defines the matrix $U$. With the goal to complete de rest of the $\gamma$'s, the main idea is to obtain $\gamma_{(k+i+1)p+i}$ for $k=-1,0,\ldots, p-2$, iteratively for each fixed $i\in \mathbb{N}$. Firstly we take $i=1$ in (\ref{(a)}). This is, \begin{eqnarray} \delta^{(1)}_{k}\gamma_{(k+2)p+1}& = &a_{k+2,0} - \sum_{ \widetilde{E}^{(0)}_{k+2}} \gamma_{-p+i_1}\gamma_{i_2}\gamma_{p+i_3}\cdots \gamma_{(k+1)p+i_{k+3}}\,,\nonumber\\ k&= &-1,0,1,\ldots , p-2\,, \label{(c)} \end{eqnarray} and $ \delta^{(1)}_{k}=\gamma_{1}\gamma_{p+1}\gamma_{2p+1}\cdots \gamma_{(k+1)p+1}. $ We note that $\gamma_{-p+i_1}=0$ when $i_1\neq p+1$ in the sum of (\ref{(c)}). Therefore this sum can be rewritten extended to $ \widetilde{\widetilde{E}}_{k+2} :=\{(i_2,\ldots ,i_{k+3}):k+3\le i_{k+3}\le\cdots \le i_2 \le p+1\,,i_{k+3}<p+1\}$. This is, \begin{equation} \delta^{(1)}_{k}\gamma_{(k+2)p+1}=a_{k+2,0} - \gamma_1\sum_{ \widetilde{\widetilde{E}}_{k+2}} \gamma_{i_2}\gamma_{p+i_3}\cdots \gamma_{(k+1)p+i_{k+3}}\,. \label{(d)} \end{equation} For $k=-1$ we have $\delta^{(1)}_{-1}=\gamma_1$ and since (\ref{(d)}) we see $$ \gamma_{p+1}=\frac{a_{1,0}}{\gamma_1} - \sum_{ j=2}^{p} \gamma_{j}\,. $$ Now we can calculate $\delta^{(1)}_{0}=\gamma_1\gamma_{p+1}$. Taking $k=0$ in (\ref{(d)}), $$ \gamma_{2p+1}=\frac{a_{2,0}}{\delta^{(1)}_{0}} -\frac{1}{\gamma_{p+1}} \sum_{ \widetilde{\widetilde{E}}_{2} } \gamma_{i_2}\gamma_{p+i_3}\,. $$ In this way, in $p$ steps given for $k=-1,0,\ldots, p-2$ we obtain the entries $$ \gamma_{p+1},\,\gamma_{2p+1},\, \ldots ,\gamma_{p^2+1},\, $$ corresponding to the matrices $L^{(p)},\,L^{(p-1)},\ldots , L^{(1)}$ respectively (see (\ref{Darboux2})). These values of $\gamma$'s constitute the secondary diagonal in Table \ref{tabla}. Note that in the step $k+2$ it is possible to obtain $\gamma_{(k+2)p+1}$ in (\ref{(d)}) because the entries $\gamma_{i_2},\,\gamma_{p+i_3},\, \ldots ,\gamma_{(k+1)p+i_{k+3}}$ in the right hand side are in the upper triangular part of Table \ref{tabla}, over the secondary diagonal. In fact $\gamma_{sp+i_{s+2}}$ is in the column $s+1$, including the secondary diagonal, for $s=0,1,\ldots , k$, because $i_{s+2}\leq p+1$. The last factor, $\gamma_{(k+1)p+i_{k+3}}$, is in the column $k+2$ but $i_{k+3}\leq p$ and this factor is not in the secondary diagonal, whose entry $\gamma_{(k+1)p+(p+1)}$ is being obtained in this step. We will iterate the above procedure for constructing any parallel diagonal $$ \gamma_{ip+i},\,\gamma_{(i+1)p+i},\, \ldots ,\gamma_{(p+i-1)p+i} $$ in Table \ref{tabla}. Assume that we have constructed the parallel diagonals \begin{equation} \gamma_{sp+s},\,\gamma_{(s+1)p+s},\, \ldots ,\gamma_{(p+s-1)p+s}\,,\quad s=1,2,\ldots,i-1\,. \label{(f)} \end{equation} Then we take $k=-1$ in (\ref{20}) and we have $ \delta_{-1}^{(i)}=\gamma_{(i-1)p+i}, $ which is an entry of $U$. Therefore $\gamma_{ip+i}$ can be obtained from (\ref{(a)}) when $k=-1$. In general, for each $k\in \{-1,0,\ldots,p-2\}$ we can obtain $=\gamma_{(k+i+1)p+i}$ from (\ref{(a)}), because for this value of $k$ we have that $\delta_{k}^{(i)}$ is known in the previous step. As in the case $i=1$, the factors $\gamma_{(i-2)p+i+i_1-1},\,\gamma_{(i-1)p+i+i_2-1}\,,\ldots , \gamma_{(k+i)p+i+i_{k+3}-1}$ on the right hand side of (\ref{(a)}) are the entries of matrices $L^{(j)},\,j=1,\ldots,p\,$, corresponding to the upper triangular part of Table \ref{tabla}, which are known from the previous steps. In this form, the parallel diagonal $\gamma_{(k+i+1)p+i}\,,k=-1,0,\ldots, p-2\,,$ is obtained, corresponding with the value $s=i$ in (\ref{(f)}). \begin{landscape} \begin{table} \begin{tabular}{l|lllllllllll} $U$ & $ \gamma_{1}$ & $\gamma_{p+2}$ & $\cdots$ & $\gamma_{mp+(m+1)}$ & $\cdots$ & $\gamma_{(p-3)p+(p-2)}$ & $\gamma_{(p-2)p+(p-1)}$& $\cdots$ & $\gamma_{(p+i-1)p+(i-1)} \cdots$\\\\ \hline\\ $L^{(1)}$&$\gamma_{2}$ & $\gamma_{p+3}$ & $\cdots$ & $\gamma_{mp+(m+2)}$ & $\cdots$ & $\gamma_{(p-3)p+(p-1)}$ & $\gamma_{(p-2)p+p}$& $\cdots$ & $\boldsymbol{\gamma_{(p+i-1)p+i}}$\\\\ $L^{(2)}$&$\gamma_{3}$ & $\gamma_{p+4}$ & $\cdots$ & $\gamma_{mp+(m+3)}$ & $\cdots$ & $\gamma_{(p-3)p+p}$ & $\cdots$ & $\boldsymbol{\gamma_{(p+i-2)p+i}}$\\\\ \vdots & \vdots &\vdots & &\vdots & \\\\ $L^{(p-m-1)}$&$\gamma_{p-m}$ & $\gamma_{2p-m+1}$ & $\cdots$ & $\gamma_{(m+1)p}$ & $\cdots$ & $\boldsymbol{\gamma_{(m+i+1)p+i}}$\\\\ $\vdots$ & $\vdots$ &$\vdots$ & \\\\ $L^{(p-2)}$&$\gamma_{p-1}$ & $\gamma_{2p}$ & $\cdots$ & $\boldsymbol{\gamma_{(i+2)p+i}}$\\\\ $L^{(p-1)}$&$\gamma_{p}$ & $\cdots$ & $\boldsymbol{\gamma_{(i+1)p+i}}$\\\\ $L^{(p)}$&$\cdots$ & $\boldsymbol{\gamma_{ip+i}}$ \end{tabular} \caption{Constructing $L^{(1)},\ldots , L^{(p)}$} \label{tabla} \end{table} \end{landscape} \section{Proof of Theorem \ref{teorema1}}\label{demostracion} If $J$ and $C$ verify the conditions of the statement in Theorem \ref{teorema1}, then (\ref{LU}) holds. Moreover for each $N\in \mathbb{N}$ there exists some open interval $\mathcal{I}_N\neq \emptyset\,,\, \mathcal{I}_N\subset \mathbb{R}\,,$ such that the entries $\gamma_{ip+i+1}(t)$ of $U$ (see (\ref{Darboux2})) and the entries $l_{i,j}(t)$ of $L\,,\,i,j\leq N\,,$ (see (\ref{1-})) are continuous functions on $\mathcal{I}_N$. In fact, these entries can be expressed in terms of products and sums of the entries of $J-CI$, which are continuous functions (see \cite{Isaacson} for instance). We assume a fixed $N\geq p-1$ in the sequel for convenience, and we set $t_0\in\mathcal{I}_N$. In \cite{Dani}, Lemma \ref{teorema2} and the factorization (\ref{(b)}) were proved for a fixed matrix $L$ that could not depend on $t\in \mathbb{R}$. Also Lemma \ref{teoremaDani} was proved in \cite{Dani} for this kind of fixed matrices. Here, we need to extend these results for our matrix $L$. In other words, we want to prove that the first entries of the factors $L^{(i)},\,i=1,\ldots,p,$ in (\ref{(b)}) are defined in some open interval $\mathcal{I}$ such that $t_0\in \mathcal{I}\subset \mathbb{R}$. With this purpose we will apply Lemma \ref{lema5} successively for $s=0,1,\ldots ,p-2$. In the first place we take $s=0$ and $T^{(0)}=L(t_0)$ in (\ref{otro26}). Then there exist $\alpha_1^{(0)},\ldots, \alpha_{p-1}^{(0)}$ verifying (\ref{DD}), this is \begin{equation} \sum_{j=0}^{p-1}(-1)^j \alpha^{(0)}_{p-j}\alpha^{(0)}_{p-j+1}\ldots \alpha^{(0)}_{p-1}R_k^{(0,j)}(t_0)\ne 0\,,\quad k=1,\ldots, N. \label{otro37} \end{equation} For each $i\in \{1,2,\ldots, p-1\}$ we consider the following initial value problem, \begin{equation} \left. \begin{array}{lcl} \dot{\gamma}_{(i-1)p+(i+1)}(t) & = & \gamma_{(i-1)p+(i+1)}(t)\left( D_{i}^{(0)}(t)-\gamma_{(i-1)p+(i+1)}(t)\right)\\\\ \gamma_{(i-1)p+(i+1)}(t_0) & = & \alpha_i^{(0)} \end{array} \right\} \label{F} \end{equation} being $ D_{i}^{(0)}=a_{i,i}-a_{i-1,i-1}+\gamma_{(i-2)p+i}\,. $ We analyze (\ref{F}) iteratively. If $i=1$ then $D_{1}^{(0)}=a_{1,1}-a_{0,0}$ and it is well known that (\ref{F}) has a unique solution $\gamma_2(t)$ in some open interval $\mathcal{I}^{(0)}_1$ containing $t_0$ (see \cite{Dou} for details). If $i=2$ then $D_{2}^{(0)}=a_{2,2}-a_{1,1}+\gamma_2$ is defined in $\mathcal{I}^{(0)}_1$ and the solution $\gamma_{p+3}$ is defined in some open interval $\mathcal{I}^{(0)}_2$ containing $t_0$, being $\mathcal{I}^{(0)}_2 \subset \mathcal{I}^{(0)}_1$. Iterating this procedure, suppose that $\gamma_2, \gamma_{p+3},\ldots , \gamma_{(j-1)p+(j+1)}\,,\,j<p-1\,,$ are the solutions of (\ref{F}) which are continuous functions defined in some open interval $\mathcal{I}^{(0)}_j$ containing $t_0$. If $i=j+1$ then $D_{i}^{(0)}=a_{j+1,j+1}-a_{j,j}+\gamma_{(j-1)p+(j+1)}$ is a continuous function defined in such interval $\mathcal{I}^{(0)}_j$. Therefore (\ref{F}) has a solution $\gamma_{jp+(j+2)}$ in these conditions, which is defined in some interval $\mathcal{I}^{(0)}_{j+1} \subset \mathcal{I}^{(0)}_j$. Thus we have proved the existence of $p-1$ continuous functions \begin{equation} \gamma_{(i-1)p+(i+1)}\,,\quad i=1,2,\ldots, p-1\,, \label{otro38} \end{equation} being these functions the respective solutions of (\ref{F}) in some open interval $\mathcal{I}^{(0)}$ containing $t_0$. We take $\mathcal{I}^{(0)}:=\mathcal{I}^{(0)}_{p-1}$. Note that in (\ref{otro38}) we have obtained the first row of (\ref{puntos}). These functions, defined in the interval $\mathcal{I}^{(0)}$, are the first $p-1$ entries in the subdiagonal of $L^{(1)}(t)$. Another form to write (\ref{otro37}) is \begin{equation} \sum_{j=0}^{p-1}(-1)^j \gamma_{(p-j-1)p+(p-j+1)}(t_0)\cdots \gamma_{(p-2)p+p}(t_0)R_k^{(0,j)}(t_0)\ne 0\,,\quad k=1,\ldots, N. \label{otro39} \end{equation} Due to the continuity of functions (\ref{otro38}) and $R_k^{(j)}$, it is possible to choose $\mathcal{I}^{(0)}$ sufficiently small such that (\ref{otro39}) is verified for each $t\in \mathcal{I}^{(0)}$. This is, $$ \sum_{j=0}^{p-1}(-1)^j \gamma_{(p-j-1)p+(p-j+1)}(t)\cdots \gamma_{(p-2)p+p}(t)R_k^{(0,j)}(t)\ne 0\,,\quad k=1,\ldots, N, $$ for $t\in \mathcal{I}^{(0)}$. In these conditions we apply Lemma \ref{teoremaDani} and we see that $L(t)$ is factorized as in (\ref{(a)(a)}) for each $t\in\mathcal{I}^{(0)}$. This is, \begin{equation} L(t)=L^{(1)}(t)T^{(1)}(t)\,,\quad t\in \mathcal{I}^{(0)}\,, \label{aaa} \end{equation} where $T^{(1)}$ is given in (\ref{otro26}) for $s=1$ verifying $m^{(1)}_{p-1+j,j+1}(t)\neq 0\,,t\in \mathcal{I}^{(0)}\,,j=0,1,\ldots,\,$ and $L^{(1)}$ has the structure given in (\ref{Darboux2}). We underline that the factorization (\ref{aaa}) should be understood in a formal sense, because we need to fix a $N\in \mathbb{N}$ for having the first entries of these matrices defined in some nonempty open interval. In other words, it is possible that the entries for the infinite matrices $L^{(1)}(t)$ and $T^{(1)}(t)$ are defined in $t=t_0$ but they are not simultaneously defined in a nonempty open interval. This remark should be applied in the sequel to matrices that depend on $t$, as in (\ref{otro42}) and (\ref{otro40}). Our first goal is to prove the existence of the factors $L^{(i)}(t)\,,\,i=1,\ldots, p,$ verifying \begin{equation} L(t)=L^{(1)}(t)\cdots L^{(p)}(t) \label{otro42} \end{equation} whose first entries are continuous functions in some open interval containing $t_0$. We proceed by induction. We assume \begin{equation} T^{(s)}(t)=L^{(s+1)}(t)T^{(s+1)}(t)\,,\quad t\in \mathcal{I}^{(s)}\,, \label{otro40} \end{equation} for $s=0,1,\ldots, r\,,$ with $0\leq r<p-2$, being $\mathcal{I}^{(s)}\,,s=0,1,\ldots, r\,,$ open intervals such that \begin{equation} t_0\in \mathcal{I}^{(0)}\supseteq\mathcal{I}^{(1)}\supseteq\cdots \supseteq\mathcal{I}^{(r)}\,. \label{otro43} \end{equation} In (\ref{otro40}) we assume $T^{(0)}=L$ and $T^{(s+1)}\,,\,s=0,1,\ldots, r\,,$ as in (\ref{otro26}) such that \begin{equation} m^{(s)}_{p-s+j,j+1}\neq 0\,,\quad j=0,1,\ldots \label{otrotro40} \end{equation} Also we assume the matrices $L^{(s+1)}(t)\,,\,s=0,\ldots, r\,,$ with the structure given in (\ref{Darboux2}). This is, \begin{equation} L^{(s+1)}(t) = \left( \begin{array}{cccccc} 1 & & \\ \gamma_{s+2}(t) & 1 & \\ & \gamma_{p+s+3} (t) & 1 \\ &&\gamma_{2p+s+4}(t) &\ddots\\ &&&\ddots \end{array} \right), \label{otrotrotro40} \end{equation} being $\gamma_{s+2}(t)\,,\ldots \,,\gamma_{(p-s-1)p}(t) $ continuous functions in $\mathcal{I}^{(s)}$ such that \begin{equation} \dot{\gamma}_{(i-1)p+(i+s+1)}(t) = \gamma_{(i-1)p+(i+s+1)}(t)\left( D_{i}^{(s)}(t)-\gamma_{(i-1)p+(i+s+1)}(t)\right)\,, \label{otro45} \end{equation} (see row $s+1$ in (\ref{puntos})) and \begin{equation} D_{i}^{(s)}=a_{i,i}-a_{i-1,i-1}-2\sum_{j=1}^s\gamma_{(i-1)p+(i+j)}+\sum_{j=1}^s\gamma_{ip+(i+j+1)}+ \sum_{j=0}^s\gamma_{(i-2)p+(i+j)}\,. \label{otrotro45} \end{equation} We have proved the factorization (\ref{otro40}) in the above conditions for $s=0$ (see (\ref{aaa})). We want to prove that (\ref{otro40})-(\ref{otrotro45}) are verified for $s=r+1$ in some interval $\mathcal{I}^{(r+1)}$ such that $t_0\in \mathcal{I}^{(r+1)}\subseteq \mathcal{I}^{(r)}$. Since (\ref{otrotro40}) and Lemma \ref{lema5} (for $s=r+1$) we know that there exist $p-r-2$ complex values $$ \alpha_i^{(r+1)}\neq 0\,,\quad i=1,2,\ldots , p-r-2\,, $$ verifying \begin{equation} \sum_{j=0}^{p-r-2}(-1)^j \alpha_{p-r-j-1}^{(r+1)}\alpha_{p-r-j}^{(r+1)}\cdots \alpha_{p-r-2}^{(r+1)}R_k^{(r+1,j)}\ne 0\,,\quad k=1,\ldots, N\,. \label{asterisco} \end{equation} Moreover we define \begin{equation} \alpha_i^{(s)}:=\gamma_{(i-1)p+i+s+1}(t_0)\,,\quad s=1,2,\ldots,r\,,\quad i=1,2,\ldots, p-s-1\,. \label{otro48} \end{equation} We consider the following initial value problem for each $s=1,2,\ldots,r+1$ and $i=1,2,\ldots, p-s-1$, \begin{equation} \left. \begin{array}{lcl} \dot{\gamma}_{(i-1)p+i+s+1}(t) & = & \gamma_{(i-1)p+i+s+1}(t)\left( D_{i}^{(s)}(t)-\gamma_{(i-1)p+i+s+1}(t)\right)\\\\ \gamma_{(i-1)p+i+s+1}(t_0) & = & \alpha_i^{(s)} \end{array} \right\} \label{E} \end{equation} where $D_{i}^{(s)}$ is given in (\ref{otrotro45}). Since (\ref{F}), (\ref{otro45}) and (\ref{otro48}), the continuous functions $$ \gamma_{s+2}(t),\,\ldots, \gamma_{(p-s-1)p}(t)\,,\,t\in \mathcal{I}^{(s)}\,,\,s=0,\ldots, r\,, $$ are the solutions of (\ref{E}) for $i=1,2,\ldots,p-s-1$ respectively. We study this initial value problem when $s=r+1$ taking $i=1,2,\ldots,p-r-2$. In the first place, if $i=1$ we have that $$ D_{1}^{(r+1)}=a_{1,1}-a_{0,0}-2\sum_{j=1}^{r+1}\gamma_{j+1}+\sum_{j=1}^{r+1}\gamma_{p+j+2} $$ is a continuous function defined in $\mathcal{I}^{(r)}$. Then there exists a solution $\gamma_{r+3}(t)$ of (\ref{E}) (with $i=1,\,s=r+1$), which is a continuous function in some open interval $\mathcal{I}_1^{(r+1)}$ containing $t_0$ such that $\mathcal{I}_1^{(r+1)}\subseteq\mathcal{I}^{(r)}$. Iterating the procedure, we suppose $\gamma_{(i-1)p+i+s+1}$ solutions of (\ref{E}) when $s=r+1$ and $i=1,2,\ldots, \widetilde{i}\,,$ being $\widetilde{i}<p-r-2$. Then the continuous functions $$ \gamma_{(i-1)p+i+r+2}(t)\,,\quad i=1,2,\ldots, \widetilde{i}\,, $$ are defined in some open interval $\mathcal{I}_{\widetilde{i}}^{(r+1)}$ containing $t_0$, being $\mathcal{I}_{\widetilde{i}}^{(r+1)}\subseteq\mathcal{I}_{\widetilde{i}-1}^{(r+1)}\subseteq \cdots \subseteq \mathcal{I}_1^{(r+1)} $. We recall that also the functions $$ \gamma_{(i-1)p+i+s+1}(t)\,,\quad i=1,2,\ldots,p-s-1\,,\quad s=0,1,\ldots, r, $$ are determined in the previous steps. Therefore, $D_{\widetilde{i}+1}^{(r+1)}$ is a continuous function defined in some open interval $\mathcal{I}_{\widetilde{i}+1}^{(r+1)}$ such that $t_0\in\mathcal{I}_{\widetilde{i}+1}^{(r+1)}\subseteq\mathcal{I}_{\widetilde{i}}^{(r+1)}$. Then it is possible to set that (\ref{E}), for $i=\widetilde{i}+1$ and $s=r+1$, also has a solution in the above conditions. Thus for $s=r+1$ the continuous functions \begin{equation} \gamma_{(i-1)p+i+r+2}(t)\,,\quad i=1,2,\ldots,p-r-2\,, \label{otro46} \end{equation} are defined in some open interval, namely $\mathcal{I}^{(r+1)}:=\mathcal{I}_{p-r-2}^{(r+1)}$, containing $t_0$. Note that $\mathcal{I}^{(r+1)}\subseteq \mathcal{I}^{(r)}$. Moreover, from (\ref{asterisco}) and the continuity of the functions (\ref{otro46}) we can assume $\mathcal{I}^{(r+1)}$ sufficiently small such that \begin{eqnarray*} \sum_{j=0}^{p-r-2}(-1)^j \gamma_{(p-r-j-2)p+p-j}(t)\gamma_{(p-r-j-1)p+p-j+1}(t)\cdots \gamma_{(p-r-2)p}(t)R_k^{(r+1,j)}(t)&\ne & 0\,,\\ k=1,\ldots, N\,,\quad t\in \mathcal{I}^{(r+1)}\,. \end{eqnarray*} Therefore we apply Lemma \ref{teoremaDani} (substituting $p$ by $p-r-1$) and we arrive to (\ref{otro40}) for $s=r+1$. Consequently, (\ref{otro40}) and the conditions given in (\ref{otro43})-(\ref{otrotro45}) are verified for $s=0,1,\ldots, p-2$. In particular, $$ T^{(p-2)}(t)=L^{(p-1)}(t)T^{(p-1)}(t)\,,\quad t\in \mathcal{I}^{(p-2)}\,, $$ where $L^{(p)}:=T^{(p-1)}$ is a by-diagonal matrix with the structure given in (\ref{Darboux2}). Then we obtain the factorization (\ref{otro42}) by applying successively (\ref{otro40}) in $t\in \mathcal{I}^{(p-2)}$ for $s=0,1,\ldots, p-2$. We recall that (\ref{otro42}) has a formal sense. This is, for each fixed $N\in \mathbb{N}$ there exists some open interval $\mathcal{I}_N$ such that the entries $l_{i,j}(t)\,,\,i,j\leq N\,,$ of $L(t)$ are obtained in terms of the corresponding products and sums of entries of $ L^{(1)}\,,\,\ldots \,,\,L^{(p)} $ for $t\in \mathcal{I}_N\cap \mathcal{I}^{(p-2)}$. However, it is possible to have $\bigcap_{N\in \mathbb{N}}\mathcal{I}_N=\{t_0\}$. Now we analyze the derivative $\dot \gamma_n$ of the entries of $U$ and the recently defined matrices $L^{(i)}\,,\,i=1,\ldots, p$. In the first place we shall show that the matrix $\Gamma$ defined by the sequence $\{\gamma_n\}$ is a solution of (\ref{VolterraGeneral}) (see Definition \ref{definition2})). The functions \begin{equation} \gamma_{(i-1)p+(i+s+1)}(t)\,,i=1,2,\ldots,p-s-1\,,\quad s=0,1,\ldots, p-2\,, \label{otroA} \end{equation} defined for $t\in \mathcal{I}^{(p-2)}$ were obtained as the solutions of the initial value problem (\ref{E}). These functions correspond to the set (\ref{puntos}). Moreover the entries $a_{i,j}$ of $J$ can be obtained since (\ref{LU}) and (\ref{otro42}) in terms of the entries of the factors $U\,,\,L^{(i)}\,,\,i=1,\ldots, p\,.$ This is (\ref{10}) (taking $j=0$) for the diagonal entries of $J$. From this and (\ref{otrotro45}) we arrive immediately to (\ref{VolterraGeneral}) for the functions $\gamma_n$ given in (\ref{otroA}). On the other hand, (\ref{VolterraGeneral}) was proved for the entries of $U$ in Lemma \ref{lema2}. Thus we only need to verify (\ref{VolterraGeneral}) for the rest of the entries of $L^{(i)}\,,\,i=1,\ldots, p,$ that are not given in (\ref{otroA}). The terms of the sequence $\{\gamma_n\}$ no given in (\ref{otroA}) are \begin{equation} \gamma_{(k+i+1)p+i}\,,\quad i=1,2,\ldots\,,\quad k=-1,0,\ldots, p-2\,. \label{nuevas} \end{equation} The construction of these terms from the dates (\ref{otroA}) was analyzed in Section \ref{construction}. The functions (\ref{otroA}), whose derivatives verify (\ref{VolterraGeneral}), can be rewritten as in (\ref{nuevas}) taking $i=-p+2, -p+3,\ldots,-1,0$ (understanding $\gamma_n\equiv 0$ when $n\leq 0$). We recall that for each fixed $i\in N $ a parallel secondary diagonal of Table \ref{tabla} is obtained in (\ref{(a)}) for $k=-1,0,\ldots,p-2$. Next we look for an iterative expression like (\ref{(a)}) for the derivatives of these functions. This is, we want to use this construction for obtaining iteratively and simultaneously each function $\gamma_{(k+i+1)p+i}$ and its derivative $\dot\gamma_{(k+i+1)p+i}$ in terms of the functions and the derivatives functions obtained in the previous steps. In this way we assume that all the functions $\gamma_n$ on the right hand side of (\ref{(a)}) and their derivatives are known. We shall prove the next expression for the derivative of the function $\delta^{(i)}_k$ given in (\ref{20}), \begin{eqnarray} \label{deri} \dot\delta^{(i)}_k&=& \delta^{(i)}_k\left( \sum_{j=0}^p\gamma_{(k+i)p+i+j}-\sum_{j=0}^p\gamma_{(i-2)p+i+j}\right),\nonumber \\ &&\qquad i=1,2,\ldots,\quad k=-1,0,\ldots, p-2\,. \end{eqnarray} We underline that for each $i, k$ the factors $\gamma_n$ of $\delta^{(i)}_k$ given in (\ref{20}) and its derivatives $\dot\gamma_n$ verify (\ref{VolterraGeneral}) from the previous steps. From this fact, \begin{eqnarray*} \frac{\dot\delta^{(i)}_k}{\delta^{(i)}_k}&= &\sum_{r=-1}^k\frac{\dot\gamma_{(r+i)p+i}}{\gamma_{(r+i)p+i}} =\sum_{r=-1}^k\left( \sum_{j=1}^p \gamma_{(r+i)p+i+j}-\sum_{j=1}^p \gamma_{(r+i-1)p+i+j-1}\right)\\ & = & \sum_{j=1}^p \gamma_{(k+i)p+i+j}+\sum_{r=0}^{k}\left( \gamma_{(r+i-1)p+i+p}-\gamma_{(r+i-1)p+i}\right)-\sum_{j=1}^p \gamma_{(i-2)p+i+j-1}\,,\\ \end{eqnarray*} which leads to (\ref{deri}). Now, for $i\in N$ and $k\in \{-1,0,\ldots, p-2\}$ fixed, we study the derivatives of the terms on the right hand side of (\ref{(a)}). With this purpose for each $(i_1,i_2,\ldots,i_{k+3})\in \widetilde{E}_{k+2}^{(0)}$ we define \begin{equation} \Delta_k^{(i)}:=\gamma_{(i-2)p+i+i_{1}-1}\gamma_{(i-1)p+i+i_{2}-1}\cdots \gamma_{(i+k)p+i+i_{k+3}-1}\,, \label{bbb} \end{equation} (see (\ref{3434})), where we assume that the derivatives of the functions $\gamma_n$ verify (\ref{VolterraGeneral}). From this we have \begin{eqnarray} \frac{\dot\Delta^{(i)}_k}{\Delta^{(i)}_k} & = & \sum_{j=1}^p \gamma_{(k+i)p+i+i_{k+3}+j-1}-\sum_{j=1}^p \gamma_{(i-3)p+i+i_1+j-2} \nonumber\\ & + & \sum_{r=1}^{k+2} \left(\sum_{j=i+i_r}^{i+i_r+p-1} \gamma_{(r+i-3)p+j}- \sum_{j=i+i_{r+1}-1}^{i+i_{r+1}+p-2} \gamma_{(r+i-3)p+j}\right)\,. \label{ccc} \end{eqnarray} We are interested in (\ref{ccc}) when $(i_1,i_2,\ldots,i_{k+3})\in \widetilde{E}_{k+2}^{(0)}$ and $k\in \{-1,0,\ldots,p-2\}$, as in (\ref{(a)}). Firstly, if $k\geq 0$ we have $i_r-i_{r+1}\leq p-k-2\leq p-2$ for $r=1,2,\ldots, k+2$. Then \begin{equation} i+i_{r+1}-1<i+i_r\leq i+i_{r+1}+p-2<i+i_{r}+p-1 \label{eee} \end{equation} for $(i_1,i_2,\ldots,i_{k+3})\in E_{k+2}^{(0)}$ and, in particular, for $(i_1,i_2,\ldots,i_{k+3})\in \widetilde{E}_{k+2}^{(0)}$. Then we simplify (\ref{ccc}) because $$\sum_{j=i+i_r}^{i+i_r+p-1} \gamma_{(r+i-3)p+j}-\sum_{j=i+i_{r+1}-1}^{i+i_{r+1}+p-2} \gamma_{(r+i-3)p+j}$$ \begin{equation} = \sum_{j=i+i_{r+1}+p-1}^{i+i_r+p-1} \gamma_{(r+i-3)p+j}-\sum_{j=i+i_{r+1}-1}^{i+i_{r}-1} \gamma_{(r+i-3)p+j}\,. \label{ddd} \end{equation} Secondly, if $k=-1$ then in the above conditions we have $(i_1,i_2)\in \widetilde{E}_{1}^{(0)}$ and \begin{equation} 2\leq i_2\leq i_1\leq p+1\,. \label{ggg} \end{equation} Thus $i_1-i_2\leq p-1$. If \begin{equation} i_1-i_2\leq p-2 \label{fff} \end{equation} then (\ref{eee}) also is verified (with $r=1$) and consequently we arrive to (\ref{ddd}). Moreover, (\ref{fff}) holds when either $i_2\neq 2$ or $i_1\neq p+1$ in (\ref{ggg}). In this case, when $i_2=2$ and $i_1=p+1$, we arrive straight to (\ref{ddd}). Therefore (\ref{ddd}) is verified for $r=1,2,\ldots, k+2\,,\,k=-1,0,\ldots, p-2$ and $(i_1,i_2,\ldots,i_{k+3})\in E_{k+2}^{(0)}$. From this and (\ref{ccc}) we have \begin{eqnarray} \frac{\dot\Delta^{(i)}_k}{\Delta^{(i)}_k} &=& \sum_{j=1}^p \gamma_{(k+i)p+i+i_{k+3}+j-1}-\sum_{j=1}^p \gamma_{(i-3)p+i+i_1+j-2} \nonumber\\ & + & \sum_{r=1}^{k+2} \left(\sum_{j=i+i_{r+1}+p-1}^{i+i_r+p-1} \gamma_{(r+i-3)p+j}- \sum_{j=i+i_{r+1}-1}^{i+i_{r}-1} \gamma_{(r+i-3)p+j}\right)\,. \label{kkk} \end{eqnarray} Moreover for each $j=0,1,\ldots , p$ we can show $$\sum_{\widetilde{E}_{k+2}^{(j)}} \Delta^{(i)}_k\left(\sum_{s=i+i_{r}+p-1}^{i+i_{r-1}+p-1} \gamma_{(r+i-4)p+s}- \sum_{s=i+i_{r+1}+p-1}^{i+i_{r}+p-1} \gamma_{(r+i-4)p+s}\right)=0\,,$$ \begin{equation} k = -1,0,\ldots, p-2\,,\,r=2,\ldots,k+2\,. \label{lll} \end{equation} In fact, in the first term of (\ref{lll}) for each $s=i+\tilde{j}+p-1\,,\,i_r\leq \tilde{j}\leq i_{r-1}$ we have \begin{equation} \Delta^{(i)}_k\gamma_{(r+i-4)p+s}=\gamma_{(i-3)p+i+\tilde{i}_0-1}\gamma_{(i-2)p+i+\tilde{i}_1-1}\cdots \gamma_{(i+k)p+i+\tilde{i}_{k+3}-1} \label{llll} \end{equation} where \begin{equation} \tilde{i}_q=\left\{ \begin{array}{lll} i_{q+1}+p &,& q=0,1,\ldots , r-2\\ \tilde{j}+p & , & q=r-1\\ i_q & , & q=r,r+1,\ldots ,k+3\,. \end{array} \right. \label{mmm} \end{equation} In the second term of (\ref{lll}), for each $s=i+\tilde{j}+p-1$ and $i_{r+1}\leq \tilde{j}\leq i_{r}$ we have (\ref{llll}) for \begin{equation} \tilde{i}_q=\left\{ \begin{array}{lll} i_{q+1}+p &,& q=0,1,\ldots , r-1\\ \tilde{j} & , & q=r\\ i_q & , & q=r+1,r+2,\ldots ,k+3\,. \end{array} \right. \label{nnn} \end{equation} In both cases, (\ref{mmm}) and (\ref{nnn}), it is verified $(i_1,i_2,\ldots,i_{k+3})\in \widetilde{E}_{k+2}^{(j)}$ and $ j+k+2\leq \tilde{i}_{k+3}\leq \cdots \leq \tilde{i}_{0}\leq j+2p+1\,, $ being $\tilde{i}_{r-1}-\tilde{i}_{r}\geq p$ and taking $(\widetilde{i}_0,\widetilde{i}_1,\ldots,\widetilde{i}_{k+3})$ all the values in these conditions. Thus both sums coincide and (\ref{lll}) is verified. Taking into account (\ref{lll}) and making some computations in (\ref{kkk}) we obtain \begin{eqnarray} \sum_{\widetilde{E}_{k+2}^{(0)}}\dot\Delta^{(i)}_k &=& \sum_{\widetilde{E}_{k+2}^{(0)}}\Delta^{(i)}_k\left(\sum_{j=1}^p \gamma_{(k+i)p+i+i_{k+3}+j-1}-\sum_{j=1}^{p} \gamma_{(i-3)p+i+i_1+j-2} \right.\nonumber\\ & - & \left.\sum_{j=i_2}^{i_1} \gamma_{(i-2)p+i+j-1} +\sum_{j=i_{k+3}}^{i_{k+2}} \gamma_{(k+i)p+i+j-1}\right)\,. \label{ppp} \end{eqnarray} Due to $\widetilde{E}_{k+2}^{(0)}=E_{k+2}^{(0)}\setminus\{(\overbrace{p+1, \cdots ,p+1}^{(k+3)})\}$, since (\ref{ppp}) we have \begin{eqnarray} \sum_{\widetilde{E}_{k+2}^{(0)}}\dot\Delta^{(i)}_k &=& \sum_{E_{k+2}^{(0)}}\Delta^{(i)}_k\left(\sum_{j=1}^p \gamma_{(k+i)p+i+i_{k+3}+j-1}-\sum_{j=1}^{p} \gamma_{(i-3)p+i+i_1+j-2} \right.\nonumber\\ & - & \left.\sum_{j=i_2}^{i_1} \gamma_{(i-2)p+i+j-1} +\sum_{j=i_{k+3}}^{i_{k+2}} \gamma_{(k+i)p+i+j-1}\right)\nonumber\\ &-&\delta^{(i)}_k\gamma_{(k+i+1)p+i}\left(\sum_{j=0}^p \gamma_{(k+i+1)p+i+j}-\sum_{j=1}^{p+1} \gamma_{(i-2)p+i+j-1} \right)\,. \label{pppp} \end{eqnarray} On the other hand we know $(i_1,i_2,\ldots,i_{k+4})\in E_{k+3}^{(0)}$ if and only if $ k+3\leq i_{k+4}-1\leq \cdots \leq i_{2}-1\leq i_{1}-1\leq p\,. $ This is, $(i_2-1,i_3-1,\ldots,i_{k+4}-1)\in E_{k+2}^{(0)}$ and $i_2\leq i_1\leq p+1$. Then \begin{equation} \sum_{E_{k+3}^{(0)}}\Delta_{k+1}^{(i-1)}= \sum_{E_{k+2}^{(0)}}\Delta_k^{(i)}\sum_{j=i_1}^p\gamma_{(i-3)p+i+j-1}\,. \label{uu} \end{equation} Moreover, $(i_1,i_2,\ldots,i_{k+4})\in E_{k+3}^{(0)}$ if and only if $k+3\leq i_{k+3}\leq \cdots \leq i_{1}\leq p+1$ and $k+4\leq i_{k+4}\leq i_{k+3}$. This is, $(i_1,\ldots,i_{k+3})\in E_{k+2}^{(0)}$ and $k+4\leq i_{k+4}\leq i_{k+3}$. Then \begin{equation} \sum_{E_{k+3}^{(0)}}\Delta_{k+1}^{(i)}= \sum_{E_{k+2}^{(0)}}\Delta_k^{(i)}\sum_{j=k+4}^{i_{k+3}}\gamma_{(k+i+1)p+i+j-1}\,. \label{vv} \end{equation} Since (\ref{uu}) and (\ref{vv}), using (\ref{11}) we have $a_{k+i+2,i-1}-a_{k+i+1,i-2} =$ \begin{equation} \sum_{E_{k+2}^{(0)}}\Delta_k^{(i)} \left(\sum_{j=k+4}^{i_{k+3}}\gamma_{(k+i+1)p+i+j-1}-\sum_{j=i_1}^{p}\gamma_{(i-3)p+i+j-1}\right)\,. \label{ww} \end{equation} Using again (\ref{10})-(\ref{11}), $\left(a_{k+i+1,k+i+1}-a_{i-1,i-1}\right)a_{k+i+1,k+i+1} =$ \begin{equation} \sum_{E_{k+2}^{(0)}}\Delta^{(i)}_k\left(\sum_{j=1}^{p+1} \gamma_{(k+i)p+k+i+j+1}-\sum_{j=1}^{p+1} \gamma_{(i-2)p+i+j-1} \right)\,. \label{repe} \end{equation} From (\ref{ww}), (\ref{repe}) and (\ref{sistema}) we obtain $\dot a_{k+i+1,i-1}= $ \begin{equation} \sum_{E_{k+2}^{(0)}}\Delta_k^{(i)}\left(\sum_{j=k+3}^{p+i_{k+3}}\gamma_{(k+i)p+i+j-1}- \sum_{j=i_1}^{2p+1}\gamma_{(i-3)p+i+j-1}\right)\,. \label{xx} \end{equation} Similarly to (\ref{lll}) it is easy to verify \begin{equation} \sum_{E^{(q)}_{k+2}} \Delta^{(i)}_{k}\left(\sum_{s=i_{k+3}}^{i_{k+2}}\gamma_{(k+i)p+i+s-1}- \sum_{s=q+k+3}^{i_{k+3}}\gamma_{(k+i)p+i+s-1}\right)=0 \label{q} \end{equation} and \begin{equation} \sum_{E^{(q)}_{k+2}} \Delta^{(i)}_{k}\left(\sum_{s=i_{1}}^{q+p+1}\gamma_{(i-2)p+i+s-1}- \sum_{s=i_2}^{i_1}\gamma_{(i-2)p+i+s-1}\right)=0 \label{r} \end{equation} for each $q=0,1,\ldots, p$. Taking derivatives in (\ref{(a)}) and using (\ref{deri}), (\ref{pppp}), (\ref{xx}) and (\ref{r}) (with $q=0$) we arrive to $$ \dot\gamma_{(k+i+1)p+i}=\gamma_{(k+i+1)p+i}\left(\sum_{j=0}^{p}\gamma_{(k+i+1)p+i+j} -\sum_{j=0}^{p}\gamma_{(k+i+1)p+i-j} \right)\,, $$ which is (\ref{VolterraGeneral}) for $n=(k+i+1)p+i$ with $k, i$ in the mentioned conditions. Our next target is to prove that the matrices given in (\ref{7}) are the solutions of (\ref{sistema}). With this purpose we show that the entries $\dot a_{q,r}^{(j)}$ of each $J^{(j)}$ verify (\ref{sistema}). Because the sequence $\{\gamma_{n}\}$ verifies (\ref{VolterraGeneral}), if we take derivatives in (\ref{10}) and we make some more computations we arrive to $\dot a_{i,i}^{(j)} =$ $$ \sum_{j+1\leq i_2\le i_1\le j+p}\gamma_{(i-1)p+i+i_1+1} \gamma_{ip+i+i_2+1}- \sum_{j+1\leq i_2\le i_1\le j+p}\gamma_{(i-2)p+i+i_1} \gamma_{(i-1)p+i+i_2} $$ which is $a_{i+1,i}^{(j)}-a_{i,i-1}^{(j)}$. Moreover, for $k=1,2,\ldots, p$ and using the notation of (\ref{bbb}), from (\ref{VolterraGeneral}) we see \begin{eqnarray} \dot a_{i+k,i}^{(j)} & = & \sum_{E_k^{(j)}}\Delta_{k-2}^{(i+1)}\left(\sum_{r=1}^p\gamma_{(i+k-1)p+i+i_{k+1}+r}+\right.\label{BBB}\\ &+&\left.\sum_{s=0}^{k-1}\sum_{r=1}^p\left(\gamma_{(i+s-1)p+i+i_{s+1}+r}-\gamma_{(i+s-1)p+i+i_{s+2}+r-1}\right)- \sum_{r=1}^p\gamma_{(i-1)p+i+i_{1}-r}\right)\,.\nonumber \end{eqnarray} For $(i_1, \ldots , i_{k+1})\in E_{k}^{(j)}$ we have $j+k+1\leq i_{s+2}\leq i_{s+1}\leq j+p+1$ for $s=0,\ldots, k-1$. Then $i_{s+2}\leq i_{s+1}\leq i_{s+2}+p-1\leq i_{s+1}+p$ and \begin{eqnarray} \sum_{r=1}^p\left(\gamma_{(i+s-1)p+i+i_{s+1}+r}-\gamma_{(i+s-1)p+i+i_{s+2}+r-1}\right)&=&\nonumber\\ \sum_{r=i_{s+2}}^{i_{s+1}}\gamma_{(i+s)p+i+r}&-&\sum_{r=i_{s+2}}^{i_{s+1}}\gamma_{(i+s-1)p+i+r}\,. \label{novo} \end{eqnarray} Taking into account (\ref{novo}) in the right hand side of (\ref{BBB}), since (\ref{llll}) we have \begin{eqnarray*} \dot a_{i+k,i}^{(j)} & = &\sum_{E_k^{(j)}}\Delta_{k-2}^{(i+1)}\left( \sum_{r=1}^p\gamma_{(i+k-1)p+i+i_{k+1}+r}+ \right.\\ & + & \left. \sum_{r=i_{k+1}}^{i_k}\gamma_{(i+k-1)p+i+r}-\sum_{r=i_{2}}^{i_{1}}\gamma_{(i-1)p+i+r} -\sum_{r=1}^{p}\gamma_{(i-1)p+i+i_1+r}\right). \end{eqnarray*} Then using (\ref{q})-(\ref{r}) we arrive to \begin{equation} \dot a_{i+k,i}^{(j)} = \sum_{E_k^{(j)}}\Delta_{k-2}^{(i+1)}\left( \sum_{r=j+k+1}^{i_{k+1}+p}\gamma_{(i+k-1)p+i+r}-\sum_{r=i_{1}-p}^{j+p+1}\gamma_{(i-1)p+i+r} \right)\,. \label{EEEE} \end{equation} On the other hand, from (\ref{10})-(\ref{11}) we have $(a_{i+k,i+k}^{(j)}-a_{i,i}^{(j)})a_{i+k,i}^{(j)}=$ \begin{equation} \sum_{E_k^{(j)}}\Delta_{k-2}^{(i+1)}\left( \sum_{s=j+1}^{j+p+1}\gamma_{(i+k-1)p+i+k+s}-\sum_{s=j+1}^{j+p+1}\gamma_{(i-1)p+i+s} \right), \label{FFF} \end{equation} \begin{equation} a_{i+k+1,i}^{(j)}=\sum_{E_{k+1}^{(j)}}\gamma_{(i+k)p+i+i_{k+2}}\Delta_{k-2}^{(i+1)}\,. \label{GGG} \end{equation} Moreover $(i_1, \ldots , i_{k+2})\in E_{k+1}^{(j)}$ if and only if $(\widetilde{i}_1, \ldots , \widetilde{i}_{k+1})\in E_{k}^{(j)}$ and $\widetilde{i}_{1}+1\leq i_1\leq j+p+1$, being $\widetilde{i}_r=i_{r+1}-1\,,\,r=1,\ldots,k+1$. Then \begin{equation} a_{i+k,i-1}^{(j)}=\sum_{E_{k+1}^{(j)}}\Delta^{(i)}_{k-1} =\sum_{E_{k}^{(j)}}\Delta_{k-2}^{(i+1)}\sum_{s=i_1+1}^{j+p+1}\gamma_{(i-2)p+i+s-1}\,. \label{I} \end{equation} Since (\ref{FFF}), (\ref{GGG}) and (\ref{I}) we have $(a_{i+k,i+k}^{(j)}-a_{i,i}^{(j)})a_{i+k,i}^{(j)}+a_{i+k+1,i}^{(j)}-a_{i+k,i-1}^{(j)}=$ \begin{equation} =\sum_{E_k^{(j)}}\Delta_{k-2}^{(i+1)}\left( \sum_{r=j+k+1}^{p+i_{k+1}}\gamma_{(i+k-1)p+i+r}-\sum_{r=i_1-p}^{j+p+1}\gamma_{(i-1)p+i+r} \right)\,. \label{J} \end{equation} Finally, comparing (\ref{EEEE}) and (\ref{J}) we arrive to (\ref{sistema}) for the entries of the matrices $J^{(j)}\,,\,j=1,\ldots,p$. With this, Theorem \ref{teorema1} is proved. $\hfill \Box$
\section{Introduction} This article is mainly a survey, based on notes for a lecture course at the `Models and Groups 5' meeting in Istanbul October 8--10 2015, but closely related to material on pseudofinite structures which I discussed in the `IPM conference on set theory and model theory', Tehran, October 12-16 2015. The focus below is mainly on pseudofinite groups which are simple in the group-theoretic sense, on the content for pseudofinite groups of model-theoretic tameness conditions generalising stability, and on the implications for finite group theory. The paper is intended for both logicians and group theorists, so contains considerably more model-theoretic background than is standard for an article in a logic journal. \medskip {\bf Convention}: We let $L_{\gp}:=(\cdot, {}^{-1},1)$ be the first order language of groups. Unless otherwise mentioned, any first order language $L$ is assumed to be countable. \begin{definition} A {\em pseudofinite group} is an infinite group which satisfies every first order sentence of $L_{\gp}$ that is true of all finite groups. \end{definition} Not every group is pseudofinite. For example, the sentence (for abelian groups, so written additively) expressing `if the map $x\mapsto 2x$ is injective then it is surjective' is true in all finite groups but false in $({\mathbb Z},+)$, and so the latter is not pseudofinite. Likewise (considering the map $x \mapsto px$), the group of $p$-adic integers $({\mathbb Z}_p,+)$ is not pseudofinite. Since centralisers of non-identity elements in free groups are definable and isomorphic to $({\mathbb Z},+)$, free groups are not pseudofinite. Answering a question asked in Istanbul by G. Levitt, we show in Theorem~\ref{levittq} that there is a group (namely the full symmetric group on a countably infinite set) which does not embed in any pseudofinite group. \begin{remark} \rm A group $G$ is pseudofinite if and only if it is elementarily equivalent to a non-principal ultraproduct (see Section 2) of distinct finite groups. In fact, the above definition, and this remark, make sense with `group' replaced by `field', `ring', `graph', $L$-structure, etc. In this paper, we also talk of pseudofinite rings and fields. \end{remark} The structure of this article is as follows. Section 2 contains an overview of basic background, around ultraproducts, pseudofinite fields, and basic concepts from generalised stability theory. In Section 3, we discuss three major theorems of John Wilson about finite and pseudofinite groups: the description of simple pseudofinite groups; the finite axiomatisability, among finite groups, of soluble groups; and the uniform definability of the soluble radical of a finite group. In Section 4 we consider which pseudofinite groups have a first order theory which is stable, or simple or NIP, or NTP${}_2$ -- this last appears to be new, though straightforward. In Section 4 we also discuss the notions of {\em asymptotic class} of finite structures, introduced by Elwes, myself and Steinhorn, and consider these in the context of groups. In Section 5 we discuss pseudofinite permutation groups, especially material from \cite{lmt}. We take the opportunity here to correct some inaccuracies in \cite{ejmr} and \cite{lmt}. Section 6 considers some further directions, and contains a small new result. \medskip {\em Acknowledgement:} I warmly thank the organisers of the `IPM conference on set theory and model theory', Tehran, October 12-16 2015, a meeting which led to preparation of this paper. This work was partially supported by EPSRC grant EP/K020692/1. \section{Preliminaries} \subsection{Ultraproducts.} Fix a countable language $L$ -- the undelying languages considered throughout this paper are countable. Let $\{M_i:i\in \omega\}$ be a family of $L$-structures, and let $\mathcal{U}$ be a non-principal ultrafilter on $\omega$. (An {\em ultrafilter} on $\omega$ is a family of subsets of $\omega$ closed under finite intersections and supersets, containing $\omega$ and omitting $\emptyset$, and maximal subject to this; it is {\em principal} if it has the form $\{X\subseteq \omega:a\in X\}$ for some $a\in \omega$, and is {\em non-principal} otherwise.) Define $M^*:=\Pi M_i$ (the Cartesian product of the $M_i$.) We say that some property $P$ holds {\em almost everywhere} or {\em for almost all $i$} if $$\{i: P \mbox{~holds for~} M_i\} \in \mathcal{U}.$$ For $a=(a_i)_{i\in \omega}$ and $b=(b_i)_{i\in \omega}$, put $a\sim b$ if $\{i:a_i=b_i\}\in \mathcal{U}$. Then $\sim$ is an equivalence relation. Put $M=M^*/\sim$. Define relations of $L$ to hold of a tuple of $M$ if they hold in the $i$ coordinate (that is, in $M_i$) for almost all $i$, and interpret functions and constants in $M$ similarly. This is well-defined, and the resulting $M$ is called the ultraproduct of the $M_i$ with respect to $\mathcal{U}$, and here denoted $\Pi_{i\in \omega} M_i/\mathcal{U}$. The ultraproduct $M$ will be $\omega_1$-saturated: any type over any countable subset of $M$ will be realised in $M$. The key fact about ultraproducts is \begin{theorem}[{\L}os's Theorem] In the above notation, for any sentence $\sigma$, $M\models \sigma$ if and only if $\sigma$ holds of $M_i$ for almost all $i$. \end{theorem} The following well-known observation makes a link to pseudofiniteness. \begin{proposition} A group (or just $L$-structure) is pseudofinite if and only if it is elementarily equivalent to an infinite ultraproduct of finite structures. \end{proposition} \subsection{Pseudofinite fields.} We summarise aspects of the beautiful structure theory of pseudofinite {\em fields}. This originated with Ax in 1968, and is essential for understanding pseudofinite groups which are simple as groups (see Theorem~\ref{simplegroup} below). \begin{theorem}[\cite{ax}] A field $F$ is pseudofinite if and only if all of the following hold: (i) $F$ is perfect; (ii) $F$ is {\em quasifinite} (that is, inside a fixed algebraic closure, $F$ has a unique extension of each finite degree); (iii) $F$ is {\em pseudo-algebraically closed} (PAC), that is, every absolutely irreducible variety which is defined over $F$ has an $F$-rational point. \end{theorem} It is easily seen that (i) and (ii) hold of all finite fields, and are first-order expressible ((ii) needs some work). (iii) is expressible by a conjunction of first order sentences (this is not completely obvious) each of which, by the Lang-Weil estimates, holds in sufficiently large finite fields, and so each must hold of any pseudofinite field. The striking fact is the converse, that any field satisfying all of these three conditions satisfies {\em every} sentence true of all finite fields. Ax also identified the complete theories of pseudofinite fields. If $F$ is a field, then Abs$(F)$ denotes the intersection of $F$ with the algebraic closure of its prime subfield. \begin{theorem}[\cite{ax}] If $F_1,F_2$ are pseudofinite fields, then $F_1\equiv F_2$ (that is, they are elementarily equivalent) if and only if $F_1,F_2$ have the same characteristic and {\rm Abs}$(F_1)\cong${\rm Abs}$(F_2)$. \end{theorem} This, with further information in \cite{ax}, was used by Kiefe \cite{kiefe} to prove a uniform partial quantifier elimination in finite fields, and hence for the theory of pseudofinite fields: any formula $\phi(\bar{x})$ in the language $L_{\rings}$ of rings is equivalent, modulo the theory of finite fields, to a boolean combination of sentences of the form $\exists y g(\bar{x},y)=0$, where $g(\bar{X},Y)\in {\mathbb Z}[\bar{X},Y]$. This can be converted into a model completeness result after the language is expanded by constants (see \cite{cdm}). It is also known (see \cite[corollary 3.1]{hrushrav}) that any complete theory of pseudofinite fields has elimination of imaginaries over constants naming an elementary submodel. \subsection{Basics of stability theory and generalisations.} We will consider in this paper {\em stable} theories of pseudofinite groups, the orthogonal generalisations {\em simple} and {\em NIP} of stable, and their common generalisation {\em NTP${}_2$}. Here, we briefly introduce these model-theoretic concepts. There are many sources on stability theory -- see for example \cite{pillay}, or \cite{wagner} for stable groups. For background on simple theories see \cite{wagner2}, \cite{casan}, or \cite{kim}, and for NIP theories see \cite{simon}. An excellent source of general background is \cite{tz}. Below, given a complete theory $T$, we let $\bar{M}$ denote a `sufficiently saturated' model of $T$, with all parameter sets taken inside $\bar{M}$. \begin{definition} \rm Let $T$ be a complete theory. A formula $\phi(\bar{x},\bar{y})$ is {\em unstable} (for $T$) if there are $\bar{a}_i\in \bar{M}^{|x|}$ and $\bar{b}_i\in \bar{M}^{|y|}$ (for all $i\in \omega$) such that for any $i,j\in \omega$, $\bar{M}\models \phi(\bar{a}_i,\bar{b}_j)$ if and only if $i<j$. The theory $T$ is {\em stable} if no formula is unstable for $T$. \end{definition} Several other conditions are equivalent to stability. For example, for $A\subset \bar{M}$ let $S_n(A)$ be the set of all $n$-types over $A$. Then $T$ is {\em $\lambda$-stable} (for $\lambda$ an infinite cardinal) if for all $A\subset \bar{M}$ with $|A|\leq \lambda$ we have $|S_1(A)|\leq \lambda$, and $T$ is stable if and only if it is $\lambda$-stable for some infinite $\lambda$. A theory $T$ is stable if and only if there is an `independence relation' $\ind{A}{B}{C}$ (read `$A$ is independent from $B$ over $C$') satisfying a number of natural axioms (suggested by linear independence in vector spaces, or algebraic independence in fields) such as {\em symmetry}: $\ind{A}{B}{C} \Leftrightarrow \ind{B}{A}{C}$. One of these axioms is {\em local character}: for any $\bar{a}$ and $B$ there is countable $B_0\subset B$ such that $\ind{\bar{a}}{B}{B_0}$ (here we assume the underlying language is countable). Another is {\em stationarity}: if $A\subset B\subset M$ and $A$ is algebraically closed in the sense of $T^{\eq}$, and $\bar{a}\in \bar{M}$, then there is $\bar{a}'\in \bar{M}$ such that $\tp(\bar{a}/A)=\tp(\bar{a}'/A)$, and $\ind{\bar{a}'}{B}{A}$. \noindent In a stable theory, the independence is given by {\em non-forking} (not defined here). \begin{definition} \rm A formula $\phi(\bar{x},\bar{y})$ has the {\em tree property} (with respect to $T$) if for some $k\in \omega$ the following hold: there are $\bar{a}_\eta\in \bar{M}^{|\bar{y}|}$ for all $\eta \in {}^{<\omega}\omega$ such that for any $\eta \in {}^{<\omega}\omega$ the set $\{\phi(\bar{x},\bar{a}_{\eta i}):i\in \omega\}$ is $k$-inconsistent (that is, any intersection of size $k$ is inconsistent), and for any $\sigma \in {}^\omega\omega$, the set $\{\phi(\bar{x},\bar{a}_\eta): \eta \mbox{~restricts~} \sigma\}$ is consistent. The theory $T$ is {\em simple} if no formula has the tree property. \end{definition} There is a characterisation of simplicity like the above one for stability, via an independence relation $\downarrow$, with the `stationarity' axiom weakened to the `independence theorem', also called `type amalgamation'. Simplicity is a proper generalisation of stability. Within the class of simple theories is that of {\em supersimple} theories, characterised among simple theories by a strengthening of the local character condition on $\downarrow$: a simple theory $T$ is {\em supersimple} if and only if, given any $\bar{a}$ and $B$, there is {\em finite} (as distinct from just countable) $B_0\subseteq B$ such that $\bar{a}\downarrow _{B_0} B$. For supersimple theories, there is a notion of ordinal-valued {\em rank} on definable sets (or types), known as SU-rank, which we do not here define. \begin{definition} \rm A formula $\phi(\bar{x},\bar{y})$ has the {\em independence property} (for $T$) if there are $M\models T$ and $\bar{a}_i\in M^{|\bar{x}|}$ for each $i\in \omega$ such that for any $S\subset \omega$ there is $\bar{b}_S\in M^{|\bar{y}|}$ with, for each $i\in \omega$, $M\models \phi(\bar{a}_i,\bar{b}_S)$ if and only if $i\in S$. A complete theory $T$ has the {\em independence property} if some formula has the independence property for $T$. We say $T$ is {\em NIP} if it does not have the independence property. NIP theories are also called {\em dependent} theories. \end{definition} \begin{example} \label{exstable} \rm Examples of $\omega$-stable theories include algebraically closed fields, and (hence), for an algebraically closed field $K$, the $K$-rational points of an algebraic group defined over $K$. Separably closed fields which are not algebraically closed are stable but not $\omega$-stable. Abelian groups (and more generally, modules, in the usual language of modules over a fixed ring) are stable, as are free groups. Any o-minimal structure is NIP but not stable, as is ${\mathbb Q}_p$, any non-trivially valued algebraically closed field (in a language defining the valuation), and many other henselian valued fields. Pseudofinite fields are not stable. For example, if $F$ is a pseudofinite field of odd characteristic, and $\phi(x,y)$ is the formula $\exists z(z^2=x-y)$, then $\phi$ has the independence property. However, pseudofinite fields have simple theory. In fact, they are supersimple of SU-rank 1. The well-known theory ACFA (the model companion of the theory of fields equipped with an automorphism) has all its completions supersimple, of SU-rank $\omega$; such a field is algebraically closed, and the fixed field of the automorphism is pseudofinite. Groups such as PSL${}_n(F)$ (where $F$ is a pseudofinite field) will have supersimple finite rank theory, but are unstable because they interpret the underlying field $F$. \end{example} Suppose that $G$ is a group definable in an NIP theory $T$, and let $\phi(x,\bar{y})$ be any formula. By the Baldwin-Saxl Theorem (\cite{bs}, see also \cite{wagner}), there is $n_\phi\in \omega$ such that any finite intersection of $n_\phi$ $\phi$-definable subgroups of $G$ (i.e. a subgroup of form $\bigcap_{i=1}^t \phi(G,\bar{a}_i)$, where the $\phi(G,\bar{a}_i)$ are subgroups of $G$) is an intersection of at most $n_\phi$ of them. If in addition $T$ is {\em stable}, then (essentially because $T$ cannot have the `strict order property'), this ensures that $G$ has the descending chain condition on intersections of $\phi$-definable subgroups of $G$ -- there is a fixed bound on the lengths of such chains. In particular, we may apply this to the formula $\phi(x,y)$ expressing $xy=yx$. If $T$ is NIP then there is $n_\phi$ such that for any {\em finite} $F\subset G$ there is $F_0\subset F$ with $|F_0|\leq n_{\phi}$ such that $C_G(F)=C_{G}(F_0)$, and if in addition $G$ is stable then {\em any} chain of centralisers has bounded length. Finally, a complete theory $T$ is {\em TP${}_2$} (has the {\em tree property of the 2nd kind}) if there are $\{\bar{b}_{ij}:i,j< \omega\}$ in $\bar{M}\models T$ and $k<\omega$ such that (i) the set $\{\phi(\bar{x},\bar{b}_{ij}): j<\omega\}$ is $k$-inconsistent for each $i<\omega$, and (ii) for all $\xi\in \omega^\omega$, the set $\{\phi(\bar{x},\bar{b}_{i,\xi(i)}): i\in \omega\}$ is consistent. The theory $T$ is {\em NTP${}_2$} is it is not TP{${}_2$. It is known (see \cite{chern1} that in the above definition, we may take $|\bar{x}|=1$ . Any simple or NIP theory is NTP${}_2$. Examples of structures whose theory is NTP${}_2$ but not simple or NIP include: non-principal ultraproducts (over $p$) of fields ${\mathbb Q}_p$, and the universal homogeneous ordered graph. For groups, we have the following useful result of Chernikov, Kaplan, and Simon. \begin{proposition} \cite{cks} \label{ntp2crit} Let $T$ be NTP${}_2$, let $G$ be a definable group in $M\models T$, and let $(H_i)_{i\in \omega}$ be uniformly definable normal subgroups of $G$. Let $H:=\bigcap_{i\in \omega} H_i$, and put $H_{\neq j}:=\bigcap_{i\in \omega\setminus \{j\}} H_i$. Then there is some $i^*\in \omega$ such that $|H_{\neq i^*}:H|$ is finite. \end{proposition} \section{Three theorems of Wilson} We consider first {\em simple} groups which are pseudofinite. We warn the reader that in this paper we consider both simple groups (groups with no proper non-trivial normal subgroups) and simple theories (complete theories for which no formula has the tree property), and that the word `simple' may have both meanings in the same sentence. For background on groups of Lie type, including twisted groups, see for example Carter \cite{carter}. The groups of Lie type are determined by a Dynkin diagram, and a field, and (for the twisted groups) a symmetry of the Dynkin diagram. \begin{theorem}[Wilson \cite{wilson1}] \label{simplegroup} A pseudofinite group $G$ is simple if and only if $G$ is a simple group of Lie type (possibly twisted) over a pseudofinite field. \end{theorem} \begin{remark} \rm 1. In \cite{wilson1} the statement is just that $G$ is {\em elementarily equivalent} to such a group of Lie type; the assertion as given uses also work of Ryten \cite{ryten} discussed in Section 4.1. 2. Ugurlu \cite{ugurlu} has shown that one can replace `simple' by `definably simple of finite centraliser dimension'. Here, a group is {\em definably simple} if it has no proper non-trivial {\em definable} normal subgroups. We say that $G$ has {\em centraliser dimension $k$} if $k$ is the largest natural number such that there is a sequence $$G=C_G(x_0)>C_G(x_0,x_1)>\ldots > C_G(x_0,\ldots,x_k)=Z(G),$$ and $G$ has {\em finite centraliser dimension} if $G$ has centraliser dimension $k$ for some natural number $k$. \end{remark} The proof of the direction $\Leftarrow$ of Theorem~\ref{simplegroup} follows from the fact that finite simple groups of fixed Lie type $\tau$ are {\em boundedly simple}: there is $d=d(\tau)\in \omega$ such that if $G$ is such a group and $g,h\in G$ with $h\neq 1$, then $g$ is a product of at most $d$ conjugates of $h$ and $h^{-1}$. It uses the following result of Point \cite{point}. \begin{theorem}[Point] Let $\{G(q_i): i\in I\}$ be a family of finite simple groups of the same Lie type (possibly twisted), and let $\mathcal{U}$ be a non-principal ultrafilter on $\omega$. Then $$\Pi|_{i\in \omega} G(q_i)/\mathcal{U} \cong G(\Pi_{i\in \omega} {\mathbb F}_{q_i}/\mathcal{U}).$$ \end{theorem} For $\Rightarrow$, Wilson first reduces to the case $G\equiv \Pi_{i\in \omega} S_i/\mathcal{U}$ (a non-principal ultraproduct of finite simple groups $S_i$). This uses a very nice observation of Felgner, that there is an $L_{\gp}$-sentence $\sigma$ which holds of every non-abelian simple groups, and with the property that any finite group $G$ satisfying $\sigma$ has non-abelian simple {\em socle} (the group generated by the minimal normal subgroups of $G$). The sentence $\sigma$ has form $$\forall x \forall y\big[(x\neq 1 \wedge C_G(x,y)\neq 1) \to \bigcap_{g\in G}( C_G(x,y)C_G(C_G(x,y)))^g=1].$$ Wilson then analyses the possibilities for the $S_i$. It is easily seen that $H=\Pi_{n\geq 5} \Alt(n)/\mathcal{U}$ is not simple, since finite alternating groups contain 3-cycles, and elements of increasingly large support, when written as products of 3-cycles, require increasingly many 3-cycles. The problem is that, naively, $H$ might have an elementary substructure which is a simple group. To eliminate such possibilities, it suffices to show that, uniformly in $n$ , $\Alt(n)$ has an $\emptyset$-definable conjugacy-invariant family of elements of small support, and also such a family of increasingly large support, and elements of the latter cannot be written as a uniformly bounded product of elements of the former. Similar arguments work for groups elementarily equivalent to an ultraproduct of finite simple groups of increasingly large Lie rank -- that is, ultraproducts of groups $G_i$ of Lie type such that for each $n$, for almost all $i$ the group $G_i$ has Lie rank at least $n$. The groups of Lie type each correspond to a Dynkin diagram. For twisted groups, such as ${}^2E_6(q)$, ${}^2F_4(q)$, etc., the Dynkin diagram has a symmetry which yields a `graph automorphism' of the corresponding untwisted group, essentially by permuting the root groups. One takes a product $\sigma$ of a graph automorphism and an appropriate `field automorphism' (arising from a power of the Frobenius), and, roughly speaking, takes the fixed points of $\sigma$ in the untwisted group (this description is not accurate -- see \cite[Chapter 13]{carter} for details.) \medskip Next, we consider soluble groups. \begin{theorem} [Wilson \cite{wilson2}] \label{wil2} There is an $L_{\gp}$-sentence $\sigma$ such that if $G$ is a finite group, then $G\models \sigma$ if and only if $G$ is soluble. \end{theorem} The sentence $\sigma$ asserts that there is no non-identity element $g$ which is a product of 56 commutators $[x,y]$ where each of $x,y$ is a conjugate of $g$. In one direction, it is clear that any soluble group satisfies this sentence $\sigma$ -- in fact, it satisfies the corresponding sentence with 56 replaced by any natural number. For suppose that $G$ is a group satisfying the above sentence $\sigma$, witnessed by $g\in G$. Let $N=\langle g\rangle^G$, the smallest normal subgroup of $G$ containing $g$. Then $g$ lies in the derived subgroup $N'$ of $N$, and hence $N'=N$, so $N$ is perfect and so not soluble, and hence $G$ is not soluble. In the other direction, Wilson uses Thompson's classification in \cite{thompson} of the {\em minimal} finite simple groups, that is, the minimal finite groups which are not soluble. Note that it is {\em not} true that a pseudofinite group is soluble if and only if it satisfies $\sigma$. For if $G$ is an ultraproduct of a family of finite groups of increasingly large derived length then these groups satisfy $\sigma$ so by {\L}os's theorem $G\models \sigma$, but clearly $G$ is not soluble. Recall that the (soluble) {\em radical} $ R(G)$ of a group $G$ is the subgroup generated by the soluble normal subgroups of $G$. Always $R(G)\triangleleft G$, and if $G$ is finite then $R(G)$ is soluble. \begin{theorem} [Wilson\cite{wilson2}] \label{wilsonsol2} There is an $L_{\gp}$-formula $\psi(x)$ such that if $G$ is a finite group then $\psi(G)=R(G)$. \end{theorem} The following questions appear to be open. \begin{question} \rm 1. Is there an $L_{\gp}$-sentence $\tau$ such that a finite group is nilpotent if and only if it satisfies $\tau$? 2. Is there an $L_{\gp}$ formula $\chi(x)$ which uniformly in finite groups defines the Fitting subgroup (the largest nilpotent normal subgroup)? \end{question} \section{Stability and generalisations, simple pseudofinite groups} \subsection{Simple pseudofinite groups} It follows fairly rapidly from the constructions of the groups of Lie type, as described for example in \cite{carter}, that the finite groups of Lie type are uniformly definable in the corresponding finite fields, or, in the cases of Suzuki and Ree groups, in the corresponding difference fields. For the Suzuki and Ree groups this is noted in \cite{hrushrav}. In fact, we have the following. We say here that a class $\mathcal{C}$ of finite structures is uniformly definable (interpretable) in a class $\mathcal{D}$ if there are cofinite $\mathcal{C}'\subseteq \mathcal{C}$ and $\mathcal{D}'\subseteq \mathcal{D}$ and a bijection $f:\mathcal{D}'\to \mathcal{C}'$ such that for each $M\in \mathcal{D}'$, $f(M)$ is definable (respectively, interpretable) uniformly in $M$, i.e. always using the same formulas, but possibly allowing parameters. There is a corresponding notion of {\em uniform parameter bi-interpretability} -- for details see \cite{ryten}. \begin{theorem}[Ryten]\label{rytenres} Any family of finite simple groups of any fixed Lie type (other than Suzuki and Ree groups) is uniformly bi-interpretable (over parameters) with the corresponding family of finite fields. (ii) The Ree groups ${}^2F_4(2^{2k+1})$ and the Suzuki groups ${}^2B_2(2^{2k+1})$ are uniformly parameter bi-interpretable with the difference fields $({\mathbb F}_{2^{2k+1}},x\mapsto x^{2^k})$, and the Ree groups ${}^2G_2(3^{2k+1})$ are uniformly parameter bi-interpretable with $({\mathbb F}_{3^{2k+1}}, x\mapsto x^{3^k})$. \end{theorem} Care is needed with the twisted groups. For example the unitary group PSU${}_n(q)$, which lives naturally as a subgroup of PSL${}_n(q^2)$, is bi-interpretable (uniformly in $q$) with the field ${\mathbb F}_q$. It is a consequence of the main theorem of \cite{cdm} that ${\mathbb F}_q$ is {\em not} uniformly interpretable in ${\mathbb F}_{q^2}$. It follows that the groups PSU${}_n(q)$ are {\em not} uniformly interpretable in the fields ${\mathbb F}_{q^2}$. Extending remarks in Example~\ref{exstable}, we have \begin{theorem} \label{psfsimple} (1) (Easy consequence of \cite{cdm}.) Any pseudofinite field has supersimple rank 1 theory. (2) (From \cite{h}, resting on earlier work of Chatzidakis, Hrushovski and Peterzil (see \cite{ch} and \cite{chp}) Let $p$ be a prime, and let $m,n\in \omega$ with $m\geq 1, n>1$, and $(m,n)=1$. Let $\mathcal{C}_{m,n,p}$ be the class of finite {\em difference fields} (fields equipped with an automorphism) of form $({\mathbb F}_{p^{kn+m}}, {\rm Frob}^k)$ where $k\in \omega$. Then any non-principal ultraproduct of $\mathcal{C}_{m,n,p}$ has supersimple rank 1 theory. \end{theorem} In view of Theorem~\ref{rytenres} (2), this has particular interest for us in the cases $(m,n,p)=(1,2,2)$ and $(m,n,p)=(1,2,3)$. It yields the following. \begin{corollary} [Hrushovski]\label{hrushryt} Any simple pseudofinite group has supersimple finite rank theory. \end{corollary} \begin{remark} \rm Theorem~\ref{rytenres} was recently used by Nies and Tent \cite{nt} to show that (1) finite simple groups are log-compressible, i.e., if $G$ is a finite simple group, there is a first order sentence $\phi$ in the language $L_{\gp}$, with unique model $G$, such that $\phi$ has length $O({\rm log} |G|)$, and more generally (2) for any finite group $G$ there is such a sentence $\phi$ of length $O(({\rm log}|G|)^3)$. \end{remark} \begin{remark} \rm The model theory of any non-principal ultraproduct $\Pi_{n\in {\mathbb N}} \Alt_n/\mathcal{U}$ is undecidable. The same holds for any non-principal ultraproduct $\Pi_{n\in {\mathbb N}} {\rm PSL}_n(q)/\mathcal{U}$. It seems hard to find a good reference, but see e.g. Section 6.3 of \cite{bunina}, or (originally) Ershov \cite{ershov}. \end{remark} \subsection{Generalised stability for pseudofinite groups} We aim here to give structural results for pseudofinite groups with stable, or more generally simple, or NIP, or NTP${}_2$, theory. \begin{theorem}[\cite{mt}] \label{mtNIP} (1) Let $\mathcal{C}$ be a class of finite groups such that all ultraproducts of members of $\mathcal{C}$ are NIP. Then there is $d\in \omega$ such that $|G:R(G)|\leq d$ for each $G\in \mathcal{C}$. (2) If $G$ is pseudofinite NIP group with a fixed finite bound on the lengths of centraliser chains then $G$ has an $\emptyset$-definable soluble normal subgroup of finite index. (3) Any pseudofinite group with stable theory has an $\emptyset$-definable soluble normal subgroup of finite index. \end{theorem} \begin{remark} \label{NIPsol} \rm 1. In (2), the conclusion is false without some assumption like that on centralisers. Indeed, we give an example ({\em cf.} Theorem~\ref{mtNIP}(2)) of an NIP pseudofinite group which is not soluble-by-finite. Let $G={\rm SL}_2({\mathbb Z}_p)$, and for each $k>0$ let $G_k$ be the open normal subgroup of $G$ of form $$G_k:=\{\begin{pmatrix}1+a & b \\ c & 1+d \end{pmatrix}: a,b,c,d\in p^k{\mathbb Z}_p\},$$ a {\em congruence subgroup} of $G$. Then the groups $G_k$ are uniformly definable in the NIP valued field $({\mathbb Q}_p,+,\times)$ (since $k$ corresponds to an element of the value group, which is interpretable), so the quotients $G/G_k$ are uniformly interpretable finite groups. Let $\mathcal{U}$ be a non-principal ultrafilter on $\omega$, and put $$G^*:=\Pi_{k\in \omega} (G/G_k)/\mathcal{U}.$$ Then $G^*$ is an NIP pseudofinite group. By $\omega_1$-saturation of ultraproducts, it has a normal subgroup $N$ such that $G^*/N\cong G$. In particular, $G^*$ is not soluble-by-finite. 2. Part (3) provides another route to the observation in the introduction that free groups are not pseudofinite. For by Sela's work they are known to be stable, and in the free non-abelian case they are clearly not soluble-by-finite. \end{remark} The proof of Theorem~\ref{mtNIP} makes essential use of Theorem~\ref{wilsonsol2}. {\em Sketch Proof of Theorem~\ref{mtNIP}.} (1) Let $G\in \mathcal{C}$. Let $\psi(x)$ be as in Theorem~\ref{wilsonsol2}. For $G\in \mathcal{C}$ let $\bar{G}=G/R(G)$, and put $S:=\Soc(\bar{G})$ (the direct product of the minimal normal subgroups). Then $S=T_1\times \ldots \times T_k$, where the $T_i$ are non-abelian finite simple groups. {\em Claim 1.} There is a bound on $k$ as $G$ ranges through $\mathcal{C}$. Indeed, for each $i$ pick $x_i\in T_i\setminus Z(T_i)$ and $y_i\in T_i$ with $[x_i,y_i]\neq 1$. For $w\subset \{1,\ldots,k\}$ put $z_w=\Pi_{j\not\in w} y_j$. Then $[x_j,z_w]=1 \Leftrightarrow j\in w$. Hence, the NIP assumption forces a bound on $k$. {\em Claim 2.} There is a bound on the Lie rank of any $T_i$ (or on $t$ if $T_i=\Alt_t$). This is proved essentially as in Claim 1, as otherwise some $T_i$ contains increasingly large direct powers of $\PSL_2$ or of $\Alt_4$. {\em Claim 3.} The $T_i$ have bounded size. If this was false, then groups $G\in\mathcal{C}$ would contain arbitrarily large finite simple groups of fixed Lie rank (by Claims 1 and 2 and the classification of finite simple groups) so some ultraproduct would be a simple pseudofinite group, and (e.g. by Theorem~\ref{rytenres}) would interpret a pseudofinite field. But as noted in Examples~\ref{exstable}, pseudofinite fields do not have NIP theory. By Claim 3, $|S|$ is bounded, and it follows easily that $|G:R(G)|$ is bounded. (2) We may suppose that $G=\Pi G_i/\mathcal{U}$ (an ultraproduct of finite groups), where each non-principal ultraproduct of the $G_i$ is elementarily equivalent to $G$. Thus by (1) there is a finite bound on $|G_i:R(G_i)|$. By stability of $G$ and the remarks before Theorem~\ref{psfsimple}, there is some $e\in\omega$ such that every centraliser chain in $G$ has length at most $e$, and hence the same holds for any $G_i$. By a result of Kukhro \cite{kuk}, there is a function $f$ such that each group $R(G_i)$ has derived length at most $f(e)$. It follows that $R(G)$ (also defined by $\psi(x)$) is soluble. \begin{example} \cite[Section 5]{mtstab} \rm (1) There is an $\omega$-stable pseudofinite group $G$ which is not nilpotent-by-finite. It has form $({\mathbb C},+)\rtimes \Gamma$ for some infinite but `small' $\Gamma \leq ({\mathbb C}^*,\cdot)$. This is a conglomeration of work of Chapuis, Simonetta, Khelif, and Zilber. The group has infinite Morley rank -- for Khelif has shown that any pseudofinite group of finite Morley rank is abelian-by-finite. (2) The `Mekler construction' gives, for any odd prime $p$, examples of pseudofinite $\omega$-stable groups which are nilpotent of class 2 and exponent $p$ but not finite-by-abelian-by-finite. For the Mekler construction, see \cite{hodges} or \cite{mekler}. The idea is to code graphs into nilpotent class 2 groups. Fix an odd prime $p$ and given a graph $\Gamma$ with vertex set $V$, let $G(\Gamma)$ be the group which is free nilpotent (on the generating set $V$) subject to being of class 2 and exponent 2, and subject to the relations $[u,v]=1$ whenever vertices $u,v$ are adjacent in $\Gamma$. Under reasonable conditions on $\Gamma$ (that it is a `nice graph'), properties such as stable and simple are transferred from $\Gamma$ to $G(\Gamma)$ even though $G(\Gamma)$ is not interpretable in $\Gamma$ (for simplicity, see \cite[Theorem 5.1]{baud}). Chernikov (personal communication) has shown that if $\Gamma$ is NIP then $G(\Gamma)$ is NIP, and it would be interesting to investigate which other model-theoretic conditions are preserved by the construction. \end{example} Next, we discuss pseudofinite groups with {\em simple} theory. Here, note that the examples (even supersimple of finite rank) include simple groups of Lie type over pseudofinite fields (by Corollary~\ref{hrushryt}) and also, for odd primes $p$, infinite extraspecial $p$-groups of exponent $p$, that is, groups $G$ of exponent $p$ such that $G'=Z(G)=\Phi(G)\cong C_p$, where $\Phi(G)$ is the Frattini subgroup of $G$. Extraspecial $p$-groups have SU rank 1, and are finite-by-abelian but not abelian-by-finite. They have infinite descending chains of centralisers, and do not have a smallest finite index definable subgroup. For more detail see the Appendix of Milliet \cite{milliet}, or \cite[Proposition 3.11]{ms}. The following result shows that ultraproducts of finite extraspecial groups are not simple unles at least one of the prime and the rank (of the elementary abelian group $G/Z(G)$) is bounded. \begin{proposition} For each $p,n\in {\mathbb N}^{>0}$ with $p$ prime, let $G_{p,n}$ be the extraspecial $p$-group of order $p^{2n+1}$, and let $\mathcal{U}$be an ultrafilter on the set of pairs $(p,n)$ such that for each $d\in {\mathbb N}$ there is $U\in \mathcal{U}$ such that for all $(p,n)\in U$ we have $p>d$ and $n>d$. Let $G:=\Pi_{p,n} G_{p,n}/\mathcal{U}$. Then $\Th(G)$ is not simple. \end{proposition} {\em Sketch Proof.} Let $Z:=Z(G)$ and $V=G/Z(G)$, an infinite abelian group. The commutator map defines a non-degenerate bilinear map $\beta:V\times V\to Z$ given by $\beta(uZ,vZ)=u^{-1}v^{-1}uv$. Since this is definable in $G$, and since $Z$ is the additive reduct of a pseudofinite field $K$, it follows from Granger \cite[Proposition 7.2.2]{granger} that $K$ is interpretable in $G$, as is the infinite-dimensional vector space structure of $V$ over $K$, and we may view $\beta$ as a definable symplectic bilinear form on $V$. By \cite[Proposition 7.4.1]{granger}, such structures are not simple. \bigskip Consider a class $\mathcal{C}$ of finite groups with all ultraproducts of $\mathcal{C}$ having simple theory. For $G\in \mathcal{C}$, $R(G)$ is uniformly $\emptyset$-definable (by \cite{wilson3}) and $\Soc(G/R(G))$ is a product of boundedly many non-abelian finite simple groups of bounded Lie rank, by variants of the proofs of Claims 1 and 2 above; see also Theorem~\ref{NTP2gp} below. \begin{question} \rm In this setting, must $R(G)$ have bounded derived length, as $G$ ranges through $\mathcal{C}$? \end{question} If we assume that all ultraproducts of $\mathcal{C}$ are {\em supersimple}, then the answer is positive, by the following result of Milliet, a significant strengthening of results in \cite{ejmr}. \begin{theorem} If $G$ is a pseudofinite group with supersimple theory, then $R(G)$ is definable and soluble (and likewise, if we assume $G$ has finite SU-rank, then $\Fitt(G)$ is definable and nilpotent). \end{theorem} Thus, if $G$ is pseudofinite with superstable theory then $G$ has soluble radical $R(G)$, and if $S=\Soc(G/R(G))$, then $S=T_1\times \ldots \times T_k$ where the $T_i$ are non-abelian finite or pseudofinite simple groups. If $\bar{S}$ denotes the preimage of $S$ in $G$ then $G/\bar{S}$ embeds in $\Aut(T_1\times \ldots\times T_k)$. We have not discussed properties of SU-rank, but note that finite groups have SU-rank 0, and that if $G$ has supersimple theory of finite SU-rank and $H\leq G$ is definable, than $\SU(G)=\SU(H)+\SU(G/H)$, where $G/H$ denotes the interpretable set of left cosets of $H$ in $G$. The next result gives some information on supersimple pseudofinite groups of small SU-rank. Note the currently essential use f the classification of finite simple groups (CFSG) in (3) -- it would be interesting to remove this. \begin{theorem} \label{ejmrsol} Let $G$ be a pseudofinite group with supersimple theory, and assume that $T^{\eq}$ eliminates the quantifier $\exists^{\infty}$, where $T={\rm Th}(G)$. (1) \cite{er} If $SU(G=1$ then $G$ has a finite index definable characteristic subgroup $N$ such that $N'$ is a finite subgroup of $Z(N)$ (so $G$ is (finite-by-abelian)-by-finite). (2) \cite{ejmr} If $SU(G)=2$ then $G$ is soluble-by-finite. (3) \cite{ejmr} (CFSG) If $G$ is a simple group and $SU(G)=3$ then $G \cong {\rm PSL}_2(K)$ for some pseudofinite field $K$. \end{theorem} Certain infinite (monomial) SU-rank versions of these results have recently been proved by Wagner. Parts (1) and (2) above are proved without the classification of finite simple groups. It should also be possible to remove the assumption on the quantifier $\exists^{\infty}$ here and also in Theorem~\ref{rankone} below. This assumption was natural in the context of \cite{ejmr} where the central context was that of groups with {\em measurable} theory, for which the assumption holds. \medskip We turn now to the NTP${}_2$ condition in the context of finite and pseudofinite groups. Here, we use the following consequence of the NTP${}_2$ condition. \begin{lemma}\cite[Lemma 4.3]{mt3} \label{l:NTP2} Let $G$ be an $\emptyset$-definable group in a structure with NTP${}_2$ theory, and $\psi(x,\bar{y})$ a formula implying $x\in G$. Then there is $k=k_\psi\in {\mathbb N}$ such that the following holds. Suppose that $H$ is a subgroup of $G$, $\pi: H\longrightarrow \Pi_{i\in J} T_i$ is an epimorphism to the Cartesian product of the groups $T_i$, and $\pi_j: H\longrightarrow T_j$ is for each $j\in J$ the composition of $\pi$ with the canonical projection $\Pi_{i\in J} T_i\to T_j$. Suppose also that for each $j\in J$, there is a subgroup $\bar{R}_j\leq G$ and group $R_j <T_j$ with $\bar{R}_j\cap H=\pi_j^{-1}(R_j)$, such that finite intersections of the groups $\bar{R}_j$ are uniformly definable by instances of $\psi(x,\bar{y})$. Then $|J|\leq k$. \end{lemma} In the theorem below and its proof, we view $\Alt_n$ as having Lie rank $n$. \begin{theorem}\label{NTP2gp} Let $\mathcal{C}$ be a class of finite groups all of whose ultraproducts are NTP${}_2$. Then there is $d\in {\mathbb N}$ such that the following hold, where $G\in \mathcal{C}$ and $R(G)$ is the soluble radical of $G$, with $\pi:G \to G/R(G)$ the natural map, and $S:=\Soc(G/R(G))$: the group $S$ is a direct product $T_1\times \ldots \times T_r$ of at most $d$ non-abelian simple groups $T_i$ which are of order at most $d$ or of Lie rank (possibly twisted) at most $d$, and $R(G)$ and the groups $\pi^{-1}(T_i)$ are uniformly definable, using finitely many formulas $\phi(x,\bar{y})$ as $G$ ranges through $\mathcal{C}$. \end{theorem} {\em Proof.} Using Wilson's Theorem~\ref{wilsonsol2}, we may suppose that $R(G)=1$ for $G\in \mathcal{C}$. {\em Claim 1.} $S$ is a direct product of a bounded number of simple groups. {\em Proof of Claim 1.} Suppose that for each $e\in {\mathbb N}$ there is $G\in \mathcal{C}$ such that $S=T_1 \times \ldots \times T_m$ for $m\geq e$, where the $T_i$ are non-abelian simple groups. By \cite[Corollary 1.5]{ls} (together with the Feit-Thompson Theorem) there is a constant $c$ that that if $G$ is a finite non-abelian simple group then every element of $G$ is a product of exactly $c$ conjugate involutions. In particular, there is $g=(g_1,\ldots,g_m)\in S$, where each $g_i$ has order 2, such that every element of $S$ is a product of $c$ conjugates of $g$. Since $S\triangleleft G$ it follows that $S$ is uniformly definable in $G$. Now, with $g$ as above and $I\subseteq \{1,\ldots,m\}$ let $g^{(I)}_j=g_j$ if $j\in I$, and $g^{(I)}_j=1$ otherwise. Put $g^{(I)}:=(g^{(I)}_1,\ldots,g^{(I)}_m)$. Let $\pi_I$ be the projection of $S$ onto the coordinates indexed by $\{1,\ldots,m\}\setminus I$, and $S_I:=\Ker(\pi_I)$. Then the elements of $S_I$ are exactly the products of at most $c$ conjugates in $S$ of $g^{(I)}$, so as $S$ is definable (uniformly as $G$ varies) so are the $S^{(I)}$. We may now apply the finitary version of Lemma~\ref{l:NTP2}, putting $H=S$ and $\bar{R}_i:=\pi_{\{i\}}^{-1}$ for each $i=\{1,\ldots,m\}$, to conclude that some ultraproduct of $\mathcal{C}$ has TP${}_2$ theory. \medskip Given Claim 1, write $S=T_1 \times\ldots \times T_r$, where $r\leq d$ and the $T_i$ are non-abelian simple. It remains to prove \medskip {\em Claim 2.} There is a bound on the Lie rank of the $T_i$. {\em Proof of Claim 2.} Since the $T_i$ are uniformly definable, it suffices to show that any infinite ultraproduct of finite simple groups of increasingly large Lie rank has TP${}_2$ theory. We give a proof for alternating groups -- the proof for classical groups of Lie type is very similar and is only sketched here. So let $\mathcal{U}$ be an ultrafilter on ${\mathbb N}$ and $H:=\Pi_{n\in {\mathbb N}} \Alt_n/\mathcal{U}$. We view $\Alt_n$ as acting on $[n]:=\{1,\ldots,n\}$. It is well-known that the permutation group $(\Alt_n,[n])$ is uniformly definable in the abstract group $\Alt_n$. Likewise, any $J\subset [n]$, is uniformly (in $n,J$) parameter-definable in $\Alt_n$ as a set of form $\Fix(g)$ for appropriate $g$. Hence, subgroups of $\Alt_n$ of form $(\Alt_n)_{(J)}:=\{g\in \Alt_n: g|_J={\rm id}|_J\}$ are uniformly definable. Now for increasingly large $m$ and $n>>m$, pick disjoint subsets $J_1,\ldots,J_m,K_{11},\ldots,K_{1m},\ldots,K_{m1},\ldots,K_{mm}$ of $[n]$ of size $m$. For each $i,j\in \{1,\ldots,m\}$ pick $a_{ij}\in \Alt_n$ with $J_i^{a_{ij}}=K_{ij}$. Also let $\psi(x,\bar{b}_i)$ be a formula defining $(\Alt_n)_{(J_i)}$. Let $\phi(x,\bar{b}_i a_{ij})$ be the formula expressing $x\in (\Alt_n)_{(J_i)}a_{ij}$. Then for each $i$ the formulas $\phi(x,\bar{b}_ia_{ij})$ are 2-inconsistent, and, essentially because of the disjointness of the $J_i$ and $K_{ij}$, for any $f:\{1,\ldots,m\}\to \{1,\ldots,m\}$, the set $\phi(x,\bar{b}_i a_{i,f(i)}): 1\leq i\leq m\}$ is consistent. It follows by compactness that $\mathcal{C}$ has a T{P${}_2$ ultraproduct, a contradiction. For the proof of Claim 2 when $H$ is an ultraproduct of classical groups there are several arguments, and we omit some details. Suppose for example that $H$ is an ultraproduct of groups of the form PSL${}_{n_i}(q_i)$ where $n_i \to \infty$. By the argument in \cite[Proposition 3.11]{barbina}, there is a uniformly definable set $C$ of pairs $(g,g')$ of transvections in PSL${}_n(q)$ such that each pair determines a point of projective space, and a uniformly definable equivalence relation $E$ on $C$ such that $(g,g')E(h,h')$ if and only if $(g,g')$ and $(h,h')$ determine the same projective point. We may thus identify the corresponding projective space with $C/E$, with $G$ acting on it by conjugation. The argument then continues as in the last paragraph. For the symplectic, orthogonal, and unitary groups similar results in \cite{barbina} can be applied. \begin{remark} \rm It follows from Theorem~\ref{NTP2gp} that if $G$ is a pseudofinite group with NTP${}_2$ theory then $G$ has an $\emptyset$-definable normal subgroup $R$ such that if $\bar{G}:=G/R$, then $\bar{G}$ has a definable normal subgroup $S$ (the group generated by the definable minimal normal subgroups of $\bar{G}$) which is a direct product of finitely many definable finite or pseudofinite simple groups. We do not know if $R$ must be soluble if $G$ has simple theory -- but note by Remark~\ref{NIPsol} (1) that in general $R$ need not be soluble, even assuming that $G$ has NIP theory. \end{remark} \subsection{Applications of generalised stability} We discuss several ways in which the model theory of pseudofinite groups has potential applications in finite group theory, or at least provides a model-theoretic viewpoint. There is overlap with Section 4 of \cite{mt} and Section 6 of \cite{garcia}. \medskip {\bf 1. Indecomposability.} First, we mention a version of the well-known `Zilber Indecomposability Theorem' for groups of finite Morley rank, itself a generalisation of a classical result on algebraic groups. The result is due to Wagner \cite[4.5.6]{wagner}, and the formulation below is in \cite[Remark 2.5]{er}. \begin{theorem}[Indecomposability Theorem] \label{indec} Let $G$ be a group interpretable in a supersimple finite $\SU$-rank theory, and let $\{X_i:i\in I\}$ be a collection of definable subsets of $G$. Then there exists a definable subgroup $H$ of $G$ such that: (i) $H\leq \langle X_i:i\in I\rangle$, and there are $n\in {\mathbb N}$, $\epsilon_1,\ldots,\epsilon_n\in \{-1,1\}$, and $i_1,\ldots,i_n \in I$, such that $H\leq X_{i_1}^{\epsilon_1}\ldots X_{i_n}^{\epsilon_n}$. (ii) $X_i/H$ is finite for each $i\in I$. \noindent If the collection of $X_i$ is setwise invariant under some group $\Sigma$ of definable automorphisms of $G$, then $H$ may be chosen to be $\Sigma$-invariant. \end{theorem} \begin{theorem}\cite[Theorem 4.2]{mt} \label{indecap} Let $\mathcal{C}_\tau$ be the family of finite simple groups of fixed Lie type $\tau$ (possibly twisted), and let $\phi(x,\bar{y})$ be an $L_{\gp}$-formula. Then there is $d=d(\phi,\tau)$ such that if $G\in\mathcal{C}_\tau$, $\bar{a}\in G^{|\bar{y}|}$, and $X=\phi(G,\bar{a})$ satisfies $|X|>d$, then $G$ is a product of at most $d$ conjugates of $X\cup X^{-1}$. \end{theorem} There are analogues of Theorem~\ref{indec} already in \cite{hp}, for groups uniformly definable in finite fields -- see e.g. \cite[Proposition 1.13]{hp}. Various consequences are given there -- for example, in Proposition 4.3, a new proof of a result of Nori on subgroups of GL${}_n(p)$ generated by elements of order $p$. A further application of such results is given by Lubotzky in \cite{lub}, in a proof of a result announced in \cite{kln}. Recall that, for $0<\epsilon\in {\mathbb R}$, a finite $k$-regular graph $\Gamma$ with vertex set $V$ is called an {\em $\epsilon$-expander} if for every $A\subset V$ with $|A|\leq \frac{1}{2}|V|$ we have $\partial A|\geq \epsilon|A|$, where $\partial A$ is the set of vertices outside $A$ with a neighbour in $A$. Suzuki groups have also been shown to satisfy the theorem below -- see \cite{bgt}. \begin{theorem} \cite{kln} There is $k\in {\mathbb N}$ and $0<\epsilon\in {\mathbb R}$ such that if $G$ is a finite simple group (not a Suzuki group), then $G$ has a set of $k$ generators for which the Cayley graph Cay$(G,S)$ is an $\epsilon$-expander. \end{theorem} In the approach to this theorem in \cite{lub}, a key step is the following result. As explained in \cite{lub}, it follows almost immediately from \cite{hp}, or from Theorem~\ref{indec}. \begin{theorem} \cite[Theorem 4.1]{lub} There is a function $f:{\mathbb N}\to {\mathbb N}$ such that if $G$ is a finite simple group of Lie type of rank $r$, but not of Suzuki type, then $G$ is a product of $f(r)$ copies of ${\rm SL}_2$. \end{theorem} \bigskip {\bf 2. Asymptotic classes.} The following notion was introduced by Elwes in \cite{elwes}, extending a 1-dimensional version explored in \cite{ms}. \begin{definition} \label{asymp}\rm Let $\mathcal{C}$ be a class of finite $L$-structures. Then $\mathcal{C}$ is an {\em $N$-dimensional asymptotic class} if the following hold. (i) For every $L$-formula $\phi(\bar{x}, \bar{y})$ where $l(\bar{x})=n$ and $l(\bar{y})=m$, there is a finite set of pairs $D \subseteq (\{0,\ldots,Nn\} \times {\mathbb R}^{>0}) \cup \{(0,0)\}$ and for each $(d, \mu) \in D$ a collection $\Phi_{(d,\mu)}$ of pairs of the form $(M, \bar{a})$ where $M \in \mathcal{C}$ and $\bar{a} \in M^m$, so that $\{ \Phi_{(d, \mu)} : (d, \mu) \in D \}$ is a partition of $\{ (M, \bar{a}): M \in \mathcal{C}, \bar{a} \in M^m \}$, and $$\big||\phi(M^n, \bar{a})| - \mu|M|^{\frac{d}{N}}\big| =o(|M|^{\frac{d}{N}})$$ as $|M| \rightarrow \infty$ and $(M, \bar{a}) \in \Phi_{(d,\mu)}$. (ii) Each $\Phi_{(d, \mu)}$ is $\emptyset$-definable, that is to say $\{ \bar{a} \in M^m : (M, \bar{a}) \in \Phi_{(d, \mu)}\}$ is uniformly $\emptyset$-definable across $\mathcal{C}$. \end{definition} The class of all finite fields is, by the main theorem of \cite{cdm}, a {\em 1-dimensional asymptotic class} in the sense of \cite{ms}. Likewise, by \cite{ryten} the classes $\mathcal{C}_{1,2,2}$ and $\mathcal{C}_{1,2,3}$ of difference fields of form $({\mathbb F}_{2^{2k+1}},x\mapsto x^{2^k})$ and $({\mathbb F}_{3^{2k+1}},x\mapsto x^{3^k})$ respectively are 1-dimensional asymptotic classes. Elwes showed that if $\mathcal{C}$ and $\mathcal{C'}$ are families of finite structures and $f:\mathcal{C}\to \mathcal{C}'$ is a bijection such that for each $M\in \mathcal{C}$, $M$ and $f(M)$ are uniformly parameter-free bi-interpretable, then $\mathcal{C}$ is an asymptotic class if and only if $\mathcal{C}'$ is. With some additional work (because of use of parameters to interpret the fields in the groups), this yields \begin{theorem}\cite{ryten} \label{rytenref} Let $\mathcal{C}_\tau$ be the class of all finite simple groups of fixed Lie type $\tau$. Then $\mathcal{C}_\tau$ is an $N$-dimensional asymptotic class for some $N$ (and the values of $\mu$ in the definition are rational). \end{theorem} It is shown in \cite{ms} that if $M$ is an ultraproduct of an $N$-dimensional asymptotic class then $\Th(M)$ is supersimple of rank at most $N$. Furthermore, it is possible, using the definability clause (ii) in Definition~\ref{asymp}, consistently to assign a pair $(d,\mu)$ to every definable set so that certain basic counting axioms are satisfied in $M$; we say that $\Th(M)$ is {\em measurable}. It follows from Theorem~\ref{rytenref} and \ref{simplegroup} that any simple pseudofinite group has measurable theory in this sense. Measurability for groups is discussed further in \cite{ms}, \cite{er} and \cite{ejmr}, but not explored here. \bigskip We know that classes $\mathcal{C}_\tau$ of finite simple groups of fixed Lie type are uniformly definable in finite (difference) fields. In fact, much more is definable. The asymptotic information in Theorem~\ref{rytenref} should have applications through the following result (see also Theorem~\ref{lmtmax} below). For the notion of restricted weight, see the discussion above \cite[Proposition 4.12]{lmt}. \begin{proposition} \cite[Proposition 4.12]{lmt} Let $\mathcal{C}_\tau$ be a class of finite simple groups $G(q)$ of fixed Lie type $\tau$, and let $V(\lambda)$ be an irreducible ${\mathbb F}_qG(q)$-module of restricted weight $\lambda$, with the action of $G(q)$ on $V(\lambda)$ given by $\rho(q)$. Then the structures $(G(q), V_\lambda(q),\rho(q))$ are uniformly definable in the fields ${\mathbb F}_q$ or in corresponding difference fields. \end{proposition} The following result is proved in \cite[Proposition 2.2]{psw}, with the easy (ii) added in \cite[Theorem 4.7]{mt}. We do not give background on generic types for groups definable in simple theories, but refer to \cite{wagner} or \cite{psw}. In (ii), $G^{\circ}_M$ denotes the intersection of the $M$-definable subgroups of $G$ of finite index. \begin{theorem}\label{3gens} Let $T$ be a simple theory over a countable language, $\bar{M}$ an $\omega_1$-saturated model of $T$ with a countable elementary substructure $M$, and $G$ an $\emptyset$-definable group in $\bar{M}$. Let $p_1,p_2,p_3$ be three principal generic types of $G$ over $M$. (i) There are $g_1,g_2\in \bar{M}$ such that $g_i\models p_i$ for $i=1,2$, $g_1$ and $g_2$ are forking-independent over $M$, and $g_1g_2\models p_3$. (ii) If $r\in S_G(M)$ has realisations in $G_M^o$ then there are $a_i\in G$ with $a_i\models p_i$ (for $i=1,2,3$) such that $a_1a_2a_3\models r$. \end{theorem} Using the asymptotic information in Theorem~\ref{rytenref}, this easily yields the following. \begin{corollary}\label{pswcor} Let $\mathcal{C}_\tau$ be as in Theorem~\ref{indecap}, and let $\phi_i(x,\bar{y})$ be formulas for $i=1,2,3$. Then there is $\mu\in {\mathbb Q}^{>0}$ such that for any sufficiently large $G\in \mathcal{C}_\tau$ and $\bar{a}_1,\bar{a}_2,\bar{a}_3\in G^{|\bar{y}|}$, if $|\phi(G,\bar{a}_i)|\geq \mu |G|$ for each $i$, then $$\phi_1(G,\bar{a}_1).\phi_2(G,\bar{a}_2).\phi_3(G,\bar{a}_3)=G.$$ \end{corollary} The proof shows in addition that $|\frac{\phi_1(G,\bar{a}_1).\phi_2(G,\bar{a}_2)|}{|G|}\to 1$ as $|G|\to \infty$. We remark that the same result follows from Nikolov-Pyber \cite{np}, where it is rapidly derived from the following result of Gowers (and the Nikolov-Pyber result is about arbitrary sufficiently large subsets of $G$, not necessarily definable). \begin{proposition} (\cite{gowers}, see also \cite{np}) Let $G$ be a group of order $n$ such that the minimal degree of a nontrivial representation is $k$. If $A,B,C$ are three subsets of $G$ such that $|A|.|B|.|C|>\frac{n^3}{k}$, then there is $(a,b,c)\in A\times B\times C$ such that $ab=c$. \end{proposition} In particular, if $w(x_1,\ldots,x_d)$ is a non-trivial group word, then $w$ defines a map $G^d\to G$ by evaluation, and we denote the image of $w$ by $w(G)$. For example, if $w(x_1,x_2)=x_1^{-1}x_2^{-1}x_1x_2$ then $w(G)$ is the set of commutators of $GH$. Using a result of Larsen \cite{larsen} (with an earlier version due to Borel) which says that in simple algebraic groups the word map is dominant, Corollary~\ref{pswcor} yields \begin{theorem} Let $w_1,w_2,w_3$ be non-trivial group words, and $\mathcal{C}_\tau$ a family of finite simple groups of fixed Lie type. Then $w_1(G)w_2(G)w_3(G)=G$ for sufficiently large $G\in \mathcal{C}_\tau$. \end{theorem} \begin{remark} \rm 1. There has been considerable recent literature on word maps, with much stronger results proved. For example, by \cite{lst}, if $w_1,w_2$ are non-trivial words, and $G$ is {\em any} sufficiently large finite simple group, then $w_1(G)w_2(G)=G$. For finite quasisimple groups (groups $G$ such that $G=G'$ and $G/Z(G)$ is non-abelian simple) this does not hold in general, but for any three non-trivial words we have $w_1(G)w_2(G)w_3(G)=G$ if $G$ is sufficiently large relative the the $w_i$ -- see \cite{lst2}. The famous Ore Conjecture states that if $G$ is a non-abelian finite simple group then every element of $G$ is a commutator. This has now been proved -- see \cite{lo}. 2. If $w(x_1,\ldots,x_d)$ is a group word, Theorem~\ref{rytenref} can be applied, within a family $\mathcal{C}_\tau$ of finite simple groups, to the formula $\phi(\bar{x},y)$ of form $w(x_1,\ldots,x_d)=y$, to give uniformity on the asymptotic sizes of the preimages of the word map $w:G^d \to G$ for $G\in \mathcal{C}_\tau$. \end{remark} \bigskip {\bf 3. Towards CFSG?} Given that pseudofinite simple groups have supersimple finite rank theory, one might (ambitiously) hope to classify them, under the additional assumption of supersimplicity, {\em without} using the classification of finite simple groups (CFSG). More generally, one might hope, without CFSG, to describe infinite families of finite simple groups all of whose ultraproducts are supersimple of finite rank. This is in the spirit of the Cherlin-Zilber Algebraicity Conjecture, which asserts that any simple group of finite Morley rank is isomorphic to a simple algebraic group over an algebraically closed field. Parts (1) and (2) of Theorem~\ref{ejmrsol} are in this spirit. One route in this direction would be to classify, without CFSG, families of finite simple groups (with supersimple ultraproducts) with a BN pair. In a major piece of work, Tits and Weiss \cite{tw} classified `Moufang' generalised polygons. Dello Stritto used this to show that each of the parametrised families of finite Moufang generalised polygons is an asymptotic class. This and further work of dello Stritto yields a description of groups with supersimple theory of finite SU-rank which have a definable spherical Moufang BN pair of Tits rank at least 2. \section{Pseudofinite permutation groups} There are the beginnings of a structure theory of pseudofinite permutation groups, and of the model theory of families of finite permutation groups, in part under additional model-theoretic hypotheses. Recall that a permutation group $G$ on a set $X$ (here written $(G,X)$) is {\em primitive} if there is no proper non-trivial $G$-invariant equivalence relation on $X$, and is {\em definably primitive} if there is no proper non-trivial {\em definable} $G$-invariant equivalence relation on $X$. In finite permutation group theory, and to a lesser extent infinite permutation group theory, primitive permutation groups act as building blocks for all permutation groups, and many questions are reduced to problems on primitive permutation groups. Mimicking a result from \cite{mp} in the finite Morley rank case, Elwes and Ryten used Theorem~\ref{indec} to prove the following. \begin{proposition} \label{defprim} Let $(G,X)$ be a definably primitive permutation group definable in a supersimple finite rank theory $T$ such that $T^{\eq}$ eliminates $\exists^{\infty}$, and suppose that for $x\in X$ the point stabiliser $G_x$ is infinite. Then $G$ is primitive on $X$. \end{proposition} In a fundamental result, Hrushovski \cite{hrush} described possible definable transitive group actions on a strongly minimal set in a stable theory. Our nearest analogue in the pseudofinite case is the following, with the classification of finite simple groups currently needed in the description of case (3). \begin{theorem}\label{rankone} Let $(X,G)$ be a definably primitive pseudofinite permutation group in a supersimple finite rank theory which eliminates $\exists^{\infty}$, and suppose that $\rk(X)=1$. Let $S=\Soc(G)$. Then one of the following holds. (i) $\rk(G)=1$, and $S$ is divisible torsion-free abelian or elementary abelian, has finite index in $G$, and acts regularly on $X$. (ii) $\rk(G)=2$. Here $S$ is abelian so regular and identified with $X$. There is an interpretable pseudofinite field $F$ with additive group $X$, and $G\leq {\rm AGL}_1(F)$ (a subgroup of finite index), in the natural action. (iii) $\rk(G)=3$. There is an interpretable pseudofinite field $F$, $S={\rm PSL}_2(F)$, ${\rm PSL}_2(F)\leq G \leq {\rm P}\Gamma{\rm L}_2(F)$, and $X$ can be identified with ${\rm PG}_1(F)$ in such a way that the action of $G$ on ${\rm PG}_1(F)$ is the natural one. \end{theorem} We take the opportunity to fill a gap at the end of the proof of Theorem~\ref{rankone}, pointed out by Wagner. Right at the end of the proof of Lemma 5.15 of \cite{ejmr}, at the end of Section 5, it is asserted that $|G:{\rm PSL}_2(F)|$ is finite (to ensure $SU(G)=3$), and in particular if $B$ is a definable group of automorphisms of $F$ then $B$ is finite. The reason given is that otherwise there would be $b\in B$ such that $\Fix(b)$ is an infinite (definable) subfield of $F$, contradicting that $T$ has finite rank. This argument is not clear -- {\em a priori} all elements of $B$ could have the same finite fixed field. However, it can be shown that in such a case the orbits of $B$ on $F$ would be the classes of a definable equivalence relation on $F$ with infinitely many infinite classes, contradicting the assumption that $SU(F)=1$. In \cite{bc} Borovik and Cherlin answer a question first raised in \cite[Problem 1.6]{bt}, showing that there is a function $:{\mathbb N} \to {\mathbb N}$ such that if $(G,X)$ is a primitive permutation group of finite Morley rank then $RM(G) \leq f(RM(X))$, where $RM$ denotes Morley rank. The proof uses the O'Nan-Scott-Aschbacher analysis of \cite{mp}, but, remarkably, though there is no classification of simple groups of finite Morley rank, uses many of the difficult tools developed with such a classification in mind. There is an analogous result for definably primitive permutation groups in o-minimal structures (where there is a classification of definably simple definable groups, due to Peterzil, Pillay, and Starchenko) in \cite{mmt}. In the pseudofinite case, we pose the following question. It is also raised in \cite{ejmr}, where Theorem 6.2 provides partial information, and material in \cite{lmt} should yield an answer. \begin{problem} \rm Show that there is a function $f:{\mathbb N} \to {\mathbb N}$ such that if $(G,X)$ is a pseudofinite definably primitive definable permutation group in a supersimple theory of finite SU-rank then $SU(G) \leq f(SU(X))$. \end{problem} Given the rich literature on finite primitive permutation groups, it is natural to attempt to {\em classify} primitive pseudofinite permutation groups. This was tackled in \cite{lmt}, with the main results from there sketched below. Recall first that a transitive permutation group $(G,X)$ is primitive if and only if each point stabiliser $G_x$ (for $x\in X$) is a maximal subgroup of $G$ -- in fact, the lattice of $G$-congruences on $X$ is naturally isomorphic to the lattice of groups between $G_x$ and $G$. If $G$ is transitive on $X$, then an {\em orbital graph} of $G$ on $X$ is a graph with vertex set $X$ and edge set some $G$-orbit on the set of unordered 2-element subsets of $X$. The following useful criterion for primitivity, due to D.G. Higman, is well-known. \begin{proposition} \cite{higman} Let $G$ be a transitive permutation group on a set $X$. Then the following are equivalent. (1) $G$ is primitive on $X$, (2) every orbital graph of $(G,X)$ is connected. \end{proposition} The following is now an elementary exercise. \begin{proposition} \cite{lmt} Let $(G,X)$ be an $\omega$-saturated transitive pseudofinite permutation group. Then the following are equivalent. (1) $(G,X)$ is primitive. (2) If $x\in X$ then $G_x$ is boundedly maximal in $G$, that is, there is $d\in {\mathbb N}$ such that if $g,h\in G\setminus G_x$ then there are $x_1,\ldots,x_{d+1}\in G_x$ and $\epsilon_1,\ldots,\epsilon_d\in \{\pm 1\}$ such that $h=x_1g^{\epsilon_1}x_2\ldots x_d g^{\epsilon_d}x_{d+1}$. (3) There is $e\in {\mathbb N}$ such that each orbital graph of $(G,X)$ is connected of diameter at most $e$. \end{proposition} The following question was raised in \cite{lmt}. \begin{question} \rm Is there a primitive pseudofinite permutation group with infinite point stabiliser such that there is no finite bound on the diameters of the orbital graphs? By the last theorem, such a structure will not be $\omega$-saturated. \end{question} In \cite{lmt} a description, close to a full classification, is given of primitive $\omega$-saturated pseudofinite permutation groups. It is involved, and we omit the details. A key ingredient in \cite{lmt} is to consider pairs $(G,H)$ where $G$ is a finite simple group of Lie type and $H$ is a maximal (proper) subgroup of $G$ (named by a unary predicate). This is equivalent to considering the group $G$ together with a definable primitive action of $G$ on a set $X$, namely the set of left cosets of $H$ in $G$. (A permutation group $G$ on $X$ is {\em primitive} if there is no proper non-trivial $G$-invariant equivalence relation on $X$; this is equivalent to point stabilisers being maximal subgroups.) If $G=G(q)$ is a simple group of Lie type and $q=(q')^r$, then a {\em subfield subgroup} of $G$ is one of the form $G(q')$ (so of the same Lie type), embedded naturally. Such subgroups can be maximal if $r$ is prime. \begin{theorem} \cite{lmt} \label{lmtmax} Let $\tau$ be a fixed Lie type, and let $\mathcal{C}_{\tau,d}$ be the set of pairs $(G,H)$ where $G$ is a finite simple group of Lie type $\tau$, $H$ is a maximal subgroup of $G$, and if $H$ is a subfield subgroup then the corresponding field extension has degree at most $d$. Then (1) the class $\mathcal{C}_{\tau,d}$ is uniformly definable in the corresponding family of fields or difference fields, that is, there are finitely many tuples of formulas which serve (with suitable choice of parameters) to define all such pairs; (2) any non-principal ultraproduct of such a family $\mathcal{C}_{\tau,d}$ will be a pair $(G^*,H^*)$ with supersimple finite rank theory, such that $H^*$ is maximal in $G^*$. \end{theorem} This theorem was mis-stated in \cite[Corollary 4.11]{lmt}, for the subgroups PSU$(n,q)$ are maximal but not uniformly definable in PSL$(n,q^2)$ -- see the comments after Theorem~\ref{rytenres} above. The pair $(G,H)$ is uniformly definable in the (difference) field, but not, in a few special cases such as this, in the larger group $G$. The last assertion in (2) above (maximality of $H^*$ in $G^*$) follows from the remaining assertions, together with an argument using Theorem~\ref{indec}. This was used in \cite{lmt} to give a description of all $\omega$-saturated pseudofinite primitive permutation groups, that is $\omega$-saturated pseudofinite pairs $(G,H)$ with $H$ a maximal subgroup of $G$ which is {\em core-free}, that is, satisfies $\bigcap_{g\in G}H^g=\{1\}$. Essentially, this is equivalent to describing families $\mathcal{F}_d$ of {\em finite} primitive permutation groups $G$ on sets $X$ such that, for every orbit $E$ of $G$ on the set $X^{[2]}$ of unordered 2-subsets of $X$, the graph on $X$ with edge set $E$ is connected of diameter at most $d$. \section{Further directions} The following well-known question, raised by Sabbagh, has been open for a long time. \begin{question} \rm Is there a finitely generated pseudofinite group? \end{question} For some discussion of this question, see Section 3 of \cite{ohp} (for example Proposition 3.9). The latter paper has a number of interesting results on pseudofinite groups somewhat disjoint to this survey, such as the following analogue of the Tits Alternative. \begin{theorem} \cite[Theorem 4.1]{ohp} Let $G$ be an $\omega$-saturated pseudofinite group. Then either $G$ contains a free subsemigroup of rank 2, or $G$ is nilpotent-by-(uniformly locally finite). \end{theorem} Motivated by foundational questions in physics, Zilber \cite{zilber} has asked the following question. See also \cite{pillay-bohr} for a discussion of related topics on pseudofinite groups. \begin{question}\rm (Zilber) Can an ultraproduct of finite groups have SO${}_3({\mathbb R})$ (or any compact simple real Lie group) as a quotient? More generally, it would be interesting to identify positive sentences of $L_{\gp}$ which hold of all finite groups but not of all groups. Here a sentence is positive if it is equivalent to one in prenex normal form with only the propositional connectives $\wedge$ and $\vee$; such sentences are preserved by group homomorphisms. \end{question} The following theorem answers a question raised in conversation by G. Levitt. The result may already be known. \begin{theorem} \label{levittq} (i) Let $S$ be the group of all permutations of a countably infinite set $X$. Then $S$ does not embed in any pseudofinite group. (ii) There is a finitely generated group which does not embed in any pseudofinite group. \end{theorem} \medskip {\em Proof.} (i) Let $\sigma$ be the sentence $$\exists f\exists g \exists h([f^2,g]=1 \wedge [f,g]\neq 1\wedge h^{-1}fh=f^2).$$ Suppose $G\models \sigma$, with witnesses $f,g,h$. Then $C_G(f^2)>C_G(f)$ and $h^{-1}C_G(f)h=C_G(f^2)$. Hence $h$ has infinite order, so $G$ is infinite. Thus, if $H$ is a finite group, then $H\models \neg \sigma$, so every pseudofinite group satisfies $\neg \sigma$. As $\neg \sigma$ is universal, every group which embeds in a pseudofinite group satisfies $\neg \sigma$. However, we claim that $S={\rm Sym}(X)\models \sigma$, where $X$ is a countably infinite set. Indeed, write $X=\bigcup_{i\in\omega} X_i$ as a disjoint union of infinite co-infinite subsets of $X$. For each $i$ put $X_i:=\{x_{ij}:j\in {\mathbb Z}\}$. Let $f$ act on $X$ by putting $f(x_{ij})= x_{i,j+1}$ for each $i,j$. Since $f$ and $f^2$ have the same cycle type (infinitely many infinite cycles and no other cycles) they are conjugate, that is, there is $h\in S$ with $h^{-1}fh=f^2$. Let $g$ be the element of $S$ such that $x_{0,2i}^g=x_{0,2i+2}$, with $g$ fixing all other elements of $X$. Then $g\in C_G(f^2)\setminus C_G(f)$, as required. (ii) The finitely generated subgroup $\langle f,g,h\rangle$ of $S$ also satisfies $\sigma$, so does not embed in any pseudofinite group. \begin{remark} \rm If $G$ is a locally finite group then $G$ embeds in a pseudofinite group. Indeed, we may suppose $G$ is infinite. Let $\Delta$ be the atomic diagram of $G$, and $T$ be the theory of finite groups. Then clearly $T\cup \Delta$ is consistent, and any model of it is an infinite pseudofinite group which embeds $G$. This is a special case of a result of Malcev that if $G$ is a group then $G$ embeds in some ultraproduct of the finitely generated subgroups of $G$. \end{remark} Finally, in \cite{ba}, Bello Aguirre has begun an investigation into pseudofinite {\em rings}, by giving the following complete description of the generalised stability properties of pseudofinite residue rings. Similar results, but from a different viewpoint (quotients of prime ideals in non-standard elementary extensions of $({\mathbb Z},+,\times)$) have been obtained by D'Aquino and Macintyre. \begin{theorem} \cite{ba} Let $\mathcal{U}$ be a non-principal ultrafilter on ${\mathbb N}$ and $F$ be the ring $\Pi_{n\in {\mathbb N}} {\mathbb Z}/n{\mathbb Z} /\mathcal{U}$. Then exactly one of the following holds, where $T=\Th(F)$. (1) $T$ is NIP and there is a finite set $S$ of primes and some $U\in \mathcal{U}$ such that for $n\in U$, every prime divisor of $n$ lies in $S$. (2) $T$ is supersimple of finite rank, and there is $d\in {\mathbb N}$ and $U\in \mathcal{U}$ such that each $n\in U$ is a product of at most $d$ prime powers, each with exponent at most $d$. (3) $T$ is NTP${}_2$ but not simple or NIP, and there is $U\in \mathcal{U}$ and $d\in {\mathbb N}$ such that each $n\in U$ has at most $d$ prime divisors, but the conditions in (1) and (2) do not hold. (4) $T$ is TP${}_2$, and for every $d\in {\mathbb N}$ there is $U=U_d\in \mathcal{U}$ such that each $n\in U$ has at least $d$ distinct prime divisors. \end{theorem} The proof uses some model theory of $p$-adically closed fields and of their ultraproducts. A key point in (2) is that ${\mathbb Z}/p^d{\mathbb Z}$ is, for fixed $d$, uniformly (in $p$) coordinatised by ${\mathbb Z}/p{\mathbb Z}$. The proof of the TP${}_2$ condition in (4) uses Proposition~\ref{ntp2crit}. The arguments in case (2) have more recently been extended by Bello Aguirre to prove the following. \begin{theorem} Let $d\in {\mathbb N}^{>0}$. Then the collection of all residue rings ${\mathbb Z}/p^d{\mathbb Z}$ forms a $d$-dimensional asymptotic class. \end{theorem}
\subsection{Background} The cost incurred while traversing a vertex via two consecutive edges of different colors is called \emph{traversal cost} and it depends only on the colors of the traversed edges. This cost leads to two different global cost measures that appeared in the literature under the names of \emph{reload cost} and \emph{changeover cost}. The reload cost concept is defined in \cite{wirth2001reload} and it received attention only recently, although it has numerous applications. For instance, a color may represent the mode of transportation in an intermodal cargo transportation network. The traversal cost corresponds to the cost of transferring cargo from one carrier to another. Another application is in energy distribution networks, where the energy transfer from one carrier to another one, such as the conversion of natural gas from liquid to gas state, results in loss of energy. In telecommunications, traversal costs arise in numerous settings. For instance, routing in a heterogeneous network requires switching among different technologies such as cables, fibers, and satellite links. This switching cost can be modeled by traversal costs. Even within the same technology, switching between different providers, for instance switching between different commercial satellite providers in satellite networks, leads to a switching cost. All applications hitherto mentioned can be modeled using traversal costs where an edge-colored graph is given as input, and this is the focus of the works in the literature, e.g. \cite{wirth2001reload, galbiati2008complexity, GGM14mincyclecover, gourves2010dmtcs, AGM11minreloadpathstoursflows, gamvros2012reload, GGM11minchangeover, GSVZ14}. However, problems of finding a proper edge coloring so as to minimize the reload (or changeover) cost have important applications as well. For instance, recently, cognitive radio networks (CRN) have gained increasing attention in the communication networks research community. Unlike other wireless technologies, CRNs are envisioned to operate in a wide range of frequencies. Therefore, switching from one frequency band to another frequency band in a CRN has a significant cost in terms of delay and power consumption \cite{gozupek2013spectrum}. An optimal allocation of frequencies to the wireless links in CRNs so that the switching cost is minimized, corresponds to a proper edge coloring minimizing the traversal cost. In this work we focus on this type of problems. The reload cost refers to the sum of the traversal costs of a set of paths in a graph, whereas the changeover cost does not depend on the amount of commodity (or number of paths) traversing a vertex. The works \cite{wirth2001reload,galbiati2008complexity} consider the problem of finding a spanning tree having minimum diameter with respect to reload cost. The paper \cite{GGM14mincyclecover} considers the \emph{minimum reload cost cycle cover} problem, which is to find a set of vertex disjoint cycles spanning all vertices, with minimum reload cost. In \cite{gourves2010dmtcs}, the authors study the problem of finding a path, trail, or walk of minimum reload cost between two given vertices. They consider (a)symmetric reload costs and reload costs with(out) triangle inequality. The paper \cite{gamvros2012reload} studies the problem of finding a spanning tree that minimizes the sum of reload costs over the paths between \emph{all} pairs of vertices. The paper \cite{AGM11minreloadpathstoursflows} presents various path, tour, and flow problems related to reload costs. One of the problems studied in that work is the \emph{minimum reload cost path-tree}, which is to find a spanning tree that minimizes the reload cost from a given root vertex to all other vertices. The paper \cite{GGM11minchangeover} studies a closely related, yet different problem, called \emph{minimum changeover cost arborescence} in which the goal is to find a spanning tree that minimizes the changeover cost from a given root vertex to all other vertices. The work in \cite{GSVZ14} considers the same problem and derives several inapproximability results, as well as polynomial-time algorithms for some special cases. In \cite{GSSZ14-ChangeoverTreewidth} these special cases are extended to show that the problem is polynomial-time solvable in bounded treewidth graphs. \subsection{Our Contribution and Research Directions} In this paper, we consider a different problem and focus on proper edge coloring of a given graph such that the reload/changeover cost is minimized. To the best of our knowledge, this paper is the first study of this family of problems. Specifically, we formulate two pairs of problems. In the first pair of problems, given a set of paths comprising a graph, the goal is to find a proper edge coloring of the graph so that the reload (resp. changeover) cost is minimized. In the second pair of problems, given a graph and a root vertex, the goal is to find proper edge coloring and a spanning tree of the graph so that the reload (resp. changeover) cost from the root vertex to all other vertices is minimized. We present several hardness results as well as polynomial-time solvable special cases of these problems. Specifically, we show that the first pair of problems are hard to approximate in general, within any polynomial-time computable function of the input length, and this result is valid when the traversal costs are unbounded. When the traversal costs are bounded, we prove that the problems remain $\nph$ even when the underlying network is a star. However, we prove that this pair of problems are polynomial-time solvable in trees when the degrees of the vertices are bounded. We then prove that the second pair of problems are $\apxh$ under bounded traversal costs in directed graphs. On the positive side, for these problems, we present a polynomial-time algorithm on trees (where both the degrees, and traversal costs are unbounded). We extend this algorithm to graphs where the difference between the number of edges and the number of vertices is constant, i.e. graphs that are in some sense close to trees. However, this extension does not cover cactus graphs, which have treewidth $2$. To solve the problem for other special graph classes such as cactus graphs or bounded treewidth graphs is one possible research direction. Another interesting research direction is to analyze these problems from the perspective of parameterized complexity where a few important and practical parameters are the treewidth of the graph, the number of colors, and the ratio of the largest traversal cost to the smallest non-zero traversal cost. \section{Introduction}\label{sec:Intro} \input{introduction} \section{Preliminaries} \label{sec:Preliminaries} \input{preliminaries} \section{Hardness Results}\label{sec:Herdness} \input{hardness} \section{Polynomial-time Solvable Cases}\label{sec:Algorithms} \input{algorithms} \small \input{Main.bbl} \end{document}
\section{} \section{introduction} The black hole information paradox \cite{Hawking:1976ra} is one of the most profound problems in physics, which might lead to a deeper understanding of the relation between general relativity and quantum theory. If radiation from a black hole is thermal, the final state of black hole should be a mixed state even for a black hole originating from a gravitationally collapsing pure state. This process is forbidden in unitarity of quantum mechanics. Therefore, it is expected that the radiation from a black hole would be non-thermal. Susskind, Thorlacius and Ugrum proposed the \textit{black hole complementarity principle} \cite{Susskind:1993if,tHooft:1990fkf,Susskind:1993mu}, which gives the phenomenological picture for the evaporation of black hole that explains how the non-thermal radiation could be emitted from a black hole. This proposal is consistent with three postulates, which are briefly given as follows: (postulate 1) Hawking radiation is in a pure state, (postulate 2) outside the region near the horizon of a massive black hole, physics can be described by an effective field theory of general relativity plus quantum field theory, and (postulate 3) a black hole is regarded as a quantum system with discrete energy levels whose number is the exponential of the Bekenstein entropy \cite{Bekenstein:1974ax} of black hole. In 2012, however, Almheiri, Marolf, Polchinski and Sully (AMPS) pointed out in Ref. \cite{Almheiri:2012rt} that postulate 1, postulate 2, and the equivalence principle are mutually inconsistent for an \textit{old black hole} \cite{Page:1993df, Page:1993wv, Page:2013dx} and idea that we briefly review here. Let us consider an old black hole with early Hawking radiation A, late Hawking radiation B and infalling quanta behind the horizon C. A and B have to be fully entangled so that the final state of the black hole is a pure state (postulate 1). On the other hand, according to quantum field theory in curved spacetime, B and C, pair-created particles, are also fully entangled (postulate 2). That is, according to postulate 1 and 2, B should be fully entangled simultaneously with both A and C. This contradicts with the {\it monogamy of entanglement} that forbids any quantum system being entangled with two independent systems fully and simultaneously. AMPS then proposed ``{\it firewalls}", high-energy quanta at horizons energetic enough to break the entanglement of Hawking pairs, which would get rid of the inconsistency between postulate 1 and 2. However, the existence of firewalls implies that the free falling observer going across the horizon has a dramatic experience: the observer burns up at the horizon. That is, firewalls amounts to abandoning the equivalence principle. \begin{figure}[t] \begin{center} \includegraphics[keepaspectratio=true,height=50mm]{fig1.eps} \end{center} \caption{ The infalling mode near the horizon, C on the hyper surface $\Sigma$, can hold coherence, whereas the infalling mode in the vicinity of the singularity, C on the hyper surface $\Sigma'$, exits the particle horizon (dashed line) and loses causal contact as a whole, which leads to the decoherence of the infalling mode. As a result, the entanglement of the Hawking pairs disappears and its state becomes separable. }% \label{061001fig} \end{figure} In this paper a sufficient reason for rejecting the AMPS firewall concept as a solution to the black hole information paradox is presented. It was previously pointed out that the black hole information paradox only manifests limitations of the semiclassical theory, rather than presents a conflict between any fundamental principles \cite{Nomura:2016qum}. It was proved that firewalls are excluded by Einstein's field equations for black holes of mass exceeding the Planck mass \cite{Abramowicz:2013dla}, and demonstrated that the AMPS argument is based on an over-counting of internal black hole states including those that are singular in the past \cite{Page:2013mqa}. Here we show that an infalling mode inside a black hole C is infinitely squeezed due to the gravitational effect of a black hole, which makes the infalling mode highly sensitive to decoherence \cite{footnote1} and leads to the loss of its entanglement with the outgoing mode B (Fig. \ref{061001fig}). This means that there would be no violation of monogamy of entanglement around a black hole and the black hole complementarity principle can be consistent with the equivalence principle. The plan of this paper is as follows. In Sec. II we will introduce a quantum state around a black hole formed from gravitational collapse and will describe how we calculate the time evolution of the quantum state. The resolution to the firewall paradox is described in Sec. III. We will show that the quantum state of a Hawking pair, which is initially entangled state, would become a separable state due to environment-induced decoherence (see e.g., \cite{Kieferdeco2} for the review of decoherence). In Sec. IV we will confirm the consistency between our proposal, explaining how the Hawking pair evolves to a separable state from an initially entangled state, and the previous works that investigated how the purity of the Hawking radiation will be realized. Sec. V is dedicated to conclusions. \section{formalism} The Unruh vacuum state \cite{Unruh:1976db} is the quantum state on an eternal black hole spacetime which models the late time properties of the \textit{in vacuum} of a collapsing star, which is denoted by $\ket{\text{in}}$, that contains no Hawking particle at the past infinity. The Unruh vacuum is associated with the infalling modes and the outgoing modes that are positive frequency with respect to the Killing vector $\partial_t$ and $\partial_T$ respectively, where $t$ is the Schwarzschild time and $T$ is the Kruskal time. Introducing the vacuum state $\ket{0}_c$ for the infalling modes and $\ket{0}_b$ for the outgoing modes, the Unruh vacuum state can be expressed as $\ket{U} = \ket{0}_c \ket{0}_b$, and the relation between the in vacuum state $\ket{\text{in}}$ and the Unruh vacuum state $\ket{U}$ has the form \cite{Brout:1995rd} \begin{eqnarray} \ket{\text{in}} \propto \frac{1}{\sqrt{Z_\omega}} \displaystyle \left( \sum_{n=0}^{\infty} e^{-\pi \omega n(\omega)/\kappa} (b^{\dag}_{\omega})^n (c^{\dag}_{\omega})^n / n! \right)\ket{0}_c \ket{0}_b, \label{060801} \end{eqnarray} where $b^{\dag}_{\omega}$ and $c^{\dag}_{\omega}$ are creation operators for the state $\ket{0}_b$ and $\ket{0}_c$ respectively, $n(\omega)$ is the number of particles with mode $\omega$, $\kappa \equiv (4 G M)^{-1}$ is the surface gravity, and $Z_{\omega} \equiv (1-e^{-\pi \omega/ \kappa})^{-1}$. In the following, we will use the Unruh vacuum state as a quantum state around a black hole although modeling the quantum state around the collapsing star with the (outgoing) Kruskal mode has not been fully successful and may demand us to take into account the technical issues, e.g., the backscattering effect in the definition of $\ket{0}_c$ and $\ket{0}_b$ \cite{footnote2}. The relation (\ref{060801}) implies that the infalling modes are fully entangled with the outgoing modes, which is the problematic entanglement and should be broken for the purity of the Hawking radiation as is pointed out by AMPS \cite{Almheiri:2012rt}. In the following, we will neglect multi-pair creations because the states of {\it n}-particles are suppressed by the exponential factor $e^{-\pi \omega n/\kappa}$ and their cumulative contribution to the entanglement entropy (EE) between the infalling and outgoing mode is negligibly small \cite{footnote3}. For simplicity and to grasp the essence, we here consider a generically entangled state \begin{align} \ket{\text{in}} &\to \sqrt{1-p^2} \ket{0}_c \ket{0}_b + p \ket{1}_{c} \ket{1}_{b}, \label{061203}\\ \ket{1}_c &= \int_{0}^{\infty} d \omega \varphi_c (\omega) \ket{1,\omega}_c, \label{170712}\\ \ket{1}_b &= \int_{0}^{\infty} d \omega \varphi_b (\omega) \ket{1,\omega}_b, \end{align} where $\ket{1, \omega}_{c} \equiv c^{\dag}_{\omega} \ket{0}_c, \ \ket{1, \omega}_{b} \equiv b^{\dag}_{\omega} \ket{0}_b$, $p$ is a real number satisfying $0 < |p| < 1/{\sqrt{2}}$, and $\varphi_c (\omega)$ $(\varphi_b (\omega))$ is a function satisfying $\int d \omega |\varphi_c(\omega)|^2 = 1$ $(\int d \omega |\varphi_b(\omega)|^2 = 1)$, which ensures that $\ket{1}_c$ $(\ket{1}_b)$ is a one-particle state of an infalling (outgoing) localized wave packet \cite{footnote4}. In the latter part of this paper, we will show that this entanglement is broken by the existence of the singularity, which is caused by the decoherence of an infalling mode. An infalling mode inside a black hole is redshifted \cite{footnote5} as $\lambda = \lambda_0 \sqrt{2GM/r-1}$, where $\lambda_0$ is the initial wavelength, and it diverges in the limit of $r \to 0$. Therefore, the infalling mode exits the particle horizon near the singularity and loses causal contact as a whole (Fig. \ref{061001fig}), which is responsible for the squeezing (EPR-like correlation) of the infalling mode, that has the role to retain its coherent structure \cite{Kiefer:2006je}, and decoherence as is discussed in Sec. III. We consider a massless scalar field $\phi$ on the Schwarzschild spacetime with a mass $M$ whose metric is given as $ds^2 = f(r) dt^2 - f^{-1}(r) dr^2 -r^2 d\Omega_2^2$ with $f(r) \equiv 1-2GM/r$, \ where $d\Omega_2^2$ denotes the line element of a two-sphere $d\Omega_2^2 \equiv d\theta^2 +\sin^2{\theta} d\varphi^2$. Using the tortoise coordinate $r^{\ast} = r + 2GM \ln \left| 1-r/(2GM) \right|$, we can rewrite it as $ ds^2 = g_{\mu \nu} dx^{\mu} dx^{\nu} \equiv f(r)\left[ dt^2 -dr^{\ast}{}^2 \right] -r^2 d\Omega_2^2. $ In order to describe the infinite squeezing of an infalling mode, let us investigate the dynamics of the vacuum $\ket{0}_c$ inside the black hole $r < 2GM$. The action $S$ is given as \begin{widetext} \begin{eqnarray} S = \int d^4x {\mathcal L} = \frac{1}{2} \int d^4x \sqrt{-g} g^{\mu \nu} \partial_{\mu} \phi \partial_{\nu} \phi = \frac{1}{2} \int d^2 x \displaystyle \sum_{l,m} \left[ \chi' {}_{lm}^2 -2 \chi_{lm} \chi' {}_{lm} {\mathcal G} + {\mathcal G}^2 \chi^2_{lm} - \dot{\chi}_{lm}^2 +f(r) \frac{l (l+1)}{r^2} \chi^2_{lm} \right], \label{060805} \end{eqnarray} \end{widetext} where we decompose the field $\phi$ into partial waves with an angular momentum $l$ as $\phi \equiv \displaystyle \sum_{l,m} \chi_{lm} Y_{lm} /r$, a prime and a dot denote differentiation with respect to $r^{\ast}$ and $t$ respectively, and ${\mathcal G} \equiv r'/r$. From the action (\ref{060805}), the Euler-Lagrange equation can be derived as \begin{eqnarray} \left[ \frac{\partial^2}{\partial r^{\ast} {}^2} - \frac{\partial^2}{\partial t^2} -f(r) \left( \frac{2GM}{r^3} + \frac{l(l+1)}{r^2} \right) \right] \chi_{lm} =0. \label{060806} \end{eqnarray} We find that the mode functions satisfying (\ref{060806}) are almost independent of the angular momentum $l$ in the vicinity of the singularity because $l(l+1)/r^2$ in (\ref{060806}) can be ignored for $r \ll 2GM$. We are interested in the behavior of an infalling mode near the singularity, and therefore, we set $l=0$ and omit the suffixes $(l,m)$ in the following. The time like coordinate inside the black hole is $r^{\ast}$, therefore, the conjugate momentum $\pi$ of the field $\chi$ is given as \cite{Yajnik:1997su} \begin{eqnarray} \pi \equiv \partial {\mathcal L}/\partial \chi' = \chi' - {\mathcal G} \chi \label{063001} \end{eqnarray} and then the Hamiltonian is \begin{eqnarray} H = \int dt \displaystyle \frac{1}{2} \left[ \pi^2 + \dot{\chi}^2 + 2{\mathcal G} \chi \pi \right]. \label{060803} \end{eqnarray} We can decompose the field $\chi$ and its conjugate momentum $\pi$ as \begin{widetext} \begin{eqnarray} &&\chi \equiv \int^{+ \infty}_{-\infty} \frac{d \omega}{\sqrt{2 \pi}} \bar{\chi}_{\omega} (r^{\ast}) e^{-i \omega t} + \text{(O.M.)} \equiv \int^{+ \infty}_{-\infty} \frac{d \omega}{\sqrt{2 \pi}} \left[ c_{\omega} \tilde{\chi}_{\omega} (r^{\ast}) e^{-i\omega t} + c_{\omega}^{\dag} \tilde{\chi}^{\ast}_{\omega} (r^{\ast}) e^{+i \omega t} \right] \theta(\omega)+\text{(O.M.)},\label{063003} \\ &&\pi \equiv \int^{+ \infty}_{-\infty} \frac{d \omega}{\sqrt{2 \pi}} \bar{\pi}_{\omega} (r^{\ast}) e^{-i \omega t} + \text{(O.M.)} \equiv -i \int^{+ \infty}_{-\infty} \frac{d \omega}{\sqrt{2 \pi}} \left[ c_{\omega} \tilde{\pi}_{\omega} (r^{\ast}) e^{-i \omega t} - c_{\omega}^{\dag} \tilde{\pi}^{\ast}_{\omega} (r^{\ast}) e^{+i \omega t} \right] \theta(\omega)+ \text{(O.M.)}, \label{063004} \end{eqnarray} \end{widetext} where (O.M.) denotes the outgoing modes and $\theta (\omega)$ is a step function: $\theta (\omega)=1$ for $\omega > 0$ and $\theta (\omega) = 0$ for $\omega < 0$. The canonical commutation relation is $[\bar{\chi}_{\omega}, \bar{\pi}^{\dag}_{\omega'}] = i \delta (\omega-\omega')$. In the following, we will omit the suffix $\omega$ for simplicity. From (\ref{063001}) and the canonical commutation relation, we obtain the Wronskian condition as $\left(\tilde{\chi}'^{\ast} \tilde{\chi} - \tilde{\chi}' \tilde{\chi}^{\ast} \right) =i$. The third term in (\ref{060803}) is responsible for the squeezing of infalling modes \cite{Polarski:1995jg,Kiefer:2006je,Lesgourgues:1996jc,Kiefer:2008ku,Kiefer:1998qe}, which becomes stronger as $r^{\ast} \to 0$ as is shown later. To investigate the dynamics of the states $\ket{0}_c$ and $\ket{1,\omega}_c$, we first derive the wave functions for them, $\Psi_0[\bar{\chi}]$ and $\Psi_1[\bar{\chi}]$, that satisfy $c \ket{0}_c=0$ and $\ket{1,\omega}_c =c^{\dag} \ket{0}_c$ respectively. From (\ref{063003}) and (\ref{063004}), we can rewrite the former in the Schr$\ddot{\text{o}}$dinger representation as $\left[ \bar{\chi} + i {\gamma}^{-1}(r^{\ast}, \omega) \bar{\pi} \right] \ket{0}_c =0$, where $\gamma (r^{\ast}, \omega) \equiv \tilde{\pi}^{\ast} / \tilde{\chi}^{\ast}$. Replacing the conjugate momentum $\bar{\pi}$ by $-i \partial/ \partial \bar{\chi}^{\dag}$, we obtain the wave function $\Psi_0 [\bar{\chi}]$ of the state $\ket{0}_c$ as \begin{eqnarray} \Psi_0 [\bar{\chi}] = \sqrt{\frac{2 \gamma_R}{\pi}} \exp{\left[ -\gamma (r^{\ast}, \omega) \bar{\chi} \bar{\chi}^{\dag} \right]}, \label{061201} \end{eqnarray} where $\gamma_R \equiv \text{Re}[\gamma (r^{\ast}, \omega)]$. On the other hand, $\ket{1,\omega}_c$ satisfies $\ket{1,\omega}_c = c^{\dag} \ket{0}_c$, and hence we obtain $\Psi_1[\bar{\chi}] \propto \left( \bar{\chi} -\gamma^{\ast} {}^{-1} (r^{\ast}) \partial / \partial \bar{\chi}^{\dag} \right) \Psi_0 [\bar{\chi}]$, which leads to \begin{eqnarray} \Psi_1[\bar{\chi}] = \frac{2\gamma_R}{\sqrt{\pi}} \bar{\chi} \exp{\left[ - \gamma (r^{\ast}, \omega) \bar{\chi} \bar{\chi}^{\dag} \right]}. \label{061202} \end{eqnarray} The function $\gamma$ can be calculated numerically from (\ref{060806}). \section{decoherence near a black hole singularity} In the following we show that the density matrix $\rho_{co}$ of the quantum state (\ref{061203}) is reduced to a separable \cite{footnote6} density matrix $\rho_{de}$ due to the decoherence once the infalling mode reaches the vicinity of the singularity, namely, $\rho_{co} \to \rho_{de}$ for $r^{\ast} \to 0$. To this end, we first show that the infalling mode becomes highly squeezed as the mode approaches the singularity, and secondly, that the squeezed state is highly sensitive to decoherence. The density matrix $\rho_{co}$ can be written as \begin{eqnarray} \rho_{co} \equiv (1-p^2) \ket{0}_c \bra{0}_c \otimes \ket{0}_b \bra{0}_b +p^2 \ket{1}_c \bra{1}_c \otimes \ket{1}_b \bra{1}_b&& \nonumber\\ +p\sqrt{1-p^2} \left( \ket{1}_c \bra{0}_c \otimes \ket{1}_b \bra{0}_b+\ket{0}_c \bra{1}_c \otimes \ket{0}_b \bra{1}_b \right),~~~&& \label{061407} \end{eqnarray} and as is shown later, the separable density matrix $\rho_{de}$ is \begin{eqnarray} \rho_{de} = (1-p^2) \ket{0}_c \bra{0}_c \otimes \ket{0}_b \bra{0}_b +p^2 \ket{1}_c \bra{1}_c \otimes \ket{1}_b \bra{1}_b.\nonumber \\ \label{061204} \end{eqnarray} Hence, we will show that the third and fourth terms in (\ref{061407}) disappear, that is, $\rho_{co} \to \rho_{de}$, as the infalling mode approaches the vicinity of the singularity. Let us consider the time evolution of the non-diagonal terms of $\rho_{co}$. Using (\ref{170712}), $\ket{0}_c \bra{1}_c$ and $\ket{1}_c \bra{0}_c$ in the non-diagonal terms can be decomposed as \begin{align} \begin{aligned} \ket{0}_c \bra{1}_c &= \int d\omega \varphi_c^{\ast} (\omega) \ket{0}_c \bra{1,\omega}_c,\\ \ket{1}_c \bra{0}_c &= \int d\omega \varphi_c (\omega) \ket{1,\omega}_c \bra{0}_c \label{062817} \end{aligned} \end{align} respectively, and we will show the decay of $\ket{0}_c \bra{1}_c$ and $\ket{1}_c \bra{0}_c$ by calculating the time evolution of $\ket{0}_c \bra{1, \omega}_c$ and $\ket{1, \omega}_c \bra{0}_c$. $\ket{0}_c \bra{1,\omega}_c$ and $\ket{1,\omega}_c \bra{0}_c$ component of the Wigner function of $\rho_{co}$, $W_{01}^{(c)}$ and $W_{10}^{(c)}$, are given as \begin{widetext} \begin{eqnarray} \begin{split} &&W_{01}^{(c)} = W_{10}^{(c)} {}^{\ast} = \int \int \frac{d x_{R} dx_I}{(2 \pi)^2} e^{-i (\bar{\pi}_{R} x_R + \bar{\pi}_{I} x_I)} \bra{\bar{\chi} - \frac{x}{2}} \ket{0}_c \bra{1,\omega}_c \ket{\bar{\chi} + \frac{x}{2}}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \\ &&= \frac{1}{\pi^2} \left( \sqrt{2 \gamma_{R}} \bar{\chi} - i \sqrt{\frac{2 \gamma_{I}^2}{\gamma_{R}}} (\bar{\chi} + \frac{\bar{\pi}}{2 \gamma_{I}}) \right) \exp{\left[ -2 \gamma_{R} |\bar{\chi}|^2 \right]} \exp{\left[ -\frac{2 \gamma_{I}^2}{\gamma_{R}} \left| \bar{\chi} + \frac{\bar{\pi}}{2 \gamma_{I}} \right|^2 \right]}, \label{070501} \end{split} \end{eqnarray} \begin{figure}[t] \begin{center} \includegraphics[keepaspectratio=true,height=82mm]{fig2.eps \end{center} \caption{(a), (b), and (c) are the imaginary parts of the non-diagonal components $W_{01}^{(c)}$, and (a'), (b'), and (c') are the imaginary parts of the coarse-grained non-diagonal components ${\mathcal W}_{01}^{(c)}$, where we set $|r^{\ast}|/2GM = 10$ (for (a), (a')), $|r^{\ast}|/2GM = 0.1$ (for (b), (b')), $|r^{\ast}|/2GM = 0.001$ (for (c), (c')), and $2GM \omega = 0.5$. The non-diagonal term $W_{01}^{(c)} = W_{10}^{(c)}{}^{\ast}$ has the form of $X \delta (X)$ in the limit of $r^{\ast} \to 0$, and therefore the coarse-grained distribution ${\mathcal W}_{01}^{(c)} = {\mathcal W}_{10}^{(c)} {}^{\ast}$ disappears. This leads to the transition from the entangled Hawking pair to the separable Hawking pair in the vicinity of the singularity. }% \label{0630nonfig} \end{figure} \end{widetext} where we used (\ref{061201}) and (\ref{061202}) and the suffixes $R$ and $I$ represent the real and imaginary part respectively. We numerically confirmed that they are infinitely squeezed in the limit of $r^{\ast} \to 0$ with $2GM \omega = 0.5$ (Fig.\ref{0630nonfig} (a), (b), and (c)) and the ratio $\gamma_I/\gamma_R \propto \sinh{2s}$ diverges in the vicinity of the singularity, $\gamma_I/\gamma_R \to - \infty$, where $s$ is the squeezing parameter. This means that $s$ also diverges, $|s| \to \infty$, as $r^{\ast} \to 0$ (see e.g., \cite{Polarski:1995jg}). Secondly, we will show that an infinitely squeezed state with an environment is highly fragile against decoherence, in which the environment plays an important role. For instance, let us consider a double-slit experiment with electrons in which they create an interference pattern (non-diagonal density matrix). If they are exposed to thermal noise (environment), the pattern will be coarse-grained and will disappear (decoherence). This is the intuitive interpretation for the role of environment in decoherence. We here take into account the environment as follows. The field $\chi$ can be separated into two parts, the long-wavelength part as the system (an infalling Hawking particle) and the short-wavelength part as the environment (vacuum fluctuations). We here regard only the modes with wavelengths much shorter than the gravitational curvature radius of black hole as the short-wavelength part, as in the \textit{stochastic inflation} scheme \cite{Starobinsky:1994bd,Burgess:2006jn,Calzetta:nqft}. Therefore, the environment can be regarded as a coherent state with a good approximation and we can consider the decoherence by tracing out the coherent environment. It is shown that the tracing out the coherent environment is corresponding to convolving (coarse-graining) the system's Wigner function (\ref{070501}) with that of a coherent state $W_{\text{E}}$ \cite{Kanada-En'yo:2015pra} (see also \cite{K.Husimi1940,K.Takahashi1986}), \begin{eqnarray} W_{\text{E}} \equiv \pi^{-2} \exp{\left(- |\bar{\chi}|^2- |\bar{\pi}|^2 \right)}. \label{100501} \end{eqnarray} Taking the convolution of (\ref{070501}) and (\ref{100501}), the non-diagonal term of the coarse-grained Wigner function ${\mathcal W}_{01}^{(c)} = {\mathcal W}_{10}^{(c)} {}^{\ast}$ is obtained as \begin{widetext} \begin{eqnarray} {\mathcal W}_{01}^{(c)} \equiv (W^{(c)}_{01} \ast W_E) =\frac{Q |Q|^2}{\pi^2} (\bar{\chi}-i\bar{\pi}) \exp{\left[ -|Q|^2 \left\{ (|\bar{\chi}|^2 + |\bar{\pi}|^2) +2 \gamma_{R} (|\bar{\chi}|^2 + \left| \bar{\pi}/(2 \gamma_R) + (\gamma_I/\gamma_R) \bar{\chi} \right|^2) \right\} \right]}, \label{070502} \end{eqnarray} \end{widetext} where $Q \equiv \sqrt{2 \gamma_{R}}/(1 + 2 \gamma)$. In the limit of $r^{\ast} \to 0$, the real and imaginary parts of the function $\gamma (r^{\ast}, \omega)$ diverge and hence $Q$ asymptotically approaches zero. Therefore, the non-diagonal term ${\mathcal W}_{01}^{(c)}$ is decaying as approaching the singularity (Fig.\ref{0630nonfig} (a'), (b'), and (c')), which means that the Hawking pair will experience decoherence as the infalling mode approaches the singularity since the effect of decoherence on a density matrix is essentially the decay of its non-diagonal terms, see e.g., \cite{Kieferdeco2}. Although general relativity and quantum field theory are, of course, no longer valid near the singularity at $r \lesssim r_{\text{Pl}} = 2GM (M_{\text{Pl}} / M)^{2/3}$ \cite{footnote7}, where $M_{\text{Pl}}$ is the Planck mass, the decoherence is almost completed at $r \gg r_{\text{Pl}}$ in the case of interest, namely a massive black hole $M \gg M_{\text{Pl}}$ (remember postulate 2). That is, the above estimates suggest that the squeezing becomes so strong that the decoherence can take place well before the modes reach $r \sim r_{\text{Pl}}$, and therefore using a (semi)classical spacetime picture of the mode evolution should still be reliable. As is shown above, the intense squeezing leads to the decay of the non-diagonal terms. Therefore, the third and fourth terms in (\ref{061407}), containing the non-diagonal components $\ket{1,\omega}_c \bra{0}_c$ and $\ket{0}_c \bra{1,\omega}_c$ (see (\ref{062817})), decay due to the decoherence and this leads to the transition of the state $\rho_{co} \to \rho_{de} = (1-p^2) \ket{0}_c \bra{0}_c \otimes \ket{0}_b \bra{0}_b + p^2 \ket{1}_c \bra{1}_c \otimes \ket{1}_b \bra{1}_b$. This implies that the entanglement of Hawking pairs decays as the infalling mode approaches the singularity. \section{microscopic picture of information recovery} We can apply the loss of the entanglement between a Hawking pair to the black hole information paradox. According to our proposal, the entanglement between B and C is broken when C approaches the singularity. Therefore, the timescale on which the entanglement is broken is of the order of the free fall timescale, $t_{F} \sim 2GM$, measured by a freely falling observer \cite{footnote8}. In other words, we cannot avoid the entanglement between B and C only during the moment of the free fall $\sim t_{F}$. Therefore, we have to discuss how the scenario proposed here is consistent with the monogamy of entanglement and the previous works \cite{Saini:2015dea,Kawai:2015uya}, in which the timescale of information recovery is carefully discussed in the microscopic level. In Ref. \cite{Saini:2015dea}, the radiation around a gravitationally collapsing shell was analytically investigated and it was shown that the correlations between the Hawking particles (between A and B) are initially zero but grow on the timescale of $t_{F}$ for an observer far from the black hole. Ref. \cite{Kawai:2015uya} also pointed out that the microscopic timescale of information recovery may be of the order of $t_{F}$ by considering the interaction between a collapsing shell and the Hawking radiation. For these reasons, we can conclude that the entanglement between A and B would be initially zero and gradually appears on the timescale of $t_{F}$, and B can be allowed to be entangled with C only for the short time $ \sim t_F$, which is quite consistent with our scenario. This implies that B would not be fully entangled with A and C simultaneously (Fig. \ref{091102}), and therefore there is no any violation of the monogamy of entanglement. \begin{figure}[b] \begin{center} \includegraphics[keepaspectratio=true,height=50mm]{fig3.eps} \end{center} \caption{ The schematic picture showing how the microscopic picture of information recovery \cite{Saini:2015dea,Kawai:2015uya} is consistent with our proposal. B is initially entangled with C and its entanglement will decay on the timescale of $t_{F}$. On the other hand, the entanglement between A and B is initially zero and may grow on the timescale of $t_{F}$. }% \label{091102} \end{figure} \section{conclusions} We showed that a Hawking pair becomes a separable state from an entangled state by pointing out that the high squeezing and decoherence occur inside a black hole. The analysis was done with a simplified state (\ref{061203}) and the environment interacting with the infalling Hawking modes whose Wigner function is given by (\ref{100501}). The interaction with the environment can be effectively taken into account by smearing out the Wigner function of the infalling mode with that of the environment (\ref{070502}). As a result, we showed that the non-diagonal terms of the density matrix for the Hawking pair would decay quickly compared to the black hole evaporation timescale, which implies that the decoherence would be caused by the interior gravitational effect and that the entanglement between Hawking pairs will be broken. It should be emphasized that although general relativity and quantum field theory would break down near the singularity, our proposal is valid as long as the mass of black hole is much larger than the Planck mass, $M \gg M_{\text{Pl}}$ \cite{Susskind:1993if,Almheiri:2012rt}. According to our proposal, we would no longer need firewalls. We believe that our work can be important for the understanding of how the states of Hawking pairs of particles become separable, and how the black hole information paradox can be solved. \section*{acknowledgements} The author thanks T.~Nakama, Y.~Tada, D.~Yamauchi, and J.~Yokoyama for helpful comments. This work was partially supported by Grant-in-Aid for JSPS Fellow No.16J01780.
\section{Introduction} Through the use of experimental platforms such as ultracold atomic gases, trapped ions and Rydberg atoms a wide range of non-equilibrium phenomena in open quantum many-body systems have now been realised \cite{Pritchard2010,Blatt2012,Britton2012,Dudin2012,Peyronel2012,Gunter2013}. This has been accompanied by a significant increase in the theoretical understanding of such systems; numerically, through the use of techniques adapted from atomic-optics and closed quantum systems \cite{Daley2014ManyBodyQJMC}, and analytically via field theoretical methods \cite{Sieberer2015KeldyshReview,Maghrebi2016}, among other approaches. One question of interest addressed by theoretical studies of non-equilibrium open many-body quantum systems has been the understanding of the phase structure of the stationary state, given the possibility that these systems display phase transitions---singular changes in the stationary state in the limit of large system size---which may be distinct from those of equilibrium systems. The aim of many of such studies has been to characterise the phase structure of non-equilibrium steady states via static order parameters, such as the magnetisation in spin systems, and spatial correlation functions more generally, see e.g.~\cite{{Diehl2013,Sieberer2015KeldyshReview,Maghrebi2016}}. However, even in the case where such transitions are not present, the dynamics of these systems can be very rich and cooperative. One way to uncover this dynamical complexity via large-deviation methods (such as the so-called ``thermodynamics of trajectories'', see e.g.~\cite{{Juan2010ThermoTraj,Igor2013Characterization}}, or the related full-counting statistics, see e.g.~\cite{Esposito2009}), which allow to define and characterise dynamical phases where order parameters are dynamic time-integrated observables, such as total count of emissions into the environment. \begin{figure}[ht!] \includegraphics[width=1\columnwidth]{SpectrumPlusManifold.png} \caption{\label{SpectrumToMM}(a) Real part of the spectrum of the master operator of the open quantum Ising model defined in Sec.~\ref{OpenIsing}, for size $N=7$, with spin interaction $V/\kappa=250$ and transverse field $\Omega/\kappa=50$, where $\kappa$ is decay rate. Spectrum is plotted in units of $\kappa$. The two eigenvalues with largest real parts, ${\lambda}_{1,2}^{R}$, highlighted in grey, correspond to the only eigenmodes that contribute to the dynamics at long times. The large gap to the next eigenvalue, ${\lambda}_{3}^{R}$, causes metastability in the dynamics. (b) The metastable manifold (MM) induced by the spectral structure of (a). System states are represented by the average total magnetisation per spin in the $x$ and $z$ directions. The MM (grey line) is bounded by two extreme metastable states $\tilde{\rho}_{1}$ (purple dot) and $\tilde{\rho}_{2}$ (green dot). The evolution from an initial state $\rho_\uparrow$ of all spins up (blue curve), undergoes a fast evolution for $t\ll\tau'=-1/{\lambda}_{3}^{R}$ onto the MM. After a long period of apparent stationarity ($\tau'\ll t\ll\tau=-1/{\lambda}_{2}^{R}$), the states on the MM evolve towards the true stationary state $\rho_{\rm ss}$ (red circle) for $t\gg\tau$.} \end{figure} In this paper we focus on a different aspect of open quantum many-body systems, that of {\em metastability} of the dynamics. Metastability is a characteristic feature of the dynamics of slow relaxing systems, namely, the partial relaxation into long-lived states before eventual decay to the true stationary state. This is a consequence of separation of timescales in the dynamics. In such systems the transient dynamics will appear non-ergodic, in the sense that different initial conditions will relax to different metastable states, before ergodicity is eventually restored. In classical systems, metastable behaviour typically occurs in two distinct situations: one is in the dynamics near a (usually first-order) static phase transition \cite{Chaikin2000}, where metastable dynamics is intimately related to the existence of static phases; the second one is in glass forming systems \cite{Binder2011} where metastable behaviour is not obviously related to any static features (see e.g.~\cite{Biroli2013} for various viewpoints on this issue). Here we focus on the first instance above for the case of a many-body quantum system subject to dissipation where metastability can be traced back to distinct features of its stationary properties, a transverse field Ising model with on-site dissipative decay \cite{Lee2012CollectiveRydberg,Ates2012Ising,Weimer2015,Weimer2015b,Maghrebi2016,Overbeck2016,Matteo2016}. We study the dynamics of this model by means of a recent theory for metastability in open quantum systems \cite{Kasia2016Meta}. This new approach is a generalisation to open quantum systems, evolving according to a Lindblad master equation \cite{Lindblad1976Equation,Breuer2002OpenQuant}, of the method of Refs.~\cite{{GaveauSchulman1987Meta,Gaveau1998,Bovier2002,Gaveau2006,Kurchan2009}} for classical Markovian systems. This approach relies on the fact that metastable behaviour necessarily results from a separation of eigenmodes in the spectrum of the master operator generating the dynamics, thus allowing one to investigate both the structure of the metastable states and the long-time dynamics of the system using a reduced number of parameters \cite{Kasia2016Meta}. The metastable states form a metastable manifold (MM), a convex subset of the system states (see Fig.~\ref{SpectrumToMM}, details in Sec.~\ref{MetaTheory}) on which the long-time dynamics takes place \cite{Kasia2016Meta}. In Ref.~\cite{Kasia2016Meta} this approach was applied to few-body models more related to problems in quantum information. Here we demonstrate the effectiveness of this approach for a many-body system where metastability emerges cooperatively with increasing system size. The dissipative Ising model we consider is also of particular interest as it can be realised experimentally through the use of Rydberg atoms in optical lattices \cite{{Lee2012CollectiveRydberg,Ates2012Ising}}. The dissipative quantum Ising model we study here has the basic ingredients of a system where metastability is a dynamical consequence of static features. In order to clarify what we mean, consider for example a classical ferromagnet at low temperatures in the thermodynamic limit~\cite{Chaikin2000}. For such a system, if one starts close to the coexistence point (say at small positive magnetic field) but in a state belonging to the wrong phase (in this case with initial negative magnetisation) there will be an initial fast relaxation within this phase, before a much longer relaxation to the eventual equilibrium state within the stable phase (of positive magnetisation). This occurs due to the existence of a large, but finite, free-energy barrier that needs to be crossed from the metastable phase to the stable phase. Hysteretic behaviour is a manifestation of this phenomenon. Furthermore, zero field is the point of a first-order transition, and there is strict coexistence between the phases of positive and negative magnetisation, which means that each is stable at long times, giving rise to ergodicity breaking. It is important to note that such a transition only occurs in the thermodynamic limit. For finite size, even at zero field, dynamics is metastable, with the metastable states being those of non-zero magnetisation, and the true stationary state that of paramagnetic equilibrium. Dynamics in this case will also be intermittent displaying many ``magnetisation reversals'' \cite{Chaikin2000}. In this sense, metastability which has its origin in distinct static ``phases'' does not require the presence of a strict phase transition, only that the ``phases'' are long lived and kinetically only weakly connected (in the example of the ferromagnet, separated by a free-energy barrier that is large compared to temperature). In fact, usually the simplest way to anticipated such structure is from a mean-field approximation, even if there is no singular transition in the exact problem. Previous work~\cite{Ates2012Ising} on the dissipative quantum Ising model suggested a bistable character to the stationary state of this system. Within a mean-field approximation~\cite{Ates2012Ising} this model has a region of its parameter space in which it exhibits a strict first-order coexistence, terminating at a critical point, between ferromagnetic and paramagnetic steady states. Related to this, dynamics of this model in one dimension for finite size was shown to display pronounced intermittency between periods of photon emission activity and inactivity in quantum jump trajectories~\cite{Ates2012Ising}. While the mean-field approximation is not necessarily expected to be accurate even in the thermodynamic limit in one-dimension \cite{Weimer2015,Weimer2015b,Maghrebi2016}, it does provide an idea of the basic phase structure of the model. As in the case discussed above of a classical ferromagnet, for metastability to be present all that is required is that states with distinct static character are approximate stationary states of the dynamics. Using the methods of \cite{Kasia2016Meta} we show the relation between the ferromagnetic/paramagnetic states that mean-field suggest and the metastable states of the dynamics of the dissipative quantum Ising model at finite size. We show that the short time dynamics relaxes to the metastable manifold in a way that is dependent on initial states (i.e., apparent but transient non-ergodicity). We further show that the long-time evolution within the MM is that of an effective classical stochastic dynamics, even though the underlying many-body system features quantum effects. This is in line with recent field-theoretic studies of open spin lattices, which show the long time properties of similar models are often classical \cite{Maghrebi2016,Sieberer2015KeldyshReview}. The paper is organized as follows. In Sec.~\ref{MetaTheory} we briefly review the spectral approach to metastability in open quantum systems, along with the effective long-time description, giving a particular focus to the case when the MM is one-dimensional as is the case for the dissipative quantum Ising model. Section~\ref{OpenIsing} is the central, providing an in-depth analysis of metastability in the model. We begin in Subsec.~\ref{TDMF} by returning to the mean-field approach used in~\cite{Ates2012Ising}, but focusing on time-evolution instead of only steady state(s), and discussing the effect of neglecting fluctuations from spatial correlations. We then apply the spectral approach of Ref.~\cite{Kasia2016Meta} to the exact model of $N=7$ spins, and find a parameter regime where the system is metastable (Subsec.~\ref{SpectAnalysis}). This is followed by characterisation of the MM in terms of the properties of metastable phases (Subsec.~\ref{eMSCharact}). In Subsec.~\ref{ExpandCorr} we show how metastability can be observed in the behaviour of expectation values and autocorrelations of system observables. Finally, we demonstrate how the metastability in the spin magnetisation and the effective dynamics within the MM manifests in individual realisations of the system evolution through intermittency in activity of quantum trajectories (Subsec.~\ref{Intermittence}). \section{Metastable manifolds and effective evolution}\label{MetaTheory} In this section we review the theory for metastability in open quantum systems with Markovian dynamics introduced recently in Ref.~\cite{Kasia2016Meta}. Evolution of a system state described by the density matrix $\rho$ is generated by the Lindblad master operator \begin{equation}\label{LindbladOp} \mathcal{L}(\rho) = -i[H,\rho]+\sum_{j}\left[{J}_{j}\rho{J}_{j}^{\dagger}-\frac{1}{2}\{{J}_{j}^{\dagger}{J}_{j},\rho\}\right], \end{equation} i.e. $d\rho/dt=\mathcal{L}(\rho)$ \cite{Breuer2002OpenQuant}. Here $H$ is the Hamiltonian of the system and the jump operators ${J}_{j}$ mediate the system-bath interaction, providing coupling of the system to the surrounding environment. If these interactions lead to emissions of a quanta of energy, e.g. photons being emitted by atoms coupled to the vacuum electromagnetic field, the action of jump operators can be detected through continuous measurements, e.g. photon counting~\cite{Ates2012Ising}. Since this operator acts linearly on the density matrix, the evolution it generates can be understood in terms of its eigenvalues and eigenmatrices \cite{JordanBlock}. Let the eigenvalues of the master operator be ${\lambda}_{k}={\lambda}_{k}^{R}+i\,{\lambda}_{k}^{I}$, with ${\lambda}_{k}^{R}$ and ${\lambda}_{k}^{I}$ representing the real and imaginary parts, respectively. These are ordered such that ${\lambda}_{k}^{R}\geq{\lambda}_{k+1}^{R}$. Note that the real parts are necessarily less than or equal to $0$, with $0$ corresponding to steady states, due to the (completely) positive trace-preserving evolution generated by the master operator, Eq.~\eqref{LindbladOp}. Let the left and right eigenmatrices (note that $\mathcal{L}$ is not hermitian in general) associated to ${\lambda}_{k}$ be denoted ${L}_{k}$ and ${R}_{k}$ respectively. We choose normalization s.t. $\text{Tr}({L}_{k}{R}_{k'})={\delta}_{kk'}$. Generically, the steady state ${\rho}_{\rm ss}$ is unique (as is the case for the finite size dissipative Ising chain discussed in this work) and we further normalize it s.t. $\text{Tr}({\rho}_{\rm ss})=1$ and thus also $L_1=\mathds{1}$. Defining ${c}_{k}=\text{Tr}[\rho(0){L}_{k}]$, for an initial system state $\rho(0)$, the system state at time $t$ is given by \begin{equation}\label{Expansion} \rho(t)={e}^{t\mathcal{L}}[\rho(0)]={\rho}_{\rm ss}+\sum_{k}{c}_{k}{e}^{t{\lambda}_{k}}{R}_{k}. \end{equation} We are interested in metastable behaviour. Therefore we assume there is a large separation in the values of the real parts of the eigenvalues, ${\lambda}_{m}^{R}\gg{\lambda}_{m+1}^{R}$, cf.\ Fig.~1(a), and denote the corresponding time scales by ${\tau}=-1/{\lambda}_{m}^{R}$ and ${\tau}'=-1/{\lambda}_{m+1}^{R}$. If we consider times $t\gg\tau'$ then we may neglect terms beyond the $m$-th in the sum in Eq.~\eqref{Expansion}. For $t\ll\tau$, we also have ${e}^{t{\lambda}_{k}}\approx 1$ for $k\leq m$, and the reduced expansion defines metastable states of the system, see Fig.~\ref{SpectrumToMM}. Thus, the projection $\mathcal{P}$ onto the MM is given by $\mathcal{P}\rho=\text{Tr}(\rho){\rho}_{\rm ss}+\sum_{k=2}^{m}{c}_{k}{R}_{k}$. Furthermore, note that the MM is determined by a subset in ${\mathbb{R}}^{m-1}$ given by the coefficients $\{{c}_{k}\}_{k=1}^m$, whose values are bounded by the maximum and minimum eigenvalues of the relevant left eigenmatrices. For times $t\gg\tau$, only first $m$ modes contribute to the system dynamics, cf.\ Eq.~\eqref{Expansion}. Therefore dynamics takes place essentially only inside the MM and is effectively generated by the projection of the master operator on the MM, $\mathcal{L}_{\text{eff}}=\mathcal{P}\mathcal{L}\mathcal{P}$. \subsection{Metastable manifold} The general structure for MMs is discussed in~\cite{Kasia2016Meta}. We will see in Sec.~\ref{SpectAnalysis} that for the open quantum Ising model the MM is 1-dimensional, that is, $m=2$, which is the case we now restrict to. The basis for the MM is given by ${\rho}_{\rm ss}$ and ${R}_{2}$, but ${R}_{2}$ lacks interpretation as a state of the system since $\text{Tr}({R}_{2})=0$ due to trace-preserving dynamics. Instead, we can make use of the convexity of the MM (inherited from the convexity of the full space of density matrices) to consider metastable states as a linear combination of the states at either end of the MM, which we call {\em extreme metastable states} (eMSs)~\cite{Kasia2016Meta}, \begin{eqnarray} \tilde{\rho}_{1}&=&{\rho}_{\rm ss}+{c}_{2}^{\rm max}{R}_{2},\label{eMS1}\\ \tilde{\rho}_{2}&=&{\rho}_{\rm ss}+{c}_{2}^{\rm min}{R}_{2},\label{eMS2} \end{eqnarray} where ${c}_{2}^{\rm max}$ and ${c}_{2}^{\rm min}$ are the maximum and minimum eigenvalues of the Hermitian ${L}_{2}$, respectively. Writing $\mathcal{P}\rho={p}_{1}\tilde{\rho}_{1}+{p}_{2}\tilde{\rho}_{2}$ and using ${p}_{1}=1-{p}_{2}$ (from convexity of the MM), the coeffcients $p_{1,2}$ are given by the expectation value, $p_{1,2}=\mathrm{Tr}(\tilde{P}_{1,2}\rho)$, of the observables \begin{eqnarray} \tilde{P}_{1}&=&({L}_{2}-{c}_{2}^{\rm min}I)/{\Delta}{c}_{2},\label{P1}\\ \tilde{P}_{2}&=&(-{L}_{2}+{c}_{2}^{\rm max}I)/{\Delta}{c}_{2}, \label{P2} \end{eqnarray} where ${\Delta}{c}_{2} = {c}_{2}^{\rm max} - {c}_{2}^{\rm min}$. As $\tilde{\rho}_{1}$, $\tilde{\rho}_{2}$ are the eMSs, the coeffcients are necessarily positive, $p_{1,2}\geq 0$, leading to the interpretation of any state on the MM as a probabilistic mixture of the two eMSs. Thus, $\tilde{\rho}_{1}$ and $\tilde{\rho}_{2}$ constitute two metastable phases and one can understand the properties of all metastable states by characterising the properties of only these two, as done in Sec.~\ref{eMSCharact}. For a basis of any other two states on the MM, one of the coefficients would necessarily be negative for certain parts of the MM. \subsection{Effective dynamics within metastable manifold} The evolution for times $t\gg\tau$ effectively takes place on the metastable manifold towards the steady state~\cite{Kasia2016Meta}. Its generator $\mathcal{L}_{\text{eff}}=\mathcal{P}\mathcal{L}\mathcal{P}$, can be now expressed in the basis of the eMSs, cf.\ Eqs.~(\ref{eMS1}-\ref{P2}), \begin{equation}\label{EffectiveMasterOp} \mathcal{L}_{\text{eff}}=\frac{{-\lambda}_{2}}{\Delta{c}_{2}} \begin{pmatrix} -{c}_{2}^{\rm max} & -{c}_{2}^{\rm min}\\ {c}_{2}^{\rm max} & {c}_{2}^{\rm min} \end{pmatrix}, \end{equation} yielding the dynamics of the probabilites ${p}_{1}$, ${p}_{2}$ as $d\textbf{p}/dt={\mathcal{L}}_{\text{eff}}\,\textbf{p}$, where $\textbf{p}^{T}=({p}_{1},{p}_{2})$. Note that the entries in each column of $\mathcal{L}_{\text{eff}}$ add to $0$, which corresponds to probability conservation. Moreover, since ${\lambda}_{2}<0$ and ${c}^{\rm max}_{2}>0$, ${c}^{\rm min}_{2}\leq0$ [as $\text{Tr}({L}_{2}{\rho}_{\rm ss})=0$ by orthogonality of eigenmodes], the diagonal elements are negative and the off-diagonal positive, which ensures positivity of the dynamics. Thus, $\mathcal{L}_{\text{eff}}$ is a generator of classical stochastic dynamics between two metastable phases, $\tilde{\rho}_{1}$ and $\tilde{\rho}_{2}$. Note that the dynamics induced by $\mathcal{L}_{\text{eff}}$ between $\tilde{\rho}_{1}$ and $\tilde{\rho}_{2}$ satisfies the detailed balance, with the exit time from a metastable phase given by the inverse of the diagonal entry, e.g. $(-{c}_{2}^{\rm max}{\lambda}_{2})^{-1}=\tau\,({c}_{2}^{\rm max})^{-1}$ for $\tilde\rho_1$, and the stationary probability determined by the ratio of the off-diagonal terms, $-{c}_{2}^{\rm min}/{c}_{2}^{\rm max}$, independent from $\tau$. \begin{figure} \includegraphics[width=0.8\columnwidth]{PhenomWells.png} \caption{ \label{wells} The Sketch for the two-basin analogy of metastability when the metastable manifold is one dimensional. The figure represents a one-dimensional Landau free-energy. The two eMSs are analogous to the two free-energy basins corresponding to two phases of the system, and their free-energy difference is analgous to the logarithm of their relative probabilities. In the thermodynamic case, the timescale for connecting the basins is the exponential of the free-energy barrier (divided by temperature -- the usual Arrhenius law for thermal escape). In this sense, since in our dynamical case the timescale is controlled by the gap, the log of the gap is analogous to the barrier. See main text for discussion. for connecting the basins, which in the classical case is determined by the free-energy barrier (typically as an exponential of the free-energy barrier over temperature), in our dynamical problem is determined by the gap in the master operator. See main text for discussion. } \end{figure} This dynamics is analogous to the effective long-time dynamics in finite classical systems close to conditions where coexistence between two stable phases appears in the thermodynamic limit, such as for example a two-dimensional classical Ising model at low temperature in the ferromagnetic phase with small negative magnetic field favouring magnetisation down \cite{Chaikin2000}. Intuitively, one can imagine such a situation in terms of motion in a Landau free-energy, a function of a collective variable such as magnetisation, which features two minima corresponding to the two competing phases, one of positive magnetisation and a favoured one of negative magnetisation, cf.\ Fig.~\ref{wells}. The height of the barrier between the two wells is related to the surface tension of creating droplets of one phase in a background of the other. In finite systems (or away from the coexistence point in the thermodynamic limit) this barrier can be overcome by thermal fluctuations. When temperature is low, such that thermal fluctuations are weak, an initial configuration of all spins down would initially relax via small scale fluctuations within the positive magnetisation phase (intuitively ``rolling down the hill'' towards its closest free-energy minimum) for $t\gg\tau'$. At longer times, $t\sim\tau$ (dependent on the height of the barrier separating the wells, typically in an Arrhenius fashion for the case of thermal excitations), large enough domains of the spin-down phase are created allowing the system to overcome the free-energy barrier. The subsequent switching dynamics between the two basins leads at long times to equilibration. Note that due to detailed balance, the ratio of the occupation in the equilibrium state between the two wells depends on the difference of the free energies, not the barrier height which only sets the relaxation time. \subsection{Observation of metastability} Metastability of the system dynamics can be observed in the behaviour of expectation values and autocorrelations of system observables~\cite{Kasia2016Meta,Sciolla2015}. In Sec.~\ref{ExpandCorr} we focus on measuring a given spin magnetisation (or equivalently the probability distribution of the magnetisation). For long times $t\gg\tau'$ the exact dynamics should be captured by the effective long-time description, see Eq.~\eqref{EffectiveMasterOp}, and for the expectation value of an observable $O$ we arrive at \begin{equation}\label{ApproxExp} \left\langle{O}\right\rangle(t)\approx\textbf{o}^{T}\,\textbf{p}(t), \end{equation} where ${\textbf{o}}_{i}=\text{Tr}(O\tilde{\rho}_{i})$. Observation of the metastability in the expectation value requires preparation of an initial system state different from the steady state. Nevertheless, for the system in the steady state, metastability can be observed in the time-autocorrelation of a system observable. When time between measurements is greater than $\tau'$, the state conditioned on the initial measurement relaxes into the MM and $\left\langle{O}(t){O}(0)\right\rangle=\text{Tr}(\mathcal{O}{e}^{t\mathcal{L}}\mathcal{O}{\rho}_{\rm ss})\approx\text{Tr}(\mathcal{O}{e}^{t\mathcal{L}_{\text{eff}}}\mathcal{P}\mathcal{O}{\rho}_{\rm ss})$, where $\mathcal{O}$ is the superoperator representing measurement of the observable $O$. As $\mathcal{P}{\rho}_{\rm ss}={\rho}_{\rm ss}$, we have \begin{equation}\label{ApproxCor} \left\langle{O}(t){O}(0)\right\rangle\approx\textbf{o}^{T}\,{e}^{t\mathcal{L}_{\text{eff}}}\,{\textbf{O}}\,\textbf{p}_{\rm ss}, \end{equation} where ${\textbf{O}}_{ij}={\left(\mathcal{P}O\mathcal{P}\right)}_{ij}=\textrm{Tr}[\tilde{P}_{i}O({\tilde{\rho}}_{j})]$ and $\textbf{p}_{\rm ss}^T=(-{c}_{2}^{\rm min}/{\Delta}{c}_{2},{c}_{2}^{\rm max}/{\Delta}{c}_{2})$ is the stationary probability of $\rho_{\rm ss}$ between the metastable phases. \begin{figure*} \includegraphics[width=1\linewidth]{MeanField.png} \caption{\label{MeanField}(Color online) (a-c) Flow induced on cross sections of the Bloch ball by the dynamics in Eq.~(\ref{MeanFieldEqns}), for parameters $V/\kappa=10$, $\Omega/\kappa=4.4$ where the system is bistable. The colour of the line indicates the magnitude of the component perpendicular to the plane. The green and purple dots correspond to the two stationary solutions of the mean-field approximation projected onto the planes through the Bloch sphere. (d-f) Basins of attraction of the two mean-field stationary solutions, with the indicated values of $\left\langle{M}_z\right\rangle$, at three points in the bistable regime with parameters $V/\kappa=10$ and $\Omega/\kappa=4.4, 5.8, 7.0$, respectively, marked by black crosses in panel (g). (g) Mean-field phase diagram: $\overline{m}_{\infty}$, as a function of model parameters. Spinodal lines separating one-solution from two-solution regions are indicated by white dashed lines.} \end{figure*} \section{Open quantum Ising model}\label{OpenIsing} We now apply the theory~\cite{Kasia2016Meta} reviewed in the previous section to a dissipative quantum many-body system, an open version of the 1D transverse field Ising model, consisting of a chain of $N$ spin-1/2 particles with periodic boundary conditions coupled to a external bath. The Hamiltonian is given by \begin{equation}\label{Hamiltonian} H = \Omega\sum_{j=1}^{N}{S}^{(j)}_{x}+V\sum_{i=1}^{N}{S}^{(j)}_{z}{S}^{(j+1)}_{z}, \end{equation} where $\Omega$ describes the transverse magnetic field and $V$ the interaction between neighbouring spins. The spin operators ${S}^{(j)}_{\alpha}=\frac{1}{2}{\sigma}^{(j)}_{\alpha}$, where $\alpha=\{x,y,z\}$. The jump operators mediating the interaction with the bath couple to individual spins, \begin{equation}\label{Jumps} {J}_{j}=\sqrt{\kappa} \, {S}^{(j)}_{-}=\sqrt{\kappa} \, ({S}^{(j)}_{x}-i{S}^{(j)}_{y}), \end{equation} where the decay rate $\kappa$ is determined by strength of system-bath coupling, and $j=1,...,N$. This system can be realized using Rydberg atoms \cite{{Lee2012CollectiveRydberg,Muller2008TrappedRydberg}}, in which case the jumps can be seen to be photon emissions from individual spins in to the environment. The properties of these jump operators imply that the system dynamics are irreducible and the stationary state unique for all finite $N$ \cite{SchirmerWang2010}. The order parameters we will consider are the magnetisations along each axis, \begin{equation} {M}_{\alpha}=\frac{1}{N}\sum_{j=1}^{N}{S}_{\alpha}^{(j)}{.} \label{eq:M} \end{equation} We will find in Sec.~\ref{ExpandCorr} and \ref{Intermittence} the the $z$ component of the magnetisation in particular is sufficient to highlight metastable dynamics in this system. \subsection{Time dependent mean-field approximation}\label{TDMF} We start our analysis by returning to the mean-field approximation studied previously in~\cite{Ates2012Ising}, this time however focusing on the dynamics rather than just the steady state. From the study of classical systems it is common for such an approach to give qualitatively the short time dynamics leading to the MM, since often long-time relaxation is non-perturbative and triggered by spatial fluctuations that are dismissed at the mean-field level, see e.g.~\cite{Binder2011}. We therefore expect to uncover within this approximation properties of the dynamics of the exact problem in its approach to the metastable regime ($t\ll\tau$). In the next subsections we consider the whole dynamical regime by considering the full spectral properties of the exact problem. In this subsection we proceed as follows: we consider an approximation of the density matrix in the form of an arbitrary product state, i.e $\rho_N={\rho_1}^{\otimes N}$, where ${\rho}_{1}=\frac{1}{2}\mathds{1}+x{S}_{x}+y{S}_{y}+z{S}_{z}$. Note that here $x,y,z=\left\langle{M}_{x}\right\rangle,\left\langle{M}_{y}\right\rangle,\left\langle{M}_{z}\right\rangle$. These coefficients are time dependent, and we substitute this into the master operator, proceeding to trace out all but one spin, i.e. $d{\rho_1}/dt=\text{Tr}_{2,...,N}[\mathcal{L}(\rho)]$. This process gives a set of three non-linear differential equations on the coefficients given by \begin{eqnarray} \dot{x}&=&-\frac{\kappa}{2}x-2Vyz,\nonumber\\ \dot{y}&=&-\frac{\kappa}{2}y+2Vxz-\Omega{z},\label{MeanFieldEqns}\\ \dot{z}&=&-\frac{\kappa}{2}(1+2z)+\Omega{y}.\nonumber \end{eqnarray} The dynamics induced by these equations is highly oscillatory, with rotations about the $x$-axis induced by the transverse field $\Omega$, see Fig.~\ref{MeanField}\textcolor{blue}{(a)}, and rotations about the $z$-axis---weighted by the magnetisation $\left\langle{M}_{z}\right\rangle$, thus no rotation in the $z=0$ plane, Fig.~\ref{MeanField}\textcolor{blue}{(c)}---due to the spin-spin interaction with potential $V$. These oscillations are eventually damped by the decaying terms proportional to $\kappa$.\\ \emph{Stationary solutions}. The steady states of this system of equations are found from the solution of $\dot{x}=0$, $\dot{y}=0$ and $\dot{z}=0$, which gives rise to a 3rd order polynomial in $z$, see \citep{Ates2012Ising}. There is either one or two stable real solutions depending on the parameters chosen, with the set of parameters giving bistable dynamics lying between two ``spinodal'' lines, see Fig.~\ref{MeanField}\textcolor{blue}{(g)}. Outside this region the unique stationary state is ferromagnetic ($z\approx-0.5$) for small $\Omega$ and close to paramagnetic ($x,y,z$ small) for large $\Omega$. Inside the bistable region one of the two stationary states corresponds to a paramagnetic state while the other transitions smoothly from ferromagnetic to paramagnetic with increasing $\Omega$. The two steady states are shown on the flow diagrams in Fig.~\ref{MeanField}\textcolor{blue}{(a-c)}. Since the mean-field approach is expected to capture the short time evolution we anticipate the two steady states to be qualitatively similar in properties to the eMS of the exact model. In order to compare the mean-field approximation with the exact dynamics during the metastable regime, we investigate the average asymptotic magnetisation, $\overline{m}_{\infty}$, reached from pure initial states $\rho_1$ sampled uniformly from the Bloch sphere, Fig.~\ref{MeanField}\textcolor{blue}{(g)}, i.e., the magnetisation of the steady state reached according to Eq.~(\ref{MeanFieldEqns}) (see also~\cite{Marcuzzi2014}). Outside of the bistable regime this is simply the magnetisation of the unique mean-field steady state, $m_{\rm ss}$. Within the bistable regime, $\overline{m}_{\infty}$ is the linear combination obtained from adding up the area of the basins of attraction for the two mean-field steady states, Figs.~\ref{MeanField}(d-f), multiplied by their respective magnetisations. For low $\Omega$ the basins are fairly even in size, giving a sharp transition at the left spinoidal line from $m_{\rm ss}\approx-0.5$ of the unique ferromagnetic steady state to $\overline{m}_{\infty}\approx-0.25$, cf.\ Fig.~\ref{MeanField}\textcolor{blue}{(d-f)}. As $\Omega$ increases the area of the basin for the steady state with a lower magnetisation shrinks continuously, along with the magnetisation of this state increasing, with the area of the basin vanishing at the right spinoidal line, leading to a smooth increase of $\overline{m}_{\infty}$ to $m_{\rm ss}\approx0$. Below we consider the exact dynamics of a finite chain. We will see that the magnetisation, averaged over a uniform distribution of initial states, behaves during the metastable regime in a similar way to the mean-field result above. \subsection{Spectral analysis of the master operator}\label{SpectAnalysis} \begin{figure} \includegraphics[width=1\linewidth]{SpectrumFiniteScalingPlot.png} \caption{\label{SpectrumData}(Color online) (a) The ratio of the real parts of the second and third eigenvalues ${\lambda}_{3}^{R}/{\lambda}_{2}^{R}$, plotted over a region of the parameter space $0\leq{V}\leq250$ and $0\leq\Omega\leq100$. (b) The inverse gap $-1/{\lambda}_{2}^{R}$ plotted over the same region. (c) A cross section of plots (a) and (b) for $V=200$. The dashed (purple) line is the ratio while the solid (blue) line is the inverse gap. (d) The scaling of the maximum value of the ratio (purple triangles) and inverse gap (blue circles) in this range of parameters with system size.} \end{figure} Next we explore how the features of the mean-field treatment manifest in the exact master equation dynamics. To this consider numerically a system with $N=7$ spins. We make use of the system translation invariance to first block diagonalize the master operator \cite{{BucaProsen2012LindSym,AlbertJiang2014LindSym}}. For metastability we require separation in the real part of the spectrum of the Lindbladian, and we find that for this system this occurs between the second and third eigenvalues, so that $m=2$ and the metastable manifold is 1D, see Figs.~\ref{SpectrumToMM}\textcolor{blue}{(a)} and \ref{SpectrumData}\textcolor{blue}{(b)}. The parameter region of metastable dynamics---light yellow wedge in Fig.~\ref{SpectrumData}\textcolor{blue}{(a)}---is suggestive of identification with the bistable region of the mean-field approximation, cf.\ Fig.~\ref{MeanField}\textcolor{blue}{(g)}, with a stretching to lower values of the transverse field. The separation in the spectrum is mainly due to the the spectral gap, $-{\lambda}_{2}^{R}$, getting small, Fig.~\ref{SpectrumData}\textcolor{blue}{(b,c)}. Metastability in the dissipative Ising model is a collective phenomenon, since the ratio ${\lambda}_{3}^{R}/{\lambda}_{2}^{R}$ increases with size, as does the inverse of the gap $-1/{\lambda}_{2}^{R}$, see Fig.~\ref{SpectrumData}\textcolor{blue}{(d)}. It remains an open question whether the gap strictly closes for some combination of parameters in the thermodynamic limit, as in the mean-field approximation. This would correspond to a phase transition in the stationary state of the system. What the mean-field approximation predicts is that this would be a transition between phases of different magnetisation, cf.\ the states at either side of the bistable region, Fig.~\ref{MeanField}\textcolor{blue}{(g)}. Irrespective of whether there is a true transition in the thermodynamic limit, or a smooth but sharp crossover, the decrease of the gap with increasing size, Fig.~\ref{SpectrumData}\textcolor{blue}{(d)}, indicates that metastability is a consequence of the proximity to this transition/crossover point. The system sizes accessible to numerics are far from large, therefore precluding a singular transition. Dependence on size, however, indicates that such a change (whether a transition or sharp crossover) in the steady state magnetisation, ${m}_{\rm ss}=\text{Tr}({M}_{z}{\rho}_{\rm ss})$, from the ferromagnetic state at small~$\Omega$, $m_{\rm ss}\approx-1/2$, to the paramagnetic one at large~$\Omega$, $m_{\rm ss}\approx\text{Tr}({M}_{x}{\rho}_{\rm ss})\approx\text{Tr}({M}_{y}{\rho}_{\rm ss})\approx0$, should become very pronounced at large sizes. See Fig.~\ref{EMSChar}\textcolor{blue}{(a)}. \subsection{Characterization of the metastable manifold}\label{eMSCharact} \begin{figure} \includegraphics[width=1\linewidth]{eMSPlusProjections.png} \caption{\label{EMSChar}(Color online) (a) Magnetisation of the steady state ${m}_{\rm ss}$. The approximate boundary of the metastable region is indicated by the dashed white line. (b) The average $z$ magnetisation $\overline{m}$ in the metastable regime. In this and the following panels we only show the area where metastability holds. (c-d) Expected $z$ magnetisations ${m}_{i}=\text{Tr}({M}_{z}\tilde{\rho}_{i})$ and (e-f) purities ${\gamma}_{i}=\text{Tr}(\tilde{\rho}_{i}^{2})$ of the two metastable phases.} \end{figure} The metastable manifold can be characterised by the properties of two eMSs defined by Eqs.~(\ref{eMS1},\ref{eMS2}), which we investigate below. These two eMSs correspond to ferromagnetic (${m}_{1}\approx-0.5$) and paramagnetic (${m}_{2}\approx0$) states, see Fig.~\ref{EMSChar}\textcolor{blue}{(c-d)}. Note the similarity between the values of ${m}_{1}$ and ${m}_{2}$ resemble the magnetisations of two stationary states in the mean-field approximation, cf.\ Fig.~\ref{MeanField}\textcolor{blue}{(d-f)}. We consider now the behaviour of the magnetisation in $z$-direction, $\langle M_z\rangle$, during the metastable regime taken on average by pure initial states $|\psi\rangle$, see Fig.~\ref{EMSChar}\textcolor{blue}{(b)}, i.e. $\overline{m}=\overline{\mathrm{Tr}({M}_{z}\mathcal{P}|\psi\rangle\langle\psi|)}$, where the bar denotes average w.r.t.\ uniform sampling of $|\psi\rangle$. For most of the parameter regime where metastability is present we have $\overline{m}\approx0$, with a transition at small $\Omega$. This is analogous to $\overline{m}_{\infty}$ in the mean-field case, cf.\ Fig.~\ref{MeanField}\textcolor{blue}{(g)}. Here the size of the basins of attraction (given by $\frac{1}{N}\mathrm{Tr}\tilde{P}_1$ and $\frac{1}{N}\mathrm{Tr}\tilde{P}_2$, respectively) are imbalanced towards the paramagnetic phase for almost all of the metastable region, with a slight increase in area of the ferromagnetic phase at smaller fields. This suggests that the mean-field approximation captures the phenomenology of both the metastable phases and their basins of attraction. Note the contrast between the transition in $\overline{m}$ to the behaviour of the magnetisation $m_{\rm ss}$ of the steady state, cf.\ Fig.~\ref{EMSChar}\textcolor{blue}{(a)}, which takes place for large $\Omega$, outside the metastable parameter region. For the parameters where metastability is present, $\rho_{\rm ss}$ consists mostly of the ferromagnetic phase, $p_1^{\rm ss}\approx1$. This shows that the short time evolution leads on average to the vast majority of initial states evolving to the paramagnetic metastable phase on short time scales, while at longer times they decaying into the mostly ferromagnetic stationary state. The two metastable phases differ also in purity $\gamma=\text{Tr}({\rho}^{2})$, see Fig.~\ref{EMSChar}\textcolor{blue}{(e-f)}, with the ferromagnetic phase being almost pure (${\gamma}_{1}\approx1$), in contrast the paramagnetic one almost completely mixed (${\gamma}_{2}\approx1/2^N$). This is a consequence of the two phases corresponding respectively to inactive and active periods in the photon emission records \citep{Ates2012Ising}. The fluctuations in photon emissions per unit time for the system in the paramagnetic phase cause it to be a mixture of many different pure states, i.e. the large number of jumps causes these periods in the trajectories to consist of many different states, while the relative inactivity of the ferromagnetic phases leaves the state approximately pure. The relation of the metastable phases to activity in quantum trajectories is further studied in Sec.~\ref{Intermittence}. \subsection{Expectations, correlations and effective low-dimensional dynamics} \label{ExpandCorr} \begin{figure} \includegraphics[width=1\columnwidth]{ExpectationsPlusCorrelations.png} \caption{\label{ObsMeta}(Color online) (a) Time evolution of the average $z$-magnetisation, $\left\langle{M}_{z}\right\rangle$ for the initial state $\rho_\uparrow$. The $z$-magnetisations of the metastable phases $\tilde{\rho}_{1,2}$ are represented by the dashed lines. (b) Same but for the initial state $\rho_\rightarrow$. (c,d) Time evolution of the average $x$ magnetisation, $\left\langle{M}_{x}\right\rangle$, for $\rho_\uparrow$ and $\rho_\rightarrow$. The average metastable values are given by dashed lines. (e) Histogram of the probability of finding $\rho_\uparrow$, $\rho_\rightarrow$ and $\rho_{\rm ss}$ in each eMS during the metastable regime, see Eq. \eqref{P1}, \eqref{P2}. (f) Autocorrelation function of the projective measurement related to $M_z$ in $\rho_{\rm ss}$ (see the main text). In panels (a-d,f) the time is in log scale, with the two arrows indicating the time scales $\tau'$ and $\tau$. The exact dynamics is plotted as solid curves, and the effective dynamics as dash-dotted lines. } \end{figure} After the initial relaxation the system state is approximately stationary during the metastable regime before eventual relaxation into the steady state. Metastability can be observed in the two-step decay of the expectation value $\left\langle{O}(t)\right\rangle$ and two-time correlation function $\left\langle{O}(t){O}(0)\right\rangle$ of an observable $O$ measured on the system. Here, we demonstrate that this is indeed the case when the observable is the magnetisation ${M}_{z}$, Eq.~\eqref{eq:M}. We consider dynamics of two initial states: the ``all up" state ${\rho}_{\uparrow}={(\ket{\uparrow}\bra{\uparrow})}^{\otimes{N}}$, where ${\sigma}_{z}\ket{\uparrow}=\ket{\uparrow}$, and the ``all right" state ${\rho}_{\rightarrow}={(\ket{\rightarrow}\bra{\rightarrow})}^{\otimes{N}}$, where ${\sigma}_{x}\ket{\rightarrow}=\ket{\rightarrow}$. The expected values of the $z$-magnetisation, $\left\langle{M}_{z}(t)\right\rangle$, show a plateau in the metastable regime ($\tau'<t<\tau$), see Fig.~\ref{ObsMeta}\textcolor{blue}{(a-b)}, when the initial states evolve into mixtures of metastable phases, Fig.~\ref{ObsMeta}\textcolor{blue}{(e)}. Subsequent evolution takes the magnetisation to that of the mostly ferromagnetic stationary state at later times ($t>\tau$). Meanwhile, the expected value of the $x$-magnetisation, $\left\langle{M}_{x}\right\rangle$, Fig.~\ref{ObsMeta}\textcolor{blue}{(c-d)}, displays oscillations for times $t<\tau'$ suggestive of those present in mean-field model, cf.\ Fig.~\ref{MeanField}\textcolor{blue}{(a-c)}, which is expected to qualitatively represent the short time dynamics. The long-time behaviour is captured by the effective dynamics $\mathcal{L}_\text{eff}$, cf.\ Eq.~\eqref{ApproxExp}. Both states evolve mostly into a paramagnetic metastable phase $\langle M \rangle\approx0$, despite being very different initially, $\mathrm{Tr}({\rho}_{\uparrow}{\rho}_{\rightarrow})=1/2^N$. This demonstrates the dominance of this metastable phase in the short time evolution. In Fig.~\ref{ObsMeta}\textcolor{blue}{(f)} we show how metastability is also observed in the (time averaged) autocorrelation of a measurement conducted on the steady state. The correlations in the difference of probabilities of measuring magnetisations corresponding to the paramagnetic metastable phase, $P({M}_{z}=-N^{-1})+P({M}_{z}=N^{-1})$ as $N$ is odd, and the ferromagnetic one, $P(M=-1/2)$, feature a two-step decay, with large oscillations damped after short times and later dynamics simply given by Eq.~\eqref{ApproxCor}. \subsection{Intermittent dynamics of quantum trajectories}\label{Intermittence} \begin{figure*} \includegraphics[width=1\linewidth]{IntermittencePlusBins.png} \caption{\label{IntTraj} (Color online) (a) A 2d histogram of the average magnetisation $m$ and activity $k$ of time bins of length ${t}_{\text{bin}}=6\tau'$, for parameters $V/\kappa=250$, $\Omega/\kappa=50$ and $N=7$. The arrows indicate the expectation values for $\tilde{\rho}_{1}$ and $\tilde{\rho}_{2}$ respectively, with the decay $e^{{t}_{\text{bin}}\lambda_2}$ of $R_2$ taken into account. The white dashed line indicates the relation $\langle k\rangle /N \kappa = \langle M_z\rangle+\frac{1}{2}$. (b-c) Sample trajectories for two different sets of parameters in the metastable region, $V/\kappa=250$ with $\Omega/\kappa=20$, 50, for N=7 and time in linear scale. The first and seconds rows show the space and time resolved photon emissions and the corresponding magnetisation of the state over time respectively, for a sample QJMC trajectory. The third row shows a sample classical trajectory, jumping between the two metastable phases. The insets on the third row show sketches of the double well potentials of free energy leading to analogous classical evolution between the metastable states of two wells. } \end{figure*} So far we have discussed the dynamics of the system described by the density matrix $\rho(t)$, which is governed by the master operator~\eqref{LindbladOp}, and the related dynamics of observables on the system, such as the spin magnetisation~\eqref{eq:M}. Instead, one can consider an unravelling of a master equation into quantum trajectories~\cite{Breuer2002OpenQuant}, which corresponds to a particular experimental realisation of system dynamics and a continuous measurement. In this case, a quantum jump occurs when, say, the system jump operator $J_k$ flips the $k$-th spin from up-to down, cf.\ Eq.~\eqref{Jumps}, which is accompanied by the emission of a photon into the environment, which can be be detected. In this case, a measurement record up to time $t$ consists of information about which spins emitted photons and the emission times, see Fig.~\ref{IntTraj}\textcolor{blue}{(b-c)}. Based on this record, a quantum trajectory---the conditional pure system state at any time $t'\leq t$---can be reconstructed~\cite{Breuer2002OpenQuant}. The density matrix $\rho(t)$ considered in earlier sections is simply an average over the ensemble of such pure conditional states at time $t$, i.e.\ over the system state at time $t$ in all realisations of the experiment. We now discuss how metastability is present not only in the master equation dynamics, but also in individual quantum trajectories. Photon emission records and quantum trajectories can be generated by the quantum jump Monte Carlo method (see e.g.~\cite{Daley2014ManyBodyQJMC}). The probability of observing no photon emission for time $t'$ for the system initially in $\ket{\psi}$ is given by $P_0(t')=\langle \psi(t')|\psi(t')\rangle$, where $\ket{\psi(t')}=e^{it'{H}_{\text{eff}}}\ket{\psi}$ with the effective Hamiltonian ${H}_{\text{eff}}=H-\frac{i}{2}\sum_{j=1}^N{J}_{j}^{\dagger}{J}_{j}$, cf.\ (\ref{Hamiltonian},\ref{Jumps}). The probability of observing a first photon emission from a $j$-th spin at time $t'$ is further given by ${P}_{j}(t')=\bra{\psi(t')}{J}_{j}^{\dagger}{J}_{j}\ket{\psi(t')}$, and the conditional pure system state is $\ket{{\psi}_{j}(t')}={J}_{j}\ket{\psi(t')}/\sqrt{{P}_{j}(t')}$. Using these definitions one can simulate the system evolution in terms of stochastic quantum trajectories \cite{Daley2014ManyBodyQJMC}. The total number of a photons emitted up to time $t$ for dynamics with a unique steady state obeys the Central Limit theorem~\cite{Guta2011,Catana2015}. Moreover, both the mean and the variance of the total number of emissions asymptotically ($t\gg\tau$) scale linearly in with time $t$, (for the case of the dissipative Ising model see~\cite{Ates2012Ising}). We argue that this also holds in the metastable regime for each of the metastable phases. As the total emission number $\Lambda(t)$ is an observable integrated over the observation time, for time $t$ well inside the metastability regime, the leading terms in its mean and variance are given by the contribution when the system state (averaged over trajectories) is metastable. Since the instantaneous rate $\mu$ of photon emissions from the system in a state $\rho$ is given by its magnetisation, $\mu=\sum_{j=1}^N \mathrm{Tr} ({J}_{j}^{\dagger}{J}_{j}\rho)=N\kappa\left(\mathrm{Tr} ({M}_{z}\rho)+\frac{1}{2}\right)$, the mean number of photons emitted in time $\tau'\ll t\ll \tau$ can be approximated by $\langle\Lambda(t)\rangle\approx t\,N\,\kappa \,(p_1 m_1+p_2 m_2 +\frac{1}{2})$. Consider the case of an initial state evolving into just one of the metastable phases. In that case the mean activity, $k(t)=\Lambda(t)/t$, of trajectories is given by the magnetisation in the corresponding eMS, $\langle k(t)\rangle\approx N\kappa (m_1+\frac{1}{2})$ or $N\kappa(m_2+\frac{1}{2})$. As the correlations of dynamics inside a metastable phase can decay at most at times of order $\tau'$, in this case also the variance, $\Delta^2\Lambda(t)$, scales linearly in time for $t$ within the metastable regime. This means that the variance of the activity, $\Delta^2 k(t)$, is inversely proportional to $t$. If the metastable regime is long enough, the fluctuations of activity around its mean value, $N\kappa\left(m_{1,2}+\frac{1}{2}\right)$, are small and trajectories can be classified as ``active'' (large $k$) or ``inactive'' (small $k$). Note that when an initial state evolves at the beginning of the metastable regime into a mixture of two eMSs, $p_1 \tilde\rho_1+p_2 \tilde\rho_2$, the activity statistics is determined mostly by the contribution from the metastable regime, and thus emission records are a mixture of the active and inactive records. Now consider a \emph{coarse graining} in time of the photon emission records, where an emission record is divided into time bins of size ${t}_{\text{bin}}$ and the emission record is replaced by the activity of time bins. It is known that for intermittent dynamics the time-bin activity distribution can be bimodal~\cite{Ates2012Ising}. From the arguments above it follows that for a ${t}_{\text{bin}}$ well inside the metastable regime that is long enough, the probability distribution of activity is indeed bimodal with inactive dynamics corresponding to magnetisation of the ferromagnetic phase $m_1\approx-0.5$ and the active dynamics corresponding to the paramagnetic phase $m_2\approx 0$, which is visible in Fig.~\ref{IntTraj}\textcolor{blue}{(a)}. This demonstrates that the periods of active and inactive dynamics (so called dynamical phases~\cite{Juan2010ThermoTraj}) correspond to directly to two metastable phases. We now discuss the relation between intermittency and the effective dynamics. For times after initial relaxation $t\gg\tau'$ the system dynamics $\rho(t)$ can be obtained as an average over classical trajectories generated by $\mathcal{L}_\text{eff}$, \eqref{EffectiveMasterOp}, between two metastable phases. Those classical trajectories are ergodic, i.e. time-averaged state in a trajectory approaches the steady state $\rho_{\rm ss}$ for $t\rightarrow\infty$, which requires the ratio of time spent in each of the metastable phases to be given by $p_{1}^{\rm ss}/p_{2}^{\rm ss}=-{c}_{2}^{\rm min}/{c}_{2}^{\rm max}$, cf.\ Eq.~\eqref{EffectiveMasterOp}. On the other hand, we know that the emission record coarse-grained in time consist of active and inactive periods with small fluctuations. As the activity of a long records approaches the emission rate of the steady state, $\left\langle{k}\right\rangle_{\rm ss}=\mu_{\rm ss}=N\kappa(m_{\rm ss}+\frac{1}{2})$, the probabilities of the inactive and active dynamics are again given (approximately) by $p_1^{\rm ss}$ and $p_2^{\rm ss}$ (see Fig.~\ref{IntTraj}\textcolor{blue}{(a)}). Finally, the average length of active/inactive dynamics in coarse-grained records cannot exceed the longest timescale $\tau$ of the model. This yields a direct relation between the classical trajectories and the coarse-grained intermittent emission records, see Fig.~\ref{IntTraj}\textcolor{blue}{(b-c)}. The classical dynamics generated by $\mathcal{L}_\text{eff}$ can be related back to the double-well model discussed in Sec. \ref{MetaTheory}, with the sketches of the relevant double well potential shown in the insets of Fig.~\ref{IntTraj}\textcolor{blue}{(b-c)}. The smaller spectral gap $-{\lambda}_{2}$ for (c), leads to longer periods spent in two phases, analogous to a higher barrier between the wells, and results in a longer equilibration time. When the difference in probabilities between the metastable phases in $\rho_{\rm ss}$, $|p_{1}^{\rm ss}-p_{2}^{\rm ss}|=|{c}_{2}^{\rm max}+c_2^{\rm min}|/\Delta c_2$, is larger (b) the times spent in the two states differ more, analogously to how the bigger difference in free energies of the two wells makes time spent in the well of higher free energy shorter and hence less of the equilibrium state is supported there. The average over the ensemble of quantum trajectories also gives the dynamics of the system state $\rho(t)$. It is not generally known, if those trajectories are ergodic, i.e. whether each time-averaged trajectory asymptotically gives the steady state. If that was the case, as the supports of metastable phases are approximately disjoint~\citep{Kasia2016Meta}, one could expect the quantum trajectories to be ergodic also inside those supports for $\tau'\ll t\ll \tau$, which would lead to the classical trajectories being coarse-graining of quantum ones. By considering the magnetisation of a quantum trajectory, due to its relation to the photon emission activity, one indeed recovers the effective dynamics up to fluctuations within the $\tau'$ timescale, see Fig.~\ref{IntTraj}\textcolor{blue}{(b-c)}. \section{Conclusions} We have applied the general theory of metastability developed recently in Ref.~\citep{Kasia2016Meta} to the dynamics of an open many-body quantum system, namely the open quantum Ising model with transverse field in the presence of site decay, a model which could potentially be realised using Rydberg atoms. For this system the origin and properties of the metastable dynamics is particularly transparent: in a region of parameter space where interactions and transverse field compete there is time separation in the dynamics, such that the two leading eigenmodes of the master operator split from the rest. This means that the metastable manifold to which an initial state decays at short times is a one-dimensional simplex given by the convex combinations of two extreme metastable states. These two states represent the two metastable phases of the problem, an almost pure state of negative magnetisation in the $z$-direction, and one mixed state of almost vanishing magnetisation. We have also shown that the dynamics of this model at long times can be understood in terms of an effective classical dynamics between two phases inside the metastable manifold, which converges to the unique stationary state asymptotically. We have also shown that the short time behaviour and the existence of the long-lived metastable states are qualitatively captured by a straightforward mean-field approximation to the dynamics, very much in the spirit of what one does in slowly relaxing classical systems. We have also discussed how metastability is directly related to fluctuating dynamics in individual realizations of the system evolution, specifically in the form of intermittency of quantum jump trajectories. The physical ingredients that give rise to metastability in the model studied here are those that could also be responsible for the system having a true stationary state phase transition in the thermodynamic limit. But just like in the case of analogous classical problems, the dynamics we uncovered (separation of timescales, transient relaxation to long-lived states, intermittency due to switching between metastable phases) is not dependent on that transition being present, as metastability would occur in systems where the transition is avoided either through finite size or due to other kind of fluctuations. The concrete application of the ideas of Ref.~\citep{Kasia2016Meta} to a many-body system should pave the way for further studies of metastability in other systems with even richer emergent collective dynamics. \acknowledgments The research leading to these results has received funding from the European Research Council under the European Union's Seventh Framework Programme (FP/2007-2013) / ERC Grant Agreement No. 335266 (ESCQUMA). We also acknowledge financial support from EPSRC Grant no.\ EP/M014266/1 and from the H2020-FETPROACT-2014 Grant No. 640378 (RYSQ).
\section{Related Work} Our contributions are based upon the rich body of work in 3D modelling and 3D user interfaces. 3D modelling applications can implement various functions, input methods and interaction designs. However, most of them share some basic functions that can be grouped together into object manipulation, viewpoint manipulation and application control \cite{hand1997survey}. There is a large body of relevant work in 3D User Interfaces for Virtual and Augmented Reality scenarios (for an overview see \cite{bowman20083d}). Here, we focus on object selection and manipulation in mobile AR. Interaction techniques typically rely on camera-based input (e.g., \cite{henrysson2007experiments,harviainen2009camera}, also in combination with touch input \cite{bai2012freeze,marzo2014combining,tiefenbacher2014poster}), mid-air hand or finger input (e.g., \cite{hurst2013gesture,buchmann2004fingartips,bai2012freeze}), tangible objects (e.g., \cite{kato2000virtual,billinghurst2009advanced,bai2013free, sodhi2013bethere}) or a combination thereof. \emph{Camera control} is challenging in handheld AR as the camera can be manipulated with 6 degrees of freedom but it is typically hard for users to accurately and precisely align the device with a specific pose. Approaches for supporting the user in this tasks encompass, e.g., attention funnels \cite{biocca2006attention}, iron sight visualizations \cite{hartl2013mobile, hartl2016efficient} or freezing the camera view \cite{lee2009freeze, grubert2012exploring}. For \emph{object selection}, applications often use a ray casting metaphor. Examples include 3DTouch and HOMER-S \cite{mossel20133dtouch}, TransVision \cite{rekimoto1996transvision}, the Personal Interaction Panel \cite{szalavari1997personal} and Napkin Sketch \cite{xin2008napkin}. DrillSample \cite{mossel2013drillsample} also uses the pointing metaphor by interpreting taps on a smartphone screen, but extends the selection process by adding the so-called DrillSample view to display all objects, that could be selected by this tap, including all hits instead of only the first one. Gesture-based selection of objects has also been investigated, e.g., employing finger tracking and pinching two fingers together above an object to select it (e.g., \cite{hurst2013gesture,buchmann2004fingartips}), bringing the original HeadCrusher idea \cite{pierce1997image} to mobile AR. Lee et al. propose to use marker occlussion to select object \cite{lee2004occlusion}, similar to Vuforia's virtual button technique\footnote{https://developer.vuforia.com/}. Also, tangible user interfaces (TUIs) were explored for object selection (and manipulation), such as VOMAR \cite{kato2000virtual} or project Magic Cup \cite{billinghurst2009advanced}. For \emph{translation and scaling tasks}, it is common to allow free positioning in 3D by attaching the object to a tool or the tracked hand. Examples include the Personal Interaction Panel \cite{szalavari1997personal}, FingARtips \cite{buchmann2004fingartips}, HandyAR \cite{lee2007handy}, Magic Cup \cite{billinghurst2009advanced}, VOMAR \cite{kato2000virtual} or, recently, work by Kim et al. \cite{kim2016touch}. In HOMER-S \cite{mossel20133dtouch}, the object doesn't get locked to a tool or hand, but instead locks its relative position directly to the device's camera. The user can therefore move the device around and to the desired location considering the relative positioning of the object to the camera. The combination of multi-touch and device movements was also investigated \cite{marzo2014combining,tiefenbacher2014poster}. For \emph{rotation tasks}, approaches commonly rely on constraint rotation around individual axes (e.g., \cite{au2012multitouch, billinghurst2009advanced, mossel20133dtouch, hurst2013gesture} and some on free rotation by attaching the object to a hand or prop (e.g., \cite{kato2000virtual, buchmann2004fingartips}. \section{Initial Interactive Prototypes} We initially investigated both a camera-based approach and a tangible AR system for manipulating individual body parts of a 3D character (head, arms, torso, legs). An important requirement when developing the prototypes was to strive for an entertaining experience while maintaining a satisfying precision and efficiency. Since a character editor is part of a game, people are using it with the intention of having fun with the game. Therefore, it is a good idea to make the process of creating the character as fun and entertaining as possible. It should also be noted that most games only offer character customization instead of actual character creation. This is because games typically rely on the character to follow certain restrictions. Hence, we restricted the prototypes on standard spatial manipulation tasks for certain body parts. In the first iteration, we only focused on selection and scale tasks, while in the final AR prototype we also included translation and rotation. \subsection{Camera-based approach} In the initial camera-based approach the 3D pose of a handheld device is used both for viewport manipulation and object manipulation (similar to \cite{harviainen2009camera}). Object selection is done through raycasting (the user touches the projection of a 3D object on screen). For scaling, the device is moved closer or further towards the object and the selected body part is enlarged as the device is moving away or shrunk of the device moves closer. When scaling, all body parts automatically adjust their positions in a way that their point of intersection with the body remain unchanged. A clutch mechanism (using an on-screen button) is used for activating the action. \subsection{Tangible UI} We used a pen metaphor for spatial manipulation of character parts. The device could be used for interactions using a pointing metaphor, where the pen tip is the pointer. Rotating the pen to a side with a different marker could trigger a new manipulation mode, which additionally has to be activated by pressing a lock button on the touchscreen. For the scaling interaction, as visualized in Figure \ref{fig:interSCA}, the associated scale marker must be tracked by the device's camera. By this, the scale mode is activated and the user can start the manipulation phase by pressing the lock button. The selected object will now always scale to a size, where its hull touches the MarkerPen's tip. When the user moves the MarkerPen away from the object, the object increases in size, following the pen tip and when tip is moved towards or into the object, it scales down to again match the size pointed out by the tip. By pressing the lock button again, the object is released from the manipulation mode and the scale is applied. \vspace{-0.5cm} \begin{figure}[!htbp] \centering \vspace*{0.3in} \includegraphics[width=0.8\columnwidth]{images/interaction_resize_wdirectional_cmyk.jpg} \vspace*{0.2in} \caption{MarkerPen-based approach: Interaction steps for scaling: 1) Arm is preselected and scale marker is tracked 2) the MarkerPen is moved and the arm is resized to touch the pen's tip. Top: with directional scaling, the arm keeps its relative position to the torso. Bottom: without directional scaling} \label{fig:interSCA} \end{figure} \subsection{Initial Evaluation} The first evaluation compared two early-stage prototypes of the camera-based approach and the MarkerPen version for scaling an object. A repeated-measures design was used. The subjects could test both approaches, filled out the user experience questionnaire (UEQ) \cite{laugwitz2008construction} and gave qualitative feedback as part of a semi-structured interview. The target of this iteration was to get a impression of how the users are interacting with and responding to the prototypes, if the prototypes are suitable for the task and which improvements might be necessary. Finally, one protoype should be selected for further development. Six students with background in computer science participated in the study (1 female, 5 male, mean age 25.6 years sd=3.4). The test application for the initial evaluation cycle was built Unity3D and consisted of a simple menu, from which either prototype could be launched, and the prototypes themselves. This application was installed on a HTC One M7 running Android 5.0.2. Next to the actual prototype application, a screen and microphone recorder was running to create audio and video material for later analysis and reference. Each prototype showed the same model which consisted out of a cube as body and a sphere as head with some basic textures. No selection was possible, the head was preselected and the only possible interaction was the resizing of the head. The evaluations took place in a laboratory environment. At the beginning of the evaluation, every participant was given a short informal introduction on the procedure of the experiment and they were asked if they agree to the voice recording, which all of them did. Following the concept of a think-aloud protocol , participants were asked to continuously express their thoughts to gain further insights into users' expectations and understanding of the user interface. After this introduction, voice recording was started and the test person was asked to try out the first prototype. No time limit was given to the participants so they could experiment with the prototype as long as they wanted to. Most of them tested each prototype for about two to five minutes while expressing opinions, comments and ideas for improvement. The participants were then asked to fill the UEQ questionnaire. After they finished testing the first prototype, the test setup was changed according to the prototype (e.g. positioning the marker correctly, preparing the mounting, ...) and the participant was asked to start testing the other prototype. During the evaluation, the probands were allowed to ask questions or ask for help if needed. The starting order of the applications was randomized. \subsection{Results and Discussion} Figure \ref{fig:ueq1} shows the results from the UEQ questionnaire. The values represent the means of the scales, ranging from -3 to +3 where -3 means an extremely bad performance and +3 an extraordinary high performance. The camera-based prototype scored high in perspicuity, efficiency and dependability while scoring lower on attractiveness, stimulation and novelty. The figure also shows how well the camera-based prototype performed in relation to other products and innovations from the UEQ benchmark data set. The benchmark includes data from 4818 persons from 163 studies about various products and "allows conclusions about the relative quality of the evaluated product compared to other products" \cite{ueq}. Findings from qualitative analysis show that the camera-based prototype was well received for its practical and functional aspects. Participants described it as easy to understand, that it worked well and that the tracking was good. Compared to other products from the UEQ benchmark, the MarkerPen prototype scored well in stimulation and novelty, but only scored average and below average for the other measures. The approach scored lowest for efficiency and dependability. The mean of the dependability scale for the MarkerPen prototype has a high deviation. As the tracking of the frame marker was prone to errors and easily affected by changing lighting conditions, it is possible that this scale could improve substantially when the frame marker tracking of the prototype is further improved. Some participants had problems with learning the interaction with the MarkerPen. They stated to not feel in control and having problems with holding the pen correctly. This seemed to improve when they get accustomed to the interaction. Then, those participants found the prototype useful and even intuitive and thought the interaction "feels good". When comparing the UEQ findings of the camera-based and the MarkerPen prototype, one prominent difference shows in the performance in hedonistic and pragmatic measures. While the camera-based approach scores high on pragmatic quality but lacks hedonic quality, the MarkerPen-based prototype scores high on hedonic, but low on pragmatic quality. No significance tests were made due to the small number of participants. Furthermore, there was no necessity for it, as the evaluation was primarily conducted to gain information for future prototype development decisions. \begin{figure}[!htbp] \centering \includegraphics[width=1\columnwidth]{images/ueq-pre-study_cmyk.jpg} \caption{Results of the UEQ for the TUI-based prototype (top row) and camera-based prototype (bottom row) in the inital evaluation.} \label{fig:ueq1} \end{figure} This research aims to find a suitable interaction design for a 3D AR character editing tool for games. For the goal of providing simple interactions that allow fast as well as more detailed modeling, both prototypes provided a satisfying experience, however the camera-based approach was easier to learn and it outranked the MarkerPen prototype in terms of efficiency. It could not be inferred at this stage if fast prototyping as well as detailed modeling are easily supported by the prototypes. An important requirement, is to strive for an entertaining experience, as long as a satisfying degree of precision and efficiency can still be provided Since the hedonic quality of the MarkerPen-based approach is substantially higher than that of the camera-based approach, and due to the assumption that the pragmatic measures of the MarkerPen prototype will improve with further development and enhancements of the frame marker tracking, the MarkerPen approach was developed further. \section{Refined prototypes and evaluation} The final evaluation compared a refined version of the MarkerPen prototype to a Non-AR prototype. The aim of this evaluation was to determine how well the developed AR prototype performs relative to a traditional approach to mobile character editing. The final evaluation again used a repeated-measures design, with counterbalanced starting order of the prototypes. \subsection{Refined tangible UI} The final prototype was built similarly to the previous one. This time however, foam board was used for the marker cube instead of cardboard, to provide a better stability. Also, a hexagonal pencil was used instead of a round one and hexagonal holes were cut into the foam board cube to stick the pencil through. This prevented the marker cube from spinning around the pencil. Figure \ref{fig:markerpenFinal2} shows the AR prototype in use. \begin{figure}[!htbp] \centering \includegraphics[width=0.95\columnwidth]{images/NoMounting_cmyk.jpg}\\ \includegraphics[width=0.95\columnwidth]{images/AR-Screen-english_cmyk.jpg} \caption[Final prototype of the MarkerPen in use ]{Final prototype of the MarkerPen in use (top row) and screenshot of application (bottom row)} \label{fig:markerpenFinal2} \end{figure} Four different frame markers were created for the prototype, one for each manipulation mode. Each of them features its own color, a matching icon in its center and a descriptive verb beneath it to make it easier to understand and distinguish between the modes. Each marker was attached to one side of the foam board cube. The on-screen mode trigger button for starting and stopping manipulations, which was introduced with the first prototypes worked well but the naming ("Lock"/"Release") and appearance confused the users in the first place. Therefore, the button was improved in the final prototype and is now only visible if the MarkerPen is tracked. Furthermore, it displays the same icon as can be seen on the tracked operation marker. This emphasises the relationship between the tracking of a mode marker and the button on the touchscreen. Updating the buttons icon depending on the tracked operation marker also helps the user to understand what the mode trigger does. As depth perception can be a challenge in AR applications, a shadow for the MarkerPen's tip was added to give the user a better understanding of the pen's location in depth. \subsection{Non-AR comparison application} We compared a number of mobile 3D editing applications (Creationist 3D modeling, Qubism 3D modeling FormIt 360, Sketcher 3D, Spacedraw). However, none of them allowed the implementation of target objects that could be used to visualize the target manipulation of an object to solve spatial manipulation tasks. To this end, an existing in-house character editing software was adapted to meet the requirements of this research. This prototypical software aimed to implement transform handles similar to the ones used in 3D Creationist\footnote{http://www.3dcreationist.com/} that could be applied to any 3D object. It includes the basic transformations rotation, translation and scale and just like in 3D Creationist, the handle bars can be dragged to apply those manipulations along that axis, see Figure \ref{fig:narScreen}. \subsection{Participants} For the final evaluation, ten probands of different professions and experiences with smart phones and gaming participated in the study (4 female, 6 male, age: 22-29 years). Eight test persons stated that they are experienced or very experienced in the use of smartphones and nine play games on their mobile devices at least occasionally. This matches the target group of this research, which consists of intermediate and advanced smartphone users interested in mobile gaming. Five probands had experience in professional 3D modeling and seven already had experiences with AR. Two persons indicated to be very experienced with AR applications, and stated that they used AR apps frequently. Nine of ten participants used a character editor at least once before, eight of them used character editors more than once. \begin{figure}[!htbp] \centering \includegraphics[width=0.9\columnwidth]{images/NAR-Screen-english_cmyk.jpg} \caption{Screenshot of the Non-AR prototype. The current task is displayed in red, the selected action is highlighted in dark green, the target pose is indicated by a semi-transparent copy of the body part to be manipulated.} \label{fig:narScreen} \end{figure} \subsection{Hypotheses} Our first hypothesis was \textit{H1: Touch-based manipulation will be faster than the MarkerPen approach}. This hypothesis originates from the fact that it costs some time to rotate the MarkerPen and (re-)track the markers. Additionally, handling and coordinating the MarkerPen and the smart phone probably costs more time than only interacting with the touch screen, where only small movements are required. Tracking problems can affect the accuracy and efficiency, therefore the second hypothesis was Hence, the second hypothesis was \textit{H2: MarkerPen-based manipulation will be more exciting and fun to use than the touch-based approach}. \subsection{Procedure} The procedure was adopted from the first evaluation with following changes: After a free testing phase (for every prototype and every function), participants completed a given task set, repeated the task with the second prototype. After all tasks were completed the participants filled out the UEQ and a preference questionnaire. For data analysis of performance measures, outliers (distance from median $>$ 1.5 interquartile range) were removed. \subsection{Tasks} In total, the participants had to perform 56 tasks: seven for each operation (select, scale, rotate, translate) and prototype (AR and non-AR prototype). The tasks were the same for each prototype to ensure the results are comparable. In every task set for an operation, there was at least one task for each body part of the model, to make sure different conditions such as different object sizes are tested. For the same reason, the tasks were designed to cover different target transformations. For rotation for example, some tasks only required small rotations while others required big or even multiple ones around different axes. For every task, the same character model was displayed in the so called T-pose, as can be seen in figure \ref{fig:narScreen}. The T-pose is a typical modeling pose where the character stands on straight legs and the arms point sideways. The size of the camera frustum the model takes up was matched between prototypes. The model consisted of seven body parts: head, neck, two arms, two legs and the torso. For a better distinction of the body parts, they all featured different colors. To ensure that rotations could be seen correctly, they furthermore had a checkerboard texture with a diagonal gradient applied to them. At the bottom of the screen a text box displayed the task to accomplish, such as "Select: Head" or "Translate: Green Arm". For body parts that are not unique, such as arms and legs, the color of the associated body part was added to the task text instead of directions such as right and left to prevent confusion and additional cognitive load. For selection tasks, there were no further aids. For other operation tasks however, some further assistance was implemented to allow the user to carry out the task without distractions or dependencies on other interactions. One such assistance was the preselection of the concerned body part. This assistance is important to measure the performance of the operations without influencing it with the performance of the selection interaction. When all task sets had been finished, the application prompted the user to fill out the concluding questionnaire and quit when the user pressed confirm. For all tasks except for selection tasks, a semi-transparent duplicate of the affected body part was shown in the same place as the original body part. This duplicate visualizes the transformation objective and will subsequently be referred to as "hint" or "ghost". The ghost is spatially registered in the 3D environment, which can be seen in Figure \ref{fig:narScreen} for the non-AR prototype, and can be occluded by other objects, such as body parts. A task was finished by tapping a check mark button (lower left \ref{fig:narScreen}) in Figure. A task could be finished at any time by the user without regard to progress, accuracy or correctness. Whenever a task was finished, information about the performance of the user in this task was stored on the device. This includes the total time needed to fulfill the task, the time needed since the last reset, the count of resets used and the deviation from the target. For rotation tasks, the angle in degrees between the target and actual rotation is stored as a floating point value. For scale and translation operations, the deviation was calculated for every axis by subtracting the position or scale vector of the ghost object from the according vector of the actual body part object. \subsection{Results} The mean task completion times (TCTs) for the individual tasks were as follows for the AR and non-AR (NAR) prototype. \emph{Selection:} AR: 8.14s (sd=3.41) NAR: 2.67s (sd=0.92). \emph{Translation:} AR: 38.55s (sd=21.65), NAR: 17.34s (sd=8.97). \emph{Rotation:} AR: 75.96s (sd=61.28), NAR: 79.33 (sd=46.49). \emph{Scaling:} AR: 15.64s (sd=6.79), NAR: 15.45s (sd=6.77). For selection and translation, the non-AR prototype was significantly faster as indicated by Wilcoxon signed rank tests (as data was not normal distributed as indicated by Shapiro-Wilk normality tests), but not for rotation and scaling. \emph{Selection}: p$<$0.0001, Z=6.78, Cohen's d=1.38. \emph{Translation}: p$<$0.0001, Z=5.01, d=0.92. \emph{Rotation}: p=0.051, Z=-1.95, d=-0.33. \emph{Scale}: p=0.06, Z=0.52, d=0.088. \begin{figure}[!htbp] \centering \includegraphics[width=1\columnwidth]{images/ueq-final-study_cmyk.jpg} \caption{Results of the UEQ for the final TUI-based prototype (top row) and non-AR prototype (bottom row) in the final evaluation.} \label{fig:ueqfinal} \vspace{-0.5cm} \end{figure} The results of the UEQ are shown in Figure \ref{fig:ueqfinal}. Wilcoxon signed rank tests indicated statistically significant differences for stimulation (p=0.016, Z=2.40, Cohen's d=1.27, median AR=1.88, median NAR=-0.25) and novelty (p=0.005, Z=2.80, d=1.61, median AR=2.38, median NAR=-0.63), but for no other dimension. 80\% of the partakers explicitly described the TUI-based prototype to be fun to use and five out of ten think it is innovative, exciting and more aesthetically pleasing than the traditional version. A problem with the rotation was that 30\% of the users did not fully understand the interaction: instead of drawing circles with the tip of the pen to rotate the object, they only moved it in one dimension, either up and down or left and right, which still worked but probably led to a different user experience than intended. This misunderstanding occurred even though they had time to try out these interactions in the free testing period in which the participants were free to ask for help but were not corrected proactively. In general, the rotation was said to sometimes require too much effort, especially when standing up for rotations around the Y axis is required, which was even stated to be annoying. Some people were surprised by the operations to result in absolute changes instead of relative ones. Five people mentioned that for the rotation interaction and four for the translation. While for some this was only surprising, a few found that annoying, stating by that they are not able to make smaller refinements after an initial manipulation. About the MarkerPen itself, four participants stated that the cube to which the markers are applied is too big and gets in the way when being close to the smart phone or table surface. This experience was highly affected by how the user held and interacted with the MarkerPen. While some participants skilfully rotated the pen around or de- and increased the distance to the camera as needed, others interacted with the pen in a less swift and flexible manner, leading to the problems stated above. The usage of the MarkerPen needed some practice as three participants stated, but after that, one of the participants stated, it is very easy to use. Three people seemed to have problems with the perception of depth in this environment. Especially in translation tasks, they were repeatedly surprised where they placed the object in depth when viewing it from the side. The same users stated that the translation interaction is annoying, frustrating and too sensitive. Nonetheless, participants highly improved after finding out they could use the shadows of the pen tip and the ghost object as hints to match the depths of the objects. To be required to interact also with buttons on the touchscreen of the device was annoying according to three users and they would prefer hardware buttons on the pen itself. Particularly unpleasant was the placement of the buttons to start a new task and the reset button, which were placed in the middle of the screen. This was especially inconvenient for participants who did not use a mounting as they already used both of their hands for holding the device and the MarkerPen. Camera control was another positively remarked topic. Three people explicitly stated to like the camera controls, mentioning it would be easier and more intuitive than in the non-AR approach. Furthermore, they liked the possibility to manipulate the object and change camera perspective at the same time. While the prototype as a whole was perceived as intuitive by three people, the rotation interaction did not seem intuitive to the same amount of people, who stated it would require a high cognitive effort. One participant however also remarked that this it felt like "a fun puzzle game". The non-AR prototype proved to be intuitive to use. Half of the probands did not even needed instructions. One of those probands however mentioned to have needed the manual for understanding the rotations but did not need it for the other functions. Four of the probands liked being able to work only on one axis without affecting the others as this for example prevented unintended translations in depth. 80\% stated to prefer the AR prototype. The main reason for that was, that the AR prototype was more exciting and fun to use, as this was stated by six out of eight participants who preferred the AR version. Specifically, they described it as cool, innovative and refreshingly different. Two partakers stated practical reasons for their preference: One user liked being able to manipulate the character and the viewport at the same time. Two others stated the interaction feels more real and direct, creating a better feeling of control. Of the eight users who prefer the AR prototype, five prefer to use it without a smart phone mounting. Of the two who prefer the non-AR version, one person stated that it is quicker to use. If the editor would be part of a game, the person stated to like to play instead of spending extra time on character editing. The second person explained their preference with the non-AR version being more simple, predictable and stable. \subsection{Discussion} The study indicated that participants found the tangible AR prototype innovative and exciting to use. Although the performance of the prototype was good in terms of hedonic measures and efficiency, further experiments with interaction designs should be made and compared to maximize the usability. The task completion times indicated, while for simple tasks such as selection, the non-ar prototype was significantly faster, their was no significance difference for more complex tasks such as rotation. This might be due to the fact, that in the non-AR prototype rotation can require multiple subsequent actions while in AR (theoretically) a single motion with the MarkerPen is sufficient. Regarding selection tasks, a traditional approach should be considered if the user has a free hand available for interacting with the touch screen, as the selection using tap gestures is significantly more efficient and the users are accustomed to it. A design that allows selection on the touch screen as well as with the marker enriched device could also be a promising way to go, as then people who use a mounting can use their free hand for selection on the touch screen. An interesting general finding was the lower correlation between the satisfaction with the time needed and the actual time passed for the AR prototype. This leads to the assumption, that the actually passed time is a less important factor in the AR version, which might be caused by the participants having more fun than with the non-AR prototype, as people tend to underestimate durations while having fun \cite{thayer1975eye}. Another possible reason might be a different demand in concentration for both prototypes, which could also affect the time perception \cite{jones1976time}. However, the AR version also was perceived as more difficult compared to the non-AR prototype. The reasons for those effects could be investigated in future research to gain further insights into perceived differences between both prototypes. Overall, the proposed AR prototype performed well in the evaluation. While it is indicated that it can't compete with the traditional prototype regarding pragmatic measures such as efficiency and dependability, for which it can however still deliver fairly satisfying results, it performs well in terms of hedonistic measures. This could make it suitable for mobile AR games, for which efficiency and accuracy might not as important as an innovative and fun interaction design. The presented prototypes only implemented the four basic manipulations selection, rotation, scale and translation. There are further manipulations that might be suitable for AR character editing, such as deformation. Furthermore, character editors often implement various other functions, such as changing colours and textures of objects. How well the AR environment and the presented prototype specifically suit such functions and other manipulations should be investigated in future research. While the evaluations tested the performance of individual manipulations in different tasks, it remains unclear how well the prototype would perform in a free setting, where the different manipulations are not isolated from each other and users don’t have to solve tasks. Finally, different types of games will impose different requirements onto a character editor. Further studies should be conducted, to investigate the performance of the presented prototype in different settings, also beyond gaming, e.g., in hedonic oriented touristic \cite{grubert2015utility} or marketing applications. \section{Conclusion} Two AR user interface concepts and according initial prototypes were developed, one based on camera movements, the other on a tangible pen. Both proved to be applicable for the task of character editing, however, the MarkerPen-based approach proved to be more entertaining This concept was further developed in further design iterations. This prototype was then compared to a traditional non-AR approach. The proposed MarkerPen-based approach performed well in terms of hedonistic measures while also keeping the performance in pragmatic measures such as efficiency on a proficient level. In direct comparison with a traditional approach, most probands preferred the proposed AR prototype for it being more fun and exciting, more direct to control and for more intuitive viewport control. As AR modeling proved to be more entertaining and exciting than traditional approaches, game developers could use this information to improve the user experience and satisfaction of mobile AR games by adding an AR character editor based on the proposed prototype. Furthermore, this work can serve as base for future research in the fields of AR character editing, AR 3D modeling and tangible user interfaces. \bibliographystyle{abbrv}
\section{Introduction} \setlength{\parindent}{0cm} By any standard, Leibniz's effort to create a ``universal calculus'' should be considered one of the most ambitious intellectual agendas ever conceived. Building on his previous successes in developing the infinitesimal calculus, Leibniz aimed to extend the notion of a symbolic calculus to all domains of human thought, from law, to medicine, to biology, to theology. The ultimate vision was a pictorial language which could be learned by anyone in a matter of weeks and which would transparently represent the factual content of all human knowledge. This would be the starting point for developing a logical means for manipulating the associated symbolic representation, thus giving rise to the ability to model nature and society, to derive new logic truths, and to eliminate logical contradictions from the foundations of Christian thought \citep{yates, rossi, gomar}. \\ Astonishingly, many elements of this agenda are quite familiar when examined from the perspective of modern computer science. The starting point for this agenda would be an encyclopedia of structured knowledge, not unlike our own contemporary efforts related to the Semantic Web, Web 2.0, or LinkedData \citep{wolfram}. Rather than consisting of prose descriptions, this encyclopedia would consist of taxonomies of basic concepts extending across all subjects. \\ Leibniz then wanted to create a symbolic representation of each of the fundamental concepts in this repository of structured information. It is the choice of the symbolic representation that is particularly striking. Unlike the usual mathematical symbols that comprise the differential calculus, Leibniz's effort would rely on \emph{mnemonic images} which were useful for memorizing facts. \\ Whereas modern thinkers usually imagine memorization to be a task accomplished through pure repetition, 16th and 17th-century Europe saw fundamental innovation in the theory and practice of memory. During this period, practitioners of the memory arts relied on a diverse array of visualization techniques that allowed them to recall massive amounts of information with extraordinary precision. These memory techniques were part of a broader intellectual culture which viewed memorization as a foundational methodology for structuring knowledge \citep{yates, rossi, gomar}. \\ The basic elements of this methodology were mnemonic techniques. Not the simple catch phrases that we typically associate with mnemonics, but rather, elaborate visualized scenes or images that represented what was to be remembered. It is these same memory techniques that are used in modern memory competitions and which allow competitors to perform such superhuman feats as memorizing the order of a deck of cards in under 25 seconds, or thousands of random numbers in an hour. The basic principle behind these techniques is the same, namely, that a striking and inventive visual image can dramatically aid the memory \citep{foer}. \\ Leibniz and many of his contemporaries had a much more ambitious vision for mnemonics than our modern day competitive memorizers. They believed that the process of memorization went hand in hand with structuring knowledge, and furthermore, that there were better and worse mnemonics and that the different types of pictorial representations could have different philosophical and scientific implications. \\ For instance, if the purpose was merely to memorize, one might create the most lewd and absurd possible images in order to remember some list of facts. Indeed, this was recommended by enterprising memory theorists of the day trying to make money by selling pamphlets on how to improve one's memory \citep{yates, gomar}. To give the reader some intuition for what these techniques look like, let me give a simple example. Suppose I want to remember that the word feline means ``possessing the qualities of a cat." I might imagine a huge palace devoted to cats, with two huge statues of cats on either side of the entrance. I might imagine that a large number of cats were standing in ``line'' waiting to enter the facility, and that the statues were made of ``Fe," or iron. \\ As absurd and silly as it might seem, mnemonic techniques such as this one are incredibly effective at helping people to remember. Joshua Foer's memoir \emph{Moonwalking with Einstein} is an engaging and insightful first-person account of the ``competitive memory circuit,'' where techniques such as this one are the bread and butter of how elite competitors are able to perform feats of memory that boggle the mind \citep{foer}. \\ But whereas in the modern world, mnemonic techniques have been relegated to learning vocabulary words and the competitive memory circuit, elite intellectuals several centuries ago had a much more ambitious vision the ultimate implications of this methodology. In particular, Leibniz hoped that through a rigorous process of \emph{notation engineering} one might be able to preserve the memory-aiding properties of mnemonics while eliminating the inevitable conceptual interference that arises in creating absurdly comical, lewd, or provocative mnemonics. By drawing inspiration from the Chinese alphabet and Egyptian hieroglyphics, he hoped to create a language that could be learned by anyone in a short period of time and which would transparently-- through the pictorial dimension-- represent the factual content of a curated encyclopedia. Furthermore, by building upon his successes in developing the infinitesimal calculus, Leibniz hoped that a logical structure would emerge which would allow novel insights to be derived by manipulating the associated symbolic calculus \citep{yates, rossi, gomar}. \\ \begin{figure}\label{fig:sym-sys} \begin{center} \includegraphics[width=.5\textwidth]{symbolic_systems2} \caption{{\small Diagram showing where different symbolic systems lie with respect to two criteria central to understanding Leibniz's efforts to create a universal calculus-- memorability and potential for conceptual abstraction. The point in the upper right indicates a hypothetical system combining the memory-aiding power of mnemonics with the potential for logical abstraction of mathematics. (Figure originally taken from \citep{gomar})}} \end{center} \end{figure} Figure \ref{fig:sym-sys} shows a cartoon diagram which attempts to capture how Leibniz and his contemporaries might have viewed different possible symbolic systems with respect to the capacity for abstraction and the criterion of memorability. It is the latter capacity which is so incredibly unusual and striking from a modern perspective. Although mathematical scientists (and also programming language designers) certainly value ease of understanding and notational clarity, the notion that a symbolic language could be lifted off of the page and sealed into one's mind with the certainty of rote memorization is a truly foreign one for contemporary thinkers. \\ Leibniz's motivations extended far beyond the realm of the natural sciences. Using mnemonics as the core alphabet to engineer a symbolic system with complete notational transparency would mean that all people would be able to learn this language, regardless of their level of education or cultural background. It would be a truly universal language, one that would unite the world, end religious conflict, and bring about widespread peace and prosperity. \\ It was a beautiful and humane vision, although it goes without saying that it did not materialize. \section{Wigner's question and the failure of Leibniz's agenda} In a widely cited essay, physicist Eugene Wigner writes: \begin{quote} {\small The miracle of the appropriateness of the language of mathematics for the formulation of the laws of physics is a wonderful gift which we neither understand nor deserve. We should be grateful for it and hope that it will remain valid in future research and that it will extend, for better or for worse, to our pleasure, even though perhaps also to our bafflement, to wide branches of learning \citep{wigner}. } \end{quote} For the remainder of the essay, I will refer to the question ``why does mathematics allow us to formulate physical laws and predict the behavior of Nature?" as ``Wigner's question.'' How does this relate to Leibniz and the universal calculus? Leibniz believed that a suitable variant of classical mnemonic techniques would ultimately result in a symbolic system vastly superior to ordinary mathematics. And coming from a man who had just delivered one of the most important mathematical formalisms ever developed, this was not a vision to scoff at. Whereas Newton quickly tacked important problems in physics using the tools of the infinitesimal calculus, Leibniz chose instead to view ``ordinary'' calculus as simply a ``toy model'' of a much more ambitious agenda, namely the notion of extending a symbolic calculus to all domains of human knowledge. \\ In other words, Leibniz viewed mnemonics (or the superior versions of them he hoped to create, drawing inspiration from the Chinese and Egyptian alphabets) as providing a \emph{potential basis for physical theories}. It is this perspective of Leibniz that provides the link to Wigner's question. In particular, I suggest the following closely related questions: \begin{itemize} \item Why does mathematics give rise to a near infinite capacity for conceptual abstraction, whereas mnemonics do not? \item Why did the agenda of the universal calculus and the vision of a single symbolic language spanning all areas of knowledge fail? \end{itemize} As Wigner himself says, most of what will be said about these topics will not be new. Many, if not most, theoretical scientists have marveled at some point or another about the miracle of mathematics and its relationship to physical systems. To begin to answer the above questions, I suggest a secondary question which is a converse to Wigner's original one. The question is the following: What would a symbolic system look like which had many of the properties of mathematics, but not others? That is, a symbolic system which comes close to behaving like mathematics, but then falls short, and in particular, which does not allow us to model physical systems and prove its unreasonable effectiveness? \\ My claim is that 16th and 17th-century efforts to create a universal language provide us with an entire category of symbolic systems which are ``non-quite-mathematics.'' If we assume at the most basic level that mathematics is a symbolic language which encodes a set of relationships, then surely mnemonics also have this property. For instance, the image of the palace of cats that I gave above is a symbolic representation of the word ``feline'' and if I were to make a list of mnemonics which allowed me to memorize the entirety of the periodic table of elements, I would also have a symbolic representation of the corresponding chemical and physical properties. And yet it seems that there is nowhere to go from here. Whereas the symbols of mathematics give rise to near infinite capacity for conceptual abstraction, with mnemonics, it seems that we are stuck in the mud. They start with some mathematical properties in being symbolic representations of certain concepts but they do not build from there in allowing for any conceptual abstraction. \\ Leibniz had some fascinating ideas for how to build up a logical structure on top of the core system of mnemonics. For instance, a problem which he viewed as foundational to constructing the universal calculus was to determine for any given predicate, what the valid objects would be, and conversely, given an object, to compute all possible predicates. One method of attack that he invented was to fix an ordering of predicates, and to each one, assign the corresponding prime number. Thus, one could uniquely associate to any given object a composite number, from which the prime factorization would give the corresponding predicates, all of which would have associated to them, a mnemonic image. \\ It is quite an ingenious idea (and reminiscent of G\"odel numbers). But most importantly, the above example serves to undermine the criticism that the universal calculus failed because it was simply a one-to-one mapping from facts to symbols without an associated logical structure. Constructing such a structure was precisely Leibniz's aim, although it is not clear exactly how much progress he made \citep{rossi, wolfram}. \\ And the fact that this was even attempted provides us with a novel attack on Wigner's question. It gives us a set of archeological artifacts in the history of mathematics, symbolic systems which possessed some, but not all of the properties of mathematics, and which ultimately, did not give rise to any capacity to model nature. In other words, they were quite reasonably ineffective at explaining anything. Why? \section{Reductionism and levels of abstraction} In this section, I suggest a partial answer to the second question given above.\footnote{I do not believe that the argument I present here addresses the more narrow question of why mnemonics fail at providing an adequate symbolic language capable of giving rise to a rich logical structure and potential for conceptual abstraction.} My thesis is the following: the failure of Leibniz's agenda can be attributed to an incoherent application of and appreciation for reductionism. In particular, creating the universal calculus would require symbolic representations in different domains which operated at vastly different levels of abstraction (for example, time scales, or length scales) to be integrated into a single system. \\ Let me now elaborate on the above argument. Three centuries after Leibniz, we can say purely from experience, that systems amenable to mathematical analysis appear periodically, although it is not entirely clear a priori that this will be the case \citep{wigner, nks}. Consider, for example, the biological sciences-- which one might have inferred from Rutherford's famous quip-- is a subject doomed to stamp collecting, with the primary work being empirical and the content of the various sub-disciplines largely taxonomic. And yet in the last century, we have seen an explosion of mathematical work in the biological sciences, ranging from population genetics and evolutionary game theory, to genomics and theoretical neuroscience. If one had told the mathematical luminaries and physicists of the 18th century that biology would give rise to mathematical models of any level of sophistication, would they have believed it? Furthermore, the biological sciences are an area where data-driven modeling is giving rise to significant transformation. And as Halevy, Norvig, and Pereira discuss in their widely read essay, ``The Unreasonable Effectiveness of Data,'' while data-driven methodology is certainly sophisticated in its mathematical machinery, most do not consider this type of modeling to be reductive. Indeed, their essay is provocatively titled specifically to draw attention to Wigner's question. The authors suggest that there are many areas where we are unlikely to find fundamental principles and that we should consider phenomenological, data-driven models that have practical value to be genuine intellectual accomplishments worthy of our satisfaction. \citep{norvig}. \\ To be more precise, let me briefly give examples of what differentiates phenomenological from reductive models-- we will come back to this distinction in more detail in the subsequent section. A \emph{phenomenological} model refers to a description of a system that captures the directly observed behavior without any reference to the constituent parts of the system. The etymology of the word refers to the fact that these models simply ``capture the phenomenon''-- i.e. the observed phenomenon-- in spite of the fact that there may very well be more fundamental underlying causal factors. \\ Consider, for example, the use of Punnet squares to model Mendelian inheritance in genetics. Standard Mendelian genetics was characterized before the discovery of DNA, which is the more fundamental biological mechanism behind the patterns of inheritance that were observed phenotypically. In other words, by using the simple rules of Mendelian inheritance, we can make predictions-- indeed, quantitative ones-- about the distribution of traits in offspring, in spite of the fact that we are not modeling the behavior of the underlying causal elements \citep{alberts2013essential}. \\ In this case, a phenomenological model is adequate to make precise predictions. Indeed, a truly reductive model, where we modeled all of the interactions of DNA replication, mitosis, and meiosis, etc. would be far too complicated and unnecessary. Yet, it is not always clear when a phenomenological model is adequate, or when a reductive model is necessary but computationally intractable. \\ As a counterpoint, consider the growth of mathematical techniques in quantitative finance. At the most basic level, the aim of financial models is to make predictions of financial time series from historical data. Like Mendelian genetics and Punnet squares, these models are phenomenological. That is, we do not try to predict the behavior of financial time series by modeling the mental states of every person involved in the stock market and related financial institutions. Unlike the case of genetics, these models have yet to show substantial predictive power, despite their considerable mathematical sophistication \citep{derman2004my}. \\ On the other hand, a reductive model is one that captures the interaction between the most fundamental constituents of a system, such as atoms or fundamental particles. Some of the most successful theories in physics, such as quantum mechanics or general relativity, are considered to be reductive, although as I explore in the next section there is not a rigorous understanding of what differentiates a reductive from phenomenological model in many cases.\footnote{There is considerable philosophical literature examining the validity of reductionism as a general scientific principle. One classic argument \emph{against} reductionism is Putnam and Fodor's \emph{multiple realizability argument} \citep{putnam1980nature, putnam1980philosophy, fodor1968psychological, fodor1975language}. See also Sober's criticism of these arguments \citep{sober1999multiple}. \\ The aim of this article is somewhat distinct from that of philosophers examining reductionism critically as a general scientific principle. In particular, while my proposed connection between Leibniz' agenda and Wigner's question is indeed a philosophical one, Leibniz's agenda itself was quite a practical one, and the question of why this agenda failed, or could not have worked might just as easily be cast as a question about the failure of an engineering design. Therefore, my choice of the word ``reductionism'' in this context-- specifically, as denoting a key failure point in Leibniz' agenda-- is used in the sense of practical scientific modeling and not in the sense of its potential philosophical implications more broadly conceived. \\ As an example, consider that scientific modelers who are simulating the behavior of a system may be forced to choose between a fully reductive model and a phenomenological one purely because of computational intractability. This is a practical consideration and not a philosophical one-- the availability of faster computers might make the fully reductive model tractable at some future point (see, for example, the discussion in the subsequent section on the use of adiabatic elimination techniques in quantum optics). \\ Nonetheless, there is certainly overlap between these two agendas. Although I do not explore this connection further, let me briefly mention work from the philosophy of science community that may be of interest to some readers. In a recent article, Eleanor Knox proposes a line of thought which may be relevant to the current investigation \citep{knox2016abstraction}. In particular, she argues that the change from levels of abstraction can introduce \emph{novel explanation}, and furthermore that a theory can possess novel explanatory power even when a reductive theory is available. Although I leave Knox's analysis of abstraction, reductionism, and emergence unexplored in this manuscript, I mention it here for its possible relevance to my proposed diagnosis of the failure of Leibniz' agenda. Specifically, Knox's proposal that abstraction can give rise to novel explanatory power relative to a more reductive theory suggests that Leibniz' calculus-- were it to have materialized-- would likely consist of incompatible elements as a result of the mixing of phenomenological and reductive models. I mention this connection for completeness and leave further analysis for future investigation. } \\ The fundamental observation to take away from these examples is that it is not at all clear what it would mean for all of the diverse theories and models spanning all human endeavors-- whether phenomenological models or reductive ones-- to be integrated into a single symbolic system. They exist at different levels of abstraction, meaning that the fundamental constituents of each theory can vary widely from one theory to the next. In quantum mechanics, the fundamental objects are wave functions in Hilbert space. In general relativity, they are solutions to Einstein's field equations. In biology, they might be idealized genomes represented by a linear sequence of base pairs, whereas in theoretical neuroscience, they might be phenomenological models of a neuron incorporating many different approximations. Even setting aside the role of mnemonic techniques in creating this calculus, what could it possibly mean for all of these different theories to exist alongside each other in a way that would allow for a consistent symbolic representation and associated calculus? \subsection{Universal calculus and computer algebra} If we are generous, there is one clear analogue to Leibniz's vision in the contemporary world, and that is a computer algebra system (CAS), such as \emph{Mathematica}, Maple, or Maxsyma. A computer algebra system is a piece of software which allows one to perform specific mathematical computations, such as differentiation or integration, as well as basic programming tasks, such as list manipulation, and so on. As the development of CAS's have progressed hand in hand with the growth of the software industry and scientific computing, they have come to incorporate a large amount of functionality, spanning many different scientific and technical domains \citep{cohen, mbook}. \\ In this sense, CAS's have some resemblance to Leibniz vision. \emph{Mathematica}, for example, has all of the special functions of mathematical physics as well as data from many different sources which can be systematically and uniformly manipulated by the symbolic representation of the Wolfram Language. One could reasonably claim that it incorporates many of the basic desiderata of Leibniz's universal calculus-- it has both the structured data of Leibniz's hypothetical encyclopedia, as well as symbolic means for manipulating this data. \citep{mbook, wolfram} \\ However, Leibniz's vision was significantly more ambitious than any contemporary CAS can make claim to have realized. For instance, while a CAS incorporates mathematical knowledge from different domains, these domains are effectively different modules within the software that can be used in a standalone fashion. Consider, for example, that one can use a CAS to perform calculations relevant to both quantum mechanics and general relativity. The existence of both of these capabilities in a single piece of software says nothing about the long-standing theoretical obstacles to creating a unified theory of quantum gravity. Indeed, as has long been bemoaned in the formal verification and theorem proving communities, CAS's are effectively a large number of small pieces of software neatly packaged into a single bundle that the user interacts with in a monolithic way. This fact has consequences for those interested in the robustness of the underlying computations, but in the present context, it simply serves to highlight a fundamental problem in Leibniz's agenda \citep{ballarin}.\footnote{To be fair to Leibniz, he may have been aware of some of these conceptual issues-- see the next section on phenomenological models.} \\ So in effect, one way to describe Leibniz's universal calculus, was an attempt to create something like a modern computer algebra system, but which extended across all areas of human knowledge. This goal itself would be quite an ambitious one, but in addition Leibniz wanted the additional property that the symbolic representation should have a transparent relationship to the corresponding encyclopedia, as well as possess the capacity of mnemonics to be memorized with ease. To quote Leibniz himself, \begin{quote} {\small My invention contains all the functions of reason: it is a judge for controversies; an interpreter of notions; a scale for weighing probabilities; a compass which guides us through the ocean of experience; an inventory of things; a table of thoughts; a microscope for scrutinizing things close at hand; an innocent magic; a non-chimerical cabala; a writing which everyone can read in his own language; and finally a language which can be learnt in a few weeks, traveling swiftly across the world, carrying the true religion with it, wherever it goes. \citep{Leibniz} } \end{quote} It difficult to not be swept away by the beauty of Leibniz's imagery. And yet, from our modern vantage point, there is hardly a doubt that this agenda could not possibly have worked. \subsection{Phenomenological models} There is some reason to believe that Leibniz was quite aware of the issues with mixing phenomenological and reductive models. Indeed, it appears that an ongoing dialogue between Descartes and Leibniz took place with regards to this exact issue. The discussion related to the notion of ``true philosophy,'' which I will interpret to mean an adequately reductive model.\footnote{I suspect that a proper investigation into the vision and controversies surrounding the universal calculus would require a thorough understanding of what precisely Leibniz and Descartes meant by this phrase. To the best of my knowledge, an appropriate modern translation of ``true philosophy'' is an adequately reductive model, but there may be important subtleties that this translation ignores, and perhaps, more importantly, subtleties that this translation adds that could not have possibly existed at the time.} According to Rossi, while Descartes believed that a universal language was theoretically possible, it would require the development of a true philosophy, which he saw as a fundamental obstacle. Rossi writes, \begin{quote} {\small In a letter to Mersenne in November 1629 \ldots Descartes clearly outlined what he saw as the principal characteristics and aims of a philosophical language, but ultimately his statements are rather ambiguous. He obviously considered the idea of a philosophical language to be a theoretical possibility. If one could `establish an order for all the thoughts of the human spirit, in the same way that there exists a naturally established order of numbers,' he suggested, a `language' composed of easily and quickly understood characters could be constructed. The invention of this language would depend, however, on `the prior construction of a true philosophy, because otherwise it would be impossible to enumerate all the thoughts of men and put them into their correct order.' \citep{rossi} } \end{quote} To this criticism, Leibniz responded: \begin{quote} {\small Although this language (the universal calculus) depends on true philosophy, it does not depend on its perfection. Let me just say this: this language can be constructed despite the fact that philosophy is not perfect. The language will develop as scientific knowledge develops. While we are waiting, it will be a miraculous aid: to help us understand what we already know, and to describe what we do not know, and help us to find the means to obtain it, but above all it will help us to eliminate and extinguish the controversial arguments which depend on reasons, because once we have realized this language, calculating and reasoning will be the same thing. \citep{couturat} } \end{quote} In modern theoretical science, the distinction between phenomenological and reductive modeling is often a heuristic one and varies wildly from one subject to another. For instance, in theoretical particle physics, phenomenology refers to efforts to predict and model specific experiments taking place at particle accelerators, or making small extensions to the Standard Model, whereas ``theory'' refers to more fundamental efforts to develop beyond the Standard Model formulations. And yet, given the wildly successful nature of quantum field theory and the Standard Model, what is considered to be phenomenology in the particle physics community is quite reductive when viewed in comparison to other branches of science that are substantially less mathematically developed. And there are even rarer cases, such as in theoretical quantum optics, where the existence of rigorous mathematical results from probability theory and functional analysis allows for an interpretation of ``phenomenological model'' that is quite particular to this subject.\footnote{There are several uses of the term ``phenomenological'' in the quantum optics community. One common usage, which is in line with its use in other communities, is in situations where additional Hamiltonian terms are added to a model to incorporate interactions that are not easily described exactly. For instance, see Carmichael's classic book \citep{carmichael} for a phenomenological model of atomic dephasing in a radiatively damped two-level atom in thermal equilibrium with a quantized field. \\ Some recent mathematical developments have allowed for the term ``phenomenological'' to be used in a context that is quite specific to quantum optics. Here, I am referring to what is known as the Bouten-van Handel-Silberfarb adiabatic elimination theory \citep{Bout08}, a rigorous set of mathematical techniques for constructing reduced order quantum optical models for systems where there are two physical processes of widely separated time scales. If one is only interested in the dynamics of the system with respect to the slow degrees of freedom, an effective description that eliminates the fast degrees of freedom can simplify calculations and decrease the computational requirements for simulating the system \citep{Kerc10, Kerc11}. \\ In theoretical quantum optics, adiabatic elimination techniques have been used at a heuristic level for several decades and developing an intuition for applying these methods is part of the bread and butter toolkit of traditional quantum optics (see for example, \citep{stockton, gardiner}). In recent years, a powerful set of tools has emerged that allow for practical physical modeling to be carried out with a formalism that is a precise, non-commutative generalization of classical stochastic calculus \citep{filtering}. In this framework, the Heisenberg equations of motion correspond to a quantum stochastic differential equation (QSDE), which describes the joint evolution of a system (such as an atom) in interaction with a dense spectrum of free Bosonic fields (such as a laser). \\ The mathematical formalism of quantum stochastic differential equations has allowed the heuristic techniques of adiabatic elimination to be put on rigorous mathematical footing. In particular, the idea of two processes of widely differing time scales can be framed in the context of a limit theorem in which a sequence of quantum stochastic models is constructed which depend on a parameter. The Bouten-van Handel-Silberfarb theory gives a precise set of technical conditions under which the sequence of parameterized equations converges to a limiting QSDE in which the fast degrees of freedom have been eliminated. \\ In the present context, the rigorous adiabatic elimination techniques serve to demonstrate the point that the distinction between phenomenological and reductive models is quite an informal one and can vary widely from subject to subject. In particular, because of the availability of the more recent limit theorems for adiabatic elimination, reduced order models that were simply inferred on the basis of physical intuition are often called ``phenomenological`` by quantum opticians who are firmly in the mathematical physics camp. Note, however, that what distinguishes a phenomenological from a reductive model in this context is not the model itself, but the procedure by which one arrived at the model! If one simply guessed it on the basis of physical intuition, it would be considered (by some) to be phenomenological because one did not strictly apply a more fundamental technique. \\ I mention this anecdote from quantum optics simply to make the point that there is no rigorous understanding of what is meant by phenomenological versus reductive models and that in a subject such as quantum optics, where the theory is highly refined, one can make quite subtle distinctions that do not even apply to other branches of physics. This observation is just one more piece of evidence suggesting that Leibniz's project was bound to fail. Surely, neither Leibniz nor any other thinker of that time period could have anticipated the rich, surprising, and heuristic nature in which mathematics often turns up across the different branches of science.}\\ So while the conceptual problems with mixing phenomenological and reductive models seem very much to have been part of the broader dialogue among those contemporaries of Leibniz attempting to engineer a universal language, it seems that they could not have possibly appreciated the scope of the issues involved. Science was likely too young and there were simply not enough examples of mathematical models for Leibniz and his contemporaries to truly appreciate what they were trying to achieve. \\ And yet it is not clear that our own contemporary understanding is much more sophisticated. While many subjects have a rich intuition honed from decades and centuries of trial and error, such as which approximations are realistic or when simulations can be trusted over analytical models etc., there seems to be little if any deeper understanding of why and how mathematics shows up in the profound and unexpected ways that it does. In other words, it hardly seems that we understand the unreasonable effectiveness of mathematics any more than Leibniz did. \\ In declaring Leibniz' agenda to be a failure, am I claiming that the agenda itself was not feasible-- even in principle-- or that Leibniz and his contemporaries did not have the knowledge to execute it? I believe that we can only give a partial answer to this question, and it is partly a matter of perspective. If one views efforts in modern computer science as being realizations of Leibniz' agenda, then we can say that Leibniz and the society that he inhabited simply did not have the knowledge to execute this vision. On the other hand, an integral component of the universal calculus was the role of mnemonics, which have no place whatsoever in modern theoretical science. The idea that mnemonics themselves could form the basis for a symbolic system, and that this might allow one to create a pictorial language that could be memorized with ease and which would transparently represent the factual content of a curated encyclopedia remains a bit of an enigma. At present, I do not believe that the arguments I have presented above with regards to reductionism speak to this issue. That being said, one wonders if it would not be possible for carefully constructed experiments in cognitive science to demonstrate the limitations on using mnemonics as the basis for a symbolic system. \section{Conclusion} In this essay, I have tried to provide a novel perspective by framing a question that is a converse to Wigner's original question. That is, rather than ask, ``why does mathematics allow us to model natural phenomena?'' the question I have asked is, ``16th and 17th-century efforts to create a universal language provide us with a set of symbolic systems that do not seem to give rise to the conceptual abstraction of mathematics, and yet there was a fierce conviction that these systems would someday supersede mathematics. Why did this agenda fail?'' \\ Whether one views Leibniz's project as a decisive failure, or a profound set of ideas centuries ahead of their time-- in light of the surprising commonalities with modern efforts at data curation, knowledge representation, and computer algebra-- one concept clearly emerges when trying to characterize the fundamental obstacles to the creation of a universal calculus. That concept is reductionism. As I have argued above, the rich interplay between reductive and phenomenological modeling is a fundamental aspect of modern theoretical science, and it is difficult to imagine that Leibniz could have fully anticipated these developments and the consequences for his vision. Still, it does not seem that our own fundamental understanding is all that sophisticated, although we do have the benefit of a rich cultural intuition that draws on centuries of trial and error. \\ It is difficult to imagine that anything resembling a conclusive ``answer'' to Wigner's question will be formulated without profound philosophical breakthroughs that are unlikely to be anticipated. Still, like many, I believe that it is a worthwhile question to keep in the back of our minds as we do practical day-to-day work. \acknowledgments \subsection*{Acknowledgements} I would like to thank Michael Rosen, Rob Spekkens, and Kritika Yegnashankaran for insightful discussions and critical reading of the manuscript. \bibliographystyle{abbrvnat}
\section{Introduction}\label{sec:intro} The emergence of high-temperature superconductivity upon doping in the two-dimensional Copper-oxide planes of insulating antiferromagnetic cuprate materials is still a great puzzle in condensed matter physics, after many years from the first experimental evidence~\cite{bednorz1986}. In particular, from a theoretical point of view, a still open question is about the mechanism behind the appearance of the superconducting state. One conservative approach is to explain the electron pairing by invoking the electron-phonon coupling, as in standard BCS theory; an alternative approach is based upon the so-called resonating-valence bond (RVB) theory, as originally proposed by Anderson~\cite{anderson1987}, in which superconductivity emerges from a Mott insulator that possesses preformed electron pairs. In order to address the role of electron correlation on a lattice, one of the simplest models is the single-band Hubbard model, defined as: \begin{equation}\label{eq:Hubbard} {\cal H} = -t \sum_{\langle i,j\rangle,\sigma} c^{\dagger}_{i,\sigma}c^{\phantom{\dagger}}_{j,\sigma} + \textrm{h.c.} +U\sum_i n_{i,\uparrow}n_{i,\downarrow}, \end{equation} where the hopping amplitude between nearest-neighbor sites on the square lattice and the on-site Coulomb repulsion are denoted by $t$ and $U$, respectively; then, $c^{\dagger}_{i,\sigma} (c^{\phantom{\dagger}}_{i,\sigma})$ is the creation (annihilation) operator for an electron of spin $\sigma$ on site $i$ and $n_{i,\sigma}=c^{\dagger}_{i,\sigma}c^{\phantom{\dagger}}_{i,\sigma}$ is the electron density (per spin) on site $i$. Despite its simplicity, the Hubbard model has been proposed to capture the essential physics of high-temperature superconductivity and interaction-driven metal-insulator transitions~\cite{dagotto1994,imada1998}. The exact solution of this model is not available in spatial dimensions greater than one for generic values of electron densities; instead, Monte Carlo methods provide numerically exact solutions at half filling~\cite{hirsch1985,white1989,leblanc2015,qin2016,vitali2016}, predicting an insulating ground state with antiferromagnetic order for positive values of $U/t$. A summary of state-of-the-art numerical methods to address the Hubbard model at different interactions and dopings can be found in Ref.~\onlinecite{leblanc2015}. When antiferromagnetism is suppressed, a metal-insulator transition can be identified at half filling for a critical value of the Coulomb repulsion~\cite{brinkman1970,georges1996}, separating a metallic state, for small values of the Coulomb repulsion, from a Mott insulator, for a larger Coulomb interaction. The non-magnetic sector of the Hubbard model has been the starting point of several studies to investigate the emergence of superconductivity upon doping, for instance with cluster extensions of dynamical mean-field theory (DMFT)~\cite{sordi2012,gull2013} or with variational Monte Carlo (VMC)~\cite{eichenberger2007,tocchio2012,yokoyama2013}. All these studies suggest that a value of the Coulomb repulsion of the order of the bandwidth is necessary for stabilizing superconductivity at finite doping, the symmetry of the order parameter being $d$-wave. Furthermore, the appearance of superconductivity by doping the Hubbard model has been studied also by the diagrammatic Monte Carlo method, indicating a BCS-type instability (with $d$-wave symmetry) for dopings smaller than $40\%$, at $U/t\le 4$~\cite{deng2015}. Analogous results have been obtained also by a weak-coupling renormalization-group study, even if in this latter case the presence of a next-nearest neighbor hopping is important to stabilize superconductivity at finite doping~\cite{eberlein2014}. In the line of weak-coupling approaches, a quantum critical point, hidden under the superconducting dome, has been proposed as a mechanism to generate the high-temperature superconductivity, induced by a pairing instability stronger than the BCS logarithmic divergence~\cite{yang2011}. The idea of a critical doping has been also postulated a few years ago, in connection with the formation of charge-density waves and their relation with the formation of superconducting pairs~\cite{castellani1995}. At small doping, strong antiferromagnetic correlations are present, possibly leading to a region where superconductivity and long-range antiferromagnetic order coexist~\cite{assaad1998,lichtenstein2000,reiss2007,kancharla2008,markiewicz2010,sato2016}. Moreover, when antiferromagnetism is taken into account, phase separation may also occur, i.e., a non-uniform charge distribution, showing distinct hole-rich and hole-poor regions, as originally proposed in Ref.~\onlinecite{emery1990}. The presence of long-range Coulomb interactions in realistic materials would then ``frustrate'' phase separation, eventually leading to charge density states or stripes. We remark that the formation of striped phases is not necessarily related to the effect of long-range Coulomb interactions, since they can just be driven by a competition between kinetic and super-exchange energies~\cite{white1998}. The appearance of phase separation and the formation of stripes have been deeply discussed in the $t{-}J$ model, which describes the strong-coupling limit of the Hubbard model. Here, the tendency to phase separation has been questioned by both density-matrix renormalization group (DMRG)~\cite{white2000}, which suggested the presence of stripes, and Green's Function Monte Carlo (GFMC) with the fixed-node (FN) approximation~\cite{lugas2006}, which instead supported an homogeneous and superconducting ground state. After many years of investigations, the presence of stripes in the ground state is still an open question~\cite{corboz2014}. In the Hubbard model, a clear tendency of phase separation has been recently pointed out for $U/t \lesssim 4$, by using the auxiliary-field quantum Monte Carlo (AFQMC) method with modified boundary conditions~\cite{sorella2015}; for larger values of $U/t$, some indications have been provided by the variational cluster approach (VCA)~\cite{aichhorn2007}, by AFQMC with constrained path~\cite{chang2008}, and by VMC~\cite{tocchio2013,misawa2014}. However, determining the presence of phase separation in the Hubbard model is a difficult task, due to its strong dependence on the accuracy of the states that are used to compute the energy. In particular, it has been shown that phase separation is more favorable for less accurate variational states~\cite{becca2000}. The formation of stripes in the Hubbard model, possibly favored with respect to a homogeneous superconducting state, has been also considered~\cite{corboz2016}. In this respect, a recent density matrix embedding theory (DMET) study, performed up to $U/t=8$, did not show clear evidences for a striped ground state~\cite{zheng2016}. In this paper, we perform a systematic study of the Hubbard model on the square lattice, by using accurate variational wave functions, which include both superconductivity and magnetism. At half filling, our VMC results indicate that, inside the antiferromagnetic phase, there is a hidden transition at a finite value of the Coulomb repulsion $U_{\rm Mott}$, above which a finite BCS pairing is stabilized by energy minimization (in addition to magnetic order that is present for any finite value of the interaction strength $U$). We relate $U_{\rm Mott}$ with a crossover separating a Slater insulator at low values of $U/t$, where magnetism induces a potential energy gain, from a Mott insulator at large values of $U/t$, where magnetic correlations drive a kinetic energy gain. More importantly, the existence of a ``critical'' value of the Coulomb repulsion at half filling has crucial consequences on the behavior of the model at finite doping. First, we consider the issue of phase separation. While at the level of VMC, the model is prone to phase separation for all values of $U/t$, the more accurate energies provided by GFMC, within the FN approximation, allow us to clearly distinguish two regimes: When doping a Slater insulator, phase separation is obtained; instead, a homogeneous density distribution is preferred when doping the Mott insulator. Most importantly, we observe finite long-range pairing correlations, with weak finite-size effects and a characteristic dome structure, only when $U>U_{\rm Mott}$; for $U<U_{\rm Mott}$, there are strong size effects in the pairing correlations, which may survive only in a small part of the phase diagram. Finally, we analyze the behavior of the condensation energy, i.e., the energy gain due to the presence of a finite BCS pairing. We find that it changes from being potential driven to kinetic driven by increasing the value of the Coulomb repulsion and its maximum value is always located at the doping where magnetic correlations in the wave function disappear. From our overall results, we surmise that interaction is the crucial mechanism to observe sizable superconducting pairing, with a hidden critical value of the Coulomb repulsion that may be observed already within the antiferromagnetic phase at half filling. The paper is organized as follows: In Sec.~\ref{sec:methods}, we present the variational wave functions that are used in this work, as well as the Monte Carlo approaches; in Sec.~\ref{sec:results}, we show the numerical results; finally in Sec.~\ref{sec:conc}, we draw our conclusions. \begin{figure} \includegraphics[width=0.8\columnwidth]{fig1.pdf} \caption{\label{fig:HF_canonical} (Color online) Mean-field variational parameters $\Delta_{\textrm{AF}}$ (blue dots) and $\Delta_{\textrm{BCS}}$ (red squares) as a function of $U/t$ for the half-filled case on a $L=242$ lattice size.} \end{figure} \section{Variational and Green's function Monte Carlo}\label{sec:methods} Our numerical results are based on the definition of variational wave functions that approximate the ground-state properties beyond perturbative approaches. In order to compute expectation values over these correlated variational states a Monte Carlo sampling is necessary. The general form of our variational states is given by the Jastrow-Slater wave function that extends the original formulation by Gutzwiller~\cite{gutzwiller1963,yokoyama1987}: \begin{equation}\label{eq:wavefunction} |\Psi\rangle= {\cal P}_{N} {\cal P}_{S_z=0} {\cal J}|\Phi_0\rangle, \end{equation} where $|\Phi_0\rangle$ is an uncorrelated state that corresponds to the ground state of the following uncorrelated Hamiltonian~\cite{gros1988,zhang1988}: \begin{equation}\label{eq:meanfield} \begin{split} {\cal H}_{\rm{MF}} &= \sum_{k\sigma} \xi_k c^{\dagger}_{k\sigma} c^{\phantom{\dagger}}_{k\sigma} + \sum_{k} \Delta_k c^{\dagger}_{k\uparrow} c^{\dagger}_{-k\downarrow} + \rm{h.c.} \\ &+ \Delta_{\textrm{AF}} \sum_i (-1)^{R_i} ( c^{\dagger}_{i\uparrow} c^{\phantom{\dagger}}_{i\uparrow} - c^{\dagger}_{i\downarrow} c^{\phantom{\dagger}}_{i\downarrow} ), \end{split} \end{equation} which includes a free-band dispersion: \begin{equation}\label{eq:hopping} \xi_k= -2 t(\cos k_x +\cos k_y) -\mu, \end{equation} a BCS pairing with $d$-wave symmetry: \begin{equation}\label{eq:BCS} \Delta_k= 2\Delta_{\textrm{BCS}}(\cos k_x -\cos k_y), \end{equation} as well as an antiferromagnetic term with N\'eel order. The parameters $\Delta_{\textrm{AF}}$, $\Delta_{\textrm{BCS}}$ and $\mu$ are optimized to minimize the variational energy (while $t=1$ sets the energy scale of the uncorrelated Hamiltonian). The effects of correlations are introduced by means of the so-called Jastrow factor ${\cal J}$~\cite{capello2005,capello2006}: \begin{equation}\label{eq:jastrow} {\cal J} = \exp \left ( -\frac{1}{2} \sum_{i,j} v_{i,j} n_{i} n_{j} \right ), \end{equation} where $n_{i}= \sum_{\sigma} n_{i,\sigma}$ is the electron density on site $i$ and $v_{i,j}$ (that include also the local Gutzwiller term for $i=j$) are pseudopotentials that are optimized for every independent distance $|{\bf R}_i-{\bf R}_j|$. Finally, ${\cal P}_{N}$ is a projector on the fixed number of particles $N$ and ${\cal P}_{S_z=0}$ is a projector onto the subspace with $S_z=0$. A size-consistent and efficient way to further improve the correlated state $|\Psi\rangle$ for large on-site interactions is based on backflow correlations. In this approach, each orbital that defines the unprojected state $|\Phi_0\rangle$ is taken to depend upon the many-body configuration, such to incorporate virtual hopping processes~\cite{tocchio2008,tocchio2011}. All results presented here are obtained by fully incorporating the backflow corrections and optimizing individually every variational parameter in ${\cal H}_{\textrm{MF}}$, in the Jastrow factor ${\cal J}$, as well as for the backflow corrections~\cite{yunoki2006}. In general, on finite sizes, the presence of quantum-number projectors in the variational state may induce an energy gain, which however is expected to vanish in the thermodynamic limit, see for instance Refs.~\onlinecite{tahara2008,rodriguez2012}. In our case, the projector onto the subspace with exactly $N$ particles could introduce a spurious stabilization of a small BCS pairing, especially for small values of $U/t$. Therefore, in order to reduce the finite-size effects, we also perform simulations without including ${\cal P}_{N}$ in the definition of the wave function~(\ref{eq:wavefunction}), i.e., in the grand-canonical ensemble. In practice, this kind of simulation is performed by including in the Metropolis algorithm the option of creating or destroying pairs of electrons with opposite spin. The average number of particles is then fixed via the inclusion of a chemical potential in the Hubbard Hamiltonian, namely ${\cal H} \to {\cal H}-\mu N$ (at half filling, $\mu=U/2$). The accuracy of the described variational states can be further increased by means of the GFMC method~\cite{trivedi1990}, based on the FN approximation~\cite{tenhaaf1995}. This approach allows us to systematically improve the variational results, still providing an upper bound to the exact ground-state energy. In practice, the best variational wave function $|\Psi_{\textrm{FN}}\rangle$, with the nodes constrained by the optimal variational state $|\Psi\rangle$, is extracted from an imaginary-time projection. A detailed description of the FN approximation can be found in Ref.~\onlinecite{lugas2006}, while a comparison of the accuracy of the method with other established numerical techniques is presented in Ref.~\onlinecite{leblanc2015}. The accurate estimates of the FN energy can be used to evaluate the tendency of the system toward phase separation into undoped (with antiferromagnetic order) and hole-doped regions. Phase separation occurs when the stability condition $\partial^2 E(n)/\partial n^2 >0$ is violated, i.e., when the ground-state energy $E(n)$, as a function of electronic density $n$ ($n=N/L$, $L$ being the lattice size), is no longer convex. As introduced by Emery and collaborators~\cite{emery1990}, phase separation between a hole-rich phase and an antiferromagnetic one can be studied by looking at the energy per hole $\epsilon(\delta)$, defined as: \begin{equation}\label{eq:Emery} \epsilon(\delta)=\frac{E(\delta)-E(0)}{\delta}, \end{equation} where $\delta=1-n$ is the hole density. In the thermodynamic limit, $\epsilon(\delta)$ is monotonically increasing in a stable phase, while it remains constant in presence of phase separation. On a finite system, the energy per hole has a minimum at a critical doping $\delta_c$, the system being unstable to phase separation for $\delta<\delta_c$. Finally, the calculation of expectation values of non-local operators (like for example pairing-pairing correlations) $O$ in the FN method can be done by using the so-called mixed-average correction~\cite{foulkes2001}. First, we need to compute the mixed average, that is a biased estimator of the quantum average: \begin{equation} \langle O\rangle_{\textrm{MA}} = \frac{\langle \Psi|O|\Psi_{\textrm{FN}}\rangle}{\langle \Psi|\Psi_{\textrm{FN}}\rangle}, \end{equation} then, the true expectation value can be approximated with the formula: \begin{equation}\label{eq:Ceperleycorr} \frac{\langle \Psi_{\textrm{FN}}|O|\Psi_{\textrm{FN}}\rangle}{\langle \Psi_{\textrm{FN}}|\Psi_{\textrm{FN}}\rangle} \approx 2\langle O \rangle_{\textrm{MA}} - \langle O\rangle_{\textrm{VMC}}, \end{equation} where \begin{equation} \langle O\rangle_{\textrm{VMC}}=\frac{\langle \Psi|O|\Psi\rangle}{\langle \Psi|\Psi\rangle} \end{equation} indicates the variational estimate of the expectation value of the operator $O$ over the wave function $|\Psi\rangle$. This approach is justified provided the variational wave function $|\Psi\rangle$ is close to the FN state $|\Psi_{\textrm{FN}}\rangle$ and is expected to hold in our case, given the good quality of a variational state, where the effect of correlations is incorporated both in the amplitudes (via the Jastrow factor) and in the signs (via the backflow corrections). All the simulations are performed on 45-degree tilted clusters with $L=2l^2$ sites, $l$ being an odd integer. \begin{figure*}[t] \includegraphics[width=1.5\columnwidth]{fig2.pdf} \caption{\label{fig:BCS-hf} (Color online) All the simulations shown are performed in the grand-canonical ensemble, at half filling on a $L=242$ lattice size. (a): Mean-field variational parameters $\Delta_{\textrm{AF}}$ (blue dots) and $\Delta_{\textrm{BCS}}$ (red squares) as a function of $U/t$. (b): Fourier transform of the Jastrow factor $v(q)$, multiplied by $|q|^2$, as a function of $|q|/\pi$, for various values of $U/t$. The $q$ points are taken on the path in the Brillouin zone connecting $\Gamma=(0,0)$ to $M=(\pi,\pi)$. (c): Density of double occupancies $D$ as a function of $U/t$. The arrow indicates the location of $U_{\rm Mott}$. (d): Energy gain $\Delta E=E_{\textrm{magn}}-E_{\textrm{nomagn}}$ (red squares), due to the presence of magnetism in the wave function; the potential $\Delta E_{\textrm{pot}}=E^{\textrm{pot}}_{\textrm{magn}}-E^{\textrm{pot}}_{\textrm{nomagn}}$ (blue dots) and kinetic $\Delta E_{\textrm{kin}}=E^{\textrm{kin}}_{\textrm{magn}}-E^{\textrm{kin}}_{\textrm{nomagn}}$ (black diamonds) contributions are also shown.} \end{figure*} \section{Results}\label{sec:results} \subsection{The half-filled case} Let us start by recalling the previous VMC results for the Hubbard model on the square lattice, when focusing on the non-magnetic sector, i.e., without the inclusion of magnetism in the variational state. In this case, a transition driven solely by electronic correlation, the so-called Mott transition, occurs at a critical value of the Coulomb repulsion $U_c/t$, that corresponds to $U_c/t\sim 7.5\pm 0.5$, when backflow correlations are not included~\cite{tocchio2016} and to $U_c/t\sim 5.5 \pm 0.5$, in the presence of backflow corrections~\cite{tocchio2011}. Since backflow corrections favor the recombination of holon-doublon couples into single occupied sites, this leads to an improvement in the description of the insulating phase, which can be stabilized at lower values of $U/t$~\cite{tocchio2011}. We remark that, even if the Jastrow factor is the driving force for the system to be an insulator, the Mott state is also characterized by a finite BCS pairing among the electrons, reproducing the RVB state, originally proposed by Anderson~\cite{anderson1987}. When magnetic order is allowed, the nesting properties of the Fermi surface drive the system to be an insulator with long-range N\'eel order for any $U>0$. However, while the antiferromagnetic coupling $\Delta_{\textrm{AF}}$ is always finite, our VMC results with fixed number of electrons, namely when using the wave function~(\ref{eq:wavefunction}), suggest that a reminiscence of the Mott transition can still be seen in the variational parameters, with a smooth crossover between a small-$U$ region with no relevant BCS pairing and a large-$U$ region with finite $\Delta_{\textrm{BCS}}$, see Fig.~\ref{fig:HF_canonical}. However, non-negligible size effects are present, especially at small values of $U/t$, preventing us to perform a clear size scaling of the variational parameters. Therefore, in order to reduce finite-size effects, we have performed the simulations within the grand-canonical ensemble, as described in Sec.~\ref{sec:methods}. These results are sharpened, with the clear identification of a hidden critical point located at $U_{\rm Mott}/t\simeq 7.8$ above which the BCS pairing becomes finite, see Fig.~\ref{fig:BCS-hf}(a). We remark that the value of $U_{\rm Mott}$ is not significantly affected by the lattice size. Indeed, it falls in the interval $7.5 < U_{\rm Mott}/t <8$ for lattice sizes ranging from $L=162$ to $L=338$. While the insulating nature of the model at half filling is guaranteed by the presence of a finite antiferromagnetic field $\Delta_{\textrm{AF}}$ that opens a gap already at the uncorrelated level, a reminiscence of the Mott transition can be seen also in the behavior of the Jastrow factor. Indeed, as shown in Fig.~\ref{fig:BCS-hf}(b), the Fourier transform of the Jastrow factor $v_q$ changes its small-$q$ behavior from $1/q$ to $1/q^2$ at $U_{\rm Mott}$, as it would do at the true Mott transition~\cite{capello2005,capello2006,yokoyama2011}, where the Jastrow factor embodies a crucial long-range attraction between doubly occupied and empty sites, keeping them bounded in the Mott phase. A Jastrow factor proportional to $1/q^2$ is also able to suppress the superconducting long-range order implied by the BCS pairing of $|\Phi_0\rangle$. More importantly, a sudden change in the average density of double occupancies \begin{equation} D=\left\langle \frac{1}{L} \sum_i n_{i,\uparrow} n_{i,\downarrow} \right\rangle_{\textrm{VMC}} \end{equation} is observed at the ``critical'' point where $\Delta_{\textrm{BCS}}$ becomes finite, as shown in Fig.~\ref{fig:BCS-hf}(c). This feature suggests that the appearance of the finite BCS pairing in the variational state coincides with a change in the nature of the magnetic insulator at half filling. This change can be understood by investigating the role of magnetism on the variational energy. At small $U/t$, the ground state exhibits the so-called Slater magnetism in which the presence of a finite magnetic term suppresses double occupancies and consequently induces a potential energy gain. On the contrary, for large $U/t$, magnetism is favored by the super-exchange coupling $J=4t^2/U$ and consequently drives a kinetic energy gain, leading to the so-called Mott magnetism. The crossover between these two regimes has been investigated by many authors in the past: Even if it has been proposed that the Slater mechanism is absent in the Hubbard model~\cite{moukouri2001}, successive works show a general consensus on the existence of a sharp crossover between the two regimes, with the precise location of it depending on the method of investigation~\cite{kyung2003,korbel2003,pruschke2003,plekhanov2005,gull2008,taranto2012}. The energy gain that is due to magnetism goes to zero for $U\to 0$ and for $U \to \infty$ and is expected to have a maximum when passing from Slater to Mott magnetism. Indeed, our results show the existence of a value of the Coulomb repulsion where the total energy gain due to magnetism $\Delta E=E_{\textrm{magn}}-E_{\textrm{nomagn}}$ is maximal and, at the same time, the contributions coming from potential and kinetic energies change signs, see Fig.~\ref{fig:BCS-hf}(d). While $E_{\textrm{magn}}$ is given by the full wave function, as defined in Sec.~\ref{sec:methods}, in the computation of $E_{\textrm{nomagn}}$ we just set $\Delta_{\textrm{AF}}=0$ in the uncorrelated Hamiltonian of Eq.~(\ref{eq:meanfield}). The results shown in Fig.~\ref{fig:BCS-hf}(d) indicate that the appearance of a finite BCS pairing in the wave function at $U_{\rm Mott}$ affects the magnetic properties of the model, inducing a clear change between Slater and Mott type of magnetism. This fact has important consequences on the behavior of the model as a function of doping, as presented below. \begin{figure} \includegraphics[width=0.8\columnwidth]{fig3.pdf} \caption{\label{fig:PSU4} (Color online) Energy per hole $\epsilon(\delta)$ for the FN energies at $U/t=4$, as a function of the hole doping $\delta$, for three lattice sizes: $L=98$ (blue squares), $162$ (red triangles) and $242$ (black circles). The error bars are smaller than the symbol size. The inset shows the accuracy of the FN energies with respect to the linearized AFQMC ones~\cite{sorella2011}, defined as $(E_{\textrm{AFQMC}}-E_{\textrm{FN}})/E_{\textrm{AFQMC}}$ for $U/t=4$, as a function of hole doping on the $L=98$ lattice size.} \end{figure} \begin{figure} \includegraphics[width=0.8\columnwidth]{fig4.pdf} \caption{\label{fig:PSU8U10} (Color online) Lower panel: Energy per hole $\epsilon(\delta)$ for the FN energies at $U/t=8$, as a function of the hole doping $\delta$, for three lattice sizes: $L=98$ (blue squares), $162$ (red triangles) and $242$ (black circles). The VMC results are also shown on the $L=242$ lattice size (empty black circles). Upper panel: The same as the lower panel for $U/t=10$.} \end{figure} \begin{table*} \caption{\label{table:Energies} VMC and FN energies as a function of the number of holes $n_h$ at $U/t=4$ and $U/t=10$ on the $L=242$ lattice size. The number in brackets denotes the error on the last digit.} \begin{tabular}{ccccc} \hline $n_h$ & $E/t$ (VMC $U/t=4$) & $E/t$ (FN $U/t=4$) & $E/t$ (VMC $U/t=10$) & $E/t$ (FN $U/t=10$) \\ \hline\hline 0 & -0.85496(2) & -0.85725(3) & -0.42712(6) & -0.43206(2) \\ 8 & -0.89642(2) & -0.89910(2) & -0.49064(4) & -0.49760(2) \\ 16 & -0.93888(2) & -0.94148(1) & -0.55471(3) & -0.56255(2) \\ 24 & -0.98315(1) & -0.98501(1) & -0.61879(3) & -0.62651(2) \\ 32 & -1.02407(1) & -1.02557(1) & -0.68337(3) & -0.68970(2) \\ 40 & -1.06057(1) & -1.06192(1) & -0.74559(2) & -0.75045(1) \\ 48 & -1.09173(1) & -1.09285(1) & -0.80348(2) & -0.80724(1) \\ 56 & -1.11919(1) & -1.12027(1) & -0.85625(2) & -0.85938(1) \\ \hline \hline \end{tabular} \end{table*} \subsection{Phase separation} Here, we consider the tendency to phase separation as a function of the interaction strength $U$. Our results show that $U_{\rm Mott}$, where a finite BCS pairing in the uncorrelated state starts to develop at half filling, separates two different regimes also at finite doping. For $U \lesssim U_{\rm Mott}$, the variational state contains only a magnetic order parameter $\Delta_{\textrm{AF}}$ and phase separation arises upon doping; by contrast, for $U \gtrsim U_{\rm Mott}$, the presence of a finite BCS pairing $\Delta_{\textrm{BCS}}$ inhibits phase separation, leading to a superconducting state at finite hole dopings. In order to determine the existence of phase separation we use the energy per hole of Eq.~(\ref{eq:Emery}) for the VMC and FN energies. As already discussed in Ref.~\onlinecite{becca2000}, the evaluation of phase separation is strongly affected by the accuracy of the states that are used to compute the energy, phase separation being more favorable for less accurate variational wave functions. In fact, at the pure VMC level, we find that phase separation dominates the low-doping regime of the phase diagram for a wide range of interaction strengths $U$, as shown below. The main problem is that a slight difference in the accuracy for different dopings induces huge errors in the energy per hole, especially close to half filling, where $\delta$ is small. In this case, the application of the grand-canonical approach does not help to stabilize a uniform phase and phase separation still appears for all values of $U/t$. This result is in the line of an independent VMC calculation~\cite{misawa2014}, which related the onset of superconductivity with the proximity to phase separation. Therefore, we move to the FN results, which give a much more accurate energy estimate when varying the hole doping. Unfortunately, the grand-canonical approach cannot be used within the GFMC method, since the imaginary-time projection is driven by the Hubbard Hamiltonian, which conserves the number of particles. At $U/t=4$, our results show that a rather wide region of phase separation occurs up to $\delta\sim 0.1$, see Fig.~\ref{fig:PSU4}. This result is in agreement with recent estimates provided by the AFQMC method with modified boundary conditions~\cite{sorella2015}. Moreover, the accuracy of our energies with respect to the AFQMC results on the same lattice size is remarkably good, being always lower than $10^{-2}$, as shown in the inset of Fig.~\ref{fig:PSU4}. The situation changes drastically when the value of $U$ increases above the threshold set by the appearance of a finite BCS pairing at half filling. In Fig.~\ref{fig:PSU8U10}, we present the energy per hole at $U/t=8$, i.e., just above $U_{\rm Mott}$. While the results at $L=98$ show that there is some tendency towards phase separation, by increasing the lattice size the appearance of phase separation becomes confined to a small doping interval $\delta \lesssim 0.04$, for both $L=162$ and $L=242$. The fact that the curves obtained on these two lattice sizes are almost superimposed suggests that we are close to the thermodynamic limit already on the $L=162$ lattice. Then, by increasing the Coulomb repulsion up to $U/t=10$, phase separation does not occur for the values of doping that can be studied with the available clusters (i.e., $\delta \gtrsim 0.02$), see Fig.~\ref{fig:PSU8U10}. Also in this case, some finite size effects are still visible on the $L=98$ lattice size, while the curves at $L=162$ and $L=242$ are almost coincident. The absence of phase separation for large values of the Coulomb repulsion is in marked disagreement with VMC results: Indeed, as shown in Fig.~\ref{fig:PSU8U10}, within VMC calculations, phase separation appears also at $U/t=10$ and at $U/t=8$, while it is absent once we improve the accuracy of the calculations. The VMC and FN energies for several values of doping at $U/t=4$ and $U/t=10$ are reported in Table~\ref{table:Energies}. \begin{figure*} \includegraphics[width=1.5\columnwidth]{fig5.pdf} \caption{\label{fig:phi} (Color online) Panel (a): Superconducting order parameter squared $\phi^2$ of Eq.~(\ref{eq:phi}) as a function of doping $\delta$ for $U/t=4$, computed over the optimal variational state. Data are shown for $L=98$ (blue squares), $162$ (red triangles), $242$ (black circles), $338$ (purple diamonds). Panel (b): The same as in panel (a) computed within the FN approximation, with the mixed-average correction of Eq.~(\ref{eq:Ceperleycorr}). Data are shown for $L=98$ (blue squares), $162$ (red triangles), $242$ (black circles). Panel (c): The same as panel (a), but for $U/t=8$. Panel (d): The same as panel (b), but for $U/t=8$.} \end{figure*} \subsection{Superconducting properties} Here, we show the results of the pairing-pairing correlations: \begin{equation} \langle \Delta(r)\rangle=\langle S^{\phantom{\dagger}}_{r}S^{\dagger}_0 \rangle, \end{equation} where $S^{\dagger}_r= c^{\dagger}_{r\uparrow}c^{\dagger}_{r+x\downarrow} -c^{\dagger}_{r\downarrow}c^{\dagger}_{r+x\uparrow}$, can be easily evaluated in the VMC approach. The long-distance limit of the correlations gives an estimate of the superconducting order parameter: \begin{equation}\label{eq:phi} \phi^2=\lim_{r \to \infty}\Delta(r). \end{equation} In analogy to what has been done in previous studies, for the Hubbard and $t{-}J$ models~\cite{tocchio2012,paramekanti2001,spanu2008}, we report the pairing-pairing correlations at the largest distance for different lattice sizes, to infer the behavior of $\phi^2$ in the thermodynamic limit. The VMC results, obtained by considering the best variational state, are shown in Fig.~\ref{fig:phi} for $U/t=4$ and $8$. They clearly show that, for $U \gtrsim U_{\rm Mott}$ (i.e., for $U/t=8$), a finite superconducting order parameter in the thermodynamic limit can be obtained upon doping, with a characteristic dome structure. Assuming that the critical temperature scales with $\phi$, our results locate the optimal doping at $\delta \approx 0.1$. A similar behavior is obtained also at $U/t=10$ (not shown). On the contrary, by doping the Slater insulator at $U/t=4$, the superconducting order parameter suffers from strong finite size effects for $\delta \gtrsim 0.1$, indicating that no sizable superconductivity survives in the thermodynamic limit. Nevertheless, small superconducting correlations might be finite for $\delta \lesssim 0.1$; however, we must stress that, in this region, the system shows a tendency to phase separation, see Fig.~\ref{fig:PSU4}, so that superconductivity is hindered by the non-homogeneous spatial distribution of electrons. In order to assess the validity of these VMC results, we also consider FN estimates. In particular, we compute $\phi^2$ with the mixed-average correction of Eq.~(\ref{eq:Ceperleycorr}). The results confirm the above described behavior for both regimes, see Fig.~\ref{fig:phi}. \begin{figure*} \includegraphics[width=1.5\columnwidth]{fig6.pdf} \caption{\label{fig:Condensation} (Color online) Left panels: Condensation energy $\Delta E$ (red squares) and its kinetic $\Delta E_{\textrm{kin}}$ (black diamonds) and potential $\Delta E_{\textrm{pot}}$ (blue circles) contributions, as a function of doping $\delta$, for $U/t=8$, $10$, and $16$, from top to bottom. Right panels: Optimal values of the antiferromagnetic field $\Delta_{\textrm{AF}}$ and the BCS pairing $\Delta_{\textrm{BCS}}$, as a function of doping $\delta$, for the same values of $U/t$ that are shown in the left panels. Data are presented on the $L=162$ lattice size.} \end{figure*} \begin{figure} \includegraphics[width=0.8\columnwidth]{fig7.pdf} \caption{\label{fig:pdfinal} (Color online) Schematic phase diagram as obtained by using a combined VMC and GFMC (with FN approximation) approach. The red star labels the location of the hidden Mott transition $U_{\textrm{Mott}}/t$ at half filling. The black line with black dots denotes the boundary of the phase-separation region, that shrinks for $U/t \gtrsim U_{\textrm{Mott}}/t$. The curve is left open for $U/t > 10$, since we cannot exclude the presence of phase separation very close to half filling. The dashed blue line with blue dots marks the disappearance of $\Delta_{\textrm{AF}}$ in the optimal variational state. The dashed red line indicates the boundary of the region where sizable pairing correlations are detected. Finally, in the shaded gray region finite-size effects are strong and precise results cannot be obtained in the thermodynamic limit.} \end{figure} In order to further analyze the superconducting properties, we consider the condensation energy $\Delta E$, i.e., the energy gain due to the inclusion of BCS pairing in the variational state: \begin{equation} \Delta E = \frac{\langle\Psi|{\cal H}|\Psi\rangle}{\langle\Psi|\Psi\rangle}- \frac{\langle\Psi_{\Delta_{\textrm{BCS}}=0}|{\cal H}|\Psi_{\Delta_{\textrm{BCS}}=0}\rangle} {\langle\Psi_{\Delta_{\textrm{BCS}}=0}|\Psi_{\Delta_{\textrm{BCS}}=0}\rangle}, \end{equation} where $\Psi_{\Delta_{\textrm{BCS}}=0}$ denotes the best variational state without the inclusion of BCS pairing (but still optimizing $\Delta_{\textrm{AF}}$). The results for $\Delta E$ are shown in Fig.~\ref{fig:Condensation} for three values of $U>U_{\rm Mott}$, together with the optimal variational parameters $\Delta_{\textrm{BCS}}$ and $\Delta_{\textrm{AF}}$ in $|\Psi\rangle$. We observe that the maximal energy gain is obtained close to the point where $\Delta_{\textrm{AF}}$ vanishes. A similar behavior for the antiferromagnetic order parameter has been reported also by cellular dynamical mean-field theory~\cite{kancharla2008} and by VMC~\cite{sato2016}. Then, we turn to consider the kinetic and potential contributions to the total condensation energy $\Delta E$. For moderate values of $U/t$, i.e., $U/t=8$, the energy gain originates from the potential part, while there is a loss in the kinetic part. This feature is consistent with standard BCS theory. By increasing the value of the Coulomb repulsion to $U/t=10$, we observe a simultaneous gain in both components of the energy, even though the kinetic contribution is smaller than the potential one. Finally, for $U/t=16$, the energy gain is purely kinetic, with a simultaneous loss of potential energy (except at half filling), as expected in the strong-coupling limit~\cite{scalapino1998}. A similar behavior of the condensation energy as a function of $U$ has been already reported, for instance, in a VMC study of the non-magnetic sector of the Hubbard model~\cite{yokoyama2013} and in a diagrammatic expansion of the Gutzwiller wave function~\cite{kaczmarczyk2013}. A slightly different behavior, highlighting the existence of a critical doping, has been instead reported in Refs.~\onlinecite{gull2012,fratino2016}. Here, a change in the behavior of the condensation energy from kinetic driven to potential driven is observed at a critical value of the doping for intermediate values of $U/t$. Nevertheless, all these works indicate that a critical value of the Coulomb repulsion is necessary to observe sizable pairing correlations and that, in some region of the phase diagram, superconductivity is kinetic-energy driven, as experimentally suggested by optical measurements for underdoped cuprates~\cite{deutscher2005,giannetti2011}. \section{Conclusions}\label{sec:conc} In conclusion, our variational approach suggests that the Mott transition, which exists in the paramagnetic sector for $\delta=0$~\cite{brinkman1970,georges1996}, may leave an important mark in the more realistic phase diagram, obtained when allowing antiferromagnetic long-range order. First of all, our results suggest that a reminiscence of the Mott transition at $U_{\rm Mott}$, hidden by the antiferromagnetic phase at half-filling, emerges after a careful analysis of the BCS pairing. This hidden Mott transition is intimately related with the change from Slater to Mott antiferromagnetism, the former one being related to a Fermi surface instability towards antiferromagnetic order (with a potential energy gain), while the latter one being connected to a super-exchange mechanism (with a kinetic energy gain). Most importantly, the Mott antiferromagnet contains electron pairing, as originally suggested by Anderson in the RVB theory of superconductivity~\cite{anderson1987}. Within our calculations, it is not clear whether the ``critical'' behavior observed at $U_{\textrm{Mott}}$ represents a genuine phase transition, characterized by a thermodynamic (or topological) signal, or it is just a sharp crossover between two physically different regimes. Nevertheless, the presence of $U_{\rm Mott}$ has a clear manifestation when doping the system with holes. Indeed, for Coulomb interactions that are smaller than this ``critical'' value the system is unstable towards phase separation and there is no strong evidence that superconductivity may emerge, even if we cannot exclude the presence of infinitesimal pairing correlations; by contrast, for $U>U_{\rm Mott}$, hole doping drives the Mott antiferromagnet into a homogeneous superconducting phase, with the condensation energy gain shifting from potential to kinetic by increasing $U/t$. In Fig.~\ref{fig:pdfinal}, we report a schematic phase diagram in the $(\delta,U)$ plane. We remark that the presence of the hidden transition (marked by a star) influences the whole phase diagram of the Hubbard model. First of all, strong superconducting correlations are present when doping the Mott insulator, which is characterized by the existence of preformed electron pairs; in this sense, the picture is similar to the RVB theory, where superconductivity emerge when doping a spin liquid~\cite{anderson1987} (here, the only difference is that antiferromagnetic order may coexist with electron pairing). The second effect of the ``critical'' point at half filling is to separate a region where phase separation is clearly present from another where it is strongly reduced and limited to very small dopings: In this regard, we cannot exclude that phase separation is present for all values of $U/t$, even though this must be limited to very small values of dopings close to half filling (for this reason, we do not show the continuation of the continuous black line for $U/t>10$). We finally mention that no charge-density waves or stripes have been detected in the cases that have been analyzed here (e.g., no strong signals in the density-density correlations have been seen); however, future investigations will consider in more detail the possibility that a non-uniform distribution of densities in the variational wave function may lower the VMC or FN energies. \acknowledgments We thank M. Fabrizio and F. Mila for useful discussions.
\section{Introduction} Although the thermodynamics of small quantum systems has been intensively studied in the past few years \cite{pre73/046129, prl102/210401,Crooks2007, jsp148/480, pre88/032146, rmp81/1665,rmp83/771, pre89/012127, pre89/032114, PhysRevE.89.052128, PhysRevB.90.075421, Jarzynski2015quantum, PhysRevLett.113.140601,an2014experimental, carrega2015, PhysRevB.91.224303,1367-2630-17-7-075018,PhysRevE.85.031110, prl111/093602,NJP15/085028,PhysRevA.88.042111, PhysRevE.89.042122, Solinas2013, suomela2014moments,s10955-014-0991-1,liu2015calculating,PhysRevE.91.062109,Suomela2015a,PhysRevE.92.032129, PhysRevE.93.022131, Carrega2016, PhysRevA.94.012107,elouard2016stochastic, jin2016eigenstate}, measuring thermodynamic variables, such as work, heat and entropy, and their fluctuations in these systems has turned out be a difficult task. Only recently the work fluctuation relations have been experimentally verified in driven closed quantum systems using the two-measurement protocol \cite{PhysRevLett.113.140601,an2014experimental}. For open quantum systems the situation is even more problematic. Instead of measuring only the internal energy of the system at the beginning and at the end of the drive, also the heat emitted to the environment must be measured. One of the few proposed measurement schemes to address this issue is the calorimetric detection of the immediate environment \cite{Pekola2012}. In the calorimetric measurement, the small quantum system is coupled to a large but finite environment. The coupling between the system and the environment is assumed to be weak enough such that it can be neglected in the energy terms and modeled by stochastic jumps alone. Due to these environment induced jumps between the system eigenstates, heat is exchanged with the environment. The resulting changes in the environment energy are continuously monitored by a detector. As a consequence, the heat released to the environment can be measured without directly measuring the quantum system. For a two-level quantum system (qubit), the internal energy change of the system can also be obtained from the heat emitted \footnote{See, for example, Appendix C in Ref. \cite{Suomela2016a}.}. As the environment is large and coupled to a detector, it is assumed to be decohered into a set of energy eigenstates, called microstates \cite{Suomela2016a}. \begin{figure}[t!] \begin{center} \includegraphics[scale=.25]{Fig1.pdf} \end{center} \caption{Schematic illustration of the calorimetric setup. The qubit and the calorimeter start from thermal equilibrium with an ideal bath. During the protocol, the qubit is driven by a classical field $\lambda(t)$. The calorimeter is constantly monitored with a detector. In the simulations, the calorimeter is assumed to contain two-level systems with energy gap equivalent to that of the qubit $\hbar \omega_0$. \label{fig:schematic}} \end{figure} In a recent paper \cite{Suomela2016a}, a finite-environment quantum jump (FEQJ) model was introduced to describe the calorimetric process. In the model, a jump changes both the system and the environment states. The evolution of the system is non-Markovian as its previous history affects its future evolution through the evolution of the environment. In this article, we study compatibility of the FEQJ model with the corresponding master equation approach. We focus on a weakly driven qubit coupled to a finite bosonic environment, called calorimeter from here on. The setup is illustrated in Fig \ref{fig:schematic}. The qubit and calorimeter are assumed to be initially thermalized by an ideal bath. During the driving protocol, we neglect the coupling to the ideal bath as it is assumed to be very weak compared to the inverse of the total driving time $\tau$. Due to the detector, the calorimeter is assumed to decohere into its eigenstates. We start the article by microscopically deriving the master equation for the qubit coupled to the calorimeter. We then show that the master equation obtained is equivalent to the master equation formed from the FEQJ model. We also show that both methods produce the same work moments when the work is defined using the two-measurement protocol \cite{Kurchan2000,Tasaki2000,Mukamel2003} (TMP) without the interaction energy. For master equation calculations, we additionally show that the power operator definition of work \cite{Solinas2013,suomela2014moments} does not produce exactly the same work moments due to a different order of approximations. Last, we numerically study a qubit coupled to a calorimeter consisting of 10 two-level systems with an energy gap equivalent to that of the qubit. We calculate the qubit density matrix and the first two moments of work with the FEQJ method and directly from the master equation. We find an excellent agreement between the methods when the work is defined using TMP without the interaction energy. However, when compared to the work moments from the power operator approach, we show that the agreement sensitively depends on the form of the driving. \section{Microscopic derivation of the master equation} We focus on a two-level system (qubit) ${H}_0=\hbar \omega_0 {a}^\dagger {a}$ that is weakly driven by a classical source $V_D(t)=\lambda(t){a}^\dagger + \lambda^*(t){a}$, where $ {a}=\ket{0}\bra{1}$ and $ {a}^\dagger=\ket{1}\bra{0}$ are the annihilation and creation operators in the undriven basis. The states $\ket{1}$ and $\ket{0}$ denote the excited and ground states of the undriven Hamiltonian, $H_0$, respectively. The qubit Hamiltonian is then given by ${H}_q(t)={H}_0+{V_D}(t)$. As shown in Fig. \ref{fig:schematic}, the qubit is weakly coupled to a bosonic calorimeter by $V=\sum_k \kappa_k ({a}^\dagger {d}_k + {a} {d}_k^\dagger)$, where the coupling strength $\kappa_k$ is real and $ d_k$ and $ d^\dagger_k$ are the calorimeter's annihilation and creation operators associated with energy $\epsilon_k$. The calorimeter Hamiltonian is given by $ H_c =\sum_k \epsilon_k d_k^\dagger d_k$. Let us start from the total density matrix of the qubit-calorimeter composite, which can always be expressed as \begin{eqnarray} {\rho}_{}(t)= \sum_{i,j,m,n} \alpha_{ijmn}(t) \ket{i} \bra{j} \otimes \ket{\Psi_m} \bra{\Psi_n}, \end{eqnarray} where $\ket{\Psi_n}$ are calorimeter energy eigenstates (microstates) forming a complete basis. In order to witness the energy changes in the calorimeter, it is continuously monitored with a detector. As a consequence of the monitoring, we assume that the calorimeter decoheres instantaneously into the einselected basis with $\alpha_{ijmn}(t)=0$ if $m \neq n$~\cite{Zurek2003}. Consequently, the total density matrix simplifies to \begin{eqnarray} {\rho}_{}(t)= \sum_n \sigma(n,t) \otimes \ket{\Psi_n} \bra{\Psi_n}, \label{eq:dmd} \end{eqnarray} where $\sigma(n,t ) = \sum_{i,j} \alpha_{ijnn}(t) \ket{i} \bra{j}$. It should be noted that the matrix $\sigma(n,t )$ cannot be interpreted as a qubit density matrix since its trace over qubit degrees of freedom gives the probability of a calorimeter state $\ket{\Psi_n}$, denoted as $p(\Psi_n,t)$. The reduced density matrices of the qubit and the calorimeter are given by $ {\rho}_{q}(t)= \text{Tr}_{c}\left \lbrace {\rho}_{}(t) \right\rbrace = \sum_n \sigma(n,t), $ and $ {\rho}_{c}(t)= \text{Tr}_{q}\left \lbrace {\rho}_{}(t) \right\rbrace, $ respectively, where the subscript $c$ ($q$) in the trace denotes the trace over the calorimeter (qubit) degrees of freedom. Let us assume that the total density matrix starts from a tensor product state of the form of Eq. \eqref{eq:dmd}. In the interaction picture with respect to ${H}_0+{H}_c$, the time evolution of the total density matrix is given by the following equation up to the second order of $V_D$ and $V$: \begin{eqnarray} \dot{ \rho}_I(t)&=&\frac{i}{\hbar}\left[ \rho_I(t), V_{D,I}(t) \right] \nonumber \\ &-&\frac{1}{\hbar^2} \int_{-\infty}^t dt^\prime [ V_{I}(t),[ V_{D,I}(t^\prime)+ V_I(t^\prime), \rho_I(t)]], \end{eqnarray} where the subscript $I$ denotes the interaction picture, e.g., ${V}_I(t)=e^{i (H_0+ H_c) t/\hbar} {V}(t) e^{-i (H_0+H_c) t/\hbar}$. The master equation for $\sigma_{I}(n,t)=\text{Tr}_c\left \lbrace \rho_I(t) \ket{\Psi_n} \bra{\Psi_n} \right\rbrace$ then takes the form: \begin{equation} \begin{split} &\dot{ \sigma}_{I}(n,t)=\frac{i}{\hbar} \left[ \sigma_{I}(n,t), V_{D,I}(t) \right] \\ &-\frac{1}{\hbar^2} \int_{-\infty}^t dt^\prime \text{Tr}_c \left \lbrace [V_{I}(t),[ V_{I}(t^\prime), \rho_I(t)]] \ket{\Psi_n} \bra{\Psi_n} \right \rbrace \label{eq:4} \end{split} \end{equation} By inserting the Hamiltonians and neglecting the Lamb shift (see Appendix A for details), we obtain the following master equation in the Schrodinger picture: \begin{eqnarray} \dot{\sigma}(n,t) &=&\frac{i}{\hbar} \left[ \sigma(n,t), H_{q}(t) \right] \nonumber \\ &-&\sum_k \left \lbrace \frac{\Gamma_{\uparrow,k}(n)}{2} \left[ \sigma_{}(n,t) a a^\dagger+ a a^\dagger \sigma_{}(n,t) \right] \right. \nonumber \\ &-& \left. \Gamma_{\downarrow,k}(n^\prime_k) a \sigma(n^\prime_k,t) a^\dagger -\Gamma_{\uparrow,k}(n^{\prime \prime}_k) a^\dagger \sigma (n^{\prime \prime}_k,t) a \right. \nonumber \\ &+& \left. \frac{\Gamma_{\downarrow,k}(n)}{2} \left[ \sigma(n,t) a^\dagger a + a^\dagger a \sigma(n,t) \right] \right\rbrace, \label{eq:ME1} \end{eqnarray} where $n_k^\prime$ and $n_k^{\prime \prime} $ are the calorimeter microstate indices that satisfy $\ket{\Psi_{{n}_k^{\prime}}}= d_k \ket{\Psi_{n}^{}}/ || d_k \ket{\Psi_{n}^{}} ||$ and $\ket{\Psi_{{n}_k^{\prime \prime}}}= d_k^\dagger \ket{\Psi_{n}^{}}/ || d_k^\dagger \ket{\Psi_{n}^{}} ||$, respectively. The transition rates depend on the state of the calorimeter and are of the form: \begin{eqnarray} \Gamma_{\uparrow,k}(n)= g_k^2 \bra{\Psi_n} d_k^\dagger d_k \ket{\Psi_n}; \label{TR1}\\ \Gamma_{\downarrow,k}(n)= g_k^2 \bra{\Psi_n} d_k d_k^\dagger \ket{\Psi_n}, \label{TR2} \end{eqnarray} with $g_k^2=\frac{2 \pi}{\hbar^2} \kappa_k^2 \delta (\omega_0-\epsilon_k/\hbar)$. From the point of view of the degrees of freedom of the qubit, Eq. \eqref{eq:ME1} is non-Markovian as the evolution depends both on the qubit's state and the state of the calorimeter. For the total density matrix, Eq. \eqref{eq:ME1} gives a master equation of the form: \begin{eqnarray} \dot{\rho}_{}(t)&=& \mathcal{L}[{\rho}_{}(t)] \nonumber \\ &=&\frac{i}{\hbar} \left[ {\rho}_{}(t), H_{q}(t) \right] \nonumber \\ &-&\sum_k \left \lbrace \frac{g_k^2}{2} \left[ \rho_{}(t) a a^\dagger d_k^\dagger d_k + a a^\dagger d_k^\dagger d_k \rho(t) \right] \right. \nonumber \\ &-& \left. g_k^2 a d_k^\dagger \rho(t) a^\dagger d_k -g_k^2 a^\dagger d_k \rho(t) a d_k^\dagger \right. \nonumber \\ &+& \left.\frac{g_k^2}{2} \left[ \rho(t) a^\dagger a d_k d_k^\dagger + a^\dagger a d_k d_k^\dagger \rho(t) \right] \right\rbrace. \label{eq:MEL} \end{eqnarray} The results above were derived assuming that the calorimeter state can only change through the interaction with the qubit. In electronic systems \cite{Kutvonen2015,pekola2016finite,pekola2016energy}, however, the internal relaxation of the calorimeter is commonly the fastest time scale. In these instances, the state of the calorimeter is more accurately described using a microcanonical ensemble instead of a single microstate. The total density matrix then reads \begin{eqnarray} {\rho}_{}(t)= \sum_E \sigma(E,t) \otimes \sigma_c(E), \end{eqnarray} where $E$ denotes the calorimeter energy and $\sigma(E,t )$ is the qubit matrix. According to the microcanonical ensemble, the calorimeter matrix $\sigma_c(E) =[1/N(E)] \sum_{k} \ket{\Psi_k} \bra{\Psi_k} \delta_{E_k,E}$, where $E_k$ is the energy of microstate $\ket{\Psi_k}$ and $N(E)$ is the number of microstates with energy $E$. The derivation of the master equation for $\sigma(E,t)$ is similar to the previous case, yielding \begin{eqnarray} \dot{\sigma}(E,t) &=&\frac{i}{\hbar} \left[ \sigma(E,t), H_{q}(t) \right] \nonumber \\ &-& \left \lbrace \frac{\Gamma_{\uparrow}(E)}{2} \left[ \sigma(E,t) a a^\dagger+ a a^\dagger \sigma(E,t) \right] \right. \nonumber \\ &-& \left. \Gamma_{\downarrow}(E-\hbar \omega_0) a \sigma(E-\hbar \omega_0,t) a^\dagger \right. \nonumber \\ &-& \left. \Gamma_{\uparrow}(E+\hbar \omega_0) a^\dagger \sigma(E+\hbar \omega_0,t) a \right. \nonumber \\ &+& \left. \frac{\Gamma_{\downarrow}(E)}{2} \left[ \sigma(E,t) a^\dagger a + a^\dagger a \sigma(E,t) \right] \right\rbrace, \label{Eq:mee} \end{eqnarray} where the transition rates are energy dependent $\Gamma_{\uparrow/ \downarrow }(E)=[1/N(E)]\sum_{k,n} \Gamma_{\uparrow/ \downarrow,k}(n) \delta_{E_n,E}$. \section{Equivalence with the FEQJ model} In this section, we show that the same master equation of Eq. \eqref{eq:ME1} is also produced by the FEQJ model by averaging over the stochastic trajectories. In the FEQJ model, the interaction between the qubit and the calorimeter is described by stochastic jumps. When a jump occurs, both the qubit and calorimeter states change such that the energy difference of the calorimeter states corresponds to the energy change in the qubit. For the system studied, these jumps are caused by jump operators $ D_{\downarrow, k} = g_k a \otimes d_k^\dagger$ and $ D_{\uparrow, k} = g_k a^\dagger \otimes d_k$. For convenience, we denote the jump operators using only one index $D_{m}$. Let us assume that the calorimeter is in a microstate $\ket{\Psi_k}$ and the qubit is in a state $\ket{\psi}$ at time $t$. According to the FEQJ protocol \cite{Suomela2016a}, the probability for a jump in the time interval $[t,t+\delta t] $ is given by \begin{eqnarray} \delta p = \sum_m \delta p_m = \sum_m \delta t \text{Tr}_{q+c} \lbrace D^\dagger_m D_m \sigma \otimes \sigma_c \rbrace, \label{eq:dp1} \end{eqnarray} where $\delta p_m$ is the probability of a jump corresponding to the jump operator $D_m$, the system and calorimeter states are presented in the matrix form, i.e, $\sigma(t)=\ket{\psi} \bra{\psi}$ and $ \sigma_c(t)=\ket{\Psi_k} \bra{\Psi_k}$, respectively. In the case that a jump caused by $ D_m$ occurs, the qubit state changes to $ \sigma(t+\delta t)= {\rm Tr}_c \lbrace D_m \sigma \otimes \sigma_c D_m^\dagger \rbrace / (\delta p_m / \delta t)$. Similarly, the calorimeter state changes to $ \sigma_c(t+\delta t)= {\rm Tr}_q \lbrace D_m \sigma \otimes \sigma_c D_m^\dagger \rbrace/ (\delta p_m / \delta t)$. In the case that there are no jumps in the time interval $[t,t+\delta t]$, the time evolution is given by the nonunitary Hamiltonian \begin{eqnarray} H(t)= H_q(t)+ H_c-\frac{i \hbar}{2} \sum_m D^\dagger_m D_m,\label{eq:dp2} \end{eqnarray} where $ H_q$ and $ H_c$ are the qubit and calorimeter Hamiltonians, respectively. Consequently, the qubit and calorimeter states evolve into $ \sigma(t+\delta t)= {\rm Tr}_c \lbrace U(t+\delta t,t) \sigma \otimes \sigma_c U^\dagger(t+\delta t,t) \rbrace / (1- \delta p) +\mathcal{O}(\delta t^2)$ and $ \sigma_c(t+ \delta t)= {\rm Tr}_q \lbrace U(t+\delta t,t) \sigma \otimes \sigma_c U^\dagger(t+\delta t,t) \rbrace/(1-\delta p) +\mathcal{O}(\delta t^2)$, where $ U(t+\delta t,t)= 1- \frac{i}{\hbar} {H}(t) \delta t$. Due to the assumption that the calorimeter is in a microstate at time $t$, the non-unitary evolution does not change the calorimeter state, i.e., $\sigma_c(t+ \delta t)= \sigma_c(t)$. For time $t+\delta t$, we consider the total state averaged over the different outcomes between $[t,t+\delta t]$. Let us denote this averaged total state as $ \rho_{ave}(t+\delta t)= \sum_n \sigma_{ave}(n,t+\delta t) \otimes \ket{\Psi_n} \bra{\Psi_n}$, where $\sigma_{ave}(n,t+\delta t)$ is the conditional average over all qubit state outcomes with calorimeter state $\ket{\Psi_n}$ multiplied with the probability of calorimeter state $\ket{\Psi_n}$. As we assume the qubit and calorimeter to be respectively in states $\ket{\psi}$ and $\ket{\Psi_k}$ at time $t$, $\sigma_{ave}(n,t)=0$ when $n \neq k$ and $\sigma_{ave}(k,t)=\sigma(t)=\ket{\psi}\bra{\psi}$. According to the protocol described above, \begin{eqnarray} && \sigma_{ave}(k,t+\delta t) \nonumber \\ &&={\rm Tr}_c \lbrace U(t+\delta t,t) \sigma_{ave}(k,t) \otimes \ket{\Psi_k} \bra{\Psi_k} U^\dagger(t+\delta t,t) \rbrace \nonumber \\ &&= \sigma_{ave}(k,t) - \frac{i}{\hbar}\delta t[ H_q(t), \sigma_{ave}(k,t)] \nonumber \\&&-\frac{1}{2}\sum_m \delta t \text{Tr}_{c} \lbrace D^\dagger_m D_m \sigma_{ave}(k,t) \otimes \ket{\Psi_k} \bra{\Psi_k} \rbrace \nonumber \\ &&-\frac{1}{2} \sum_m \delta t \text{Tr}_{c} \lbrace \sigma_{ave}(k,t) \otimes \ket{\Psi_k} \bra{\Psi_k} D^\dagger_m D_m \rbrace \nonumber \\ &&+\mathcal{O}(\delta t^2), \end{eqnarray} as only the no-jump evolution contributes to $ \sigma_{ave}(k,t+\delta t)$. Let us use $\ket{\Psi_{{k}_m}}$ to denote the new calorimeter microstate if a jump caused by $D_{m}$ occured from state $\ket{\Psi_{k}}$. Due to the possibility of these jumps, $\sigma_{ave}(k_m,t+\delta t)$ becomes non-zero: \begin{eqnarray} \sigma_{ave}(k_m,t+\delta t) = \delta t {\rm Tr}_c \lbrace D_m \sigma_{ave}(k,t) \otimes \ket{\Psi_k} \bra{\Psi_k} D_m^\dagger \rbrace. \end{eqnarray} The above results were obtained by assuming a fixed state at time $t$. If we now average over all the possible values of qubit and calorimeter states at time $t$, we get \begin{eqnarray} &&\overline{ \sigma_{ave}}(n,t+\delta t) \nonumber \\ &&= \overline{\sigma_{ave}}(n,t) - \frac{i}{\hbar}\delta t[ H_q(t), \overline{\sigma_{ave}}(n,t))] \nonumber \\&&-\frac{1}{2} \sum_m \delta t \text{Tr}_{c} \lbrace D^\dagger_m D_m \overline{\sigma_{ave}}(n,t) \otimes \ket{\Psi_n} \bra{\Psi_n} \rbrace \nonumber \\&&- \frac{1}{2}\sum_m \delta t \text{Tr}_{c} \lbrace \overline{\sigma_{ave}}(n,t) \otimes \ket{\Psi_n} \bra{\Psi_n} D^\dagger_m D_m \rbrace \nonumber \\ &&+ \sum_m \delta t {\rm Tr}_c \lbrace D_m \overline{\sigma_{ave}}(n_m^\prime,t) \otimes \ket{\Psi_{n_m^\prime}} \bra{\Psi_{n_m^\prime}} D_m^\dagger \rbrace \nonumber \\ &&+\mathcal{O}(\delta t^2) \end{eqnarray} for all $n$, where the bar denotes averaging over all the possible qubit and calorimeter states at time $t$ and the index $n_m^\prime$ denotes the calorimeter state $\ket{\Psi_{n_m^\prime}}$ from which the jump operator $D_m$ can cause a jump to the calorimeter state $\ket{\Psi_{n}}$. By inserting the exact form of the jump operators and defining $\dot{\overline{ \sigma_{ave}}}(n,t)=\lim_{\delta t \rightarrow 0} [\overline{ \sigma_{ave}}(n,t+\delta t)-\overline{ \sigma_{ave}}(n,t)]/\delta t$, the equation becomes equivalent to Eq. \eqref{eq:ME1}: \begin{eqnarray} &&\dot{\overline{ \sigma_{ave}}}(n,t) \nonumber \\ &&= \frac{i}{\hbar} \left[ \overline{\sigma_{ave}}(n,t), H_{q}(t) \right] \nonumber \\ &-&\sum_k \left \lbrace \frac{\Gamma_{\uparrow,k}(n)}{2} \left[ \overline{\sigma_{ave}}(n,t) a a^\dagger+ a a^\dagger \overline{\sigma_{ave}}(n,t) \right] \right. \nonumber \\ &-& \left. \Gamma_{\downarrow,k}(n^\prime_k) a \overline{\sigma_{ave}}(n^\prime_k,t) a^\dagger -\Gamma_{\uparrow,k}(n^{\prime \prime}_k) a^\dagger \overline{\sigma_{ave}}(n^{\prime \prime}_k,t) a \right. \nonumber \\ &+& \left. \frac{\Gamma_{\downarrow,k}(n)}{2} \left[\overline{\sigma_{ave}}(n,t) a^\dagger a + a^\dagger a \overline{\sigma_{ave}}(n,t) \right] \right\rbrace, \label{eq:ME1ave} \end{eqnarray} with transition rates given by Eqs. \eqref{TR1} and \eqref{TR2}, the indices $n_k^\prime$ and $n_k^{\prime \prime} $ satisfy $\ket{\Psi_{{n}_k^{\prime}}}= d_k \ket{\Psi_{n}^{}}/ || d_k \ket{\Psi_{n}^{}} ||$ and $\ket{\Psi_{{n}_k^{\prime \prime}}}= d_k^\dagger \ket{\Psi_{n}^{}}/ || d_k^\dagger \ket{\Psi_{n}^{}} ||$, respectively. In a similar manner when the calorimeter reaches a microcanonical ensemble immediately after a jump, the FEQJ model produces a master equation equivalent to Eq. \eqref{Eq:mee} (See Appendix B). \section{Moments of work} Due to the difference in calculating thermodynamics observables, the equivalence between the master equations is not enough to guarantee that the distributions of the observables are equivalent in both methods. In this section, we show that the moments of work produced by the methods are indeed identical when using the TMP without the interaction energy. However, the power operator approach is found not to agree with the TMP results without certain assumptions of the driving. We assume here that at time $t=0$, both the qubit and the calorimeter start from thermal equilibrium with respect to inverse temperature $\beta$ such that they can be expressed as a tensor product $\rho(0)=\rho_q(0)\otimes \rho_c(0)$, which is a stationary solution of Eq. \eqref{eq:MEL}. \subsection{FEQJ method \label{sec:WM}} The work done in a single FEQJ trajectory can be obtained with a projective energy measurement for both the qubit and the calorimeter in the beginning ($t=0$) and end of the drive ($t=\tau$). The work is then defined as the energy difference between the final and initial outcomes. That is, the qubit-calorimeter interaction is neglected in the work values. In the case of a qubit, the additional projective energy measurements for the qubit are not necessary as the calorimeter itself acts as a measurer. The initial and final energy of the qubit can be determined from the last jump before the drive and from the first jump after the drive, respectively. The total heat exchanged during the drive is given by summing over the heat exchanges caused by the jumps in the trajectory. A jump down and a jump up in the qubit cause a $\hbar \omega_0$ heat emission to the calorimeter and a $\hbar \omega_0$ heat absorption from the calorimeter, respectively. The work of a trajectory is then obtained as the change in the internal energy of the qubit plus the total heat released to the calorimeter. This leads to a work distribution equivalent to that of the double projective measurements for both the qubit and the calorimeter \cite{Suomela2016a}. As shown in Appendix C, the moment generating function of the resulting work distribution can be expressed as \begin{equation} \begin{split} \langle e^{i \mu W_{tmp}} \rangle = \text{Tr}_{q+c} \left\lbrace \mathcal{T}_{\leftarrow} e^{i \mu [H_{q+c}^H(\tau)-H_{q+c}^H(0)]} \rho(0) \right\rbrace, \end{split} \end{equation} where $H_{q+c}(t)=H_q(t)+H_c$ is the Hamiltonian of the composite system without the interaction Hamiltonian and $\mathcal{T}_{\leftarrow}$ is the time ordering operator. The superscript $H$ denotes the Heisenberg picture, such that $H_{q+c}^H(t)=H_{q+c}(t)V(t,0)$, where the superoperator $V(t,0)= \mathcal{T}_{\leftarrow} e^{\int_0^t \mathcal{L}(t^\prime) d t^\prime}$ acts on the objects on the right side of it. The moments take the form \begin{equation} \begin{split} \langle W_{tmp}^n \rangle &= (-i)^n \left. \frac{ \partial^n \langle e^{i \mu W_{tmp}} \rangle }{\partial \mu^n} \right\rvert_{\mu=0} \\ &= \text{Tr}_{c+q} \left\lbrace \mathcal{T}_{\leftarrow} \left\lbrace [H_{q+c}^H(\tau) - H^H_{q+c}(0)]^n \right\rbrace \rho(0) \right\rbrace \\ &= \sum_{m=0}^{n} \binom {n} {m} \text{Tr}_{c+q} \left\lbrace [H_{q+c}^H(\tau)]^{n-m} [H_{q+c}^H(0)]^{m} \rho(0) \right\rbrace. \end{split} \end{equation} These correlation functions can be calculated directly using the master equations of Eq. \eqref{eq:MEL} and \eqref{Eq:mee}. As these equations are linear in terms of the density matrices, we can express the moments as \begin{equation} \begin{split} \langle W_{tmp}^n \rangle &= \sum_{m=0}^{n} \sum_{i,k} \binom {n} {m} (-E_k-\hbar \omega_0 \delta_{i,1})^{m} \\ &\times \text{Tr}_{c+q} \left\lbrace [H_{q+c}^H(\tau)]^{n-m} \chi(i,k,\tau) \right\rbrace, \end{split} \end{equation} where $\chi(i,k,\tau)$ is a density matrix that evolves according to the master equation with initial value $\chi(i,k,0)=\ket{i}\bra{i} \otimes \ket{\Psi_k}\bra{\Psi_k}$. As shown in the previous section, both methods produce equivalent evolution for the density matrix. Thus, they also produce equivalent evolution for $\chi(i,k,\tau)$ and consequently equivalent moments of work. \subsection{Power operator approach} For direct master equation calculations, the moments of work can be alternatively calculated with the power operator approach, which can be derived by starting from the two measurement protocol of an isolated system whose evolution is unitary during the protocol \cite{suomela2014moments}. With the power operator approach, the first two work moments for the total isolated system are given by \cite{Solinas2013, suomela2014moments} \begin{eqnarray} &\langle W_p \rangle &= \int_0^\tau dt \text{Tr}_{c+q} \lbrace P^{H_u}( t ) \rho(0) \rbrace, \label{eq:Wp} \\ &\langle W_p^2 \rangle &= 2 \int_0^\tau dt_1 \int_0^{t_1} dt_2 \times \nonumber \\ &&\text{Re}\left\lbrace \text{Tr}_{c+q} \left\lbrace P^{H_u}(t_1) P^{H_u}(t_2) \rho(0) \right\rbrace \right\rbrace, \label{eq:Wp2} \end{eqnarray} where $H(t)$ is the total Hamiltonian of the composite system, $P(t)= \partial_t H(t)$, and the superscript $H_u$ denotes the usual Heisenberg picture of unitary evolution. When the driving term only acts on the qubit degrees of freedom, $P(t) = \partial_t H_q(t)$. The equations \eqref{eq:Wp}-\eqref{eq:Wp2} can then be calculated by replacing the unitary evolution with the one given by the master equation of Eq. \eqref{eq:MEL} in the finite-environment case, or with a Lindblad equation in the case of an infinite environment \cite{suomela2014moments}. However, as the approximations are done in a different order as compared to the way of calculating the work with the FEQJ method, the resulting moments of work are not completely identical unless certain assumptions are made on the driving. To illustrate this, let us start from the average work given by FEQJ method, which can also be expressed as \begin{equation} \begin{split} \langle W_{tmp} \rangle &= \int_0^\tau dt \text{Tr}_{c+q} \left\lbrace {\partial_t}[H_{q+c}^H(t) \rho(0)]\right\rbrace \\ &= \int_0^\tau dt \text{Tr}_{c+q} \left\lbrace \partial_t H_{q}(t) \rho(t)\right\rbrace \\ & + \int_0^\tau dt \text{Tr}_{c+q} \left\lbrace H_{q+c}(t) \dot{\rho}(t)\right\rbrace, \\ &= \langle W_p \rangle + \int_0^\tau dt \text{Tr}_{c+q} \left\lbrace H_{q+c}(t) \mathcal{L}[\rho(t)]\right\rbrace, \end{split} \label{eq:Wqjp} \end{equation} where $ \mathcal{L}[\rho(t)]$ is given by Eq. \eqref{eq:MEL}. Clearly, the average works are equivalent for all driving times $\tau$ only if $ \text{Tr}_{c+q} \left\lbrace H_{q+c}(t) \mathcal{L}[\rho(t)]\right\rbrace$ is zero for all $t$. Inserting Eq. \eqref{eq:MEL}, the difference between the average work values simplifies to \begin{equation} \begin{split} &\langle W_{tmp} \rangle -\langle W_p \rangle = \\ &- \sum_{n,k} \left[ \Gamma_{\downarrow,k}(n)+\Gamma_{\uparrow,k}(n) \right] \int_0^\tau dt \text{Re} \lbrace \lambda(t) \bra{0} \sigma(n,t) \ket{1} \rbrace . \end{split} \label{eq:Wqjp2} \end{equation} For a sinusoidal driving $\lambda(t)=\lambda_0 \sin(\omega_d t)$, the term $\text{Re} \lbrace \lambda(t) \bra{0} \sigma(n,t) \ket{1}$ is generally non-zero. However, in the case of resonant driving, i.e., $\omega_d=\omega_0$, the term becomes zero if the fast oscillating terms of the drive are neglected. This can be shown by changing into an interaction picture with respect to $H_0$: \begin{equation} \begin{split} \langle W_{tmp} \rangle -\langle W_p \rangle &= -\sum_{n,k} \left[ \Gamma_{\downarrow,k}(n)+\Gamma_{\uparrow,k}(n) \right] \\ &\times \int_0^\tau dt \text{Re} \lbrace \lambda_I(t) \bra{0} \sigma_I(n,t) \ket{1} \rbrace, \end{split} \end{equation} where the driving term $\lambda_I(t)=e^{i \omega_0 t} \lambda(t)$, and $I$ denotes the interaction picture. As we start from thermal equilibrium, $\sigma_I(n,0)$ is real for all $n$. In the interaction picture, the master equation [Eq. \eqref{eq:ME1}] is real and consequently $\sigma_I(n,t)$ stays real for all $t$. When the fast oscillating terms in the drive are neglected, $\lambda_I(t)=i\lambda_0/2$ becomes imaginary and consequently $\text{Re} \lbrace \lambda_I(t) \bra{1} \sigma_I(n,t) \ket{0} \rbrace = 0$. A similar difference occurs also in the higher moments. The difference exits also when the qubit is coupled to an infinite or memoryless environment. In this case the evolution can be described with Eq. \eqref{Eq:mee} by replacing all $\sigma$ of different energies with $\rho_q(t)$ and removing the energy dependence of the transition rates. As the equation is then in the Lindblad form, the standard quantum jump method can be used. For the system studied, the difference between the average work becomes \begin{equation} \begin{split} \langle &W_{tmp} \rangle -\langle W_p \rangle = \\ &- \left( \Gamma_{\downarrow}+\Gamma_{\uparrow} \right) \int_0^\tau dt \text{Re} \lbrace \lambda_I(t) \bra{0} \rho_{q,I}(t) \ket{1} \rbrace, \end{split} \end{equation} where $\rho_{q,I}(t)$ is the qubit density matrix in the interaction picture with respect to $ {H_0}$, $\Gamma_{\downarrow}$ and $\Gamma_{\uparrow}$ are the transition rates for jump down and up, respectively. Again, for a resonant sinusoidal driving, the difference becomes zero if the fast oscillating terms of the drive are neglected. Both definitions give the same work moments also if the qubit is driven adiabatically and the jumps occur between the instantaneous eigenstates. However in the case of nearly adiabatic off-resonance driving \cite{Suomela2015a}, the definitions can lead to different work moments \footnote{Unpublished results of Ref. \cite{Suomela2015a}. }. \section{Numerical Results} \begin{figure}[t!] \begin{center} \includegraphics[scale=.4]{Fig2.pdf} \end{center} \caption{Time evolution of the qubit's excited state population given by direct master equation calculations [Eq. \eqref{Eq:mee}] for different driving frequencies $\omega_d$. The calorimeter consist of 10 two-level systems with an energy gap equivalent to that of the qubit. The drive is discretized using $10^6$ equidistant timesteps. The driving amplitude $\lambda_0=0.05 \hbar \omega_0$ and the coupling strength $|g|^2=0.01/(n_{e} \hbar)$, where $n_{e}=10$ is the number of two-level systems in the calorimeter.} \label{fig:pop} \end{figure} We focus on a weakly driven qubit coupled to a finite calorimeter consisting of 10 two-level systems, whose energy gap is equivalent to that of the qubit. The qubit is assumed to be coupled to each two-level system with the same coupling strength. Both the qubit and the calorimeter start from thermal equilibrium such that the initial total density matrix can be written as \begin{equation} \begin{split} \rho(0)&= \rho_q(0)\otimes \rho_c(0) \\ &= \sum_{i,k} \frac{e^{-\beta (E_k+\hbar \omega_0 \delta_{i,1})}}{Z_q Z_c} \ket{i} \bra{i} \otimes \ket{\Psi_k} \bra{\Psi_k}, \end{split} \end{equation} where $\beta$ is the inverse temperature of the ideal bath, $Z_q= \sum_i e^{-\beta \hbar \omega_0 \delta_{i,1}}$ is the partition function of the qubit, $Z_c= \sum_k e^{-\beta E_k}$ is the partition function of the calorimeter. We study three sinusoidal driving protocols: a resonant driving $\omega_d=\omega_0$ and non-resonant driving frequencies $\omega_d=0.9 \omega_0$ and $\omega_d=1.1 \omega_0$. In the simulations, we use the driving amplitude $\lambda_0=0.05 \hbar \omega_0$. For simplicity, we focus on the case where the calorimeter relaxes to a microcanonical state instantaneously after a jump. Consequently, there are only eleven calorimeter states to consider. We use the coupling strength $|g|^2=0.01/(n_{e} \hbar)$, where $n_{e}=10$ is the number of two-level systems in the calorimeter. We calculate the time evolution of the qubit density matrix directly by evolving the master equation. The time evolution of the qubit's excited state population is illustrated in Fig. \ref{fig:pop} for the driving frequencies $\omega_d/\omega_0=0.9$, $1.0$ and $1.1$. As can be seen from the figure, resonant driving pumps the qubit from the ground state to the excited state and vice versa much more efficiently than the non-resonant driving frequencies $\omega_d=0.9 \omega_0$ and $\omega_d=1.1 \omega_0$. Due to the coupling to the calorimeter, the excited state population's oscillation caused by the drive weakens in time. In order to compare the master equation evolution to the FEQJ results, we calculate the trace distance between the total density matrices of the methods. As the total density matrices are hermitian, the trace distance can be calculated as \begin{equation} T(\rho^{me},\rho^{qj})=\frac{1}{2} \sum_j |\mu_j|, \end{equation} where $\rho^{me}$ denotes the total density matrix given by the master equation evolution [Eq. \eqref{Eq:mee}], $\rho^{qj}$ denotes the total density matrix formed from the FEQJ trajectories and $\mu_j$ are the eigenvalues of the matrix $\rho^{me}-\rho^{qj}$. Figure \ref{fig:pop2} shows the maximum trace distance between the total matrices as a function of the number of trajectories in the FEQJ simulations. For all the driving frequencies studied, the FEQJ density matrix approaches the ME density matrix by increasing the number of trajectories. This agrees with the theoretical prediction that both methods give identical evolution within the numerical accuracy. \begin{figure}[t!] \begin{center} \includegraphics[scale=.4]{Fig3.pdf} \end{center} \caption{The maximum trace distance ($T$) between the total density matrices given by the FEQJ simulations ($\rho^{qj}$) and direct master equation calculations ($\rho^{me}$) as a function of the number of trajectories in the FEQJ simulations. The parameters are the same as in Fig. \ref{fig:pop}.} \label{fig:pop2} \end{figure} We also investigated the work statistics produced by the methods. For all the driving frequencies, we calculate the first two moments of work with both methods by using the two measurement protocol without the interaction energy. For the direct master equation calculations, we additionally calculate the moments using the power operator approach. The results for the average work are presented in Fig. \ref{fig:work}. The inset shows the average work given by the power operator approach. As can been seen from the inset, the resonant driving produces much larger work values than the non-resonant driving. This is due to the fact that the resonant driving pumps the qubit from the ground state to the excited state with a much higher rate as already witnessed in Fig. \ref{fig:pop}. For resonant driving, the power operator definition of work agrees well with the two measurement protocol results as the contribution of the fast oscillating terms in Eq. \eqref{eq:Wqjp2} is small due to weak and periodic driving. However, the power operator definition of work significantly deviates from the two measurement protocol results in the case of non-resonant driving. Already in the case of a slightly off-resonant driving of $\omega_d/\omega_0=1.0 \pm 0.1$, the average work from TMP and the power operator approaches differs up to $10\%$ with the parameters studied. As proven in Section \ref{sec:WM}, the FEQJ model and the direct master equation calculations are found to agree when using the TMP definition of work regardless of the driving frequency. For the second moment of work (Fig. \ref{fig:work2}), the TMP and power operator approach are found to agree in the case of resonant driving. For the non-resonant driving of $\omega_d/\omega_0=1 \pm 0.1$, the approaches differ even more than in the case of the average work, up to $20\%$. Regardless of the driving frequency, the second work moments of the FEQJ model and the direct master equation calculations are found to agree when using the TMP definition of work as illustrated in Fig. \ref{fig:work2}. \begin{figure}[t!] \begin{center} \includegraphics[scale=.4]{Fig4.pdf} \end{center} \caption{Comparison between the average work given by the power operator approach (POA) $\langle W_p \rangle$ and the two-measurement protocol (TMP) $\langle W_{tmp} \rangle$ for different driving frequencies. The POA results are given by the direct master equation calculations. The lines correspond to TMP average work values given by direct master equation calculations and the markers correspond to the ones given by the FEQJ simulations. The parameters are the same as in Fig. \ref{fig:pop}. Inset: The average work of the power operator approach given by the direct master equation calculations.} \label{fig:work} \end{figure} \begin{figure}[t] \begin{center} \includegraphics[scale=.4]{Fig5.pdf} \end{center} \caption{Comparison between the second moment of work given by the power operator approach (POA) $\langle W_{p}^2 \rangle$ and the two-measurement protocol (TMP) $\langle W_{tmp}^2 \rangle$ for different driving frequencies. The POA results are given by the direct master equation calculations. The lines correspond to TMP second work moment values given by direct master equation calculations and the markers correspond to the ones given by the FEQJ simulations. The parameters are the same as in Fig. \ref{fig:pop}. Inset: The second work moment of the power operator approach given by the direct master equation calculations.} \label{fig:work2} \end{figure} \section{Summary and Conclusions} In this article, we have studied the compatibility of the FEQJ model and the corresponding master equation. We have theoretically shown that the two methods produce equivalent evolution for the total density matrix. We have additionally shown that both methods produce equivalent work moments when the work is defined using the two-point measurement protocol (TMP) without the interaction energy. However, the power operator definition of work can deviate from the TMP work values due to a different order of approximations. In the case of adiabatic driving or sinusoidal resonant driving, the power operator approach agrees with the TMP work values. To illustrate the results, we have numerically studied a qubit coupled to 10 two-level systems with an energy gap equivalent to the one of the qubit. We have shown that the FEQJ model and the master equation produce equivalent density matrix evolution and TMP work values within the numerical accuracy. We have also shown that with the parameters studied, the average work given by the power operator approach can differ from the TMP results by $10 \%$ due to a slightly off-resonant sinusoidal driving $\omega_d=1.0 \pm 0.1 \omega_0$. In the case of the second moment of work, the deviation is even larger. This highlights the importance of treating work consistently with the method that is used to describe the dynamics. In the case of FEQJ, TMP without the interaction energy appears as the natural choice because the model itself neglects the interaction energies. \section{Acknowledgements} We wish to thank Jukka Pekola, Mikko M\"ott\"onen, Juha Salmilehto, Shilpi Singh and Rebecca Schmidt for useful discussions. This work was supported in part by the V\"ais\"al\"a foundation and the Academy of Finland through its Centres of Excellence Programme (2015-2017) under project numbers 251748 and 284621. The numerical calculations were performed using computer resources of the Aalto University School of Science ``Science-IT" project.
\section{\label{intro}I. Introduction} The recent direct detection of gravitational waves (GW) by LIGO \cite{Abbott:2016blz} opens a new mode of physical exploration. Although the potential of GW detectors to study astrophysical objects has been deeply investigated \cite{1511.05994}, their potential for exploring Beyond-the-Standard-Model (BSM) physics is still in a relative infancy. Prime examples studied include the physics of inflation~\cite{Grishchuk:1974ny,Starobinsky:1979ty,Rubakov:1982df,Fabbri:1983us,Abbott:1984fp}, the presence of strongly first order thermal phase transitions in the early Universe, e.g.~non-SM electroweak (see~\cite{Witten:1984rs,Turner:1992tz,Kosowsky:1992rz,Kosowsky:1991ua,astro-ph/9211004,astro-ph/9310044} for early work and~\cite{Caprini:2015zlo} for a recent overview), and the possibility of probing the existence of axions~\cite{Arvanitaki:2016qwi}. We argue that GW detectors may provide a powerful tool to interrogate the nature of short-distance physics, particularly string theory, in a way unrelated to the process of inflation: specifically, GW signals from post-inflationary vacuum decay are a natural feature of the type IIB (and likely more general) string landscape. Our conclusions rely on the observation that flux compactifications in type IIB string theory can contain a large number of highly warped regions~\cite{Giddings:2001yu,Douglas:2003um,hep-th/0307049,manythroats1,manythroats2}, often referred to as throats, with physics related to that of Randall-Sundrum models~\cite{hep-ph/9905221,hep-th/9906064} (see Fig.~\ref{fig:cartoon}). Under rather general assumptions, later made more precise, a throat can present a metastable vacuum in which supersymmetry (SUSY) is locally broken, along with a true locally-SUSY-preserving vacuum \cite{Kachru:2002gs}, to which it eventually decays. Specifically, we explore the process of vacuum decay, taking place within a given throat, via the process of zero-temperature quantum tunnelling. We study the effect of the nucleation of bubbles of the true vacuum in the early Universe, and argue that resulting ultra-relativistic bubble wall collisions may lead to observable GW signals. The frequency of the GW produced will be different for different throats, since it depends sensitively on its details, most of all on the gravitational warp factor (i.e. red-shift), $w_{IR} \ll 1$, setting the relation between the IR energy scale of the tip of the throat and the string scale~$M_{s}$. Since a large number of throats with exponentially different warp factors can be present in the string landscape (see e.g.~\cite{Hebecker:2006bn}), GW signals with very different frequencies can be produced. Space-based experiments, such as BBO \cite{BBO1,BBO2}, eLISA \cite{eLISA}, or AEGIS \cite{AEGIS3}, and pulsar timing arrays like SKA \cite{SKA} or EPTA \cite{EPTA}, are well suited for detection of these \emph{soundscape} signals, both in terms of frequency range and sensitivity. Larger compactification volumes and smaller $w_{IR}$ both shift the frequency peak of the signal towards smaller values, making pulsar timing array detectors optimal for probing very large volume and/or very strongly warped scenarios, while in the higher frequency range where aLIGO \cite{aLIGO} operates, even the strongest GW signal is unlikely to be detectable by current technology. Another likely consequence of the ultra-relativistic bubble wall collisions is the production of primordial black holes (pBHs)~\cite{PBH1,PBH2,PBH3,PBH5,PBH6}. This pBH production process, and the fine details of the high-frequency portion of the GW spectrum itself, is sensitive to the peculiarities of the bubble wall and vacuum decay dynamics that apply in our case (the dynamics are different than those of both thermal phase transitions, and previous studies of inflation-terminating quantum tunnelling vacuum decay). A reliable calculation of the pBH mass distribution and of $\Omega_{\rm pBH} h^2$ requires dedicated numerical simulations, as does the GW spectrum in the frequency domain beyond the peak position. If the production of pBHs is both highly efficient, and has a mass distribution that extends above $\simeq 10^9 \ {\rm g}$, then the maximum amplitude of GWs observable today can be constrained. On the other hand, the possible production of pBHs in the mass regions where pBHs may still comprise a significant fraction of the dark matter (DM) density provides another motivation for detailed studies. We emphasise that the study we present here is just a first step towards understanding the rich physics of the string soundscape. \begin{figure} \includegraphics[scale=0.35]{fig1.pdf} \caption{\label{fig:cartoon} (a) Cartoon of a type IIB flux compactification featuring a large number of warped regions (throats) some of which will be of Klebanov-Strassler (KS) type \cite{Klebanov:2000hb}. (b) Close-up of a KS throat (topologically $\cong S^3 \times S^2 \times \mathbb{R}$) with 3-form RR and NSNS flux quanta on the $A$-cycle and on the $B$-cycle respectively. The fluxes lead to a tip warp factor $w_{IR}$. In the locally SUSY-breaking false vacuum anti-$D3$ branes are localized at the tip~\cite{Kachru:2002gs}.} \end{figure} \section{II. False Vacuum Decay} {\bf Outline of early Universe history -- } We assume that after inflation ends, the visible sector (i.e. the Standard Model (SM) plus any other states in significant thermal contact) gets reheated to some temperature $T_{rh}$. We conservatively take $T_{rh} \gtrsim 4 \ {\rm MeV}$ so that Big Bang nucleosynthesis (BBN) can proceed undisrupted. (This assumption may be relaxed within more general early Universe histories.) But other sectors, such as those living at the end of highly warped throats, may not be reheated to the same degree and, in general, one would expect many, though possibly not all, of those hidden sectors being left at temperatures $T \ll T_{rh}$. This is a natural assumption given that we do not observe a much larger DM-to-baryon ratio, nor a significant number of excess relativistic degrees of freedom, $\Delta N_{eff}$. Thus in the following we take, for simplicity, the throat sector under consideration to be at temperature $T_{th} = 0$. (Strictly, all we require is that $T_{th}$ is much smaller than all mass scales present in the problem, in which case a $T_{th} = 0$ treatment suffices. The case $T_{th}\neq 0$ may lead to a \emph{thermally assisted} quantum tunnelling decay, or a \emph{purely thermal transition} if $T_{th}$ is high enough, similar to the Randall-Sundrum case \cite{Creminelli:2001th,Hassanain:2007js,Konstandin:2010cd}. These possibilities are studied in upcoming work \cite{future1}.) This is a self-consistent assumption since the IR dynamics of a throat are known to be sufficiently (though not absolutely) sequestered from the dynamics of the rest of the compactification \cite{Halter:2009nb}. In this set-up, the throat sector remains in a metastable vacuum so long as the probability of nucleating a bubble of true vacuum in a Hubble volume in a Hubble time is much smaller than one, i.e.~$\Gamma / H(T)^4 \ll 1$, where $\Gamma$ is the decay rate per unit volume (independent of temperature since $T_{th} = 0$) and $H(T)$ is the Hubble rate, dependent on the \emph{visible} sector temperature $T$. Only when $\Gamma / H(T)^4 \approx 1$ does the decay occur. (We remark that as the decay takes place when $\Gamma / H(T)^4 \approx 1$, one does not need to worry about counting of negative fluctuation modes of the bounce solution \cite{Coleman:1987rm}, since in this regime it is proven that one and only one negative mode is present and therefore the Euclidean bounce solution is guaranteed to correctly compute the false vacuum decay~\cite{Lee:2014uza}. This feature is not assured in the much different parameter regime considered in \cite{Kachru:2002gs}, so it is not clear if in \cite{Kachru:2002gs} a \emph{physical} decay rate has been calculated or not.) Throughout, we will assume that the radiation energy density of the visible sector, $\rho_{rad}(T)$, dominates the false vacuum energy density of the throat \footnote{The case in which a phase of matter domination takes place either during of after the transition, but before the start of BBN, would yield different results to those presented in this letter. A period of matter domination is a well motivated possibility (see~\cite{Kane:2015jia} for a recent overview), and leads to interesting variant phenomenology, \cite{future1}.}. Defining \begin{equation} \alpha (T) \equiv \frac{\rho_{vac}}{\rho_{rad} (T)}~, \end{equation} we thus take $\alpha (T) \lesssim 1$ for all temperatures of interest. This ensures that the Universe is always radiation dominated (RD), so that a second inflationary phase never takes place and phenomenologically disastrous, large late time density perturbations do not occur \cite{Guth:1982pn, La:1989st}. Notice that since $\rho_{rad} (T) \sim T^4$, $\alpha (T)$ decreases as the Universe expands, so even if at the time of bubble wall collision $\alpha_c \equiv \alpha(T_c) \approx 1$ ($\alpha_c$ will set the strength of the GW signal), at the epoch of bubble nucleation $\alpha_n \equiv \alpha(T_n) < 1$. Both the nucleation temperature $T_n$ (set by $\Gamma$), and the bubble properties, depend on the microphysics of our specific type IIB model to which we now briefly turn. Readers primarily interested in the resulting GW phenomenology may jump ahead to the next sub-section. {\bf Metastable throats --} The authors (KPV) of \cite{Kachru:2002gs} considered the dynamics of $p$ anti-$D3$ branes ($\bar{D3}$) in a Klebanov-Strassler (KS) throat \cite{Klebanov:2000hb} (see Fig.~\ref{fig:cartoon}). In this conifold geometry (topologically $\cong S^3 \times S^2 \times \mathbb{R}$), $M$ units of RR 3-form flux pierce the $A$-cycle ($\cong S^3$ of the conifold), whereas $K$ units of NSNS 3-form flux pierce the dual $B$-cycle which extends in the non-compact directions in the local model (i.e.~into the bulk of the geometry when embedded into a compact manifold). These fluxes result in a tip warp factor $w_{IR} \sim \exp(-2\pi K/3M g_s)$ where $g_s$ is the string coupling~\cite{Giddings:2001yu}. Ignoring both back-reaction local to the throat, and back-reaction arising from other distant parts of the compactification (we later comment on these issues), in \cite{Kachru:2002gs} it was argued that if the ratio $p/M$ was smaller than a certain critical value $r_c = (\pi-3+b_0^4)/(4 \pi) \approx 0.08$ then the system features a metastable vacuum in which SUSY is locally broken by the $\bar{D3}$-branes. Decay to the true SUSY-preserving vacuum, with no $\bar{D3}$-branes, $(M-p)$ $D3$-branes, and $(K-1)$ NSNS flux quanta could only take place quantum mechanically, or through a thermal transition. The fluxes are constrained by a `tadpole condition', a generalisation of Gauss' law that relates, in a 6-dimensional Calabi-Yau (CY) manifold, the tadpole $L$ (depending on the topology of the CY, and other types of $D$-branes and $O$-planes), the number of $D3$ branes and the RR and NSNS background fluxes: $L = N_{D3} - N_{{\bar{D3}}} + h_i \Sigma_{ij} f_j$, where $\Sigma$ is the symplectic matrix. The individual fluxes, $\{ h_i, f_i \}$, and associated flux quanta $\{ K^{i}, M^{i} \}$ that can be chosen depends on the number of moduli in the CY. Typical known CYs feature up to thousands of moduli (see for instance~\cite{Kreuzer:2000xy}), and lead to a tadpole $L$ of similar sizes. Thus individual flux choices such as $K, M$ are constrained to be at most of the same order as $L$. However this constraint leaves still an enormous number of possible flux configurations, and motivates our choice of `typical' fluxes $K,M\sim{\mathcal O}(10^2)$. In addition, the string coupling, $g_s$, is stabilised supersymmetrically by a function of these flux choices. To study a type~IIB effective action (as we do here) requires a string coupling $g_s\ll 1$. The correct SM gauge couplings can easily be accommodated with $g_s\sim\mathcal{O}(10^{-2})$~\cite{Cicoli:2013mpa}. In the metastable vacuum, the system is not well described in terms of individual $\bar{D3}$ branes, but rather as an NS5 brane. This NS5 brane (a 5-dimensional object) has 3 non-compact spatial dimensions, the remaining 2 being wrapped around an $S^2$ contained in the $S^3$ of the conifold geometry. The position of this $S^2$ within the $S^3$ is described by an angular variable $\psi$. The state of the system can then be encapsulated by the dynamics of a scalar field $\psi$, initially in a false vacuum $\psi_{fv} \in [ 0, \pi/4 )$, and whose value in the true vacuum is $\psi_{tv} = \pi$ (where the radius of the NS5 brane is zero). The Lagrangian describing this system (setting $M_{s} \equiv 1/\sqrt{\alpha'}=1$ and in red-shifted units, so hiding the warp factor $w_{IR}$) is \cite{Kachru:2002gs} \begin{equation}\nonumber \mathcal{L} \approx \frac{\mu_3 M}{g_s} \left( - V_2(\psi) \sqrt{1 - \partial_\mu \psi \partial^\mu \psi} + \frac{1}{2 \pi} (2 \psi - \sin 2\psi) \right), \label{eq:lagrangian} \end{equation} \begin{equation} V_2(\psi) = \frac{1}{\pi} \sqrt{ b_0^4 \sin^4\psi + (\pi \frac{p}{M} - \psi + \frac{1}{2} \sin 2 \psi)^2 }~, \end{equation} with $\mu_3 = (2 \pi)^{-3}$ and $b_0^2 \approx 0.93266$. When $p/M< r_c$ the potential of this system has a local minimum below $\psi=\pi/4$, while for $p/M \geq r_c$ there exists only the minimum at $\psi_{tv}=\pi$. (We refer the reader to \cite{Kachru:2002gs} for further details.) Note that the local non-compact KPV set-up, used in this letter, suffers from back-reaction of $\bar{D3}$-branes on the geometry. This issue has led to a long-standing debate~(see \cite{hep-th/0402088,0910.4581,0912.3519,1202.1132,1410.7776,1410.8476,1411.1121,1412.5702,1502.01234, 1502.07627,1507.07556,Polchinski:2015bea} for a selection of issues), but as of now there is no definitive full string theory calculation on this issue. We work under the assumption that the EFT point of view in~\cite{Polchinski:2015bea} is appropriate, and hence that the local back-reaction will not change the \emph{qualitative} features of this system but only small quantitative changes will occur (likely resulting in a somewhat smaller value of $r_c$). {\bf Bubble nucleation --} KPV~\cite{Kachru:2002gs}, considered the case $p/M \ll r_c$ where the false vacuum decay rate (\emph{if} a decay) leads to a lifetime $\tau\ggg 10^{10} {\rm yrs}$. We instead focus on the case $p/M \lesssim r_c$, close to the regime of classical instability. We thus introduce $\delta$ defined as \begin{equation} \frac{p}{M} \equiv r_c (1 - \delta) \qquad \qquad 0 < \delta \ll 1~. \end{equation} We stress that our consideration of one or more throats close to classical instability is not unreasonable: given the large number of throats typically present in the type~IIB string landscape, \emph{some} of them can find themselves in this near-to-critical situation. (We return to this below.) Following Coleman \cite{Coleman:1977py}, the decay rate per unit volume can be written as $\Gamma \sim m^4 e^{-B}$, where $B$ is defined as $B = S[\psi_B] - S[\psi_{fv}]$, where $\psi_B$ is the field configuration that extremises the Euclidean action (the \emph{bounce} solution), and $\psi_{fv}$ refers to the static false vacuum configuration. The pre-factor results from the (square-root) determinant of the quadratic fluctuation operator around the bounce, the associated mass scale $m$ being sufficiently well approximated by the curvature around the barrier. We find (restoring powers of $M_s$ and $w_{IR}$) \begin{equation} \left( \frac{m}{M_s} \right)^4 \approx \frac{2^{11} \pi b_0^8 r_c}{(1 + b_0^4)^5} w_{IR}^4 \delta \approx 17 w_{IR}^4 \delta~. \end{equation} Moreover, since the metastable vacuum is close to classical instability, the vacuum energy density, $\rho_{vac}$, is much larger than the barrier height, and thus one should expect the bubbles at nucleation to show a thick-wall profile (rather than a thin-wall profile as considered in \cite{Kachru:2002gs} for the case $p/M \approx 0$). In this regime, $\psi_B(\tilde R)$ ($\tilde R \equiv R \cdot M_s w_{IR}$, with $R$ being the SO(4)-invariant Euclidean radius) will change slowly with $\tilde R$, an observation that allows the bounce equation to be simplified as \begin{equation} \frac{d^2 \psi}{d^2 \tilde R} + \frac{3}{\tilde R} \frac{d \psi}{d \tilde R} \approx \frac{\pi V_2(\psi)^\prime - 1 + \cos(2 \psi)}{\pi V_2(\psi)} ~, \label{eq:bounce} \end{equation} which can be solved numerically using the undershoot/overshoot method (we utilise \cite{Wainwright:2011kj}). (In Fig.~\ref{fig:bubbleprofile} we show the critical bubble profile for two different values of~$\delta$. As expected, the bubbles show a thick-wall profile at the time of nucleation, and the value of $\psi$ at the centre of the bubble is initially well below the true vacuum value $\psi_{tv} = \pi$.) Once the bounce solution $\psi_B({\tilde R})$ has been obtained, numerical evaluation of the bounce action $B$ becomes straightforward. We obtain \begin{equation} B = 2 \pi^2 \mu_3 b_0^4 g_s M^3 f(\delta) \approx 36 \ \frac{g_s}{0.03} \left( \frac{M}{10^2} \right)^3 \frac{f(\delta)}{f(10^{-3})} \end{equation} where $f(\delta) \approx 0.38 \ \delta^{1/2} + 6.0 \ \delta$ (for $\delta \approx 10^{-4}$ to $10^{-2}$). \begin{figure} \includegraphics[scale=0.53]{bubbleprofile.pdf} \caption{\label{fig:bubbleprofile} Profile of a critical bubble at nucleation as a function of $\tilde R \equiv R \cdot M_s w_{IR}$, for two different values of $\delta$. In both cases, a thick-wall profile occurs. The dashed line is $\psi = \pi / 4$, the asymptotic value, as $\delta \rightarrow 0$, of the field in the false vacuum. } \end{figure} Some comments are in order. The reader might be worried that gravitational effects may be important when studying the decay process \cite{Coleman:1980aw}. This is not the case, as in the region of parameter space we consider the radius of the bubbles at the time of nucleation (the critical radius $R_c$) always satisfies $R_c \ll H(T_n)^{-1}$. Secondly, one might question our entitlement to vary $\delta$ essentially continuously: since $p$ refers to the number of $\bar{D3}$ branes at the tip of the throat, and $M$ to the units of RR flux, one would think that only discrete values of their ratio, and thus discrete values of $\delta$, can be considered. However, small, but important corrections appear when embedding the local KPV setup we utilise into a complete, global compactification manifold depending on the suppression of couplings between local and global modes (sequestering)~\cite{Kachru:2003sx,Baumann:2006th}. For us, this dependence of local parameters (e.g.~$w_{IR}$, and especially $\delta$) on bulk properties, including the enormously large number of distant flux values $\{K^i, M^i\}$, effectively produces a very finely grained discretum \cite{ArkaniHamed:2005yv}, justifying our choice of varying an \emph{apriori} discrete parameter $\delta$ continuously. \section{III. Gravitational Waves} {\bf Expansion of bubbles --} At nucleation, the bubble walls are spherical and at rest \footnote{Both these statements are approximations up to corrections of order $1/\sqrt{B}$ \cite{Garriga:2013pga,Bond:2015zfa}, which is an $SO(2,1)$ symmetry breaking effect. As a result, a full treatment of the high-frequency part of the GW spectrum, and the details of pBH production require inclusion of these effects.}. After a time $\sim R_c$ they are expanding with relativistic velocities and, because of the absence of a thermal plasma with which they meaningfully interact, they continue to accelerate to ultra-relativistic velocities. Since we consider a zero-temperature tunnelling process, production of gravitational radiation from the decay arises solely from collision of bubbles: effects like sound-waves or turbulence in the thermal plasma, which modify the GW spectrum in the case of thermal transitions \cite{Caprini:2015zlo}, are, to a good approximation, not present. Moreover, unlike in most thermal phase transitions where the temperatures at bubble nucleation and bubble collision are very close to each other, in our situation this is not the case. Bubbles of critical size are nucleated at temperature $T_n$ (or time $t_n$), when $\Gamma/H(t_n)^4 \approx 1$. Since the radius of this critical bubbles is $R_c \ll H(t_n)^{-1}$, we can treat them as point-like, and therefore the average separation between nearest bubbles is $d(t_n) \sim H(t_n)^{-1}$. so after a time $\Delta t \gg R_c$ their radius is $R(t) \sim \Delta t$. On the other hand, the centre of two bubbles has expanded further apart in the way that corresponds to a RD Universe $d(t_n + \Delta t) \sim H(t_n)^{-1} a(t_n + \Delta t)/a(t_n) = 2 \sqrt{t_n (t_n + \Delta t)}$ and so the bubble walls finally collide at a time $\Delta t \approx 1.6 t_n$ after nucleation. This translates into a temperature at collision, $T_c = T_n \sqrt{t_n / t_c} \approx T_n/\sqrt{2.6} \approx 0.62 \ T_n$. This distinction between $T_n$ and $T_c$ becomes important for the GW spectrum, since it is $T_c$ that will set the frequency peak of the corresponding GW signal. Notice that $T_c \approx 0.62 T_n$ leads to $\alpha_n \approx \alpha_c (T_c/T_n)^4 \approx 0.15 \alpha_c < \alpha_c$. \begin{figure} \includegraphics[scale=0.53]{freqVSwarpfactor.pdf} \caption{\label{fig:freqvsepsilon} Approximate value of the peak frequency of the GW signal as a function of the warp factor, $w_{IR}$, for 3 different values of the volume of the 6-dimensional manifold. For illustration, we take $M=10^2$ and $g_s = 0.03$. The shaded pink region corresponds to $T_c < 4 \ {\rm MeV}$ (inaccessible in the case of a standard cosmological history if BBN is to proceed undisrupted if $\alpha_c\sim 1$). Lines of $\delta =10^{-3}$ and $10^{-2}$ are also shown.} \end{figure} {\bf Collision of bubbles --} Emission of GWs occurs (predominantly) when the bubbles collide. Assuming a RD Universe during and after the decay, we can estimate the present frequency peak of the GW signal as \cite{Leitao:2015ola,astro-ph/9310044} \begin{equation} f_0 \sim 10^{-5} \ {\rm Hz} \ \left( \frac{g_* (T_c)}{100} \right)^{1/6} \left( \frac{T_c}{100 \ {\rm GeV}} \right) \frac{1}{t_* H(T_c)}~, \label{eq:freqpeak} \end{equation} where $t_*$ refers to the duration of the transition. Given that $\Delta t \sim H(T_n)^{-1}$, we expect $t_* H(T_c) = \mathcal{O}(1)$, and so we take $t_* H(T_c) \approx 1$ for illustration in Fig.~\ref{fig:freqvsepsilon} and Fig.~\ref{fig:GWsignal}. (Accurate determination of $t_*$ requires numerical simulations. Note that, although at $T_c$ the dominant collision is between ultra-relativistic bubbles of size $\sim H(t_n)$, there are also ${\mathcal O}(10-100)$ small, semi-relativistic, thick-walled, bubbles with which each large bubble collides.) Fig.~\ref{fig:freqvsepsilon} shows the frequency of the GW signal arising from bubble wall collisions, as a function of the tip warp factor $w_{IR}$. The frequency of the GW signal can span virtually the whole range of parameter space that will be explored by current and future GW detectors, including the high-frequency range, $\gtrsim 30~{\rm kHz}$, where radically new technologies are necessary (but also where conventional astrophysical foregrounds are absent). Notice that large values of the volume $\mathcal{V}$ (in units of $(2 \pi l_s)^6$, where $l_s \equiv \sqrt{\alpha^\prime}$) shift the peak signal frequency towards lower values. As indicated in the figure, the value of $\delta$ in all cases of interest lies between $10^{-3}$ and $10^{-2}$, well within the range of validity of our approximation. Given the unusual nature of the kinetic term of the scalar field $\psi$ (Eq.~(\ref{eq:lagrangian})), a precise expression for the energy density in gravitational radiation observed today, as a function of frequency, would need a dedicated numerical simulation. However, we believe the \emph{peak} amplitude is well approximated by the usual expression for bubble wall collisions in the case of ultra-relativistic bubbles \cite{0806.1828,Leitao:2015ola}: \begin{equation} \Omega_{GW} h^2 (f_0) \sim 10^{-6} \left( \frac{\alpha_c}{1 + \alpha_c} \right)^2 \left( \frac{100}{g_*} \right)^{1/3} \left( t_* H(T_c) \right)^2~. \label{eq:amplitudepeak} \end{equation} In Fig.~\ref{fig:GWsignal}, we show an approximation to the expected signals for three different values of the frequency peak. Although the peak position should be well approximated by Eq.~(\ref{eq:freqpeak}), the profile of the signal as a function of frequency beyond the peak requires dedicated numerical simulation. In the present work, we have used the usual high-$f$ dependence purely for illustration (see \cite{Caprini:2015zlo} for details) . \begin{figure} \includegraphics[scale=0.53]{GWsignal.pdf} \caption{\label{fig:GWsignal} Approximate profile of the GW signal from bubble collisions, together with the sensitivity curves of different experiments. For illustration, we choose 3 different frequency peaks: $f_0 = 10^{-9}, 10^{-3}$ and $10^{3}$ Hz, all within the reasonable range of frequencies expected (see Fig.~\ref{fig:freqvsepsilon}), and we set $\alpha_c = 1$. Dashed lines show the peak amplitude for other values of $\alpha_c$.} \end{figure} \section{IV. Fate of the vacuum energy} Although enough to produce a potentially observable GW signal, the fraction of the vacuum energy density that converts into gravitational radiation is small, Eq.~(\ref{eq:amplitudepeak}). The remaining $\mathcal{O}(1)$ fraction of the false vacuum energy density must therefore have a different fate. In the following, we outline some of the possibilities. We stress that this is a very model dependent issue, and unambiguous statements can only be made on a case-by-case basis. {\bf Dark radiation -- } It is possible that some degrees of freedom in the throat will remain massless or very light, even after SUSY breaking. If some fraction of the vacuum energy density was transferred into these massless states (either directly or indirectly after the decay of some other massive throat states), they will behave as dark radiation (DR), and constraints from bounds on the number of effective neutrino species, $\Delta N_{eff}$, will apply. Since initially $T_{th}\approx 0$, we find that the contribution to $\Delta N_{eff}$ from massless throat states is \footnote{Notice that $\Delta N_{eff}^{(th)}$ does not depend on the number of massless degrees of freedom in the throat, unlike what would happen if the SM and the throat sector had been in thermal equilibrium.} \begin{equation} \Delta N_{eff}^{(th)} \approx 0.29 \left( \frac{\eta_{DR}}{1} \right) \left( \frac{\alpha_c}{0.1} \right) \left( \frac{100}{g_*(T_c)} \right)^{1/3}~, \end{equation} where $\eta_{DR}$ is the fraction of vacuum energy density that gets transferred into massless states in the throat. The contribution to $\Delta N_{eff}$ from the SM sector is $\Delta N_{eff}^{(SM)} \approx 0.046$, and Planck has measured $\Delta N_{eff} \approx 0.15 \pm 0.23$ \cite{Ade:2015xua}. Thus, even for $\eta_{DR} \approx 1$ and $\alpha_c \approx 0.1$, the prediction for $\Delta N_{eff}^{(th)}$ is small enough to be compatible with data (and an observable GW signal may still be produced, as shown in Fig.~\ref{fig:GWsignal}). On the other hand, $\alpha_c \approx 1$ would yield too large a value of $\Delta N_{eff}^{(th)}$. {\bf Black hole production -- } The large concentration of energy that takes place when bubbles collide likely leads to the formation of pBHs \cite{PBH1,PBH2,PBH3,PBH5,PBH6}. Thus, the stringent constraints from energy injection into the thermal plasma due to evaporating pBHs can apply \cite{Carr:2009jm}. Depending on the fraction of energy transferred into pBHs of a certain mass $m_{BH}$, certain range of collision temperatures (and therefore of GW frequencies) could be ruled out, specially for masses $10^9 \ {\rm g} \lesssim m_{BH} \lesssim 10^{18} \ {\rm g}$, where the constraints are strongest. Determining the extent to which pBH production affects our conclusions would require a detailed numerical simulation, taking into account the details of the bubble wall profiles at collision. We note that the production of pBHs with a mass $10^{17} - 10^{18} \ {\rm g}$ accounting for the DM is a possibility, although its feasibility depends of the fraction of energy density transferred into pBHs. Formation of pBHs with masses $\sim 30 M_\odot$ (the other possibly open DM window \cite{Bird:2016dcv}) does not seem possible if the Universe remains RD during and after the transition, but less standard cosmological scenarios may allow for this possibility. We return to this in future work \cite{future1}. {\bf Non-pBH dark matter -- } If sufficiently stable states exist in the throat sector, and suitable fraction of $\rho_{vac}$ is transferred to these, they could account for the DM in the Universe, or a component of it. Although DM candidates arising from warped throats have been studied \cite{Chen:2006ni,Harling:2008px,Frey:2009qb}, and they are indeed a very natural possibility, whether a given throat can accommodate a DM candidate depends sensitively on the details of the sector living on the throat, as well as on other aspects such as how SUSY is broken in the rest of the manifold. Due to how model dependent this issue is, we cannot be more concrete regarding the possibility of successful generation of DM in the scenarios we consider, or regarding potential constraints from DM overproduction. However, we note that this is an interesting possibility for DM model building that would lead to a DM candidate with features linked to those of the GW signal discussed in Section~III~\cite{future1}.\\ {\bf Final word -- } GW detection experiments will help shape the future of physics in the coming century. We believe that they provide an exciting opportunity for the investigation of fundamental physics linked to the highest energy scales.\\ {\bf Acknowledgments --} We would like to thank Joe Conlon and John Wheater for useful discussions. IGG is financially supported by the STFC/EPSRC and a Scatcherd European Scholarship from the University of Oxford. SK is supported by the European Research Council under starting grant `Supersymmetry Breaking in String Theory' (307605). JMR thanks Sidney Coleman for his extraordinary guidance and friendship.
\section{Introduction} \noindent Throughout, all rings considered are commutative with identity. Let $R$ be a ring and $I$ a proper ideal of $R$. An ideal $J\subseteq I$ is a reduction of $I$ if $JI^{n}=I^{n+1}$ for some positive integer $n$. The notion of reduction was introduced by Northcott and Rees to contribute to the analytic theory of ideals in Noetherian local rings via minimal reductions. An ideal which has no reduction other than itself is called a basic ideal; and a ring has the finite basic ideal property (resp., basic ideal property) if every finitely generated ideal (resp., every ideal) of $R$ is basic. In \cite{H1,H2}, Hays investigated reductions of ideals in Noetherian rings and Pr\"ufer domains. He provided several conditions for an ideal to be basic. His two main results asserted that a domain $R$ is Pr\"ufer (resp., one-dimensional Pr\"ufer) if and only if $R$ has the finite basic ideal property (resp., basic ideal property). Let $R$ be a domain and $I$ a nonzero fractional ideal of $R$. The $v$-, $t$-, and $w$-closures of $I$ are defined, respectively, by $I_v:=(I^{-1})^{-1}$, $I_t:=\cup J_v$, where $J$ ranges over the set of finitely generated subideals of $I$, and $I_w=\cap IR_M$ where $M$ ranges over the set of maximal $t$-ideals of $R$. Now, let $\star$ be a star operation on $R$ and $I$ a nonzero ideal of $R$. An ideal $J\subseteq I$ is a $\star$-reduction of $I$ if $(JI^{n})^{\star}=(I^{n+1})^{\star}$ for some positive integer $n$. In \cite{HKM}, the authors extended Hays' aforementioned results to P$v$MDs; namely, a domain has the finite $w$-basic ideal property (resp., $w$-basic ideal property) if and only if it is a P$v$MD (resp., P$v$MD of $t$-dimension one). They also investigated relations among the classes of domains subject to various $\star$-basic properties. In this vein, the problem of whether the finite $t$- and $v$-basic ideal properties are distinct was left open. In \cite{KK}, the authors investigated the $t$-reductions and $t$-integral closure of ideals establishing satisfactory $t$-analogues of well-known results, in the literature, on the integral closure of ideals and its correlation with reductions. One of their main result \cite[Theorem 3.5]{KK} asserts that the $t$-closure and $t$-integral closure of an ideal coincide in the class of integrally closed domains. This paper investigates $t$-reductions of ideals in pullback constructions of type $\square$ (defined in Section 4). Section 2 examines the correlation between the notions of reduction and $t$-reduction in pseudo-valuation domains. Section 3 solves an open problem raised in \cite{HKM} on whether the finite $t$-basic and $v$-basic ideal properties are distinct. We prove that these two notions coincide in any arbitrary domain. Section 4 features the main result, which establishes the transfer of the finite $t$-basic (equiv., $v$-basic) ideal property to pullbacks in line with Fontana-Gabelli's result on P$v$MDs \cite[Theorem 4.1]{FG} and Gabelli-Houston's result on $v$-domains \cite[Theorem 4.15]{GH}. This allows us to enrich the literature with new families of examples, which put the class of domains subject to the finite $t$-basic ideal property strictly between the two classes of $v$-domains and integrally closed domains. For a full treatment of the topic of reduction theory, we refer the reader to \cite{HS2}. For more details about star operations, we refer the reader to \cite{FHP1} and \cite[Sections 32 and 34]{G}. \section{$t$-Reductions in pseudo-valuation domains}\label{r} \noindent We first recall the definitions of $t$-reduction and related concepts such as the trivial $t$-reduction and (finite) $t$-basic ideal property. \begin{definition}[\cite{HKM,KK}] Let $R$ be a domain and $I$ a nonzero ideal of $R$. \begin{xenumerate} \item An ideal $J\subseteq I$ is a \emph{$t$-reduction} of $I$ if $(JI^{n})_{t}=(I^{n+1})_{t}$ for some integer $n\geq0$. The ideal $J$ is a \emph{trivial $t$-reduction} of $I$ if $J_{t}=I_{t}$. \item $I$ is \emph{$t$-basic} if it has no $t$-reduction other than the trivial $t$-reductions. \item $R$ has the (finite) $t$-basic ideal property if every nonzero (finitely generated) ideal of $R$ is $t$-basic. \end{xenumerate} \end{definition} For any star operation $\star$, the $\star$-reduction and related concepts are defined likewise. This is not to be confused with Epstein's $c$-reduction \cite{Ep1,Ep2,Ep3}, which generalizes the original notion of reduction in a different way and was studied in different settings. Namely, let $c$ be a closure operation. An ideal $J\subseteq I$ is a \emph{$c$-reduction of} $I$ if $J^{c}=I^{c}$. Thus, for $c:=\star$, Epstein's $c$-reduction coincides with the trivial $\star$-reduction. In the sequel, we will be using the following obvious facts, for nonzero ideals $J\subseteq I$, without explicit mention: $$J\ \text{is a $t$-reduction of}\ I \Leftrightarrow J\ \text{is a $t$-reduction of}\ I_{t} \Leftrightarrow J_{t}\ \text{is a $t$-reduction of}\ I_{t}.$$ Recall that $R$ is a pseudo-valuation domain if $R$ is local and shares its maximal ideal with a valuation overring $V$ or, equivalently, if $R$ is a pullback issued from the following diagram \[\begin{array}{ccl} R=\varphi^{-1}(k) & \longrightarrow & k\\ \downarrow & & \downarrow\\ V & \stackrel{\varphi}\longrightarrow & K:=V/M \end{array}\] where $(V,M)$ is a valuation domain (with residue field $K$) and $k$ is a subfield of $K$. For the sake of simplicity, we will say that $R$ is a pseudo-valuation domain issued from $(V,M,k)$. For more details on pseudo-valuation domains, see \cite{HH,HH2} and also \cite{BH,BHLP,CD,D,Park}. Note that a reduction is necessarily a $t$-reduction; and the converse is not true in general. The next result investigates necessary and sufficient conditions for the notions of reduction and $t$-reduction to coincide in pseudo-valuation domains. This result can be used readily to provide examples discriminating between the two notions of reduction and $t$-reduction. \begin{thm}\label{r:pvd1} Let $R$ be a pseudo-valuation domain issued from $(V,M,k)$ and set $K:=V/M$. Then, the following statements are equivalent: \begin{enumerate}[label=\rm(\roman*)] \item For every nonzero ideals $J\subseteq I$, $J$ is a $t$-reduction of $I$ $\Longleftrightarrow$ $J$ is a reduction of $I$. \item For each $k$-vector subspace $W$ of $K$ containing $k$, $W^{n}$ is a field for some positive integer $n$. \end{enumerate} \end{thm} \begin{proof} $(i)\Rightarrow(ii)$ Let $W$ be a $k$-vector subspace of $K$ with $k\subsetneqq W\subsetneqq K$. Let $0\neq a\in M$ and consider the ideals of $R$ $$J:=aR\subseteq I:=a\varphi^{-1}(W).$$ Let $r\geq 1$. Then, the fact that $k\subsetneqq W$ yields $$(R:I^{r}) = a^{-r}\varphi^{-1}(k:W^{r})=a^{-r}M$$ and then $$(I^{r})_{v}=a^{r}M^{-1}=a^{r}V.$$ By \cite[Proposition 4.3]{HZ}, the $t$- and $v$- operations coincide in $R$. Hence, we have $$(JI)_{t}=(aI)_{t}=aI_{t}=aI_{v}=a^{2}V=(I^{2})_{v}=(I^{2})_{t}$$ and so $J$ is a $t$-reduction of $I$. By (i), $J$ must be a reduction of $I$ and so $$a^{n+1}\varphi^{-1}(W^{n})=JI^{n}=I^{n+1}=a^{n+1}\varphi^{-1}(W^{n+1})$$ for some positive integer $n$. It follows that $\varphi^{-1}(W^{n})=\varphi^{-1}(W^{n+1})$; i.e., $W^{n}=W^{n+1}$. Therefore $W^{n}=(W^{n})^{2}$ and thus $W^{n}$ is a ring. In particular, let $0\not=\lambda\in K$ and let $W_{o}:=k+\lambda k$. Then, there is some positive integer $m$ such that $$\begin{array}{rcl} k+\lambda k+\dots+\lambda^{m}k &= &W_{o}^{m}\\ &= &W_{o}^{m+1}\\ &= &k+\lambda k+\dots+\lambda^{m+1}k. \end{array}$$ So, $\lambda^{m+1}\in k+\lambda k+\dots+\lambda^{m}k$. Therefore $\lambda$ is algebraic over $k$ and thus $K$ is algebraic over $k$. Consequently, $W^{n}$ is a field, as desired. $(ii)\Rightarrow(i)$ Let $J\subseteq I$ be a $t$-reduction of $I$; i.e., $(JI^{n})_{t}=(I^{n+1})_{t}$ for some positive integer $n$. If $I$ is an ideal of $V$, then both $JI^{n}$ and $I^{n+1}$ are ideals of $V$ so that $JI^{n}$ and $I^{n+1}$ are divisorial ideals of $R$ by \cite[Theorem 2.13]{HH}. Therefore, we obtain $$JI^{n} = (JI^{n})_{v} =(JI^{n})_{t} = (I^{n+1})_{t} = (I^{n+1})_{v} = I^{n+1}.$$ That is, $J$ is a reduction of $I$. Next, assume that $I$ is not an ideal of $V$. Then, by \cite[Theorem 2.1(n)]{BG}, $I=a\varphi^{-1}(W)$ for some nonzero $a\in M$ and some $k$-vector space $W$ with $k\subseteq W\subset K$. Assume that $k = W$; i.e., $I=aR$. Then $J_{t}=aR$. Now, if $J\subsetneqq aR$, then $a^{-1}J\subsetneqq R$, hence $a^{-1}J\subseteq M$, whence $J\subseteq aM$. Since $M$ is a divisorial ideal of $R$ \cite[Corollary 5]{HKLM}, we obtain $$aR=J_{t}\subseteq (aM)_{t}=aM_{t}=aM$$ which is a contradiction. So, necessarily, $J=I$. Next, assume $k\subsetneqq W$. Suppose $J$ is an ideal of $V$. Then $JI^{n}$ would be an ideal of $V$ and hence a divisorial ideal of $R$, yielding $$a^{n}J=JI^{n}=(JI^{n})_{v}=(JI^{n})_{t}=(I^{n+1})_{t}=(I^{n+1})_{v}=a^{n+1}V,$$ where the last equality is already handled in (i) $\Rightarrow$ (ii). It follows that $$J=aV=IV\supseteq I\supseteq J.$$ That is, $J=I$ is an ideal of $V$, absurd. Hence, $J$ is not an ideal of $V$. So, since $J\subseteq I$, we may assume that $J=a\varphi^{-1}(F)$, where $F$ is a $k$-vector subspace of $W$. Now by hypothesis, $W^{s}=W^{s+1}$ is a field for some $s\geq 1$. It follows that $$FW^{s}=W^{s+1}$$ yielding $$JI^{s}=a^{s+1}\varphi^{-1}(FW^{s})=a^{s+1}\varphi^{-1}(W^{s+1})=I^{s+1}.$$ Hence $J$ is a reduction of $I$, completing the proof of the theorem. \end{proof} Note that the condition (ii) in the above result forces $K$ to be algebraic over $k$. In this vein, this fact can be used readily to provide examples of domains where the two notions of reduction and $t$-reduction are distinct. \begin{example} Let $R$ be a pseudo-valuation domain issued from $(V,M,k)$ and set $K:=V/M$. \begin{xenumerate} \item Assume that $K$ is a transcendental extension of $k$. Then, the notions of reduction and $t$-reduction are distinct in $R$. For instance, pick a transcendental element $\lambda\in K$ over $k$ and let $W:=k+k\lambda$, $I:=a\phi^{-1}(W)$ and $J=:aR$. Then, $J$ is a proper $t$-reduction of $I$, but $I$ is basic in $R$, as seen the proof of (i) $\Rightarrow$ (ii) of the above theorem. \item Assume that $[K:k]$ is finite. Then for every $k$-submodule $W$ of $K$ with $k\subseteq W\subseteq K$, some power of $W$ is a field, and hence the notions of reduction and $t$-reduction coincide in $R$. \end{xenumerate} \end{example} Given nonzero ideals $J\subseteq I$, if $J_{t}$ is a reduction of $I_{t}$, then $J$ is a $t$-reduction of $I$. The converse is not true in general as shown by \cite[Example 2.2]{KK} which consists of a domain containing two $t$-ideals $J\subsetneqq I$ such that $J$ is a $t$-reduction but not a reduction of $I$. The next result provides a class of (integrally closed) pullbacks where the two assumptions are always equivalent. \begin{proposition}\label{r:pvd2} Let $R$ be a pseudo-valuation domain and let $J\subseteq I$ be nonzero ideals of $R$. Then, $J$ is a $t$-reduction of $I$ if and only if $J_{t}$ is a reduction of $I_{t}$. \end{proposition} \begin{proof} Sufficiency is trivial. For the necessity, assume $R$ is issued from $(V,M,k)$ and, without loss of generality, $R\subsetneqq V$. Next, let $J$ be a $t$-reduction of $I$. Then, $J_{t}$ is a $t$-reduction of $I_{t}$ and hence we may assume that $J$ and $I$ are both $t$-ideals. So $(JI^{n})_{t} = (I^{n+1})_{t}$, for some integer $n\geq1$. If $I$ is an ideal of $V$, as in the proof of Theorem~\ref{r:pvd1} ((ii)$\Rightarrow$(i)), we get $JI^{n}=(JI^{n})_{t}=(I^{n+1})_{t}=I^{n+1}$; that is, $J$ is a reduction of $I$. Next, suppose that $I$ is not an ideal of $V$. By \cite[Theorem 2.1(n)]{BG}, $I=a\varphi^{-1}(W)$ for some nonzero $a\in M$ and some $k$-vector space $W$ with $k\subseteq W\subset K:=V/M$. We claim that $k= W$. Otherwise, we would get, via \cite[Proposition 4.3]{HZ}, that $I=I_{t}=I_{v}= aV$, where the last equality is already handled in the proof of Theorem~\ref{r:pvd1} ((i)$\Rightarrow$(ii)). It follows that $I$ is an ideal of $V$, the desired contradiction. So, necessarily, $k=W$ and then $I=aR$. By \cite[Lemma 1.2]{HKM}, $I$ is $t$-basic; that is, $J=I$, completing the proof. \end{proof} The class of Pr\"ufer domains is, so far, the only known class of domains where these two notions of reduction and $t$-reduction coincide. We close this section with the next result, which features necessary conditions for such a coincidence. For this purpose, recall that a domain where the trivial and $w$-operations are the same is said to be a DW-domain \cite{GP,HZ2,Mi}. Common examples of DW-domains are pseudo-valuation domains, Pr\"ufer domains, and quasi-Pr\"ufer domains (i.e., domains with Pr\"ufer integral closure) \cite[Page 190]{FP}. \begin{proposition}\label{r:coincide} Let $R$ be a domain where the notions of reduction and $t$-reduction coincide for all ideals of $R$. Then: \begin{enumerate} \item Every nonzero prime ideal of $R$ is a $t$-ideal. In particular, $R$ is a DW-domain. \item $R$ is integrally closed if and only if $R$ has the finite $t$-basic ideal property. \item $R$ is a P$v$MD if and only if $R$ is a Pr\"ufer domain. \end{enumerate} \end{proposition} \begin{proof} (1) Let $P$ be a nonzero prime ideal of $R$. Clearly, $P$ is a $t$-reduction of $P_{t}$. By hypothesis, $P$ is then a reduction of $P_{t}$. But every prime ideal is a $C$-ideal (i.e., it is not a proper reduction of any larger ideal) \cite[Page 58]{H1}. It follows that $P = P_{t}$, as desired. In particular, every maximal ideal of $R$ is a $t$-ideal and, hence, $R$ is a DW-domain by \cite[Proposition 2.2]{Mi}. (2) Assume that $R$ is integrally closed and let $I$ be a finitely generated ideal of $R$ and $J$ a $t$-reduction of $I$. By hypothesis, $J$ is a reduction of $I$. So, by a combination of \cite[Corollary 1.2.5]{HS2} and \cite[Proposition 2.2(iii)]{Mi2}, we get $I \subseteq \overline{J} \subseteq J_{t}$, where $\overline{J}$ denotes the integral closure of $J$. It follows that $J_{t} = I_{t}$; i.e., $I$ is $t$-basic, as desired. The converse is true for any arbitrary domain $R$ by \cite[Lemma 1.3]{HKM}. (3) Assume $R$ is a P$v$MD. By hypothesis, the notions of reduction and $t$-reduction coincide in $R$ and, hence, $R$ is a DW-domain by (1) above. By \cite[Theorem 1.2]{GP}, $R$ is a Pr\"ufer domain. The converse is trivial. \end{proof} \section{Equivalence of the finite $t$- and $v$-basic ideal properties} \noindent For the reader's convenience, recall that a domain is called a $v$-domain if all its nonzero finitely generated ideals are $v$-invertible; an excellent reference for $v$-domains is Fontana \& Zafrullah's comprehensive survey paper \cite{FZ}. Also, recall from \cite{HKM} the following diagram of implications, which puts into perspective the finite basic ideal property for each of the $t$-, $v$-, and $w$-operations: \bigskip \begin{center} Krull domain\\ $\Downarrow$\\ P$v$MD = Finite $w$-basic ideal property\\ $\Downarrow$\\ $v$-domain\\ $\Downarrow$\\ {\color{blue} Finite $v$-basic ideal property\\ $\Downarrow$\\ Finite $t$-basic ideal property}\\ $\Downarrow$\\ Integrally closed domain \end{center} \bigskip The problem of whether the fourth implication is reversible was left open in \cite[Section 3]{HKM}. The main result of this section (Theorem~\ref{b:main1}) solves this open problem. For this purpose, recall from \cite{KK} the following: Let $R$ be a domain and $I$ a nonzero ideal of $R$. An element $x\in R$ is $t$-integral over $I$ if there is an equation $x^{n}+a_{1}x^{n-1}+...+a_{n-1}x+a_{n}=0\ \mbox{ with }\ a_{i}\in (I^{i})_{t}\ \forall i=1,...,n$. Consider the two sets: $$\widetilde{I}:=\big\{x\in R \mid x\ \text{is $t$-integral over}\ I\big\}$$ $$\widehat{I}:=\big\{x\in R \mid I\ \text{is a $t$-reduction of}\ (I,x)\big\}.$$ $\widetilde{I}$ is called the $t$-integral closure of $I$ and is an integrally closed ideal \cite[Theorem 3.2]{KK}, on the other hand, it is not known if, in general, $\widehat{I}$ is an ideal (see Question 3.5 below). We always have $$I_{t}\subseteq\widetilde{I}\subseteq\widehat{I}$$ where the first containment is trivial and the second is asserted by \cite[Proposition 3.7]{KK} and can be strict as shown by \cite[Example 3.10(a)]{KK}. However, for the trivial operation, it is well-known that the equality $\widetilde{I}=\widehat{I}$ always holds \cite[Corollary 1.2.2]{HS2}; this fact was used to show that the integral closure of an ideal is an ideal \cite[Corollary 1.3.1]{HS2}. Finally, in order to put Theorem~\ref{b:main1} into perspective, recall the following important result. \begin{thm}[{\cite[Theorem 3.5]{KK}}] For a domain $R$, the following two assertions are equivalent: \begin{enumerate}[label=\rm(\roman*)] \item $I_{t}=\widetilde{I}$ for each nonzero (finitely generated) ideal $I$ of $R$; \item $R$ is integrally closed. \end{enumerate} \end{thm} Now, to the main result of this section. \begin{thm}\label{b:main1} For a domain $R$, the following assertions are equivalent: \begin{enumerate}[label=\rm(\roman*)] \item $I_{t}=\widehat{I}$ for each nonzero (finitely generated) ideal $I$ of $R$; \item $R$ has the finite $t$-basic ideal property; \item $R$ has the finite $v$-basic ideal property. \end{enumerate} \end{thm} The proof of this result requires the following two lemmas. \begin{lemma}[{\cite[Lemma 1.7]{HKM}}]\label{b:fg} Let $R$ be a domain and let $I$ be a finitely generated ideal of $R$. If $J\subseteq I$ is a $t$-reduction of $I$, then there exists a finitely generated ideal $K\subseteq J$ such that $K$ is a $t$-reduction of $I$. \end{lemma} Note that, for any given $\star$-operation, $\star$-reductions of (integral) ideals can be naturally extended to fractional ideals. The following lemma collects basic results on $\star$-reductions of (fractional) ideals. \begin{lemma}\label{b:frac} For a domain $R$, let $K\subseteq J\subseteq I$ and $J'\subseteq I'$ be nonzero fractional ideals of $R$. \begin{enumerate} \item If $J$ and $J'$ are $\star$-reductions of $I$ and $I'$, respectively, then $J+J'$ is a $\star$-reduction of $I+I'$ and $JJ'$ is a $\star$-reduction of $II'$. \item If $K$ is a $\star$-reduction of $J$ and $J$ is a $\star$-reduction of $I$, then $K$ is a $\star$-reduction of $I$. \item If $K$ is a $\star$-reduction of $I$, then $J$ is a $\star$-reduction of $I$. \item $J$ is a $\star$-reduction of $I$ $\Leftrightarrow$ $J^{n}$ is a $\star$-reduction of $I^{n}$. \item If $J=(a_{1}, ...,a_{k})$, then: $J$ is a $\star$-reduction of $I$ $\Leftrightarrow$ $(a_{1}^{n}, ...,a_{k}^{n})$ is a $\star$-reduction of $I^{n}$. \end{enumerate} \end{lemma} \begin{proof} Substitute ``$\star$" for ``$t$" and ``fractional ideals" for ``(integral) ideals" in the proofs of \cite[Lemmas 2.5, 2.6 and 2.7]{KK}. \end{proof} \begin{proof}[Proof of Theorem~\ref{b:main1}] In view of the aforementioned diagram, we only need to prove (i) $\Leftrightarrow$ (ii) $\Rightarrow$ (iii). First, let us prove that if the equality $\widehat{I}=I_{t}$ holds for all nonzero finitely generated ideals then it holds for all nonzero ideals. Indeed, let $I$ be an ideal of $R$ and $x \in R$ such that $I$ is a $t$-reduction of $(I,x)$. So, $$(I(I,x)^{n})_{t} = ((I,x)^{n+1})_{t}$$ for some positive integer $n$. Hence, $x^{n+1} \in (I(I,x)^{n})_{t}$. Whence, $x^{n+1} \in A_{v}$ for some finitely generated ideal $A\subseteq I(I,x)^{n}$. Moreover, there exist finitely generated subideals $F_{o},F_{1}\dots,F_{n}$ of $I$ such that $$A \subseteq F_{o}(F_{1},x)(F_{2},x)\cdots(F_{n},x).$$ Set $F:=\sum_{i=o}^{n} F_{i} \subseteq I$. Then, $A \subseteq F(F,x)^{n}$ and so $$x^{n+1} \in (F(F,x)^n)_{v}=(F(F,x)^n)_{t}.$$ It follows that $$((F,x)^{n+1})_{t}=(F(F,x)^{n},x^{n+1})_{t}\subseteq (F(F,x)^{n})_{t}.$$ Thus, $F$ is a $t$-reduction of $(F,x)$. Since $F$ is finitely generated, then by hypothesis $x\in\widehat{F}=F_{t}\subseteq I_{t}$. Consequently, $\widehat{I}\subseteq I_{t}$ and, as mentioned above, the reverse inclusion always holds by \cite[Proposition 3.7]{KK}. Assume that $R$ has the finite $t$-basic ideal property and let $I$ be a finitely generated ideal of $R$ and $x \in \widehat{I}$. Necessarily, $I_{t} = (I,x)_{t}$ which forces $x\in I_{t}$. Consequently, $\widehat{I}= I_{t}$. Conversely, assume that (i) holds. Let $I:=(a_{1},\dots,a_{n})$ be a nonzero finitely generated ideal of $R$ ($n\geq1$) and let $J$ be a $t$-reduction of $I$. By Lemma~\ref{b:fg}, we may assume that $J$ is finitely generated. Clearly, we have $$J \subseteq (J,a_{1},\dots,a_{n-1}) \subseteq I.$$ By \cite[Lemma 2.6]{KK}, $(J,a_{1},\dots,a_{n-1})$ is a $t$-reduction of $I$ which can be regarded as $\big((J,a_{1},\dots,a_{n-1}),a_{n}\big)$. Hence, by hypothesis, $a_{n}\in \widehat{(J,a_{1},\dots,a_{n-1})}=(J,a_{1},\dots,a_{n-1})_{t}$. It follows that $$I_{t}=(J,a_{1},\dots,a_{n-1})_{t}.$$ But $J$, being a $t$-reduction of $I_{t}$, is also a $t$-reduction of $(J,a_{1},\dots,a_{n-1})$. Therefore, we re-iterate the above process by removing one generator at each step. Eventually, we get $I_{t}=J_{t}$, as desired. This proves (i) $\Leftrightarrow$ (ii). Assume that $R$ has the finite $t$-basic ideal property and let $I$ be a finitely generated ideal of $R$ and $J$ a $v$-reduction of $I$. So $$J_{v} = \bigcap_{\lambda \in \Lambda}(a_{\lambda})$$ where the $(a_{\lambda})$'s are the nonzero principal fractional ideals of $R$ containing $J$ by \cite[Theorem 34.1]{G}. By Lemma~\ref{b:frac}, $(a_{\lambda})=(J,a_{\lambda})$ is a $v$-reduction of $(I,a_{\lambda})$ for each $\lambda \in \Lambda$. Hence $(a_{\lambda})$ is a $t$-reduction of $(I,a_{\lambda})$ as both ideals are finitely generated. Since $R$ has the finite $t$-basic ideal property, one can easily verify that every nonzero \emph{fractional} ideal of $R$ is $t$-basic. Hence, $(a_{\lambda}) = (I,a_{\lambda})_{t}$ for each $\lambda \in \Lambda$. Therefore $$I_{v} = I_{t} \subseteq \bigcap_{\lambda \in \Lambda}(a_{\lambda}) = J_{v}.$$ Hence, $I_{v}=J_{v}$; that is, $I$ is $v$-basic. This proves (ii) $\Rightarrow$ (iii), completing the proof of the theorem. \end{proof} New examples of domains subject to the finite $t$-basic (equiv., $v$-basic) ideal property will be provided in the next section. We close this section with the following open question: \begin{question} Let $I$ be a nonzero ideal, is $\widehat{I}$ always an ideal? \end{question} \section{Transfer of the finite $t$-basic ideal property to pullbacks} \noindent Let us fix notation for this section. Let $T$ be a domain, $M$ a maximal ideal of $T$, $K$ its residue field, $\varphi:T\longrightarrow K$ the canonical surjection, and $D$ a proper subring of $K$ with quotient field $k$. Let $R$ be the pullback issued from the following diagram of canonical homomorphisms: \[\begin{array}{cccl} &R & \longrightarrow & D\\ (\ \square\ ) &\downarrow & & \downarrow\\ &T & \stackrel{\varphi}\longrightarrow & K=T/M. \end{array}\] So, $R:=\varphi^{-1}(D)\subsetneqq T$. This section establishes necessary and sufficient conditions for a pullback of type $\square$ issued from local domains to inherit the finite $t$-basic (equiv., $v$-basic) ideal property. Recall, at this point, that a domain with the $t$-basic ideal property is completely integrally closed \cite[Proposition 1.4]{HKM}. Therefore, by \cite[Lemma 26.5]{G}, a pullback of type $\square$ never has the $t$-basic ideal property. It is worthwhile recalling that the finite $t$-basic ideal property lies between the two notions of $v$-domain and integrally closed domain \cite{HKM}; and that the finite $w$-basic ideal property coincides with the P$v$MD property \cite[Theorem 2.1]{HKM}. Also, the transfer of the notions of P$v$MD and $v$-domain to pullbacks was established, respectively, by Fontana \& Gabelli in \cite{FG} and by Gabelli \& Houston in \cite{GH}, which summarizes as follows: \begin{thm}[{\cite[Theorem 4.1]{FG} \& \cite[Theorem 4.15]{GH}}] Let $R$ be a pullback of type $\square$. Then, $R$ is P$v$MD (resp., $v$-domain) if and only if $T$ and $D$ are P$v$MDs (resp., $v$-domains), $T_{M}$ is a valuation domain, and $k=K$. \end{thm} Finally, recall that if $T$ is integrally closed, then the integral closure of $R$ is $\varphi^{-1}(\overline{D})$, where $\overline{D}$ denotes the integral closure of $D$ in $K$. This follows easily from the fact that $R$ and $T$ have the same quotient field. Next, we announce the main result of this section which allows us to enrich the literature with new families of examples, putting the new class of domains subject to the finite $t$-basic ideal property strictly between the two classes of $v$-domains and integrally closed domains. \begin{thm}\label{b:main2} Let $R$ be a pullback of type $\square$ such that $T$ is local. Then, $R$ has the finite $t$-basic ideal property if and only if $T$ and $D$ have the finite $t$-basic ideal property and $k=K$. \end{thm} \begin{proof} Assume that $R$ has the finite $t$-basic ideal property. We first prove that $k= K$. Assume, by way of contradiction, that $k \subsetneqq K$. By \cite[Proposition 2.4]{GH}, there is an element $x \in T \setminus R$ with $(R:(1,x)) = M$. Hence $$x^{2} (R:(1,x)) = x^{2}M \subseteq TM \subseteq R;\ \text{ i.e.,}\ x^{2} \in (1,x)_{v}.$$ Therefore, for any nonzero $m\in M$, we have $$x^{2}m^{2} \in (m^{2},xm^{2})_{v}=(m^{2},xm^{2})_{t}$$ and so $$((m,xm)^{2})_{t}=(m^{2}, xm^{2})_{t}=(m(m,xm))_{t}$$ forcing $(m)$ to be a $t$-reduction of $(m,xm)$ in $R$. Whence, $(m,xm)_{t} = (m)$. It follows that $xm \in (m)$ and thus $x \in R$, the desired contradiction. Next, we prove that $T$ has the finite $t$-basic ideal property. Below, we denote by $v_{1}$ and $t_{1}$ the $v$- and $t$- operations with respect to $T$. Let $I$ be a nonzero finitely generated proper ideal of $T$ and $J$ a $t$-reduction of $I$. So $(JI^n)_{t_{1}} = (I^{n+1})_{t_{1}}$ for some positive integer $n$. We may assume, by Lemma~\ref{b:fg}, that $J$ is finitely generated. If $(I^{n+1})_{v_{1}}$ is principal; say, $(I^{n+1})_{t_{1}}=(I^{n+1})_{v_{1}} = (a)$ for some nonzero $a \in T$, then $$aJ_{t_{1}} = (JI^{n+1})_{t_{1}} = (I^{n+2})_{t_{1}} = aI_{t_{1}}$$ yielding $J_{t_{1}} = I_{t_{1}}$. Next, suppose that $(JI^n)_{v_{1}} = (I^{n+1})_{v_{1}}$ is not principal. Since $k=K$, then $T$ is a localization of $R$ (cf. \cite{F,Kab}). So, $J=BT$ and $I=AT$, for some nonzero finitely generated ideals $B\subseteq A$ of $R$. By \cite[Proposition 2.7(1)(b)]{GH}, we obtain $$(A^{n+1})_{t}=(A^{n+1})_{v}=(I^{n+1})_{v_{1}}=(I^{n+1})_{t_{1}}=(JI^n)_{t_{1}}=(JI^n)_{v_{1}}=(BA^n)_{v}=(BA^n)_{t}.$$ It follows that $B$ is a $t$-reduction of $A$ and thus $B_{t}=A_{t}$. By \cite[Lemma 3.4]{Kg2}, we get $$J_{t_{1}} = (B_{t}T)_{t_{1}} = (A_{t}T)_{t_{1}} = I_{t_{1}}.$$ Therefore, in both cases, we showed that $J$ is a trivial $t$-reduction of $I$, as desired. Next, we show that $D$ has the finite $t$-basic ideal property. Let $A$ be a nonzero finitely generated ideal of $D$ and let $B$ be a $t$-reduction of $A$. Let $t_{D}$ denote the $t$-operation with respect to $D$. So, $(BA^{n})_{t_{D}} = (A^{n+1})_{t_{D}}$ for some positive integer $n$. We may assume, by Lemma~\ref{b:fg}, that $B$ is finitely generated. By \cite[Corollary 1.7]{FG}, $I:=\varphi^{-1}(A)$ and $J:=\varphi^{-1}(B)$ are two nonzero finitely generated ideals of $R$ (containing $M$). Since $k=K$, by \cite[Proposition 1.6(a) \& Proposition 1.8(a3)]{FG}, we obtain $$(JI^{n})_{t}=(\varphi^{-1}(BA^{n}))_{t}=\varphi^{-1}((BA^{n})_{t_{D}})=\varphi^{-1}( (A^{n+1})_{t_{D}})=(\varphi^{-1}( A^{n+1}))_{t}=(I^{n+1})_{t}.$$ Hence $J$ is a $t$-reduction of $I$ and thus $J_{t}=I_{t}$. It follows that $$B_{t_{D}}=\varphi(\varphi^{-1}(B_{t_{D}}))=\varphi(J_{t})=\varphi(I_{t})=\varphi(\varphi^{-1}(A_{t_{D}}))=A_{t_{D}}$$ completing the proof of the ``only if" assertion. Conversely, assume that $T$ and $D$ have the finite $t$-basic ideal property and $k=K$. Notice that, in presence of the latter assumption, $M$ cannot be finitely generated \cite[Lemma 4.1]{GH}. Also, recall that we always have $M_{v}=M$ \cite[Corollary 5]{HKLM}. Next, let $I$ be a nonzero finitely generated ideal of $R$ and let $J$ be a finitely generated subideal of $I$ with $(JI^{n})_{t} = (I^{n+1})_{t}$ for some positive integer $n$. By \cite[Proposition 1.6]{GH2}, any ideal of $R$ is comparable to $M$. So, we envisage two cases:\\ {\bf Case 1:} Suppose that $M\subsetneqq I$. We first claim that $M \subsetneqq I^{n+1}$; otherwise, $I^{n+1} \subseteq M$ yields, by \cite[Proposition 1.1]{FG}, $T = (IT)^{n+1} = I^{n+1}T \subseteq MT = M$, absurd. Moreover, we have $M \subsetneqq J$; otherwise, we would have $$J \subseteq M \subsetneqq I^{n+1}\subseteq J_{t}=J_{v},$$ which is absurd. Further, we claim that $M \subsetneqq JI^{n}$; otherwise, $JI^{n} \subseteq M$ yields via \cite[Proposition 1.1]{FG} $$T=(JT)(IT)^{n}=(JI^{n})T\subseteq MT=M,$$ which is absurd. Now, let $A:=\varphi(I)$ and $B:=\varphi(J)$, two nonzero finitely generated ideals of $D$. Therefore, by \cite[Proposition 1.6(b) \& Proposition 1.8(b3)]{FG}, we get $$(BA^{n})_{t_{D}}=(\varphi(JI^{n}))_{t_{D}}=\varphi((JI^{n})_{t})=\varphi((I^{n+1})_{t})=(\varphi(I^{n+1}))_{t_{D}}=(A^{n+1})_{t_{D}}.$$ Hence $B$ is a $t$-reduction of $A$ and thus $B_{t_{D}}=A_{t_{D}}$. It follows that $$J_{t}=\varphi^{-1}(\varphi(J_{t}))=\varphi^{-1}(B_{t_{D}})=\varphi^{-1}(A_{t_{D}})=\varphi^{-1}(\varphi(I_{t}))=I_{t}.$$ {\bf Case 2:} Suppose that $I\subsetneqq M$. If $II^{-1} \nsubseteq M$, then there is a nonzero $x\in\qf(R)$ with $M \subsetneqq xI\subseteq R$, hence $xJ_{t} = xI_{t}$ by Case 1, whence $J_{t} = I_{t}$. So, we may assume $II^{-1} \subseteq M$. Now, note that $(JI^n)^{-1} = (I^{n+1})^{-1}$. So, by \cite[Proposition 2.2(1)]{GH2}, we have $$\begin{array}{rcl} (JI^nT)_{t_{1}} &= &(JI^nT)_{v_{1}}\\ &= &((JI^nT)^{-1})^{-1}\\ &= &((JI^n)^{-1}T)^{-1}\\ &= &((I^{n+1})^{-1}T)^{-1}\\ &= &((I^{n+1}T)^{-1})^{-1}\\ &= &(I^{n+1}T)_{v_{1}}\\ &= &(I^{n+1}T)_{t_{1}}. \end{array}$$ Hence $JT$ is a $t$-reduction of $IT$. It follows, via \cite[Proposition 2.2(1)]{GH2}, that $$J^{-1}T=(JT)^{-1}=((JT)_{v_{1}})^{-1}=((JT)_{t_{1}})^{-1}=((IT)_{t_{1}})^{-1}=((IT)_{v_{1}})^{-1}=(IT)^{-1}=I^{-1}T.$$ On the other hand, the assumption $II^{-1} \subseteq M$ yields $$(IT)(IT)^{-1}=II^{-1}T\subseteq MT=M.$$ Hence $IT$ is not invertible and, a fortiori, not principal in $T$. Therefore, by \cite[Proposition 2.7(a)]{GH}, we get $$J^{-1}\subseteq J^{-1}T = I^{-1}T = (IT)^{-1} = (M:I) = I^{-1}\subseteq J^{-1}.$$ Consequently, $I_{t} = I_{v} = J_{v} = J_{t}$, completing the proof of the theorem. \end{proof} Theorem~\ref{b:main2} allows us to enrich the literature with new families of examples, which put the class of domains subject to the finite $t$-basic ideal property strictly between the two classes of integrally closed domains and $v$-domains. \begin{example}\label{b:ex1} Consider any non-trivial pseudo-valuation domain $R$ issued from $(V,M,k)$ with $k$ algebraically closed in $K:=V/M$. Then, $R$ is an integrally closed domain by \cite[Theorem 2.1]{BG}, which does not have the finite $t$-basic ideal property by Theorem~\ref{b:main2}. Moreover, the two notions of reduction and $t$-reduction are distinct in $R$ by Proposition~\ref{r:coincide}(2). \end{example} \begin{example}\label{b:ex2} Consider any pullback $R$ of type $\square$ issued from $(T,M,D)$ where $\qf(D)=T/M$, $T$ is a non-valuation local $v$-domain, and $D$ is a $v$-domain. Then, $R$ has the finite $t$-basic ideal property by \cite[Proposition 1.6]{HKM} and Theorem~\ref{b:main1} and Theorem~\ref{b:main2}, which is not a $v$-domain by \cite[Theorem 4.15]{GH}. One can easily build non-valuation local $v$-domains via pullbacks through \cite[Theorem 4.15]{GH}. \end{example} Here is a specific example, where we ensure, moreover, that the two notions of reduction and $t$-reduction are distinct. \begin{example}\label{b:ex2-1} Let $T:=\Q(X)[[Y, Z]]=\Q(X)+M$ and $R:=\Z[X]+M$. Clearly, $T$ and $D:=\Z[X]$ have the finite $t$-basic property (since they are Noetherian Krull domains). By Theorem~\ref{b:main2}, $R$ has the finite $t$-basic property. Also $R$ is not a $v$-domain since $T$ is a non-valuation local domain. Next, let $0\not=a\in\Z$ and consider the finitely generated ideal of $R$ given by $I:=(a, X)\Z[X]+M=aR+XR$. Clearly $I^{-1}=R$ and so $(I^{s})^{-1}=R$, for every positive integer $s$. In particular, we have $$(I^{2}I)_{t}=(I^{3})_{t}=(I^{3})_{v}=R=(I^{2})_{v}=(I^{2})_{t}$$ and hence $I^{2}$ is a $t$-reduction of $I$. However, $I^{2}$ is not a reduction of $I$; otherwise, if $I^{n+2}=I^{2}I^{n}=I^{n+1}$, for some $n\geq 1$, this would contradict \cite[Theorem 76]{Ka}. It follows that the notions of reduction and $t$-reduction are distinct in $R$, as desired. \end{example} We close this section with the following two open questions. \begin{question} Is Theorem~\ref{b:main2} valid for the classical pullbacks $R=D+M$ issued from $T:=K+M$ not necessarily local? The idea here is that (since $k=K$, then) $T=S^{-1}R$ for $S:=D\setminus \{0\}$. Clearly, the current proof of the ``only if" assertion works for this context. \end{question} \begin{question} Is Theorem~\ref{b:main2} valid for the non-local case through an additional assumption on $T_{M}$? The idea here is that, ``($k=K$ and hence) $R_{M}=T_{M}$" is a necessity for the finite $t$-basic property; and for the P$v$MD and $v$-domain notions, $R_{M}=T_{M}$ is a valuation domain. So, one needs to investigate this localization for the $t$-basic ideal property in this context. \end{question}
\section{INTRODUCTION} Traffic resulting from vehicles hunting for free parking spaces is significant in populated urban areas. Previous research reported that vehicles cruising for parking induce about 30\% of the traffic in several major cities and consequently impose unnecessary high costs to drivers and transport authorities \cite{shoup2006cruising}. Real-time parking information provides critical input for a parking management system, which was collected by on-site sensors in the past. However, installations of sensors is costly. Besides, optimizing routing for parking with low market penetration is a significant problem for autonomous vehicles (AVs), which can be improved by collaborative mapping of multiple probe cars. Recently, many researchers have investigated the infrastructure-independent parking detection system in which non-AVs can be transformed to probe cars by mounting range-based or vision-based sensors. Furthermore, these sensors have been widely embedded in Advanced Driving Assistance Systems (ADAS), while the potential of sensory data collected in the last mile of trips is not fully exploited for parking guidance services. The major obstacle is that the access to ADAS's raw data is usually not available, and thus any previous developed algorithms based on feature extractions will require installing new sensors on the non-AVs instead. To develop an universal and economic solution, we focus on employing sparse ADAS-processed output directly. Hence this paper intends to fill this gap by evaluating a statistical parking detection algorithm by analyzing pre-processed Short Range Sensors (SRR) data collected in experiments. \par This paper will first review related works in section II, and propose a parking guidance system hinged on multiple sensors and a two-step clustering algorithm in section III. In section IV, this algorithm is evaluated by training data and test data from field experiments. A final conclusion is given in section V. \section{Related Works} Previous studies have employed different methods for parking space detection via on-vehicle sensors. Vision-based parking detection is one of the most well-developed methods because of the maturity of machine visions for object recognition, and the lower price of cameras compared to other sensors \cite{wu2006parking, ichihashi2010improvement}. However, poor lighting or weather conditions and deformation or occlusion objects can restrict the use of a single type of sensing technology. \par Range-based sensors, including ultrasonic, radar and lidar sensors, are complementary solutions to this task. For example, Schmid et al. implemented three automotive-use short-range radars operating at 24 GHz to reconstruct a hierarchical 3-D occupancy grid map with dynamic level of details \cite{schmid2011parking}. Mathur et al. collected 500 miles of road-side parking data by equipping ultrasonic sensors on probe cars and the result showed that parking spot counts are 95\% accurate and occupancy maps can achieve over 90\% accuracy \cite{mathur2010parknet}. Zhou et al. used AdaBoost algorithm to train a classifier on 2-D laser scans, and extracted car bumpers as main features of parked vehicles \cite{ zhou2012detection}. Thronton et al. applied laser sensor for the fast survey of parallel on-street parking. They focused on filtering out road curbs and other driving cars on street as noise \cite{thornton2014automated}. Ibisch et al. employed RANSAC and Kalman Filters in tracking parking through multiple Lidar sensors embedded in a parking garage in the lack of GPS information \cite{ibisch2013towards}. \par It is noticed that all these experiments analyzed raw sensor data rather than from commercial product output channels. Also most literature tested their method in a single type of parking, while there are few evaluations on the overall performance when driving in different environment. \section{Parking Detection Algorithm and Evaluation Procedures} In this paper, we considered two types of parking: off-street parking (open parking lots) and on-street parking (road-side parkings). These two scenarios include both parallel parking and perpendicular parking. Limited by the capability of less advanced range-based sensors (such as radars or ultrasonic sensors) embedded in commercial ADAS and absence of GPS indoors, these probe cars will require additional devices to be able to navigate inside of a multi-level parking structure. On the other hand, a multi-storey parking structures can be directly integrated into a urban-level management system by sharing status of counting at tolling gate, which however is not feasible for the two scenarios we considered here.\par The proposed parking detection system consists of three-types of sensors that are already widely equipped in passenger vehicles: (a) Range-based sensors, including radars or ultrasonic sensors (incorporated in ADAS such as Lane-keeping / Lane-change Assist Systems, Parking Assist Systems, Autonomous Emergency Braking Systems, etc.). (b) Odometers, such as Global Positioning System (GPS). (c) Vehicle-to-vehicle and vehicle-to-infrastructure communication channels like Dedicated Short Range Communications. Although this paper only evaluated SRR, the conclusion should be more general for any similar combination of sensors in the list. \subsection{Parking Detection Algorithm for Probe Car} Different from previous parking detection projects using the raw data, the SRR data from ADAS output are sparse 2-D points accumulated in time. Each of the points represents an object in view instead of multiple reflections from the same object at each time step. Therefore, it is not suitable to apply feature-based classification algorithms as in the related works to process data from such a ``black box''. Alternately, a statistical detection method for the probe car can be decomposed to following steps: \begin{enumerate} \item[] \hspace*{-0.33in} \emph{Step 1:} Data Preprocessing: converting radar data from local coordinates to a global coordinate and synchronizing time steps between different sensors. \item[] \hspace*{-0.38in} \emph{Step 2:} Step-One Classification: labeling data points to clusters using a certain clustering method. \item[] \hspace*{-0.35in} \emph{Step 3:} Step-Two Classification: using Support Vector Machine (SVM) to find the linear maximum margins between adjacent clusters. \item[] \hspace*{-0.35in} \emph{Step 4:} Map Matching: match margins locations with a given parking spaces map. \end{enumerate} \subsubsection{Coordinate Conversion} Since SRR data are reported in a local coordinate whose origin is the centroid of the probe car, it is necessary to project them to a global 2-D Cartesian coordinate system by combining with GPS data at each time step. We use Universal Transverse Mercator (UTM) system so that all measurements are in SI units. \par Let $(x_t, y_t)$ denote the centroid position of the probe car at time $t$ (UTM plane), and $\phi_t$ is the heading. $\pmb{z}_t^* = \{ z_{t, x}^*, z_{t, y}^*\}$ represents a detected object's position in the local coordinate. A simple conversion of $\pmb{z}_t$ in the global coordinate is: \begin{align*} \begin{cases} z_{t, x} = \| \pmb{z}_t^* \| \cos (\phi_t + \theta) \\ z_{t, y} = \| \pmb{z}_t^* \| \sin (\phi_t + \theta) \\ \end{cases} \mbox{ in which }\theta = \arctan (\frac{z_{t, y}^*}{z_{t, x}^*}) . \end{align*} Clocks synchronization between different types of sensor is necessary because GPS (10 Hz) has lower frequency than SRR (50 Hz). We use GPS clock as the standard timer, and $\pm 0.1 $s tolerance in matching data from different sources. \vspace*{0.1in} \subsubsection{Two-step Classification} Converted SRR data points are generated from objects within the range of the probe car's sensors, which are treated as clusters. The task of classification includes two part: finding the number of clusters (i.e. parked vehicles) at the end of the trip and labeling each point to the corresponding cluster. \par The first step is applying clustering with certain criterion as an unsupervised classification in the observations. To find the most efficient combination for this specific case, we compared three different types of methods in training dataset: mean-shift clustering (MSC) with flat kernel (density-based clustering method), Gaussian Mixture Model (GMM) with Akaike Information Criterion (AIC) model selection (distribution-based clustering), and distance-based K-means clustering (K-means) \cite{zivkovic2004improved,cheng1995mean,comaniciu2002mean}. In addition, it is observed that GMM is very sensitive to outliers on the perpendicular direction to the probe vehicle, which is improved by collapsing perpendicular direction of in clustering. All four methods will return both optimal number of clusters and corresponding labels for each data point. \par We pay special attention to MSC because it is the best fit for fixed-size (size of cars) and non-ellipse clusters case. Oppositely, K-means is not able to detect non-spherical clusters. and the accuracy of distribution-based clustering like GMM depends on the proximity of prior distribution to the formulation of data. Besides GMM and K-means need to iteratively select the optimal number of clusters according to certain criterion, which can be avoided by using MSC. \par MSC is a nonparametric feature-space clustering technique working as a mode-seeking process. The weighted mean of the density in the neighborhood $N(x_c)$ within $\lambda$-ball of point $x_c$ is: \begin{align*} m(x_c) = \frac{\sum_{x_i \in N(x_c)} K(x_i - x_c)x_i}{\sum_{x_i \in N(x_c)}K(x_i - x_c)}. \end{align*} The difference $m(x_c) - x_c$ is called mean shift, and in each iteration $x_c \leftarrow m(x_c)$ is performed for all data points until $m(x_c)$ converges. \par One disadvantage of MSC is low computational efficiency. Inasmuch as that, we applied the simplest characteristic function of a flat kernel, which is a straightforward binary function: \begin{align*} K(x) = \begin{cases} 1 & \mbox{ if } \|x\| \leq \lambda \\ 0 &\mbox{ if } \|x\| > \lambda. \end{cases} \end{align*} In two-dimensional feature space, non-parametric MSC only requires one parameter $h$ as a scalar of window size $\lambda$, which is called the kernel bandwidth. This parameter has clear physical interpretation in our case as the average width of the detected objects. To be adjustable in different scenarios, we tune it in a range of no less than the average width of one passenger vehicle, and no greater than the maximum length. A shortage of MSC is that it is not highly scalable, while it is guaranteed to converge. Thus a single trip should be cut into small segments in data processing.\par The main problem of one-step classification for parking detection is its inevitably high Type I Error. If clusters are directly assigned to the given parking spaces on the map, we implies that all the other spaces are unoccupied, which will cause unfavorable errors in the guidance. To avoid that problem, we add a second step finding maximum margin decision boundaries using multi-class soft margin Support Vector Machine (SVM). Decision boundaries between two neighboring classes are linear. Based on labels from step 1, we can find maximum margin between two neighboring clusters using pairwise one-vs-one analysis, which fits $(n_{\mbox{clusters}}-1)$ classifiers instead of $O(n_{\mbox{clusters}}^2)$ using one-vs-one analysis. The threshold of whether there are the free parking spaces between clusters is the ratio of distance between boundaries to average vehicle length or width. \subsection{Training Data: Single-Vehicle Pilot Test} In order to calibrate a proposed detection algorithm's parameters, we conducted a pilot test using a remodeled vehicle from UMTRI's IVBSS project \cite{green2008integrated}. To build a training dataset, the positions of parked vehicles and the driving paths of the probe car are predetermined, which will provide ground-truth data when reconstructing the test. The probe vehicle for this experiment is equipped with six wide field-of-view ($80^{\circ}$), short-range ($\sim$$10 m$) radars (SRR), a standard vehicular GPS and a data acquisition system (DAS) connected to CAN bus with over 600 channels at 10 to 50 Hz. In total there are twelve trips for calibration use. Assuming that each sensor has the same accuracy and works independently, we can calibrate them accordingly. Distance from the probe car to parking spaces ($D$ in figure 1) is set to be 80 inches to simulate driving in a parking lot. The average speed is set to be 5 mph to 10 mph to collect sufficient data. A vehicle feature extraction classifier is incorporated in each SRR. A DAS with computer connections serves as a transmitter in a connected vehicle network. \par \begin{figure}[h] \centering \includegraphics[width=3in]{plot5.png} \caption{Training data pilot test configuration; A probe vehicle equipped with 6 SRR (blue fans represent the field of view) scanning along 13 parked vehicle on 17 parking spaces.} \end{figure} \subsection{Test Data: Off-street and On-street Parking} After the model selection in training set, we want to inspect how this algorithm performs in real-world situations. Different from the pilot test, a three-day experiment is extended to a probe car driving in a parking lot (off-street parking) and on a two-way road with road-side parking (on-street parking) during peak hours. The path is predetermined as the two traces shown in figure 2. In total there are 160$\times$16 off-street parking spaces and 53$\times$6 on-street parking spaces valid observations in the test set. The actual status of parking spaces are recorded by a camera and translated manually afterwards. The result monitors 191 in/out events during the experiment, which guarantees to investigate the stability of the algorithm in handling different profiles. \par \begin{figure}[!h] \centering \subfloat[]{\includegraphics[width=1.65in]{plot8.png}} \hspace{0.02in} \subfloat[]{\includegraphics[width=1.65in]{plot9.png}} \caption{GPS trace of off-street and on-street parking experiments. (a) NC-27 parking on North Campus, University of Michigan. (b) Bonisteel Blvd, Ann Arbor.} \end{figure} \subsection{Bayesian Updating} Individual probe cars exploration results are shared through a connected vehicle network, which can be treated as a cooperative mapping problem. Bayesian updating method can estimate the status of parking spaces recursively with new probe vehicle scanning data being accumulated.\par Let $\pmb{m}$ represent an estimated map shared among probe cars, which is a node-edge map of parking spaces. $\pmb{s}_i^{(n)}$ denotes the state of probe car n at trip i, which consists of probe vehicles' paths (a list of nodes and directions) and origin-destination couples. $\pmb{z}_i^{(n)}$ represents the measurement model from vehicle n's radars. With regard to non-automated vehicle, mapping will not affect the control of the probe car itself so the state space is only the status of nodes on map. \\ In sum, the Bayesian inference of updating parking space is: \begin{align*} p(\pmb{m}|\pmb{s}_{i}^{(n)}, \pmb{z}_{i}^{(n)}) = \frac{ p(\pmb{z}_{i}^{(n)} | \pmb{s}_{i}^{(n)}, \pmb{m}) p(\pmb{m}| \pmb{s}_{i}^{(n)} ) }{p(\pmb{z}_{i}^{(n)} | \pmb{s}_{i}^{(n)})} \end{align*} A distinct interpretation of mapping from traditional Bayesian state estimation is that the measurement term $p(\pmb{z}_{i}^{(n)} | \pmb{s}_{i}^{(n)}, \pmb{m} )$ in this case is the posterior at the end of each trip, and the prior $p(\pmb{m}| \pmb{s}_{i}^{(n)} )$ is the map being updated from trip 1 to trip $ i -1$. Thus we have to assume that each probe car has the same measurement model, and furthermore assume that the probe cars will not interact with each others when driving. \subsection{Map Matching} The map matching procedure in parking detection is straightforward because of the dimension-reduction in space. By assuming that the probe car is driving parallel to the row of parked car, we can apply one-to-one matching perpendicular to the direction of driving, and use 1/0 notation to represent the estimated state in each scanning. The detection range of right-side sensors is greater than left-side sensors, and from the comparison of errors, we find no significant difference in accuracy of detection if the object is within the range. Therefore, we don't need to consider the impact of $D$ in matching either. \section{Model Selection and Test Result} Model selection including two parts: choosing the proper clustering method in step-one classification, and tuning the parameters of the classifier according to the training set. \par The criterion for choosing the best-performance clustering method is the correctness of matching the number of clusters and centroid locations with regard to the known parking configurations. The hypothesis testing for the result of detection algorithm is described in table I, and the Type I and Type II error rate are two indicators of the accuracy of the parking detection results. \par \begin{table}[h!] \centering \caption{Hypothesis Testing for Detection Algorithms} \begin{tabular}{|l|c|c|c|} \hline \multicolumn{2}{|l|}{\multirow{2}{*}{}} & \multicolumn{2}{c|}{Null Hypothesis} \\ \cline{3-4} \multicolumn{2}{|l|}{} & occupied & unoccupied\\ \hline \multicolumn{1}{|c|}{\multirow{3}{*}{Judgement}} & \begin{tabular}[c]{@{}c@{}} available\end{tabular} & Type I error & \begin{tabular}[c]{@{}c@{}}correct \\ inference\end{tabular} \\ \cline{2-4} \multicolumn{1}{|c|}{} & not available & \begin{tabular}[c]{@{}c@{}}correct \\ inference\end{tabular} & Type II error \\ \hline \end{tabular} \end{table} As a sample matching results shown in a sample trip in figure 3 and the entire set in figure 5, MSC outperforms others in the training set in both the states of occupancy and localization of parkings. \par \begin{figure}[h!] \centering \includegraphics[width=2.8in]{plot1.png} \caption{Clustering results from a sample trip; From left to right, each color represent a different cluster: (a) MeanShift Clustering with flat kernel; (b) Gaussian Mixture Model with AIC; (c) Gaussian Mixture Model on Y-direction with AIC; (d) K-Means Clustering.} \end{figure} The Type I error rate using only MSC is about 10\% to 20\% in the training set, which is still unfavorable in terms of users' satisfactions. To avoid high Type I errors in inference, a second step SVM between neighboring clusters is applied and the final output reduces Type I error rate to less than 10\% in the training set when it successfully indicates the gap distance between clusters. The parameters tuning process is shown in figure 4. For off-street parking, the optimal bandwidth for MSC is set to be 2 $m$ because of facing the perpendicular sides of vehicles, and that parameter is 4.5 $m$ for on-street parking when facing the parallel sides of vehicles. We neglect the impact of other variables like driving speed when tuning the model. \par \begin{figure}[h!] \centering \vspace*{-0.2in} \subfloat[]{\includegraphics[width=2.0 in]{tune.png}} \subfloat[]{\includegraphics[width=1.0 in]{plot2.png}} \caption{(a) Type I and Type II error rate over bandwidth in tuning $D$ in MSC. Bandwidth = 2 $m$ is optimal for off-street parking case. (b) SVM results of a sample trip.} \end{figure} \begin{figure}[!h] \vspace*{-0.1in} \subfloat[]{\includegraphics[width=1.8in]{type1.png}} \subfloat[]{\includegraphics[width=1.8in]{type2.png}} \caption{(a) Type I error rate of the training data; (b) Type II error rate of training data.} \end{figure} The indicators of the performance of the proposed detection algorithm are Type I and Type II error rates of each segment in the off-street test set and on-street test set. Each trip is divided to segments when the heading of the probe car shifts over $\pm$90 degrees for the sake of avoiding errors at turning points. The histogram of the overall error rate on each segment are shown in figure 6 (on-street parking) and figure 7 (off-street parking). The results indicate that this statistical method's Type I error for on-street parkings is $32.62 \%$ in average, comparing to $15.23\%$ for the off-street cases. Type II error rates for on-street parking is almost 0, while higher for the off-street case. We have claimed that the Type I error is more concerned, so that the next step is to analyze the major parameters for errors. It is naturally to presume that the driving speed is dominating this difference in results while parameters of MSC have been tuned according to vehicle lengths, and a hypothesis testing is conducted on the speed profiles versus error rates. \par \begin{figure}[!h] \vspace*{-0.1in} \centering \includegraphics[width=2.5in]{on_type.png} \caption{Matching results of on-street parking test data.} \end{figure} \begin{figure}[!h] \centering \includegraphics[width=2.5in]{off_type.png} \caption{Matching results of off-street parking test data.} \end{figure} The regression analysis results within the groups contradicts the assumption we made in figure 8 because the p-values for the first-order estimator is large. However, there is significant relationship between speed and detection errors as the p-value for the first-order estimator ($ =0.015 $) from linear regression is $2.65 e^{-5}$. It is not clear whether the error rate increases because of higher driving speed or different parameters in the classifiers for two cases. \par \begin{figure}[!h] \centering \includegraphics[width=2.8in]{speed.png} \caption{Detection error rate over speed regression on the on-street and off-street test set.} \end{figure} \section{CONCLUSIONS} We have made these two major contributions to the application of sensor-based parking occupancy detection systems in this project: \begin{enumerate} \item Proposing a two-step classification method for sparse sensor data collected from a single probe car, which is proved to be more stable and effective in balancing Type I and Type II errors especially for off-street parkings. \item A comprehensive off-street / on-street parking occupancy detection system that utilizes the sensors in ADAS of multiple probe cars to form a collaborative parking detection network. \end{enumerate} The future work includes two potential directions: providing systematic management strategies to improve the estimations of parking in a long run, and building a back-end for broadcasting parking information. \addtolength{\textheight}{-12cm} \section*{ACKNOWLEDGMENT} The authors would like to thank Mark Gilbert and his colleagues in Engineering Systems Group at UMTRI for assisting in setting up the experiments and all volunteer drivers in the field experiments. \bibliographystyle{./IEEEtran}
\section*{Acknowledgment} M.A. and G.K. gratefully acknowledge financial support by the Austrian Science Foundation (FWF) under projects Nos. P23910-N16 and F41 (SFB ViCoM) and by E-CAM, an e-infrastructure center of excellence for software, training and consultancy in simulation and modelling funded by the EU (Proj. No. 676531). L.\v{S}. acknowledges support from grant VEGA 2/0015/15. All authors acknowledge financial support from the projects PHC-Amadeus-2012 and 2015 (project numbers 26996UC and 33618YH), Projekt Amad\'ee (project numbers FR 10/2012 and FR 04/2015), and funding by Investissement d'Avenir LabEx PALM (grant ANR-10-LABX-0039).
\section{Introduction} \subsection{Motivation} \label{subsec:motivation} Suppose $A$ is a finitely-generated commutative associative unital algebra over a field $\F$ of characteristic zero. All tensor products will be over $\F$. Furthermore, suppose that $\Gamma$ is a finite group acting on $A$ and on a finite-dimensional Lie algebra $\g$ by automorphisms. The corresponding \emph{equivariant map algebra} $(\g \otimes A)^\Gamma$ can be viewed as the Lie algebra of $\Gamma$-equivariant algebraic maps from $\Spec A$ to $\g$. Equivariant map algebras are a large class of Lie algebras generalizing loop algebras and current algebras, which are vital to the theory of affine Lie algebras, and are an extremely active area of research. We refer the reader to the survey \cite{NS13} for an overview of the field. In the case that $\Gamma$ is abelian and acts freely on $\maxSpec A$, $\F$ is algebraically closed, and $\g$ is semisimple, one can use the twisting and untwisting functors defined in \cite{FKKS12} to reduce the study of finite-dimensional representations of $(\g \otimes A)^\Gamma$ to the study of representations of the corresponding \emph{untwisted} map algebra $\g \otimes A$, where $\Gamma$ is trivial (see \cite[Th.~2.10]{FKKS12}). Now assume that $\Gamma$ is trivial and $\g$ is semisimple. Since $A$ is finitely generated, we may assume that $A = \F[t_1,\dotsc,t_\ell]/I$ for some ideal $I$ of $\F[t_1,\dotsc,t_\ell]$. In particular, maximal ideals of $A$ correspond to maximal ideals of $\F[t_1,\dotsc,t_\ell]$ containing $I$. It is known that any finite-dimensional $\g \otimes A$-module is a tensor product of modules supported at single points, that is, modules annihilated by $\g \otimes (\sm^N + I)$ for some maximal ideal $\sm$ of $A$ containing $I$, and some $N \in \N$. (This follows, for example, from \cite[Prop.~2.4]{FKKS12}.) Suppose $V$ is a $\g \otimes A$-module annihilated by $\g \otimes (\sm^N + I)$. Translating if necessary, we may assume that $\sm = (t_1,\dotsc,t_\ell)$ is the maximal ideal corresponding to the origin. Since $\sm^N + I$ annihilates $V$, so does $\sm^N$. Hence, $V$ is naturally a module for the quotient $\g \otimes \F[t_1,\dotsc,t_\ell]/\sm^N$. It follows that we can reduce the study of finite-dimensional $\g \otimes A$-modules to the case $A = \F[t_1,\dotsc,t_\ell]/I$, where $I$ is an ideal of $\F[t_1,\dotsc,t_\ell]$ of finite codimension, generated by monomials. We call these Lie algebras \emph{truncated multicurrent algebras}. In the case $\ell=1$, the Lie algebras $\g \otimes \F[t]/(t^{n+1})$, called \emph{truncated current algebras}, or \emph{generalized Takiff algebras}, have appeared in many places in the literature. Most relevant to the current paper is the work of Takiff, who considered invariant polynomials in the case $n=1$ in \cite{Tak71}. Ra\"is and Tauvel considered the case of arbitrary $n$ in \cite{RT92}, as did Geoffriau in \cite{Geo94a,Geo95}. More recently, graded modules for Takiff algebras were investigated in \cite{CG09}, highest-weight theory for truncated current algebras were considered by Wilson in \cite{Wil11}, and connections to the geometric Langlands program were studied by Kamgarpour in \cite{Kam16}. Motivated by the above discussion, in the current paper we study the structure of truncated multicurrent algebras. A particularly useful tool in the representation theory of Lie algebras has been the action of the center of the universal enveloping algebra. On the other hand, the Duflo isomorphism is an algebra isomorphism between the center of the universal enveloping algebra of a finite-dimensional Lie algebra and the invariants in its symmetric algebra (see \cite{Duf77}). The goal of the current paper is to describe this space of invariants for truncated multicurrent algebras. \subsection{Main results} Suppose $\F$ is a field of characteristic zero, $\g$ is a finite-dimensional Lie algebra, and $\ell$ is a positive integer. Define a partial order on the set $\Omega = \N^\ell$ by \[ (n_1,\dotsc,n_\ell) \le (m_1,\dotsc,m_\ell) \iff n_i \le m_i \quad \text{for all } i \in \{1,\dotsc,\ell\}. \] Suppose $\Omega_0$ is a subset of $\Omega$ that is invariant under the action of $\Omega$ on itself by componentwise addition, and such that $\Omega_1 = \Omega \setminus \Omega_0$ is finite. Then the span $\F \langle t^\omega \mid \omega \in \Omega_0 \rangle$ is an ideal of $\F[t_1,\dotsc,t_\ell]$ and we define \[ A = \F[t_1,\dotsc,t_\ell] / \F \langle t^\omega \mid \omega \in \Omega_0 \rangle. \] In Section~\ref{subsec:poly-defs}, we associate to any polynomial $p \in S(\g)$ a family $p_\omega$, $\omega \in \Omega$, of elements of $S(\g \otimes A)$. Suppose that $p \in S(\g)^\g$, that is, $p$ is invariant under the action of $\g$ on $S(\g)$ induced by the adjoint action. We then show, in Proposition~\ref{prop:pgamma-invariant}, that $p_\omega \in S(\g \otimes A)^{\g \otimes A}$ for certain values of $\omega$. In particular, if $\Omega_1$ has a greatest element $\mu$, which we will assume for the remainder of this introduction, then, for all $k \in \N$, \[ p \in S^k(\g)^\g \implies p_\omega \in S^k(\g \otimes A)^{\g \otimes A} \text{ for } \omega \in k \mu - \Omega_1. \] (Note that $\Omega_1$ has a greatest element if and only if $A$ is a symmetric algebra. If the greatest element is $\mu$, the corresponding trace map is projection onto $A_\mu$.) In other words, given invariant polynomials in $S(\g)$, one can construct invariant polynomials in $S(\g \otimes A)$. Furthermore, in Proposition~\ref{prop:poly-alg-ind}, we show that a collection of polynomials \[ p^{(j)} \in S^{k_j}(\g),\quad 1 \le j \le r, \] is algebraically independent if and only if the associated collection \[ p^{(j)}_\omega \in S^{k_j}(\g \otimes A),\quad 1 \le j \le r,\ \omega \in k_j \mu - \Omega_1, \] is algebraically independent. Now specialize to the case where $\F$ is algebraically closed and $\g$ is semisimple. In this case, we may identify $\g$ with $\g^*$ via the Killing form, and it is known that $S(\g^*)^\g$ is isomorphic to a finitely-generated polynomial algebra. Thus, we may choose algebraically independent generators $p^{(j)} \in S^{k_j}(\g^*)^\g$, $j \in \{1,\dotsc,r\}$, of $S(\g^*)^\g$. Our main result, Theorem~\ref{theo:inv-polys}, states that the corresponding polynomials $p^{(j)}_\omega$, $\omega \in \Omega_1$, $j \in \{1,\dotsc,r\}$, form a system of algebraically independent generators of $S\big( (\g \otimes A)^* \big)^{\g \otimes A}$. In addition, we describe a transversal slice $\ft$ to the regular orbits in $\g \otimes A$ under the adjoint action, such that restriction to $\ft$ induces an isomorphism of algebras from $S\big( (\g \otimes A)^* \big)^{\g \otimes A}$ to $S(\ft^*) = \F[\ft]$. These results generalize \cite[Th.~4.5]{RT92}, which considers the truncated current (i.e.\ $\ell=1$) case. In fact, we also generalize, in Proposition~\ref{prop:chi-regular}, two other results from that paper, by computing the index of the Lie algebra $\g \otimes A$ and characterizing the regular linear forms on $\g \otimes A$. (Note that Proposition~\ref{prop:chi-regular} does not require the assumption that $\F$ is algebraically closed nor that $\g$ is semisimple.) Finally, as an application of our main result, we show, in Theorem~\ref{theo:center-acts-trivially}, that the center of the universal enveloping algebra of $\g \otimes A$ acts trivially (i.e.\ via the augmentation map) on all irreducible finite-dimensional representations (but not necessarily on all finite-dimensional representations), provided $\mu > 0$. It follows that action of this center does \emph{not} separate blocks in the category of finite-dimensional representations. \subsection{Future directions} \label{subsec:future-directions} The results of the current paper suggest many natural possible directions of future research. We list some of these here. \begin{asparaenum} \item Kostant proved that, if $\g$ is a reductive Lie algebra, then $S(\g^*)$ is free over $S(\g^*)^\g$ (see \cite[Th.~11]{Kos63}), and hence that the universal enveloping algebra $U(\g)$ is free over its center $Z(\g)$ (see \cite[Th.~21]{Kos63}). In the case that $\g$ is semisimple and $A = \F[t]/(t^2)$, analogous results were proved in \cite[Th.~3.3]{Geo94a}. This was generalized to the case $A = \F[t]/(t^{n+1})$, $n \in \N$, in \cite[Th.~A.4]{Mus01}. It is thus natural to ask if one can prove these results more generally in the case where $\g \otimes A$ is a truncated multicurrent algebra. \item If $\g$ is semisimple, one has the Harish-Chandra isomorphism between $Z(\g)$ and $S(\fh)^W$, the algebra of polynomials in a Cartan subalgebra $\fh$ of $\g$, invariant under the action of the Weyl group $W$ (see, for example, \cite[\S23.3]{Hum78}). An analogue of this result in the case $A=\F[t]/(t^{n+1})$, $n \in \N$, was proved in \cite[Th.~4.7]{Geo95}. It would be interesting to construct an analogue of the Harish-Chandra homomorphism in the more general setting of truncated multicurrent algebras. \item In Section~\ref{subsec:motivation}, we recalled how, when the group $\Gamma$ acts freely on $\maxSpec A$, one can reduce the study of finite-dimensional representations of $(\g \otimes A)^\Gamma$ to the untwisted setting in which $\Gamma$ is the trivial group. However, this procedure fails when $\Gamma$ does not act freely. (We refer the reader to \cite{NSS12} for a discussion of this more general setup.) It is an open problem to examine the structure of the invariant polynomials $S \big( (\g \otimes A)^\Gamma \big)^{(\g \otimes A)^\Gamma}$ in general. \item The theory of equivariant map algebras was extended to the super case in \cite{Sav14,CMS16,Bag15,CM16}. It would be interesting to also extend the results of the current paper to that setting. \end{asparaenum} \iftoggle{detailsnote}{ \subsection*{Note on the arXiv version} For the interested reader, the tex file of the \href{https://arxiv.org/abs/1607.06411}{arXiv version} of this paper includes hidden details of some straightforward computations and arguments that are omitted in the pdf file. These details can be displayed by switching the \texttt{details} toggle to true in the tex file and recompiling. }{} \subsection*{Acknowledgment} The authors would like to thank V.~Chari for helpful discussions. \section{Preliminaries} We fix a field $\F$ of characteristic zero, and all algebras and tensor products are over $\F$. We assume that all associative algebras possess multiplicative units. If $U$ is a subspace of a vector space $V$, then, for $v_1,v_2 \in V$, we write $v_1 \equiv v_2 \mod U$ to indicate that $v_1 - v_2 \in U$ (in other words, the images of $v_1$ and $v_2$ in $V/U$ are equal.) We let $\N = \{0,1,2,\dotsc\}$ denote the set of nonnegative integers and $\N_+ = \{1,2,3,\dotsc\}$ denote the set of positive integers. \subsection{Polynomial functions and the adjoint action} \label{subsec:poly-funcs-adjoint} For a vector space $V$, we let $S(V) = \bigoplus_{k \in \N} S^k(V)$ denote the symmetric algebra on $V$ with its usual grading by degree. Let $\fa$ be an arbitrary Lie algebra. Recall that $\fa$ acts on itself via the adjoint action: \begin{equation} \label{eq:adjoint-action-g} x \cdot y = [x,y],\quad \text{for all } x,y \in \fa. \end{equation} We then have an action of $\fa$ on $S(\fa)$ defined inductively by \eqref{eq:adjoint-action-g} and \[ x \cdot (p_1p_2) = (x \cdot p_1) p_2 + p_1 (x \cdot p_2),\quad \text{for all } x \in \fa,\ p_1,p_2 \in S(\fa). \] Note that this implies that $\fa$ acts as zero on $S^0(\fa) = \F$. We let \[ S(\fa)^\fa = \{p \in S(\fa) \mid x \cdot p = 0 \text{ for all } x \in \fa\} \] denote the set of $\fa$-invariant elements of $S(\fa)$. The corresponding dual action of $\fa$ on $\fa^* = \Hom_\F (\fa,\F)$ is defined by \[ (x \cdot f)(y) = -f(x \cdot y) = f([y,x]),\quad x,y \in \fa,\ f \in \fa^*. \] Since elements of $\fa^*$ are $\F$-linear maps $\fa \to \F$, they induce algebra homomorphisms $S(\fa) \to \F$. (We use here the universal property of the symmetric algebra and the fact that $\F$ is commutative.) Thus, we have a map \[ S(\fa) \times \fa^* \to \F,\quad (p,f) \mapsto p(f),\quad p \in S(\fa),\ f \in \fa^*. \] In this way, we can view elements of $S(\fa)$ as polynomial functions on $\fa^*$. More generally, fix a commutative associative algebra $B$. (We shall be particularly interested in the cases $B = \F[\Gamma]$, $B = \F[s]$, and $B = \F[\Gamma] \otimes \F[s]$, where $\Gamma$ is an abelian group and $s$ is an indeterminate.) Then we have an $\F$-linear map determined by \[ B \otimes \fa^* \otimes \fa \to B,\quad b \otimes f \otimes x \mapsto f(x) b, \quad \text{for all } b \in B,\ f \in \fa^*,\ x \in \fa. \] As above, any element of $B \otimes \fa^*$ thus induces an algebra homomorphism $S(\fa) \to B$. So we have a map \[ S(\fa) \times \big( B \otimes \fa^*\big) \to B. \] We can therefore also view elements of $S(\fa)$ as polynomial functions on $B \otimes \fa^*$, taking values in $B$. More generally, we view elements of $S(\fa) \otimes B$ in the same way via \[ (p \otimes b)(f) = p(f)b,\quad \text{ for all } p \in S(\fa),\ f \in \fa^* \otimes B,\ b \in B. \] We define the structure of an $\fa \otimes B$-module on $\fa^* \otimes B$ by \begin{equation} \label{eq:adjoint-dual-action-coeffs} (x \otimes b_1) \cdot (f \otimes b_2) = (x \cdot f) \otimes b_1 b_2,\quad x \in \fa,\ f \in \fa^*,\ b_1,b_2 \in B, \end{equation} and extending by linearity. We also define the structure of an $\fa \otimes B$-module on $S(\fa) \otimes B$ by \begin{equation} \label{eq:adjoint-poly-action-coeffs} (x \otimes b_1) \cdot (p \otimes b_1) = (x \cdot p) \otimes b_1 b_2,\quad x \in \fa,\ p \in S(\fa),\ b_1,b_2 \in B, \end{equation} and extending by linearity. It follows immediately from this definition, that if $p \in S(\fa)^\fa$, then $(\fa \otimes B) \cdot (p \otimes b) = 0$ for all $b \in B$. \begin{lem} \label{lem:linearization} Let $s$ be an indeterminate. For all $P \in S(\fa) \otimes B$, $F \in \fa^* \otimes B$, and $X \in \fa \otimes B$, we have \begin{equation} \label{eq:linearization} P(F + s (X \cdot F)) \equiv P(F) - s (X \cdot P)(F) \mod s^2 B[s]. \end{equation} \end{lem} \begin{proof} Since both sides of \eqref{eq:linearization} are $\F$-linear in $P$, it suffices to prove the result for $P \in S^k(\fa) \otimes B$, $k \in \N$. Similarly, from the definition \eqref{eq:adjoint-poly-action-coeffs}, it suffices to consider $P \in S^k (\fa) \otimes \F \cong S^k (\fa)$. In addition, it is enough to consider $X$ of the form $x \otimes b_1$ and $F$ of the form $f \otimes b_2$, where $x \in \fa$, $f \in \fa^*$, and $b_1, b_2 \in B$. We use induction on $k$. The $k=0$ case is trivial. For $P = y \in \fa = S^1(\fa)$, we have \begin{align*} y \big( f \otimes b_2 + s (x \otimes b_1) \cdot (f \otimes b_2) \big) &= y \big( f \otimes b_2 + s (x \cdot f) \otimes b_1 b_2 \big) \\ &= f(y) b_2 + s(x \cdot f)(y) b_1 b_2 \\ &= f(y) b_2 - s f(x \cdot y) b_1 b_2 \\ &= y(f \otimes b_2) - s \big( (x \otimes b_1) \cdot y \big) (f \otimes b_2). \end{align*} Now suppose that, for some $N \in \N_+$, the result holds for $P$ in $S^k(\fa)$, $k \le N$. Let $X \in \fa \otimes B$, $F \in \fa^* \otimes B$, $P \in S^k(\fa)$, and $Q \in S^\ell(\fa)$, with $k,\ell \le N$. Then we have \begin{align*} (PQ)(F + s(X \cdot F)) &= P(F + s(X \cdot F)) Q(F + s(X \cdot F)) \\ &\equiv \big( P(F) - s(X \cdot P)(F) \big) \big( Q(F) - s (X \cdot Q)(F) \big) \mod s^2 B[s] \\ &\equiv P(F) Q(F) - s \big( (X \cdot P)(F) Q(F) + P(F) (X \cdot Q)(F) \big) \mod s^2 B[s] \\ &\equiv (PQ)(F) - s \big( X \cdot (PQ) \big)(F) \mod s^2 B[s]. \end{align*} This completes the proof of the inductive step. \end{proof} \subsection{Graded associative algebras} Fix $\ell \in \N$, and define \[ \Gamma = \Z^\ell,\quad \Omega = \N^\ell. \] So $\Gamma$ is an abelian group and $\Omega$ is an abelian monoid under the usual addition. There are natural actions of $\Omega$ and $\Gamma$ on themselves via their operations. We define a partial order on $\Gamma$ by \[ (n_1,\dotsc,n_\ell) \le (m_1,\dotsc,m_\ell) \iff n_i \le m_i \quad \text{for all } i \in \{1,\dotsc,\ell\}. \] We write $(n_1,\dotsc,n_\ell) < (m_1,\dotsc,m_\ell)$ if $(n_1,\dotsc,n_\ell) \le (m_1,\dotsc,m_\ell)$ and $(n_1,\dotsc,n_\ell) \ne (m_1,\dotsc,m_\ell)$. Suppose $B = \bigoplus_{\gamma \in \Gamma} B_\gamma$ is a finite-dimensional $\Gamma$-graded commutative $\F$-algebra. For $\nu \in \Gamma$, we define \[ B_{> \nu} = \sum_{\nu < \gamma} B_\gamma. \] Let \[ B^* = \bigoplus_{\gamma \in \Gamma} B_\gamma^*,\quad B_\gamma^* = \Hom_\F(B_\gamma,\F), \] denote the restricted dual space. This is naturally a $\Gamma$-graded vector space with the elements of $B_\gamma^*$ being of degree $- \gamma$. In other words, $(B^*)_{-\gamma} = B_\gamma^*$. The space $B^*$ is also naturally a $B$-module via the action defined by \[ (b \cdot f)(b') = f(bb'),\quad b,b' \in B,\ f \in B^*. \] This action is compatible with the $\Gamma$-gradings: \[ B_{\gamma_1} (B^*)_{\gamma_2} = (B^*)_{\gamma_1 + \gamma_2}. \] If $\mathcal{B}$ is some subset of $B$, we write \[ \F \langle \mathcal{B} \rangle = \F \langle b \mid b \in \cB \rangle = \Span_\F \mathcal{B} \] to denote the $\F$-span of the set $\mathcal{B}$. Consider the polynomial algebra $\F[t_1,\dotsc,t_\ell]$ in $\ell$ indeterminates. For $\omega = (\omega_1,\dotsc,\omega_\ell) \in \Omega$, we define $t^\omega = t_1^{\omega_1} t_2^{\omega_2} \dotsm t_\ell^{\omega_\ell}$. Fix a subset $\Omega_0 \subseteq \Omega$ that is stable under the action of $\Omega$ (i.e.\ such that $\omega + \gamma \in \Omega_0$ for all $\omega \in \Omega$ and $\gamma \in \Omega_0$), and such that the complement $\Omega_1 = \Omega \setminus \Omega_0$ is finite. Thus, $I = \F \langle t^\omega \mid \omega \in \Omega_0 \rangle$ is an ideal of $\F[t_1,\dotsc,t_\ell]$, and we define the $\F$-algebra \[ A = \F[t_1,\dotsc,t_\ell]/I. \] Let $\tau^\omega$ denote the image of $t^\omega$ in $A$, for $\omega \in \Omega$. So $A$ has a basis \[ \{\tau^\omega \mid \omega \in \Omega_1\}. \] Let \[ \{\epsilon^\omega \mid \omega \in \Omega_1\} \] denote the dual basis of $A^*$. The algebra $A$ is naturally $\Gamma$-graded, with the element $\tau^\omega$ being of degree $\omega$. Similarly, $A^*$ is a $\Gamma$-graded vector space, with $\epsilon^\omega$ of degree $-\omega$. Consider the group algebra \[ \F[\Gamma] = \{q^\gamma \mid \gamma \in \Gamma\}, \] written in exponential notation, where $q$ is a formal symbol. Define an $\F$-linear map \begin{equation} \label{eq:imath-def} \imath \colon A \hookrightarrow \F[\Gamma],\quad \tau^\omega \mapsto q^\omega,\quad \omega \in \Omega_1. \end{equation} This map is manifestly injective. We will continue to use the notation $\imath$ to denote the tensor product of $\imath$ with identity maps. For example, if $\fa$ is a Lie algebra and $B$ is an associative algebra, we have the injective $\F$-linear map \[ \imath = \id_\fa \otimes \imath \otimes \id_B \colon \fa \otimes A \otimes B \hookrightarrow \fa \otimes \F[\Gamma] \otimes B. \] We also define the $\F$-linear map (which is manifestly injective) \begin{equation} \label{eq:jmath-def} \jmath \colon A^* \hookrightarrow \F[\Gamma],\quad \epsilon^\omega \mapsto q^{-\omega},\quad \omega \in \Omega_1, \end{equation} and use the same notation $\jmath$ to denote the tensor product with identity maps. Note that the maps \eqref{eq:imath-def} and \eqref{eq:jmath-def} are both maps that send homogeneous elements to their degrees. \begin{rem} \label{rem:A-max-element-case} In the sequel, we shall be especially interested in the case where $\Omega_1$ has a greatest element $\mu$. In this case, we have \begin{gather*} \Omega_1 = \{\omega \in \Omega \mid \omega \le \mu\},\quad \Omega_0 = \{\omega \in \Omega \mid \omega \not \le \mu\},\quad \text{and} \\ A \cong \F[t_1]/(t_1^{\mu_1+1}) \otimes \F[t_2]/(t_2^{\mu_2+1}) \otimes \dotsb \otimes \F[t_\ell]/(t_\ell^{\mu_\ell+1}). \end{gather*} \end{rem} \section{Invariant polynomials} \subsection{Definitions} \label{subsec:poly-defs} Fix a finite-dimensional Lie algebra $\g$. Through the paper, we will use the symbols $X,Y,Z$ to denote elements of $\g \otimes A$ or $\g \otimes \F[\Gamma]$ and the symbols $F,G,H$ to denote elements of $\g^* \otimes A^*$ or $\g^* \otimes \F[\Gamma]$. We use the corresponding lowercase letters to denote the components of these elements: \[ X = \sum_{\omega \in \Omega_1} x_\omega \otimes \tau^\omega,\quad F = \sum_{\omega \in \Omega_1} f_\omega \otimes \epsilon^\omega,\quad \text{etc.} \] Let \begin{equation} \label{eq:a-def} a = \sum_{\omega \in \Omega_1} \tau^\omega \in A. \end{equation} We have the associated $\F$-linear map \begin{equation} \tau_a \colon \g \to \g \otimes A,\quad x \mapsto x \otimes a. \end{equation} This induces an algebra homomorphism \begin{equation} \tau_a \colon S(\g) \to S(\g \otimes A), \end{equation} which we denote by the same symbol. Now, the algebra $S(\g \otimes A)$ is naturally $\Gamma$-graded (as an algebra). For $p \in S(\g)$ and $\gamma \in \Gamma$, we let $p_\gamma$ denote the degree $\gamma$ component of $\tau_a(p)$. Thus, we have \begin{equation} \tau_a(p) = \sum_{\gamma \in \Gamma} p_\gamma,\quad p_\gamma \in S(\g \otimes A)_\gamma. \end{equation} For subsets $\Upsilon_1,\dotsc,\Upsilon_k \subseteq \Gamma$, define \begin{gather*} \Upsilon_1 + \Upsilon_2 + \dotsb + \Upsilon_k := \{\gamma_1 + \gamma_2 + \dotsb + \gamma_k \mid \gamma_i \in \Upsilon_i,\ i \in \{1,\dotsc,k\}\} \subseteq \Gamma. \end{gather*} Also, for a subset $\Upsilon \subseteq \Gamma$ and $k \in \N_+$, we define \[ \Upsilon^k = \Upsilon + \dotsb + \Upsilon \quad \text{($k$ factors)},\quad \Upsilon^0 = \{0\}, \] and \[ - \Upsilon = \{- \gamma \mid \gamma \in \Upsilon\} \subseteq \Gamma. \] \begin{rem} \label{rem:zero-p-gamma} Note that, for $p \in S^k(\g)$, we have $p_\gamma = 0$ for $\gamma \not \in \Omega_1^k$. \end{rem} Since $\g$ and $A$ are finite dimensional, we may naturally identify $(\g \otimes A)^*$ with $\g^* \otimes A^*$. Recall the definition of the map $\jmath$ given in \eqref{eq:jmath-def}. \begin{lem} \label{lem:p-jmath-expansion} For $p \in S(\g)$ and $F \in \g^* \otimes A^*$, we have \begin{equation} \label{eq:p-jmath-F-decomp} p(\jmath(F)) = \sum_{\gamma \in \Omega} p_\gamma(F) q^{-\gamma}. \end{equation} \end{lem} \begin{proof} Since both sides of \eqref{eq:p-jmath-F-decomp} are $\F$-linear in $p$, it suffices to consider $p \in S^k(\g)$ for some $k \in \N_+$. Then, for $F = \sum_{\omega \in \Omega_1} f_\omega \otimes \epsilon^\omega$, we have \[ p (\jmath (F)) = p \left( \sum_{\omega \in \Omega_1} f_\omega \otimes q^{-\omega} \right) = \sum_{\omega \in \Omega_1} p(f_\omega) \otimes q^{-k\omega}. \] Thus, it suffices to consider the case $F = f \otimes \epsilon^\omega$ for some $f \in \g^*$, and $\omega \in \Omega_1$. Since $p_\gamma(F) = 0$ for $\gamma \ne k \omega$, we have \[ \tau_a(p)(F) = p_{k \omega}(F) = p(f) \quad \text{and} \quad p(\jmath(F)) = p(f \otimes q^{- \omega}) = p(f) q^{-k\omega}. \] The result follows. \end{proof} Notice that, in the setup of Lemma~\ref{lem:p-jmath-expansion}, we have that $p(\jmath(F))$ is an element of $\F[\Omega^{-1}]$, which is simply a polynomial algebra in $q_i := q^{-1_i}$, $i \in \{1,\dotsc,\ell\}$, where $1_i \in \Omega = \N^\ell$ is the element with $i$-th component equal to one and all other components equal to zero. We can thus apply the partial derivatives $\partial_i := \frac{\partial}{\partial q_i}$. \begin{cor} \label{cor:p-gamma-deriv-expression} For $p \in S(\g)$ and $\gamma \in \Omega$, we have \begin{equation} p_\gamma = \frac{1}{\gamma_1! \gamma_2! \dotsm \gamma_\ell!} \partial_1^{\gamma_1} \partial_2^{\gamma_2} \dotsb \partial_\ell^{\gamma_\ell} \big|_0 (p \circ \jmath), \end{equation} where the notation $\partial_1^{\gamma_1} \partial_2^{\gamma_2} \dotsb \partial_\ell^{\gamma_\ell} \big|_0$ denotes evaluation of the iterated derivative at $q_1=q_2=\dotsb=q_\ell=0$. \end{cor} \begin{proof} This follows immediately from Lemma~\ref{lem:p-jmath-expansion}. \end{proof} \begin{rem} \label{rem:pgamma-RT} Suppose $\ell=1$, so that $A \cong \F[t]/(t^{m+1})$ for some $m$. Then it follows from Lemma~\ref{lem:p-jmath-expansion} that, for $p \in S^k(\g)$, and $i \in \N = \Omega$, the polynomial $p_{km-i} \in S(\g \otimes A)_{km-i}$ is equal to $P_i$ as defined in \cite[\S3.1]{RT92}. \details{ Consider the first centered equation of \cite[\S3.1]{RT92}, which defines the $P_i$. We have \[ p \left( \sum_{n=0}^m q^{n-m} f_{m-n} \right) = q^{-km} p \left( \sum_{n=0}^m q^n f_{m-n} \right) = q^{-km} \sum_{i \ge 0} q^i P_i \left( \sum_{j=0}^m f_j \otimes \epsilon^j \right). \] Then the result follows from Lemma~\ref{lem:p-jmath-expansion}. } \end{rem} The following lemma will be useful in the proof of Proposition~\ref{prop:poly-alg-ind}. \begin{lem} \label{lem:double-invariant-poly} Assume $\Omega_1$ has a greatest element $\mu$. Suppose $p \in S(\g)$ and $\gamma = (\gamma_1,\dotsc,\gamma_\ell) \in \Omega$. By Remark~\ref{rem:A-max-element-case}, we have \[ A \cong B \otimes \F[t_\ell]/(t_\ell^{\mu_\ell}),\quad \text{where} \quad B = \F[t_1,\dotsc,t_{\ell-1}]/ \F \langle t^\omega \mid \omega \not \le (\mu_1,\dotsc,\mu_{\ell-1}) \rangle. \] Identifying $A$ with $B \otimes \F[t_\ell]/(t_\ell^{\mu_\ell})$ via this isomorphism, we can form $p_{(\gamma_1,\dotsc,\gamma_{\ell-1})} \in S(\g \otimes B)$ and $\left( p_{(\gamma_1,\dotsc,\gamma_{\ell-1})} \right)_{\gamma_\ell} \in S(\g \otimes A)$. Then we have $\left( p_{(\gamma_1,\dotsc,\gamma_{\ell-1})} \right)_{\gamma_\ell} = p_\gamma$. \end{lem} \begin{proof} Define \[ \ts b = \pi_B \left( \sum_{\omega \in \N^{\ell-1},\, \omega \le (\mu_1,\dotsc,\mu_{\ell-1})} t^\omega \right) \in B \quad \text{and} \quad c = \pi_\ell \left( \sum_{\omega_\ell \in \N,\, \omega_\ell \le \mu_\ell} t_\ell^{\omega_\ell} \right) \in \F[t_\ell]/(t_\ell^{\mu_\ell+1}), \] where \[ \pi_B \colon \F[t_1,\dotsc,t_{\ell-1}] \twoheadrightarrow B \quad \text{and} \quad \pi_\ell \colon \F[t_\ell] \twoheadrightarrow \F[t_\ell]/(t_\ell^{\mu_\ell}) \] are the canonical projections. We then have the $\F$-linear maps \[ \tau_b \colon \g \to \g \otimes B,\ x \mapsto x \otimes b \quad \text{and} \quad \tau_c \colon \g \otimes B \to \g \otimes A,\ x \mapsto x \otimes c. \] which induce algebra homomorphisms $\tau_b \colon S(\g) \to S(\g \otimes B)$ and $\tau_c \colon S(\g \otimes B) \to S(\g \otimes A)$. Then the result follows from the fact that $\tau_c \circ \tau_b = \tau_a$, where $a$ is defined as in \eqref{eq:a-def}. \end{proof} \subsection{Invariance} \begin{lem} \label{lem:adjoint-equivariance} For $X \in \g \otimes A$ and $F \in \g^* \otimes A^*$, we have \[ \jmath (X \cdot F) - \imath(X) \cdot \jmath(F) \in \g^* \otimes \F \langle (\Omega_1 - \Omega_1) \setminus - \Omega_1 \rangle. \] \end{lem} \begin{proof} Since the expression $\jmath(X \cdot F) - \imath(X) \cdot \jmath(F)$ is $\F$-linear in both $X$ and $F$, it suffices to consider the case $X = x \otimes \tau^\omega$ and $F = f \otimes \epsilon^\lambda$ for some $x \in \g$, $f \in \g^*$, and $\omega, \lambda \in \Omega_1$. We split the proof into two cases. First, suppose that $\lambda - \omega \in \Omega_1$. Then, for $\gamma \in \Omega_1$, we have \[ \tau^\omega \cdot \epsilon^\lambda(\tau^\gamma) = \epsilon^\lambda(\tau^{\omega + \gamma}) = \delta_{\lambda, \omega + \gamma} = \delta_{\lambda - \omega, \gamma} = \epsilon^{\lambda - \omega}(\tau^\gamma). \] and so \[ X \cdot F = (x \cdot f) \otimes \epsilon^{\lambda-\omega}. \] Therefore \[ \jmath (X \cdot F) = (x \cdot f) \otimes q^{\omega-\lambda} = \imath(X) \cdot \jmath(F). \] On the other hand, if $\lambda - \omega \not \in \Omega_1$, then $X \cdot F = 0$ and \[ \imath(X) \cdot \jmath(F) = (x \otimes q^\omega) \cdot (f \otimes q^{-\lambda}) = (x \cdot f) \otimes q^{\omega-\lambda} \in \g^* \otimes \F \langle (\Omega_1 - \Omega_1) \setminus - \Omega_1 \rangle. \qedhere \] \end{proof} \begin{lem} \label{lem:polynomial-error-terms} Suppose $p \in S^k(\g)$ for some $k \in \N_+$. Then, for all $F \in \g^* \otimes \F \langle - \Omega_1 \rangle$ and $G \in \g^* \otimes \F \langle (\Omega_1 - \Omega_1) \setminus -\Omega_1 \rangle$, we have \[ p(F+G) - p(F) \in \F \langle \Phi_k \rangle, \] where \begin{equation} \label{eq:Upsilonk-def} \Phi_k = \bigcup_{j=1}^k \Big( \big( (\Omega_1 - \Omega_1) \setminus -\Omega_1 \big)^j + (-\Omega_1)^{k-j} \Big). \end{equation} \end{lem} \begin{proof} It suffices to consider the case where $p$ is a monomial, since monomials span $S^k(\g)$. Therefore, take $p=x_1 x_2 \dotsm x_k$, for some $x_1,\dotsc,x_k \in \g$. Then we have \[ p(F+G) = x_1(F+G) \dotsm x_k(F+G) = \big( x_1(F) + x_1(G) \big) \dotsm \big( x_k(F) + x_k(G) \big), \] and the result follows from the fact that $x_i(F) \in \F \langle -\Omega_1 \rangle$ and $x_i(G) \in \F \langle (\Omega_1 - \Omega_1) \setminus -\Omega_1 \rangle$ for all $i \in \{1,\dotsc,k\}$. \end{proof} \begin{prop} \label{prop:pgamma-invariant} Suppose $p \in S^k(\g)^\g := S^k(\g) \cap S(\g)^\g$ for some $k \in \N_+$. Then \[ p_\gamma \in S^k(\g \otimes A)^{\g \otimes A} \quad \text{for all } \gamma \not \in - \Phi_k = \bigcup_{j=1}^k \Big( \big( (\Omega_1 - \Omega_1) \setminus \Omega_1 \big)^j + \Omega_1^{k-j} \Big). \] \end{prop} \begin{proof} Suppose $p \in S^k(\g)^\g$ and define $\Phi_k$ as in \eqref{eq:Upsilonk-def}. Then, for all $X \in \g \otimes A$ and $F \in \g^* \otimes A^*$, we have \begin{align*} \sum_{\gamma \in \Gamma} \big( p_\gamma(F) - s (X \cdot p_\gamma) (F) \big) q^{-\gamma} &\equiv \sum_{\gamma \in \Omega} p_\gamma(F + s X \cdot F) q^{-\gamma} \mod \F[\Gamma] \otimes s^2 \F[s] \\ &\equiv p \big( \jmath(F + sX \cdot F) \big) \mod\F[\Gamma] \otimes s^2 \F[s] \\ &\equiv p \big( \jmath(F) + s \jmath(X \cdot F) \big) \mod \F[\Gamma] \otimes s^2 \F[s] \\ &\equiv p \big( \jmath(F) + s \imath(X) \cdot \jmath(F) \big) \mod \big( \F \langle \Phi_k \rangle \otimes \F[s] + \F[\Gamma] \otimes s^2 \F[s] \big) \\ &\equiv p(\jmath(F)) - s( \imath(X) \cdot p )(\jmath(F)) \mod \big( \F \langle \Phi_k \rangle \otimes \F[s] + \F[\Gamma] \otimes s^2 \F[s] \big) \\ &\equiv p(\jmath(F)) \mod \big( \F \langle \Phi_k \rangle \otimes \F[s] + \F[\Gamma] \otimes s^2 \F[s] \big) \\ &\equiv \sum_{\gamma \in \Gamma} p_\gamma(F) q^{-\gamma} \mod \big( \F \langle \Phi_k \rangle \otimes \F[s] + \F[\Gamma] \otimes s^2 \F[s] \big) \end{align*} where the first equivalence uses Lemma~\ref{lem:linearization} and Remark~\ref{rem:zero-p-gamma}, the second and seventh follow from Lemma~\ref{lem:p-jmath-expansion}, the fourth holds by Lemmas~\ref{lem:adjoint-equivariance} and~\ref{lem:polynomial-error-terms}, the fifth follows from Lemma~\ref{lem:linearization}, and the sixth follows from the fact that $p$ is $\g$-invariant. Therefore, we have $X \cdot p_\gamma =0$, for all $\gamma \not \in -\Phi_k$. \end{proof} \begin{rem} Note that while the main results of the current paper will assume that $\Omega_1$ has a greatest element, Proposition~\ref{prop:pgamma-invariant} does \emph{not} require this assumption. It would be interesting to investigate the properties of the space $S(\g \otimes A)^{\g \otimes A}$ more generally, and to determine, for instance, when the invariant polynomials of Proposition~\ref{prop:pgamma-invariant} generate this space. Note also that, since $\Omega_1$ is finite, one can always choose an element $\mu \in \Omega$ such that $\omega \le \mu$ for all $\omega \in \Omega_1$. Then we have the projection \[ \F[t_1,\dotsc,t_\ell]/\F \langle t^\omega \mid \omega \in \Omega,\ \omega \not \le \mu \rangle \twoheadrightarrow A, \] and so representations of $\g \otimes A$ can be pulled back to the setting where we have a greatest element. \end{rem} \begin{lem} \label{lem:index-set-max-element} If $\Omega_1$ has a greatest element $\mu$, then \[ \Omega_1^k \setminus (-\Phi_k) = k\mu - \Omega_1. \] \end{lem} \begin{proof} If $\Omega_1$ has a greatest element $\mu$, then \begin{gather*} \Omega_1 = \{\gamma \in \Gamma \mid 0 \le \gamma \le \mu\},\quad \Omega_1 - \Omega_1 = \{\gamma \in \Gamma \mid -\mu \le \gamma \le \mu\}, \quad \text{and} \\ (\Omega_1 - \Omega_1) \setminus \Omega_1 = \{\gamma \in \Gamma \mid -\mu_i \le \gamma_i \le \mu_i \text{ for all } i, \text{ and } \gamma_i<0 \text{ for at least one } i\}. \end{gather*} Therefore, \begin{align*} \Omega_1^k &\cap (-\Phi_k) = \Omega_1^k \cap \bigcup_{j=1}^k \Big( \big( (\Omega_1 - \Omega_1) \setminus \Omega_1 \big)^j + \Omega_1^{k-j} \Big) \\ &= \Omega_1^k \cap \bigcup_{j=1}^k \left\{ \gamma \in \Gamma \mid -j\mu_i \le \gamma_i \le k\mu_i - p_i(\mu_i+1) \text{ for all } i, \text{ and some } p_1,\dotsc,p_\ell \text{ with } {\textstyle \sum_i p_i = j} \right\} \\ &= \left\{ \gamma \in \Gamma \mid 0 \le \gamma_i \le k\mu_i \text{ for all } i, \text{ and } \gamma_i < (k-1) \mu_i \text{ for at least one } i\right\}. \end{align*} It follows that \[ \Omega_1^k \setminus (-\Phi_k) = \{\omega \in \Omega \mid (k-1)\mu \le \omega \le k \mu\} = k \mu - \Omega_1. \qedhere \] \end{proof} Suppose $p \in S^k(\g)^\g$, $k \in \N_+$, and assume that $\Omega_1$ has a greatest element $\mu$. It follows from Proposition~\ref{prop:pgamma-invariant} and Lemma~\ref{lem:index-set-max-element} that $p_\gamma$ lies in $S^k(\g \otimes A)^{\g \otimes A}$ and is (potentially) nonzero for $\gamma$ in the set $k\mu - \Omega_1$. \subsection{Algebraic independence} Throughout this subsection, we assume that $\Omega_1$ has a greatest element $\mu$. \begin{prop} \label{prop:poly-alg-ind} A collection of elements \begin{equation} \label{eq:algind-g} p^{(i)} \in S^{k_i}(\g),\quad 1 \le i \le r,\ k_i \in \N_+, \end{equation} is algebraically independent if and only if the collection \begin{equation} \label{eq:algind-gA} p^{(i)}_\omega \in S^{k_i}(\g \otimes A),\quad 1 \le i \le r,\ \omega \in k_i \mu - \Omega_1, \end{equation} is algebraically independent. \end{prop} \begin{proof} We prove the result by induction on $\ell$. If $\ell=1$, then, by Remark~\ref{rem:pgamma-RT}, the result is precisely \cite[Lem.~3.3(ii)]{RT92}. Now assume $\ell \ge 2$ and consider a collection of elements \eqref{eq:algind-g}. Let $\nu = (\mu_1,\dotsc,\mu_{\ell-1}) \in \N^{\ell-1}$. By Remark~\ref{rem:A-max-element-case}, we have \begin{equation} \label{eq:AB-reduction} A \cong B \otimes \F[t_\ell]/(t_\ell^{\mu_\ell+1}),\quad \text{where} \quad B = \F[t_1,\dotsc,t_{\ell-1}]/ \F \langle t^\omega \mid \omega \not \le \nu \rangle. \end{equation} By the inductive hypothesis, the collection \eqref{eq:algind-g} is algebraically independent if and only if the collection \begin{equation} \label{eq:pi-inductive-step} p^{(i)}_{k_i \nu - \lambda} \in S^{k_i}(\g \otimes B),\quad 1 \le i \le r,\ \lambda \in \N^{\ell-1},\ \lambda \le \nu, \end{equation} is algebraically independent. Now, note that $\g \otimes B$ is a finite-dimensional Lie algebra. Therefore, the $\ell=1$ case of the proposition implies that the collection \eqref{eq:pi-inductive-step} is algebraically independent if and only if \[ \left( p^{(i)}_{k_i \nu - (\lambda_1,\dotsc,\lambda_{\ell-1})} \right)_{k_i \mu_\ell - \lambda_\ell} \in S^{k_i}(\g \otimes A),\quad 1 \le i \le r,\ \lambda \in \Omega_1, \] are algebraically independent. By Lemma~\ref{lem:double-invariant-poly}, we have \[ \left( p^{(i)}_{k_i \nu - (\lambda_1,\dotsc,\lambda_{\ell-1})} \right)_{k_i \mu_\ell - \lambda_\ell} = p^{(i)}_{k_i \mu - \lambda} \quad \text{ for all $i$ and $\lambda$}, \] completing the proof of the inductive step. \end{proof} \begin{rem} \label{rem:generator-independent} It is clear from the definitions in Section~\ref{subsec:poly-defs} that, if $p \in S^k(\g \otimes A)$ is a product of the polynomials \eqref{eq:algind-g}, then, for $\omega \in \Omega_1$, $p_{k \mu - \omega}$ is a polynomial in the elements \eqref{eq:algind-gA}. Thus, the subalgebra $T_A$ of $S(\g \otimes A)$ generated by the polynomials \eqref{eq:algind-gA} depends only on the subalgebra $T$ of $S(\g)$ generated by the polynomials \eqref{eq:algind-g}, and not on the individual polynomials themselves. \end{rem} \section{Regular elements and bilinear forms} \subsection{Regular elements} Suppose $\fa$ is a finite-dimensional Lie algebra. For $f \in \fa^*$, we define \[ \fa^f = \{x \in \fa \mid x \cdot f = 0\} = \{x \in \fa \mid f([\fa,x])=0 \}. \] The \emph{index} of $\fa$ is defined to be \[ \chi(\fa) = \Inf \{\dim \fa^f \mid f \in \fa^*\}. \] We say that $f$ is \emph{regular} if $\dim \fa^f = \chi(\fa)$. For an element $x \in \fa$, we let \[ \fa^x = \{y \in \fa \mid [x,y]=0\} \] be the centralizer of $x$ in $\fa$. An element of $\fa$ is said to be \emph{regular} if its centralizer has minimal dimension. (If $\fa^*$ is identified with $\fa$ via an invariant nondegenerate bilinear form, this corresponds to the notion of regular element of $\fa^*$ given above.) \begin{prop} \label{prop:chi-regular} Let $\g$ be a finite-dimensional Lie algebra, $\mu \in \N^\ell$, and define \[ A = \F[t_1,\dotsc,t_\ell] / \F \langle t^\omega \mid \omega \not \le \mu \rangle. \] \begin{enumerate} \item \label{prop-item:chi} We have $\chi(\g \otimes A) = \chi(\g) \dim A$. \item \label{prop-item:regular} A linear form $F = \sum_{\omega \le \mu} f_\omega \otimes \epsilon^\omega$ on $\g \otimes A$ is regular if and only if $f_\mu$ is a regular linear form on $\g$. \end{enumerate} \end{prop} \begin{proof} We prove the result by induction on $\ell$. If $\ell=1$, the theorem is precisely \cite[Th.~2.8]{RT92}. Now assume $\ell \ge 2$, and let $\nu = (\mu_1,\dotsc,\mu_{\ell-1}) \in \N^{\ell-1}$. As in the proof of Proposition~\ref{prop:poly-alg-ind}, we have the isomorphism \eqref{eq:AB-reduction}. By the inductive hypothesis, we have \[ \chi(\g \otimes A) =\chi(\g \otimes B)(\mu_\ell + 1) = \chi(\g) (\dim B) (\mu_\ell + 1) = \chi(\g) \dim A, \] completing the inductive step in the proof of part~\eqref{prop-item:chi}. We now prove part~\eqref{prop-item:regular}. Using the isomorphism \eqref{eq:AB-reduction} to identify $A$ with $B \otimes \F[t_\ell]/(t_\ell^{\mu_\ell +1})$, we write \[ F = \sum_{\omega \le \mu} \left( f_\omega \otimes \epsilon^{(\omega_1,\dotsc,\omega_{\ell-1})} \right) \otimes \epsilon_\ell^{\omega_\ell}, \] where $\epsilon_\ell^n$, $0 \le n \le \mu_\ell$ is the dual basis to the basis $\tau_\ell^n$, $0 \le n \le \mu_\ell$ of $\F[t_\ell]/(t_\ell^{\mu_\ell+1})$. Then, by the $\ell=1$ case of the theorem, the linear form $F$ on $\g \otimes A$ is regular if and only if \[ \sum_{\omega \le \nu} f_{(\omega_1,\dotsc,\omega_{\ell-1},\mu_\ell)} \otimes \epsilon^{(\omega_1,\dotsc,\omega_{\ell-1})} \] is a regular form on $\g \otimes B$. By the inductive hypothesis, this form is regular if and only if $f_\mu$ is a regular form on $\g$. This completes the proof of the inductive step. \end{proof} \subsection{Bilinear forms} In this subsection, we assume that $\Omega_1$ has a greatest element $\mu$. Suppose \[ \kappa \colon \g \times \g \to \F \] is a bilinear form on $\g$. We extend $\kappa$ to a bilinear map \begin{equation} \label{eq:kappa-Omega-def} \kappa^\Omega \colon \left( \g \otimes \F[\Omega] \right) \times \left( \g \otimes \F[\Omega] \right) \to \F[\Omega],\quad \kappa^\Omega (x \otimes q^\omega, y \otimes q^\gamma) = \kappa(x,y) q^{\omega + \gamma}, \end{equation} extended by bilinearity. For any $\omega \in \Omega$, we can compose $\kappa^\Omega$ with the projection onto the $q^\omega$-component to obtain a bilinear form $\kappa^\Omega_\omega$. More precisely, we have \begin{equation} \label{eq:kappa-Omega-decomp} \kappa^\Omega = \sum_{\omega \in \Omega} \kappa_\omega^\Omega q^\omega, \end{equation} where, for $\omega \in \Omega$, we have \[ \kappa_\omega^\Omega \colon (\g \otimes \F[\Omega]) \times (\g \otimes \F[\Omega]) \to \F,\quad \kappa_\omega^\Omega \left( \sum_{\nu \in \Omega} x_\nu \otimes q^\nu, \sum_{\nu \in \Omega} y_\nu \otimes q^\nu \right) = \sum_{\nu + \nu' = \omega} \kappa(x_\nu,y_{\nu'}). \] Using the injection $\imath$ of \eqref{eq:imath-def}, we have the corresponding bilinear forms on $\g \otimes A$. Precisely, for $\omega \in \Omega$, we have \[ \kappa_\omega \colon (\g \otimes A) \times (\g \otimes A) \to \F,\quad \kappa_\omega \left( \sum_{\nu \in \Omega_1} x_\nu \otimes \tau^\nu, \sum_{\nu \in \Omega_1} y_\nu \otimes \tau^\nu \right) = \sum_{\nu + \nu' = \omega} \kappa(x_\nu,y_{\nu'}). \] \begin{lem} \label{lem:bilinear-form-properties} The bilinear forms defined above have the following properties. \begin{enumerate} \item \label{lem-item:form-symmetric} The forms $\kappa^\Omega_\omega$ are symmetric for all $\omega \in \Omega$ if and only if $\kappa$ is symmetric. \item \label{lem-item:form-invariant} The forms $\kappa^\Omega_\omega$ are invariant for all $\omega \in \Omega$ if and only if $\kappa$ is invariant. \item \label{lem-item:form-nondegen} The form $\kappa$ is nondegenerate if and only if $\kappa_\mu$ is nondegenerate. \end{enumerate} \end{lem} \begin{proof} Part~\eqref{lem-item:form-symmetric} follows immediately from \eqref{eq:kappa-Omega-decomp} and \eqref{eq:kappa-Omega-def}. \details{ Suppose $\kappa$ is symmetric. Then $\kappa^\Omega$ is symmetric by \eqref{eq:kappa-Omega-def}. Hence the $\kappa^\Omega_\omega$ are symmetric by \eqref{eq:kappa-Omega-decomp}. Now suppose the $\kappa^\Omega_\omega$ are symmetric. Then $\kappa^\Omega$ is symmetric by \eqref{eq:kappa-Omega-decomp}. Since $\kappa$ is simply the restriction of $\kappa^\Omega$ to $\g \subseteq \g \otimes \F[\Omega]$, it follows that $\kappa$ is symmetric. } To prove part~\eqref{lem-item:form-invariant}, suppose $\kappa$ is invariant. Then, for all $x,y,z \in \g$ and $\omega, \nu, \lambda \in \Omega$, we have \[ \kappa^\Omega([x \otimes q^\omega,y \otimes q^\nu],z \otimes q^\lambda) - \kappa^\Omega(x \otimes q^\omega, [y \otimes q^\nu, z \otimes q^\lambda]) = \big( \kappa([x,y],z) - \kappa(x,[y,z]) \big) q^{\omega+\nu+\lambda} = 0. \] Thus, $\kappa^\Omega$ is invariant. Conversely, suppose $\kappa^\Omega$ is invariant. Then, since $\kappa$ is simply the restriction of $\kappa^\Omega$ to $\g$, it follows that $\kappa$ is invariant. The fact that the forms $\kappa^\Omega_\omega$, $\omega \in \Omega$, are invariant if and only if $\kappa^\Omega$ is invariant follows immediately from \eqref{eq:kappa-Omega-decomp}. This completes the proof of part~\eqref{lem-item:form-invariant}. To prove part~\eqref{lem-item:form-nondegen}, assume $\kappa$ is nondegenerate and fix an arbitrary nonzero element $\sum_{\omega \in \Omega_1} x_\omega \otimes \tau^\omega \in \g \otimes A$. Choose $\nu$ such that $x_\nu \ne 0$. Since $\kappa$ is nondegenerate, there exists $y \in \g$ such that $\kappa(x_\nu,y) \ne 0$. Since $\mu$ is a greatest element, we have $\mu - \nu \in \Omega_1$, and \[ \kappa_\mu \left( \sum_{\omega \in \Omega_1} x_\omega \otimes \tau^\omega, y \otimes \tau^{\mu-\nu} \right) = \kappa(x_\nu,y) \ne 0. \] Thus $\kappa_\mu$ is nondegenerate. Conversely, assume $\kappa_\mu$ is nondegenerate and fix an arbitrary nonzero element $x \in \g$. Then there exists $y \otimes \tau^\mu \in \g \otimes A$ such that \[ \kappa(x,y) = \kappa_\mu(x,y \otimes \tau^\mu) \ne 0. \] So $\kappa$ is nondegenerate. \end{proof} Recall that a quadratic Lie algebra is a Lie algebra $\g$, together with a symmetric, nondegenerate, invariant, bilinear form. \begin{cor} If $\g$ is a quadratic Lie algebra, then so is $\g \otimes A$. \end{cor} \begin{proof} It follows immediately from Lemma~\ref{lem:bilinear-form-properties} that if $\kappa$ is a symmetric, nondegenerate, invariant, bilinear form on $\g$, then $\kappa_\mu$ is a symmetric, nondegenerate, invariant, bilinear form on $\g \otimes A$. \end{proof} \begin{rem} \label{rem:pairing-identification} Suppose $\kappa$ is a symmetric, nondegenerate, invariant, bilinear form on $\g$. Via the form $\kappa_\mu$, we can identify elements of $\g \otimes A_\omega$ with elements of $(\g \otimes A)^*_{\mu - \omega}$, for all $\omega \in \Omega_1$. In particular, we have the following. \begin{enumerate} \item \label{rem-item:regular} By Proposition~\ref{prop:chi-regular}\eqref{prop-item:regular}, an element $\sum_{\omega \in \Omega_1} x_\omega \otimes \tau^\omega$ of $\g \otimes A$ is regular if and only if $x_0$ is a regular element of $\g$. \details{ Let $X = \sum_{\omega \in \Omega_1} x_\omega \otimes \tau^\omega$ and $F = \sum_{\omega \in \Omega_1} f_\omega \otimes \epsilon^\omega \in (\mathfrak g \otimes A)^*$ denote the linear form $\kappa_\mu (X , -)$. Since $\kappa$ is bilinear, we have $f_\omega = \kappa (x_{\mu-\omega}, -)$ for all $\omega \in \Omega_1$. Moreover, since $\kappa_\mu$ is nondegenerate and invariant, we have $(\mathfrak g \otimes A)^F = (\mathfrak g \otimes A)^X$. By Proposition~\ref{prop:chi-regular}\eqref{prop-item:regular}, $F$ is regular; that is, $(\mathfrak g \otimes A)^F$ has dimension $\chi(\mathfrak g \otimes A)$, if and only if $f_\mu = \kappa(x_0, -)$ is regular. Since $\kappa$ is also nondegenerate and invariant, we have $\mathfrak g^{f_\mu} = \mathfrak g^{x_0}$. Thus $f_\mu$ is regular if and only if $x_0$ is regular. } \item \label{rem-item:polys} Suppose $p^{(j)} \in S^{k_j}(\g^*)^\g$ for $j \in \{1,\dotsc,r\}$. Then, by Proposition~\ref{prop:pgamma-invariant} and Lemma~\ref{lem:index-set-max-element}, the polynomials $p^{(j)}_\omega \in S^{k_j} \big( (\g \otimes A)^* \big)$, $\omega \in \Omega_1$, $j \in \{1,\dotsc,r\}$, lie in $S \big( (\g \otimes A)^* \big)^{\g \otimes A}$. By Proposition~\ref{prop:poly-alg-ind}, the $p^{(j)}_\omega$ are algebraically independent if and only if the $p^{(j)}$ are algebraically independent. \end{enumerate} \end{rem} \section{The semisimple case} In this section we assume $\g$ is semisimple and $\F$ is algebraically closed (still of characteristic zero). Recall that a \emph{regular} element of $\g$ is an element whose centralizer has the minimal dimension $\chi(\g)$. An $\fsl_2$-triple is said to be \emph{principal} if its elements are regular. Fix a principal $\fsl_2$-triple $(x_+,x_-,h)$ of $\g$. (For a proof that principal $\fsl_2$-triples always exists, see, for instance, \cite[Ch.~VIII, \S11, no.~4, Prop.~8]{Bou05}.) We let \[ \ft_0 = x_+ + \g^{x_-} \] be the associated transversal slice. We collect some important well-known properties of this slice in the following lemma. \begin{lem} \label{lem:slice-properties} The transversal slice defined above has the following properties. \begin{enumerate} \item \label{lem-item:slice-regular} Every element of $\ft_0$ is a regular element of $\g$. \item \label{lem-item:orbits-meet-slice} The orbit under the adjoint action of every regular element of $\g$ intersects $\ft_0$ at a unique point, and this intersection is transversal. That is, we have \[ \g = \g^{x_-} \oplus [\g,x] \quad \text{for all } x \in \ft_0. \] \item \label{lem-item:restriction-isom} Let $R_0 \colon S(\g^*) \to S(\ft_0^*) = \F[\ft_0]$ be the operation of restriction of polynomial functions on $\g$ to polynomial functions on $\ft_0$. Then the restriction of $R_0$ to invariant polynomials yields an isomorphism of associative algebras $S(\g^*)^\g \cong \F[\ft_0]$. \end{enumerate} \end{lem} \begin{proof} A proof of part~\eqref{lem-item:slice-regular} can be found in \cite[Lem.~10 and Lem.~12]{Kos63}. Part~\eqref{lem-item:orbits-meet-slice} follows from \cite[Th.~8]{Kos63}. Part~\eqref{lem-item:restriction-isom} is \cite[Th.~7]{Kos63}. Although the paper \cite{Kos63} works over the field of complex numbers, the proofs are valid over arbitrary algebraically closed fields of characteristic zero. \end{proof} It is clear that $\g^{x_-} \otimes A$ is the centralizer of $x_- \otimes 1$ in $\g \otimes A$. We define the affine space \[ \ft = x_+ \otimes 1 + \g^{x_-} \otimes A \subseteq \g \otimes A. \] By Lemma~\ref{lem:slice-properties}\eqref{lem-item:slice-regular} and Remark~\ref{rem:pairing-identification}\eqref{rem-item:regular}, $\ft$ consists of regular elements of $\g \otimes A$. We let \[ R \colon S \big( (\g \otimes A)^* \big) \to S(\ft^*) = \F[\ft] \] denote the restriction of polynomial functions on $\g \otimes A$ to polynomial functions on $\ft$. The following result is a generalization of \cite[Lem.~4.2]{RT92}. \begin{prop} \label{prop:R-injection} \begin{enumerate} \item \label{prop-item:adjoint-orbits-meet-t} Let $X$ be a regular element of $\g \otimes A$. Then the orbit of $X$ under the adjoint action meets $\ft$. \item \label{prop-item:R-injection} The restriction of $R$ to $S \big( (\g \otimes A)^* \big)^{\g \otimes A}$ yields an injection of $S \big( (\g \otimes A)^* \big)^{\g \otimes A}$ into $\F[\ft]$. \end{enumerate} \end{prop} \begin{proof} Part~\eqref{prop-item:R-injection} clearly follows from part~\eqref{prop-item:adjoint-orbits-meet-t}. To prove part~\eqref{prop-item:adjoint-orbits-meet-t}, let $X = \sum_{\omega \in \Omega_1} x_\omega \otimes \tau^\omega$ be a regular element of $\g \otimes A$. By Remark~\ref{rem:pairing-identification}\eqref{rem-item:regular}, $x_0$ is a regular element of $\g$. By Lemma~\ref{lem:slice-properties}\eqref{lem-item:orbits-meet-slice}, there exists an element $g$ of the adjoint group (i.e.\ group of inner automorphisms) of $\g$ such that $g(x_0) \in \ft_0$. Since the linear map $g \otimes \id_A$ is an element of the adjoint group of $\g \otimes A$, we may assume without loss of generality that $x_0 \in \ft_0$. Therefore, by Lemma~\ref{lem:slice-properties}\eqref{lem-item:orbits-meet-slice}, we have \begin{equation} \label{eq:R-injection-g-decomp} \g = \g^{x_-} \oplus [\g,x_0]. \end{equation} To complete the proof, we want to show that, perhaps after acting by some element in the adjoint group, we have $x_\omega \in \g^{x_-}$ for all $\omega \in \Omega_1 \setminus \{0\}$. Let $\Omega_1'$ be a subset of $\Omega_1 \setminus \{0\}$ such that \begin{gather} x_\omega \in \g^{x_-} \quad \text{for all } \omega \in \Omega_1',\quad \text{and} \label{orbit-cond1} \\ \omega \in \Omega_1',\ 0 < \lambda \le \omega \implies \lambda \in \Omega_1'. \label{orbit-cond2} \end{gather} If $\Omega_1' = \Omega_1 \setminus \{0\}$, we are done. Therefore, assume $\Omega_1' \ne \Omega_1 \setminus \{0\}$, and let $\nu$ be a minimal element of $\Omega_1 \setminus \big( \Omega_1' \cup \{0\} \big)$. By \eqref{eq:R-injection-g-decomp}, there exists $z \in \g$ such that $x_\nu + [z,x_0] \in \g^{x_-}$. Then we have \begin{align*} X' := \exp \big( \ad (z \otimes \tau^\nu) \big) (X) &= \sum_{\omega \not \ge \nu} x_\omega \otimes \tau^\omega + \big( x_\nu + [z,x_0] \big) \otimes \tau^\nu \mod \g \otimes A_{> \nu} \\ &= \sum_{\omega \not \ge \nu} x_\omega \otimes \tau^\omega + x_\nu' \otimes \tau^\nu \mod \g \otimes A_{> \nu}, \end{align*} for some $x_\nu' \in \g^{x_-}$. If $X' = \sum_{\omega \in \Omega_1} x_\omega' \otimes \tau^\omega$, then $x'_\omega = x_\omega$ for all $\omega \not \ge \nu$ (in particular, for all $\omega \in \Omega_1'$), and so $\Omega_1' \cup \{\nu\}$ satisfies \eqref{orbit-cond1} and \eqref{orbit-cond2}. Since $\Omega_1$ is finite, part~\eqref{prop-item:adjoint-orbits-meet-t} of the proposition follows by induction on the size of $\Omega_1'$ (the base case being $\Omega_1' = \varnothing$). \end{proof} For the remainder of this section, we assume that \begin{center} $\Omega_1$ has a greatest element $\mu$. \end{center} By \cite[Th.~6]{Kos63} we can choose a basis $(u_1,\dotsc,u_r)$ of $\g^{x_-}$ and a system $(p^{(1)},\dotsc,p^{(r)})$ of homogeneous, algebraically independent generators of $S(\g^*)^\g$ such that $p^{(j)} \in S^{k_j}(\g^*)^\g$, $k_j \in \N_+$, and \begin{equation} p^{(j)} \left( x_+ + \sum_{i=1}^r c_i u_i \right) = c_j,\quad \text{for all } c_1,\dotsc,c_r \in \F. \end{equation} \details{ For the notation used in \cite[Th.~6]{Kos63}, see \cite[Th.~5]{Kos63} and the beginning of \cite[\S4.6]{Kos63}. } In other words \[ p^{(j)}(x) = u_j^*(x - x_+) \quad \text{for all } x \in \ft_0, \] where $(u_j^*)_j$ is the dual basis to $(u_j)_j$. Consider the basis of $\g^{x_-} \otimes A$ \[ (U_{i,\omega})_{i \in \{1,\dotsc,r\},\, \omega \in \Omega_1},\quad U_{i,\omega} = u_i \otimes \tau^\omega, \] and let $(U_{i,\omega}^*)$ denote the corresponding dual basis. Then we have a system of coordinates $(\varepsilon_{i,\omega})_{i \in \{1,\dotsc,r\},\, \omega \in \Omega_1}$ on $\ft$ given by \begin{equation} \label{eq:varepsilon-U*} \varepsilon_{i,\omega}(X) = U_{i,\omega}^* (X - x_+ \otimes 1),\quad i \in \{1,\dotsc,r\},\ \omega \in \Omega_1. \end{equation} Thus, we have \[ X = x_+ \otimes 1 + \sum_{\omega \in \Omega_1} \sum_{i=1}^r \varepsilon_{i,\omega}(X) u_i \otimes \tau^\omega,\quad \text{for all } X \in \ft. \] Suppose $V$ is a vector space and $f \in V^*$. Then we can endow $V$ with the structure of an $S(V)$-module by defining \[ p \cdot v = p(f)v,\quad p \in S(V),\ v \in V. \] Let $D_f$ be the unique $f$-derivation of $S(V)$ into $V$ satisfying $D_f(v) = v$ for all $v \in V$. (Thus, the Leibniz rule is $D_f(xy) = D_f(x) f(y) + f(x) D_f(y)$.) More explicitly, $D_f$ is the unique linear map $S(V) \to V$ such that $D_f(\F) = 0$ and \[ D_f \big( v_1^{n_1} \dotsm v_k^{n_k} \big) = \sum_{i=1}^k n_i f(v_1)^{n_1} \dotsm f(v_{i-1})^{n_{i-1}} f(v_i)^{n_i-1} f(v_{i+1})^{n_{i+1}} \dotsm f(v_k)^{n_k} v_i, \] for all $v_1,\dotsc,v_k \in V$ and $n_1,\dotsc,n_k \in \N_+$. Note that for $p \in S(V)$ and $f, g \in V^*$, we have \begin{equation} \label{eq:derivative-expression} \big( D_f(p) \big)(g) = \left. \frac{d}{dt} \right|_{t=0} p(f + tg). \end{equation} The following result is a generalization of \cite[Lem.~4.4]{RT92}. \begin{lem} \label{lem:restriction} For all $i,j \in \{1,\dotsc,r\}$, $\lambda, \omega \in \Omega_1$, and $X \in \ft$, we have \begin{gather} R \left( p^{(j)}_\omega \right) = \varepsilon_{j,\omega},\quad \text{and} \label{eq:restriction-coordinates} \\ \left( D_X \left( p^{(j)}_\omega \right) \right) (U_{i,\lambda}) = \delta_{i,j} \delta_{\lambda,\omega}. \label{eq:derivative-coordinates} \end{gather} \end{lem} \begin{proof} We have \[ p^{(j)} \big( \imath (x_+ \otimes 1 + u_i \otimes \tau^\lambda) \big) = p^{(j)} \big( x_+ \otimes 1 + u_i \otimes q^\lambda \big) = \delta_{i,j} q^\lambda. \] \details{ In the expression $p^{(j)} \big( x_+ \otimes 1 + u_i \otimes q^\lambda \big)$, we view $p^{(j)}$ as a polynomial function $\g \otimes \F[\Omega] \to \F[\Omega]$, as explained in Section~\ref{subsec:poly-funcs-adjoint}. Viewing $\F[\Omega]$ as a polynomial algebra in $q_1,\dotsc,q_\ell$ as described before Corollary~\ref{cor:p-gamma-deriv-expression}, we can evaluate elements of $\F[\Omega]$ at $a=(a_1,\dotsc,a_\ell) \in \F^\ell$. Let $\ev_a$ denote this evaluation. Then, we have \[ p^{(j)} \circ \ev_a = \ev_a \circ p^{(j)}. \] Therefore, \[ \ev_a \circ p^{(j)} \big( x_+ \otimes 1 + u_i \otimes q^\lambda \big) = p^{(j)} \circ \ev_a \big( x_+ \otimes 1 + u_i \otimes q^\lambda \big) = p^{(j)} \big( x_+ + a^\lambda u_i \big) = \delta_{i,j} a^\lambda = \ev_a \big( \delta_{i,j} q^\lambda \big). \] It follows that $p^{(j)} \big( x_+ \otimes 1 + u_i \otimes q^\lambda \big) = \delta_{i,j} q^\lambda$ since two functions $p,p'$ on $\ft_0 \otimes \F[\Omega]$ are equal if and only if $\ev_a \circ p$ and $\ev_a \circ p'$ are equal as functions on $\ft_0$. } It then follows from Lemma~\ref{lem:p-jmath-expansion} that \[ p_\omega^{(j)} \big( x_+ \otimes 1 + u_i \otimes \tau^\lambda \big) = \delta_{\omega,\lambda} \delta_{i,j}, \] proving \eqref{eq:restriction-coordinates}. To prove \eqref{eq:derivative-coordinates}, we compute \begin{multline*} \left( D_X \left( p^{(j)}_\omega \right) \right) (U_{i,\lambda}) \stackrel{\eqref{eq:derivative-expression}}{=} \left. \frac{d}{dt} \right|_{t=0} p^{(j)}_\omega (X + t U_{i,\lambda} ) \stackrel{\eqref{eq:restriction-coordinates}}{=} \left. \frac{d}{dt} \right|_{t=0} \varepsilon_{j,\omega} (X + t U_{i,\lambda} ) \\ \stackrel{\eqref{eq:varepsilon-U*}}{=} \left. \frac{d}{dt} \right|_{t=0} U_{j,\omega}^* (X - x_+ \otimes 1 + t U_{i,\lambda} ) = \delta_{i,j} \delta_{\lambda,\omega}. \qedhere \end{multline*} \end{proof} We can now state our main result. The special case $\ell=1$ was established in \cite[Th.~4.5]{RT92}. \begin{theo} \label{theo:inv-polys} Recall that $\g$ is a semisimple Lie alegbra, $\F$ is an algebraically closed field of characteristic zero, $\mu \in \N^\ell$, and $A = \F[t_1,\dotsc,t_\ell] / (t_1^{\mu_1+1},\dotsc,t_\ell^{\mu_\ell+1})$. \begin{enumerate} \item \label{theo-item:restriction-isom} The restriction $R$ induces an isomorphism of algebras $S \big( (\g \otimes A)^* \big)^{\g \otimes A} \to S(\ft^*) = \F[\ft]$. \item \label{theo-item:inv-poly-gen-set} The polynomials $p_\omega^{(j)} \in S^{k_j}\big( (\g \otimes A)^* \big)$, $\omega \in \Omega_1$, $j \in \{1,\dotsc,r\}$, form a system of algebraically independent generators of $S \big( (\g \otimes A)^* \big)^{\g \otimes A}$. \item The orbit under the adjoint action of every regular element of $\g \otimes A$ intersects $\ft$ at a unique point, and this intersection is transversal. That is, we have \[ \g \otimes A = \left( \g^{x_-} \otimes A \right) \oplus [\g \otimes A, X] \quad \text{for all } X \in \ft. \] \end{enumerate} \end{theo} \begin{proof} \begin{asparaenum} \item Since $p_\omega^{(j)} \in S \big( (\g \otimes A)^* \big)^{\g \otimes A}$ for all $\omega \in \Omega_1$ and $j \in \{1,\dotsc,r\}$, it follows from Lemma~\ref{lem:restriction} that $R \left( S \big( (\g \otimes A)^* \big)^{\g \otimes A} \right) = \F[\ft]$. Proposition~\ref{prop:R-injection}\eqref{prop-item:R-injection} then implies that $R$ induces an isomorphism of algebras $S \big( (\g \otimes A)^* \big)^{\g \otimes A} \to S(\ft^*) = \F[\ft]$. \item This follows immediately from part~\eqref{theo-item:restriction-isom} and Remark~\ref{rem:pairing-identification}\eqref{rem-item:polys}. \item Suppose $X$ is a regular element of $\g \otimes A$. By Proposition~\ref{prop:R-injection}\eqref{prop-item:adjoint-orbits-meet-t}, there exists a point $X'$ in the intersection of $\ft$ and the orbit of $X$ under the adjoint action. Then we have \[ p_\omega^{(j)}(X) = p_\omega^{(j)}(X') \stackrel{\eqref{eq:restriction-coordinates}}{=} \varepsilon_{j,\omega}(X') \quad \text{for all } \omega \in \Omega_1,\ j \in \{1,\dotsc,r\}, \] where the first equality holds since $p_\omega^{(j)}$ is $\g \otimes A$-invariant by Remark~\ref{rem:pairing-identification}\eqref{rem-item:polys}. It follows that \[ X' = x_+ \otimes 1 + \sum_{\omega \in \Omega_1} \sum_{j=1}^r p_\omega^{(j)}(X) u_j \otimes \tau^\omega, \] and so the intersection point $X'$ is unique. It remains to prove transversality. Choose $X \in \ft$. Then $X$ is a regular element of $\g \otimes A$, and so we have \[ \dim [\g \otimes A, X] + \dim \big( \g^{x_-} \otimes A \big) = \dim \g \otimes A. \] \details{ Consider the adjoint action of $X$ on $\g \otimes A$. The image of this action is $[\g \otimes A, X]$, and the kernel is $(\g \otimes A)^X$. Thus, by the Rank-Nullity Theorem, we have \[ \dim [\g \otimes A, X] + \dim (\g \otimes A)^X = \dim \g \otimes A. \] By Remark~\ref{rem:pairing-identification}\eqref{rem-item:regular}, $x_- \otimes 1$ is a regular element of $\g \otimes A$. Since $X$ is also a regular element of $\g \otimes A$, we have $\dim (\g \otimes A)^X = \dim (\g \otimes A)^{x_- \otimes 1} = \dim \g^{x_-} \otimes A$. The claim follows. } Therefore, it suffices to prove that $[\g \otimes A,X] \cap \big( \g^{x_-} \otimes A \big) = \{0\}$. Suppose $Y \in [\g \otimes A,X] \cap \big( \g^{x_-} \otimes A \big)$. Then there exist $c_{j,\omega} \in \F$ such that $Y = \sum_{j,\omega} c_{j, \omega} U_{j,\omega}$. On the other hand, every $P \in S \big( (\g \otimes A)^* \big)^{\g \otimes A}$ is constant on orbits under the adjoint action, and thus $(D_X P)(Y) = 0$, since $Y \in [\g \otimes A,X]$. \details{ For all $t \in \F$, since $tY \in [\g \otimes A,X]$, there is an element $g_t$ of the adjoint group of $\g \otimes A$ such that $g_t \cdot X = X + tY + O(t^2)$. Then, by \eqref{eq:derivative-expression}, we have \[ (D_X P)(Y) = \left. \frac{d}{dt} \right|_{t=0} P(X + tY) = \left. \frac{d}{dt} \right|_{t=0} P(g_t \cdot X) = \left. \frac{d}{dt} \right|_{t=0} P(X) = 0. \] } Therefore, for all $\lambda \in \Omega_1$, $p \in S(\g^*)^\g$, and $i \in \{1,\dotsc,r\}$, we have \[ 0 = \left( D_X \left( p_\lambda^{(i)} \right) \right) (Y) = \sum_{j,\omega} c_{j,\omega} \left( D_X \left( p_\lambda^{(i)} \right) \right) \left( U_{j,\omega} \right) = c_{i,\lambda}, \] where the last equality follows from \eqref{eq:derivative-coordinates}. Thus, $Y=0$, completing the proof. \qedhere \end{asparaenum} \end{proof} The Killing form $\kappa$ induces an isomorphism of vector spaces $K_\kappa \colon \g \to \g^*$ given by $K_\kappa (x) = \kappa (x, -)$. This induces an algebra isomorphism $K_\kappa \colon S(\g) \to S(\g^*)$. For each $j \in \{ 1, \dotsc, r \}$, let $\rho^{(j)} = K_\kappa^{-1} \left( p^{(j)} \right) \in S(\g)^\g$. Theorem~\ref{theo:inv-polys}\eqref{theo-item:inv-poly-gen-set} then implies the following. \begin{cor} \label{cor:inv-poly-gen-set} With notation as in Theorem~\ref{theo:inv-polys}, the polynomials $\rho_\omega^{(j)} \in S^{k_j} (\g \otimes A)$, $\omega \in k_j \mu - \Omega_1$, $j \in \{ 1, \dotsc, r \}$, form a system of algebraically independent generators of $S (\g \otimes A)^{\g \otimes A}$. \end{cor} \begin{eg} Consider the case $\g = \fsl_2$, and let $\{x_+,x_-,h\}$ be the standard Chevalley basis. The Casimir element $c = \frac{1}{64} h^2 + \frac{1}{32} x_- x_+ + \frac{1}{32} x_+ x_-$, which generates the center of $U(\g)$ as an algebra, corresponds to the polynomial function $\rho = \frac{1}{64} \left( h^2 + 4 x_- x_+ \right) \in S(\g)^\g$. Now, given $\ell > 0$ and $\mu \in \N^\ell$, let $A = \F [t_1, \dotsc, t_\ell] / \F \langle t^\omega \mid \omega \not\le \mu \rangle$. By Corollary~\ref{cor:inv-poly-gen-set}, the polynomials \[ \rho_{2\mu - \omega} = \sum_{0 \le \gamma \le \omega} \big( (h \otimes \tau^{\mu - \gamma}) (h \otimes \tau^{\mu - \omega + \gamma}) + 4 (x_- \otimes \tau^{\mu - \gamma}) (x_+ \otimes \tau^{\mu - \omega + \gamma}) \big),\quad \omega \in \N^\ell,\ \omega \le \mu, \] form a system of algebraically independent generators of $S (\g \otimes A)^{\g \otimes A}$. Now, the dual basis $\{ x_+^*, x_-^*, h^*\}$ of $\g^*$ is identified with $\left\{ \frac 1 4 x_-, \frac 1 4 x_+, \frac 1 8 h \right\}$ via the Killing form, and the Casimir element $c$ corresponds to the polynomial function $p = (h^*)^2 + x_-^* x_+^* \in S(\g^*)^\g$ (see \cite[Example~23.3]{Hum78}). By Theorem~\ref{theo:inv-polys}\eqref{theo-item:inv-poly-gen-set}, the polynomials \[ p_{\omega} = \sum_{0 \le \gamma \le \omega} \big( (h^* \otimes \epsilon^\gamma) (h^* \otimes \epsilon^{\omega - \gamma}) + (x_-^* \otimes \epsilon^\gamma) (x_+^* \otimes \epsilon^{\omega - \gamma}) \big),\quad \omega \in \N^\ell,\ \omega \le \mu, \] form a system of algebraically independent generators of $S\big( (\g \otimes A)^* \big)^{\g \otimes A}$. \end{eg} As an application of Theorem~\ref{theo:inv-polys}, we have the following result. \begin{theo} \label{theo:center-acts-trivially} If $\mu > 0$ (i.e.\ $A \ne \F$), then the center of $U(\g \otimes A)$ acts by the restriction of the augmentation map $U(\g \otimes A) \to \F$ on any irreducible finite-dimensional module. In particular, all irreducible finite-dimensional modules have the same central character. \end{theo} \begin{proof} Let $\varphi$ be an irreducible finite-dimensional representation of $\g \otimes A$. By \cite[Prop.~10]{CFK10} or \cite[Cor.~5.8]{NSS12}, $\varphi$ is an evaluation representation. In other words, $\varphi$ factors through the Lie algebra homomorphism $\g \otimes A \twoheadrightarrow \g \otimes A/\sm$, where $\sm = (\tau_1,\dotsc,\tau_\ell)$ is the unique maximal ideal of $A$. In particular, $\g \otimes \sm$ acts by zero on the corresponding module. Consider the $\F$-linear symmetrization map \[ \Psi \colon S(\g \otimes A) \to U(\g \otimes A),\quad X_1 \dotsm X_n \mapsto \frac{1}{n!} \sum_{\sigma \in \mathfrak{S}_n} X_{\sigma(1)} \dotsm X_{\sigma(n)}, \] where $\mathfrak{S}_n$ denotes the symmetric group on the set $\{1,\dotsc,n\}$ and $U(\g \otimes A)$ denotes the universal enveloping algebra of $\g \otimes A$. The map $\Psi$ restricts to an isomorphism of vector spaces from $S(\g \otimes A)^{\g \otimes A}$ to the center $Z(\g \otimes A)$ of $U(\g \otimes A)$. \details{ See, for example: D. Calaque and C. A. Rossi. \emph{Lectures on Duflo isomorphisms in Lie algebra and complex geometry}. EMS Series of Lectures in Mathematics. European Mathematical Society (EMS), Z\"urich, 2011. } Since $\mu > 0$, it follows from Corollary~\ref{cor:inv-poly-gen-set} that $S(\g \otimes A)^{\g \otimes A} \subseteq S(\g \otimes \sm)$. Thus \[ Z(\g \otimes A) = \Psi \left( S(\g \otimes A)^{\g \otimes A} \right) \subseteq \Psi\big( S(\g \otimes \sm) \big) \subseteq U(\g \otimes \sm). \] The result follows. \end{proof} \begin{rem} In spite of Theorem~\ref{theo:center-acts-trivially}, the center of $U(\g \otimes A)$ does not necessarily act by the restriction of the augmentation map on all finite-dimensional modules, since the category of such modules is not semisimple in general. For example, in the adjoint representation $\fsl_2 \otimes \F[t]/(t^2)$, the center does not act by the restriction of the augmentation map. \end{rem} \bibliographystyle{alpha}
\section{Introduction} The increasing availability of large amounts of diverse types of data in all scientific fields has prompted an explosion in applications of methods that combine multiple sources of evidence using (Bayesian) graphical models \citep[for example,][]{MoranClark2011,Commenges:2012gv,Shubin2016,Birrell2016}. Such evidence synthesis methods have several advantages \citep{Ades:2006tw,Welton:2012,Jackson2015}: resulting estimates are typically more precise, due to the increased amount of information; they are consistent with all available knowledge; and the risk of potential biases introduced if estimation relies on a `best quality' subset is minimised. However, dealing with joint models of several sources of evidence, including data and expert opinion, may be inferentially imprudent, computationally challenging, or even infeasible. It is often sensible to take a modular approach, where separate submodels are specified for smaller components of the available data, facilitating computation and, importantly, allowing insight into the influence of each submodel on the joint model inference \citep{hssIntroduction2003, Liu:2009hm}. These submodels can originate in two ways: either by first specifying submodels that, in a Bayesian framework, should be \emph{joined} in a single model to allow all information and uncertainty to be fully propagated; or as a result of \emph{splitting} an existing joint model. \begin{figure}[t] \centering \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link) at (0, 1.5) {\(\phi\)}; \node[ellipse, draw] (model1) at (-2, 0) {\(\psi_{1}, Y_{1}\)}; \node[ellipse, draw] (modelM) at (2, 0) {\(\psi_{M}, Y_{M}\)}; \node (dots) at (0, 0) {\dots}; \draw[->] (link) -- (model1); \draw[->] (link) -- (modelM); \end{tikzpicture} \caption{DAG representation of a joint hierarchical model linking \(M\) submodels.} \label{fig:markov-combination} \end{figure} Formally, consider $M$ probability submodels $p_m(\phi,\psi_m,Y_m)$, $m=1,\ldots,M$, for sub\-model-specific multivariate parameters $\psi_m$ and observable random variables $Y_m$, as well as a multivariate parameter $\phi$ common to all submodels that acts as a `link' between the submodels. The problem is then to {\em join\/} the submodels into a single model \(p_{\mathrm{comb}}(\phi, \psi_1, \ldots ,\psi_M, \allowbreak Y_1, \ldots ,Y_M)\) so that the posterior distributions for the link parameter \(\phi\) and the submodel-specific parameters \(\psi_{m}\) account for all observations and uncertainty. A suitable joint model for a collection of submodels naturally arises in some contexts from standard model constructs, such as a hierarchical model (Figure~\ref{fig:markov-combination}). However, it is not immediately clear how to form such a joint model when either: the submodels are not expressed in a form conditional upon the link parameter \(\phi\), particularly if the link parameter is a non-invertible deterministic function of the other parameters; or the prior marginal distributions \(p_m(\phi)\), \(m=1, \ldots, M\), for the link parameter \(\phi\) differ in the submodels. In applied research, convenient approximate two-stage approaches have been widely used, where one submodel is fitted and an approximation of the resulting posterior is provided to a second submodel \citep{Jackson:2009km, Presanis:2014em}. However, the joint model that is implied by such an approach is unclear \citep{EddyEtAl1992, Ades:2006tw}. Conversely, suppose a joint model \(p(\phi,\psi_1,\ldots,\psi_M,Y_1,\ldots,Y_M)\) exists that needs {\em splitting\/} into $M$ submodels $p_m(\phi,\psi_m,Y_m)$, $m=1,\ldots,M$. The submodels should be faithful to the original model in the sense that joining the submodels results in the original model. In some contexts, suitable submodels arise naturally from the structure of the joint model, resulting in splitting strategies used implicitly in the context of hierarchical models \citep{Lunn:2013uo, Tom:2010uf, Liang:2007fi} and of tall data \citep{Scott:2013wza, Neiswanger:2013ug}. However, neither the general conditions stipulating when splitting is permissible nor a general framework for splitting a model are immediately clear. In this paper we introduce {\em Markov melding\/}, a simple, generic approach for joining and splitting models that clarifies and generalises various proposals made in the literature under the umbrella of one theoretical framework. Markov melding builds on the theory of {\em Markov combination\/} \citep{Dawid:1993fc} and \emph{super Markov combination} \citep{Massa:2010uf, Massa:2017bz} and combines it with ideas from {\em Bayesian melding\/} \citep{Poole:2000ee}, enabling evidence synthesis \citep{Ades:2006tw, Welton:2012} and model expansion \citep{Draper:1995ts} in realistic applied settings. Markov combination is a framework for combining submodels when the prior marginal distributions \(p_m(\phi)\), \(m = 1, \dots, M\), are identical. Our approach relaxes this assumption, which is often not satisfied in applied settings, to allow joining submodels with similar but not identical prior marginal distributions. It also accounts for contexts where the link parameter \(\phi\) is a non-invertible deterministic function of other parameters in a submodel. When joining submodels, Markov melding aims to preserve the original submodels as faithfully as possible, and, in particular, always preserves the submodel-specific conditional distributions \(p_m(\psi_m, Y_m \mid \phi)\) for all \(m\). Note that, while Markov melding is defined for any collection of submodels, the results may be misleading if any evidence components (priors, submodels and data) strongly conflict \citep{Presanis:2013hb,Gasemyr:2009jt}. Such conflict should be investigated and resolved, for example through bias modelling \citep{Turner:2009}, before proceeding with the synthesis. In terms of splitting, the Markov melding framework proposed here clarifies the conditions required and the general framework in which to conduct model splitting, facilitating the modular approach advocated above. Notably, we generalise existing tall data splitting approaches \citep{Scott:2013wza, Neiswanger:2013ug} for independent, identically distributed data to other types of data. Finally, we also develop an algorithm for fitting the Markov melded model in stages, for both joining and splitting models. This algorithm extends naturally that employed in \cite{Lunn:2013uo} and is closely related to those proposed in \cite{Liang:2007fi} and \cite{Tom:2010uf}. The paper is organised as follows: in Section \ref{s:motivating-examples} we introduce some examples motivating this work; Section \ref{sec:integrating-two-sub} provides the conceptual framework underlying our approach; inferential and computational aspects of the approach are presented in Section \ref{sec:inference}; Section \ref{sec:examples} gives details and results for the motivating examples; we conclude with a discussion and suggestions for further work in Section \ref{sec:discussion}. \section{Motivating examples} \label{s:motivating-examples} We motivate and demonstrate our framework for joining and splitting models with two examples, for which we provide here a brief high-level outline. We show how Markov melding applies in each case in Section~\ref{s:motivating-examples-melding}; and provide full details and results in Section~\ref{sec:examples}. For both examples, as in the rest of the paper, we use directed acyclic graphs (DAGs) to represent the dependence structure between variables in a model (Figures~\ref{fig:flu-model-high-level} and \ref{fig:ecology-high-level}). Each variable in the model is represented by a node with rectangular nodes denoting observed variables and links between the nodes indicating direct dependencies. Stochastic (distributional) dependencies are represented by solid lines and deterministic (logical) relationships by dashed lines. The joint distribution of all nodes is the product of the conditional distributions of each node given its direct parents, and conditional independence relationships can be read from the graph \citep{Lauritzen96}. \subsection{Joining: A/H1N1 influenza evidence synthesis} \label{s:motivating-example-synthesis-evidence} Public health responses to influenza outbreaks rely on knowledge of severity: the probability that an infection results in a severe event such as hospitalisation or death. One method to estimate severity is by combining estimates of cumulative numbers of severe events with estimates of cumulative numbers of infections obtained from synthesizing different data sources. This approach is adopted in \citet{Presanis:2014em} for the A/H1N1 pandemic, where information from intensive care units (ICU) is integrated with several other sources. Figure~\ref{fig:flu-model-high-level} provides a schematic representation of the submodels used for each evidence component. A crucial ingredient is the cumulative number of ICU admissions for the A/H1N1 strain, $\chi$. A lower bound $\phi$ for $\chi$ is estimable through an immigration-death model governed by transition rates $\theta$, from time-dependent (weekly) prevalence data $y$ on suspected `flu cases in ICU (Figure~\ref{fig:flu-model-high-level}(a)). The $\phi$ of Figure~\ref{fig:flu-model-high-level}(a) is a deterministic function (a sum) of latent quantities involving $\theta$ and other parameters \(\flupos\). Indirect aggregate evidence on $\chi$ is also available from a severity submodel (Figure~\ref{fig:flu-model-high-level}(b)), whose complexity is summarised here by an informative prior on $\chi$. The lower bound $\phi$ is related to $\chi$ through a binomial model with probability parameter \(\pi^{\text{det}}\). The two submodels imply two different prior models for the link quantity \(\phi\). A further complication is that the deterministic function connecting \(\phi\) to the ICU submodel parameters is a sum of products, which is not invertible, preventing the ICU submodel from being expressed conditional on \(\phi\). \begin{figure}[t] \centering \subfloat[][ICU submodel]{ \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link) at (0, 0.5) {\(\phi\)}; \node[draw] (fludata) at (-1.5, 0) {\(\obsdata\)}; \node[circle, draw] (fluicugenericpara) at (-1.5, 2.25) {\(\theta\)}; \node[ellipse, draw] (fluicugenericposdata) at (0, 2.25) {\(\flupos\)}; \node (dummy1) at (-3.5, 0) {}; \node (dummy2) at (2, 0) {}; \draw[dashed,->] (fluicugenericpara) -- (link); \draw[dashed,->] (fluicugenericposdata) -- (link); \draw[->] (fluicugenericpara) -- (fludata); \end{tikzpicture} } \hspace{2em} \subfloat[][Severity submodel]{ \centering \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link) at (0, 0) {\(\phi\)}; \node[double, circle, draw] (fluna) at (0, 2.25) {\(\chi\)}; \node[ellipse, draw] (fludetprob) at (1.5, 2.25) {\(\pi^{\text{det}}\)}; \draw[->] (fluna) -- (link); \draw[->] (fludetprob) -- (link); \node (dummy1) at (-0.5, 0) {}; \node (dummy2) at (2, 0) {}; \end{tikzpicture} } \caption{High-level DAG representations of the influenza submodels. The double circle denotes the (highly) informative prior for \(\chi\), reflecting data from the full severity submodel that is omitted here. Detailed DAGs of these submodels are shown in Figure~\ref{fig:flumodel}.} \label{fig:flu-model-high-level} \end{figure} \cite{Presanis:2014em} therefore transferred information between the two separate submodels via an approximate approach (see Section~\ref{sec:approx-methods} for details). We show in this paper how Markov melding can be used to join the two submodels formally into a single joint model, making all the assumptions involved explicit. We also explain the relationship between our approach and the approximate approach. \subsection{Splitting: large ecology model} \label{s:motivating-example-partitioning} As an example of splitting a large DAG model we consider a joint model \citep{Besbeas:2002jw} for two distinct sources of data about British Lapwings ({\em Vanellus vanellus\/}). These data sources are primarily collected to inform different aspects of studies of the birds: census-type data provide a measure of breeding population size, while mark-recapture-recovery data provide estimates of the annual survival probability of the birds via observations of the survival of uniquely marked individuals. These data are related and a joint model allows inference to account for all information available. In the joint Bayesian model of \cite{Brooks:2004wr} (Figure~\ref{fig:ecology-high-level}(a)), the mark-recapture-recovery data \(y\) are modelled in terms of the recovery rate \(\lambda\), and the survival rate \(\phi\) for birds; and the census data \(x\) are modelled in terms of the survival rate \(\phi\), and the productivity rate \(\gamma\) of adult female birds. The joint model links the data sources using the common survival rate parameter~\(\phi\). \begin{figure}[t] \centering \subfloat[][Joint model]{ \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link) at (0, 1.75) {\(\phi\)}; \node[circle, draw] (productivityrate) at (2, 1.75) {\(\gamma\)}; \node[draw] (indexdata) at (2, 0) {\(x\)}; \node[draw] (recoverydata) at (-2, 0) {\(y\)}; \node[circle, draw] (recoveryrate) at (-2, 1.75) {\(\lambda\)}; \draw[->] (link) -- (indexdata); \draw[->] (productivityrate) -- (indexdata); \draw[->] (link) -- (recoverydata); \draw[->] (recoveryrate) -- (recoverydata); \end{tikzpicture} }% \hspace{3em}% \subfloat[][The joint model split into two submodels]{ \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link1) at (1, 1.75) {\(\phi\)}; \node[circle, draw] (link2) at (-1, 1.75) {\(\phi\)}; \node[circle, draw] (productivityrate) at (3, 1.75) {\(\gamma\)}; \node[draw] (indexdata) at (3, 0) {\(x\)}; \node[draw] (recoverydata) at (-3, 0) {\(y\)}; \node[circle, draw] (recoveryrate) at (-3, 1.75) {\(\lambda\)}; \draw[->] (link1) -- (indexdata); \draw[->] (productivityrate) -- (indexdata); \draw[->] (link2) -- (recoverydata); \draw[->] (recoveryrate) -- (recoverydata); \draw [dashed] (0,-0.5) -- (0,2.5); \node (dummy1) at (-4, 0) {}; \node (dummy2) at (4, 0) {}; \end{tikzpicture} } \caption{High-level DAG representations of the ecology models. Detailed DAG representations of these models are shown in Figure~\ref{fig:ecology-model}.} \label{fig:ecology-high-level} \end{figure} \cite{Brooks:2004wr} considered fitting the census and mark-recapture-recovery models both separately and jointly using standard Markov chain Monte Carlo (MCMC) algorithms, but considering the joint model simultaneously is cumbersome and MCMC convergence is slow. We describe in this paper how, through Markov melding, inference from such a joint model can be carried out in stages after splitting the model into two separate submodels (Figure~\ref{fig:ecology-high-level}(b)), circumventing the need to directly fit the joint model in a single MCMC procedure. The multi-stage fitting process is more computationally efficient, and gives insight into the contribution of each submodel to the joint model. \section{Conceptual framework} \label{sec:integrating-two-sub} \subsection{Joining models} \label{sec:joining-models} To combine probabilistic models in a principled way, we propose \emph{Markov melding} as an extension of a \emph{Markov combination}, which has been introduced by \citet{Dawid:1993fc} and discussed extensively with generalisations and applications in \citet{Massa:2010uf} and \citet{Massa:2017bz}. Let $p$ denote either a probability distribution for discrete random variables or a probability density for continuous variables (we assume such a density exists). In both cases we talk of $p$ interchangeably as a probability or probability distribution and we express conditional probabilities as \( p(\psi \mid \phi) = p(\psi,\phi)/p(\phi) \), where $p(\phi) > 0$. We will assume that when conditioning on a variable its distribution has support in the relevant region. For random variables \(X_{1}\), \(X_{2}\) and \(X_{3}\), \(X_{1} \mathbin{\perp\!\!\!\perp} X_{2} \mid X_{3}\) means that \(X_{1}\) and \(X_{2}\) are conditionally independent given \(X_{3}\). \subsubsection{Markov combination} \label{sec:markov-combination} \citet{Dawid:1993fc} define the submodels $p_m(\phi,\psi_m,Y_m)$, $m=1,\ldots,M$, as {\em consistent\/} in the link parameter \(\phi\) if the prior marginal distributions \(p_m(\phi)= p(\phi) \) are the same for all $m$. They define the {\em Markov combination} \(p_{\mathrm{comb}}\) of \(M\) consistent submodels as the joint model \begin{equation}\begin{split} \label{e:markov-combination} p_{\mathrm{comb}}(\phi,\psi_1,\ldots,\psi_M,Y_1,\ldots,Y_M) &= p(\phi) \prod_{m=1}^M p_m(\psi_m,Y_m\mid \phi)\\ &= \frac{\prod_{m=1}^M p_m(\phi,\psi_m,Y_m)}{p(\phi)^{M-1}} \end{split}\end{equation}% By construction, model~\eqref{e:markov-combination} assumes that the submodels are conditionally-independent: \((\psi_{m}, Y_{m}) \mathbin{\perp\!\!\!\perp} (\psi_{\ell}, Y_{\ell}) \mid \phi\) for $m\neq \ell$ (see Figure~\ref{fig:markov-combination}). All prior marginal distributions and submodel-specific conditional distributions, given the link parameter, are preserved: \(p_{\mathrm{comb}}(\phi, \psi_{m}, Y_{m}) = p_{m}(\phi, \psi_{m}, Y_{m})\) and \(p_{\mathrm{comb}}(\psi_m, Y_m \mid \phi) = p_m(\psi_m, Y_m \mid \phi)\) for all \(m\). Furthermore, the model has maximal entropy among the set of distributions with this marginal preservation property, and so can be viewed as the least constrained among such distributions \citep{Massa:2010uf}. However, only prior marginals are preserved in Markov combinations: the posterior distributions of \(\phi\) and any \(\psi_{\ell}\) under the Markov combination model account for all data $Y_m$, $m=1,\ldots,M$, rather than just the submodel-specific data $Y_\ell$, and are not preserved. \subsubsection{Markov melding} \label{sec:markov-melding} If the submodels are not consistent in their link parameter \(\phi\), that is, if the prior marginal distributions $p_1(\phi)$, $\dots$, $p_M(\phi)$ of the link parameter differ, a Markov combination cannot be formed directly. However, the original submodels \(p_m(\phi,\psi_m,Y_m)\), \(m = 1, \dots, M\), can be altered so that the marginals $p_1(\phi), \dots, p_M(\phi)$ for the link parameter become consistent. This is achieved by a procedure we term {\em marginal replacement\/}, where a new model \(p_{\mathrm{repl},m}(\phi,\psi_m,Y_m)\) is formed by replacing the marginal distribution $p_m(\phi)$ of \(\phi\) in the original model \(p_m(\phi,\psi_m,Y_m)\) by a new marginal distribution \(p_{\mathrm{pool}}(\phi)\): \begin{equation}\begin{split} \label{e:marginal-replacement} p_{\mathrm{repl},m}(\phi,\psi_m,Y_m) &= p_m(\psi_m,Y_m \mid \phi)\, p_{\mathrm{pool}}(\phi)\\ &= \frac{p_m(\phi,\psi_m,Y_m)}{p_m(\phi)}p_{\mathrm{pool}}(\phi) \end{split}\end{equation} where the {\em pooled density\/} $p_{\mathrm{pool}}(\phi)=g(p_1(\phi),\ldots,p_M(\phi))$ is a function \(g\) of the individual prior marginal densities. Here, and in what follows, we assume that such a pooled density exists, that $g$ has been chosen such that $\int p_{\mathrm{pool}}(\phi)\,d\phi = 1$, and that \(p_{\mathrm{pool}}\) reflects an appropriate summary of the individual marginal distributions (we discuss options below). Since $p_{\mathrm{repl},m}(\phi,\psi_m,Y_m)$, \(m = 1, \dots, M\), are consistent in the link parameter $\phi$ (that is, they all have the same prior marginal $p_{\mathrm{pool}}(\phi)$), we can form their Markov combination \begin{equation}\begin{split} \label{e:markov-melding} p_{\mathrm{meld}}(\phi,\psi_1,\ldots,\psi_M,Y_1,\ldots,Y_M) &= p_{\mathrm{pool}}(\phi) \prod_{m=1}^M p_{\mathrm{repl},m}(\psi_m,Y_m \mid \phi)\\ &=p_{\mathrm{pool}}(\phi) \prod_{m=1}^M \frac{p_m(\phi,\psi_m,Y_m)}{p_m(\phi)} \end{split}\end{equation} We term this construction {\em Markov melding\/} of the submodels $p_m(\phi,\psi_m,Y_m)$ with pooled density $p_{\mathrm{pool}}(\phi) = g(p_1(\phi),\ldots,p_M(\phi))$, which amounts to applying the Markov combination~(\ref{e:markov-combination}) to submodels satisfying the consistency condition \emph{after} marginal replacement as in~(\ref{e:marginal-replacement})\footnote{Markov melding can also be seen as a form of super Markov combination in the sense of proposition 4.14 in \citet{Massa:2010uf} where either family $\cal F$ or $\cal G$ have been extended to comprise a density with the marginal on the link variable replaced by the pooled density.}. The submodel-specific conditional distributions, given the link parameter, are preserved in the Markov melded model: \(p_{\mathrm{meld}}(\psi_m, Y_m \mid \phi) = p_m(\psi_m, Y_m \mid \phi)\) for all \(m\). However, in contrast to Markov combination, the prior marginal distributions \(p_m(\phi, \psi_{m}, Y_{m})\) will, in general, not be preserved in the Markov melded model. Once the new model $p_{\mathrm{meld}}(\phi,\psi_1,\ldots,\psi_M,Y_1,\ldots,Y_M)$ has been formed by Markov melding, posterior inference conditioning on the data $Y_1 = y_{1},\ldots,Y_M = y_{M}$ can be performed (see Section~\ref{sec:inference}). By extending a similar argument used in \citet{Poole:2000ee}, it can be shown that marginal replacement has the attractive property that $p_{\mathrm{repl},m}$ minimises the Kullback-Leibler divergence $D_\mathrm{KL}$ of a distribution $q(\phi,\psi,Y)$ to $p_m(\phi,\psi_m,Y_m)$ under the constraint that the marginals on $\phi$ agree, $q(\phi) = p_{\mathrm{pool}}(\phi)$: \[ p_{\mathrm{repl},m}(\phi,\psi_m,Y_m) = \mbox{argmin}_q \{ D_\mathrm{KL}(q \parallel p_m) \mid q(\phi) = p_{\mathrm{pool}}(\phi) \mbox{ for all $\phi$} \} \] Marginal replacement can also be interpreted as a generalisation of Bayesian updating in the light of new information. Details are provided in Supplementary Material~\ref{s:appendix-kl}. \subsubsection{Markov melding with deterministic variables} Care is required when some of the dependencies in a submodel are deterministic, as in the example in Section~\ref{s:motivating-example-synthesis-evidence}. The considerations are identical to those for Bayesian melding \citep{Poole:2000ee}, where priors on the input and output of deterministic functions are combined. Specifically, assume the $k$-dimensional link parameter $\phi$ is deterministically related to a $\ell$-dimensional parameter $\theta$, $k\leq \ell$, in a model $p(\phi,\theta,\psi,Y)$. The probability model is effectively given by $p(\theta,\psi,Y)$ and $\phi$ follows an induced distribution. We assume $\phi$ is exclusively a deterministic function $\phi(\theta)$ of the parameter $\theta$. To apply Markov melding, we need to ensure that the prior marginal distribution on \(\phi\) is well defined, and that we can apply marginal replacement to \(\phi = \phi(\theta)\). We must assume that $\phi(\theta)$ is an invertible function or, in the case of $k < \ell$, that $\phi(\theta)$ can be expanded into an invertible function $\phi_e(\theta) = (\phi(\theta),t(\theta))$, with a $\ell-k$ dimensional deterministic function $t(\theta)$. We denote the inverse function by $\theta(\phi,t)$. The function $\phi_e$ induces a probability distribution on $(\phi,t,\psi,Y)$ which can be represented as \begin{equation*}% p(\phi,t,\psi,Y) = p(\theta(\phi,t),\psi,Y)\, J_\theta(\phi,t) \end{equation*} where $J_\theta(\phi,t)$ is the Jacobian determinant for the transformation $\theta(\phi,t)$. The marginal distribution on $\phi$ can now be obtained as \( p(\phi) = \int p(\phi,t,\psi,Y) \, dt\, d\psi\, dY \). We show in Supplementary Material~\ref{s:appendix-deterministic} that \(p(\phi)\) is independent of the chosen parametric extension~$t(\theta)$ and so is well defined, and that we can apply marginal replacement, as defined by~\eqref{e:marginal-replacement}, to replace \(p(\phi)\) with \(p_{\mathrm{pool}}(\phi)\): \begin{equation}\begin{split} \label{e:marginal-replacement-deterministic} p_{\mathrm{repl}}(\theta,\psi,Y) = \frac{p(\theta,\psi,Y)} {p(\phi(\theta))} p_{\mathrm{pool}}(\phi(\theta)) \end{split}\end{equation} Markov melding with \(p_{\mathrm{repl}}(\theta,\psi,Y)\) can now be applied as in~\eqref{e:markov-melding}. \subsubsection{Pooling marginal distributions} The pooling function \(g\) determines the prior marginal distributions \(p_{\mathrm{meld}}(\phi, \psi_{m}, Y_{m})\), which, in general, will not match those in the original submodels. It must, therefore, be chosen subjectively, ensuring that the pooled density \(p_{\mathrm{pool}}(\phi)\) appropriately represents prior knowledge of the link parameter \(\phi\). Various standard pooling functions have been suggested in the multiple expert elicitation literature \cite[see, for example,][]{Clemen:1999vy, OHagan:2006}. The difference here is that we propose to pool prior marginal distributions of submodels, rather than directly-specified priors. A simple option is {\em linear pooling\/}, % \begin{equation*}% p_{\mathrm{pool}}(\phi) = \frac{1}{K_{\mathrm{lin}}(w)} \sum_{m = 1}^{M} w_m p_m(\phi), \quad K_{\mathrm{lin}}(w) = \int \sum_{m = 1}^{M} w_m p_m(\phi) \,d\phi \end{equation*} where $w=(w_1, \dots,w_M)^{\top}$, with $w_m \geq 0$ to weight the submodel priors. An alternative is {\em log pooling\/}, \begin{equation*}% p_{\mathrm{pool}}(\phi) = \frac{1}{K_{\mathrm{log}}(w)}\prod_{m =1}^{M} p_m(\phi)^{w_m}, \quad K_{\mathrm{log}}(w) = \int \prod_{m = 1}^{M} p_m(\phi)^{w_m} \,d\phi \end{equation*} with $w_m \geq 0$, a logarithmic version of the linear pooling (for reasons why logarithmic pooling might be attractive see Supplementary Material~\ref{s:externally-bayesian-pooling}). A special case of log pooling is {\em product of experts (PoE{}) pooling\/} \citep{Hinton:2002ic} when $w_m=1$ for all~$m$ \begin{equation*}% p_{\mathrm{pool}}(\phi) = \frac{1}{K_{\mathrm{poe}}}\prod_{m = 1}^{M} p_m(\phi), \quad K_{\mathrm{poe}} = \int \prod_{m=1}^{M} p_m(\phi)\,d\phi \end{equation*} in which equal weight is given to each submodel prior. A further special case of linear or log pooling is {\em dictatorial pooling\/} \(p_{\mathrm{pool}}(\phi) = p_{m_0}(\phi)\) when one submodel $m_0$ is considered authoritative\footnote{Dictatorial pooling corresponds to left (or right) composition in the terminology of \cite{Massa:2010uf}, and for $M=2$ their upper Markov combination is the family comprising two distributions namely the two possible directions for dictatorial pooling.}. We shall assume throughout this paper that the weights \(w\) are a fixed quantity, chosen subjectively, in contrast to some of the power prior literature \citep{Neuenschwander:2009}, where attempts have been made to treat the weight \(w\) as an unknown parameter. Figure~\ref{fig:pooling} shows the pooled density when combining two normal distributions under three different pooling functions with three choices of weights. The PoE{} approach is arguably the least intuitive pooling function due to the rather concentrated combined distribution implied. However, the required computation is greatly simplified (see Section~\ref{sec:inference}), and so if (and only if) PoE{} adequately represents prior beliefs then PoE{} pooling is an attractive option. The choice of pooling function is particularly important when there is some disagreement between the priors, but if there is substantial conflict between submodel priors we do not recommend the use of Markov melding, as mentioned above. \begin{figure}[t] \centering \includegraphics[width=0.9\linewidth]{pooling.pdf} \caption[Pooled densities under various pooling functions]{ Pooled densities under PoE{}, log and linear pooling, with \(w_{1} = 0.25\), 0.5 and 0.75 (and \(w_{2} = 1 - w_{1}\)), formed by pooling a \(\text{N}(0, 1)\) density (\tikz[baseline=-0.5ex]{ \draw [-, dashed,line width=0.75pt] (0,0) -- (3ex,0); }) and a \(\text{N}(\mu_{2}, \sigma_{2}^{2})\) density (\tikz[baseline=-0.5ex]{ \draw [-, line width=0.75pt] (0,0) -- (3ex,0); }) with \(\mu_2 = 1, 2, 4\), and \(\sigma_2 = 0.5, 1\). } \label{fig:pooling} \end{figure} \subsection{Splitting models} \label{sec:splitting-with-markov-melding} We may want to split up a larger model, for example, for computational efficiency or to understand the influence of each submodel on the joint model. In this case we want to split a large joint model \(p(\phi,\psi_1,\ldots,\psi_M,Y_1,\ldots,Y_M)\) into \(M\) submodels $p_m(\phi,\psi_m,Y_m)$, $m=1,\ldots,M$, in such a way that joining the submodels using Markov melding recovers the original, joint model. If \((\psi_{m}, Y_{m}) \mathbin{\perp\!\!\!\perp} (\psi_{\ell}, Y_{\ell}) \mid \phi\) for $m\neq \ell$ in the original model, then suitable submodels are \[ p_m(\phi,\psi_m,Y_m) = p(\psi_m,Y_m \mid \phi)p_m(\phi), \qquad m = 1, \dots, M \] where \(p_1(\phi), \dots, p_{M}(\phi)\) are new prior marginal distributions. These marginal distributions and the pooling function \(g\) can chosen freely to enable efficient computation, provided that the pooled distribution $p_{\mathrm{pool}}(\phi) = g(p_1(\phi), \allowbreak\dots, \allowbreak p_{M}(\phi))$ is the same as the original marginal distribution $p(\phi)$. An obvious choice is \(p_m(\phi) = p(\phi)^{1/M}\) with PoE{} pooling, but there are many other options. For example, PoE{} pooling is suitable for {\em any\/} factorisation of \(p(\phi)\) into \(M\) factors. Note that a splitting strategy based on Markov melding is suitable {\em only} if \((\psi_{m}, Y_{m}) \mathbin{\perp\!\!\!\perp} (\psi_{\ell}, Y_{\ell}) \mid \phi\) for $m\neq \ell$, that is, conditioning on the link variable $\phi$ makes the parts that are intended for splitting conditionally independent. Figure~\ref{fig:splitting} shows a few stylised situations with \(M = 2\) where splitting for computational purposes might be desirable. The joint distributions for all models is $p(\phi,\allowbreak \psi_1,\allowbreak \psi_2,\allowbreak Y_1,\allowbreak Y_2)$. The model in Figure~\ref{fig:splitting}(a) can be split into $p_1(\phi,\psi_1,Y_1) = p(\phi,Y_1\mid\psi_1)p(\psi_1)$ and $p_2(\phi,\psi_2,Y_2) = p(\psi_2,Y_2\mid \phi)p_2(\phi)$, with a new prior distribution $p_2(\phi)$, which could be different and computationally simpler than $p(\phi)=\int p(\phi,Y_1\mid\psi_1)p(\psi_1)\,d\psi_1\,dY_1$. Markov melding, with dictatorial pooling $p_{\mathrm{pool}}(\phi) = p_1(\phi)$, results in \begin{equation*}\begin{split} p_{\mathrm{meld}}(\phi,\psi_1,\psi_2,Y_1,Y_2) &= p_1(\phi)\,\frac{p_1(\phi,\psi_1,Y_1)}{p_1(\phi)}\frac{p_2(\phi,\psi_2,Y_2)}{p_2(\phi)} \\ &= p(\phi,Y_1\mid\psi_1)\,p(\psi_1) p_2(\psi_2,Y_2 \mid \phi) = p(\phi,\psi_1,\psi_2,Y_1,Y_2), \end{split}\end{equation*} leading to the original model, regardless of the choice of \(p_2(\phi)\). The case in Figure~\ref{fig:splitting}(b) is similar to the example in Section~\ref{s:motivating-example-partitioning} (see Section~\ref{sec:part-large-models} for a definition of splitting in this case). Note that in Figures~\ref{fig:splitting}(a) and \ref{fig:splitting}(b), the dependencies between the nodes can include deterministic (logical) dependence, provided \((\psi_{1}, Y_{1}) \mathbin{\perp\!\!\!\perp} (\psi_{2}, Y_{2}) \mid \phi\), as usual. The case in Figure~\ref{fig:splitting}(c) cannot be split into $p_1(\phi,\psi_1,Y_1)$ and $p_2(\phi,\psi_2,Y_2)$ by Markov melding model splitting because \((\psi_{1}, Y_{1}) \mathbin{\perp\!\!\!\perp\!\!\!\!\!\!\!\!\!\!\;\diagup\;} (\psi_{2}, Y_{2}) \mid \phi\). \begin{figure}[t] \centering \subfloat[][Chain motif]{ \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link) at (0, 1.5) {\(\phi\)}; \node[ellipse, draw] (l1) at (0, 3) {\(\psi_{1}, Y_{1}\)}; \node[ellipse, draw] (l2) at (0, 0) {\(\psi_{2}, Y_{2}\)}; \node (dummy1) at (-1,0) {}; \node (dummy2) at (1,0) {}; \draw[->] (l1) -- (link); \draw[->] (link) -- (l2); \end{tikzpicture} } \hspace{4em} \subfloat[][Tail-to-tail motif]{ \centering \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link) at (0, 1.5) {\(\phi\)}; \node[ellipse, draw] (l1) at (-1.25, 0) {\(\psi_{1}, Y_{1}\)}; \node[ellipse, draw] (l2) at (1.25, 0) {\(\psi_{2}, Y_{2}\)}; \draw[->] (link) -- (l1); \draw[->] (link) -- (l2); \end{tikzpicture} } \hspace{4em} \subfloat[][Head-to-head motif]{ \centering \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link) at (0, 0) {\(\phi\)}; \node[ellipse, draw] (l1) at (-1.25, 1.5) {\(\psi_{1}, Y_{1}\)}; \node[ellipse, draw] (l2) at (1.25, 1.5) {\(\psi_{2}, Y_{2}\)}; \draw[->] (l1) -- (link); \draw[->] (l2) -- (link); \end{tikzpicture} } \caption{DAG representations of stylised situations where model splitting might be desirable. Splitting the joint model is possible in (a) and (b), but not in (c).} \label{fig:splitting} \end{figure} \subsection{Markov melding in the motivating examples} \label{s:motivating-examples-melding} \subsubsection{Joining: A/H1N1 influenza evidence synthesis} \label{sec:framework-synthesising-evidence} Markov melding involves joining the ICU submodel (Figure~\ref{fig:flu-model-high-level}(a)) with density \(\p_{1}(\phi, \theta, \flupos, \allowbreak Y)\), where \(\phi\) is a deterministic function of \(\theta\) and \(\flupos\), and the severity submodel (Figure~\ref{fig:flu-model-high-level}(b)) with density \(\p_{2}(\phi, \chi, \pi^{\text{det}})\). Replacing the marginal distribution of \(\phi\) with pooled density \(p_{\mathrm{pool}}(\phi)\) in the ICU submodel, using~\eqref{e:marginal-replacement-deterministic}, and in the severity submodel, using~\eqref{e:marginal-replacement}, and then applying Markov melding, as in~\eqref{e:markov-melding}, results in \begin{align} \label{eq:influenza-melded} p_{\mathrm{meld}}(\phi, \theta, \flupos, \chi, \pi^{\text{det}}, Y) &= p_{\mathrm{pool}}(\phi)\, \frac{\p_{1}(\theta, \flupos, Y)}{\p_{1}(\phi(\theta, \flupos))}\, \frac{\p_{2}(\phi, \chi, \pi^{\text{det}})}{\p_{2}(\phi)}\, \end{align} where \(Y_1 = Y\), \(\psi_1 = \{\theta, \flupos\}\), \(Y_2 = \varnothing\) and \(\psi_2 = \{\chi, \pi^{\text{det}}\}\) in the notation of~(\ref{e:markov-melding}). \subsubsection{Splitting: large ecology model} \label{sec:part-large-models}\sloppy The original, joint model (Figure~\ref{fig:ecology-high-level}(a)), with density $p(\phi,\lambda,\gamma,Y,X)$, can be split into separate submodels (Figure~\ref{fig:ecology-high-level}(b)) with densities $\p_{1}(\phi,\lambda,Y)$ and $\p_{2}(\phi,\gamma,X)$. Provided the priors $p_1(\phi)$ and $p_2(\phi)$ in the separate submodels are such that $p_{\mathrm{pool}}(\phi)=g(p_1(\phi),p_2(\phi))$ equals the original marginal distribution $p(\phi)$, for some choice of pooling function \(g\), then Markov melding the submodels recovers the joint model: \begin{equation*}\begin{split} p_{\mathrm{meld}}(\phi, \lambda, \gamma,Y,X) &= p_{\mathrm{pool}}(\phi)\,p_1(\lambda,Y\mid \phi)\,p_2(\gamma, X \mid \phi)\\ &= p(Y \mid \lambda,\phi)\,p(\lambda)\,p(X\mid \gamma,\phi)\,p(\gamma)\,p(\phi), \end{split}\end{equation*} with $\psi_1=\lambda$, $Y_1=Y$, $\psi_2=\gamma$, $Y_2=X$ in the notation of~(\ref{e:markov-melding}). \section{Inference and computation} \label{sec:inference}\fussy The joint posterior distribution, given data $Y_m=y_m$, \(m = 1, \dots M\), under the Markov melded model in~\eqref{e:markov-melding} is \begin{equation} p_{\mathrm{meld}}(\phi,\psi_1,\ldots,\allowbreak\psi_M \mid y_1,\ldots,\allowbreak y_M) \propto p_{\mathrm{pool}}(\phi)\prod_{m=1}^M \frac{p_m(\phi,\psi_m, y_m)}{p_m(\phi)} \label{eqn:full-joint-model} \end{equation} The degree of difficulty of inference for this posterior distribution depends on the specification of the submodels. Our focus is settings in which, considered separately, each of the original collection of submodels is amenable to inference by standard Monte Carlo methods \citep[for example,][]{robertCasellaMCMC}. In Section~\ref{sec:mh-samplers} we first consider a standard Metropolis-within-Gibbs sampler, but when the constituent submodels are complex, this sampler may be cumbersome and slow. We thus propose a multi-stage Metropolis-within-Gibbs sampler, in which inference for the full Markov melded model is generated iteratively in stages, starting with standard inference on one of the submodels. This latter sampling scheme enables a convenient modular approach to inference. Both approaches, in general, require the marginal prior densities \(p_{m}(\phi)\) of the link parameter under each submodel, \(m = 1, \dots, M\), which will not usually be analytically tractable. In Section~\ref{sec:estimating-link-marginals} we discuss approaches to estimating these densities, although there is no need to estimate them if PoE{} pooling is chosen. In Section~\ref{sec:approx-methods} we show how approximate approaches, such as those used by \cite{Presanis:2014em}, relate to the Markov melded model. \subsection{Metropolis-Hastings samplers} \label{sec:mh-samplers} A general Metropolis-Hastings sampler for the posterior distribution \eqref{eqn:full-joint-model} can be constructed in the usual way. Candidate values $(\phi^\star,\psi_1^\star,\ldots,\allowbreak\psi_M^\star)$ for each parameter of the Markov melded model are drawn from a proposal distribution $q(\phi^\star,\psi_1^\star,\ldots,\allowbreak\psi_M^\star \mid \phi,\allowbreak \psi_1,\ldots,\allowbreak\psi_M)$, based on the current values $(\phi,\psi_1,\ldots,\allowbreak\psi_M)$ of the Markov chain. The candidate values are accepted with probability $\min(1,r)$, where $r$ is in the form \[ r = \frac{R(\phi^\star,\psi_1^\star,\ldots,\allowbreak\psi_M^\star,\phi,\psi_1,\ldots,\allowbreak\psi_M)} {R(\phi,\psi_1,\ldots,\allowbreak\psi_M,\phi^\star,\psi_1^\star,\ldots,\allowbreak\psi_M^\star)} \] where the {\em target-to-proposal density ratio\/} is \begin{equation} \label{e:ttpdr} \begin{split}% R(\phi^\star,&\psi_1^\star,\ldots,\allowbreak\psi_M^\star,\phi,\psi_1,\ldots,\allowbreak\psi_M) \\ &=p_{\mathrm{pool}}(\phi^\star) \prod_{m=1}^M\frac{p_m(\phi^\star,\psi_m^\star,y_m)}{p_m(\phi^\star)} \times \frac{1}{q(\phi^\star,\psi_1^\star,\ldots,\allowbreak\psi_M^\star \mid \phi,\psi_1,\ldots,\allowbreak\psi_M)} \end{split}\end{equation} \subsubsection{Metropolis-within-Gibbs sampler} A particular form of the above general sampler is a Metropolis-within-Gibbs sampling scheme \citep{Muller:1991wq}, in which samples are drawn from the full conditional distribution of each latent parameter \(\psi_{1}, \dots, \psi_{M}\), and then the link parameter \(\phi\) in turn. \paragraph{Latent parameter updates} Markov melding does not introduce any extra complexities in sampling the parameters \(\psi_{m}\) in each submodel \(m = 1, \dots, M\) (conditional on the link parameter \(\phi\)) beyond those inherent to the original submodels, considered separately. Typically, they can be sampled using standard algorithms. For instance, a Metropolis-Hastings algorithm, in which we draw a candidate value \(\psi_{m}^{\star}\) from a proposal distribution \(q(\psi_{m}^{\star} \mid \psi_{m})\) based upon the current value \(\psi_{m}\), will be feasible whenever the corresponding algorithm is feasible for estimation of the posterior distribution of the \(m\)\textsuperscript{th} submodel alone. In this case, since terms involving marginal densities for the link parameter $\phi$ in~\eqref{eqn:full-joint-model} cancel, the target-to-proposal density ratio in~\eqref{e:ttpdr} simplifies to \begin{equation*} R(\phi,\psi_1,\ldots,\allowbreak\psi_m^\star,\ldots,\allowbreak\psi_M,\phi,\psi_1,\ldots,\allowbreak\psi_M) = p_m(\phi,\psi_m^\star,y_{m}) \times \frac{ 1 }{ q(\psi_{m}^{\star} \mid \psi_{m}) } \end{equation*} This target-to-proposal density ratio is identical to that required for a Metropolis-Hastings update for the parameter \(\psi_{m}\), conditional on the link parameter \(\phi\), when the \(m\)\textsuperscript{th} submodel alone is the target distribution. \paragraph{Link parameter updates} To update the link parameters, a candidate value \(\phi^{\star}\) is drawn from an appropriate proposal distribution \(q(\phi^{\star} \mid \phi)\), based upon the current value \(\phi\), and is accepted according to the target-to-proposal density ratio \begin{equation}% \label{e:mwg-link} R(\phi^\star,\psi_1,\ldots,\allowbreak\psi_M,\phi,\psi_1,\ldots,\allowbreak\psi_M) = p_{\mathrm{pool}}(\phi^\star) \prod_{m=1}^M\frac{p_m(\phi^\star,\psi_m,y_m)}{p_m(\phi^\star)} \times \frac{ 1 }{ q(\phi^{\star} \mid \phi) } \end{equation} When the prior marginal distributions \(p_m(\phi)\) or \(p_{\mathrm{pool}}(\phi)\) are not analytically tractable, we propose to use an approximation \(\widehat{p}_{m}(\phi)\) in their place, calculated using the methods described in Section~\ref{sec:estimating-link-marginals}. Note that, under PoE{} pooling, the terms involving the marginal distributions for the link parameter \(\phi\) cancel in~\eqref{e:mwg-link}, leaving \begin{equation*}% R(\phi^\star,\psi_1,\ldots,\allowbreak\psi_M,\phi,\psi_1,\ldots,\allowbreak\psi_M) = \prod_{m=1}^Mp_m(\phi^\star,\psi_m,y_m) \times \frac{ 1 }{ q(\phi^{\star} \mid \phi) } \end{equation*} removing the need to estimate the marginal prior distribution for the link parameter \(\phi\). \subsubsection{Multi-stage Metropolis-within-Gibbs sampler} \label{sec:multi-stage-mwg} When the constituent submodels are complex, an alternative, multi-stage approach may be computationally preferable to the Metropolis-within-Gibbs sampler. The multi-stage approach generalises the two stage approach in \cite{Lunn:2013uo}. We assume a factorisation of the pooled prior \( p_{\mathrm{pool}}(\phi) = \prod_{m=1}^M p_{\mathrm{pool},m}(\phi) \). A default factorisation for any pooling function sets $p_{\mathrm{pool},m}(\phi)=p_{\mathrm{pool}}(\phi)^{1/M}$, but there may be more computationally-efficient factorisations. For example, when PoE{} pooling is used, the factorisation with $p_{\mathrm{pool},m}(\phi) = p_m(\phi)$ is more computationally efficient, as we describe below. The aim then is to sample, iteratively in stages $\ell = 1,\ldots,M$, from \begin{equation}\begin{split}\label{e:iterative-melded} p_{\mathrm{meld},\ell}(\phi,\psi_1,\ldots,\psi_\ell\mid y_1,\ldots,y_\ell) \propto \prod_{m=1}^{\ell}\left(\frac{p_m(\phi,\psi_m , y_m)}{p_m(\phi)} p_{\mathrm{pool},m}(\phi)\right) \end{split}\end{equation} Since \(p_{\mathrm{meld},M}(\phi,\psi_1,\ldots,\psi_M\mid y_1,\ldots,y_M) = p_{\mathrm{meld}}(\phi,\psi_1,\ldots,\psi_M\mid y_1,\ldots,y_M)\), after \(M\) stages the samples obtained reflect the posterior distribution~\eqref{eqn:full-joint-model} of the full Markov melded model. Note that each $p_m(\phi)$ (and thus also $p_{\mathrm{pool}}(\phi)$) can be estimated from the submodels in advance and independently of the following sampling scheme, as we describe in Section~\ref{sec:estimating-link-marginals}. \paragraph{Stage 1.} We obtain \(H_1\) samples \((\phi^{(h,1)}, \psi_1^{(h,1)})\), \(h = 1, \dots, H_1\), drawn from $p_\mathrm{meld,1}(\phi, \allowbreak\psi_1 \mid y_1)$. The most appropriate method for obtaining such samples depends on the nature of the submodel \(\p_{1}(\phi, \psi_{1}, Y_{1})\); typically, standard Monte Carlo methods, such as MCMC, will be suitable. \paragraph{Stage $\ell$.} After we have sampled up to stage~$\ell-1$ from~(\ref{e:iterative-melded}), we construct a Metropolis-within-Gibbs sampler for stage $\ell$ for the parameters \((\phi, \psi_{1},\ldots, \psi_{\ell})\) given data $(y_1,\ldots,y_{\ell})$. The parameter~\(\psi_{\ell}\) is updated, conditional on the link parameter~\(\phi\) and parameters $\psi_1,\ldots,\allowbreak\psi_{\stage-1}$ using a standard algorithm, such as a Metropolis-Hastings sampler, with a target-to-proposal density ratio \[ R(\phi,\psi_1,\ldots,\psi_{\ell}^\star,\phi,\psi_1,\ldots,\psi_{\ell}) = p_{\ell}(\phi,\psi_{\ell}^\star,y_{\ell})\times \frac{1}{q(\psi_{\ell}^\star\mid \phi,\psi_{\ell})} \] We use the samples from stage~$\ell-1$ as a proposal distribution when updating the parameters \(\psi_1,\ldots,\psi_{\ell}\) and the link parameter~\(\phi\). Specifically, we draw an index~\(d\) uniformly at random from \(\{1, \dots, H_{\ell-1}\}\), and set \((\phi^\star,\psi_1^\star,\ldots,\allowbreak\psi_{\stage-1}^\star) = (\phi^{(d,\ell-1)},\psi_1^{(d,\ell-1)},\ldots,\psi_{\ell-1}^{(d,\ell-1)})\), so that \begin{equation*}\begin{split} (\phi^{(d,\ell-1)},\psi_1^{(d,\ell-1)},\ldots,\psi_{\ell-1}^{(d,\ell-1)}) \sim p_{\mathrm{meld},\ell-1}(\phi,\psi_1,\ldots,\allowbreak\psi_{\stage-1}\mid y_1,\ldots,\allowbreak y_{\stage-1}) \end{split}\end{equation*} The attraction of this particular proposal distribution is the resulting cancellation of likelihood terms for the first $\ell-1$ submodels in the target-to-proposal density ratio, \begin{equation}\begin{split}\label{e:two-stage-R} R(\phi^\star,\psi_1^\star,\ldots,\psi_{\ell-1}^\star,\psi_{\ell}, \phi,\psi_1,\ldots,\psi_{\ell-1},\psi_{\ell}) =\frac{p_{\ell}(\phi^\star,\psi_{\ell},y_{\ell})}{p_{\ell}(\phi^\star)} p_{\mathrm{pool},\ell}(\phi^\star) \end{split}\end{equation} meaning this update step can be performed quickly. Once sampling in stage \(\ell\) has converged, samples \((\phi^{(h,\ell)}, \psi_1^{(h,\ell)},\ldots,\psi_{\ell}^{(h,\ell)})\), \(h = 1, \dots, H_{\ell}\), are obtained for use in stage \(\ell+1\). The density ratio~(\ref{e:two-stage-R}) does not depend on parameters \(\psi_1,\ldots,\psi_{\ell-1}\), so if interest focuses entirely on the parameters \((\phi, \psi_{\ell})\) then \(\psi_1,\ldots,\psi_{\ell-1}\) can be ignored in stage \(\ell\) of the multi-stage sampling: they do not need to be monitored or updated by the sampling algorithm. The multi-stage sampler is nevertheless still sampling from the joint target distribution $p_{\mathrm{meld},\ell}(\phi,\psi_1,\ldots,\psi_{\ell}\mid y_1,\ldots,y_{\ell})$. Stage~$\ell$ is influencing the acceptance or rejection of samples of $p_{\mathrm{meld},\ell-1}(\phi,\psi_1,\ldots,\allowbreak\psi_{\stage-1}\mid y_1,\ldots,\allowbreak y_{\stage-1})$ from the previous stage, thus adjusting this distribution according to the requirements of the joint model. In general, evaluation of ratio~(\ref{e:two-stage-R}) requires estimates of the prior marginal distribution of the link parameter under the $\ell$\textsuperscript{th} submodel, which can be obtained as described in Section~\ref{sec:estimating-link-marginals}. However, if PoE{} pooling is used and $p_{\mathrm{pool},m}(\phi) = p_m(\phi)$, \(m = 1, \dots, M\), the ratio simplifies to \(R(\phi^\star,\psi_1^\star,\ldots,\psi_{\ell-1}^\star,\psi_{\ell}, \phi,\psi_1,\ldots,\psi_{\ell-1},\psi_{\ell}) = p_{\ell}(\phi^\star,\psi_{\ell},y_{\ell})\), meaning that no estimates of the marginal distribution are required. \subsection{Estimating marginal distributions} \label{sec:estimating-link-marginals} The prior marginal densities \(p_{m}(\phi)\) of the link parameter under each of the \(M\) submodels are central to Markov melding, and in particular are required to evaluate the acceptance probability of proposals within the MCMC samplers we proposed above. However, these marginals are not generally analytically tractable, except when the prior distribution \(p_{m}(\phi)\) is directly-specified as a standard, tractable distribution, such as when \(\phi\) appears as a founder node in a DAG representation of the submodel. When not available analytically, we can estimate the marginal density \(p_{m}(\phi)\) for each submodel \(m\) by kernel density estimation \citep{henderson2015applied} with samples drawn from \(p_{m}(\phi) = \iint p_{m}(\phi, \psi_{m}, Y_{m}) \, d \psi_{m} \, d Y_{m}\) by standard (forward) Monte Carlo. Care is required if \(\phi\) has high dimension because the curse of dimensionality applies to kernel density estimation; see Section~\ref{sec:discussion} for further discussion. \subsection{Normal two-stage approximation method} \label{sec:approx-methods} Approximate approaches for joining submodels are widely used in applied research. In this section, we show that approximate inference for the Markov melded model formed by joining submodels (with PoE{} pooling) can be produced using a standard normal approximation approach. Consider the case when the Markov melded model \(p_{\mathrm{meld}}(\phi,\psi_1,\psi_2,Y_1,Y_2)\) is formed by joining \(M = 2\) submodels \(\p_{1}(\phi, \psi_1, Y_1)\) and \(\p_{2}(\phi, \psi_2, Y_2)\). Suppose that $\psi_1$ is not a parameter of interest in the posterior distribution, so that it can be integrated over \begin{equation}\begin{split}\label{e:joint-prob-integrated} p_{\mathrm{meld}}(\phi,\psi_2, Y_1,Y_2) &= \int p_{\mathrm{meld}}(\phi,\psi_1,\psi_2,Y_1,Y_2) \,d\psi_1\\ &= p_{\mathrm{pool}}(\phi) \int p_1(\psi_1,Y_1 \mid \phi)\,d\psi_1\,\,p_2(\psi_2,Y_2 \mid \phi)\\ & = p_{\mathrm{pool}}(\phi)\, p_1(Y_1\mid \phi)\,p_2(\psi_2,Y_2 \mid \phi) \end{split}\end{equation} An approximate two stage sampler that mimics the multi-stage sampler (above) can then be constructed for this marginal distribution. \begin{description} \item{\textbf{Stage 1}} Fit the submodel $p_1(\phi,\psi_1,Y_1)$ to obtain posterior samples from $p_1(\phi\mid Y_1)$, and approximate the posterior by a (multivariate) normal distribution with mean $\widehat{\mu}$ and covariance $\widehat{\Sigma}$. With \(p_N\) denoting the probability density function for a (multivariate) normal distribution, \[ p_1(\phi \mid Y_1) \approx p_N(\phi \mid \widehat{\mu},\widehat{\Sigma}) = p_N(\widehat{\mu} \mid \phi ,\widehat{\Sigma}) .\] \item{\textbf{Stage 2}} Since $p_1(\phi,Y_1) \propto p_1(\phi \mid Y_1) \approx p_N(\widehat{\mu} \mid \phi ,\widehat{\Sigma})$, we obtain an approximation for~(\ref{e:joint-prob-integrated}) by replacing \(p_1(\phi \mid Y_1)\) by \(p_N(\widehat{\mu} \mid \phi ,\widehat{\Sigma})\). \begin{equation*}\begin{split}% p_{\mathrm{meld}}(\phi,\psi_2, Y_1,Y_2) & \propto p_{\mathrm{pool}}(\phi)\, \frac{p_1(\phi \mid Y_1)}{p_1(\phi)}\frac{p_2(\phi,\psi_2,Y_2)}{p_2(\phi)}\\ & \approx p_{\mathrm{pool}}(\phi)\, \frac{p_N(\widehat{\mu} \mid \phi ,\widehat{\Sigma})}{p_1(\phi)}\frac{p_2(\phi,\psi_2,Y_2)}{p_2(\phi)}\\ \end{split}\end{equation*} \end{description} This two-stage approximate approach is commonly used in practice (see Section~\ref{sec:discussion}) in the form \(p_{\mathrm{meld}}(\phi,\psi_2, Y_1,Y_2) \approx c\,p_N(\widehat{\mu} \mid \phi ,\widehat{\Sigma})\, p_2(\phi,\psi_2,Y_2)\), with $c$ a data dependent constant. In this case the likelihood of the second submodel is modified by a factor $p_N(\widehat{\mu}\mid \phi,\widehat{\Sigma})$ (in a DAG representation a dependency of the constant $\widehat{\mu}$ on $\phi$ and the constant $\widehat{\Sigma}$ is added). This approach can be viewed as approximate Markov melding with PoE{} pooling, in which one submodel is represented by a normal approximation. If, instead of PoE{} pooling, one wishes to regard the marginal $p_2(\phi)$ on the link variable $\phi$ as authoritative and thus fully retain it, dictatorial pooling $p_{\mathrm{pool}}(\phi)=p_2(\phi)$ leads to the variant \begin{equation*}\begin{split}% p_{\mathrm{meld}}(\phi,\psi_2, Y_1,Y_2) & \propto \frac{p_1(\phi \mid Y_1)}{p_1(\phi)}p_2(\phi,\psi_2,Y_2) \approx \frac{p_N(\phi \mid \widehat{\mu} ,\widehat{\Sigma})} {p_N(\phi \mid \widehat{\mu}_0 ,\widehat{\Sigma}_0)} p_2(\phi,\psi_2,Y_2) \\ &\propto p_N(\phi \mid \mu_c ,\Sigma_c)\, p_2(\phi,\psi_2,Y_2) \end{split}\end{equation*} where $\widehat{\mu}_0$ and $\widehat{\Sigma}_0$ are an estimate of the mean and covariance of the prior marginal $p_1(\phi)$, which can be obtained at stage one in parallel to the posterior by sampling from the prior submodel, and \begin{equation*}% \Sigma_c^2 = \left(\widehat{\Sigma}^{-1} - {\widehat{\Sigma}_0}^{-1}\right)^{-1},\quad \mu_c = \Sigma_c \left(\widehat{\Sigma}^{-1}\widehat{\mu} - \widehat{\Sigma}_0^{-1}\widehat{\mu}_0\right). \end{equation*} Adjusting according to \(\widehat{\mu}_{0}\) and \(\widehat{\Sigma}_{0}\) removes the prior \(\p_{1}(\phi)\) from approximate joint model. \section{Results} \label{sec:examples} \subsection{Joining: A/H1N1 influenza evidence synthesis} \label{sec:h1n1-example} Figure~\ref{fig:flumodel} shows DAG representations of the two submodels outlined in Section~\ref{s:motivating-example-synthesis-evidence}. \begin{figure}[t] \centering \subfloat[][ICU submodel]{ \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link) at (0, 1.5) {\(\phi_{a}\)}; \node[ellipse, draw] (flupos) at (1, 3) {\(\pi^{\text{pos}}_{a, T}\)}; \node[ellipse, draw] (fluposmin) at (1, 4.5) {\(\omega_{a, V}\)}; \node[draw] (fluypos) at (3, 3) {\(z^\text{pos}_{a, V}\)}; \node[draw] (flunpos) at (3, 4.5) {\(n^\text{pos}_{a, V}\)}; \node[ellipse, draw] (flulambda) at (-1, 3) {\(\lambda_{a, T}\)}; \node[circle, draw] (flugamma) at (-1, 4.5) {\(\gamma_{a}\)}; \node[ellipse, draw] (fluicu) at (-2, 1.5) {\(\eta_{a, T}\)}; \node[draw] (fludata) at (-2, 0) {\(\obsdata_{a, U}\)}; \node[circle, draw] (fluexitrate) at (-3, 3) {\(\mu_{a}\)}; \node[circle, draw] (fluexitratealpha) at (-4, 6) {\(\alpha\)}; \node[circle, draw] (fluexitratebeta) at (-2, 6) {\(\beta\)}; \draw[dashed, ->] (flupos) -- (link); \draw[->] (fluposmin) -- (flupos); \draw[->] (fluposmin) -- (fluypos); \draw[->] (flunpos) -- (fluypos); \draw[dashed, ->] (flulambda) -- (link); \draw[->] (flugamma) -- (flulambda); \draw[dashed, ->] (flulambda) -- (fluicu); \draw[->] (fluicu) -- (fludata); \draw[dashed, ->] (fluexitratealpha) -- (fluexitrate); \draw[dashed, ->] (fluexitratebeta) -- (fluexitrate); \draw[dashed, ->] (fluexitrate) -- (fluicu); \node[draw, rectangle, rounded corners, fit={(link) (flupos) (fluposmin) (fluypos) (flunpos) (flulambda) (flugamma) (fluicu) (fludata) (fluexitrate)}] (plate) {}; \node[font = \footnotesize, node distance=0, inner sep=0pt, below left=-17.5pt and 5pt of plate.south east] {\(a = 1, 2\)}; \end{tikzpicture} } \hspace{5em} \subfloat[][Severity submodel]{ \centering \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \node[circle, draw] (link) at (0, 0) {\(\phi_{a}\)}; \node[double, circle, draw] (fluna) at (0, 1.5) {\(\chi_{a}\)}; \node[ellipse, draw] (fludetprob) at (1.75, 1.5) {\(\pi^{\text{det}}\)}; \node[draw, rectangle, rounded corners, fit={(link) (fluna) (-0.75,-1)}] (plate) {}; \node[font = \footnotesize, node distance=0, inner sep=0pt, below left=-17.5pt and 5pt of plate.south east] {\(a = 1, 2\)}; \node (dummy1) at (-0.5,0) {}; \node (dummy2) at (2,0) {}; \draw[->] (fluna) -- (link); \draw[->] (fludetprob) -- (link); \end{tikzpicture} } \caption{ DAG representations of the submodels of A/H1N1 influenza. Repeated variables are enclosed by a rounded rectangle, with the label denoting the range of repetition. For simplicity the time domain is suppressed: parameters with subscripts \(T\), \(U\) and \(V\) are collections of parameters across the time range denoted by the subscript. For example, \(\obsdata_{a, U} = \{\obsdata_{a, t} : t \in U\}\). } \label{fig:flumodel} \end{figure} \subsubsection{ICU submodel} The main data source in the ICU submodel is prevalence-type data from the Department of Health's Winter Watch scheme \citep{DoHWW:2011}, which records the total number of patients in all ICUs in England with {\em suspected\/} pandemic A/H1N1 influenza infection. Weekly observations \(\obsdata_{a, t}\) taken at days \(t \in U = \{8, 15, 22, \dots, 78\}\) for age group \(a \in \{1, 2\}\) (children and adults respectively) are available between December 2010 and February 2011. To estimate the link parameter \(\phi = (\phi_{a}) = (\phi_{1}, \phi_{2})\), that is, the cumulative number of ICU admissions over the period of observation \(t \in T = \{1, \dots, 78\}\), from such prevalence data requires an immigration-death model for the system of ICU admission and exits from ICU. Assume that new ICU admissions follow an inhomogeneous Poisson process with rate \(\lambda_{a, t}\) at time \(t\), and the length of stay in ICU is exponentially distributed with rate \(\mu_{a}\). Then the number of patients admitted up to time \(t\) who are still present in ICU at time \(t\) follows a thinned inhomogeneous Poisson process and the observed number of prevalent patients is \(\obsdata_{a, t} \sim \text{Po}(\eta_{a, t})\), \(a \in \{1, 2\}\), \(t \in U\), with expectation, under a discretised formulation with daily time steps, given by \(\eta_{a, t} = \sum_{u = 1}^{t} \lambda_{a, u} \exp\{-\mu_{a}(t - u)\}\), \(t \in T\). We assume \(\eta_{a, 1} = 0\) to enforce the assumption that no patients with suspected `flu were in ICU a week before observations began. The product of the expected new admissions of suspected cases \(\lambda_{a, t}\) and the proportion positive for A/H1N1 \(\pi^{\text{pos}}_{a, t}\) gives the expected number of {\em confirmed\/} new admissions on day \(t\). The link parameter \(\phi_{a}\) is the uninvertible sum of these products over time: \begin{equation*} \phi_{a} = \sum_{t \in T} \pi^{\text{pos}}_{a, t} \lambda_{a, t}, \qquad a = 1, 2. \end{equation*} We model the proportion positive \(\pi^{\text{pos}}_{a, t}\) using weekly virological positivity data from the sentinel laboratory surveillance system Data Mart \citep{PHEdataMart:2014}, which records the number \(z^\text{pos}_{a, v}\) of A/H1N1-positive swabs out of the total number \(n^\text{pos}_{a, v}\) tested during week \(v \in V = \{1,\dots,11\}\) in age group \(a \in \{1, 2\}\). We assume a uniform prior \(\pi^{\text{pos}}_{a, t} \sim \text{Unif}(\omega_{a, v}, 1)\), \(t \in T\), for the true positivity, where \(v = 1\) for \(t = 1, \dots, 14\) and \(v = \lfloor (t - 1)/7 \rfloor\) for \(t = 15, \dots, 78\), and where the lower bound \(\omega_{a, v}\) is informed by a binomial model for the positivity data: \(z^\text{pos}_{a, v} \sim \text{Bin}(n^\text{pos}_{a, v}, \omega_{a, v})\), \(v \in V\). For the expected new admissions \(\lambda_{a, t}\), we assume a random-walk prior with \(\log(\lambda_{a, 1}) \sim \text{Unif}(0, 250)\) and \(\log(\lambda_{a, t}) \sim \text{N}(\log(\lambda_{a, t - 1}), \gamma_{a}^{-2})\) for \(t = 2, \dots, 78\), with \(\gamma_{a} \sim \text{Unif}(0.1, 2.7)\). For the length of ICU stays we assume constant age-group specific exit rates \(\mu_{1} = \exp(-\alpha)\) and \(\mu_{2} = \exp(-\{\alpha + \beta\})\), with \(\alpha \sim \text{N}(2.7058, 0.0788^2)\) and \(\beta \sim \text{N}(-0.4969, 0.2048^2)\) \citep{Presanis:2014em}. \subsubsection{Severity submodel} We consider a simplified version of the full, complex severity submodel in \cite{Presanis:2014em}. The Winter Watch ICU data are only available for a portion of the time of the `third wave' of the A/H1N1 pandemic, and so the cumulative number of confirmed new admissions \(\phi_{a}\) from the ICU submodel is a lower bound for the true number \(\chi_{a}\) of ICU admissions during the third wave. We thus assume \(\phi_{a} \sim \text{Bin}(\chi_{a}, \pi^{\text{det}})\), \(a \in \{1, 2\}\), where \(\pi^{\text{det}}\) is the age-constant detection probability, to which we assign a \(\text{Beta}(6, 4)\) prior. We incorporate the remaining evidence in the full severity submodel of \cite{Presanis:2014em} via informative priors \(\chi_{1} \sim \text{Lognormal}(4.93, 0.17^2)\) and \(\chi_{2} \sim \text{Lognormal}(7.71, 0.23^2)\). \subsubsection{Markov melded model}\fussy We joined the submodels as in~\eqref{eq:influenza-melded}. We considered linear and log pooling with pooling weight \(w_{1} = 0.25, 0.5 \text{ and } 0.75\) (and \(w_{2} = 1 - w_{1}\)), and PoE{} pooling. We estimated the marginal priors for \(\phi = (\phi_{1}, \phi_{2})\) under the ICU and severity submodels using kernel density estimation with a bivariate \(t\)-distribution kernel, using \(5 \times 10^4\) independent draws, sampled from the corresponding submodel by forward Monte Carlo. The marginal priors are shown in Figure~\ref{fig:h1n1-priors}(a). Note that the ICU submodel prior for \(\phi\) is extremely flat, whereas the severity submodel prior is concentrated on a small part of the parameter space. The combined density using each of the pooling functions (with \(w_{1} = w_{2} = 0.5\)) is shown in Figure~\ref{fig:h1n1-priors}(b). Linear and PoE{} pooling in this case lead to similar densities, whereas the log pooling prior is more dispersed. \begin{figure}[t] \centering \includegraphics[width=\linewidth]{h1n1-priors.pdf} \caption{\label{fig:h1n1-priors} Prior distributions for \(\phi_{a}\), the cumulative number of {\em confirmed\/} new admissions in age group \(a\), in the A/H1N1 influenza evidence synthesis: (a) under the ICU and severity submodels; (b) pooled priors under three pooling functions with \(w_{1} = w_{2} = 0.5\). } \end{figure} \begin{figure}[t] \centering \includegraphics[width=\linewidth]{h1n1-posteriors.pdf} \caption{\label{fig:h1n1-posteriors} Medians and 95\% credible intervals for: the posterior distribution for the link parameters \(\phi_{1}\) and \(\phi_{2}\) under the ICU submodel; the prior distribution for each parameter under the severity submodel; the posterior distribution for each parameter according to the normal approximation and the Markov melded model under each pooling function. The \(x\)-axis shows number of individuals, except for \(\pi^{\text{det}}\), which shows probabilities.} \end{figure} We then estimated, in stage one, the posterior distribution of the link parameter \(\phi\) under the ICU submodel alone. We drew 5 million iterations from the ICU submodel using JAGS \citep{plummer2015jags}, retaining every 100\textsuperscript{th} iteration, after discarding \(5 \times 10^4\) iterations as burn-in. In stage two, for the Markov melded models under linear, log and PoE{} pooling, we drew \(2 \times 10^6\) samples using the multi-stage Metropolis-within-Gibbs sampler, with the first \(10^4\) samples discarded as burn-in. Figure~\ref{fig:h1n1-posteriors} shows the results. There is a notable reduction in uncertainty in the posteriors from Markov melding compared to the ICU submodel posterior, especially in \(\phi_{1}\), demonstrating the benefit of joining the submodels. In the adult age group (\(a = 2\)), the Markov melding results are robust to the choice of pooling function and pooling weight: the likelihood from the ICU submodel dominates over the pooled prior. There is considerable agreement between the various approaches in the child age group (\(a = 1\)) as well, although the choice of pooling weight has some influence on the upper tail under log pooling. As anticipated by Section~\ref{sec:approx-methods}, the normal approximation (fitted using OpenBUGS) and PoE pooling posteriors are close, due to the near normality of the ICU posterior distribution. \subsection{Splitting: large ecology model} Figure~\ref{fig:ecology-model} is a DAG representation of the full, joint model outlined in Section~\ref{s:motivating-example-partitioning}. \begin{figure}[t] \centering \begin{tikzpicture}[minimum width=0.75cm, minimum height = 0.75cm] \draw[dotted] (-8.25, -2.5) rectangle (-4.5, 4.25); \draw[dotted] (8.25, -2.5) rectangle (4.5, 4.25); \node (recoverylabel) at (-7, -1.75) [text width=2cm]{Recovery submodel}; \node (indexlabel) at (7, -1.75) [text width=2cm,align=right]{Census submodel}; \node[circle, draw] (linkadult) at (1.575, 1.75) {\(\eta_{A}\)}; \node[circle, draw] (linkchild) at (-1.575, 1.75) {\(\eta_{C}\)}; \node[ellipse, draw] (adultalpha) at (1.575, 3.5) {\(\cpar_{\brooksalpha, \brooksadult}\)}; \node[ellipse, draw] (adultbeta) at (3.425, 3.5) {\(\cpar_{\brooksbeta, \brooksadult}\)}; \node[ellipse, draw] (childalpha) at (-3.425, 3.5) {\(\cpar_{\brooksalpha, \brookschild}\)}; \node[ellipse, draw] (childbeta) at (-1.575, 3.5) {\(\cpar_{\brooksbeta, \brookschild}\)}; \node[draw] (freezing) at (0, 3.5) {\(z\)}; \draw[dashed, ->] (adultalpha) -- (linkadult); \draw[dashed, ->] (adultbeta) -- (linkadult); \draw[dashed, ->] (childalpha) -- (linkchild); \draw[dashed, ->] (childbeta) -- (linkchild); \draw[dashed, ->] (freezing) -- (linkadult); \draw[dashed, ->] (freezing) -- (linkchild); \node[circle, draw] (prodratealpha) at (5.5, 3.5) {\(\alpha_{\gamma}\)}; \node[circle, draw] (prodratebeta) at (7.5, 3.5) {\(\beta_{\gamma}\)}; \node[circle, draw] (productivityrate) at (6.5, 1.75) {\(\gamma\)}; \node[circle, draw] (truecounts) at (5.5, 0) {\(\mu\)}; \node[circle, draw] (indexsd) at (7, 0) {\(\sigma^{2}\)}; \node[draw] (indexdata) at (5.5, -1.75) {\(x\)}; \node[draw] (recoverydata) at (-5.5, -1.75) {\(y\)}; \node[circle, draw] (obsprob) at (-5.5, 0) {\(\pi\)}; \node[circle, draw] (recovratealpha) at (-7.5, 3.5) {\(\alpha_{\lambda}\)}; \node[circle, draw] (recovratebeta) at (-5.5, 3.5) {\(\beta_{\lambda}\)}; \node[circle, draw] (recoveryrate) at (-6.5, 1.75) {\(\lambda\)}; \draw[->] (linkadult) -- (truecounts); \draw[->] (linkchild) -- (truecounts); \draw[dashed, ->] (prodratealpha) -- (productivityrate); \draw[dashed, ->] (prodratebeta) -- (productivityrate); \draw[->] (productivityrate) -- (truecounts); \draw[->] (indexsd) -- (indexdata); \draw[->] (truecounts) -- (indexdata); \draw[dashed, ->] (recovratealpha) -- (recoveryrate); \draw[dashed, ->] (recovratebeta) -- (recoveryrate); \draw[->] (recoveryrate) -- (obsprob); \draw[->] (linkadult) -- (obsprob); \draw[->] (linkchild) -- (obsprob); \draw[->] (obsprob) -- (recoverydata); \end{tikzpicture} \caption{DAG representation of the joint ecology model. The recovery and census submodels are connected via the common parameter \(\phi = (\cpar_{\brooksalpha, \brookschild}, \cpar_{\brooksalpha, \brooksadult}, \cpar_{\brooksbeta, \brookschild}, \cpar_{\brooksbeta, \brooksadult})\). For simplicity the time domain is suppressed: \(y\), \(x\), \(\pi\), \(\mu\), \(\lambda\), \(\eta_{C}\), \(\eta_{A}\), \(\gamma\) and \(z\) represent the collection of {\em all\/} quantities sharing the same variable name. For example, \(\mu = \{\mu_{G, t} : G \in \{C, A\},\, t = 3, \dots, 36\}\). } \label{fig:ecology-model} \end{figure} \subsubsection{Mark-recapture-recovery data} Mark-recapture-recovery data \(y_{t_{1}, t_{2}}\) record the number of ringed birds released before May in year \(t_{1} = 1, \dots, 35\), and recovered (dead) in the 12 months up to April in year \(t_{2} = t_{1} + 1, \dots, 36\). The years correspond to observations for releases from 1963 (\(t = 1\)) to 1997 and recoveries from 1964 to 1998. The number of birds \(y_{t_{1}, 37}\) released in year \(t_{1}\) and never recovered is also available. We assume \begin{equation*} (y_{t_{1}, t_{1} + 1}, \dots, y_{t_{1}, 37}) \sim \text{Mult}( \pi_{t_{1}, t_{1} + 1}, \dots, \pi_{t_{1}, 37} ), \qquad t_{1} = 1, \dots, 35. \end{equation*} We model the probability \(\pi_{t_{1}, t_{2}}\) of recovery in year \(t_{2}\) following release in year \(t_{1}\) in terms of the recovery rate \(\lambda_{t}\), and the survival rates \(\eta_{C,t}\) and \(\eta_{A, t}\) for immature (1 year old) and breeding (2 years or older) birds, respectively, up to April of year \(t\): \begin{equation*} \pi_{t_{1}, t_{2}} = \begin{cases} \lambda_{t_{2}} (1 - \eta_{C, t_{2}}) & t_{1} = 1, \dots, 35, \, t_{2} = t_{1} + 1 \\ \lambda_{t_{2}} \eta_{C, t_{1} + 1} (1 - \eta_{A, t_{2}}) & t_{1} = 1, \dots, 34, \, t_{2} = t_{1} + 2 \\ \lambda_{t_{2}} \eta_{C, t_{1} + 1} (1 - \eta_{A, t_{2}}) \prod_{u = t_{1} + 2}^{t_{2} - 1} \eta_{A, u} & t_{1} = 1, \dots, 33, \, t_{2} = t_{1} + 3, \dots, 36 \end{cases} \end{equation*} The recovery rate is the probability that a bird that dies in year \(t\) is recovered. The probability of a bird released in year \(t_{1}\) being never recovered is \(\pi_{t_{1}, 37} = 1 - \sum_{u = t_{1} + 1}^{36} \pi_{t_{1}, u}\). \subsubsection{Census data} We assume that the observed census-type data \(x_{t}\), which are available for 1965 (\(t = 3\)) to 1998, account for only breeding birds and that there is no emigration. We model the census data via the true number of breeding females \(\mu_{A, t}\) and immature females \(\mu_{C, t}\), and the productivity rate \(\gamma_{t}\), the average number of female offspring per breeding female in year~\(t\), which could be greater than 1. Specifically we assume for \(t = 3, \dots, 36\) \begin{align*} x_{t} &\sim \text{N}( \mu_{A, t}, \sigma^{2} ) \\ \mu_{C, t} &\sim \text{Po}( \mu_{A, t - 1}\gamma_{t - 1}\eta_{C, t} ) \\ \mu_{A, t} &\sim \text{Bin}( \mu_{C, t - 1} + \mu_{A, t - 1} , \eta_{A, t} ), \end{align*} with the observation variance \(\sigma^2\) assumed constant. \subsubsection{Regression models and prior distributions} We model the parameters \(\eta_{G, t}\), \(\lambda_{t}\) and \(\gamma_{t}\) with regression models, with \(z_{t}\) denoting the (observed) number of frost days in year \(t\). \begin{align*} \text{logit}(\eta_{G, t}) &= \cpar_{\brooksalpha, \brooksagegroupindex} + \cpar_{\brooksbeta, \brooksagegroupindex} z_{t} \qquad G = C, A \\ \text{logit}(\lambda_{t}) &= \alpha_{\lambda} + \beta_{\lambda} t \\ \log(\gamma_{t}) &= \alpha_{\gamma} + \beta_{\gamma} t \end{align*} We place lognormal priors on the number of immature females \(\mu_{C,2}\) and breeding females \(\mu_{A,2}\) in the year prior to our data series, with scale parameter \(1\) and location parameters \(\mu_{C} = 200\) and \(\mu_{A} = 1000\) respectively. We assume \(\sigma^{2} \sim \text{Inv-Gam}(0.001, 0.001)\) a priori, and independent \(\text{N}(0, 10^2)\) prior distributions for all 8 regression parameters (\(\cpar_{\brooksalpha, \brookschild}, \cpar_{\brooksalpha, \brooksadult}, \alpha_{\lambda}, \alpha_{\gamma}, \cpar_{\brooksbeta, \brookschild}, \cpar_{\brooksbeta, \brooksadult}, \beta_{\lambda}, \beta_{\gamma}\)). \subsubsection{Results} We split the joint model, as described in Section~\ref{sec:part-large-models}, into two components: the mark-recapture-recovery submodel and the census submodel. Denote by \(\Omega_{0} = (\eta_{C}, \eta_{A},\allowbreak \cpar_{\brooksalpha, \brookschild},\allowbreak \cpar_{\brooksalpha, \brooksadult},\allowbreak \cpar_{\brooksbeta, \brookschild}, \cpar_{\brooksbeta, \brooksadult})\) the parameters shared by both submodels and by \(\Omega_{1} = (\pi, \lambda, \alpha_{\lambda}, \beta_{\lambda})\) the parameters specific to the recovery submodel. Under both the mark-recapture-recovery submodel (stage one) and the census submodel (stage two), we use independent normal priors, with mean 0 and standard deviation \(\sqrt{200}\), for each component \(\cpar_{\brooksalpha, \brookschild}\), \(\cpar_{\brooksalpha, \brooksadult}\), \(\cpar_{\brooksbeta, \brookschild}\) and \(\cpar_{\brooksbeta, \brooksadult}\) of the link parameter. These priors were chosen so that PoE{} pooling of these priors results in the original prior for the link parameters under the joint model. In stage one we drew samples from the posterior distribution \(\p_{1}(\Omega_{1}, \Omega_{0} \mid y)\) under the recovery submodel, and retained these samples for use as a proposal distribution in stage two, in which we drew samples under the full joint model. In stage one, we drew \(2.5 \times 10^5\) MCMC iterations from the posterior distribution of the mark-recapture-recovery submodel, taking 7 hours on a single core of an Intel Xeon E5-2620 2.0GHz CPU. In stage two, we discarded all but every 100\textsuperscript{th} iteration, leaving \(2.5 \times 10^5\) MCMC iterations for inference. This took \(6\frac{1}{2}\) hours. Figure~\ref{fig:ecology-results-densities} shows the results. We compare the two-stage estimates to the estimates of the joint distribution based upon \(6 \times 10^5\) MCMC iterations (retaining every 10\textsuperscript{th} iteration) drawn using a standard (one stage) MCMC sampler, which took 22 hours to run in OpenBUGS. We regard these results as the `gold standard' that we aim to match with the two stage sampling approach. The components of the link parameters \(\cpar_{\brooksalpha, \brookschild}\) and \(\cpar_{\brooksbeta, \brookschild}\) corresponding to the immature birds have posterior distributions that closely agree under the joint model and mark-recapture-recovery submodel alone, but there are differences in the parameters corresponding to mature birds. In particular there is a sizeable difference for the regression parameter \(\cpar_{\brooksbeta, \brooksadult}\), which is estimated to be notably higher under the joint model than under the mark-recapture-recovery submodel alone. The two-stage approach accurately captures this shift (Figure~\ref{fig:ecology-results-densities}, right-hand panel). The similarity of \(\cpar_{\brooksalpha, \brookschild}\), \(\cpar_{\brooksalpha, \brooksadult}\) and \(\cpar_{\brooksbeta, \brookschild}\) in the stage 1 posterior (recovery model) and the stage 2 posterior implies that the census submodel contains little information about these parameters. In contrast, the census submodel does contain information about the regression parameter \(\cpar_{\brooksbeta, \brooksadult}\) describing the relationship between the survival rate of adult birds and the number of frost days. The census information suggests that \(\cpar_{\brooksbeta, \brooksadult}\) should be less negative than implied by the recovery information, implying that adult survival rate decreases only slightly in harsher winters. \begin{figure}[t] \centering \includegraphics[width=\linewidth]{ecology-posteriors.pdf} \caption{\label{fig:ecology-results-densities} Histograms of the posterior densities of the link parameters \(\cpar_{\brooksalpha, \brookschild}\), \(\cpar_{\brooksalpha, \brooksadult}\), \(\cpar_{\brooksbeta, \brookschild}\) and \(\cpar_{\brooksbeta, \brooksadult}\) under the recovery submodel (Stage 1), and under the full joint model, as estimated by Stage 2 of the two stage sampler and by a standard MCMC sampler for the joint model.} \end{figure} \section{Further work and discussion} \label{sec:discussion} We have presented a unifying view and a generic method for joining and splitting probabilistic submodels that share a common variable. We have extended the notion of Markov combination to the case where prior marginal distributions in each submodel need not be identical, enabling a principled approach to joining models in realistic applied settings, assuming that there is not strong conflict between evidence components and that it is reasonable to assume that the submodels are conditionally independent. We also introduced a computational algorithm that allows inference for submodels to be efficiently conducted in stages, when considering either joining or splitting models. The remainder of this section discusses related work, computational issues and alternative approaches. \subsection{Related work} The key idea for a melding approach can be attributed to \citet{Poole:2000ee}, but their presentation focuses on a limited set of models and is tied up with a deterministic link parameter~$\phi$. This slightly obscures the key issues that we present more generally in Section~\ref{sec:integrating-two-sub}, where we clearly separate issues relating to marginal replacement from issues related to deterministic transformation of random variables. A further influence is the work on decomposable graphical models \citep{Dawid:1993fc}, where a key concept is the separator, a subset of variables that splits the model into two parts that are independent conditional on the separator. Separators correspond to link variables in Markov melding. The rich literature on decomposable graphs and corresponding algorithms, such as junction tree algorithms \citep{Lauritzen96}, suggests extensions of Markov melding to a series of link variables (separators) for joining several submodels into chain or tree formations. Evidence synthesis models \citep{EddyEtAl1992,Jackson:2009km,Albert:2011em,Commenges:2012gv} often employ the approximate approach of summarising the results of a first-stage submodel via a Gaussian or other distribution, for use in a second-stage submodel as a likelihood term. We demonstrated in Section~\ref{sec:approx-methods} that this approach is an approximation to Markov melding under PoE{} pooling, therefore justifying the approximation. Similar approximations are widely used in standard and network meta-analysis \cite[for example,][]{Hasselblad:1992iw,Ades:2006tw,Welton:2008iy}. Similarly, in more general hierarchical models, splitting models to make inference faster or easier has previously been considered \citep{Liang:2007fi, Tom:2010uf, Lunn:2013uo}. In this setting, posterior inference is first obtained from independent unit-specific submodels, with flat, independent priors replacing all hierarchical priors in the joint model. Inference for the joint model is recovered in stage two through Markov melding of these unit-specific submodels with dictatorial pooling, so that only the hierarchical prior is reflected in the final results. This can make cross-validation more convenient {\protect\citep{Goudie:2015kg}}. Splitting models into conditionally independent components at a set of separator or link parameters is also a key aspect of cross-validatory posterior predictive methods, including ``node-splitting'', for assessing conflict across subsets of evidence \citep{Presanis:2013hb,Gasemyr:2009jt}. Markov melding may provide a natural, computationally-efficient approach for systematic conflict assessment {\protect\citep{Presanis:2016}}. Our framework can also be viewed as encapsulating a range of approaches proposed in the big data literature for handling a large number of observations (`tall data'). With tall data it may be infeasible even to store all of the data on a single computer, nevermind evaluate functions depending on the whole dataset thousands of times, as needed in MCMC. Instead, a divide-and-conquer approach can be taken, in which the original exchangeable data \(y\) are partitioned into \(B\) batches \(y_{1}, \dots, y_{B}\), each of which contains few enough observations that standard statistical methods can be applied without undue trouble. The key observation is that the full posterior distribution \(p(\cpar \mid y)\) can be split into a number of submodel posteriors \(p_{b}(\cpar \mid y_{b}) \propto p(y_{b} \mid \cpar)p(\cpar)^{1/\batchLast}, \quad b = 1, \dots, B\). This is a form of model splitting (Section~\ref{sec:splitting-with-markov-melding}), with PoE{} pooling and the original prior apportioned equally among the batches. Various approaches for integrating the batch-specific posteriors to approximate the overall posterior have been proposed \citep{Huang:2005fo, Scott:2013wza, Neiswanger:2013ug, Wang:2013tg, Bardenet:2015vm, Minsker:2014wg}. However, this literature has so far only considered independent, identically distributed data, whereas we have considered more general models and data. \subsection{Computational challenges} In our examples, the link variable \(\phi\) is comparatively low dimensional and simple kernel density estimation using a multivariate $t$-distribution kernel proved sufficient. Moreover, the results were robust with respect to the choice of kernel and kernel bandwidth. For higher-dimensional link variables more care in the choice of kernel estimation method might be required \citep{henderson2015applied}, or, alternatively, we might wish to estimate the ratio of densities directly to improve stability \citep{sugiyama2012density}. The multi-stage sampler (Section~\ref{sec:multi-stage-mwg}) broadly falls into the category of a sequential Monte Carlo sampler \citep{smith2013sequential}, as described in Supplementary Material~\ref{s:appendix-smc}. While the Markov melding model is invariant to the ordering of the submodels used (assuming the pooling function is also), the efficiency of the multi-stage algorithm may not be in practice, due to the need for there to be sufficient stage one samples in the appropriate region. If two submodels contain an approximately equal amount of non-conflicting information, then the ordering is unlikely to be important. In other settings, more care may be required. For example, suppose submodel \(M_{1}\) contains considerably more information than \(M_{2}\). If stage one uses \(M_{1}\), then the stage one posterior may be so precise that it is unable to be adjusted for the extra information in \(M_{2}\). In contrast, if \(M_{2}\) is used first, then the estimate of the posterior distribution may be very coarse, due to a lack of samples in the central part of the posterior distribution. Further research will be needed to identify the best ordering to adopt in general. \subsection{Alternative approaches} We obtained consistency in the link parameter \(\phi\), as required by Markov combination, through marginal replacement (Section~\ref{sec:joining-models}). This approach assumes the priors differ in substance across submodels. Alternatively, as we outline in Supplementary Material~\ref{s:copula}, we could assume that the priors differ only due to different scalings in each submodel, and so can be made consistent through rescaling, similar to when deriving multivariate distributions from copulas \citep{durante2010copula}. Yet another approach is a supra-Bayesian approach {\protect\citep{Lindley:1979vl,Leonelli:vn}}, in which the decision maker models the experts' opinions. The prior pooling approach considered within our framework includes a judgement as to how to weight the different submodels. Various other methods have been proposed for weighting evidence, including the cut operator \citep{Lunn:2013,Plummer2015}; the power prior approach in clinical trials \citep[for example, ][]{Neuenschwander:2009}; and modularisation in the computer models literature \citep{Liu:2009hm}. Further research is required to investigate the relationship of Markov melding to other weighting approaches. \section*{Acknowledgements} \begin{sloppypar} {\small This work was supported by the UK Medical Research Council [programme codes MC\_UP\_1302/3, MC\_U105260556, U105260557 and MC\_U105260799]. We are grateful to Ian White, Sylvia Richardson, Brian Tom, Michael Sweeting, Paul Kirk, Adrian Raftery, and the 2015 Armitage lecturers (Leonhard Held and Michael H\"{o}hle) for helpful discussions of this work. We also thank colleagues at Public Health England for providing data.} \end{sloppypar} \bibliographystyle{../../bib/mystyle4}
\section{Introduction}\label{sec:intro} Mobile cloud computing enables the offloading of computationally heavy applications from Mobile Users (MUs) to a remote server by means of a wireless communication network \cite{kumar2013survey, dinh2013survey,sanaei2014heterogeneity, lei2013challenges, cloudlet}. Given the battery-limited nature of mobile devices, mobile cloud computing makes it possible to provide services, such as gaming, object recognition, video processing, or augmented reality, that may otherwise not be available to mobile users. Offloading may take place to remote servers in the ``cloud'', which is accessed by the wireless access points via backhaul links, or to ``cloudlet'' servers that are directly connected to an access point \cite{cloudlet}. In the latter case, the approach is also known as mobile edge computing, which is currently seen as a key enabler of the so called tactile internet \cite{tac} and is subject to standardization efforts \cite{mec}. Offloading to peer mobile devices is also being considered \cite{m2m}. Examples of architectures that are based on mobile cloud/cloudlet computation offloading include MAUI \cite{maui}, ThinkAir \cite{kosta2012thinkair}, and MobiCoRE \cite{mobcore}, while examples of commercial application based on mobile cloud computing include Apple iCloud, Shazam, and Google Goggles \cite{MCCAPP, shazam}. When optimized solely at the application layer, as in most of the earlier literature, the design of a mobile cloud computing systems entail decision of whether a mobile can decrease its energy expenditure by offloading the execution of the entire application \cite{kumar2013survey,dinh2013survey,huang2012dynamic,Miettinen2010EE,kumar2010cloud} or of some selected subtasks (see, e.g., \cite{Hermes,Barbarossa1}). Given that offloading requires transmission and reception on the wireless interface, a more systematic approach involves the joint optimization of offloading decisions and communication parameters, such as uplink power allocation \cite{Barbarossa1,shahrooz}, link and subcarrier selection \cite{xiang2014energy,2016letaief}, and uplink data rate \cite{vidal, GE}. The joint optimization of the set of subtasks to be offloaded and of the uplink transmission powers was studied in \cite{Barbarossa1,shahrooz} under static channel condition. A related dynamic computation offloading approach was presented in \cite{huang2012dynamic, GE} that determines which application subtasks are to be executed remotely given the available wireless network connectivity. Assuming a simplified execution model, in which input data can be arbitrary partitioned for separate processing, references \cite{vidal, DVS} study the fraction of the mobile data to be offloaded to the cloud, with the rest being executed locally at the mobile device. A framework that integrates wireless energy transfer and cloud mobile computing was put forth in \cite{MPT}. The works summarized thus far focus on the operation of a \textit{single} MU. In contrast to the single-MU problem formulation, in a scenario with multiple MUs transmitting over a shared wireless medium across multiple cells, the design of a mobile cloud computing system requires: (\emph{i}) the management of interference for the \textit{uplink}, through which MUs offload the data needed for computation in the cloud; (\emph{ii}) the management of interference for the \textit{downlink}, through which the outcome of the cloud computations are fed back to the MUs; (\emph{iii}) the allocation of \textit{backhaul} resources for communication between wireless edge and cloud; and (\emph{iv}) the allocation of \textit{computing} resources at the cloud. Furthermore, the optimization should include \textit{user selection}, or \textit{scheduling} mechanisms whereby the offloading users are guaranteed an energy consumption that is smaller than the amount required for local computing at the device. The limited literature on resource allocation and offloading decisions for the multiuser case includes papers \cite{xchen2015, chen2015,hossain2013, sar02, you2016,molina2014,zhang2016, guo2016, zhao2015}. The problem of decentralized user scheduling when modeling the aspect (\emph{i}) of uplink interference is considered in \cite{xchen2015,chen2015} for single-antenna elements within a game-theoretic framework. The joint allocation of radio and computational resources is considered in \cite{hossain2013} by accounting for the elements (\emph{i}) and (\emph{iv}), in the presence of multiple clouds, with the aim of maximizing network operator revenue via resource pool sharing. A problem formulation including elements (\emph{i}) and (\emph{iv}) was studied in \cite{sar02} with MIMO transceivers and for a fixed set of scheduled users. Scheduling in a single-cell was considered in \cite{you2016} with the goal of minimizing the weighted sum mobile energy consumption; it was shown that the optimal scheduling and cloud resource allocation policy (element (\emph{iv})) have a threshold-based structure. Another scheduling strategy for multiuser offloading systems in a small-cell set-up is presented in \cite{molina2014}, where the resources are allocated under the objective of minimizing the average latency experienced by the worst-case user by accounting for element (\emph{iv}) with the inclusion of uplink and downlink tasks schedulers. A scheme that jointly optimizes the computation offloading decisions and the radio resource allocation in heterogeneous networks by accounting for element (\emph{i}) so as to minimize the mobile energy expenditure under latency constraints was proposed in \cite{zhang2016}. An energy-efficient resource allocation for interference-free multi-users scenario was discussed in \cite{guo2016} with the aim of optimizing uplink and downlink transmissions duration while considering element (\emph{iv}). Finally, the problem of scheduling tasks between cloud and edge processors was studied in \cite{zhao2015} without modeling the physical layer. In this paper, we account for all elements (\emph{i})-(\emph{iv}) as well as for user scheduling. Specifically, our main contributions are: \begin{itemize} \item We study the problem of minimizing the mobile energy consumption under latency constraints over uplink and downlink precoding, uplink and downlink backhaul resource allocation, as well as cloud computing resource allocation for general multi-antenna transceivers. This work is mostly motivated by the increasing importance of backhaul capacity limitations, which are well understood to be often the bottleneck in modern dense network deployments (see, e.g.,\cite{g5,bh}). We emphasize that, unlike \cite{sar02}, the problem formulation explicitly models the optimization of downlink communication for downloading the outcome of the optimization at the MUs as well as of the backhaul resource allocated to the active MUs in both uplink and downlink, that is, it accounts for all elements (\emph{i})-(\emph{iv}) listed above. The resulting problem requires the development of a novel adaptation of the Successive Convex Approximation (SCA) scheme \cite{scutari2014distributed, scutari2016parallel} that accounts for downlink and backhaul transmissions. \item The optimization of users scheduling is tackled jointly with the operation of uplink/downlink, backhaul and computational resources under the key constraint that each offloading MU should not consume more energy than that required for local computation. The resulting mixed integer problem is tackled by a means of SCA coupled with the smooth $l_p$-norm approximation approach \cite {ran}. We emphasize that this problem was not studied in [30], which instead considered a fixed set of scheduled users. \item A hybrid cloud-edge computing setup is studied in which, beside a cloud server, ``cloudlet'' or ``edge'' servers are available locally at the wireless access points. The cloudlet servers are able to execute offloaded applications without incurring backhaul latency but with a generally smaller CPU frequency \cite{cloudlet}. For the first time, we investigate here the optimal task allocation between cloudlet and the cloud via SCA in the presence of all elements (\emph{i})-(\emph{iv}) discussed above. \item We study the impact of cooperative downlink transmission via network MIMO \cite {comp} on the achievable energy-latency trade-off by accounting for the backhaul overhead needed to deliver user data to multiple access points for transmission to the MUs. This has also not previously studied in the context of mobile cloud computing with backhaul limitations. \end{itemize} The rest of the paper is organized as follows. Section II introduces the system model along with the basic problem formulation. The proposed SCA solution is described in Section III. Users scheduling is studied in Section IV. Hybrid edge, or cloudlet, and cloud computing is formulated and tackled in Section V. Cooperative downlink transmission is discussed in Section VI. Numerical results are presented in Section VII, while concluding remarks are finally provided in Section VIII. \section {System Model and Problem Formulation} \label{sec:problem} In this section, we describe the basic system model and problem formulation that will be adopted in this paper. The basic model assumes fixed user scheduling, offloading to a centralized cloud processor, and non-cooperative transmission at the wireless access points. Generalizations that address user scheduling, local computing capabilities at the access points and cooperative transmission will be treated later in Section \ref{selection}, Section \ref{sec:hybrid} and Section \ref{netmimo}, respectively. \subsection {System Model} We consider a network composed of $N_c$ cells of possibly different sizes such as micro- or femto-cells. \begin{figure}[!t] \label{fig1} \centering \includegraphics[width=\columnwidth]{fig1} \caption{{\small{Basic system model: Mobile users (MUs) offload the execution of their applications to a centralized cloud processor through a wireless access network and finite capacity backhaul links.}}} \label{sys} \end{figure} Each cell $n=1,\ldots,N_c$ includes a base station, referred to as cloud-enhanced e-Node B (ceNB) borrowing from LTE nomenclature, which is connected to a common cloud server that provides computational resources. As shown in Fig. 1, each cell contains $K$ active mobile users (MUs) that have been scheduled for the offloading of their local applications to the cloud processor. The $K$ MUs in the same cell transmit in orthogonal spectral resources, in the time or frequency domain. We denote by $i_n$ the MU in cell $n$ that is scheduled on the $i$-th spectral resource, and by $\mathcal{I} \triangleq \left\{i_n: i=1,\ldots,K, n=1,\ldots,N_c \right\}$ the set of all the active MUs in the system. Each MU $i_n$ and ceNB $n$ is equipped with $N_{T_{i_n}}$ transmit and $N_{R_{n}}$ receive antenna, respectively. Note that MUs in different cells that are scheduled on the same spectral resources interfere with each other. Each MU $i_n$ wishes to run an application within a given maximum latency $T_{{i}_n}$. The application to be executed is characterized by the number $V_{{i}_n}$ of CPU cycles necessary to complete it, by the number $B_{{i}_n}^I$ of input bits, and by the number $B^O_{{i}_n}$ of output bits encoding the result of the computation. Table I summarizes the notations and parameters used in the system model. We next derive energy and latency resulting from offloading of the applications of all active MUs. The offloading latency consist of the time $\Delta_{i_{n}}^{ul}$ needed for the MU to transmit the input bits to its ceNB in the uplink; the time $\Delta_{i_{n}}^{exe}$ necessary for the cloud to execute the instructions; the round-trip time $\Delta_{i_{n}}^{bh}$ for exchanging information between ceNB and the cloud through the backhaul link; and the time $\Delta_{i_{n}}^{dl}$ to send the result back to the MU in the downlink (see Fig. 2). We can hence write the total offloading latency for MU $i_n$ as \begin{equation} \Delta_{i_{n}}=\Delta_{i_{n}}^{ul}+\Delta_{i_{n}}^{exe}+\Delta_{i_{n}}^{bh}+\Delta_{i_{n}}^{dl}. \end{equation} % The energy $E_{i_{n}}$ of each MU $i_n$ instead depends only on the power used for transmission in the uplink and reception energy in the downlink. These latency and energy terms are computed as a function of the radio and computational resources as detailed next. \begin{figure}[!t] \label{fig2} \centering \includegraphics[width=\columnwidth]{fig2} \caption{{\small{Timeline of offloading from an MU $i_n$. Note that the total two-way backhaul latency is given as $\Delta_{i_{n}}^{bh} = \Delta_{i_{n}}^{bh,ul} + \Delta_{i_{n}}^{bh,dl}$. }}} \label{timeline} \end{figure} 1) \textit{Uplink transmission:} The optimization variables at the physical layer for the uplink are the users' transmit covariance matrices $\mathbf{Q}^{ul} \triangleq \left({\mathbf{Q}}_{i_{n}}^{ul}\right)_{i_{n}\in\mathcal{I}},$ where ${\mathbf{Q}}_{i_{n}}^{ul}=\mathbb{E}[{\mathbf{x}}_{i_{n}}^{ul}{\mathbf{x}}_{i_{n}}^{{ul}^H}]$ with $\mathbf{x}_{i_{n}}^{ul}\sim \mathcal{CN}(\mathbf{0},{\mathbf{Q}}_{i_{n}}^{ul})$ being the signal transmitted by the user $i_n$. These matrices are subject to power budget constraints \begin{equation} \mathcal{Q}_{i_{n}}^{ul} \triangleq \left\{{\mathbf{Q}}_{i_{n}}^{ul} \in {\mathbb{C}}^{N_{{T}_{i_{n}}}\times N_{{T}_{i_{n}}} } :{\mathbf{Q}}_{i_{n}}^{ul}\succeq 0, \text{tr}({\mathbf{Q}}^{ul}_{i_{n}}) \leq P_{i_{n}}^{ul} \right\}, \end{equation} where $P_{i_{n}}^{ul}$ is the maximum allowed transmit energy per symbol of MU $i_n$. For any given profile $\mathbf{Q}^{ul}$, the achievable transmission rate, in bits per symbol, which corresponds to the mutual information evaluated on the MIMO Gaussian channel (see, e.g., \cite{tse2005fundamentals}) of MU $i_n$ when multi-user interference is treated as additive Gaussian noise, is \begin{equation} r_{i_{n}}^{ul}(\mathbf{Q})=\log_{2}{\det}\Big(\mathbf{I}+\mathbf{H}_{i_{n}}^H\mathbf{R}_n^{ul}(\mathbf{Q}_{-i_{n}}^{ul})^{-1}\mathbf{H}_{i_{n}}{\mathbf{Q}}_{i_{n}}^{ul}\Big), \end{equation} where \begin{equation} \mathbf{R}_n^{ul}(\mathbf{Q}_{-i_{n}}^{ul})\triangleq N_0\mathbf{I}+ \sum_{j_m\in \mathcal{I},m\neq n}\mathbf{H}_{j_{m}n}\mathbf{Q}_{j_{m}}^{ul}\mathbf{H}_{j_{m}n}^H \end{equation} is the covariance matrix of the sum of the noise and of the inter-cell interference affecting reception at the $n$-th ceNB in the $i$-th spectral resources; $\mathbf{Q}_{-i_{n}}^{ul} \triangleq \left( \left(\mathbf{Q}_{j_{m}}^{ul}\right)_{j=1}^K \right)_{n \ne m=1}^{N_c}$; $N_0$ is the noise power spectral density; and $\mathbf{H}_{i_{n}}$ is the uplink channel matrix for MU $i_n$ to the ceNB in the cell $n$, whereas $\mathbf{H}_{j_{m}n}$ is the cross channel matrix between the interfering MU $j_m$ in the cell $m$ and the ceNB in cell $n$. The channel matrices account for path loss, slow and fast fading. The time, in seconds, necessary for user $i$ in cell $n$ to transmit the input bits $B_{i_{n}}^I$ to its ceNB in the uplink is then \begin{equation} \label{del_ul} \Delta _{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right) = \frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}}, \end{equation} where $W^{ul}$ is the uplink channel bandwidth allocated to each one of the orthogonal spectral resources. The corresponding energy consumption due to uplink transmission is then \begin{equation} \label{off_ene} {E_{{i_n}}^{ul}}\left( {{{\bf{Q}}^{ul}}} \right) = {B_{{i_n}}^I}\frac{{\text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}} \right)}}{{r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}}, \end{equation} since around ${{B_{{i_n}}^I}}/{{{r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}}}$ channel uses are needed in order to transmit reliably in the uplink. \begin{table}[] \centering \caption{System Parameters} \label{my-label} \begin{tabular}{|l|l|} \hline Parameter & Description \\ \hline $F_c$, $F^{ceNB}_n$ & cloud and cloudlet computational capacity \\ \hline $C^{ul}_{n},C^{dl}_{n}$ & uplink and downlink backhaul capacity of cell $n$ \\ \hline $H_{{i}_n},G_{{i}_n}$ & uplink and downlink channel matrix for user $i_n$ \\ \hline $P_{i_{n}}^{ul},P_{n}^{dl}$ & uplink and downlink power budget constraint \\ \hline $W^{ul},W^{dl}$ & uplink and downlink bandwidth \\ \hline $N_o$ & noise power spectral density \\ \hline $N_{T_{i_n}},N_{R_{n}}$ & number of transmit and receive antenna \\ \hline $B_{{i}_n}^I,B^O_{{i}_n} $ & number of input and output bits for user $i_n$ \\ \hline $V_{{i}_n}$ & number of CPU cycles for user $i_n$\\ \hline $T_{{i}_n}$ & latency constraint for user $i_n$ \\ \hline $N_c, K$ & number of cell and number of users in each cell \\ \hline $d_{{i}_n}$ & reception energy constant for user $i_n$ \\ \hline $\kappa$ & mobile device switched capacitance \\ \hline $\alpha, \delta$ & step size constant and termination accuracy \\ \hline \end{tabular} \end{table} 2) \textit{Downlink transmission:} The optimization variables for the downlink are the ceNBs' transmit covariance matrices $\left(\mathbf{Q}_{i_{n}}^{dl}\right)_{i=1}^K$, which are subject to per-ceNB power constraints $P^{dl}_n$: \begin{equation} \resizebox{ \columnwidth}{!} { $\mathcal{Q}_{{n}}^{dl} \triangleq \left\{\left(\mathbf{Q}_{i_{n}}^{dl}\right)_{i=1}^K \in {\mathbb{C}}^{N_{{T}_{i_{n}}}\times N_{{T}_{i_{n}}} } : {\mathbf{Q}}_{i_{n}}^{dl}\succeq 0, \displaystyle\sum_{i=1}^K\text{tr}({\mathbf{Q}}_{i_{n}}^{dl}) \leq P^{dl}_n \right\}.$ } \end{equation} Similar to the uplink, we can write the achievable rate in bits per symbol for each MU in the downlink as \begin{equation} \label{r_dl} r_{i_{n}}^ {dl}(\mathbf{Q}^ {dl})=\log_{2}{\det}\Big(\mathbf{I}+ \mathbf{G}_{i_{n}}^H \mathbf{R}_n^{dl}(\mathbf{Q}_{-i_{n}}^ {dl})^{-1}\mathbf{G}_{i_{n}}{\mathbf{Q}}_{i_{n}}^{dl}\Big), \end{equation} with \begin{equation} \label{noise_dl} \mathbf{R}_n^{dl}(\mathbf{Q}_{-i_{n}}^ {dl})\triangleq N_0\mathbf{I}+ \sum_{j_m\in \mathcal{I},m\neq n}\mathbf{G}_{j_{m}n}\mathbf{Q}_{j_{m}}^{dl}\mathbf{G}_{j_{m}n}^H; \end{equation} the corresponding required transmission time reads \begin{equation} \label{del_dl} \Delta _{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right) = \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}, \end{equation} where $\mathbf{G}_{i_{n}}$ is the downlink channel matrix between the ceNB in cell $n$ and the MU $i_n$; $\mathbf{G}_{j_{m}n}$ is the cross channel matrix between the interfering MU $j_m$ in the cell $m$ and the ceNB in cell $n$; ${W^{dl}}$ is the downlink channel bandwidth; and $\mathbf{Q}_{-i_{n}}^{dl} \triangleq \left( \left(\mathbf{Q}_{j_{m}}^{dl}\right)_{j=1}^K \right)_{n \ne m=1}^{N_c}$. The downlink energy consumption is given by \begin{equation} \label{dl_ene} {E_{{i_n}}^{dl}}\left( {{{\bf{Q}}^{dl}}} \right) = {B_{{i_n}}^O}\frac{{d_{{i_n}}}}{{r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}, \end{equation} where ${d_{{i_n}}}$ is parameter that indicates the receiver energy expenditure for each symbol interval. Note that (7)-(8) implicitly assume that the downlink spectral resources are allocated to the MUs in the same way as for the uplink, so that MUs ${i_{n}} \text{ for } n=1,\ldots,N_c$ are mutually interfering in both uplink and downlink. This assumption can be easily alleviated at the cost of introducing additional notation. \newtheorem{remark}{Remark} 3) \textit{Cloud processing:} Let $F_c$ be the capacity in terms of number of CPU cycles per second of the cloud; and let $f_{i_{n}}\geq 0$ be the fraction of the processing power $F_c$ assigned to user $i_n$, so that $\sum_{{i_n}\in\mathcal{I}} f_{i_{n}}\leq 1$. The time needed to run $V_{i_{n}}$ CPU cycles for user $i_n$ remotely is then \begin{equation} \label{del_exe} \Delta_{i_{n}}^{exe}(f_{i_{n}})=\frac{V_{i_{n}}}{f_{i_{n}}F_c}. \end{equation} Define $\mathbf{f} \triangleq ({{f}}_{i_{n}})_{i_{n}\in\mathcal{I}}$. 4) \textit{Backhaul transmission:} We denote by $C_{{n}}^{ul}$ the capacity in bits per second of the backhaul connecting the ceNB in cell $n$ with the cloud, and by $C_{{n}}^{dl}$ the capacity in bits per second of the backhaul connecting the cloud with the ceNB in cell $n$. Let $ c_{i_{n}}^{ul},c_{i_{n}}^{dl} \geq 0$ be the fraction of the backhaul capacities $C_{{n}}^{ul}$ and $C_{{n}}^{dl}$, respectively, allocated to MU $i$ in cell $n$. We then have the constraint $\sum_{i=1}^K c_{i_{n}}^{ul}\leq 1$ and $\sum_{i=1}^K c_{i_{n}}^{dl}\leq 1$ for all $n$. Moreover, the time delay due to the backhaul transfer between ceNB $n$ and the cloud in both directions is given by \begin{equation} \label{del_bh} \Delta_{i_{n}}^{bh}(c_{i_{n}}^{ul},c_{i_{n}}^{dl})=\frac{B_{i_{n}}^I}{c_{i_{n}}^{ul} C_{n}^{ul}}+\frac{B_{i_{n}}^O}{c_{i_{n}}^{dl}C_{n}^{dl}}, \end{equation} where the first term represents the latency in the uplink direction, denoted as $\Delta_{i_{n}}^{bh,ul}$ (cf. Fig. 2), and the second term represents the latency in the downlink direction, denoted as $\Delta_{i_{n}}^{bh,dl}$ in the same figure. The uplink/downlink backhaul allocation vectors are defined as $\mathbf{c}^{ul} \triangleq ({{c}}_{i_{n}}^{ul})_{i_{n}\in\mathcal{I}}$ and $\mathbf{c}^{dl} \triangleq ({{c}}^{dl}_{i_{n}})_{i_{n}\in\mathcal{I}}$, respectively. \subsection{Problem Formulation} The total energy consumption due to the offloading of user $i_n$ data, i.e., transmitting $B_{i_{n}}^I$ bits and receiving $B_{i_{n}}^O$ bits, is then given by \begin{equation} \label{mu-ene} \begin{split} & E_{{i_n}} \left( {{{\bf{Q}}^{ul}}}, {{{\bf{Q}}^{dl}}}\right) = {E_{{i_n}}^{ul}}\left( {{{\bf{Q}}^{ul}}} \right) + {E_{{i_n}}^{dl}}\left( {{{\bf{Q}}^{dl}}} \right) \\ & = {B_{{i_n}}^I}\frac{{\text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}} \right)}}{{r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}}+{B_{{i_n}}^O}\frac{{d_{{i_n}}}}{{r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}. \end{split} \end{equation} The optimal offloading problem can be stated as the minimization of the sum of the energy spent by all MUs to run their applications remotely, subject to individual latency and power constraint. Stated in mathematical terms, we have the following \begin{equation*} \begin{array}{l} \begin{array}{*{20}{l}} {\mathop {{\mathop{\rm min}\nolimits} }\limits_{{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}},{\bf{f}},{{\bf{c}}^{ul}},{{\bf{c}}^{dl}}} }&{E\left( {{{\bf{Q}}^{ul}}},{{{\bf{Q}}^{dl}}} \right)}{ \triangleq \sum\limits_{{i_n} \in {\cal I}} {{E_{{i_n}}}\left( {{\bf{Q}}^{ul},{\bf{Q}}^{dl}} \right)} }\\ {}{}&{ = \sum\limits_{{i_n} \in {\cal I}} {B_{{i_n}}^I}\frac{{\text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}} \right)}}{{r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}}+{B_{{i_n}}^O}\frac{{d_{{i_n}}}}{{r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}} } \end{array}\\ \begin{array}{*{20}{l}} \;\;\;\;\;\;\;\;\; \text{s.t.}&{{\bf{C}}.\mathbf{1}}&{\frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} + \frac{{B_{{i_n}}^I}}{{c_{{i_n}}^{ul}{C^{ul}_n}}} + \frac{{{V_{{i_n}}}}}{{{f_{{i_n}}}{F_c}}}}\\ {}&{}&{ + \frac{{B_{{i_n}}^O}}{{c_{{i_n}}^{dl}{C^{dl}_n}}} + \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}} \le {T_{{i_n}}}}, \forall i_n \in \cal{I},\\ {}&{{\bf{C}}{\bf{.2}}}&{{f_{{i_n}}} \ge 0}, \forall i_n \in {\cal{I}}, \sum\limits_{{i_n} \in {\mathcal {I}}} {{f_{{i_n}}}} \leq 1, \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; \\ {}&{{\bf{C}}{\bf{.3}}} & { c_{{i_n}}^{ul},c_{{i_n}}^{dl} \ge 0, \forall i_n \in \mathcal{I}, }\\ {}&{}&{\sum\limits_{i=1}^K {c_{{i_n}}^{ul}} \leq 1,\sum\limits_{i=1}^K {c_{{i_n}}^{dl}} \leq 1 , \forall n=1,\dots, N_c ,}\\ {}&{{\bf{C}}{\bf{.4}}}& {{\bf{Q}}_{{i_n}}^{ul} \in {\cal Q}_{{i_n}}^{ul}, {\forall i_n \in \mathcal{I}}}, \\ {}&{}&{ \left(\mathbf{Q}_{i_{n}}^{dl}\right)_{i=1}^K \in {\cal Q}_n^{dl}, \forall n=1,\dots, N_c.} \end{array} \end{array}\notag \tag{P.1}\label{P.1} \end{equation*} Constraint C.1 enforces that the latency for any MU $i_n$ to be less than or equal to the maximum tolerable delay of $T_{i_{n}}$ seconds; C.2 imposes the mentioned limit on the cloud computational resources; C.3 enforces the limited backhaul capacities in uplink and downlink; and C.4 guarantee that power budget constraint on the radio interface of both uplink and downlink is satisfied. Note that problem (P.1) depends only on the ratios ${B_{{i_n}}^I}/{{{W^{ul}}}}$, ${B_{{i_n}}^I}/{{{C^{ul}_n}}}$, ${V_{{i_n}}}/{F_c}$, ${B_{{i_n}}^O}/{{{W^{dl}}}}$ and ${B_{{i_n}}^O}/{{{C^{dl}_n}}}$. We denote by $\mathbf{Z}\triangleq \big( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}}},{{{\bf{f}}},{{\bf{c}}^{ul}}},{{{\bf{c}}^{dl}}} \big)$ the set of all optimization variables, and by $\mathcal Z$ the feasible set of (P.1). Note that (P.1) is non-convex, due to the non-convexity of the objective function and of the constraint C.1. \begin{remark} \normalfont As discussed, the expression in C.1 for the latency of each user assumes that the communication and processing steps, including uplink transmission, edge-to-cloud backhaul transmission, cloud processing, cloud-to-edge backhaul transmission and downlink transmission take place one after the other for each user, as illustrated in Fig. 2. Given that the uplink, backhaul, execution and downlink latencies may be different across the users, the communication steps of different users may not be aligned. While this fact may be exploited by a sophisticated receiver that tracks the variation of the interference power within a communication block, the resulting achievable rates are extremely difficult to characterize and optimize. In contrast, the expression of the uplink and downlink rates (3) and (8), in which interference is assumed to be caused by all users, are achievable by means of standard decoders (see, e.g., \cite{kampf2010euclidean}) and can be efficiently computed and optimized, as it will be shown in Sec. III. \end{remark} \normalfont \noindent \textbf{Feasibility.} Problem (P.1) has a non-empty feasible set if there exist matrices ${{{\bf{Q}}^{ul}}}$ and ${{{\bf{Q}}^{dl}}}$ such that the following inequalities hold \\ {a)} $T_{{i_n}} > \frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} + \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}$, $\forall i_n \in \cal{I}$;\\ {b)} ${\sum\limits_{{i_n} \in {\cal I}} \dfrac{V_{{i_n}}/F_c}{T_{{i_n}}-\frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} + \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}} \leq \alpha_1 }$;\\ {c)} \resizebox{ 0.95\columnwidth}{!} { $\sum\limits_{i=1}^K \dfrac{B_{{i_n}}^I/C^{ul}_n}{T_{{i_n}}-\frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}}+ \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}}\leq \alpha_2$, $\forall n=1,\dots, N_c;$ }\\ {d)} \resizebox{.95 \columnwidth}{!} {$\sum\limits_{i=1}^K \dfrac{B_{{i_n}}^O/C^{dl}_n}{T_{{i_n}}-\frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} + \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}}\leq \alpha_3$, $\forall n=1,\dots, N_c;$}\\ \\ for some $\alpha_1, \alpha_2, \alpha_3 \geq 0$ with $\alpha_1+\alpha_2+\alpha_3 = 1$. In fact, if above conditions are met, one can always choose $f_{{i_n}}=\alpha_1^{-1}({V_{{i_n}}/F_c}){\Big(T_{{i_n}}-\frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} - \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}\Big)^{-1}}$, and similarly for $c_{{i_n}}^{ul}$ and $c_{{i_n}}^{dl}$, so that conditions b), c) and d) are satisfied with equality. \begin{remark} \normalfont \label{remark3} When the goal is identifying the achievable trade-off curve between energy consumption and latency, assuming for simplicity that all MUs have the same latency constraint $T$, e.g., $T_{{i_n}}=T$, the following problem may also be considered \begin{equation*} \begin{array}{l} \begin{array}{*{20}{l}} {\mathop {{\mathop{\rm min}\nolimits} }\limits_{{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}},{\bf{f}},{{\bf{c}}^{ul}},{{\bf{c}}^{dl}},T} }&{E\left( {{{\bf{Q}}^{ul}}},{{{\bf{Q}}^{dl}}} \right)}+ \lambda T\\ \end{array}\\ \begin{array}{*{20}{l}} \;\;\;\;\;\;\;\;\;\; \text{s.t.}&{{\bf{C}}.\mathbf{1}}\;\;\;\;{\frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} + \frac{{B_{{i_n}}^I}}{{c_{{i_n}}^{ul}{C^{ul}_n}}} + \frac{{{V_{{i_n}}}}}{{{f_{{i_n}}}{F_c}}}}\\ {}&{}\;\;\;\;\;\;\;\;\;\;{ +\frac{{B_{{i_n}}^O}}{{c_{{i_n}}^{dl}{C^{dl}_n}}} + \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}} \le {T}}, \forall i_n \in \mathcal{I}, \\ {}&{\bf{C}}.\mathbf{2}-{\bf{C}}.\mathbf{4} \;\; \text{of (P.1)}, \\ \end{array} \end{array}\notag \tag{P.2}\label{P.2} \end{equation*} where $\lambda > 0$ is a parameter identifying the desired relative weight between energy and latency minimization. \label{remark3} \end{remark} \begin{remark} \normalfont The problem formulation (P.1) can be easily extended to account for a more general backhaul topology in which the ceNBs are connected to the cloud via a multi-hop network with predefined routes between ceNBs and cloud. We do not further elaborate on this model here, because of the space limitation. \label{remark4} \end{remark} \begin{remark} \normalfont Problem (P.1) was tacked in \cite{sar02} for the special case where the joint optimization was over radio and computational resources and only in the uplink direction. Problem (P.1), instead, considers a general setup in which joint optimization carried over backhaul capacities in both uplink and downlink, as well as the optimization over the downlink radio transmission from the ceNB to the MU. This generalization entails different formulations for the objective function and for the latency constraint from that in \cite{sar02} and thus calls for novel SCA-based solution methods. \end{remark} \section{successive convex approximation optimization} \label{sec:sca} Problem (P.1) is non-convex due to the non-convexity of the objective function and of the constraint C.1. To address this issue, we leverage the SCA method proposed in \cite{scutari2014distributed, scutari2016parallel} for general non-convex problems. The SCA algorithm in \cite{scutari2014distributed, scutari2016parallel} is proved to converge to a stationaty solution of the (NP-hard) non-convex probem by solving a sequence of convex sub-problems, each one of which can be solved in polynomial time, e.g., by interior-point methods \cite{nesterov1994interior}. To do so, we need to identify convex approximants for the objective function and for the non-convex constraints C.1 that satisfy the conditions specified in \cite{scutari2014distributed, scutari2016parallel} as discussed next. \subsection{Convex Surrogate for the Objective Function} \label{con_obj} Define as $\cal{K}\supseteq \cal{Z}$ any compact convex set containing the feasible set $\cal{Z}$ such that all functions in (P.1) are well defined on it. Note that such a set always exists. This set exists by the same arguments used in \cite[Sec. IV-B]{sar02}. Let ${\bf{Z}}\left( v \right) \triangleq \big( {{{\bf{Q}}^{ul}}\left( v \right),{{\bf{Q}}^{dl}}\left( v \right)}, {{{\bf{f}}}\left( v \right),{{\bf{c}}^{ul}}\left( v \right)},{{{\bf{c}}^{dl}}\left( v \right)} \big)$, with $v$ being the current iterate index of the SCA algorithm. According to \cite{scutari2014distributed, scutari2016parallel}, in order to be used within the SCA scheme, a convex approximant $\tilde E\left( {{{\bf{Z}}};{\bf{Z}}\left( v \right)} \right)$ of the objective function $ E\left( {{{\bf{Q}}^{ul}}}, {{{\bf{Q}}^{dl}}} \right)$ around the current feasible iterate ${\bf{Z}}\left( v \right) \in \cal{Z}$ must satisfy the following properties (\!\!\cite[Sec. II]{scutari2014distributed}):\\ A1: $\tilde E\left( {\bullet;{{\bf{Z}}}\left( v \right)} \right)$ is uniformly strongly convex on $\cal{K}$;\\ A2: ${\nabla _{{{\bf{Q}}^{u{l^*}}}}}\tilde E\left( {{{\bf{Z}}}\left( v \right);{{\bf{Z}}}\left( v \right)} \right) = {\nabla _{{{\bf{Q}}^{u{l^*}}}}}E\left( {{\bf{Q}}^{ul}}\left( v \right), {{\bf{Q}}^{dl}}\left( v \right) \right)$ and ${\nabla _{{{\bf{Q}}^{d{l^*}}}}}\tilde E\left( {{{\bf{Z}}}\left( v \right);{{\bf{Z}}}\left( v \right)} \right) = {\nabla _{{{\bf{Q}}^{d{l^*}}}}}E\left({{\bf{Q}}^{ul}}\left( v \right), {{\bf{Q}}^{dl}}\left( v \right) \right)$, for all ${{\bf{Z}}}\left( v \right) \in \cal{Z}$;\\ A3: ${\nabla _{{{\bf{Z}}^{{*}}}}}\tilde E\left(\bullet;\bullet \right) $ is Lipschitz continuous on $\cal{K} \times \cal{Z}$; \\ where ${\nabla _{{{\bf{x}}^{{*}}}}}f(\bf x;y)$ denotes the conjugate gradient of the function $f(\bf x;y)$ with respect to its first argument $\bf{x}$. We note that, besides the convexity and smoothness conditions A1 and A3, A2 enforces that the first-order behavior of the approximant be the same as for the original function. In what follows, we derive an approximant for the objective function (14) satisfying A1-A3 above. Let us write \begin{equation} \label{E_apprx_dl} \begin{split} & \tilde E\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) \triangleq \sum\limits_{{i_n} \in {\cal I}} {{{\tilde E}_{{i_n}}}\left( {{{\bf{Z}}_{{i_n}}}}; {{\bf{Z}}}\left( v \right) \right)+ {\rm \bar E}\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) } \\ = & \sum\limits_{{i_n} \in {\cal I}} \Big( {\tilde E_{{i_n}}^{ul}}\left( {{{\bf{Q}}^{ul}}};{{{\bf{Q}}^{ul}}}(v) \right) +{\tilde E_{{i_n}}^{dl}}\left( {{{\bf{Q}}^{dl}}};{{{\bf{Q}}^{dl}}}(v) \right) \Big) \\ & + {\rm \bar E}\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) , \end{split} \end{equation}where ${\bf{Z}}_{{i_n}} \triangleq \big( {{{\bf{Q}}^{ul}_{{i_n}}},{{\bf{Q}}^{dl}_{{i_n}}}},{{{{f}}}_{{i_n}},{{{c}}^{ul}_{{i_n}}}},{{{{c}}^{dl}_{{i_n}}}} \big)$ with the function ${\rm \bar E}\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) \triangleq \frac{{{{{\gamma_{{q^{ul}}}}}}}}{2}\sum_{{i_n} \in {\cal I}}{\left\| {{{\bf{Q}}^{ul}} - {{\bf{Q}}^{ul}}\left( v \right)} \right\|^2}+\frac{{{{{\gamma_{{q^{dl}}}}}}}}{2}\sum_{{i_n} \in {\cal I}}{\left\| {{{\bf{Q}}^{dl}} - {{\bf{Q}}^{dl}}\left( v \right)} \right\|^2} + \frac{{{\gamma_f}}}{2}{\left\| {{\bf{f}} - {\bf{f}}\left( v \right)} \right\|^2} + \frac{{{\gamma_{{c^{ul}}}}}}{2}{\left\| {{{\bf{c}}^{ul}} - {{\bf{c}}^{ul}}\left( v \right)} \right\|^2} + \frac{{{\gamma_{{c^{dl}}}}}}{2}{\left\| {{{\bf{c}}^{dl}} - {{\bf{c}}^{dl}}\left( v \right)} \right\|^2}$ is added to make the approximant objective function (\ref{E_apprx_dl}) strongly convex on $\cal{K}$, with ${\gamma_{q^{ul}}},{\gamma_{q^{dl}}}, {\gamma_f}, {\gamma_{{c^{ul}}}}$ and ${\gamma_{{c^{dl}}}}$ being arbitrary positive constants (see \cite{scutari2014distributed, scutari2016parallel}{}).The functions ${\tilde E_{{i_n}}^{ul}}\left( {{{\bf{Q}}^{ul}}};{{{\bf{Q}}^{ul}}}(v) \right)$ and ${\tilde E_{{i_n}}^{dl}}\left( {{{\bf{Q}}^{dl}}};{{{\bf{Q}}^{dl}}}(v) \right)$ are the convex approximants for the uplink and downlink energy terms, respectively, as derived next. \textit{1) Convex approximant for} $E_{{i_n}}^{ul} \left( {{{\bf{Q}}^{ul}}}\right)$: It is not difficult to check that an approximant that utilize the ``partial'' convexity of the uplink energy function (\ref{off_ene}) can be obtained as (cf. \cite[Sec. IV-B]{sar02}) \begin{equation} \label{Ein_apprx} \begin{split} {\tilde E_{{i_n}}^{ul}}&\left( {{{\bf{Q}}^{ul}}};{{{\bf{Q}}^{ul}}}(v) \right) = \; \text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}\left( v \right)} \right)\frac{{B_{{i_n}}^I}}{ {r_{{i_n}}^{ul}\left( {{\bf{Q}}_{{i_n}}^{ul},{\bf{Q}}_{-i_{n}}^{ul}\left( v \right)} \right)}} \\ & + \text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}} \right)\frac{{B_{{i_n}}^I}}{{r_{{i_n}}^{ul}\left( {{\bf{Q}}_{{i_n}}^{ul}\left( v \right),{\bf{Q}}_{-i_{n}}^{ul}\left( v \right)} \right)}}\\ & + \sum\limits_{{j_m} \in {\cal I},m \ne n} {\left\langle {{\nabla _{{\bf{Q}}{{_{{i_n}}^{ul}}^*}}}{E_{{j_m}}}\left( {{{\bf{Q}}^{ul}}\left( v \right)} \right),{\bf{Q}}_{{i_n}}^{ul} - {\bf{Q}}_{{i_n}}^{ul}\left( v \right)} \right\rangle }, \end{split} \end{equation} where $\left\langle {{\bf{A}},{\bf{B}}} \right\rangle \triangleq {\mathop{\rm Re}\nolimits} \left\{ {\text{tr}\left( {{{\bf{A}}^H}{\bf{B}}} \right)} \right\}$, and the conjugate gradient ${{\nabla _{{\bf{Q}}{{_{{i_n}}^{ul}}^*}}}{E_{{j_m}}}\left( {{{\bf{Q}}^{ul}}\left( v \right)} \right)}$ is given by \cite[eq. (18)]{sar02} \begin{equation} \label{Ein_gradient} \begin{split} {\nabla _{{\bf{Q}}{{_{{i_n}}^{ul}}^*}}}&{E_{{j_m}}}\left( {{{\bf{Q}}^{ul}}\left( v \right)} \right) = \; \frac{{\text{tr}\left( {{\bf{Q}}_{{j_m}}^{ul}\left( v \right)} \right)\Delta _{{j_m}}^{ul}\left( {{{\bf{Q}}^{ul}}\left( v \right)} \right)}}{{\log \left( 2 \right){r_{{j_m}}^{ul}}\left( {{{\bf{Q}}^{ul}}\left( v \right)} \right)}}\\ & \cdot[{\bf{H}}_{{i_n}m}^H({\bf{R}}_m^{ul}{\left( {{\bf{Q}}_{ - {j_m}}^{ul}\left( v \right)} \right)^{ - 1}} - ({\bf{R}}_m^{ul}\left( {{\bf{Q}}_{ - {j_m}}^{ul}\left( v \right)} \right) \\ & + {{\bf{H}}_{{j_m}}}{\bf{Q}}_{{j_m}}^{ul}\left( v \right){\bf{H}}_{{j_m}}^H{)^{ - 1}}){{\bf{H}}_{{i_n}m}} ]. \end{split} \end{equation} \textit{2) Convex approximant for} $E_{{i_n}}^{dl} \left( {{{\bf{Q}}^{dl}}}\right)$: To obtain the desired convex approximant of downlink energy in (\ref{dl_ene}), we need to construct the convex surrogate for the downlink rate function, i.e., ${{\tilde r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}};{{\bf{Q}}^{dl}}\left( v \right)} \right)}}$. To obtain such an approximant, we exploit first the concave-convex structure of the rate functions $r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right) $ \begin{equation} \label{eq_6} \begin{split} r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right) = \; & \underbrace {{{\log }_2}\det \left( {{\bf{R}}_n^{dl}\left( {{\bf{Q}}_{ - {i_n}}^{dl}} \right) + {\bf{H}}_{{i_n}}^H{{\bf{H}}_{{i_n}}}{\bf{Q}}_{{i_n}}^{dl}} \right)}_{r{{_{{i_n}}^{dl}}^ + }\left( {{{\bf{Q}}^{dl}}} \right)} \\ & - \underbrace {{{\log }_2}\det \left( {{\bf{R}}_n^{dl}\left( {{\bf{Q}}_{ - {i_n}}^{dl}} \right)} \right)}_{r{{_{{i_n}}^{dl}}^ - }\left( {{\bf{Q}}_{-i_{n}}^{dl}} \right)}, \end{split} \end{equation} where ${r{{_{{i_n}}^{dl}}^ + }\left( {{{\bf{Q}}^{dl}}} \right)}$ and ${r{{_{{i_n}}^{dl}}^ - }\left( {{{\bf{Q}}^{dl}_{-i_{n}}}} \right)}$ are concave functions. The convex approximant is then obtained as \begin{equation} \label{g_t_apprx_2} \begin{split} \tilde r_{{i_n}}^{dl}&\left( {{{\bf{Q}}^{dl}};{{\bf{Q}}^{dl}}\left( v \right)} \right) =\; r_{{i_n}}^{dl + }\left( {{{\bf{Q}}^{dl}}} \right) - r_{{i_n}}^{dl - }\left( {{\bf{Q}}_{-i_{n}}^{dl}\left( v \right)} \right) \\ &- {\sum\limits_{j_m \in \cal{I} } {\left\langle {{\nabla _{{\bf{Q}}{{_{{j_m}}^{ul}}^*}}}r{{_{{i_n}}^{dl}}^ - }\left( {{\bf{Q}}_{{-i_n}}^{dl}\left( v \right)} \right),{\bf{Q}}_{{j_m}}^{dl} - {\bf{Q}}_{{j_m}}^{dl}\left( v \right)} \right\rangle } } , \end{split} \end{equation} with \begin{equation} \label{g_t_apprx_4} {\nabla _{{\bf{Q}}{{_{{j_m}}^{dl}}^*}}}r_{{i_n}}^{dl - }\left( {{\bf{Q}}_{{-i_n}}^{dl}\left( v \right)} \right) = {\bf{H}}_{{j_m}n}^H{\bf{R}}_n^{dl}{\left( {{\bf{Q}}_{-i_{n}}^{dl}\left( v \right)} \right)^{ - 1}}{{\bf{H}}_{{j_m}n}}. \end{equation} Then, we can simply obtain the convex approximant for $E_{{i_n}}^{dl} \left( {{{\bf{Q}}^{dl}}}\right)$ as \begin{equation} \tilde E_{{i_n}}^{dl} \left( {{{\bf{Q}}^{dl}};{{\bf{Q}}^{dl}}\left( v \right)} \right) ={B_{{i_n}}^O}\frac{{d_{{i_n}}}}{{\tilde r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}};{{\bf{Q}}^{dl}}\left( v \right)} \right)}}. \end{equation} \begin{remark} \normalfont The key advantage of SCA \cite{scutari2014distributed, scutari2016parallel} as compared to more conventional approaches such as Difference-of-Convex (DC) programming \cite{dc} is that the convex surrogate $\tilde E\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right)$ need not be a global upper bound on the function $E({\bf Q}^{ul}, {\bf Q}^{dl})$ -- a condition that appears to be difficult to ensure for the objective function of (P.1). \end{remark} \subsection{Inner Convexification of the Constraints} \label{con_con} Next, let us consider the latency constraint C.1. Note that this constraint differs from the corresponding latency constraint in \cite{sar02} by virtue of the contributions due to downlink and backhaul transmissions. Let us define the non-convex part of the left-hand side of C.1 as \begin{equation} \label{g_t} {g_{{i_n}}}\left( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}}} \right) \triangleq \frac{{B_{{i_n}}^I}}{{W^{ul}}{r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} + \frac{{B_{{i_n}}^O}}{{W^{dl}}{r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}. \end{equation} To apply SCA, we need to obtain an approximant $\tilde g_{{i_n}}\big({\bf{Q}}^{ul},{\bf{Q}}^{dl};\textbf{Z}(v)\big)$ at the current iterate ${\bf{Z}}\left( v \right) ) \in \cal{Z}$ that satisfies the following properties (\!\! \cite[Sec. II]{scutari2014distributed}):\\ B1: $\tilde g_{{i_n}}\big(\bullet,\textbf{Z}(v)\big)$ is uniformly convex on $\mathcal{K}$;\\ B2: ${\nabla _{{{\bf{Z}}^{*}}}}\tilde g_{{i_n}}\big( {\bf{Q}}^{ul}\left( v \right),{\bf{Q}}^{dl}\left( v \right);{\textbf{Z}(v)} \big) = {\nabla _{{{\bf{Z}}^{*}}}}g_{{i_n}}\big( {\bf{Q}}^{ul}\left( v \right),{\bf{Q}}^{dl}\left( v \right) \big)$, for all $\textbf{Z}(v) \in \mathcal{Z}$;\\ B3: ${\nabla _{{{\bf{Z}}^{*}}}}\tilde g_{{i_n}}(\bullet;\bullet)$ is continuous on $\mathcal{K}\times \mathcal{Z}$; \\ B4: $\tilde g_{{i_n}}\big({\bf{Q}}^{ul},{\bf{Q}}^{dl};\textbf{Z}(v)\big)\geq g_{{i_n}}\big({\bf{Q}}^{ul},{\bf{Q}}^{dl}\big)$, for all $\big({\bf{Q}}^{ul},{\bf{Q}}^{dl}\big) \in \cal{K}$ and $\textbf{Z}(v) \in \mathcal{Z}$; \\ B5: $\tilde g_{{i_n}}\big({\bf{Q}}^{ul}\left( v \right),{\bf{Q}}^{dl}\left( v \right);\textbf{Z}(v)\big)= g_{{i_n}}\big({\bf{Q}}^{ul}\left( v \right),{\bf{Q}}^{dl}\left( v \right)\big)$, for all $\textbf{Z}(v) \in \mathcal{Z}$;\\ B6: $\tilde g_{{i_n}}(\bullet;\bullet)$ is Lipschitz continuous on $\mathcal{K}\times \mathcal{Z}$. \\ Besides the first-order behavior and smoothness conditions B2, B3, B6, the key assumptions B1, B4 and B5 enforce that the approximant $\tilde g_{{i_n}}\big({\bf{Q}}^{ul},{\bf{Q}}^{dl};\textbf{Z}(v)\big)$ be a locally tight (condition B5) convex (condition B1) upper bound (condition B4) on the original constraint ${g_{{i_n}}}\left( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}}} \right)$. The desired surrogate approximation ${\tilde g}_{{i_n}}\left( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}}; \textbf{Z}(v) } \right)$ is then obtained from (\ref{g_t_apprx_2}) as \begin{equation} \label{g_t_apprx} \begin{split} {{\tilde g}_{{i_n}}} \left( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}}; \textbf{Z}(v)} \right) & \triangleq \; \frac{{B_{{i_n}}^I}}{{W^{ul}}{\tilde r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}};{{\bf{Q}}^{ul}}\left( v \right)} \right)}} \\ &+ \frac{{B_{{i_n}}^O}}{{W^{dl}}{\tilde r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}};{{\bf{Q}}^{dl}}\left( v \right)} \right)}}, \end{split} \end{equation} The proposed approximant (\ref{g_t_apprx}) is an upper bound (condition B4) and is a convex function of $ {\bf{Q}}^{ul} $ and ${\bf{Q}}^{dl}$ (condition B1). This is because both terms in (\ref{g_t_apprx}) are the reciprocal of a concave and positive function, and the sum of the two convex functions is convex. Furthermore, it is easy to show that the original constraint (\ref{g_t}) and its convex approximant (\ref{g_t_apprx}) have the same first-order behavior (condition B2) by evaluating the gradient of both functions at the current iterate. The remaining properties B3-B6 can also be checked in a similar manner to \cite[Sec. IV-B]{sar02}. For instance, since the approximant functions (\ref{Ein_apprx}) and (\ref{g_t_apprx_2}) are twice continuously differentiable over the compact convex set $\cal{K}\supseteq \cal{Z}$, the Lipschitz continuity of their conjugate gradients follows readily. \subsection{SCA Algorithm} The SCA algorithm operates by iteratively solving the following problem around the current iterate ${\bf{Z}}\left( v \right) \in \cal{Z}$, \begin{align*} & {\bf{\hat Z}}\left( {{\bf{Z}}\left( v \right)} \right) \triangleq \underset{\mathbf{Q}^{ul},\mathbf{Q}^{dl},\mathbf{f},\mathbf{c}^{ul},\mathbf{c}^{dl}}{\text{argmin}} \begin{aligned}[t] &{\tilde E\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) } \\ \end{aligned} \notag \\ &\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; \text{s.t.} \\ & \begin{aligned}[t] & \mathbf{C.1} \;\;\;\; {{\tilde g}_{{i_n}}}\left( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}}; \textbf{Z}(v) } \right) + \frac{{B_{{i_n}}^I}}{{c_{{i_n}}^{ul}{C^{ul}_n}}} + \frac{{B_{{i_n}}^O}}{{c_{{i_n}}^{dl}{C^{dl}_n}}}\\ & \;\;\;\;\;\;\;\;\; + \frac{{{V_{{i_n}}}}}{{{f_{{i_n}}}{F_c}}} \le {T_{{i_n}}}, \forall i_n \in \cal{I}, \end{aligned} \\ & {}{\bf{C}}.\mathbf{2}-{\bf{C}}.\mathbf{4} \;\; \text{of (P.1)}. \tag{P.3}\label{P.3} \end{align*} The unique solution of the strongly convex optimization problem (P.3) is denoted $ {\bf{\hat Z}}\big( {{\bf{Z}}\left( v \right)} \big) \triangleq \big({{{\bf{\hat Q}}}^{ul}},{{{\bf{\hat Q}}}^{dl}},{\bf{\hat f}},{{{\bf{\hat c}}}^{ul}} ,{{{\bf{\hat c}}}^{dl}}\big)$. Note that ${\tilde E\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) }$ is a function of $\bf{Z}$, given the current iterate ${{\bf{Z}}}\left( v \right)$. The SCA scheme is summarized in Algorithm 1. In step 2, the termination criterion is $\left| {E\left( {{{\bf{Q}}^{ul}}\left( {v + 1} \right)}, {{{\bf{Q}}^{dl}}\left( {v + 1} \right)} \right) - E\left( {{{\bf{Q}}^{ul}}\left( v \right)}, {{{\bf{Q}}^{dl}}\left( v \right)} \right)} \right| \le \delta $, where $\delta > 0$ is the desired accuracy. The step size rule we used is $\gamma \left( v \right) = \gamma \left( {v - 1} \right)\left( {1 - \alpha \gamma \left( {v - 1} \right)} \right)$ with $\gamma \left( 0 \right) \in \left( {0,1} \right]$ and $\alpha \in \left( {0,1/\gamma \left( 0 \right)} \right)$ (other step size rules can also be adopted, see\cite{scutari2014distributed, scutari2016parallel}). Algorithm 1 converges to a stationary point of the problem (\ref{P.1}) in the sense of \cite[Theorem 2]{sar02}. \begin{remark} \normalfont The SCA scheme can also be easily adapted to tackle the weighted sum problem (\ref{P.2}) discussed in Remark \ref{remark3}. This alternative formulation has the key advantage that the identification of an initial feasible point ${\bf{Z}}\left( 0 \right) \triangleq \big( {{\bf{Q}}^{ul}}\left( 0 \right),{{\bf{Q}}^{dl}}\left( 0 \right),{{\bf{f}}}\left( 0 \right),$ ${{\bf{c}}^{ul}}\left( 0 \right),{{\bf{c}}^{dl}}\left( 0 \right), {{{{T}}}\left( 0 \right)} \big)$ for the SCA is a trivial task. This is because one can always select a value of $T(0)$ that satisfies the constraint C.1 in (P.2) for given values of the other variables. \end{remark} \begin{remark}\normalfont\ Each instance of the optimization problem (P.3) tackled by SCA can be solved with complexity $O(\text{max}\{n^3, n^2m\})$ using interior-points methods \cite[Ch. 1]{boyd2004convex}, where $n$ is the size of the optimization variables, namely $\left(2N_{T_{i_n}}^2+3\right) KN_c$, and $m$ is the number of constraints, namely $m=7KN_c+3N_c+1$. Note that the complexity scales polynomially with the number $K$ of users and with all system parameters. While here we have focused on a centralized implementation, the complexity could be further reduced by developing distributed solutions as described in \cite[Sec. IV]{scutari2014distributed}. Finally, we would also like to mention that, in practice, rather than solving problem (P.3) using SCA at each time slot for the given realization of the channels, it would be possible to solve the problem for a number of representative channels so as to build a sufficiently dense look-up table. More interestingly, as recently explored in \cite{sunlearning} for power allocation in an interference channel, one could use such representative channels to train a neural network, or another learning machine, to ``interpolate'' the solution to other channel realizations. We leave these aspects for future investigations. \end{remark} \begin{algorithm} \caption{SCA Solution for (P.3) }\label{alg:SCA_Alg} \begin{algorithmic}[1] \INPUT Parameters from Table I; ${\bf{Z}}\left( 0 \right) \in {\cal Z}$; $v = 0$; ${\left\{ {\gamma \left( v \right)} \right\}_v} \in \left( {0,1} \right]$; ${\gamma_{q^{ul}}},{\gamma_{q^{dl}}},{\gamma_{f}},{\gamma_{c^{ul}}},{\gamma_{c^{dl}}} > 0$. \State If ${\bf{Z}}\left( v \right)$ satisfies the termination criterion, {stop}. \State Compute ${\bf{\hat Z}}\left( {{\bf{Z}}\left( v \right)} \right)$ from (\ref{P.3}). \State Set ${\bf{Z}}\left( {v + 1} \right) = {\bf{Z}}\left( v \right) + \gamma \left( v \right)\left( {{\bf{\hat Z}}\left( {{\bf{Z}}\left( v \right)} \right) - {\bf{Z}}\left( v \right)} \right)$. \State $v \leftarrow v + 1$, and return to step $1$. \OUTPUT $\mathbf{Z}= \big( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}}},{{{\bf{f}}},{{\bf{c}}^{ul}}},{{{\bf{c}}^{dl}}} \big)$. \end{algorithmic} \end{algorithm} \section{USER SELECTION} \label{selection} In the previous section, we assumed that a given number of active users, namely $K$ per cell, was scheduled for transmission. The premise of this section, is that, if too many MUs simultaneously choose to offload their computational tasks, the resulting interference on the wireless channel may require an energy consumption at the mobile for wireless transmission that exceeds the energy that would be needed for local computing at some MUs. Moreover, the backhaul and computing delays may make the latency constraint in problem (P.1) impossible to satisfy, and thus problem (P.1) infeasible. For theses reasons, in this section, we consider user selection with the aim of maximizing the number of MUs that perform offloading while guaranteeing that the selected MUs can satisfy their latency constraints and, at the same time, consume less energy than with local computing. In the rest of this section, the local computation energy model is first elaborated on and then the user scheduling problem is formulated and tackled by integrating SCA with smooth $l_p$-norm approximation methods. \subsection{Local Computation Energy} When the application is executed at the mobile device, the energy consumption $E_{i_{n}}^M$ is determined by the number of CPU cycles required by the application, $V_{i_{n}}$, and by the clock frequency of the device chip, which is denoted here as $F_{i_{n}}$. In particular, for CMOS circuits, the energy per operation is proportional to the square of the supply voltage to the chip, and when the supply voltage is low, the clock frequency of the chip is a linear function of the voltage supply \cite{cpu}. As a result, the mobile energy for computing can be expressed as \begin{equation} \label{ec} E_{i_{n}}^M=\kappa V_{i_{n}} F_{i_{n}}^2 , \end{equation} where $\kappa$ is the effective switched capacitance, which depends on the MU processor architecture, and the clock frequency is selected so as to meet the latency constraint, yielding \begin{equation} F_{i_{n}} = \frac{V_{i_{n}}}{T_{i_{n}}}. \end{equation} By plugging this into (\ref{ec}), we obtain the total consumption energy for mobile execution as \begin{equation} \label{local} E_{i_{n}}^M = \kappa \frac{V_{i_{n}}^3}{T_{i_{n}}^2}. \end{equation} For each MU $i_n$, offloading is advantageous when the energy for local mobile computing is higher than the energy required for offloading, i.e., \begin{equation} \label{condition} E_{i_{n}}^M \geq {{E_{{i_n}}^{ul}}\left( {{\bf{Q}}^{ul}} \right)}, \end{equation} where ${{E_{{i_n}}^{ul}}\left( {{\bf{Q}}^{ul}} \right)}$ is given in (6). Note that here we consider for brevity only the uplink energy contribution in (\ref{mu-ene}). \subsection{User Scheduling} To proceed, we introduce the auxiliary slack variables $(x_{{i_n}},y_{{i_n}})$ for each MU $i_n$ measuring the violation of the latency constraint C.1 in (\ref{P.1}) and the energy constraint (\ref{condition}), respectively. Our system design becomes maximizing the number of MUs that can perform offloading, while satisfying the latency constraints and guaranteeing energy savings with respect to local computation when offloading is performed. This amounts to maximizing the number of MUs $i_n$ with no violation of the mentioned constraints, i.e., with $x_{{i_n}} = 0$ and $y_{{i_n}} = 0$. This is done here by minimizing the $\ell_0$-norm \begin{equation} \label{lo} \|\mathbf{x}\|_0+\|\mathbf{y}\|_0 =\sum_{i_n\in \mathcal{X}} \mathbf{I}(x_{{i_n}} > 0) + \sum_{i_n\in \mathcal{X}} \mathbf{I}(y_{{i_n}} > 0), \end{equation} where $\mathbf{I}$ is an indicator function that returns $1$ for $x_{{i_n}},y_{{i_n}} > 0$ and $0$ otherwise, also define $\mathbf{x}\triangleq [x_{{i_n}}]_{i_n \in \mathcal{X}}$ and $\mathbf{y}\triangleq [y_{{i_n}}]_{{i_n} \in \mathcal{X}}$. The sum of the $l_0$-norms of the slack vectors $\mathbf x$ and $\mathbf y$ in (\ref{lo}) counts the number of constraints C.1 and C.2 that are violated by the users. Therefore, minimizing this sum enforces the selection of users that satisfy the largest number of constraints. Accordingly, the problem, defined for generality over any arbitrary subset of users $\mathcal{X} \subseteq \mathcal{I}$, reads \begin{equation*} \begin{array}{lcl} \begin{array}{*{20}{l}} {\mathop {{\mathop{\rm min}\nolimits} }\limits_{{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}},{\bf{f}},{{\bf{c}}^{ul}},{{\bf{c}}^{dl}}, \bf{x}, \bf{y} } }&{\|\mathbf{x}\|}_0 + {\|\mathbf{y}\|}_0\\ \end{array}\\ \begin{array}{*{20}{l}} \;\;\;\;\;\;\;\;\;\;\; \text{s.t.}& {{\bf{C}}.\mathbf{1}}\;\;\; {\frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} + \frac{{B_{{i_n}}^I}}{{c_{{i_n}}^{ul}{C^{ul}_n}}} + \frac{{{V_{{i_n}}}}}{{{f_{{i_n}}}{F_c}}}}+ \frac{{B_{{i_n}}^O}}{{c_{{i_n}}^{dl}{C^{dl}_n}}}\\ {}&{}{\;\;\;\;\;\;\;\;\; + \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}}- {T_{{i_n}}}\le x_{{i_n}} }, \forall i_n \in \mathcal{X},\\ {}&{{\bf{C}}{\bf{.2}}}\;\;\;\;\;{{E_{{i_n}}^{ul}}\left( {{\bf{Q}}^{ul}} \right)} - E_{i_{n}}^M \le y_{{i_n}}, \forall i_n \in \mathcal{X}, \\ {}&{{\bf{C}}{\bf{.3}}}\;\;\;\;\;x_{i_{n}} \geq 0, y_{i_{n}} \geq 0, \forall i_n \in \mathcal{X}, \\ & {}{\bf{C}}.\mathbf{2}-{\bf{C}}.\mathbf{4} \;\; \text{of (P.1)}, \forall i_n \in \mathcal{X}. \end{array} \end{array}\notag \tag{P.4}\label{P.4} \end{equation*} Define ${\bf{Z}} \triangleq \big( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}}},{{{\bf{f}}},{{\bf{c}}^{ul}}},{{{\bf{c}}^{dl}}}, \bf{x}, \bf{y} \big)$. The scheduling algorithm is described in Algorithm 2. The algorithm maximizes the number of scheduled MUs by progressively removing the MUs $i_n$ that have the largest entries in the vector $\mathbf{w}\triangleq\mathbf{x}/\sum_{{i_{n}\in\mathcal{X}}}{x_{i_{n}}}+\mathbf{y}/\sum_{{i_{n}\in\mathcal{X}}}{y_{i_{n}}}$, which measures the relative amount, with respect to all users in $\mathcal{X}$, by which a user violates the two constraints. Note that the normalizations by $\sum_{{i_{n}\in\mathcal{X}}}x_{i_{n}}$ and $\sum_{{i_{n}\in\mathcal{X}}} y_{i_{n}}$ ensure that the two constraints are considered on an equal footing. The outlined iterative procedure is repeated until a subset of users $\mathcal{X}^{\ast}$ is found for which problem (P.4) returns vector $\mathbf{w}$ that is close to zero, signifying feasibility of offloading under constraints C.1-C.4 of (\ref{P.1}) as well as (\ref{condition}). We observe that, unlike the admission control scheme in \cite[Algorithm 2]{ran}, the proposed algorithm requires two set of auxiliary variables in order to account for the constraints C.1 and C.2. Algorithm 2 returns the solution $s^{\ast}$, from which the set of MUs scheduled for offloading is obtained as $\mathcal{X}^{\ast} \triangleq \left\{ \pi_{1}, \ldots, {{\pi_{{s}^{\ast}}}} \right\}$. In more details, upon obtaining the solution of (P.4), the set of MUs is ordered according to the respective values of the entries of vector $\mathbf{w}$. Then, the subset $\mathcal{X}^{\ast}$ of scheduled users is computed by bisection. In particular, bisection searches for the minimum number of users in the interval $[0, KN_c]$, where $KN_c$ is the total number of users, that should be removed, so that the rest of the users can be scheduled for offloading while satisfying the desired constraints. Specifically, as described in Algorithm \ref{alg:2}, set $\mathcal{X}^{\ast}$ is defined as $\mathcal{X}^{\ast} \triangleq \left\{ \pi_{1}, \ldots, {{\pi_{{s}^{\ast}}}} \right\}$, where the value of $s^{\ast} \in [0,KN_c]$ is found by successively searching within the interval $\left[K_{\text{low}},K_{\text{up}}\right]$, which is initialized as $\left[0,KN_c\right]$. At each step, first, the search interval is halved using the midpoint $s$. Then, a feasibility test is performed to check whether the constraints C.1-C.4 of (P.1) can be met if the subset of MUs $\mathcal{X}^{[s]} \triangleq \left\{ \pi_{1}, \ldots, {{\pi_s}} \right\}$ is scheduled and the limits $\left[K_{\text{low}},K_{\text{up}}\right]$ is updated accordingly. The feasibility test is carried out by solving an instance of problem (\ref{P.4}) over the subset of MUs $ \mathcal{X}^{[s]}$. The feasibility status is determined by the value of the resulting auxiliary variables, i.e., the problem is considered to be feasible if the slack variables are smaller than a positive value $\eta$ close to zero. We now discuss how to solve problem (\ref{P.4}). Problem (\ref{P.4}) is non-convex due to the non-convexity of the objective and of the constraints C.1 and C.2. Based on the limit $\|\mathbf{x}\|_0 =\lim_{\rm{p} \to 0} \|\mathbf{x}\|_{\rm p}^{\rm p} =\lim_{\rm p \to 0}\sum_{i_n\in \mathcal{X}} |x_{{i_n}}|^ {\rm p}$, the objective function of (\ref{P.4}) can be approximated by a higher-order norm to make the problem mathematically tractable. In particular, in a manner similar to \cite{ran}, we adopt the smooth objective \begin{equation} \label{smooth lp} {\rm{f}} (\mathbf{x,y}) \triangleq \sum_{i_n\in \mathcal{X}} (x_{{i_n}}^2+\epsilon^2)^{{\rm p}/2}+\sum_{i_n\in \mathcal{X}} (y_{{i_n}}^2+\epsilon^2)^{{\rm p}/2}, \end{equation} where $\epsilon > 0$ is a small fixed regularization parameter. Substituting (\ref{smooth lp}) as the objective in (\ref{P.4}), we now apply the SCA approach to obtain a local optimal solution of the resulting problem. To this end, a convex upper bound satisfying conditions A1-A3 described in Sec. \ref{con_obj} for the smoothed ${\ell_p}$-norm objective function (\ref{smooth lp}) can be obtained from the result in \cite[Proposition 1]{ran} and is given by \begin{equation} \label{smooth_lp_apprx} {\tilde {\rm f}}\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) \triangleq {\sum_{i_n\in \mathcal{X}} \omega'_{{i_n}} x_{{i_n}}^2}+{\sum_{i_n\in \mathcal{X}} {\omega}''_{{i_n}} y_{{i_n}}^2}+ {\rm \bar f}\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right), \end{equation} where ${\omega}'_{{i_n}} \buildrel \over = {\frac{\rm p}{2} \Big[ ({x}_{{i_n}}(v))^2 + \epsilon^2 } \Big]^{\frac{\rm p}{2}-1}$ and ${\omega}''_{{i_n}} \buildrel \over = {\frac{\rm p}{2} \Big[ ({y}_{{i_n}}(v))^2 + \epsilon^2 } \Big]^{\frac{\rm p}{2}-1}$; ${\bf{Z}}\left( v \right) \triangleq \big( {{{\bf{Q}}^{ul}}\left( v \right),{{\bf{Q}}^{dl}}\left( v \right)}, {{{\bf{f}}}\left( v \right),{{\bf{c}}^{ul}}\left( v \right)},{{{\bf{c}}^{dl}}\left( v \right)}, {{{\bf{x}}}\left( v \right)}, {{{\bf{y}}}\left( v \right)} \big)$; and The function ${\rm \bar f}\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) \triangleq \frac{{{{{\gamma_{{q^{ul}}}}}}}}{2}\sum_{{i_n} \in {\cal I}}{\left\| {{{\bf{Q}}^{ul}} - {{\bf{Q}}^{ul}}\left( v \right)} \right\|^2}+\frac{{{{{\gamma_{{q^{dl}}}}}}}}{2}\sum_{{i_n} \in {\cal I}}{\left\| {{{\bf{Q}}^{dl}} - {{\bf{Q}}^{dl}}\left( v \right)} \right\|^2} + \frac{{{\gamma_f}}}{2}{\left\| {{\bf{f}} - {\bf{f}}\left( v \right)} \right\|^2} + \frac{{{\gamma_{{c^{ul}}}}}}{2}{\left\| {{{\bf{c}}^{ul}} - {{\bf{c}}^{ul}}\left( v \right)} \right\|^2} + \frac{{{\gamma_{{c^{dl}}}}}}{2}{\left\| {{{\bf{c}}^{dl}} - {{\bf{c}}^{dl}}\left( v \right)} \right\|^2} + \frac{{{\gamma_x}}}{2}{\left\| {{\bf{x}} - {\bf{x}}\left( v \right)} \right\|^2} + \frac{{{\gamma_y}}}{2}{\left\| {{\bf{y}} - {\bf{y}}\left( v \right)} \right\|^2} $ is added to realize the strong convexity of (\ref{smooth_lp_apprx}) with $\gamma_x, \gamma_y > 0$. The convexification of constraint C.1 is done as in (\ref{g_t_apprx}). Lastly, to obtain an inner convexification for the energy constraint C.2 that satisfies the conditions B1-B6 in Sec. \ref{con_con}, we utilize the concave-convex structure of the rate function $r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)$ as in (\ref{eq_6}), to rewrite constraint C.2 as \begin{equation} \text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}} \right)-\frac{E_{i_{n}}^M}{B^I_{{i_n}}} {r{{_{{i_n}}^{ul}}^ + }\left( {{{\bf{Q}}^{ul}}} \right)}-\frac{E_{i_{n}}^M}{B^I_{{i_n}}} {r{{_{{i_n}}^{ul}}^ - }\left( {{\bf{Q}}_{{-i_n}}^{ul}} \right)} \leq {y}_{{i_n}}, \end{equation} where ${r{{_{{i_n}}^{ul}}^ + }\left( {{{\bf{Q}}^{ul}}} \right)}$ and ${r{{_{{i_n}}^{ul}}^ - }\left( {{\bf{Q}}_{{-i_n}}^{ul}} \right)}$ are given in (18). Using the linearization (\ref{g_t_apprx_2}), we then obtain the desired upper bound on C.2 as \begin{equation} \label{Ein_apprxx} \text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}} \right)-\frac{E_{i_{n}}^M}{B^I_{{i_n}}} {\tilde{r}_{{i_n}}^{ul}\left( {{\bf{Q}}^{ul};{\bf{Q}}^{ul}\left( v \right)} \right)} \leq {y}_{{i_n}}. \end{equation} Given a feasible point ${{\bf{Z}}\left( v \right)} $, we define the following strongly convex problem \begin{align*} & {\bf{\hat Z}}\left( {{\bf{Z}}\left( v \right)} \right) \triangleq \underset{\mathbf{Q}^{ul},\mathbf{Q}^{dl},\mathbf{f},\mathbf{c}^{ul},\mathbf{c}^{dl}, \mathbf{x},\mathbf{y}}{\text{argmin}} \begin{aligned}[t] &{\tilde {\rm f}}\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) \notag\\ \end{aligned} \notag \\ & \;\;\;\;\;\;\;\; \;\;\;\;\;\;\;\; \;\;\;\;\;\;\;\; \;\;\;\;\;\;\;\text{s.t.} \notag \\ & \begin{aligned}[t] & \mathbf{C.1} \;\;\; {{\tilde g}_{{i_n}}}\left( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}};{{\bf{Z}}\left( v \right)}} \right) \notag+ \frac{{B_{{i_n}}^I}}{{c_{{i_n}}^{ul}{C^{ul}_n}}} + \frac{{B_{{i_n}}^O}}{{c_{{i_n}}^{dl}{C^{dl}_n}}} \\ & \;\;\;\;\;\;\;\; + \frac{{{V_{{i_n}}}}}{{{f_{{i_n}}}{F_c}}} - {T_{{i_n}}} \le x_{{i_n}}, \forall i_n \in \mathcal{X}, \end{aligned} \\ & \mathbf{C.2}\;\; \; \text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}} \right)-\frac{E_{i_{n}}^M}{B^I_{{i_n}}} {\tilde{r}_{{i_n}}^{ul}\left( {{\bf{Q}}^{ul};{\bf{Q}}^{ul}\left( v \right)} \right)} \leq y_{i_{n}}, \forall i_n \in \mathcal{X}, \\ {}&{{\bf{C}}{\bf{.3}}}\;\;\;x_{i_{n}} \geq 0, y_{i_{n}} \geq 0 , \forall i_n \in \mathcal{X}, \\ & \mathbf{C.2}-\mathbf{C.4} \;\;\; \text {of (P.1)} , \forall i_n \in \mathcal{X}, \tag{P.5} \label{P.5} \end{align*} where $ {\bf{\hat Z}}\left( {{\bf{Z}}} \right) \triangleq ({{{\bf{\hat Q}}}^{ul}},{{{\bf{\hat Q}}}^{dl}},{\bf{\hat f}},{{{\bf{\hat c}}}^{ul}} ,{{{\bf{\hat c}}}^{dl}},{{{\bf{ \hat x}}}},{{{\bf{ \hat y}}}})$ denote the unique solution of (\ref{P.5}). The SCA scheme for solving (\ref{P.5}) is described in Algorithm 3. As a technical note, we observe that here, since the approximant (\ref{smooth_lp_apprx}) of the objective function (\ref{smooth lp}) is an upper bound on (\ref{smooth lp}), convergence of Algorithm 3 is guaranteed also by setting $\gamma(v)=1$ \cite[Sec. III-A]{scutari2014distributed}. \begin{algorithm} \caption{User Scheduling}\label{alg:2} \begin{algorithmic}[1] \INPUT Parameters used by Algorithm 3. \State Solve problem (\ref{P.4}) using Algorithm 3 for $\mathcal{X}=\mathcal{I}$ to obtain ${\bf{w}} \triangleq\dfrac{\bf{x}}{\sum_{{i_{n}\in\mathcal{I}}}{x_{i_{n}}}}+\dfrac{\bf{y}}{\sum_{{i_{n}\in\mathcal{I}}}{y_{i_{n}}}}$ and sort the MUs in ascending order of the value of $\mathbf{w}$ as $ w_{\pi_{1}}\leq w_{\pi_{2}} \leq \ldots \leq w_{{{\pi_{{KN_{c}}}}}} $, where $\pi$ is a permutation of $\mathcal{I}$. \State Set: $K_{\text{low}}=0$, $K_{\text{up}}=KN_c$. \State \textbf{Repeat} \State Set $s \gets \floor{\frac{K_{\text{low}} + K_{\text{up}} }{2}}$. \State Perform the feasibility test by solving (\ref{P.4}) using Algorithm 3 for $\mathcal{X}=\mathcal{X}^{[s]} \triangleq \left\{ \pi_{1}, \ldots, {{\pi_s}} \right\}$: if it is feasible, set $K_{\text{low}}=s$; otherwise, set $K_{\text{up}}=s$. \State \textbf{Until} $K_{\text{up}}-K_{\text{low}}=1$. \State Set $s^{\ast}=K_{\text{low}}$ and $\mathcal{X}^{\ast} = \left\{ \pi_{1}, \ldots, {{\pi_{{s}^{\ast}}}} \right\}$. \OUTPUT Number of scheduled MUs $s^{\ast}$. \end{algorithmic} \end{algorithm} \begin{algorithm} \caption{SCA Solution for (P.5)}\label{alg:3} \begin{algorithmic}[1] \INPUT Parameters from Table I; $ \rm p =0.5$; $v = 0$; ${\bf{Z}}\left( 0 \right) \in {\cal Z}$; ${\left\{ {\gamma \left( v \right)} \right\}_v} \in \left( {0,1} \right]$; ${{{\gamma_{{q^{ul}}}}}},{{\gamma_{{q^{dl}}}}},{\gamma_f},{\gamma_{{c^{ul}}}},{\gamma_{{c^{dl}}}},{\gamma_x},{\gamma_y},\epsilon > 0$; ${\omega'}_{{i_n}}(0)={\omega''}_{{i_n}}(0)= 1 $. \State If $\left| {{\rm \tilde{f}}\left( {{\bf{Z}};{{\bf{Z}}}\left( {v + 1} \right)} \right) - {\rm \tilde {f}}\left( {{\bf{Z}};{{\bf{Z}}}\left( v \right)} \right)}\right| \le \delta $, stop. \State Compute ${\bf{\hat Z}}\left( {{\bf{Z}}\left( v \right)} \right)$ from (P.5). \State Set ${\bf{Z}}\left( {v + 1} \right) = {\bf{Z}}\left( v \right) + \gamma \left( v \right)\left( {{\bf{\hat Z}}\left( {{\bf{Z}}\left( v \right)} \right) - {\bf{Z}}\left( v \right)} \right)$. \State Update \begin{align*} & {\omega'}_{{i_n}}(v+1) \buildrel \over = \begin{aligned}[t] &{\frac{p}{2} \Big[ ({x}_{{i_n}}(v+1))^2 + \epsilon^2 } \Big]^{\frac{p}{2}-1}, \\ \end{aligned} \notag \\ & {\omega''}_{{i_n}}(v+1) \buildrel \over = \begin{aligned}[t] &{\frac{p}{2} \Big[ ({y}_{{i_n}}(v+1))^2 + \epsilon^2 } \Big]^{\frac{p}{2}-1}. \\ \end{aligned} \notag \end{align*} \State $v \leftarrow v + 1$, and return to step $1$. \OUTPUT $\left({\mathbf{Q}^{ul},\mathbf{Q}^{dl},\mathbf{f},\mathbf{c}^{ul},\mathbf{c}^{dl}, \mathbf{x},\mathbf{y}}\right)$. \end{algorithmic} \end{algorithm} \section{HYBRID EDGE and CLOUD COMPUTING} \label{sec:hybrid} In the previous sections, we considered a scenario in which the MUs can offload applications to a cloud server. In this section, we extend the analysis to a more general set-up in which the ceNBs are directly connected to local computing servers, also known as cloudlets \cite{cloudlet}, which may run some of the MUs' applications. Specifically, each ceNB can either execute the computation task on the behalf of the MU or offload it to the cloud. Let ${F_n^{ceNB}}$ be the computation capability in CPU cycles per second of ceNB $n$, and let $f_{{i_n}}^{ceNB} \ge 0$ be the fraction of the ceNB's computing power assigned to user $i_n$, so that $\sum\limits_{i} {f_{{i_n}}^{ceNB}} \le 1$. If implemented at the ceNB, the execution time of the task of MU $i_n$ is then given as \begin{equation} \label{eq_3} \Delta _{{i_n}}^{exe|ceNB} = \frac{{{V_{{i_n}}}}}{{f_{{i_n}}^{ceNB}F_n^{ceNB}}}. \end{equation} In the same way, if the cloud processes the task of user $i_n$, the execution time $\Delta _{{i_n}}^{exe|cloud}$ is given by the right-hand side of (\ref{del_exe}). The overall latency ${\Delta _{{i_n}}}$ experienced by each MU $i_n$ can be expressed as \begin{equation} \label{eq_3} \begin{split} {\Delta _{{i_n}}} = \; & \Delta _{{i_n}}^{ul} + \left( {1 - {u_{{i_n}}}} \right)\Delta _{{i_n}}^{exe|ceNB} + {u_{{i_n}}}\Delta _{{i_n}}^{exe|cloud} \\ &+ {u_{{i_n}}}\Delta _{{i_n}}^{bh} + \Delta _{{i_n}}^{dl} , \end{split} \end{equation} where $\Delta _{{i_n}}^{ul}, \Delta _{{i_n}}^{bh}$ {and} $\Delta _{{i_n}}^{dl}$ have the same definition as in (\ref{del_ul}), (\ref{del_bh}) and (\ref{del_dl}), respectively; ${u_{{i_n}}}$ is a binary variable that indicates whether if the task of MU $i_n$ is processed on the ceNB (${u_{{i_n}}} = 0$) or on the cloud (${u_{{i_n}}} = 1$). To proceed, we relax the binary variable ${u_{{i_n}}}$ to be defined in the interval $\left[ {0,1} \right]$. This relaxation not only provides a lower bound on the minimum energy expenditure that can be obtained with a hard choice between cloudlet and cloud offloading, perhaps more importantly, it also captures a system in which the input data to the application of the MU $i_n$ can be split into two parts, of sizes ${1 - {u_{{i_n}}}}$ and ${u_{{i_n}}}$, that can be processed separately at the ceNB and cloud, respectively. In the following, we will adopt this latter justification of the model. As in Sec. \ref{sec:problem} and Sec. \ref{sec:sca}, we aim at minimizing the total energy consumed by the MUs to execute their tasks remotely under latency and power constraints. The problem is given by \begin{equation*} \begin{array}{l} \begin{array}{*{20}{l}} {\mathop {{\mathop{\text{ min}}\nolimits} }\limits_{{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}},{\bf{u}},{\bf{f}^{ceNB}},{\bf{f}},{{\bf{c}}^{ul}},{{\bf{c}}^{dl}}} }&{E^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}& { = \sum\limits_{{i_n} \in {\cal I}} {{E_{{i_n}}^{ul}}\left( {{\bf{Q}}_{{i_n}}^{ul},{\bf{Q}}_{-i_{n}}^{ul}} \right)} } \\ {}&{}&{ = \sum\limits_{{i_n} \in {\cal I}} {{B_{{i_n}}^I}\frac{{\text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}} \right)}}{{r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}}} } \end{array}\\ \begin{array}{*{20}{l}} \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; \text{s.t.}&{{\bf{C}}.\mathbf{1}}&{\frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} +\frac{{\left( {1 - {u_{{i_n}}}} \right){V_{{i_n}}}}}{{f_{{i_n}}^{ceNB}F_n^{ceNB}}} }\\ {}&{}&{ +\frac{{u_{{i_n}}B_{{i_n}}^I}}{{c_{{i_n}}^{ul}{C^{ul}_n}}}+ \frac{{u_{{i_n}}{V_{{i_n}}}}}{{{f_{{i_n}}}{F_c}}}+\frac{{ u_{{i_n}} B_{{i_n}}^O}}{{c_{{i_n}}^{dl}{C^{dl}_n}}} }\\ {}&{}& + \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}} \le {T_{{i_n}}}, \forall i_n \in \mathcal{I},\\ {}&{{\bf{C}}{\bf{.2}}}&{0 \le {u_{{i_n}}} \le 1}, \forall i_n \in \mathcal{I}, \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; \\ {}&{{\bf{C}}{\bf{.3}}}& \resizebox{.55 \columnwidth}{!} { ${f_{{i_n}}^{ceNB},f_{{i_n}}} \ge 0, \sum\limits_{{i_n} \in {\cal I}} {{f_{{i_n}}}} \leq 1, \forall i_n \in \mathcal{I} $}, \\ {}&{}& \sum\limits_{i=1}^K {f_{{i_n}}^{ceNB}} \leq 1, \forall n=1,\ldots, N_c, \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; \\ {}&{{\bf{C}}{\bf{.4}}}&c_{{i_n}}^{ul},c_{{i_n}}^{dl} \ge 0, \forall i_n \in \mathcal{I}, \\ && \resizebox{.57 \columnwidth}{!} {$ \sum\limits_{i=1}^K {c_{{i_n}}^{ul}} \leq 1, \sum\limits_{i=1}^K {c_{{i_n}}^{dl}} \leq 1, \forall n=1,\ldots, N_c, $}\\ {}&{{\bf{C}}{\bf{.5}}}& {{\bf{Q}}_{{i_n}}^{ul} \in {\cal Q}_{{i_n}}^{ul}, {\forall i_n \in \mathcal{I}}}, \\ {}&{}&{ \left(\mathbf{Q}_{i_{n}}^{dl}\right)_{i=1}^K \in {\cal Q}_n^{dl}, \forall n=1,\dots, N_c.} \end{array} \end{array}\notag \tag{P.6}\label{P.6} \end{equation*} Note that, unlike (\ref{P.1}), here we have the additional optimization variables ${\bf{u}} \triangleq {\left( {{u_{{i_n}}}} \right)_{{i_n} \in {\cal I}}}$ and ${\bf{f}}^{ceNB} \triangleq {\left( {f}^{ceNB}_{{i_n}} \right)_{{i_n} \in {\cal I}}}$. It can be observed that \eqref{P.6} is non-convex due to the non-convexity of the objective function and constraint C.1. We tackle the problem by means of the SCA method convexifying the objective function as done in Sec. \ref{con_obj}. Furthermore, we need to calculate a convex upper bound for the C.1 constraint in (\ref{P.6}) that satisfies conditions B1-B6 in Sec. \ref{con_con}. Let us write the left-hand side of C.1 by \begin{equation} \label{eq_g} \begin{split} {g_{{i_n}}}&\left( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}},{\bf{u}},{{\bf{f}}^{ceNB}},{{\bf{f}}},{{\bf{c}}^{ul}},{{\bf{c}}^{dl}}} \right) \triangleq \frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} \\ & + \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {{{\bf{Q}}^{dl}}} \right)}} + \frac{{\left( {1 - {u_{{i_n}}}} \right){V_{{i_n}}}}}{{f_{{i_n}}^{ceNB}F_n^{ceNB}}}+ \frac{{{u_{{i_n}}}{V_{{i_n}}}}}{{f_{{i_n}}{F_c}}} \\ & + \frac{{{u_{{i_n}}}B_{{i_n}}^I}}{{c_{{i_n}}^{ul}C_n^{ul}}} + \frac{{{u_{{i_n}}}B_{{i_n}}^O}}{{c_{{i_n}}^{dl}C_n^{dl}}}. \end{split} \end{equation} To build the desired bound on ${g_{{i_n}}}$, we observe that the first two terms can be handled as in Sec. \ref{con_con}, while for the last four terms, we observe that they are all ratios of linear functions, we now observe that the relationship \begin{equation} \label{eq_xy} \frac{x}{y} = \frac{1}{2}{\left( {x + \frac{1}{y}} \right)^2} - \frac{1}{2}\left( {{x^2} + \frac{1}{{{y^2}}}} \right), \end{equation} holds, where the right-hand side is the difference of two convex functions if $x \ge 0$ and $y > 0$. Therefore, a locally tight convex upper bound on the left-hand side of \eqref{eq_xy} can be obtained by linearizing the concave part as \begin{equation} \label{eq_3} \begin{split} \frac{x}{y} \le & \frac{1}{2}{\left( {x + \frac{1}{y}} \right)^2} - \frac{1}{2}\left( {{{\left( {{x^{v}}} \right)}^2} + \frac{1}{{{{\left( {{y^{v}}} \right)}^2}}}} \right) - {x^{v}}\left( {x - {x^{v}}} \right) + \\ & \frac{1}{{{{\left( {{y^{v}}} \right)}^3}}}\left( {y - {y^{v}}} \right) , \end{split} \end{equation} where superscript $v$ identifies the point $\left(x^v, y^v \right)$ at which the upper bound is tight. Using (\ref{eq_3}) to the last four terms in (\ref{eq_g}), we define the desired approximants by substituting for $x$ and $y$ in (\ref{eq_3}) the numerator and denominator, respectively, of each of the last four terms in (\ref{eq_g}). This yields the SCA procedure in Algorithm 1 with the difference that we define ${\bf{Z}}\left( v \right) \triangleq \left( {{{\bf{Q}}^{ul}}\left( v \right),{{\bf{Q}}^{dl}}\left( v \right),{\bf{u}}\left( v \right),{{\bf{f}}^{ceNB}}\left( v \right),{{\bf{f}}}\left( v \right),{{\bf{c}}^{ul}}\left( v \right),{{\bf{c}}^{dl}}\left( v \right)} \right)$ and ${\bf{Z}} \triangleq \left( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}},{\bf{u}},{{\bf{f}}^{ceNB}},{{\bf{f}}},{{\bf{c}}^{ul}},{{\bf{c}}^{dl}}} \right)$ \begin{align*} & {\bf{\hat Z}}\left( {{\bf{Z}}\left( v \right)} \right) \triangleq \underset{\mathbf{Q}^{ul},\mathbf{Q}^{dl},, \mathbf{u}, \mathbf{f}^{ceNB},\mathbf{f},\mathbf{c}^{ul},\mathbf{c}^{dl}}{\text{argmin}} \begin{aligned}[t] &{\tilde E^{ul}\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) }\\ \end{aligned} \notag \\ & \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; \;\;\;\;\;\;\;\;\;\;\;\;\;\text{s.t.} \notag \\ & \mathbf{C.1}\;\; \; {{\tilde g}_{{i_n}}}\left( {\mathbf{Z}; {{\bf{Z}}}\left( v \right) } \right) \le {T_{{i_n}}}, \forall i_n \in \mathcal{I},\\ & \mathbf{C.2}-\mathbf{C.5} \;\;\; \text {of (P.6)}, \tag{P.7} \label{P.7} \end{align*} where ${\bf{\hat Z}}\left( {{\bf{Z}}\left( v \right)} \right) \triangleq ({{{\bf{\hat Q}}}^{ul}},{{{\bf{\hat Q}}}^{dl}},{\bf{\hat u}},{{{\bf{\hat f}}}^{ceNB}},{{{\bf{\hat f}}}},{{{\bf{\hat c}}}^{ul}},{{{\bf{\hat c}}}^{dl}})$ denotes the unique solution of the strongly convex optimization problem (\ref{P.7}); the objective function ${\tilde E^{ul}\left( {{{\bf{Z}}}}; {{\bf{Z}}}\left( v \right) \right) } \triangleq \sum_{i_n \in \mathcal{I}} \Big( {\tilde E_{{i_n}}^{ul}}\left( {{{\bf{Q}}^{ul}}};{{{\bf{Q}}^{ul}}}(v) \right)+ {\bar E}_{{i_n}}\left( {{{\bf{Z}}_{{i_n}}}}; {{\bf{Z}}_{{i_n}}}\left( v \right) \right) \Big)$ where $ {\tilde E_{{i_n}}^{ul}}\left( {{{\bf{Q}}^{ul}}};{{{\bf{Q}}^{ul}}}(v) \right) $ is given as in (\ref{Ein_apprx}) and we define ${\bar E} \left( {{{\bf{Z}}_{{i_n}}}}; {{\bf{Z}}_{{i_n}}}\left( v \right) \right)\triangleq \frac{{{\gamma_{{q^{ul}}}}}}{2}{\left\| {{{\bf{Q}}^{ul}_{{i_n}}} - {{\bf{Q}}^{ul}_{{i_n}}}\left( v \right)} \right\|^2} + \frac{{{\gamma_{{q^{dl}}}}}}{2}{\left\| {{{\bf{Q}}^{dl}_{{i_n}}} - {{\bf{Q}}^{dl}_{{i_n}}}\left( v \right)} \right\|^2} + \frac{{{\gamma_u}}}{2}{\left\| {{{u_{{i_n}}}} - {{u_{{i_n}}}}\left( v \right)} \right\|^2}$ $+$ $ \frac{{{\gamma_{{f^{ceNB}}}}}}{2} \| {{{f}}^{ceNB}_{{i_n}}}$ - ${{{f}}^{ceNB}_{{i_n}}}\left( v \right)\|^2$ $+$ $ \frac{{{\gamma_{{f}}}}}{2}{\left\| {{{{f}}_{{i_n}}} - {{{f}}_{{i_n}}}\left( v \right)} \right\|^2} + \frac{{{\gamma_{{c^{ul}}}}}}{2}{\left\| {{{{c}}_{{i_n}}^{ul}} - {{{c}}^{ul}_{{i_n}}}\left( v \right)} \right\|^2} + \frac{{{\gamma_{{c^{dl}}}}}}{2}{\left\| {{{{c}}^{dl}_{{i_n}}} - {{{c}}^{dl}_{{i_n}}}\left( v \right)} \right\|^2}$ with $\gamma_{{u}}, \gamma_{{f^{ceNB}}} > 0$; and ${{\tilde g}_{{i_n}}}\left( {\mathbf{Z}; {{\bf{Z}}}\left( v \right) } \right)$ is the locally convex upper bound defined above. \section{ENHANCED DOWNLINK VIA NETWORK MIMO} \label{netmimo} So far, we assumed that each ceNB $n$ serves the users $\left\{i_n: i=1,\ldots,K\right\}$ in its cell, hence interfering with other ceNBs. In this section, instead, we consider enhanced downlink transmission based on network MIMO. Specifically, we assume that each MU can receive the result of the cloud execution in the downlink not only from ceNB in the same cell, but also from other ceNBs that cooperatively transmit to the MU. Cooperation among ceNBs is enabled by the transmission on the backhaul links of the outcome of the cloud execution for a given MU to multiple ceNBs. We specifically consider here the extreme case of full ceNB cooperation, so that all the ceNBs transmit cooperatively to each MU. The extension to a more general model with clustered cooperation is straightforward and will not be pursued further. To express the achievable downlink rate with network MIMO, it is convenient to define user-centric transmit covariance matrices ${\mathbf{Q}}^{dl}_j \in \mathbb{C}^{ N_{{T}}\times N_{{T}} }$ for every MU $j \in \cal{I}$, where we have defined $N_T \triangleq \sum_{n=1}^{N_c} N_{{T}_{n}} $, such that the $n$-th $N_{{T}_{n}}\times N_{{T}_{n}} $ block on the main diagonal, denoted by $[{\bf{Q}}_j^{dl}]_n$, represents the contribution of ceNB $n$ to the transmission to MU $j$. Note that the out-of-diagonal blocks in ${\bf{Q}}_j^{dl}$ describe the correlation among signals sent by different ceNBs, which designates cooperative transmission at the ceNBs. The set of downlink covariance matrices, ${\mathbf{Q}}^{dl}= \left\{{{\mathbf{Q}}_{{j}}^{dl}}\right\}_{ j \in \cal{I}} $ is \begin{equation} \begin{split} \mathcal{Q}_{{}}^{dl} \triangleq \big\{ {{\mathbf{Q}}_j^{dl} \in \mathbb{C}^{N_{{T}}\times N_{{T}} }, \; j \in \cal{I} } : \displaystyle\sum_{j \in \cal{I}} \text{tr} \big( [{\bf{Q}}_j^{dl}]_n \big) & \leq P_n^{dl}, \forall n \big\}, \end{split} \end{equation} so that the per-ceNB power constraints are satisfied. Also, it is convenient to define the channel matrix from all the ceNBs to MU $j$ as ${\tilde{\bf{G}}_{{j}}} \in {\mathbb{C}^{N_{{R_j}} \times {N_{{T}}}}}$, where ${\tilde{\bf{G}}_{{j}}} \triangleq [{\bf{G}}_{{j}1}, {\bf{G}}_{{j}2},\ldots, {\bf{G}}_{{j}N_c}]$ and we have set ${{\bf{G}}_{{j},n}}={{\bf{G}}_{{j}}}$. With these definitions, the achievable downlink rate is given by \begin{equation} r_{i_{n}}^ {dl}(\mathbf{Q}^ {dl})=\log_{2}{\det}\Big(\mathbf{I}+ \tilde{\mathbf{G}}_{i_{n}}^H \tilde{\mathbf{R}}_{i_{n}}^{dl}(\mathbf{Q}_{-i_{n}}^ {dl})^{-1}\tilde{\mathbf{G}}_{i_{n}}{\mathbf{Q}}_{i_{n}}^{dl}\Big), \end{equation} with \begin{equation} \tilde{\mathbf{R}}_{i_{n}}^{dl}(\mathbf{Q}_{-i_{n}}^ {dl})\triangleq\sigma_w^2\mathbf{I}+ \sum_{i_m \in {\cal I}\backslash \left\{ {{i_n}} \right\}}\tilde{\mathbf{G}}_{i_{n}}\mathbf{Q}_{i_{m}}^{dl}\tilde{\mathbf{G}}_{i_{n}}^H, \end{equation} and $\mathbf{Q}_{-i_{n}}^{dl}\triangleq(\mathbf{Q}_{j_{m}}^{dl})_{j_m\ne i_n}$. In order to enable network MIMO, we need to ensure that downlink transmissions from all ceNBs take place at the same time. To this end, we impose that uplink transmission, computing and backhaul transmissions for all MUs are constrained to be completed by a given time $T_1$. At time $T_1$, then, the downlink transmission is initiated and takes a given time $T_2$. Accordingly, we formulate the optimization problem following the weighted sum approach discussed in Remark 2 as \begin{equation*} \begin{array}{l} \begin{array}{*{20}{l}} {\mathop {{\mathop{\rm min}\nolimits} }\limits_{{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}},{\bf{f}},{{\bf{c}}^{ul}},{{\bf{c}}^{dl}},T_1,T_2} }&&{ \sum\limits_{{i_n} \in {\cal I}} {{B_{{i_n}}^I}\frac{{\text{tr}\left( {{\bf{Q}}_{{i_n}}^{ul}} \right)}}{{r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}}}+\lambda (T_1 + T_2) }\\ \end{array}\\ \begin{array}{*{20}{l}} \;\;\;\;\;\;\;\;\;\;\;\;\; \text{s.t.}&{{\bf{C}}.\mathbf{1}}&{\frac{{B_{{i_n}}^I}}{{{W^{ul}}r_{{i_n}}^{ul}\left( {{{\bf{Q}}^{ul}}} \right)}} + \frac{{B_{{i_n}}^I}}{{c_{{i_n}}^{ul}{C^{ul}_n}}} + \frac{{{V_{{i_n}}}}}{{{f_{{i_n}}}{F_c}}}}\\ {}&{}&{ + {\frac{{B_{{i_n}}^O}}{{C_m^{dl}c_{{i_n},m}^{dl}}}} \le {T_1}}, \forall i_n \in \mathcal{I}, \\ {}&{\bf{C.2}}&{ \frac{{B_{{i_n}}^O}}{{{W^{dl}}r_{{i_n}}^{dl}\left( {\bf{Q}}^{dl} \right)}} \le {T_2}}, \forall i_n \in \mathcal{I},\\ {}&{{\bf{C}}{\bf{.3}}}&{{f_{{i_n}}} \ge 0,\sum\limits_{{i_n} \in {\cal I}} {{f_{{i_n}}}} \leq 1}, \forall i_n \in \mathcal{I}, \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; \\ {}&{\bf{C.4}}&c_{{i_n}}^{ul},c_{{i_n},m}^{dl} \ge 0,\sum\limits_{i=1}^K {c_{{i_n}}^{ul}} \le 1, \\ {}&{}&\sum\limits_{{j} \in {\cal I}} {c_{{j},m}^{dl}} \le 1, \forall i_n \in \mathcal{I},\\ {}&{{\bf{C}}{\bf{.5}}}&{{\bf{Q}}_{{i_n}}^{ul} \in {\cal Q}_{{i_n}}^{ul},{\bf{Q}}^{dl} \in {\cal Q}^{dl}}, \forall i_n \in \mathcal{I}, \end{array} \end{array}\notag \tag{P.8}\label{P.8} \end{equation*} where ${{\bf{c}}^{dl}} \triangleq {\left( {c_{{i_n},m}^{dl}} \right)_{{i_n} \in {\cal I},m}}$, with ${c_{{i_n},m}^{dl}}$ being the fraction of the backhaul capacity to ceNB $m$ allocated to transmit the output bits intended for MU $i_n$; and $\lambda >0$ is a parameter defining the relative weight of energy and latency. Problem (\ref{P.8}) is non-convex due to the non-convexity of the objective function and constraints C.1 and C.2. We tackle this problem using SCA in a way similar to that used for (P.1), i.e., we obtain a convex approximants for the objective functions using (\ref{Ein_apprx}) and for the latency constraints using (\ref{g_t_apprx}{}). The problem is then solved using the SCA procedure described in Algorithm 1. \section{Numerical Results} In this section, we present numerical results validating the model and algorithms presented in the previous sections. Throughout, we consider a network composed of three cells with five users in each cell, i.e., $N_c=3$ and $K=5$. All transceivers are equipped with $N_{T_{i_n}}=N_{R_{n}}=2$ antennas. The channel matrices are generated with independent and identically distributed complex Gaussian entries having zero mean and variance equal to the path loss, which is assumed to be identical for uplink and downlink. The path loss is given by 170 dBm between an MU and the ceNB in the same small cell and 180 dBm between an MU and the ceNB in the other small cell. The values 170 dBm and 180 dBm can be justified by considering the Walfish-Ikegami model \cite {loss} with distances of $500$ meters between MU and ceNB in the same cell and $700$ meters for MU and ceNB in different cells. The other parameters of the Walfish-Ikegami model are selected so as to simulate a small-cell environment in a typical urban setting as listed in Table II. Targeting a small-cell scenarios, we will explore values of the backhaul capacities as low as few Mbits/s \cite{g5,bh}. Finally, note that setting $N_0=-170$ dBm/Hz \cite{loss}, yields an average signal-to-noise ratio (SNR) on the direct link of $40$ dBm per receive antenna and $30$ dBm on the interference link for a signal transmitted at $0.01$ Joule per symbol from a single antenna in the uplink and downlink. Furthermore, unless stated otherwise, we select each number of input bits $B_{i_{n}}^I$ and output bits $B_{i_{n}}^O$ uniformly at random in the interval $[0.1-1]$ Mbits and we set the number of CPU cycles as $V_{i_{n}}=2640\times B_{i_{n}}^I$ CPU cycles. These choices reflect computational-intensive applications, as demonstrated by the measurments in \cite{Miettinen2010EE,emill2011app}. The cloud capacity is $F_c=10^{11}$ CPU cycles/s, which is, e.g., obtained by a four-core server with Intel Xeon processor with 3.3 GHz that is commercially used by Amazon elastic compute cloud (EC2) \cite{ec2,kumar2010cloud}. Other system parameters are set to $W^{ul} = W^{dl} = 10$ MHz, $C_n^{ul} = C_n^{dl} = 100$ Mbits/s, $d_{i_{n}}=10^{-5}$ J/symbol \cite{d2009}, and $T_{i_{n}}=0.1$ seconds. Throughout, averages are intended with respect to the channel realizations. \begin{table}[ht!] \begin{minipage}{\columnwidth} \centering \begin{tabular}{|p{1cm}|p{0.5cm}|p{5cm}|} \hline parameter & value & description \\ \hline $f$ & $1800$ & frequency (MHz) \\ \hline $\theta$ & $45 ^{\circ}$ & road orientation angle (degree) \\ \hline $h_\text{Tx}$ & $3$ & height of transmitter (meters) \\ \hline $h_\text{Rx}$ & $1$ & height of receiver (meters) \\ \hline $h_\text{Roof}$& $5.5$ & mean value of buildings height (meters) \\ \hline $s_\text{Roof}$& $8$ & mean value of buildings separation (meters) \\ \hline str\_wid& $5$ & mean value of street width (meters) \\ \hline $k_a$ & $54$ & path loss penalty when ceNB below rooftop \\ \hline $k_d$ & $5$ & correlation adjustment constant \\ \hline \end{tabular} \caption{Parameters in the Walfish-Ikegami path loss model \cite {loss}.} \label{t-ex1} \end{minipage} \end{table} \begin{figure}[!t] \centering \includegraphics[width=\columnwidth]{fig3} \caption{{\small{Minimum average mobile energy consumption versus iteration index ($T_{i_n}=0.12$ seconds, $N_c=3, K=5$, $W^{ul}=W^{dl}=100$ MHz, $B_{{i}_n}^I$ and $B^O_{{i}_n} \sim \mathcal{U}\{0.1, 1\}$ Mbits, $V_{i_{n}}=2640\times B_{i_{n}}^I$ CPU cycles, $C_{n}^{ul}= C_{n}^{dl}=100$ Mbits/s, and $F_c=10^{11}$ CPU cycles/s).}}} \label{fig1} \end{figure} We start by illustrating the typical convergence properties of the SCA algorithm by plotting in Fig. 3 the average minimal mobile energy consumption ${E }\left( {{{\bf{Q}}^{ul}},{{\bf{Q}}^{dl}}} \right)$ versus the iteration index $v$. Besides the joint optimization across uplink, downlink, backhaul and computing resources, studied in Sec. \ref{sec:problem}, we consider the following more conventional solutions: \emph{(i) Equal backhaul and cloud allocation:} the computing and backhaul resources are equally allocated to all MUs, that is, $f_{i_n}=1/(N_cK)$ and $c^{ul}_{i_n}=c^{dl}_{i_n}=1/K$ for all $i_n \in \cal{I}$, while the covariance transmit and receive matrices at the physical layer are optimized using SCA \cite{sar02}; \emph{(ii) Equal cloud allocation:} computing resources at the cloud are equally allocated among the MUs, while the rest of the parameters are jointly optimized using SCA; \emph{(iii) Equal backhaul allocation:} the backhaul resources are equally allocated among the MUs, while the rest of the parameters are jointly optimized using SCA. We observe the fast convergence of SCA, which requires around 17 iterations to obtain results close to convergence (at iteration 17 the termination criterion $\left| {E\left( {{{\bf{Q}}^{ul}}\left( {v + 1} \right)}, {{{\bf{Q}}^{dl}}\left( {v + 1} \right)} \right) - E\left( {{{\bf{Q}}^{ul}}\left( v \right)}, {{{\bf{Q}}^{dl}}\left( v \right)} \right)} \right| \le \delta $ is satisfied with $\delta=10^{-3}$ for $\alpha = 10^{-5}$). Furthermore, it can be seen that the proposed joint optimization method shows a considerable gain compared to the equal allocation of computational and backhaul resources. The gains that can be accrued by means of joint optimization are further investigated in Fig. 4 (obtained in the same setting of Fig. 3), which depicts the minimum average mobile energy as a function of the latency constraints $T_{i_{n}}$, which are assumed to be the same for all MUs. The energy saving due to joint optimization can be seen to be particularly pronounced in the regime in which the latency constraint is more stringent. For instance, at $T_{i_{n}}=0.12$ seconds, which is the smallest latency for which all schemes are feasible, joint optimization saves 66\% in terms of sum-energy as compared to equal allocation of backhaul and cloud resources, 48\% as compared to equal cloud allocation, and 32\% as compared to equal backhaul allocation. \begin{figure}[!t] \centering \includegraphics[width=\columnwidth]{fig4} \caption{{\small{Minimum average mobile energy consumption versus the latency constraint $T_{i_{n}}$, assumed to be the same for all MUs ($N_c=3, K=5$, $W^{ul}=W^{dl}=100$ MHz, $B_{{i}_n}^I$ and $B^O_{{i}_n} \sim \mathcal{U}\{0.1, 1\}$ Mbits, $V_{i_{n}}=2640\times B_{i_{n}}^I$ CPU cycles, $C_{n}^{ul}= C_{n}^{dl}=100$ Mbits/s, and $F_c=10^{11}$ CPU cycles/s). }}} \label{fig2} \end{figure} To account for the case in which the network may operate under asymmetrical bandwidth allocation for uplink and downlink, we compare the mobile sum-energy consumption of the schemes considered above in the same set-up of Fig. 3 and Fig. 4, with the caveat that we set $W^{dl}=10$ MHz and we vary the uplink/downlink bandwidth ratio $W^{ul}/W^{dl}$, in Fig. 5. We observe that joint optimization is especially advantageous in term of mobile energy consumption when the uplink bandwidth is more constrained than the downlink bandwidth. This is because, in this regime, it is particularly useful to allocate more computing and backhaul resources to users with worse channel condition in order to meet the latency requirements with minimal energy expenditure. For example, when $W^{ul}$ is five times smaller than the downlink bandwidth, the joint optimization scheme is $50\%$ more energy efficient than the fixed allocation of backhaul and cloud resources. \begin{figure}[h] \centering \includegraphics[clip,width=\columnwidth]{fig5}% \centering \caption{\small{ Minimum average mobile sum-energy consumption versus bandwidth allocation ratio $W^{ul}/W^{dl}$ ($W^{dl}=10$ MHz, $N_c=2, K=2, T_{i_{n}}=0.09$ s, $B_{{i}_n}^I$ and $B^O_{{i}_n} \sim \mathcal{U}\{0.1, 1\}$ Mbits, $V_{i_{n}}=2640\times B_{i_{n}}^I$ CPU cycles, $C_{n}^{ul}= C_{n}^{dl}=100$ Mbits/s, and $F_c=10^{11}$ CPU cycles/s).}} \end{figure} While the previous results assume that all MUs perform computation offloading, we next turn to the study of user selection that is presented in Sec. IV. To account for mobile energy consumption, we set the effective switched capacitance of the mobile as $\kappa=10^{-26}$ so that the mobile energy consumption is consistent with the measurements made in \cite{Miettinen2010EE} for a Nokia N900 mobile device operating at frequency 500 MHz. To this end, we plot the average number of selected MUs as a function of the latency constraint $T_{i_{n}}$, assumed to be the same for all MUs, for different values of backhaul in Fig. 6. The figure shows the results obtained by means of the efficient algorithm proposed in Sec. IV with $\eta=10^{-5}$, as well as by an \textit{exhaustive search} strategy in which, for every subset of users, a joint optimization problem is solved as per Sec. II using SCA (Algorithm 1) and then the subset of users which yields the minimal energy consumption is selected. The figure demonstrates how a less restrictive latency constraint and/or a larger backhaul increases the number of users that should be allowed to offload. For instance, for $T_{{i_n}} \leq 0.07$ seconds, there is no MU on average offloads its applications since offloading is more energy demanding. Instead, for $T_{i_n} > 0.2$ seconds, as long as the backhaul capacity is larger than $500$ Mbits/s, all MUs tend to offload. It is also observed that the proposed scheme selects a number of users close to that chosen by exhaustive search. \begin{figure}[!t] \centering \includegraphics[width=\columnwidth]{fig6} \caption{{\small{ Average number of selected MUs versus latency constraint $T_{i_{n}}$ for both the proposed efficient scheme in Sec. IV and exhaustive search ($N_c=2, K=2$, $B_{i_{n}}^I=B_{i_{n}}^O=1 $ Mbits, $V_{i_{n}}=10^9$ CPU cycles, $F_c=10^{11}$ CPU cycles/s, and $C_{n}^{dl}= C_{n}^{ul}$).}}} \label{fig5} \end{figure} The corresponding overall energy consumption for the example of Fig. 6 with backhaul capacity $C_{n}^{ul}= C_{n}^{dl}=100$ Mbits/s is shown in Fig. 7. Note that the overall energy consumption is the sum of the mobile computing energy for the MUs that perform local computing, namely (\ref{local}), and of the energy used for transmission, namely (\ref{off_ene}), for the MUs that offload. For reference, we also show the energy required when all MUs perform their tasks locally. The proposed user selection scheme is seen to achieve a near-optimal energy performance compared to the exhaustive search method. As an example, when the latency constraint $T_{i_{n}} =0.17 $ seconds, around 83\% energy saving can be obtained with the proposed user offloading selection scheme as compared to \textit{local computing}. \begin{figure}[!t] \centering \includegraphics[width=\columnwidth]{fig7} \caption{{\small{Minimum average mobile energy consumption versus the latency constraint $T_{i_{n}}$ ($N_c=2, K=2$, $B_{i_{n}}^I=B_{i_{n}}^O=1 $ Mbits, $V_{i_{n}}=10^9$ CPU cycles, $C_{n}^{ul}= C_{n}^{dl}=100$ Mbits/s, and $F_c=10^{11}$ CPU cycles/s).}}} \label{fig5} \end{figure} In the previous results, central cloud processing was assumed. We now investigate the optimal allocation of computing tasks between the edge and the cloud in the set-up studied in Sec. V. To this end, in Fig. 8, we plot the fractions ${\left( {{{{{\hat u}}}_{{i_n}}}} \right)_{{i_n} \in {\cal I}}}$ of the application of each MU $i_n$ to be performed at the cloud as a function of the backhaul capacity when the computing capability of the cloudlet is given by $F_n^{ceNB} = 0.1 {F_c}$. To highlight the impact of asymmetries in the offloading requirements, we assume here that in the first cell the two users have $B_{{1_1}}^I = B_{{1_1}}^O = 1$ Mbits, $ {V_{{1_1}}} = {10^9}$ CPU cycles, and $B_{{2_1}}^I = B_{{2_1}}^O = 0.7$ Mbits, ${V_{{2_1}}} = 0.7{V_{{1_1}}}$ CPU cycles, while the users in the second cell have smaller offloading requirements for data transfer and computing, normally $B_{{1_2}}^I = B_{{1_2}}^O = 0.5$ Mbits, ${V_{{1_2}}} = 0.5{V_{{1_1}}}$ CPU cycles, and $B_{{2_2}}^I = B_{{2_2}}^O = 0.1$ Mbits, ${V_{{2_2}}} = 0.1{V_{{1_1}}}$ CPU cycles. It is observed that, when the backhaul capacity is limited, tasks tends to be performed at the edge, especially for users with more stringent data transfer and computing requirements, for example, at $C_{n}^{ul}= C_{n}^{dl}=3$ Mbits/s, the two users in the first cell execute $50\%$ and $80\%$ percent of their offloaded tasks at the cloud, while the users in the second cell have a complete tasks execution at the cloud due to the moderate number of input/output bits. As the backhaul capacity is increased, more tasks are executed at the cloud, benefiting from the improved connection between ceNBs and the cloud. \begin{figure}[!t] \centering \includegraphics[width=\columnwidth]{fig8} \caption{{\small{Offloading cloud vs. cloudlet indicator versus the backhaul capacity ($N_c=2, K=2$, $T_{i_{n}}=0.9$ seconds, $B_{{1_1}}^I = B_{{1_1}}^O = 1$ Mbits, $B_{{2_1}}^I = B_{{2_1}}^O = 0.7$ Mbits, $B_{{1_2}}^I = B_{{1_2}}^O = 0.5$ Mbits, $B_{{2_2}}^I = B_{{2_2}}^O = 0.1$ Mbits; ${V_{{1_1}}} = {10^9}$ CPU cycles, ${V_{{2_1}}} = 0.7{V_{{1_1}}}$, ${V_{{1_2}}} = 0.5{V_{{1_1}}}$ and ${V_{{2_2}}} = 0.1{V_{{1_1}}}$, $C_{n}^{ul}= C_{n}^{dl}=100$ Mbits/s, $F_n^{ceNB} = 10^{10}$ CPU cycles/s, and $F_c=10^{11}$ CPU cycles/s).}}} \label{fig5} \end{figure} \begin{figure}[h] \centering \includegraphics[clip,width=\columnwidth]{fig9}% \centering \caption{\small{ {Minimum average mobile sum-energy consumption for cloud and edge offloading, along with the proposed hybrid edge-cloud offloading scheme, versus backhaul capacity $C_n^{ul}=C_n^{dl}$ ($N_c=2, K=2, T_{i_{n}}=0.1$ s, $W^{ul}=W^{dl}=10$ MHz, $B_{{i}_n}^I$ and $B^O_{{i}_n} \sim \mathcal{U}\{0.1, 1\}$ Mbits, $V_{i_{n}}=2640\times B_{i_{n}}^I$ CPU cycles, and $F_n^{\text{ceNB}}=10^{10}$ CPU cycles/s).}}} \end{figure} To obtain further insights, Fig. 9. shows the mobile sum-energy consumption versus the backhaul capacity for cloud mobile computing, whereby all users offload to the cloud, and edge mobile computing, whereby all users offload to the local cloudlet, for $N_c=2, K=2$, and $F_n^{\text{ceNB}}=10^{10}$ CPU cycles/s. We also include the performance of the solution introduced in Sec. V, which allows for hybrid edge-cloud offloading. For cloud offloading, we consider different values for computational capacity $F_c$ of the cloud. It is seen that when the backhaul capacity constraint is stringent, edge offloading is more energy efficient as compared to cloud offloading, e.g., by about 44\% for cloud computational capacity $F_c=10^{10}$ CPU cycles/s and backhaul capacity $C_n^{ul}=C_n^{dl} = 2.4 $ Mbits/s. Furthermore, larger values of cloud capacity $F_c$ can compensate for limited backhaul resources, making cloud computing preferable to edge computing. It is also observed that the hybrid edge-cloud offloading scheme can significantly outperform edge computing when backhaul capacity is limited. We finally turn to the performance of the downlink network MIMO scheme presented in Sec. VI. In Fig. 10, we plot the average mobile sum-energy with and without cooperative transmission in the downlink. The performance of cooperative scheme is obtained from the solution of (P.8), while the performance of non-cooperative scheme is obtained from the solution of (P.1) under the indicated values of backhaul capacity. The users offloading requirements are identical to that used in Fig. 6. The key observation here is that the performance of the downlink cooperative transmission is strongly limited by the backhaul capacity. For instance, we can see that, with backhaul $C_{n}^{ul}= C_{n}^{dl}=10$ Mbits/s, the cooperative scheme is about $85\%$ more energy-consuming as compared to the non-cooperative scheme at latency $0.5$ seconds. The energy performance gap between the two schemes is diminished as the backhaul increases as observed with $C_{n}^{ul}= C_{n}^{dl}=100$ Mbits/s. With this value of backhaul capacity, the cooperative scheme is less energy efficient by $45\%$ around $T_{i_{n}}=0.3$ seconds. However, with backhaul $C_{n}^{ul}= C_{n}^{dl}=10$ Gbits/s, as for a standard fiber optic channel, the cooperative scheme starts to have noticeable energy gains. At latency $0.08$ seconds, for example, the cooperative scheme attains $57\%$ energy saving as compared to the non-cooperative scheme. \begin{figure}[!t] \centering \includegraphics[width=\columnwidth]{fig10} \caption{{\small{Minimum average mobile energy consumption versus the latency constraint $T_{i_{n}}$, assumed to be the same for all MUs ($N_c=2, K=2$, $B_{1_1}^I=B_{1_2}^I=1$ Mbits, $B_{2_1}^I=B_{2_2}^I=0.1$ Mbits, $B_{1_1}^O=B_{1_2}^O=1 $ Mbits, $B_{2_1}^O=B_{2_2}^O=0.1$ Mbits, $V_{1_1}= V_{1_2}=10^9$ CPU cycles, $V_{2_1}= V_{2_2}=10^8$ CPU cycles, $F_c=10^{11}$ CPU cycles/s, and $C_{n}^{dl}= C_{n}^{ul}$).}}} \label{fig6} \end{figure} \section{CONCLUDING REMARKS} In this paper, we investigated the design of cloud mobile computing systems over MIMO cellular networks as a joint optimization problem over radio, computational resources and backhaul resources in both uplink and downlink directions. An iterative algorithm based on successive convex approximations was presented for solving the resulting non-convex problem under latency and power constraints. Numerical results show that the proposed joint optimization yields significant energy saving compared to the conventional solutions based on separate allocations of computing and/or backhaul resources. This saving is more pronounced in low latency regimes, where, in our results, it leads to energy saving as high as $66\%$. The mentioned baseline problem was further generalized in several directions. First, we tackled user selection with the aim of ensuring an energy savings for all users that perform offloading. Then, a hybrid architecture that leverages both edge and cloud computing was studied by addressing the optimal allocation between cloud and edge. It was seen that the optimal allocation is significantly affected by the backhaul capacity. Finally, joint downlink transmission based on network MIMO was considered, demonstrating the critical importance of the backhaul for the viability of this technique. Among the problems left open by this study, we mention here the consideration of higher-layer aspects such as queuing in the definition of the latency. \bibliographystyle{ieeetran}
\section{Research Methods} \end{document} \endinput \section{Introduction} Natural language (NL) is gaining traction as an input modality for data visualization tools. Both mainstream visualization systems (e.g., Microsoft Power BI~\cite{mspowerbi}, Tableau~\cite{tableauaskdata}) and research prototypes (e.g.,~\cite{sun2010articulate,gao2015datatone,setlur2016eviza,yu2019flowsense,cui2019text,srinivasan2020interweaving}) have demonstrated the potential natural language interfaces (NLIs) hold for supporting a rich visual analytic flow and to cater to broader audiences (e.g., visualization novices, people with disabilities). \textit{Visualization specification} plays a central role in these tools, as people create charts to visually explore and analyze their data (e.g., creating histograms to check data distributions, creating scatterplots to observe correlations), as well as to communicate their findings with other stakeholders (e.g., creating grouped bar charts for quarterly reports). However, beyond the space of utterances supported in current NLIs for visualization, there is limited empirical understanding about the nature of utterances people use to specify data visualizations through NL. For instance, how do people structure or phrase their utterances? Do they use systemic commands (e.g., \textit{``Plot scatterplot of sales by profit.''}) or high-level questions (e.g., \textit{``Have cars gotten lighter over time?''})? What type of information do people include in their utterances? Do they explicitly list chart types and aggregations (e.g., \textit{``Bar chart showing average profit by state''}) or expect systems to infer such information for them (e.g., \textit{``Visualize profit across states.''})? Furthermore, in cases where people provide explicit references, are these references direct (e.g., exact or partial matches to attribute names), or implied or semantic (e.g., using synonyms for attribute names, using phrases like \textit{``How many''} instead of specifying a \texttt{COUNT} aggregation)? Answering these questions can help assess how well-aligned current tools are with people's expectations from NLIs for visualization. This, in turn, can help developers of NLIs for visualization validate and boost their systems' performance and improve system usability. We conducted an online study with 102 participants, curating a dataset of 89\added{3} visualization specification-oriented NL utterances. Specifically, we showed participants a series of ten canonical visualizations (e.g., bar charts, line charts, scatterplots) and asked them to enter utterances they would use to create the shown charts. We then characterized the resulting utterances along two dimensions: 1) their phrasings, i.e., how the utterances were structured (e.g., questions, commands), and 2) the information contained in them (e.g., some utterances explicitly requested a visualization type). For the remainder of this paper, we use the term \textbf{utterance} to refer to any NL command, statement, query, question, or instruction that one may issue to an NLI. Leveraging this characterization, we provide a high-level summary of the types of utterances that people use to specify visualizations, discussing their coverage within current systems and revealing underexplored classes of utterances. \added{We also distill our experiences and highlight critical considerations for designing and conducting online studies to collect data for NLIs for visualization. Finally, we discuss how the curated dataset of utterances can be used toward the creation and benchmarking of NLIs for visualization, and for collecting larger datasets.} The key contributions of this work are twofold: (1) a publicly available dataset of 89\added{3} visualization specification-oriented utterances and a discussion of its application toward creating and benchmarking NLIs, and (2) \added{a characterization of NL utterances people use to specify data visualizations along with its implications for designing future NLIs for visualization specification}. \section{Related Work} Advances in NL recognition and understanding have led to a surge of interest in NLIs for data visualization. In recent years, a wide range of systems have been developed to support NL interaction during visual data exploration (e.g.,~\cite{sun2010articulate,gao2015datatone,setlur2016eviza,hoque2017applying,srinivasan2020inchorus,srinivasan2020interweaving}), for question answering with charts~\cite{kim2020answering}, and for facilitating data-driven communication~\cite{cui2019text,lai2020automatic}. A majority of these systems focus on specific visualizations and usage scenarios (e.g., network data exploration~\cite{srinivasan2017orko}, dataflow diagram editing~\cite{yu2019flowsense}) or technical aspects of system development (e.g., detecting ambiguities~\cite{gao2015datatone,setlur2016eviza}, inferring underspecified queries~\cite{setlur2019inferencing}). On the other hand, some projects have more closely investigated the structure of NL utterances and thus are highly relevant to our work. Metoyer et al.~\cite{metoyer2012understanding} conducted a study where 20 participants worked in pairs with one participant verbally describing a given chart to another participant who attempted to draw the chart based on that description. Through the collected data, the authors discuss implications for future NL systems including the need to support ambiguous instructions (e.g., \textit{``a narrow bar''}) and the use of relative terms to arrange spatial layouts (e.g., \textit{``the yellow bar is stacked on top of the blue bar''}), among others. Setlur et al.~\cite{setlur2016eviza} conducted a study to collect utterances people may pose when interacting with a given chart. They identified different task categories people try to perform (e.g., search, filter, change chart type) and used the corresponding utterances to implement the Eviza system~\cite{setlur2016eviza}. Tory and Setlur~\cite{tory2019mean} conducted a wizard-of-oz study to understand people's expectations of the role of system intelligence in NLIs during visual analysis. Their findings highlight that NLIs can enable a richer visual analytic flow by supporting both explicit and implicit user intent, by prioritizing explicit intent over consistency in use of graphical encodings during chart transitions, and by performing proactive actions, such as visually encoding filters and implicitly applying data transformations, among others. Our work shares a similar goal with these studies in that we also seek to understand the nature of NL utterances within the context of data visualization. However, we focus on collecting and understanding utterances people may pose to a system for visualization specification (as opposed to interacting with a given chart). In doing so, we provide additional evidence for findings from prior studies while also offering novel insights into classes of utterances not supported in current tools and discussing practical implications for system design. Recent work has also begun to curate datasets of utterances to enable the use of machine learning techniques for NLI development. For instance, during an online study, Kim et al.~\cite{kim2020answering} showed people a series of bar charts and line charts, and collected questions people pose to these charts along with the participants' answers (and explanations) to those questions. This data was then used to update Sempre~\cite{berant2013semantic}, a model conventionally used for question answering within relational data tables, to answer questions in the context of data visualizations. Fu et al.~\cite{fu2020quda} collected utterances mapping to Amar et al.'s 10 low-level analytic tasks (e.g., filter, sort, find extremum)~\cite{amar2005low}. Using the collected data to train a text classification model, the authors showed how one could detect analytic tasks from given NL utterances. Similar to these recent studies, we also aim to foster future research and development by curating a freely available dataset of utterances. To this end, we complement the existing datasets that focus on question answering and task detection, and contribute the first dataset that contains visualizations and utterances that were used to specify those visualizations. Besides discussing the applications of the presented dataset, we also offer insights into unique challenges we faced during data collection and curation as these can help extend the described study and generate larger datasets. \section{Online Study} \label{sec:study} \begin{figure*}[t!] \centering \includegraphics[width=.9\textwidth]{figures/visualizations-used.pdf} \vspace{-1em} \caption{Ten visualizations used for the study (all charts were created using Vega-Lite~\cite{satyanarayan2016vega}). Charts shown in the figure represent the movies dataset. Charts (1, 2) visualize one quantitative or categorical attribute using the \texttt{x}- and \texttt{y}-encoding channels. Charts (3-5) also only encode data via the \texttt{x}- and \texttt{y}-channels but visualize two attributes at a time. Finally, charts (6-10) use \texttt{color} and/or \texttt{column} (for faceting) as an additional encoding to visualize three attributes at a time. The corresponding ten charts for the cars and superstore data are included in the supplemental materials. } \label{fig:visualizations-used} \Description{The ten visualizations used for the study.} \end{figure*} \subsection{Visualizations and Datasets} \input{tables/dataset-summary.tex} Our study covered a total of 30 visualizations (10 visualizations x three datasets): Figure~\ref{fig:visualizations-used} shows the 10 visualizations that were presented during each session and Table~\ref{tab:dataset-summary} summarizes the three datasets used in the study. These visualizations covered three popular chart types: \textit{bar charts}, \textit{line charts}, and \textit{scatterplots}, along with their variants (histograms, stacked \& grouped bar charts, multi-series line charts, and colored \& faceted scatterplots). Our choice of visualizations was motivated by the popularity of these charts across visualization tools \added{in general~\cite{battle2018beagle} as well as within existing NLIs for visualization (e.g.,~\cite{sun2010articulate,gao2015datatone,setlur2016eviza,srinivasan2020inchorus})}. Furthermore, these visualizations also allowed us to cover three basic data types: \textit{categorical} (both nominal and ordinal values), \textit{quantitative}, and \textit{temporal}, as well as their combinations involving one to three data attributes at a time. Collectively, this set of visualizations and attribute type combinations ensured that the utterances collected via the study would be broadly applicable and could be used in the context of general visualization tools. For the data underlying these charts, we decided to use datasets that: (1) contain a mix of categorical, quantitative, and temporal values, and (2) represent a generally understood domain to engage a broad participant pool. With these criteria in mind, we chose three tabular datasets covering different domains: \textit{cars}, \textit{movies}, and \textit{superstore sales} (Table~\ref{tab:dataset-summary}). \subsection{Participants} To collect utterances that were representative of what end-users of a visualization system might provide, we sought to recruit participants who are actual users of visualization tools or are interested in visual data analysis. With this target population in mind, we shared the call for participation for the study via mailing lists at universities and software companies. We specifically used mailing lists that included data systems-related users (e.g., database and visualization courses, dashboard tool user groups, visualization tool developers and product managers). We also posted the call for participation on public social platforms such as LinkedIn and Reddit. On these social platforms, we again posted only in targeted interest groups pertaining to data visualization and visual analytics (e.g., `r/visualization' and `r/PowerBI' communities in Reddit, Tableau user groups on LinkedIn, the Data Visualization Society Slack channel). Participation was voluntary and no compensation was provided (neither financially nor via other reward mechanisms such as course credit). Participants could choose to exit the study at any point. Participants were also informed beforehand that the utterances collected through the study will be made publicly available and that no personal information (contact details or demographic information) will be captured during the study. Over a span of $\sim$60 days, a total of 202 participants visited the study URL among which 102 participants took part in the study (i.e., completed at least one trial). Seventy-six participants completed the entire session, entering utterances for all ten visualizations while 26 participants exited the study amidst a session. \subsection{Procedure and Task} Each session included four major phases: (1) \textit{introduction \& consent}, (2) \textit{dataset \& task description}, (3) \textit{task trials}, and (4) \textit{providing prior experience with visualization tools}, and consisted of 10 trials corresponding to the 10 visualizations displayed in Figure~\ref{fig:visualizations-used}. Each participant saw all 10 visualizations from only one of the three datasets (cars, movies, superstore). Both the dataset selected and the order of visualizations were randomized across participants. \begin{figure*}[t] \centering \includegraphics[width=\linewidth,keepaspectratio]{figures/trial.pdf} \caption{Screenshot from the study illustrating a single task trial. The example shown is from a session visualizing the cars dataset. \added{(A) Dataset preview, (B) chart to specify, and (C) task prompt and input.} Besides entering utterances, participants could also click the {\small{\faQuestionCircleO}} icon on the top-right corner to revisit the dataset and task overview.} \label{fig:trial} \Description{A screenshot from the study illustrating a single task trial.} \end{figure*} Participants were first informed about the study goal, compensation, public sharing of collected utterances, etc.~and were asked to provide their consent. Next, participants were given a brief introduction to the dataset (e.g., number of rows and columns, what the rows and columns represent) and the task, which required participants to enter (type in) one or more utterances they would pose to a system like Tableau or Microsoft Power BI to specify a displayed visualization (Figure~\ref{fig:trial}). Note that to ensure participants were not biased to phrase utterances in a specific way, we did not provide any example utterances as part of the task description. Participants were then presented with the 10 trials in random order. Lastly, participants who completed the trials were given the option to provide their prior experience level using visualization tools on a five-point scale ranging from `Never' to `Very Frequently'. All utterances entered during the study were logged for further analysis. \subsection{\added{Study Design Considerations}} \added{We iteratively developed the final study interface and procedure described above through 41 pilot sessions, including two in-person group sessions\footnote{\added{During the group sessions, participants completed the study individually on their laptops and then collaboratively provided feedback on issues they faced (e.g., incorrect chart sizes) or instructions that were confusing to them (e.g., task phrasing).}} (with 11 and 14 participants, respectively) and 16 distributed online sessions. To the best of our knowledge, this is the first online study designed specifically for collecting NL utterances for visualization specification. Correspondingly, below we briefly reflect on the pilot feedback and the evolution of our study design to highlight key considerations for future online studies investigating NL input for data visualization.} \subsubsection{\added{No training trials or sample inputs.}} \added{As we required participants to enter utterances that naturally occurred to them, we did not present a ``training phase'' or sample inputs at the start of the study to avoid biasing the utterances participants entered. This absence of training trials is one crucial consideration compared to more traditional perception- and interaction-focused online visualization experiments that use training trials to acclimatize participants to the study tasks and interface.} \subsubsection{\added{Phrasing task prompts.}} \added{One important factor for future studies to consider is the phrasing of the task prompt (Figure~\ref{fig:trial}C). To cite an anecdote, during the pilots, we initially used the prompt ``\textit{Enter one or more natural language commands or utterances that you would pose to a system to create the visualization shown on the right.}'' With this prompt, a majority of the input utterances were phrased along the lines of \textit{``Create a [chart type] of [attributes]''} where the start \textit{``Create a''} was consistent across almost all participants. While these were natural utterances for some participants, other participants said that the prompt nudged them towards phrasing their utterances in a particular way. Correspondingly, to repeatedly remind participants that they were free to phrase utterances per their individual preferences, we updated the task prompt to (\textit{``Type one or more natural language...''} as shown in Figure~\ref{fig:trial}C. Specifically, we included a variety of terms to refer to participant input (e.g., questions/statements/queries/...) and randomized the ordering of these terms (e.g., utterances/queries/statements/..., queries/questions/commands/...), and also varied the verbs used in the prompt (e.g., create, generate, specify).} \subsubsection{\added{Choosing the number of required utterances.}} \added{Setting the minimum number of utterances that participants need to enter is also an important study design factor to consider. We initially asked the pilot participants to enter \textit{two or more} utterances they would use to specify the given chart. However, participants commented that it was challenging to provide more than one ``natural'' utterance, leading them to create a contrived second utterance by paraphrasing their first utterance. Furthermore, instead of reading ``\textit{two or more}'' as two mutually exclusive utterances to specify the shown chart, some participants misinterpreted the instructions as a mandate for entering at least two utterances that collectively specified the shown chart (e.g., \textit{``Show me a bar chart''~$>$~``Add states and average profit"}). We therefore asked participants to enter \textit{one or more} utterances in the final study (Figure~\ref{fig:trial}C).} \subsubsection{\added{Providing a dataset preview.}} \added One subtle but important design consideration is the inclusion of a dataset preview as part of each trial (Figure~\ref{fig:trial}A). In the initial pilots, we included the dataset preview only during the introductory phase but not for the actual trials. However, we observed that including a dataset preview alongside the chart gave participants a better understanding of the dataset, helping them formulate more naturalistic utterances involving semantic and value-based references to data attributes (e.g., using phrases like \textit{``over time''} or \textit{``movie length''} instead of the attribute names \textit{Year} or \textit{Running Time}, or values like \textit{``furniture, office supplies, and technology''} to refer to \textit{Category}).} \section{Analysis and Results} \subsection{Data Cleaning} \label{sec:data-cleaning} A total of 803 logs were generated from the 102 sessions (76 complete + 26 partial sessions, one log per trial). We manually inspected these logs to curate a set of logs containing only valid utterances that could reliably be used for future research and development. We discarded 159 trials, leaving a total of 644 trials: we discarded trials if they contained utterances that fell into the following categories: \begin{itemize}[leftmargin=.175in] \item \textbf{Arbitrary text} (45): Trials that contained utterances composed of an arbitrary collection of characters. Examples include \textit{``njknjk,''} \textit{``xyz,''} \textit{``fdsfs,''} and \textit{``na.''} \item \textbf{Code or SQL} (43): Trials that contained SQL commands or code in programming languages, such as R and Python. Examples include \textit{``SELECT Year, Origin, AVG(Horsepower) FROM dataset WHERE Origin IN (`Europe', `Japan', `USA') GROUP BY Origin, Year''} and \textit{``ggplot(dataset) + geom\_point(mapping= aes(x= Horsepower, y= Acceleration)''}. \item \textbf{Incomplete utterances} (37): Trials with utterances that were incomplete in the context of recreating the displayed visualizations. For instance, for the trial shown in Figure~\ref{fig:trial}, we excluded the utterance \textit{``show me displacement vs miles per gallon''} because it does not specify, in any way, that \textit{Origin} should be visualized as a third data attribute \added{and used for coloring the points}. \added{While incomplete utterances may be considered valid for the given datasets during general data exploration, they lacked sufficient information for a visualization system to adequately infer the shown chart from the utterance alone}. Other discarded examples under this category include \textit{``Bar graph''} (for a bar chart that needs two attributes \added{similar to Figure~\ref{fig:visualizations-used}-3}), \textit{``average of horsepower''} (for a multi-series line chart \added{similar to Figure~\ref{fig:visualizations-used}-8}), and \textit{``Show me bar graphs of each ship mode''} (for a stacked bar chart with three attributes \added{similar to Figure~\ref{fig:visualizations-used}-6}). \item \textbf{Miscellaneous utterances} (34): Trials containing utterances where it looked like participants did not follow the instructions and entered utterances that were not relevant to the task of specifying a displayed chart. For example, for the chart in Figure~\ref{fig:trial}, we discarded a trial composed of only the following two utterances: \textit{``Overlay Legend top right''} and \textit{``Add Exponential Trend.}'' Other discarded examples include \textit{``add data labels, inside end,''} \textit{``Change y-axis major units to 2,''} and \textit{``Title start with A.''} \end{itemize} \subsection{Results} Among the filtered group of 644 trials, 252 corresponded to the cars dataset, 205 to the movies dataset, and 187 to the superstore dataset. \added{The number of trials for each [dataset x chart type] combination ranged 15--28 (\textit{M} = 21).} The 76 participants who completed all 10 trials also provided their prior working experience with visualization tools (Never: 3, Somewhat infrequently: 9, Occasionally: 15, Somewhat frequently: 23, Very frequently: 26). In terms of utterances, from the 644 trials, we extracted a total of 89\added{3} utterances with individual trials containing one to seven utterances. \vspace{.3em} \noindent\textbf{Characterizing Utterances.} We qualitatively analyzed the 89\added{3} utterances through an open coding process. Specifically, two of the authors collaboratively inspected the data to identify high-level themes and generated a set of codes to characterize and group utterances. We then individually tagged random subsets of utterances using the initial coding scheme and compared the coding results for agreement. The resulting codes were then collectively discussed and refined for consistency until an 85\% agreement was reached using the Jaccard Index. Subsequently, all 89\added{3} utterances were tagged using the mutually agreed-upon codes. From the 89\added{3} utterances, we identified a total of 814 \textit{\textbf{utterance sets}}: we define an utterance set as a set of one or more utterances that collectively map to a specific visualization. Utterance sets can either be \textit{singleton} (755) or \textit{sequential} (59). A singleton utterance set contains only one utterance intended to specify one chart. Examples of singleton utterance sets for the chart shown in Figure~\ref{fig:trial} include (1) \textit{``Scatterplot mpg vs displacement color by origin''} and (2) \textit{``What is the correlation between displacement and MPG of cars with different origins?''} On the other hand, a sequential utterance set is composed of multiple utterances that collectively create one chart. Going back to the chart in Figure~\ref{fig:trial}, an example of a sequential utterance set (with two utterances) is \textit{``plot displacement by mpg''~$>$~``color by origin''} (the symbol~`$>$' denotes a follow-up utterance). \added{The 59 sequential utterances were composed of 2--5 utterances (\textit{M} = 2).} \added{The lengths of utterance sets ranged 2--61 words (\textit{M} = 10), with individual utterances containing up to 38 words (\textit{M} = 9), see Figure~\ref{fig:utterance-set-lengths}.} To better understand the nature of utterances that people use to specify visualizations, we characterized the 814 utterance sets along two key dimensions: \textsc{\textbf{How}} the utterances are phrased and \textsc{\textbf{What}} dataset or visualization-specific information they contain. Figure~\ref{fig:results} summarizes the results of this characterization. In terms of phrasing variations, we tagged each of the 814 utterance sets as one of: \textit{commands} (368), \textit{queries} (260), \textit{questions} (114), or \textit{others} (72). Figure~\ref{fig:results}-top presents examples of utterances under each of these phrasing categories. Specifically, we defined `commands' as utterances that were phrased similar to instructions or requests from one person to another. We tagged an utterance set as a `query' when the underlying utterances were phrased as keywords or terse web search-like queries. `Questions' were data-driven questions that participants expected to see the displayed visualization as a response to. If an utterance set did not fall under one of the three aforementioned phrasing categories, we tagged it as `others' because such phrasings were relatively infrequent. Broadly speaking, the types of phrasings in the `others' category included caption-like statements \added{describing a chart}, \added{commands that were primarily in NL but also used special characters like `\textit{=}' and `\textit{( )}' that have a programming connotation}, or detailed chart rendering instructions. With respect to the information contained within utterances, we identified five types of references that would be relevant to an NLI when interpreting utterances to create visualizations: \textit{\textbf{\textcolor{attrRefColor}{attribute}}}, \textit{\textbf{\textcolor{chartRefColor}{chart type}}}, \textit{\textbf{\textcolor{encodingRefColor}{encoding}}}, \textit{\textbf{\textcolor{aggRefColor}{aggregation}}}, and \textit{\textbf{\textcolor{designRefColor}{design}}} references. Figure~\ref{fig:results}-top highlights these references in the context of sample utterances illustrating the different phrasing variations. Attribute references are essentially words in a query that map to a data attribute. Attribute references can be further divided into four sub-categories: (i) explicit references, where words in a query directly match a portion of a data attribute (e.g., \textit{``mpg''} $\rightarrow$ \texttt{MPG}, \textit{``genre''} $\rightarrow$ \texttt{Major Genre}), (ii) semantic references, where words in a query are synonyms or semantically similar to the dataset attributes (e.g., \textit{``heavy''} $\rightarrow$ \texttt{Weight}, \textit{``fuel economy''} $\rightarrow$ \texttt{MPG}, \textit{``over time''} $\rightarrow$ \texttt{Year}), (iii) value-based references, where words in the query refer to cell values instead of column names (e.g., \textit{``1995 to 2010''} $\rightarrow$ \texttt{Release Year}, \textit{``furniture, office supplies, and technology''} $\rightarrow$ \texttt{Category}), and (iv) implicit references, where attributes are requested indirectly through a visualization type (e.g., if there is only one temporal attribute, requesting a line chart implies a reference to that attribute). Chart type references include explicit requests for specific visualization types (e.g., \textit{``scatterplot''}, \textit{``bar chart''}, \textit{``histogram''}). A subset of utterances also included explicit, unambiguous references to graphical encoding channels that should be bound to different attributes (e.g., \textit{``color by category,'' ``facet by origin''}). Utterances with aggregation references included one or more words that mapped to the type of mathematical transform that needed to be applied to create a chart (e.g., sum, average, count). Aggregation references were further sub-divided as explicit (e.g., \textit{``total gross''}->\texttt{SUM(Worldwide Gross)}, \textit{``number of orders''} $\rightarrow$ \texttt{COUNT}) or implicit via a requested chart type or phrasing (e.g., \textit{``histogram''} or \textit{``How many''} $\rightarrow$ \texttt{COUNT}, \textit{``stacked bar chart''} $\rightarrow$ \texttt{SUM} or \texttt{COUNT}). Finally, utterances with explicit design references specified additional details such as mark color, chart orientation, sorting order, or axis tick windows that could be leveraged by visualization NLIs when rendering charts (e.g., \textit{``set origin colors to: europe, blue, japan, orange, usa, red,'' ``Histogram of running time, in 20 minute bands''}). Note that the aforementioned phrasing and information types are by no means an exhaustive list, nor are they mutually exclusive. For instance, while we tagged them as commands, one could cross-list the utterances \textit{``Faceting on Origin, plot Weight by Acceleration''} and \textit{``Can you create a graph showing sales and profit by region?''} as command+query and command+question, respectively. Similarly, many utterances included keywords like \textit{`correlation,' `distribution,' `compare'} that could be used to identify intended analytic tasks~\cite{amar2005low}, which is another potentially relevant factor for a system when determining which visualizations to render. Instead, the categorization described in this section is primarily to provide a subjective overview of the curated dataset and to serve as a reference point for more detailed discussions regarding the nature of utterances within visualization NLIs going forward. \begin{figure} \includegraphics[width=\linewidth,keepaspectratio]{figures/utterance-length-distribution.png} \caption{\added{Summary of the lengths of the 614 utterance sets across the 10 chart types (Figure~\ref{fig:visualizations-used}) and three datasets (Table~\ref{tab:dataset-summary}) used in the study. The [count] alongside the chart types indicates the number of utterance sets. }} \label{fig:utterance-set-lengths} \Description{A box plot summarizing the lengths of utterance sets across the ten chart types.} \vspace{-1em} \end{figure} \begin{figure*}[t!] \centering \includegraphics[width=.9\textwidth, keepaspectratio]{figures/results-new.pdf} \vspace{-1em} \caption{\added{An overview of the curated dataset of 814 utterance sets composed of 89\added{3} utterances from the 644 trials. (Top) Utterance phrasing types we observed along with examples of each type. (Bottom) A distribution of information references within each utterance set. The color codes of the columns headers are also used to highlight the corresponding references in examples shown at the top. Note that specifically for attribute references, a single utterance set can have multiple types of references and hence the sub-category totals add up to more than 814 (e.g., \textit{``How does displacement relate to fuel economy for cars from Europe v. USA''} contains an explicit reference to \texttt{Displacement}, a semantic reference to \texttt{MPG}, and a value-based reference to \texttt{Origin}). Additionally, data aggregations were only applicable to 570/814 utterance sets that were issued in the context of visualizations other than scatterplots (since scatterplots did not show aggregated values) and 97 of these 570 utterance sets did not include explicit or implicit aggregation references (e.g., ``\textit{bar chart for mpg v/s cylinders}'').}} \label{fig:results} \Description{An overview of the curated utterances in terms of their phrasings and the information they contained.} \end{figure*} \section{Applications} \label{sec:applications} \added{The central contribution of this work is the curated dataset of 89\added{3} utterances (814 utterance sets) that are publicly available at: \href{https://nlvcorpus.github.io}{\textcolor{urlblue}{\texttt{https://nlvcorpus.github.io}}}.} To lay the groundwork and help foster ideas for future research and development, below we highlight some exemplary applications of this dataset. \subsection{Benchmarking Existing NL-based Visualization Tools} \input{tables/nl4dv-benchmark} The curated utterances can serve as a benchmarking dataset to evaluate the performance of existing systems. As an example, we used the dataset to evaluate the NL4DV toolkit~\cite{narechania2020nl4dv} \added{which returns a list of Vega-Lite specifications in response to NL utterances}. To benchmark NL4DV's performance, we configured NL4DV with the three datasets used for the study and executed the 755 singleton utterance sets curated from the study. We only used singletons since NL4DV currently does not support sequential utterances. Table~\ref{tab:nl4dv-performance} summarizes the toolkit's performance on the curated utterance dataset. Execution times for individual utterances ranged between 0.01s--14.11s (mean: 1.04s)\footnote{Reported based on a MacBook Pro with a Dual-Core 2.6GHz processor and 8GB RAM running MacOS Catalina version 10.15.6}. To compute the accuracy, we compared the list of Vega-Lite specifications returned by NL4DV to the Vega-Lite chart shown during the study. In our first iteration, we checked for exact matches between the mark type (\texttt{point}, \texttt{bar}, \texttt{line}), encodings (\texttt{x}, \texttt{y}, \texttt{color}, \texttt{column}), data bindings (i.e., mappings between attributes and encodings), and data aggregations (\texttt{count}, \texttt{mean}, \texttt{sum}) with one exception: we marked two scatterplots as ``equal'' even if their \texttt{x}, \texttt{y} data bindings were interchanged. Inspecting the failed cases, we noticed that some mismatches were not interpretation or visualization recommendation errors but rather resulted from default data binding and aggregation choices made within NL4DV's recommendation engine (e.g., reversed \texttt{x} and \texttt{color} bindings for a stacked bar chart, setting a \texttt{mean} aggregation instead of a \texttt{sum} when no aggregation is specified in an utterance). \added{Thus, to account for these default choices, we also computed a second ``partial match'' accuracy score ignoring such mismatches.} Looking through the remaining failed utterances, we noticed that errors occurred due to NL4DV's keyword-based task detection logic (e.g., the word `relationship' would map to a \textit{correlation}, resulting in a \texttt{point} mark while the utterance was in the context of a bar chart), and undetected semantic attribute references (e.g., the phrase `\textit{fuel economy}' did not get mapped to the \textit{MPG} attribute), among others. While not a critical review of NL4DV's performance, this example shows how the presented utterance dataset can help benchmark and identify areas for improvement within current tools. \subsection{Developing New Models for NL-driven Data Visualization} \input{tables/text-classification} The curated utterance dataset can also be used to develop new techniques to generate visualizations from NL. As a preliminary application, we explored how the curated utterance dataset can be used to develop a classification model that predicts chart types (with labels being the ten chart types used in the study) based on NL utterances. To this aim, we experimented with different classification techniques including logistic regression, random forests, support vector machines, and Naive Bayes available within Python's scikit-learn package~\cite{pedregosa2011scikit}. We summarize the classification accuracy of these models trained on TF-IDF vectorized representations of the 814 utterance sets (singletons + sequential) in Table~\ref{tab:classification}. Although we need substantially larger datasets to make these models practically useful, this initial setup illustrates the potential of the presented dataset for supporting future development. Ultimately, such classifiers can be coupled with other NL understanding and visualization recommendation modules to generate visualizations in response to given utterances. For example, one could combine the output from a classifier (i.e., chart type), detect attributes in input utterances with toolkits like NL4DV~\cite{narechania2020nl4dv}, and then determine the most perceptually effective bindings for the classified chart type's encoding channels using tools like CompassQL~\cite{wongsuphasawat2016towards} and Draco~\cite{moritz2018formalizing}. Similarly, the curated utterances can also be used as input to contemporary few-shot learning models such as GPT-3~\cite{brown2020language}. For instance, developers have already begun to experiment with GPT-3 for generating visualizations from NL using only tens of hand-crafted example utterances~\cite{twittergpt3}. To this end, the presented dataset can help fuel these recent efforts and significantly improve performance by providing a broader training set covering multiple chart types and dataset domains. \section{Discussion} \label{sec:discussion} \subsection{Implications for System Design} The spectrum of heavily specified utterances (e.g., \textit{``Show me a bar chart of the total profitability of each region with a breakdown based on shipping time''}) to highly underspecified keyword-based utterances (e.g., \textit{``Cylinders average mpg''}) highlights the varying level of expectations that people have from NLIs for data visualization. Closely examining the collected utterances can help current systems expand their underlying grammar configurations to support more natural utterances, or help develop new systems based on the themes observed from this data. As actionable takeaways, below we highlight some key design considerations for developing NLIs for visualization based on our observations from the curated set of utterances. \subsubsection{Accommodating natural phrasings as part of user input in visualization tools.} While not an exhaustive or definitive list, the examples shown in Figure~\ref{fig:results}-top illustrate the diverse forms in which people naturally phrase NL utterances. However, given practical implementation challenges, current NLIs often suggest utterances as users provide their input (e.g., Figure~\ref{fig:suggestions-askdata}), asking users to select from these utterances. While these suggestions can aid discoverability and help improve system accuracy, their phrasing may mislead people about the system's interpretation capabilities or bias users towards phrasing their input in a specific format (e.g., query-like utterances as in the suggestion in Figure~\ref{fig:suggestions-askdata}). Furthermore, mentally mapping different phrasings of input utterances and system suggestions can be tedious and potentially confusing (e.g., the input utterance in Figure~\ref{fig:suggestions-askdata} does not contain aggregations but the system suggestion does). Hence, going forward, to enable truly ``natural'' language-based interactions and support flexible input phrasings, one consideration for visualization systems is to explore ways to internally translate input utterances into system-friendly phrasings without exposing these phrasings to users by default. \begin{figure} \includegraphics[width=\linewidth]{figures/suggestions-askdata.png} \caption{A phrasing suggestion in Tableau's Ask Data~\cite{tableauaskdata} while entering an utterance collected during the study.} \Description{Example illustrating how current NLIs for visualization enforce certain phrasing types through auto-complete features.} \label{fig:suggestions-askdata} \end{figure} \subsubsection{Inferring different types of attribute references.} Prior work by Grammel et al.~\cite{grammel2010information} has highlighted how people, especially novices, heavily rely on attributes to specify visualizations (deferring underlying visualization design decisions onto the system). This observation has played a key role in motivating the design of NLIs for visualization as NL allows users (novices or experts) to freely specify attributes amidst naturally phrased questions or as part of targeted commands. The collected utterances not only reaffirm this fact but also highlight the flexibility that NL affords in specifying attributes (explicit, semantic, value-based, and implicit references in Figure~\ref{fig:results}-bottom). However, as also highlighted by prior work~\cite{gao2015datatone,setlur2019inferencing}, to be effective, NLIs must complement this input flexibility with robust interpretation techniques to infer these different references, particularly focusing on ambiguous (e.g., partial attribute matches) and semantic references (e.g., synonyms, domain-specific terminology such as \textit{``fuel economy"} for \texttt{MPG}). \subsubsection{Balancing automated and manual view specification.} Given the overarching task of visualization specification, an important aspect for supporting NL interaction is making automated visualization design choices when an utterance is underspecified (e.g., choosing chart types based on attribute types, selecting a default aggregation when there is none specified in the query)~\cite{setlur2019inferencing}. However, in this study, we observed that participants oftentimes provided explicit references to one or more encoding channels (e.g., \textit{``color by Origin,''} \textit{``faceted by region''}) that may not match a system's inherent design choices (e.g., a visualization system might select a colored scatterplot over a faceted one by default). Yet, such custom specification is seldom supported in current systems that strive to provide agency through implicit decisions. Thus, in line with recommendations from Tory and Setlur on prioritizing explicit intent during analytic conversations~\cite{tory2019mean}, in the context of visualization specification, future systems must accommodate explicit encoding requests, allowing users to override implicit visualization design choices made by current systems. \subsection{Limitations and Future Work} Although our work presents implications for the general design of NLIs for visualization, the collected data and our findings should be interpreted with the study's constraints and assumptions in mind. Specifically, we only considered typed input and did not allow participants to use voice to enter utterances. \added{Furthermore, we did not screen participants or collect any demographic information, and only distributed the study to participants outside the European region (\arjun{due to privacy laws and IRB requirements}).} Hence, conducting follow-up studies to collect spoken utterances or targeting \added{focused user groups (e.g., visualization novices)} can help enrich the data and findings. \added{As with most online studies, cleaning and filtering the data collected from the trials was an integral aspect of our work. For instance, even after incorporating the feedback from the pilot sessions, we still encountered a breadth of trials that had to be discarded (Section~\ref{sec:data-cleaning}). Furthermore, for individual trials, participants often entered two or more singleton utterance sets, one or more sequential utterance sets, or a combination of singleton and sequential utterance sets. While this highlights the input flexibility that the study interface provided, it also required us to manually inspect utterances and detect utterance sets. Given the relatively small scale of the data, performing these cleaning steps manually was feasible, albeit tedious. However, generalizing the data cleaning process for larger utterance datasets and investigating interactive data cleaning systems that function based on preconfigured rules or a set of examples are important areas for future work to explore. } Besides the immediate applications of the current dataset (Section~\ref{sec:applications}), our study can also be extended in different ways. First, a short-term extension could be to consider \added{additional visualization types (e.g., parallel coordinates, heatmaps) or} focusing on non-tabular data (e.g., network visualizations, maps). \added{Second, following the methodology used to construct popular NL-to-SQL datasets such as WikiSQL~\cite{zhong2017seq2sql}, a crowdsourced task could be setup to paraphrase the current set of utterances and then to validate the paraphrased utterances. This paraphrasing can help generate a larger dataset which could subsequently enable more quantitative analyses of utterances and the development of NL-to-Visualization models, complementing research trends in the computer vision (e.g.,~\cite{antol2015vqa,das2017visual}) and database communities (e.g.,~\cite{yu2019spider,yu2019cosql}).} Lastly, we asked participants to specify only one chart at a time. However, NLIs have the potential to offer a more fluid analytic experience which goes beyond specifying a single chart. To this end, future studies could combine ideas from the current study and prior research on conversational visual analysis~\cite{tory2019mean,hoque2017applying} to collect data on how people specify dashboards or sequences of charts (as opposed to specifying each chart from scratch). \section{Conclusion} We conducted an online study with 102 participants to collect NL utterances people use to specify data visualizations. To guide future research and development, we make the curated dataset of 89\added{3} utterances publicly available at \href{https://nlvcorpus.github.io}{\textcolor{urlblue}{\texttt{https://nlvcorpus.github.io}}}~and illustrate its application toward the creation and benchmarking of NLIs for data visualization. In this paper, providing insight into the nature of these utterances, we characterize them based on their phrasing type (e.g., commands, queries, questions) as well as the visualization specification-relevant information they provide (e.g., chart types, encodings, aggregation functions). \added{Additionally, we present the system design implications of the observed utterance patterns and briefly reflect on design considerations for conducting subsequent online studies in the space. Finally, we discuss the constraints of our study along with future research opportunities that can complement our study, enriching the data and findings.}
\section{Introduction} Globular clusters (GCs) are among the oldest objects in the universe. Their relatively high luminosities ($M_V=-5$ to $-10$) and compact sizes (half-light radius of a few parsecs) allow them to be readily detectable in nearby external galaxies \citep{Harris:1996}. Their low metallicities ($\log$[Fe/H]$\lesssim-$0.5) and enhancements of $\alpha$ elements ($\log$[O/Fe]$\geq$ 0.20) suggest that they are formed at very early epochs of galaxy formation \citep{Binney:1998}. The GC formation requires highly efficient star formation, usually associated with intense starburst activity \citep{Bastian:2008}. Star formation in the spheroids (early-type galaxies, spiral bulges and halos) represents one such activity in the early universe. Interactions and mergers between galaxies provided the next epochs of star formation efficient enough to form massive star clusters such as GCs \citep{Whitmore:1995:antena}. These intermediate-age clusters are similar in size and mass as the young massive clusters, also known as Super Star Clusters (SSCs), seen in presently active starburst regions \citep{OConnell:1995}. In the present work, we refer to as SSCs all those relatively younger clusters associated to disks of galaxies and reserve the word GCs to describe old clusters associated to spheroids. Because of their early formation, the properties of GC systems in galaxies provide important constraints on models of galaxy formation and evolution \citep{Ashman:1998}. A variety of GC system properties that are potentially relevant to cosmological theories of galaxy formation have been identified. These include, colour distribution \citep{Larsen:2001, West:2004}, luminosity function \citep{Reed:1994, Whitmore:1995}, radial density distribution \citep{Kartha:2014, Bassino:2006}, specific frequency as a function of galaxy type \citep{Harris:1981, Peng:2008}, total number of GCs as a function of supermassive black hole masses \citep{Burkert:2010, Harris:2011, Harris:2014}, and the nature of their size distribution \citep{Kundu:1998, Larsen:2001, Webb:2012}. These properties have been exhaustively reviewed in \citet{Brodie:2006}. Elliptical galaxies have been the most commonly used targets for the study of GC systems. This is principally because of the relative ease with which GCs can be identified when superposed on a smooth light distribution in these galaxies, as compared to the inhomogeneities inherent to the disks of galaxies. In addition, the identification procedure of GCs in disk galaxies has to take into account possible contamination from reddened young SSCs and intermediate-old (age$\sim$1--10~Gyr) SSCs. Correction of GC magnitudes and colours for the effects of dust in the interstellar medium also becomes more important in spiral galaxies, than in elliptical galaxies. The most important characteristic of GC systems is the existence of bimodality in their colour distribution \citep{Zepf:1993, Gebhardt:1999, Larsen:2001}. This bimodality is understood to be due to an underlying bimodal distribution of GC metallicities \citep{Brodie:2006}. Elliptical galaxies with well-determined metallicities confirm the existence of such a bimodal distribution in metallicities \citep[e.g.,][]{Cohen:1998, Usher:2012}. This has led to the division of GC systems into two sub-populations: red and blue, corresponding to metal-rich and metal-poor populations, respectively. These two sub-populations show differences in other properties, such as size and spatial distribution \citep{Kundu:1998, LarsenBro:2000, Webb:2012}, suggesting possibly two independent formation channels of GC systems. The GC luminosity function (GCLF) is another property that is well established in elliptical galaxies. GCLFs are described by log-normal distributions with $M_{\textrm 0, V}=-7.40\pm0.25$ and $\sigma=1.40\pm0.06$ \citep[e.g.,][]{Reed:1994, Whitmore:1995}. The GCLF is often suggested to be a universal function \citep[e.g.,][]{Hanes2:1977, Richtler:2003} in elliptical galaxies, and have been used as a standard candle for the determination of distances to their host galaxies \citep[e.g.][]{Richtler:2003}. Among spiral galaxies, the log-normal nature of LFs have been firmly established only in the Milky Way (e.g., \citealt{Harris:1996}; \citealt{Bica:2006}) and Andromeda (e.g., \citealt{Peacock:2010}), the only two spiral galaxies where GC system properties have been reasonably well-characterized, with values of $M_{\textrm 0,V}=-7.33$, $\sigma=1.23$ \citep{Secker:1992, Reed:1994} and $M_{\textrm 0,V}=-7.6\pm 0.15$, $\sigma=0.82$ \citep{Secker:1992, Reed:1994}, respectively. Within the errors of measurements, these values are in agreement with the TO found in elliptical galaxies \citep{Ashman:1994}. Using the catalog of \citet{Harris:1996} with 143 GCs, \citet{Jordan:2007} found $M_{\textrm 0,V}=-7.40\pm0.10$, $\sigma=1.15\pm0.10$ for MW. \citet{Fall:2001} reproduced the log-normal form, as well as the TO value of the Galactic GCs by evolving dynamically clusters obeying power-law mass functions under the gravitational potential of the Milky Way. The uniformity in the TO values in spite of GC systems being constituted of two independently formed sub-populations puts strong constraints on the formation scenarios of metal-rich and metal-poor sub-populations. \begin{table*} \setlength\tabcolsep{2.3pt} \centering \begin{scriptsize} \caption{Sample of spiral galaxies} \begin{tabular}{l l r r c r r r r r r c l r l c c c c} \hline Name & Hubble & RA &DEC & A$_{V}$ & R$_{25}$ & a$_{\rm max}$ & d &$m-M$ & Distance & Source & M$_{V_{0}}$ & $(B-V)_{0}$ & Scale & Source & Proposal & Number\\ & Type & (J2000) & (J2000) & (mag) & (\arcmin)& (\arcmin) & (Mpc) & (mag) & method & & & & (pc) & SSCs & ID & of fields\\ (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) &(9) & (10) & (11) & (12) & (13) & (14) & (15) & (16) & (17) \\ \hline \hline M81 & Sab & 09:55:33.1 & 69:03:55 & 0.220 & 13.45 & 7.74 & 3.61 & 27.79$\pm$0.06 & Cepheids & 1 & $-$21.10 & 0.91 & 0.87 & 1,2 & 11570 & 29 \\ M101 & Scd & 14:03:12.5 & 54:20:56 & 0.023 & 14.42 & 7.49 & 6.95 & 29.21$\pm$0.06 & Cepheids & 2 & $-$21.37 & 0.44 & 1.68 & 4,6,7 & 9490,9492 & 12 \\ NGC4258 & Sbc & 12:18:57.5 & 47:18:14 & 0.045 & 9.31 & 8.60 & 7.576 & 29.397$\pm$0.032 & MASER & 3 & $-$21.03 & 0.67 & 1.84 & 3 & 1157 & 17 \\ M51 & Sbc & 13:29:56.2 & 47:13:50 & 0.095 & 5.61 & 3.40 & 8.43 & 29.67$\pm$0.02 & SNII & 4 & $-$21.40 & 0.57 & 2.04 & 4,5 & 10452 & 6(4) \\ NGC628 & Sc & 01:36:41.7 & 15:47:01 & 0.192 & 5.23 & 5.1 & 9.77 & 29.95$\pm$0.04 & SNII & 5 & $-$20.75 & 0.50 & 2.36 & 4,8 & 10402 & 3 \\ \hline \end{tabular} \begin{tablenotes} \begin{small} \item {\it Notes:} (1) Galaxy Name, (2) Hubble morphological type from RC3 \citep{RC3}, (3,4) Right ascension, Declination, in J2000, (5): Galactic extinction from \citet{Schlafly:2011}, (6) $R_{25}$ from RC3 \citep{RC3}, (7) $a_{\rm max}$ is the angular size along the semi-major axis covered by observations, (8) Distance used in this work, (9) Distance modulus, (10) Distance estimation method, (11) Source of distances: 1.- \citet{Tully:2013}; 2.- \citet{Riess:2016}. 3.- \citet{Reid:2019}; 4.- \citet{Rodriguez:2014}; 5.- \citet{Olivares:2010}, (12,13) Absolute magnitude in $V$ band and $(B-V)_{0}$ colour from RC3 \citep{RC3}, (14) HST/ACS pixel scale in pc\,pixel$^{-1}$, (15) References to previous studies of stellar clusters: 1.- \citet{Mayra:2010}; 2.- \citet{Nantais:2010}; 3.- \citet{Lomeli:2017}; 4.- \citet{Whitmore:2014}; 5.- \citet{Hwang:2008}; 6 \citet{Barmby:2006}; 7 \citet{Simanton:2015}; 8 \citet{Adamo:2017}, (16) HST proposal number, (17) Number of ACS fields of each galaxy used in this work. \end{small} \end{tablenotes} \label{tabla:muestra} \end{scriptsize} \end{table*} The total number of GCs in galaxies (\ngc) is another property that strongly constraints the formation scenarios of galaxies. \citet{Hanes:1977} found that \ngc\ is proportional to the mass of its host galaxy and is independent of its morphology. \citet{Harris:1981} defined the specific frequency, \sn, defined as the number of GCs per absolute magnitude in the $V$-band, normalized to $M_{V}=-15$~mag: \sn\ $= {N}_{\text G\text C}\times10^{0.4({M}_{V}+15)}$. They found that \sn\ of a galaxy is approximately proportional to the total luminosity of the spheroidal component in the galaxy. Recent studies have shown that elliptical galaxies have a higher \sn\ as compared to that in spiral galaxies (e.g., \citealt{Peng:2008}; \citealt{Georgiev:2010}). Classical models of formation of elliptical galaxies either by merging of disk galaxies or by the multi-phase dissipational collapse have serious short comings to explain all the above-discussed properties of GC systems. For example, the scenario of the formation of ellipticals by mergers of spiral galaxies predicts similar \sn\ values in ellipticals as compared to spirals. These models require the metal-poor population forming earlier than the metal-rich clusters. On the other hand, under the hierarchical scenario of galaxy formation, metal-rich GC systems formed in-situ in the parent galaxy, which are defined as the highest peaks in density fluctuations, whereas the metal-poor GC systems formed in low-mass halos and got accreted into host galaxy \citep{Cote:1998}. The predictions from these latter models depend critically on the assumed GC system properties in spiral and dwarf galaxies, which are yet to be well established beyond the Milky Way and Andromeda. For firmly establishing GC system properties in spiral galaxies, the GC sample should cover a substantial area of the galaxy, reaching limiting magnitudes fainter than the expected TO magnitudes. In addition, it is desirable to have observations in one of the filters blueward of the Balmer jump ($\sim$3650~\AA) at least in some fields in order to estimate the contamination of the GC sample by reddened SSCs. The first criterion requires analysis of multiple pointing Hubble Space Telescope (HST) images or ground based images taken with wide-field cameras, whereas the second one requires images deep enough to register $V\sim$23~mag at distances less than 10~Mpc. The third criterion requires the availability of images in the $U$-band covering at least for some part of the target galaxies. The existing works on spiral galaxies do not fulfil all the above three criteria. For example, \citealt{Chandar5galaxias:2004} carried out a study of GCs in five spiral galaxies and \citet{Goudfrooij:2003} of seven edge-on disk galaxies, both using HST/WFPC2 fields, but covered relatively small areas in each galaxy. Study by \citet{Young:2012} of two edge-on spirals covered spatially their entire optical extents, but had a limiting magnitude slightly brighter than the expected TO. Other works on spiral galaxies include \citealt{Mayra:2010} and \citealt{Nantaisfoto:2010} (M81; Sab), \citealt{Hwang:2008} (M51; Sbc), \citealt{Barmby:2006}; \citealt{Simanton:2015} (M101; Scd), \citealt{Cantiello:2017} (NGC~253; Sc) and \citealt{Lomeli:2017} (NGC~4258 Sbc). None of these works fulfilled all the three criteria. At present, multi-pointing HST data covering a good fraction of the galaxy angular size (see Figure \ref{fig:muestra_galaxias}) and observed in multiple filters exist for a number of nearby spiral galaxies. Some of these galaxies are also observed in the $F336W$ filter. A careful analysis of these images would be able to provide catalogues of GCs that are free from contaminating stellar and non-stellar objects, and with a good spatial coverage. In this paper, we analyse five giant spiral galaxies that fulfill all the criteria mentioned above, and are nearer than 10~Mpc. In \S2, we describe the sample of galaxies and the data used. In \S3, we explain the detection and our criteria for selecting sample of GCs in the selected galaxies. Results of the completeness tests are presented in \S4. Analysis and discussion of the properties of our GC samples is presented in \S5. In \S6, we give concluding remarks. \begin{figure*} \includegraphics[width=\columnwidth]{m101_05R25_reg_foot_f336w_corte_name.png} \includegraphics[width=\columnwidth]{ngc628_05R25_f336w_corte_name.png} \includegraphics[height=10cm,width=\columnwidth]{ngc4258_footprint_r25_f336w_corte_name.png} \includegraphics[height=10cm,width=\columnwidth]{m51_R25_f336w_corte_name.png} \caption{Sample of study. Galaxies are shown in $F435W$ filter, with observation footprints superimposed. Cyan-coloured rectangles show the $F336W$ filter footprints. The number in each footprint indicates the visit number within proposal. All galaxies are aligned such that north is up and east to the left. {\it Black ellipse} represent $R_{25}$ for NGC4258 and M51, and 0.5$R_{25}$ for M101 and NGC 628. See Figure~1 in \citet{Mayra:2010} for visualization of footprints in M81.} \label{fig:muestra_galaxias} \end{figure*} \section{Sample of spiral galaxies and data} With the aim of comparing the properties of GC populations in spiral galaxies with those in elliptical galaxies, we searched for nearby giant spiral galaxies with multiple pointing HST Advanced Camera for Surveys (ACS) images in at least three optical broadband filters. Galactic GCs typically have half-light radius $r_{\rm h}\lesssim10$~pc \citep{Harris:1996}. At the spatial resolution of $\sim$0.1\,arcsec (image scale=0.05\,arcsec\,pixel$^{-1}$) offered by the ACS, majority of the GCs are more extended than the Point Spread Function (PSF) up to $\sim$10~Mpc distances. Beyond this distance, GC selection would be heavily affected by incompleteness. Keeping this in mind, we looked for HST images of giant spiral galaxies at distances $<$10~Mpc. We analysed such data for five galaxies. In Table \ref{tabla:muestra}, we list these galaxies along with their basic properties and source of images. All these galaxies have multiple pointing HST/ACS images in $F435W$ ($B$), $F555W$ ($V$), and $F814W$ ($I$) bands, covering a good fraction of their optical extent. In addition, all have at least one pointing in the $F336W$ ($U$) filter, which allows an estimation of the contamination of our GC catalogues by reddened SSCs. The Hubble Legacy Archive\footnote{\url{https://hla.stsci.edu/hlaview.html}} (HLA) provides images and photometric catalogues obtained with DAOPHOT\footnote{\url{http://www.star.bris.ac.uk/~mbt/daophot/}} \citep{DAOPHOT:1987} and SExtractor\footnote{\url{https://www.astromatic.net/software/sextractor}} \citep{Sextractor:1996}. These catalogues have been used by \citet{Whitmore:2014} to study the luminosity function of star clusters in selected fields for a sample of 20 spiral and irregular galaxies. As a first step, we used these catalogues to select a sample of GCs. However, we noticed that the adjacent images had vastly different limiting magnitudes in some galaxies. A visual inspection of catalogued sources on the images suggested that the background values used in some images were inappropriate (see Appendix \ref{apen:comparasion}). Since we are looking for a complete sample of GCs up to a given limiting magnitude, we decided to make our own catalogues on the downloaded images. In Figure~\ref{fig:muestra_galaxias}, we show the images of galaxies in $F435W$ band, with footprints superposed. In Tables~\ref{tabla:apuntados} and \ref{tabla:apuntados_f336w}, we give logs of observations for four of our galaxies in the optical and $F336W$ filters, respectively. Different columns tabulate pointing IDs, exposure times, zeropoints\footnote{The zeropoints were obtained from ACS Zeropoints Calculator: \url{https://acszeropoints.stsci.edu/}.} ($c0$) in each filter. We also give the number of stars used for astrometry and RMS error in the coordinates. The fifth galaxy, M81, has been the subject of study previously by our group \citep{Mayra:2010}, and hence we directly use the GC catalog from that study. \begin{table} \setlength\tabcolsep{1.6pt} \begin{center} \begin{small} \caption{Log of HST/ACS optical observations of our sample galaxies$\dagger$.} \begin{tabular}{l c c c c c c c c c c } \hline & \multicolumn{2}{|c|}{$F435W$} & \multicolumn{2}{|c|}{$F555W$} & \multicolumn{2}{|c|}{$F814W$} & \multicolumn{2}{|c|}{Astrometric} \\ ID & $T_{\text{exp}}$ & $c0$ & $T_{\text{exp}}$ & $c0$ & $T_{\text{exp}}$ & $c0$ & $N_{\rm stars}$ & RMS\\ & (s) & & (s) & & (s) & & & (\,arcsec)\\ \hline \hline \multicolumn{9}{|c|}{M101} \\ \hline 01 & 900 & 25.792 & 720 & 25.736 & 720 & 25.531 & 93 & 0.0259 \\ 02 & 900 & 25.792 & 720 & 25.736 & 720 & 25.531 & 55 & 0.163 \\ 03 & 900 & 25.792 & 720 & 25.736 & 720 & 25.531 & 38 & 0.0385 \\ a1 & 900 & 25.792 & 720 & 25.736 & 720 & 25.531 & 41 & 0.0319 \\ a2 & 900 & 25.792 & 720 & 25.736 & 720 & 25.531 & 37 & 0.278 \\ a3 & 900 & 25.792 & 720 & 25.736 & 720 & 25.531 & 11 & 0.0766 \\ b1 & 900 & 25.792 & 720 & 25.736 & 720 & 25.531 & 10 & 0.187 \\ c1 & 900 & 25.792 & 720 & 25.736 & 720 & 25.531 & 18 & 0.0925 \\ c2 & 900 & 25.792 & 720 & 25.736 & 720 & 25.531 & 21 & 0.0175 \\ 10 & 1080 & 25.792 & 1080 & 25.736 & 1080 & 25.531 & 13 & 0.0988 \\ 11 & 1080 & 25.792 & 1080 & 25.736 & 1080 & 25.531 & 29 & 0.0456 \\ 13 & 1080 & 25.792 & 1080 & 25.736 & 1080 & 25.531 & 11 & 0.0862 \\ \hline \multicolumn{9}{|c|}{NGC 4258} \\ \hline 0b & 360 & 25.767 & 975 & 25.717 & 375 & 25.520 & 6 & 0.0134 \\ 84 & 360 & 25.767 & 975 & 25.717 & 375 & 25.520 & 8 & 0.0264 \\ 85 & 360 & 25.767 & 975 & 25.717 & 375 & 25.520 & 6 & 0.0058 \\ 86 & 360 & 25.767 & 975 & 25.717 & 375 & 25.520 & 27 & 0.0049 \\ 87 & 360 & 25.767 & 975 & 25.717 & 375 & 25.520 & 35 & 0.0049 \\ 88 & 360 & 25.767 & 975 & 25.717 & 375 & 25.520 & 26 & 0.0051 \\ 89 & 360 & 25.768 & 975 & 25.717 & 375 & 25.521 & 12 & 0.0023 \\ 90 & 360 & 25.767 & 975 & 25.717 & 375 & 25.520 & 13 & 0.0090 \\ 91 & 360 & 25.767 & 975 & 25.717 & 375 & 25.520 & 5 & 0.039 \\ 92 & 360 & 25.768 & 975 & 25.717 & 375 & 25.521 & 8 & 0.025 \\ 93 & 360 & 25.768 & 975 & 25.717 & 375 & 25.521 & 9 & 0.0273 \\ 94 & 360 & 25.768 & 975 & 25.717 & 375 & 25.521 & 9 & 0.03 \\ 95 & 360 & 25.768 & 975 & 25.717 & 375 & 25.521 & 8 & 0.0145 \\ 96 & 360 & 25.768 & 975 & 25.717 & 375 & 25.521 & 20 & 0.0157 \\ 97 & 360 & 25.768 & 975 & 25.717 & 375 & 25.521 & 8 & 0.0054 \\ 98 & 360 & 25.768 & 975 & 25.717 & 375 & 25.521 & 30 & 0.0054 \\ 99 & 360 & 25.767 & 975 & 25.717 & 375 & 25.520 & 14 & 0.0128 \\ \hline \multicolumn{9}{|c|}{M51} \\% & & & & & \\ \hline 1-6 & 680$\times$4 & 25.888 & 340$\times$4 & 25.715 & 340$\times$4 & 25.471 & 299 & 0.0482 \\ \hline \multicolumn{9}{|c|}{NGC 628} \\% & & & & & \\ \hline 21 & 1200 & 25.789 & 1000 & 25.732 & 900 & 25.528 & 9 & 0.0445 \\ 22 & 800 & 25.788 & 360 & 25.731 & 720 & 25.528 & 15 & 0.047 \\ 23 & 1358 & 25.789 & 858 & 25.732 & 922 & 25.528 & 15 & 0.034 \\ \hline \end{tabular} \label{tabla:apuntados} \begin{tablenotes} $^\dagger$Table~1 of \citet{Mayra:2010} contains observational log for 29 pointing in M81, the fifth galaxy of our sample. \end{tablenotes} \end{small} \end{center} \end{table} \begin{table} \setlength\tabcolsep{2.5pt} \begin{center} \begin{small} \caption{Log of HST/WFC3 $F336W$-band observations of our sample galaxies.} \begin{tabular}{l c c c c c c c c c c c c c c c c c c c c c c c c} \hline ID & $T_{\text{exp}}$ & $c0$ & $N_{\rm stars}$ & RMS & Proposal \\ & (s) & & &(\,arcsec)& ID \\ (1) & (2) & (3) & (4) & (5) & (6) \\ \hline \hline \multicolumn{6}{|c|}{M101} \\ \hline 64 & 2361 & 23.546 & - & - & 13364 \\ 79 & 2382 & 23.546 & - & - & 13364 \\ 94 & 2382 & 23.546 & - & - & 13364 \\ 95 & 2382 & 23.546 & - & - & 13364 \\ \hline \multicolumn{6}{|c|}{NGC 4258} \\ \hline 0d & 1062 & 23.546 & 33 & 0.0154 &13364 \\ 74 & 1062 & 23.546 & 15 & 0.0109 &13364 \\ \hline \multicolumn{6}{|c|}{M51} \\ \hline 01 & 4360 & 23.546 & 163 & 0.0352 &13340 \\ 0g & 2376 & 23.546 & 55 & 0.0191 &13364 \\ 0i & 2361 & 23.546 & 42 & 0.0317 &13364 \\ 76 & 2376 & 23.546 & 64 & 0.0281 &13364 \\ 31 & 780 & 23.546 & 31 & 0.0350 &14149 \\ \hline \multicolumn{6}{|c|}{NGC 628} \\ \hline 19 & 2361 & 23.546 & 15 & 0.0031 & 13364 \\ 20 & 1119 & 23.546 & 10 & 0.0321 & 13364 \\ \hline \end{tabular} \label{tabla:apuntados_f336w} \end{small} \end{center} \end{table} \section{Source detection and cluster selection} We used images in $F814W$ band for detecting sources using SExtarctor. The critical detection parameters used are: {\sc detect\_minarea}=5 pixel, {\sc detect\_thresh}=1.4, {\sc back\_size}=32 pixel and {\sc back\_filtersize}=3 pixel, where each pixel corresponds to 0.05\,arcsec. Using these criteria, typically we obtained several tens of thousands sources in each frame. Elaborate filtering criteria need to be implemented to select GCs from this catalogue. As discussed in the introduction, making a catalogue of GCs is more challenging in spiral galaxies as compared to elliptical galaxies. This is because, unlike elliptical galaxies, spiral galaxies show a lot of structures at the scale comparable to the size of GCs. These structures lead to a lot of spurious sources in the SExtarctor catalogue. Filtering based on structural parameters \citep[e.g.][]{Mayya:2008}, colour \citep[e.g.][]{Fedotov:2011}, concentration index \citep[e.g.][]{Whitmore:2014}, colour-colour diagrams \citep[e.g.][]{Munoz:2014, Lomeli:2017} or a combination of these, are the most commonly used methods. In this paper, we used the cluster selection method used in \citet{Mayya:2008} and \citet{Mayra:2010}, which consists of using SExtractor-derived structural parameters ({\sc fwhm, area, ellipticity}) to define a cluster sample, and photometric parameters ({\sc colour}) to separate young clusters from GCs. The method is described in detail in Sections \ref{seccion:seleccion} and \ref{seccion:sample}, below. \subsection{Astrometric correction of HST images} Before running SExtratctor it was necessary to astrometrize all HLA images. We performed this with the help of GAIA stars using Gaia Data Release 2 (Gaia DR2; \citealt{GAIA:2016}; \citealt{GAIADR2:2018}). We used the IRAF task {\it ccmap} with a second order polynomial in coordinates to achieve this. Minimum of 10 stars were used in each pointing (5 stars in one pointing of NGC 4258), resulting in mean rms astrometric accuracies of $\sim$0.095\,arcsec\ (M101), $\sim$0.014\,arcsec\ (NGC\ 4258), $\sim$0.048\,arcsec\ (M51), and $\sim$0.042\,arcsec\ (NGC\ 628). We took into account these rms errors to identify and eliminate duplicate sources in the overlap zones between two adjacent frames. In Figure~\ref{fig:gaia_correction}, we zoom in on an image section in M101 to illustrate a typical field before and after astrometric correction. The left image shows the HST coordinate system for this field, whereas the image on the right shows the corrected coordinate system. The circles show the coordinates of GAIA (Gaia DR2) stars in this field of view. \begin{figure} \includegraphics[height=3cm,width=\columnwidth]{correccion_coordenadas_m101_1arcsec_10_blanco_v2.png} \caption{Illustration of astrometry on the HST image using a section of M101. {\it Left:} astrometric coordinates on the downloaded image from HLA. {\it Right:} image after applying our astrometric corrections based on the GAIA DR2 coordinates of the field stars. Three field stars in the displayed FOV are identified with blue circles of 1\,arcsec radius. North is up and east to the left in these images. } \label{fig:gaia_correction} \end{figure} \begin{figure} \includegraphics[width=0.95\columnwidth]{fwhm_area_pn_v3_simulations_v2.png} \caption{ {\it Left:} Selected GCs (red dots) compared to all SExtractor sources (black dots) in {\sc area} vs {\sc fwhm} plane for our 5 sample galaxies. GCs have $(B-I)_{0}$>1.5~mag, 2.4$<${\sc fwhm}/pix$<$10 and are above the parabola (blue line). Clusters bluer than this limit are SSCs which are identified by blue dots. Black dots above the parabola are extended sources with ellipticities$>$0.3, and hence do not satisfy all cluster selection criteria. {\it Right:} {\sc area} vs {\sc fwhm} for simulated star clusters. The {\sc fwhm} of mock clusters are fixed at 2.0 (black), 2.4 (cyan), 3.0 (blue), 4.0 (green), 5.0 (magenta), 6.0 (yellow), 7.0 (orange) and 8.0 (red) pixels. For each fixed {\sc fwhm}, 100 mock clusters between 19-24 magnitudes are generated, which are shown by symbols of different sizes (successively smaller sizes for fainter sources; see the bottom-most right panel for a guide on the symbol size). Most of the clusters with mag~$>23$ lie below the parabola defining the minimum {\sc area}-{\sc fwhm} relation, and hence are rejected by our selection criteria. } \label{fig:area_fwhm} \end{figure} \begin{figure} \begin{center} \includegraphics[width=0.75\columnwidth]{fwhm_galaxias_m101_3_nueva_foto_new.png} \includegraphics[width=0.75\columnwidth]{ci_vs_fwhm_m101_nueva_foto_new.png} \caption{ (Top) Distribution of {\sc fwhm} for the candidate GCs in one of our galaxies (M101). (Bottom) Comparison of the two commonly used discriminators between clusters and stars, CI vs {\sc fwhm}. Data are consistent with a linear fit (solid line whose equation is given in the top left corner) above the dividing line between clusters and stars (horizontal dashed line at CI=1.15). Data correspond to M101, which has 45 GCs below the defining line (see text for details). } \label{fig:ci_vs_fwhm} \end{center} \end{figure} \subsection{Selection criteria for defining a cluster sample} \label{seccion:seleccion} In this work, we aim to obtain a sample of GCs with properties similar to those in the Milky Way, which are marginally resolved on the HST/ACS images at the distances of sample galaxies. We considered all objects with {\sc fwhm}$>$2.4~pixel as GC candidates. This cut-off corresponds to 2.1~pc and 5.7~pc, in the nearest (M81) and farthest (NGC~628) galaxies of the sample. Thus, farther a galaxy is, lesser would be the number of compact objects we would detect. GCs do not show a mass-radius (or equivalently luminosity-radius) relationship \citep{Gieles:2010} and hence this bias is not expected to affect the LF of GCs. GCs are roundish objects, and hence their {\sc ellipticity} parameter is expected to be close to zero. SExtractor-measured {\sc ellipticity} even for roundish objects could be as high as 0.3, as it is measured at the isophote corresponding to the detection threshold on the background subtracted image. Another parameter that SExtractor calculates is {\sc area}, with is the number of pixels enclosed by the isophote where {\sc ellipticity} is measured. Both the {\sc ellipticity} and {\sc area} depend on the threshold used for the detection, and hence a cluster of same magnitude and {\sc fwhm} can have different values of {\sc ellipticity} and {\sc area}, depending on the underlying background. We have carried out Monte Carlo simulations to understand the behaviour of these parameters for clusters of different {\sc fwhm} and magnitudes, appropriate to the background and crowding encountered in each galaxy in the $F814W$ band. In Section \ref{seccion:completes}, we describe in detail these simulations. In Figure~\ref{fig:area_fwhm} (right), we show the simulated clusters in {\sc area} vs {\sc fwhm} diagram for each of our sample galaxies. Simulations were carried out for a range of magnitudes between 19 and 24 magnitudes, for fixed values of {\sc fwhm}. As expected, brighter clusters have larger {\sc area}s at a given {\sc fwhm}, and the {\sc area} increases quadratically with {\sc fwhm} for a cluster of given magnitude. We show the dependence of {\sc area} with {\sc fwhm} for objects of 23~mag by the blue solid curve, which is defined by the same equation, ${ \text{AREA}=52.5-1.0\ \text{FWHM} + 0.50\ \text{FWHM}^{2}}$, for all our sample galaxies. On the left panel, we show all the detected sources in {\sc fwhm} vs {\sc area} diagram for our five sample galaxies. The parabola defined by the simulations is shown, which separates the bonafide cluster candidates (that are above the parabola) from contaminating sources (image blemishes, stellar asterisms, image borders etc.), which dominate the number of detected sources at every {\sc fwhm}. A hard cut in magnitude or {\sc area} can also eliminate the contaminating objects, but the use of parabola is the most effective way to eliminate these contaminating sources, without missing many genuine clusters. GCs at the distance of sample galaxies are expected to have {\sc fwhm} close to the observational lower limit of 2.4~pixels. In the top panel of Figure~\ref{fig:ci_vs_fwhm}, we show the observed distribution of {\sc fwhm} for our final GC sample for one of our sample galaxies (M101), which indeed peaks at the first bin. However, we include objects up to {\sc fwhm}=$10$~pixels to account for possible errors in the measurement of {\sc fwhm} at detection limits. Simulations suggest that even the brightest clusters ($F814W=19$) do not occupy an {\sc area}$>$500~pixels as long as the {\sc fwhm}$\sim$5~pixels, and hence we eliminated sources with {\sc area}$>$500~pixel. The HLA catalogues include a parameter known as concentration index (CI), defined as the difference between magnitudes measured in 1 and 3 pixel radius apertures. Some studies have made use of this parameter to discriminate between point and extended sources (e.g., \citealt{Whitmore:2014}, \citealt{Simanton:2015}) CI $<1.15$ for stars. In our study, we have used the {\sc fwhm} $=2.4$~pixel (0.12\,arcsec), a direct discriminator between unresolved (stars) and resolved (extended) sources. In the bottom panel of Figure \ref{fig:ci_vs_fwhm}, we show CI against the {\sc fwhm} for all our clusters for M101. As expected, the two parameters are correlated. The minimum CI (1.07) for our sample clusters is slightly less than 1.15, the value adopted in other studies. Forty-five ($\sim$4\%) of our sources wouldn't have been classified as stellar cluster if we had adopted the CI criterion. A visual inspection of these borderline objects suggests they are likely to be clusters, rather than stars. We identify these borderline cases (1.07$<$CI$<$1.15) by red dots surrounded by black circles in Figure \ref{fig:dcm}. In NGC 4258, these include two of the brightest GCs. \subsection{Aperture photometry} \label{seccion:aperture_correction} \subsubsection{Magnitudes, colours and aperture correction} SExtractor was also used for obtaining photometry in the three bands for all the detected sources. The photometry was carried out in 10 apertures with radii between 1 and 15 pixel (0.05\,arcsec\ to 0.75\,arcsec), using the zeropoints ($c0$) tabulated in Table \ref{tabla:apuntados} for each frame. Unlike stars, aperture correction for clusters depend on the cluster size, which is parameterized by the {\sc fwhm} in SExtractor. The aperture correction is defined as the difference between magnitude at 3 pixel (0.15\,arcsec) radius and the magnitude at an infinite aperture ( $\Delta F814W=m_{\rm F814W}$(3 pix)$-m_{\rm F814W}$(tot)). Even the most extended clusters (objects with Gaussian {\sc fwhm}=9 pixel) contain more than 98\% of their total flux within an aperture of 15 pixel radius, because of which we have used the magnitude in an aperture of 15~pixel radius as $m_{\rm F814W}$(tot). \begin{figure} \includegraphics[width=0.90\columnwidth]{galaxias_correccion_aper_f814_mag_fwhm_otro_acomodo_m101.png} \caption{ Apertures corrections vs FWHM for observed (open circles) and simulated (coloured points) star clusters in M101. The line is the linear fit to the simulated points.} \label{fig:nueva_correccion} \end{figure} We used the results of our experiments with simulated clusters, described later in Section~\ref{seccion:completes}, to obtain the correction as a function of measured {\sc fwhm} in each galaxy. The results are shown in Figure~\ref{fig:nueva_correccion} for M101. A group of horizontally distributed points corresponds to the same input {\sc fwhm}. The measured {\sc fwhm} for fainter clusters tends to be systematically larger than the input {\sc fwhm}, which is the reason for the horizontal spread. The aperture corrections (open circles) obtained for 35 isolated clusters with good photometry (error $<0.005$~mag in 9~pixel) is also shown in the Figure. Both the simulated and observed corrections smoothly increase with the {\sc fwhm}. For the simulated data, we obtained mean values of measured {\sc fwhm} and correction for each input {\sc fwhm} and fitted these mean values by a straight line which is shown by the solid line. The fitted results (the slope $m$, and the abscissa, $b$) for all the sample galaxies are given in Table~\ref{tabla:fit_correction}. We applied these corrections to the $F814W$ aperture magnitudes of 3~pixel radius of all cluster candidates to obtain their total magnitudes. Colours ($F435W-F814W$, $F435W-F555W$ and $F555W-F814W$), however are obtained by subtracting magnitudes in the corresponding filters at 3~pixel radius aperture. This procedure ensures that errors on colours are smaller than the aperture corrected magnitudes. The errors on colours were calculated by quadratically summing the magnitude errors in the two bands forming a colour. \begin{table} \begin{center} \caption{Aperture correction coefficients and typical photometric errors in $(F435W-F555W)_{0}$ colour for the sample galaxies.} \begin{tabular}{l r r c r r r r} \hline Galaxia & $m$ & $b$ & $\sigma_{BV}$ \\ (1) & (2) & (3) & (4) \\ \hline \hline M81 & 0.193$\pm$0.004 & $-$0.277$\pm$0.026 & 0.10 \\ M101 & 0.215$\pm$0.004 & $-$0.330$\pm$0.025 & 0.21 \\ NGC~4258 & 0.193$\pm$0.007 & $-$0.279$\pm$0.045 & 0.10 \\ M51 & 0.218$\pm$0.004 & $-$0.354$\pm$0.024 & 0.16 \\ NGC~628 & 0.225$\pm$0.003 & $-$0.358$\pm$0.022 & 0.19 \\ \hline \end{tabular} \begin{tablenotes} \begin{small} \item {{\it Notes:} $\sigma_{BV}$ is the average standard deviation estimated in the $(F435W-F555W)_{0}$ colour in bins of 0.2~mag in $(F435W-F814W)_{0}$ colour for clusters with $(F435W-F814W)_{0}$>1.5. } \end{small} \end{tablenotes} \label{tabla:fit_correction} \end{center} \end{table} \subsubsection{Photometric error estimation} Formal errors\footnote{\url{https://sextractor.readthedocs.io/en/latest/Photom.html}} on photometric measurements are obtained using the formula: {\small $ MAGERR=1.086\times(FLUXERR/FLUX)$}, where {\small $FLUXERR=\sqrt{\displaystyle\sum_{i\in A} (\sigma_{i}^{2}+\frac{p_{i}}{g_{i}} )} $}, with $A$ representing the set of pixels defining the photometric aperture, $\sigma_{i}$, the standard deviation of noise (in ADU) estimated from the local background, $p_{i}$ the background-subtracted image pixel value, and $g_{i}$ the effective detector gain in e-/ADU at pixel $i$. However, small-scale variations in the disk background gives rise to additional errors while carrying out photometry of non-stellar objects such as GCs, that are usually larger than the formal errors. We use the colour-colour diagram $(F435W-F555W)_{0}$ vs $(F435W-F814W)_{0}$ to estimate the real errors on our colours. In Figure \ref{fig:error_estimated}, we illustrate the method adopted for this. In this plot, we show the colours for star clusters in NGC\,4258, with the SSPs with Z=0.001 and 0.019 metallicities from \citet{Bruzual:2003}. The reddening vector for $A_V$=4~mag is also shown. The reddening vector and the evolutionary trajectory are parallel in this colour-colour diagram, implying the spread in the $(F435W-F555W)_{0}$ colour for a fixed $(F435W-F814W)_{0}$ colour (and vice versa) is entirely due to observational errors. We calculated the dispersions in colour for each axis for fixed bins of 0.2~mag width in the other axis. In the figure, we show these dispersions by crosses places at every 0.4~mag. There is a tendency for slightly higher error for the reddest colours. We take into account this dispersion in each colour as an additional source of error while comparing observational colours with model colours. \begin{figure} \includegraphics[width=0.9\columnwidth]{NGC4258_example_monte_2_itera_28agosto2021.png} \caption{ Colour-colour diagram showing all SExtractor-detected clusters for one of our sample galaxies (NGC~4258). The SSP evolution between 0 to 12~Gyr at two metallicities and the reddening vector for $A_V$=4~mag, with arrow heads placed at 1~mag intervals, are shown. Both the evolution and the reddening move the points along the same direction, and hence the spread in either axis around a mean local value (the crosses) is entirely due to observational errors in colours. } \label{fig:error_estimated} \end{figure} \begin{figure*} \includegraphics[width=16cm]{color_all_sample_0_2_9_new.png} \caption{ {Colour histogram of all (SSC+GC) cluster candidates. The black line shows the colour distribution over the entire range of magnitudes, whereas the red histogram shows the distribution for bright ($M_{I}\leq-$9) clusters. The latter histogram values are multiplied by a factor indicated in each panel. The vertical line at $(F435W-F814)_{0}=1.5$ separates SSCs from GCs.} } \label{fig:color_ssc} \end{figure*} \begin{figure*} % \includegraphics[width=18cm]{dcm_F814_v1_3abril2021_new.png} \caption{$M_{F814W_{0}}$ vs $(F435W-F814W)_{0}$ CMD of all cluster candidates in our sample of galaxies. Candidates having $(F435W-F814W)_{0}>$1.5~mag are GC candidates (red dots), and bluer objects are young disk cluster candidates (blue dots). The evolutionary locus of the SSPs from \citet{Bruzual:2003} for two metallicities (Z=$0.001$, black solid line and Z=$0.008$, black dashed line), of mass=$1\times10^{6}$~\mso\ and Kroupa IMF, are shown. Locations corresponding to selected ages (0.1, 0.5, 1, 3, 6 and 12~Gyr) are marked (cyan and magenta triangles in each SSP). The chosen colour cut separates clusters older than 3~Gyr from the younger ones for unreddened SSPs. The reddening vectors with $A_{V}=1$~mag are shown for 3 cluster masses for an SSP of 12~Gyr age and Z=0.001, typical values expected for GCs. The majority of the GC candidates are in the zone occupied by clusters of mass 1$\times10^{5}$ to 5$\times10^{6}$~\mso\ and $A_V$ between 0 and 1~mag. Encircled red dots correspond to compact GC candidates ($1.07<$CI$<1.15$; see section~\ref{seccion:seleccion} for details) in our sample. } \label{fig:dcm} \end{figure*} \subsection{The sample of GCs} \label{seccion:sample} We define GCs as old (age$>$10~Gyr) metal-poor ($Z\lesssim0.001$) clusters, having properties similar to that for the sample of Galactic GCs. However, unlike the Galactic GCs, extragalactic GCs cannot be selected by their visual appearance even on the HST images. Our cluster sample contains GCs as well as relatively young clusters, such as SSCs. In Table~\ref{tabla:fuentes}, we list the source detection statistics in each galaxy. The second column contains all SExtractor-defined sources, with the column~3 containing the number of cluster sources. Cluster samples in spiral galaxies contain more SSCs than GCs, and hence quantitative criteria are required to discriminate between GCs and SSCs. Cluster colour is the most useful discriminator for achieving this. For example, metal-poor SSPs (Z$\leq$0.001) predict $B-I\geq$1.5~mag for populations older than $\sim$3~Gyr \citep{Bruzual:2003}. \begin{table} \begin{center} \setlength\tabcolsep{1.0pt} \caption{Source detection and selection statistics.} \begin{tabular}{l r r c r r} \hline Galaxy & All & $N_{\rm SSC+GC}$ & N$_{\rm GC}$ & $N_{\rm GC}^U/N_{\rm GC}$ & $N_{\rm cont}/N_{\rm GC}$ \\ (1) & (2) & (3) & (4) & (5) & (6) \\ \hline \hline M81 & 565438 & 433 & 158 & 0.65 & 0.20 \\ M101 & 1215533 & 3091 & 1123 & 0.14 & 0.32 \\ NGC4258 & 1360607 & 626 & 226 & 0.35 & 0.35 \\ M51 & 452747 & 1196 & 293 & 0.52 & 0.25 \\ NGC628 & 224108 & 608 & 173 & 0.41 & 0.14 \\ \hline \end{tabular} \label{tabla:fuentes} \begin{tablenotes} { {\it Notes:} (1) Galaxy. (2) All sources (stellar+non-stellar+spurious) detected by SExtractor in all the pointings over the target galaxy. (3) Those sources satisfying the criteria explained in Section~3.2 to be identified as a cluster. (4) Subset of red ($B-I>$1.5~mag) sources in column~3. (5) Fraction of total number CGs with photometry in an ultraviolet filter. (6) Fraction of contaminants (reddened SSCs) in our GC sample.} \end{tablenotes} \end{center} \end{table} \begin{table*} \setlength\tabcolsep{3.6pt} \begin{scriptsize} \centering \caption{Observational properties of the brightest three GCs in each sample galaxy. } \label{tabla:m101_muestra} \begin{tabular}{l c c c c c r c c r c c c c c c} \hline ID & RA & DEC & $I$ & $(B-I)_{0}$ & $(B-V)_{0}$ & $(U-B)_{0}$ & FWHM &AREA & CI & M$_{F814W}$ & r$_{gc}$ (kpc) & FLAG \\ (1) & (2) & (3) & (4) & (5) & (6) & (7) &(8) &(9)& (10) & (11) & (12) & (13) \\ \hline \hline M81-GC1 & 148.84125& 69.110425 & 16.13$\pm$ 0.03 & 2.06$\pm$ 0.10 & 1.10$\pm$ 0.10& 1.63$\pm$0.10 & 3.62 & - & - & $-$11.66 & 3.03 & 02 \\ M81-GC2 & 148.94123& 69.050097 & 16.75$\pm$ 0.03 & 2.24$\pm$ 0.10 & 1.27$\pm$ 0.10& 2.05$\pm$0.10 & 3.45 & - & - & $-$11.03 & 1.54 & 03 \\ M81-GC3 & 149.11440& 69.019380 & 16.95$\pm$ 0.03 & 1.78$\pm$ 0.10 & 1.00$\pm$ 0.10& 1.43$\pm$0.10& 5.82 & - & - & $-$10.84 & 5.87 & 02 \\ \hline M101-GC1 & 210.824946& 54.318723 & 17.63$\pm$ 0.02 & 2.51$\pm$ 0.00 & 1.20$\pm$ 0.17 & 1.31$\pm$ 0.41 & 3.07 & 449 & 1.30 & $-$11.57 & 4.00 & 03 \\ M101-GC2 & 210.884651& 54.414166 & 18.57$\pm$ 0.02 & 2.74$\pm$ 0.00 & 1.14$\pm$ 0.17 & -- & 3.38 & 394 & 1.50 & $-$10.63 & 9.82 & 00 \\ M101-GC3 & 210.884508& 54.369237 & 19.10$\pm$ 0.02 & 2.48$\pm$ 0.00 & 1.46$\pm$ 0.17 & -- & 2.92 & 301 & 1.39 & $-$10.10 & 6.31 & 00 \\ \hline NGC4258-GC1 & 184.729270& 47.264868 & 17.83$\pm$0.00 & 1.63$\pm$0.00 & 0.79$\pm$0.10 & -- & 2.69 & 311 & 1.16 & -11.57 & 5.25 & 00 \\ NGC4258-GC2 & 184.865700& 47.210389 & 17.89$\pm$0.00 & 3.37$\pm$0.01 & 1.13$\pm$0.10 & -- & 2.79 & 165 & 1.18 & -11.50 & 16.78 & 00 \\ NGC4258-GC3 & 184.745970& 47.301067 & 17.97$\pm$0.00 & 2.15$\pm$0.01 & 0.99$\pm$0.10 & 0.43$\pm$0.05 & 4.03 & 440 & 1.65 & -11.42 & 0.69 & 02 \\ \hline M51-GC1 & 202.459584& 47.174710 & 18.90$\pm$ 0.03 & 2.05$\pm$ 0.00 & 1.07$\pm$ 0.10 & $-$0.06$\pm$ 0.17 & 3.10 & 462 & 1.44 & $-$10.76 & 3.23 & 02 \\ M51-GC2 & 202.507117& 47.241845 & 19.18$\pm$ 0.03 & 3.50$\pm$ 0.00 & 1.52$\pm$ 0.10 & 1.17$\pm$ 0.17 & 2.77 & 271 & 1.35 & $-$10.48 & 7.96 & 03 \\ M51-GC3 & 202.469420& 47.253906 & 19.31$\pm$ 0.03 & 1.75$\pm$ 0.00 & 1.25$\pm$ 0.10 & -- & 2.47 & 281 & 1.24 & $-$10.35 & 8.80 & 00 \\ \hline NCG628-GC1 & 24.221429& 15.788914 & 18.28$\pm$ 0.03 & 2.51$\pm$ 0.00 & 1.08$\pm$ 0.16 & 1.82$\pm$ 0.07 & 3.33 & 471 & 1.56 & $-$11.66 & 7.84 & 03 \\ NCG628-GC2 & 24.171023& 15.782500 & 19.13$\pm$ 0.03 & 1.90$\pm$ 0.00 & 0.68$\pm$ 0.16 & 0.28$\pm$ 0.09 & 2.75 & 243 & 1.37 & $-$10.81 & 0.52 & 02 \\ NCG628-GC3 & 24.212973& 15.734987 & 19.71$\pm$ 0.03 & 3.15$\pm$ 0.00 & 1.25$\pm$ 0.16 & -- & 2.62 & 183 & 1.16 & $-$10.23 & 10.48 & 00 \\ \hline \end{tabular} \begin{tablenotes} \begin{small} \item {\it Notes:} (1) Assigned name, which follows the convention of $GAL$-GC$n$, where $GAL$ stands for galaxy name and $n$ is 1 for the brightest object in the $F814W$ filter, and increases sequentially as the magnitude increases. (2,3) Right ascension, Declination, coordinates in J2000. (4) Magnitude in $F814W$-band and magnitude error from SExtractor and aperture correction, added in quadrature, (5) $(F435W-F814W)_{0}$ colour, the error is the quadrature sum of the error in each band from SExtractor. (6) $(F435W-F555W)_{0}$ colour, error is quadrature sum as in column~5. In the case of M81 the colour is $(F435W-F606W)_{0}$. (7) $(F336W-F435W)_{0}$ colour, the error is the quadrature sum of the error in each band. In the case of M81 the colour is. $(u-g)_{0}$. (8) FWHM in pixel units from SExtractor. (9) AREA in pixels from SExtractor. (10) Concentration index, defined as the difference between magnitudes measured in 1 and 3 pixel radius apertures. (11) Absolute magnitude in $F814W$-band. (12) Galactocentric distance of the GC in kiloparsec. (13) FLAG classification: 00 clusters without $U$-band photometry; 01 determined as a reddened young cluster from $U$-band photometry; 02 - determined as bonafide GC from $U$-band photometry; and 03 - error in U-B is likely to be larger than the indicated formal error. \end{small} \end{tablenotes} \end{scriptsize} \end{table*} In Figure~\ref{fig:color_ssc}, we plot the distribution of $(F435W-F814W)_{0}$ colours for all clusters (black histogram) and for clusters brighter than $M_{F814W}=-$9~mag (red histogram) in each galaxy. The latter is multiplied by a factor which is indicated in the figure annotation. For the bright cluster sample, four of the five galaxies studied here show a bimodality in the distribution, the exception being M101. The colour that separates the two distributions is nearly the same in all these galaxies, and corresponds to the $(F435W-F814W)_{0}$=1.5~mag bin. The full cluster sample also shows a minimum in the distribution close to this colour in four of the galaxies. In M101, although the evidence for bimodality is not strong for the bright cluster sample, the total sample indicates bimodality with the saddle point again corresponding to the $(F435W-F814W)_{0}$=1.5~mag. The blue and red distributions correspond to the SSCs, and GCs, respectively. Based on this, we use $(F435W-F814W)_{0}$=1.5~mag to separate GCs and SSCs. Column~4 of Table~\ref{tabla:fuentes} lists the number of clusters classified as GCs using this colour criterion. Coordinates and photometry for each of the selected GCs are given in Table \ref{tabla:m101_muestra}. The Table in the body of the text contains data only for three brightest objects in each galaxy. The entire Table is available in electronic version. The red tail of the reddened SSC colours most likely extends beyond the colour cut of $(F435W-F814W)_{0}$=1.5~mag, and hence colour-selected GC sample in spiral galaxies is expected to have some contamination from the reddened SSCs. The SSC population has a long tail on the red side, which is either due to a spread in reddening, or/and due to a spread in ages of SSCs. In either case, the red tail of SSC distribution has very few clusters beyond $(F435W-F814W)_{0}>$1.5~mag. The estimation of contaminating objects in the GCs samples is discussed in Section \ref{seccion:contaminantes}. In Figure \ref{fig:dcm}, we plot all candidate clusters in a colour-magnitude diagram (CMD) formed using $M_{F814W_{0}}$ vs $(F435W-F814W)_{0}$, where SSCs and GCs are shown by blue and red points, respectively. The evolutionary loci of clusters for Simple Stellar Population (SSP) models from \citet{Bruzual:2003} at typical metallicities of SSCs (Z=0.008$\sim$1/3 solar) and GCs (Z=0.001) are shown. These models correspond to synthetic clusters of mass $=1\times10^{6}$~\mso\ obeying the Kroupa initial mass function (IMF) between masses 0.1 and 100~\mso. If the GCs are as old as 12~Gyr, the range of magnitudes covered by the GCs corresponds to mass range shown by the dashed vertical line, and the range of colours corresponds to reddening equivalent to $A_V$=0 to $\sim$2~mag. \begin{figure*} \includegraphics[width=18cm]{U_B_vs_B_I_texp_v2_prueba_14abril2021_m81_sdss_Bmenor25_new_error.png} \caption{ {The $U$-selected cluster candidates in $(u-g)_0$ vs $(F435W-F814W)_{0}$ diagram for M81 and $(F336W-F435W)_{0}$ vs $(F435W-F814W)_{0}$ diagram for the rest of the sample galaxies. Candidates having $(F435W-F814W)_{0}>$1.5~mag are GC candidates (red dots), and bluer objects are young disk SSC candidates (blue dots). The evolutionary loci of SSPs from \citet{Bruzual:2003} for different metallicities using Kroupa IMF are shown by solid curves of different colours, following the colour notation shown in each panel. The bluest colour that a classical GC can have (Z=0.0004 and age 12~Gyr) is marked by a solid triangle. The reddening vector with $A_{V}=1$~mag is shown. The reddened young SSCs that occupy the GC colours are contaminants, which are identified by red dots surrounded by circles of cyan colour. } } \label{fig:dcc} \end{figure*} \begin{figure*} \includegraphics[width=\columnwidth]{razones_Nbin_Ntot_down_sigma_05_BI_4_v2_disp_0_5_new.png} \includegraphics[width=\columnwidth]{razones_Nbin_Ntot_down_sigma_05_BI_4_v2_disp_mags_0_5_new.png} \caption{ {The fraction of contaminants (reddened young SSCs) in our GC samples as a function of colour (left) and magnitude (right) for our five sample galaxies. The vertical dashed-line in the left figure corresponds to the reddest colours reached by SSPs for unreddened GCs. See text for details. }} \label{fig:cont_frac} \end{figure*} \subsection{Contamination of the GC sample from reddened SSCs} \label{seccion:contaminantes} Figure~\ref{fig:dcm} suggests that the reddened SSC colours overlap with the GC colours. The colour histogram (Figure~\ref{fig:color_ssc}) also suggests that the distribution of the SSC colours (the bluer peak) most likely has a long tail on the redder side, that overlaps with the GC colours. Thus, contamination to some degree from reddened SSCs is unavoidable when selecting GC samples in spiral galaxies using colour-cuts. We use the sub-sample of clusters with $U$-band photometry to estimate the fraction of contaminants in each galaxy. Use of colour-colour diagrams involving ultraviolet and optical filters is known to break the age-reddening degeneracy (e.g., \citealt{Georgiev:2006}; \citealt{Bastian:2011}; \citealt{Fedotov:2011}). In particular, $U-B$ colour separates clearly clusters younger (SSCs) and older (GCs) than $\sim$3~Gyr. Keeping this in mind, we searched the HST archives for images in the WFC3/$F336W$ filter. All our sample galaxies have at least one pointing in this filter (see Table~\ref{tabla:apuntados_f336w}). For M101, the $F336W$ images had good astrometry. For the fields in other galaxies, we carried out the astrometry following the same procedure as described in section 3.1. WFC3/$F336W$ image for M81 is available for only one pointing, as compared to the 29 pointings with the ACS, with only 7 GC candidates (4\%) falling in the FoV of the $F336W$ image. The contamination fraction obtained from such a small coverage of the FoV is not expected to be representative. On the other hand, Sloan Digital Sky Survey\footnote{\url{https://dr12.sdss.org/fields}} (SDSS) image of this galaxy obtained from multiple pointings covers the FoV of all the 29 HST/ACS pointings. The relative nearness of this galaxy allows the detection and photometric analysis of 65\% of clusters that occupy the relatively uncrowded fields. We hence used the SDSS $u-g$ colours for estimating the contamination fraction in M81. In column~5 of Table~\ref{tabla:fuentes}, we present the fraction of GC candidates with $U$-band images, i.e. SDSS-u for M81 and HST/WFC3 $F336W$ for the rest. We performed photometry using the {\it phot} task in {\sc iraf} using the same photometric parameters as for the HST/ACS images. In Figure~\ref{fig:dcc}, we plot all candidate clusters with $F336W$ coverage in $(F336W-F435W)_{0}$ vs $(F435W-F814W)_{0}$ colour-colour diagram. For M81, we show the SDSS $u-g$ colours (in the AB system) in the ordinate. The evolutionary loci of clusters in this diagram for theoretical SSPs from \citet{Bruzual:2003} of different metallicities are shown. The $U-B$ colours of reddened young ($<10$~Myr) clusters are distinctly different from that of clusters older than $\sim$3~Gyr, which allows us to break the age-reddening degeneracy. Thus reddened young SSCs (contaminants) would lie below the SSP locus for age$>$3~Gyr. In other words, for a redder ($F435W-F814W_{0}>1.5$) cluster to be considered a genuine GC, its $U-B$ colour, after taking into account photometric errors, should correspond to a location above the SSP locus in the figure. As illustrated in Figure~\ref{fig:error_estimated}, the real errors in photometry are larger than the formal error bars, which limits the use of the colours for a precise determination of age. Nevertheless, the photometric quality is good enough to separate reddened SSCs from GCs. In the last column of Table~\ref{tabla:fuentes}, we give the fraction of contaminants in our GC samples. The values lie between 14--35\% in the sample galaxies. In Figure~\ref{fig:cont_frac}, we explore whether contaminant fraction in our GC samples depends on the colour and magnitude of the GCs. We carry out this analysis in bins of 0.5~mag in colours and magnitudes. In order to avoid fluctuations caused due to small number statistics in some of the bins, we plot only those values for which the number of contaminants in any bin was more than the Poisson error in that bin, taken as the square root of the total number of GC candidates in that bin. For the rest of the bins, we plot the global values. In general, all galaxies have higher contaminant fraction for $(F435W-F814W)_{0}>$2.2~mag, with as much as 50\% of the GCs of $(F435W-F814W)_{0}=$2.5~mag being contaminants (reddened young SSCs) in M101 and M81. None of the galaxies show any significant dependence of the contaminating fraction with magnitude. We hence use the global values of the contaminant fraction to correct the LF obtained from our entire GC sample in Section~\ref{seccion:lfgc} for all galaxies. \subsection{Comparison of our GC catalogues with those in the literature} In four of our five sample galaxies, there exists a previous catalogue of GCs. We reiterate that none of these catalogues are as complete as our catalogues in terms of spatial and magnitude coverages, as well as in the estimation of contamination fraction from reddened SSCs. We here compare our catalogues, obtained using uniform selection criteria, with the catalogues from other authors, using different selection criteria. {\it M81:} \citet{Nantaisfoto:2010} reported a sample of 233 GC candidates in M81, that had made use of data from HST/ACS and SDSS. They used a FWHM$>$3~ACS pixel (0.15$\,arcsec$) as the main discriminator. We find that 107 of our 154 GCs are present in the catalogue of \citet{Nantaisfoto:2010}. Most of the remaining 49 GCs in our sample have 2.4$<$FWHM$<3$~pixel, which is the main reason for their exclusion in \citet{Nantaisfoto:2010}. Lower number of GCs in our sample as compared to that of \citet{Nantaisfoto:2010} is due to the more stringent filtering that we imposed in the selection of GCs. {\it M101:} Similarly, using data from the HST/ACS, \citet{Simanton:2015} reported a sample of 326 star clusters in M101. The selection was made using the concentration index and a colour cut. Their sample includes extended objects, and hence they used a magnitude cut of M$_{V}\leq-6.5$ to define GCs, resulting in a sample of 98 GC candidates. We find that 48 are present in their sample of GC candidates. Reasons for us missing 50 of their objects are that 25 of these have ELLIPTICITY$>$0.3, 19 do not meet the AREA criterion and the rest do not meet our FWHM criterion. {\it NGC\,4258:} \citet{Lomeli:2017} reported a sample of 39 GCs in NGC\,4258 using near infrared (NIR) data from CFHT (Canada France Hawaii Telescope) over a large FoV ($1^\circ\times1^{\circ}$), but based on seeing-limited ($\sim$0.7\,arcsec) dataset. The selection of the GCs was carried out using the colour-colour diagram $u^{*}i'K_{s}$ ($(i'-K_{s})$ vs $(u^{*}-i')$) \citep{Munoz:2014}. In comparison, our catalogue using HST/ACS images contains 226 GCs over a FoV of $\sim12.3^\prime\times 17.2^\prime$. From a spectroscopic follow-up of the objects, \citet{Rosa:2019} concluded that the selection based on colour-colour diagram has between 10 to 30\% contaminants \citep[e.g.][]{Munoz:2014, Rosa:2019}. Our FoV includes 29 objects of \citet{Lomeli:2017}, of which 23 are in our catalogue. Out of the 6 missing objects in our sample, two are confirmed to be GCs using spectroscopic data by \citet{Rosa:2019}, another two are dwarf galaxies, with the remaining one being a foreground star. Reason for the two of their GCs to be absent in our sample is that they do not satisfy our selection criteria. {\it M\,51:} Star clusters in M51 were catalogued by \citet{Hwang:2008} using HST/ACS images. They used the SExtractor parameters stellarity, FWHM and ellipticity for star cluster selection. They created two subsamples, one with 2.4$<$FWHM$<$20 and the other with 2.4$<$FWHM$<$40~pixel, resulting in a catalogue of 8400 stellar cluster candidates. If we applied their colour discriminator ($(B-V)>$0.5 and $(V-I)>$0.8) in their catalogue we obtained a sub-catalogue of 224 red clusters, 214 of which have FWHM$<$10~ACS ACS pixels. Only 85 of these objects are in our catalogue of 223 GCs. We searched our master SExtractor output catalogue to find out the reasons for we missing 139 of their objects, and found that 85 of these have ELLIPTICITY$>$0.3, 15 do not meet the AREA criterion and the rest do not meet our FWHM criterion. {\it NGC\,628:} The last galaxy of our sample, NGC~628, has also been a target for cluster searches using HST images by \citet{Ryon:2017}. However, they reported only young and intermediate-age clusters, and no GCs. \section{Completeness corrections} \label{seccion:completes} We aim to study GC luminosity functions in our sample galaxies. In order to do that, we need to take into account possible sources of incompleteness in our catalogues. Two principal sources of incompleteness in our study are: i) incompleteness in magnitude and ii) incompleteness in radial coverage even with multiple HST pointings. In this section, we describe the method we have followed to correct for these observational limitations and obtain a final GC luminosity function. \subsection{Monte Carlo cluster simulations} We generated mock clusters using the IRAF/DAOPHOT tasks $addstars$ and $mkobjects$. A cluster is defined by an intensity profile that follows a Gaussian function of a given {\sc fwhm} and a total magnitude, with {\sc fwhm} taking values of 2.0, 2.4, 3.0, 4.0, 5.0, 6.0, 7.0 and 8.0 pixels, and magnitudes varying between 19 and 24 magnitudes at interval of 0.5~mag. For a fixed {\sc fwhm}, 1100 clusters were generated, 100 for each simulated magnitude. Coordinates of these sources were randomly selected and were inserted onto an observed HST image. The faintest object that can be detected in an observation under uniform background conditions defines the detection limit of that observation. In real observations, the background is often non-uniform, and each non-point source has a different size. Further, crowding of objects in an image can lead to non-detection of objects that are brighter than the detection limit. Hence, for each galaxy, we chose HST images corresponding to two FoV, representing zones of (i) low background and low crowding, and (ii) high background and high crowding. The former simulates the conditions typical of clusters in the external parts of galaxies, whereas the latter represents the characteristics of clusters in the bulge and spiral arms. For M81, which has as many as 29 pointings, simulations were carried out on an additional frame containing the bulge and nucleus \citep[R09; see Figure 1 in][for the footprint of M81]{Mayra:2010}. The results of these latter simulations were used exclusively in the analysis of radial density distribution of clusters in the inner part of this galaxy. The same object detection and selection criteria (\S3.2) we had used for real objects were applied on the mock-object added frames. In Figure \ref{fig:completes_fuentes_f814}, we zoom-in on a randomly selected region of M101, before (left) and after (right) inserting mock sources. In the image the positions of the mock sources, which cover a range of magnitudes, are indicated by blue circles. We have also used these simulations to establish criteria to select cluster candidates from all sources catalogued by the SExtractor, and apply {\sc fwhm}-dependent aperture corrections, described in Section~\ref{seccion:aperture_correction}. We used the results of the simulations for low background and low crowding for this purpose. \subsection{Completeness corrections: magnitude} \begin{figure} \includegraphics[width=\columnwidth]{m101_completes_blanco_v2.png} \caption{A randomly selected region of M101 before adding mock sources (left) and after adding them (right); sources have different magnitudes. All blue circular regions have 1\,arcsec radius. North up, east left. } \label{fig:completes_fuentes_f814} \end{figure} For a proper counting of a population, it is necessary to know completeness factor as a function of object magnitude. We used the results of our simulation to determine the completeness factors. This factor is expected to depend on the {\sc fwhm}. In the top panel of Figure~\ref{fig:ci_vs_fwhm}, we plot the distribution of {\sc fwhm}, which peaks at {\sc fwhm}$<$3~pixel. Hence, we calculate the completeness factors for mock clusters of input {\sc fwhm}=3~pixel. The completeness factor is defined as the ratio of the number of recovered objects ($N_{\rm out}$) to the inserted objects ($N_{\rm in}$) at each inserted magnitude. \begin{figure*} \begin{center} \includegraphics[width=16cm]{completitud_f814w_pn_3oct2019_v2.png} \caption{Completeness correction curves in the $F814W$-band for our sample galaxies in low (dotted line passing through circles) and high (dashed line passing through triangles) background regions. The mean of these two curves is shown by the solid line. The identification codes of high and low background frames used in these simulations are shown in parenthesis.} \label{fig:completes_f814} \end{center} \end{figure*} \begin{table} \begin{center} \setlength\tabcolsep{2.0pt} \caption{Magnitude at 50\% completeness in $F814W$-band, for three curves in Figure \ref{fig:completes_f814} } \label{tabla:completes} \begin{tabular}{l c c c c c c c} \hline Galaxy & \multicolumn{2}{|c|}{Low} & \multicolumn{2}{|c|}{High} & \multicolumn{2}{|c|}{Average} & \\ &{$m_{\textrm{50}}$} & {$\alpha$} & {$m_{\textrm{50}}$} & {$\alpha$} & {$m_{\textrm{50}}$}& {$\alpha$} \\ \hline \hline M81 & 22.93 & 3.74$\pm$0.01 & 21.65 & 2.15$\pm$0.04 & 22.32 & 1.08$\pm$0.14 \\ M101 & 22.72 & 3.79$\pm$0.00 & 22.11 & 2.69$\pm$0.16 & 22.44 & 2.05$\pm$0.17 \\ NGC\ 4258& 22.60 & 4.02$\pm$0.01 & 22.26 & 3.02$\pm$0.00 & 22.46 & 2.96$\pm$0.13 \\ M51 & 22.92 & 3.24$\pm$0.01 & 22.45 & 2.19$\pm$0.00 & 22.69 & 2.07$\pm$0.06 \\ NGC\ 628 & 22.85 & 4.01$\pm$0.01 & 22.72 & 3.97$\pm$0.00 & 22.79 & 3.83$\pm$0.01 \\ \hline \end{tabular} \begin{tablenotes} \begin{small} \item {\it Notes:} {$m_{\textrm{50}}$ is the magnitude at 50\% completeness and $\alpha$ is a fitting constant defined in Equation~\ref{equ:prichet}}. \end{small} \end{tablenotes} \end{center} \end{table} In Figure \ref{fig:completes_f814}, we show completeness curves in the $F814W$-band for all of our sample galaxies, for low (circles) and high (triangles) background frames. In order to quantitatively obtain the magnitude at which the sample is 50\% complete, $m_{\textrm{50}}$, we fitted the points with the Pritchet function \citep[e.g.,][]{McLaughlin:1994, Karla:2013, Lomeli:2017} given by: \begin{equation} \large{ f(m) = \frac{1}{2}\left[1 - \frac{\alpha(m-m_{\textrm{50}})}{\sqrt{1+\alpha^{2}(m-m_{\textrm{50}})^{2}}} \right] }, \label{equ:prichet} \end{equation} where $\alpha$ is a fitting constant that determines curve's slope. These fitted curves are shown by dotted and dashed lines, for low and high background frames, respectively. The GCs are distributed homogeneously across galaxies, including regions with a high and low crowding. To make the correction for incompleteness of the luminosity function, we decided to use the values of the mean curve, which is shown by the solid curve. In Table \ref{tabla:completes}, the values for the 50\% completeness for three curves are given for the $F814W$-band. \begin{figure} \includegraphics[width=\columnwidth]{distribucion_densidad_corrected_20agosto2021.png} \caption{Radial distribution of surface number density of GCs from our data (solid circles) are fitted with S\'ersic profile (solid line). Catalogued GCs beyond the spatial coverage of the HST images are shown by the empty circles (M81 and NGC4258, only). Observed number densities in these two galaxies are consistent with the extrapolation of the fitted function. The vertical dashed lines show the best-fit values of $R_{\textrm{e}}$\ before (black solid circles) and after (magenta solid circles) incompleteness correction. } \label{fig:sersic} \end{figure} \subsection{Completeness corrections: radial distribution} While the images obtained from HST observations offer the best spatial resolution, they do not cover the whole extent of galaxies even with the multiple pointings. Thus, outer halo GCs are often missing in catalogues selected from HST images. The following analysis was carried out to correct for the absence of GCs beyond the galaxy's disk. GCs are the most easily noticeable objects in the halos of galaxies. However, their surface density in the inner parts always outnumbers that in the halos \citep[see e.g.][]{Hargis:2014, Kartha:2014}. In fact, the radial surface density distribution can be well described by the S\'ersic function \citep{Sersic:1968} in its classical form: \begin{equation} N(R) = N_{\textrm{e}}\exp\left[-b_{n}\left(\frac{R}{R_{\textrm{e}}}\right)^{(1/n)}-1\right], \label{equ:sersic} \end{equation} \noindent where, $R_{\textrm{e}}$\ is the effective radius enclosing half the population, $n$ is the S\'ersic index that controls the shape of the profile and $b_{n}=1.992n-0.3271$. We show the radial distribution of surface number density in Figure~\ref{fig:sersic}. The radial axis is plotted in units of $R_{\rm 25}$. For two of our sample galaxies (M81: \citealt{Perelmuter:1995}, and NGC4258: \citealt{Lomeli:2017}), GC searches have been carried out using the ground-based data that complement the HST data in the outer parts, which have also been shown (green empty circles). The observed and completeness-corrected values are shown in solid circles of black and magenta colours, respectively, with the fits to these data shown by solid lines of corresponding colours. The numbers inside and outside the $R_{\rm e}$ are corrected by the incompleteness factors corresponding to high and low surface brightness fields, respectively. For M81, the inner most number is corrected by the completeness factor obtained from simulation on the frame that included the bulge and the nucleus. The $R_{\rm e}$ values before and after the incompleteness corrections are shown by dashed vertical lines of black and magenta colours, respectively. The effect of correction is to marginally shift the $R_{\rm e}$ to lower values, which is noticeable only for NGC4258 and M51 in the figure. In Table \ref{tabla:sersic}, we show the values for S\'ersic fit. $N_{{\rm GC},R_{\rm e}}$ and $N_{{\rm GC},R_{\rm e}}^\prime$ are the numbers of GCs inside $R_{\textrm{e}}$\ before and after correction for contaminants. To estimate the total number of GCs (see Section \ref{seccion:numero_total}), we use the number of GCs within $R_{\textrm{e}}$, ($N_{{\rm GC},R_{\rm e}}^\prime$). The number density obtained wide-field ground-based surveys underestimates the number of GCs inside $R_{\rm e}$ by more than an order of magnitude in both the galaxies with such data. In NGC4258, the slope of our fit in the external part agrees with the observed number densities from wide-field survey, with the absolute values marginally below our predictions. On the other hand, number densities obtained from wide-field survey in M81 remain constant over a large radial range, which are likely due to some selection biases in the survey. On the other hand, the wide-field survey suggests an excess of GCs in the external parts of this galaxy as compared to our predicted values. This excess could be due to contamination from foreground stars and unbound intergalactic GCs in the M81 group \citep[see e.g.][]{Jang:2012, Ma:2017}. Two of the most well-studied spiral galaxies, the Milky Way and M31, have $n=1.9$ and $R_{\textrm{e}}=4.41$~kpc and $n=1.6$ and $R_{\textrm{e}}=4.59$~kpc \citep{Battistini:1993}, respectively. In comparison, for elliptical galaxies the calculated values are larger, e.g., NGC 720 (E5): $n=4.16\pm1.21$, $R_{\textrm{e}}=13.7\pm2.2$~kpc; NGC 1023 (S0): $n=3.15\pm2.85$, $R_{\textrm{e}}=3.30\pm0.9$~kpc; NGC 2768 (E): $n=3.09\pm0.68$, $R_{\textrm{e}}=10.6\pm1.8$~kpc \citep{Kartha:2014}. The $n$ and $R_{\textrm{e}}$ for our sample galaxies are in the range of expected values in spiral galaxies. The $n$ values are $<1$ in four of our galaxies, suggesting flatter distribution in the inner parts of our galaxies, as compared to the Milky Way and M31. \begin{table*} \begin{center} \setlength\tabcolsep{9.0pt} \caption{Results of S\'ersic profile fits to the radial distribution of GC surface density.} \begin{tabular}{l r r r r r r r r r r r} \hline Galaxy & \multicolumn{4}{|c|}{Observed} & \multicolumn{6}{|c|}{Completeness-corrected} & \\ \cline{2-5} \cline{8-11} & $n$ & $R_{\textrm{e}}$ & $N_{{\rm GC},R_{\rm e}}$ & $N_{{\rm GC},R_{\rm e}}^\prime$ & & & $n$ & $R_{\textrm{e}}$ & $N_{{\rm GC},R_{\rm e}}$ & $N_{{\rm GC},R_{\rm e}}^\prime$ \\ & & (kpc) & & & & & & (kpc) \\ \cline{2-5} \cline{8-11} M81 & 0.57$\pm$0.07 & 4.29$\pm$0.16 & 93$\pm$11 & 74$\pm$9 & & & 0.66$\pm$0.12 & 4.04$\pm$0.23 & 109$\pm$5 & 87$\pm$4 \\ M101 & 0.33$\pm$0.05 & 7.68$\pm$0.28 & 635$\pm$24 & 432$\pm$16 & & & 0.36$\pm$0.07 & 7.61$\pm$0.32 & 802$\pm$15 & 545$\pm$10 \\ NGC4258 & 1.81$\pm$0.50 & 9.48$\pm$2.02 & 179$\pm$39 & 116$\pm$25 & & & 1.63$\pm$0.30 & 8.21$\pm$0.96 & 197$\pm$27 & 128$\pm$17 \\ M51 & 0.74$\pm$0.15 & 10.07$\pm$1.15& 250$\pm$31 & 188$\pm$23 & & & 0.71$\pm$0.12 & 9.54$\pm$0.78 & 301$\pm$20 & 226$\pm$15 \\ NGC628 & 0.48$\pm$0.08 & 6.08$\pm$0.27 & 113$\pm$7 & 97$\pm$6 & & & 0.48$\pm$0.09 & 5.95$\pm$0.29 & 149$\pm$4 & 128$\pm$3 \\ \hline \end{tabular} \label{tabla:sersic} \begin{tablenotes} \begin{small} \item {{\it Notes:} $R_{\text{e}}$ is the effective radius enclosing half the population, $n$ is the S\'ersic index from Equation \ref{equ:sersic}. $N_{{\rm GC},R_{\rm e}}$ is the total number of GCs inside $R_{\textrm{e}}$, whereas $N_{{\rm GC},R_{\rm e}}^\prime$ is $N_{{\rm GC},R_{\rm e}}$ after taking into account contamination from reddened young SSCs. } \end{small} \end{tablenotes} \end{center} \end{table*} \section{Globular cluster luminosity functions (GCLFs)} \label{seccion:lfgc} Having obtained a sample of GCs in 5 spiral galaxies, we now analyse the properties of the GC systems in these galaxies. All magnitudes and colours have been corrected for the foreground Galactic extinction using the $A_V$ values given in Table~\ref{tabla:muestra}, and the \citet{Cardelli:1989} reddening curve. We start our analysis with the colour distribution. \subsection{Colour distribution} For comparing colours of our GCs with those in the MW, we transformed all our photometry into the Johnson-Cousins photometric system using the transformation equation~\ref{equ:siriani_1} and the corresponding coefficients in Table~\ref{tabla:transformation} in Appendix~\ref{sec:transformation}, which were taken from \citet{Sirianni:2005}. In Figure \ref{fig:distribucion_color}, we show the distributions of $(B-I)_{0}$, $(B-V)_{0}$ and $(V-I)_{0}$ colours of GC systems in our sample galaxies, where the sub-index 0 stands for Galactic reddening-corrected colours, using the $A_V$ values in Table~\ref{tabla:muestra}. For comparison, we also plot the colour histograms of the GCs in the Milky Way using the data from \citet{Harris:1996}. The black and blue histograms correspond to the observed and dereddened colours, respectively. In Table \ref{tabla:coloures}, we list the mean and mode of the distributions of the three colours $(B-I)_{0}$, $(B-V)_{0}$ and $(V-I)_{0}$ for our sample as well as for the MW sample from \citet{Harris:1996}. We use only 97 Galactic GCs which had integrated colours available in \citet{Harris:1996}. For comparison, we list the colour of a SSP of 13~Gyr with Z=0.001, the typical metallicity of old GCs, in the last row. The reddening-corrected colours of MW GCs agree within 0.1~mag with these SSP colours. \begin{figure} \includegraphics[width=\columnwidth]{distribucion_color_sin_BVRI_sin_espacio2_cut1_5_new.png} \caption{Colour distributions of GCs of our galaxies compared to that in the MW (bottom-most panels). The distributions of $(B-I)_0$ colour after correcting for contaminating fractions are shown by magenta histograms. The mean value for each distribution is shown by a vertical dashed line. The colour histograms after dereddening the colours by the reddening reported for each GC for the MW GCs are shown in blue. } \label{fig:distribucion_color} \end{figure} \begin{table} \setlength\tabcolsep{1.0pt} \centering \caption{The mean and mode of the colour distribution of sample galaxies and the MW.} \label{tabla:coloures} \begin{tabular}{l c c c c c c c c} \hline Galaxy & \multicolumn{2}{|c|}{$(B-I)_{0}$} & \multicolumn{2}{|c|}{$(B-V)_{0}$} & \multicolumn{2}{|c|}{$(V-I)_{0}$} & $A_{V}$(int) & $A_{V}$(int) \\ & Mean & Mode & Mean & Mode & Mean & Mode & Mean & Mode \\ (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) & (9) \\ \hline \hline M81 & 2.21 & 1.81 & 1.31 & 1.21 & 0.90 & 0.77 & 0.86 & 0.32 \\ M101 & 2.49 & 1.68 & 0.96 & 0.65 & 1.54& 0.98 & 1.23 & 0.15 \\ NGC4258 & 2.02 & 1.64 & 0.92 & 0.81 & 1.11& 0.87 & 0.60 & 0.10 \\ M51 & 2.04 & 1.71 & 0.93 & 0.87 & 1.10 & 1.03 & 0.68 & 0.19 \\ NGC628 & 2.11 & 1.58 & 0.72 & 0.63 & 1.39 & 1.00 & 0.73 & 0.01 \\ MW & 2.34 & 1.70 & 1.01 & 0.72 & 1.33 & 1.01 & 1.04 & 0.17 \\ \hline SSP & & 1.57 & & 0.67 & & 0.90 & \\ \hline \end{tabular} \begin{tablenotes} \item {\it Notes:} (1) Galaxy name. (2--7) Mean and statistical mode of the indicated colours. (8--9) Internal visual extinction obtained from mean and mode $(B-I)_0$. \end{tablenotes} \end{table} The mode is systematically bluer than the mean in all the three colours in our sample galaxies as well as in the MW. This difference is due to a noticeable skewness in the colour distributions, with the peak (mode) occurring on the bluest bin in $(B-I)_{0}$ and $(V-I)_{0}$, in all cases except in M81. The skewness is not due to a colour cut we have used to define GCs. In fact the choice of the cut-off colour between SSCs and GCs corresponds to the saddle point in the distribution of colours of all cluster candidates (see Figure~\ref{fig:color_ssc}), with the peak in the GC colours occurring in the first or second bin redward of the saddle point. We analyse the possible role of contaminants in our GC samples to the origin of skewness in colour distributions. For this, we use the fraction of contaminants as a function of colour (see left panel in Figure~\ref{fig:cont_frac}) to correct statistically the $(B-I)_{0}$ colour histograms, which is shown in Figure \ref{fig:distribucion_color} in magenta. The contamination-corrected histograms maintain the blue skewness in the distribution. This suggests that the skewness in colour distribution is an intrinsic property of the GC systems. The mean and mode colours of our GC systems should correspond to SSP colours of metal-poor old clusters, if reddening is negligible. We find that the mode is only marginally redder than the colours of the metal-poor SSPs at old ages, whereas the mean is much redder. The redward shift of the mode from the expected SSP colours and the long red tail of the colour distribution, even for the MW sample, illustrate that the GC colours are often reddened by dust. The typical reddening experienced by GCs in each of our sample galaxies can be determined by comparing the mode of the colour distribution with the colour of the metal-poor old SSPs. We made use of the $(B-I)_0$ colour to obtain the colour excess $A_V({\rm int})=((B-I)_0 - (B-I)_{\rm SSP})/(E_B-E_I)$, where $(B-I)_{\rm SSP}$ is the $(F435W-F814W)_{0}$ colour of the SSP, $E_{B}=1.33$, and $E_{I}=0.60$ are the values of the the \citet{Cardelli:1989} extinction curve at the effective wavelengths of $B$ and $I$-bands. The resulting values of $A_V$(int) using mean and mode are given respectively in columns 8 and 9 of Table~\ref{tabla:coloures}. The $A_V$(int) obtained from the mode for our galaxies range from 0.01 (NGC~628) to 0.32 mag (M81) which is comparable to the 0.17~mag for the MW. The $A_V$(int) values obtained from the mean colours vary between 0.60 (NGC4~258) to 1.23 (M101), which is also comparable to the 1.04~mag for the MW. The difference between the mean and median $A_V$ values is $\sim$0.5--1.0 in our sample galaxies, which is comparable to that for the Milky Way (0.87). Thus, GC systems in spiral galaxies experience relatively large mean extinctions. In fact, this is one of the reasons for the slow progress in establishing the properties of the GC systems in spiral galaxies. Some of the reddening could be due to dust internal to the clusters, whereas the majority is expected due to the dust along the line of sight in the disk of the host galaxy. The colour histogram in M101 shows a second peak at $(B-I)_0\sim$3.5~mag after correction for contaminants, suggesting the presence of a distinct red population. The analysis of LF below also suggests the presence of a population fainter than GCs. As we will see in Section~5.4, this population of faint red clusters corresponds to reddened intermediate-age (1--10~Gyr) SSCs. Under such a scenario, the basic assumption we have made in determining $A_V$, namely the clusters are old ($>10$~Gyr) is not applicable to all clusters in M101 and hence the $A_V$(mean) would be an upper limit for this galaxy. \begin{figure} \includegraphics[width=0.99\columnwidth]{fl_prueba_corte_B_I_1_5_fwhm_200_v2_new.png} \caption{ {Best log-normal fits to the observed $F814W$-band luminosity functions of GCs in our 5 sample galaxies. The data before (red histograms) and after (magenta-filled histograms) correction for possible contamination from reddened young SSCs are shown in the left and right panels, respectively. In each panel, fits were carried out to the completeness-corrected dataset (gray-filled histograms). Poisson error bars ($\sqrt{N}$) are indicated. The vertical dot and dashed lines indicate the magnitude at which the detection is 50\% complete at low and high surface brightness parts of the galaxies, respectively. } For reference, the turnover magnitude for the MW GCs is indicated in each plot by the blue vertical bar. The horizontal axes in the bottom and top contain observed and absolute magnitudes, respectively. } \label{fig:gclf_full} \end{figure} \subsection{Luminosity function} We chose the Galactic extinction-corrected magnitudes in the $F814W$ band to construct the GCLF. For this purpose, we constructed histograms in bins of 0.5~mag over the entire range of detected magnitudes for each galaxy. The resulting histograms are shown in Figure~\ref{fig:gclf_full} with red solid lines. The magnitudes corresponding to 50\% completeness, $m_{50}$, at low and high surface brightness parts of for each galaxy are shown by dotted and dashed vertical lines, respectively. The observed numbers are corrected for incompleteness using the mean function shown in Figure~\ref{fig:completes_f814}. The corrected histograms are shown by gray bars. As expected, the correction factor is negligible at the bright end ($F814W\lesssim21$~mag), and gradually increases at fainter magnitudes. The GCLFs in the five galaxies show very similar form, increasing smoothly up to reaching a peak value, and then again decreasing smoothly. In other words, all our sample galaxies show a turnover, the TO. The TO values lie on the brighter side of $m_{50}$ in all galaxies. The incompleteness-corrected histograms are fitted with a log-normal function given by: \begin{equation}\label{eqn:GCLF} dN/dM= N_{\textrm 0}e^{-( M-M_{\textrm 0})^{2}/2\sigma_{\rm M}^{2}}, \end{equation} where $N_{\textrm 0}$ is a normalization factor, $M$ is the absolute magnitude of the fitted bin, $M_{\textrm 0}$ is the absolute magnitude of TO and $\sigma_M$ is the dispersion. It can be seen that the log-normal functions are good fits to the observed LFs. \begin{table*} \setlength\tabcolsep{4.0pt} \caption{Number of GCs and best-fit values for a log-normal distribution.} \label{tabla:ajsutes_gaussiana} \begin{tabular}{l r r l c c c r r r r r r c c c c c c} \hline Galaxy & \multicolumn{3}{|c|}{$N_{GC}$ } & \multicolumn{3}{|c|}{TO } & $\Delta$TO & $\sigma_{M}$ &$\Delta\sigma$ & $M_{814}^{1^{st}}$ & $M_{814}^{3^{rd}}$ \\ \hline & Obs & $\int$LF& total & $F814W_{0}$ & M$_{F814W_{0}}$ & M$_{V_{0}}$ \\ (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) & (9) & (10) & (11) & (12) \\ \hline M81 & 126 & 128$\pm$13 & 177$\pm$15 & 19.56 $\pm$ 0.12 & $-$8.42 $\pm$ 0.13 & $-$7.52 $\pm$ 0.16 & $-$0.12 & 1.04 $\pm$ 0.17 & $-$0.11 & $-$11.66 & $-$10.84 \\ M101 & 764 & 1325$\pm$60 & 1891$\pm$70 & 22.16$\pm$0.05 & $-$7.14$\pm$0.08 & $-$6.24$\pm$0.13 & 1.16 & 0.89$\pm$0.05 & $-$0.26 & $-$11.57 & $-$10.10 \\ NGC4258 & 147 & 166$\pm$31 & 290$\pm$51 & 21.19$\pm$0.11 & $-$8.26$\pm$0.11 & $-$7.36$\pm$0.15 & 0.04 & 0.97$\pm$0.15 & $-$0.18 & $-$11.57 & $-$11.40 \\ M51 & 220 & 261$\pm$24 & 536$\pm$44 & 21.44 $\pm$ 0.07 & $-$8.34 $\pm$ 0.07 & $-$7.44 $\pm$ 0.12 & $-$0.04 & 0.64 $\pm$ 0.05 & $-$0.51 & $-$10.76 & $-$10.35 \\ NGC628 & 149 & 151$\pm$16 & 259$\pm$18 & 21.75 $\pm$ 0.05 & $-$8.21 $\pm$ 0.06 & $-$7.31 $\pm$ 0.12 & 0.09 & 0.60 $\pm$ 0.07 & $-$0.55 & $-$11.66 & $-$10.23 \\ \hline \end{tabular} \begin{tablenotes} \begin{small} \item {{\it Notes:} (1) Galaxy name. (2) Number of GCs after correcting for contamination from reddened SSCs. (3) Column 2 after correcting for incompleteness in magnitude. (4) Estimated total number of GCs determined using Equation~\ref{ecuacion:total_number}}. (5) Observed TO magnitude in $F814W$-band. (6) TO absolute magnitude in $F814W$-band, corrected for galactic and internal extinction. (7) TO absolute magnitude in $V$-band ($M_{V_{0}}$=$M_{F814W_{0}}$+$(V-I)_{\rm SSP}$; $(V-I)_{\rm SSP}$=0.90). (8) $\Delta$TO= TO(galaxy)-TO(MW) in the $V$-band, where TO(MW)=$-7.4$~mag. (9) $\sigma_{M}$, from the fit. (10) $\Delta\sigma=\sigma_M$(galaxy)$-\sigma$(MW), where $\sigma$(MW)=1.15). (11) $M_{814}^{1^{\rm st}}$, magnitude of the brightest GC. (12) $M_{814}^{3^{\rm rd}}$, magnitude of third brightest GC. \end{small} \end{tablenotes} \end{table*} We obtained the TO magnitude after correcting the LF in each galaxy for a possible contribution from the contaminants. Following the discussions in Section~3.5, we used the magnitude-dependent contaminant fractions for NGC~4258 and constant contaminant fractions from the last column in Table~\ref{tabla:fuentes} for the rest. The resulting plots for each galaxy are shown in the right panels of Figure~\ref{fig:gclf_full} and the results are tabulated in Table~\ref{tabla:ajsutes_gaussiana}. In order to determine the possible errors on the determined TO, we carried out 1000 Monte Carlo simulations, by adding a Gaussian noise to each bin of the histograms. For this purpose, we used the square root of the number in each bin as the $\sigma$ of the Gaussian. The histogram resulting from each experiment is fitted by Equation~\ref{eqn:GCLF}, each time finding TO and $\sigma_{\rm M}$. The rms values of these 1000 simulations are taken as the error on TO and $\sigma_{\rm M}$. In order to investigate the universality of the function, we converted the apparent TO magnitudes to the absolute values using the best-available distances for the sample galaxies (see Table \ref{tabla:muestra}), and corrected these magnitudes for internal extinction using $A_{F814W}$(int)=0.58$A_V$(int), where $A_V$(int) is taken from the last column of Table~\ref{tabla:coloures}. The resulting values are also given in Table \ref{tabla:ajsutes_gaussiana}. All galaxies with the exception of M101 are consistent with ${M_I}_0=-8.21\pm0.06$~mag, with a mean ${M_V}_0=-7.41\pm0.14$~mag. The TO of M101 is 1.16~mag fainter. We will discuss this case separately in next section How does the mean value for the galaxies compare with the values for elliptical galaxies and the MW? TO value for the MW is $M_{\rm V}=-7.40\pm0.10$~mag (from \citealt{Jordan:2007}), which is almost identical to the mean value of ${M_V}_0=-7.41\pm0.14$~mag obtained for four of our galaxies. The individual differences of the TO magnitudes for our sample galaxies from that of the MW are given in column~8 of the Table \ref{tabla:ajsutes_gaussiana}. The differences are well within 1$\sigma$ value in all these four galaxies. Hence, the GCLFs in four of our sample galaxies have the same TO as that in the MW. In comparison, M31 value of ${M_V}_0=-7.60\pm0.15$ obtained by \citet{Secker:1992} and \citet{Reed:1994} is $\sim$0.2~mag brighter than our mean value, which is marginally larger than the 1-$\sigma$ error of our measurements. As pointed out earlier, TO for M101 is clearly different, which could be due to underestimation of distance, or an intrinsically different value of TO. This will be analysed in detail in the next sub-section. Despite the near universality of the TO values, the $\sigma_M$ of the log-normal function varies widely in the sample galaxies. These differences in widths are illustrated in Figure \ref{fig:fl_juntas}, where we plot all the log-normal fits normalized to their peak values. The TO value along with its error for the Milky Way GCs is shown as a vertical band. In this figure we also show the positions of the brightest GC in each of these galaxies, as well as the position of the third brightest GC. It can be easily seen that the dispersion in the brightest and the third brightest clusters in these galaxies is much higher than the dispersion in the TO values, suggesting that the TO values are more universal than the magnitude of the brightest, or the third brightest GC, in galaxies. The brightest GC in our sample of five galaxies belongs to M81, which is discussed in detail in \citet{Mayya:2013}. \begin{figure} \includegraphics[width=0.90\columnwidth]{fl_f814w_juntas.png} \caption{Comparison of the normalized F814W-band GCLFs of all our sample galaxies. Line types and colours used for each galaxy are indicated. The TO magnitude of the MW GCs is marked by the gray band, with its width indicating the error on this value. The dispersion of the TO values in 4 of the galaxies (M101 is the exception) is smaller than the dispersion of their brightest GCs (bottom-most set of vertical lines) or the third brightest GCs (top set of vertical lines). } \label{fig:fl_juntas} \end{figure} \subsection{Distance errors and the universality of the TO} \label{seccion:to_uni} For obtaining the TO, we have used the distances tabulated in Table~\ref{tabla:muestra}. The tabulated distances correspond to the most recent determination of distances using Cepheids for M81 and M101, and the MASER distance for NGC~4258. For M51 and NGC~628, SNII distances were used. \begin{figure*} \includegraphics[height=12cm,width=18cm]{distancias_to_ned_otro_acomodo_new.png} \caption{Dependence of the measured TO (circle) on the distance uncertainties. The measurement error on TO is shown by the width of the vertical gray band. Symbols in each plot are colour-coded depending on the method of distance determination. } \label{fig:distribucion_distancias} \end{figure*} Using only the distances reported after the year 2000 in NED\footnote{\url{https://ned.ipac.caltech.edu/}}, we found 56 independent measurements for M81\footnote{\url{https://ned.ipac.caltech.edu/byname?objname=m81&hconst=67.8&omegam=0.308&omegav=0.692&wmap=4&corr_z=1}}, 79 for M101\footnote{\url{https://ned.ipac.caltech.edu/byname?objname=m101&hconst=67.8&omegam=0.308&omegav=0.692&wmap=4&corr_z=1}}, 77 for NGC~4258\footnote{\url{https://ned.ipac.caltech.edu/byname?objname=ngc4258&hconst=67.8&omegam=0.308&omegav=0.692&wmap=4&corr_z=1}}, 27 for M51\footnote{\url{https://ned.ipac.caltech.edu/byname?objname=m51&hconst=67.8&omegam=0.308&omegav=0.692&wmap=4&corr_z=1}} and 23 for NGC~628\footnote{\url{https://ned.ipac.caltech.edu/byname?objname=ngc628&hconst=67.8&omegam=0.308&omegav=0.692&wmap=4&corr_z=1}}. The methods of distance measurements include those using Cepheids, MASER, tip of the red giant branch (TRGB), SNII-optical, and Tully-Fisher. We recalculated TO values for each of these measured distances, which are shown plotted against the corresponding distances in Figure~\ref{fig:distribucion_distancias}. The value of TO for the best-determined distance (that in Table~\ref{tabla:muestra}) is indicated by a thick circle, which is colour-coded according to the method that was used to obtain the distance. The error on this best measurement is highlighted by the gray band. Most of the distance measurements for the 4 galaxies (M81, NGC4258, M51 and NGC628) agree with the value obtained by our best distance estimate, after taking into consideration the errors on each of them. In M101 where we found TO value fainter by 1.16~mag, some of the Cepheid distances are not consistent with the Cepheid distance (6.95~Mpc) we have used. If we use the farthest distance reported for this galaxy \citep[8.99 Mpc,][]{Macri:2001}, the TO value is still 8$\sigma$ fainter than the universal value we have in other galaxies. Hence, we conclude that the TO value in M101 is intrinsically fainter compared to that in other galaxies of our sample, and investigate the possible physical reasons for this difference. \subsection{TO magnitude in M101 and late-type galaxies} Among the galaxies analysed in this study, M101 stood out from the rest for having a fainter derived TO value, as well as for having a large population of very red clusters ($(F435W-F814W)_{0}>$2.2~mag), including a second peak at $(F435W-F814W)_{0}>$3.5~mag in its colour distribution (Figure~\ref{fig:distribucion_color}). We here discuss whether these differences are related to its late morphological type (Scd). In Figure~\ref{fig:distribucion_TO}, we plot the TO values with respect to that in the MW as a function of the morphological type of the host galaxies. In this plot, we include the MW, M31 and the Large Magellanic Cloud (LMC). We estimated the TO in the LMC using data from \citet{Mackey:2003} for clusters with age $\geq$1~Gyr. TO values in all galaxies with morphological type Sc or earlier are in agreement with the value in the MW within the errors of measurements. The two galaxies later than Sc deviate from this trend. Thus, there is an indication that the different TO value found in M101 is indeed related to its late morphological type. In the following paragraphs, we discuss a possible scenario that naturally explains the fainter TO in late-type galaxies. Classical GCs are among the oldest objects in galaxies, and their formation is related to the formation of halo and bulge \citep{Brodie:2006}. By definition, the prominence of these spherical components in galaxies decreases along the Hubble sequence. For this very reason, most of the searches of GCs were traditionally carried out in elliptical and early-type galaxies. Such studies have found relatively larger population of classical GCs in ellipticals as compared to that in spiral galaxies (e.g., \citealt{Harris:2011}; \citealt{Harris:2013}). On the other hand, M101 has a weak bulge, classified as a pseudobulge by \citet{Kormendy:2010}, and a very poor stellar halo population \citep{Jang:2020}, as expected for its late morphological type. These late-type systems are not expected to contain a large population of classical GCs. However, searches of GCs on HST images, including this study, find as many GCs in late-type galaxies as in early-type spirals. It is likely that not all the inferred GCs in late-type galaxies are classical GCs. We analyse this issue below. Spiral and irregular galaxies are known to contain old SSCs that were formed in their disks and have survived the tidal shocks of their host galaxies. For example, \citet{Rosa:2019} found that some of the objects classified as GCs in NGC~4258, one of the galaxies analysed in our study, belong to its disk and share the same kinematics as the disk HI gas. Formation and growth of galaxies through hierarchical merging, expects formation of such clusters during every epoch of merger involving gas-rich galaxies \citep{Mamikonyan:2017}. The selection filters used for GC searches on HST and ground-based images do not distinguish these old stellar clusters from the classical GCs. Thus generally speaking the sample of objects observationally classified as GCs contains two kinds of objects, classical GCs related to the spherical component of galaxies, and old disk star clusters, formed {\it in-situ} or accreted onto, during galaxy mergers as part of the hierarchical growth of galaxies. It is the former one that is expected to have universal TO. The fraction of old star clusters is expected to increase towards later Hubble types as they are more gas-rich than the early types. Hence, the TO obtained in early-type spirals represents that of the classical GCs, whereas in late-type galaxies it represents the population of old SSCs in the disk. This is found to be true in the LMC, where 50\% of the old cluster population that is used to obtain the TO has ages in the 1--10~Gyr range. \begin{figure} \includegraphics[width=0.90\columnwidth]{to_tipo_hubble2_new.png} \caption{TO$_{\rm V}-$TO$_{\rm MW}$ vs the Hubble Type of host galaxies. The plot includes our 5 sample galaxies, and other spiral (M31) and irregular (LMC) galaxies where such measurements are available. The error in the MW TO is indicated by the width of the gray band. } \label{fig:distribucion_TO} \end{figure} In Section~\ref{seccion:contaminantes}, we have estimated the contamination fraction from reddened SSCs in our sample of GCs in each galaxy, using the photometry in the $U$-band. The technique we have used helps to distinguish reddened SSCs from GCs only for SSCs younger than $\sim$3~Gyr. Thus, our GC samples, in principle, contain all clusters older than $\sim$3~Gyr. The universality of the TO in all our galaxies earlier than Sc, suggests that these early-type spirals did not form significant amount of SSCs after the formation of halo and bulge, or even if they are formed, they did not survive the gravitational shocks. The GC population in M101 has been the subject of study by \citet{Simanton:2015}. They found a total of 326 candidate GCs, with their luminosity function matching very well the LF for the Galactic GCs, but starts increasing rapidly for M$_{V}\geq-$6.5~mag. They identified these relatively fainter clusters as belonging to a second population, which is statistically more extended than the brighter population, the so-called faint fuzzies (e.g., \citealt{Larsen:2000, Brodie:2002, Peng:2006_diffuse, Liu:2016}). They discuss these red extended clusters as old stellar clusters formed in the disk. Only 98 (i.e. 30\%) of their clusters belonged to the brighter population, the classical GCs. Our selection criteria, which selects objects 2.4$<$FWHM$<$10 pixel, naturally rejects extended objects that \citet{Simanton:2015} have found, but contains compact objects fainter than their magnitude cut of M$_{V}\geq-$6.5~mag. The fainter TO we have found suggests that our sample is dominated by a population of red faint compact clusters of ages between $\sim$1--10~Gyr. These properties correspond to relatively low-mass reddened SSCs in the disk of M101. \subsection{Physical parameters that control TO} \label{seccion:to_parametros} The TO magnitude of a GC system is controlled by four physical parameters, namely, the mass function (MF) at birth, age, metallicity and internal extinction. In addition to these, a dynamical process changes the form of the mass function as the clusters evolve under the gravitational potential of their parent galaxies. At ages greater than a few billion years, dynamical evolution is mass-dependent, which leads to selective destruction of low-mass clusters. In general, a cluster of mass $M_{\rm cl}$ loses all its mass over a time-scale, $t_{\rm dis}$, given by, \begin{equation} t_{\rm dis} = t_4\left(\frac{M_{\rm cl}}{10^4 M_\odot}\right)^\gamma, \end{equation} where $t_4$ is the destruction time for a cluster of $10^4 M_\odot$ under a specific gravitational potential, and the power-law index $\gamma$ is found to have a value of 0.6 \citep{Boutloukos:2003}. The $t_4$ is expected to be shorter in strong gravitational field, such as massive early-type galaxies, and longer, in low-mass late-type galaxies. \citet{Fall:2001} found that the net result of the dynamical evolution is to create a MF that is log-normal, like the one found in our study, almost independent of the initial form of the MF. The turnover of the resulting MF is shifted to higher masses, equivalently to brighter magnitudes, in early-type galaxies, as compared to the late-type galaxies. Thus, even if the four physical parameters are the same for all GC systems, dynamical evolution alone can introduce dispersion in the observed TOs in different galaxies. The TO is also shifted to higher masses (brighter magnitudes) at longer ages due to dynamical effects. Using our TO absolute magnitude in the $F814W$ filter, corrected for internal and Galactic extinction ($M_{F814W_0}^{\rm TO}$), we can determine the TO mass of the cluster in our sample of galaxies using an SSP of age and metallicity typical of GCs. \begin{equation} { \log \mathcal{M}} = -0.4\times(M_{F814W_0}^{\rm TO}-M_{F814W}^{\rm SSP}), \end{equation} where $M_{F814W}^{\rm SSP}$ is the $F814W$ magnitude of an SSP at 13~Gyr for a total mass of 1~M$\odot$. The resulting mass values for two of the lowest metallicities (Z=0.0004=1/50 solar and Z=0.001=1/20 solar) are given in Table~\ref{tabla:TO_physical}. The derived masses are 3\% higher for Z=0.0004 as compared to that obtained using Z=0.001. In the four galaxies with almost universal TO, the mass corresponds to $\sim3\times10^5$~M$_\odot$, whereas it is lower by a factor two in M101. The disk clusters of M101 are expected to be younger than the uniform age of 13~Gyr we have used. If they are as young as 8~Gyr, the masses will be further lower by $\sim$30\%. \begin{table} \centering \caption{Physical parameters corresponding to TO.} \label{tabla:TO_physical} \begin{tabular}{lllllll} \hline Galaxy & Z & Age & $\mathcal{M}_{\rm cl}$/M$_{\odot}$ & $\sigma$ \\ & & Gyr & $\log$ & $\log$ \\ \hline \hline M81 & 0.0004 & 13.0 & 5.58 & 0.05 \\ & 0.001 & 13.0 & 5.57 & 0.05 \\ M101 & 0.0004 & 13.0 & 5.07 & 0.03 \\ & 0.001 & 13.0 & 5.06 & 0.03 \\ NGC4258 & 0.0004 & 13.0 & 5.52 & 0.04 \\ & 0.001 & 13.0 & 5.51 & 0.04 \\ M51 & 0.0004 & 13.0 & 5.55 & 0.02 \\ & 0.001 & 13.0 & 5.54 & 0.02 \\ NGC628 & 0.0004 & 13.0 & 5.50 & 0.02 \\ & 0.001 & 13.0 & 5.49 & 0.02 \\ MW & 0.0004 & 13.0 & 5.53 & 0.04 \\ & 0.001 & 13.0 & 5.52 & 0.04 \\ \hline \end{tabular} \end{table} \subsection{Total number of Globular Clusters and Specific frequency} \label{seccion:numero_total} GC searches in external galaxies using HST data are subjected to two kinds of incompleteness: (i) magnitude incompleteness arising due to the missing low-luminosity GCs beyond the detection limit, and (ii) area incompleteness due to non-coverage of outer-halo GCs because of the limited FoV of HST. The alternative strategy of searching GCs in wide-field ground-based surveys also suffers from these two effects, with the second effect arising due to confusion with stellar sources in the inner regions due to lack of spatial resolution. Characterization of the LF and the radial number density distributions with analytical functions, allows us to calculate the total number of GCs by integrating over the entire range of these functions. We carry out these integrations in two steps, as explained below. First, we integrate over the fitted GCLF to obtain the number corrected for the missing low-luminosity GCs, which are given in column~3 of Table \ref{tabla:ajsutes_gaussiana}. We define the missing factor, $f_{\rm LF}$=\ngc($\int{LF})$/\ngc(obs). In order to correct for the GCs outside our FoV, we counted the number of GCs within $R_{\rm e}$. By definition, total number of detectable GCs is twice this number. The total number of GCs, corrected for contamination from reddened SSCs, and incompleteness both in luminosity and volume is: \begin{equation} N_{{\rm GC,TOT}} = f_{LF}\times 2\times N_{{\rm GC},R_{\rm e}}^\prime, \label{ecuacion:total_number} \end{equation} where $N_{{\rm GC},R_{\rm e}}^\prime$ is listed in the last column in Table~\ref{tabla:sersic}, which is the number of GCs within $R_{\rm e}$ corrected for the contamination from reddened young SSCs. In column~4 of Table~\ref{tabla:ajsutes_gaussiana}, we tabulate the total number of GCs in each sample galaxy. The specific frequency, \sn, defined as the number of GCs normalized to the total galaxy magnitude of $M_{V}=-15$~mag, is related to the $N_{{\rm GC,TOT}}$ by the relation \sn\ $={N}_{\rm GC,TOT}\times10^{0.4({M}_{V}+15)}$ \citep{Harris:1981}. We calculated \sn\ for each galaxy using the $M_{V}$ tabulated in Table \ref{tabla:muestra}. In Table \ref{tabla:frecuencia} we show \sn\ and $S_{\textrm{N,TOT} }$ calculated with $N_{\text{GC,OBS}}$ and $N_{\text{GC,TOT}}$, respectively. In Figure \ref{fig:frecuencia}, we show the $S_{\textrm{N,TOT} }$ vs $M_{V}$. We also show corresponding values for the MW and M31 \citep{Peacock:2010}. The value of \sn\ for M101 is expected to be an upper limit, given that our GC sample for this galaxy includes a large population of intermediate-age SSCs. We hence made an alternative estimation of \sn, assuming that the true GC population in this galaxy also has the universal TO. We hence counted the number of GCs brighter than $M_{\rm V}=-7.40$~mag, and doubled that number to calculate $N_{{\rm GC,TOT}}$. T he empty symbol for M101 in the figure corresponds to this revised \sn. The mean value for our sample, including the revised value of M101 is $\sim$1.10$\pm$0.24, which occupies a much smaller range as compared to the values for spiral galaxies from the compilation of \citet{Harris:2013} (open circles). The large spread in the latter sample is expected as they are based on studies using very different detection and analysis techniques from \citet{Fischer:1990}, \citet{Harris:1996}, \citet{Kissler-Patig:1999}, \citet{Harris:2000}, \citet{Goudfrooij:2003}, \citet{Olsen:2004}, \citet{Rhode:2004}, \citet{Rhode:2007}, \citet{DiNino:2009}, \citet{Mora:2009}, \citet{Nantais:2010}, \citet{Peacock:2010}, \citet{Rhode:2010}, \citet{Adamo:2011} and \citet{Young:2012}. \begin{figure} \begin{center} \includegraphics[width=0.95\columnwidth]{frecunecia_especifica_pn_16julio2019_new.png} \caption{GC specific frequency plotted against the absolute magnitude of the host galaxy for our sample of 5 galaxies (filled star symbol), the MW and M31 (triangles). {The empty star symbol for M101 corresponds to the value obtained assuming a universal TO for this galaxy (see text for details).} Dashed horizontal line indicates average values for spiral galaxies from the compilation of \citet{Harris:2013}, which are shown by empty circles. } \label{fig:frecuencia} \end{center} \end{figure} \begin{table} \begin{center} \caption{Specific frequency.} \begin{tabular}{l c c c c c } \hline Galaxy & \sn & $S_{\textrm{N,TOT} }$ \\ \hline \hline M81 & 0.46$\pm$0.10 & 0.64$\pm$0.10\\ M101$^\dagger$ & 2.16$\pm$0.46 & 5.35$\pm$0.82\\ NGC~4258 & 0.57$\pm$0.26 & 1.12$\pm$0.30\\ M51 & 0.61$\pm$0.17 & 1.48$\pm$0.22\\ NGC~628 & 0.75$\pm$0.17 & 1.30$\pm$0.24\\ \hline \end{tabular} \label{tabla:frecuencia} \begin{tablenotes} $^\dagger$Values estimated assuming the universality of TO applies to M101 are 0.47$\pm$0.27 and 0.94$\pm$0.33. \end{tablenotes} \end{center} \end{table} \section{Conclusions} We used the HST images of five nearby spiral galaxies for which there are data taken with multiple pointings with ACS to enable a search of GCs in them. Images in $F435W$, $F555W$ and $F814W$ filters were used. We used SExtractor and a set of cluster-defining filters to define a sample of GCs in each of the analysed galaxies. Detection of simulated clusters was carried out to obtain the incompleteness as a function of magnitude. We used the $U$-band photometry for a subset of sample GCs using the SDSS $u$-band images for M81 and HST/WFC3 $F336W$ images for the rest to evaluate the contamination of our GC samples by reddened SSCs. The contaminating fraction was found to be between 0.14--0.35. We used the dataset to construct luminosity function of GCs in spiral galaxies. We find that the LF of GCs in all the five galaxies analysed is log-normal in nature, with the turn-over (TO) happening on the brighter side of the 50\% incompleteness limit in all galaxies. This has enabled us to determine precise TO magnitudes for our sample of galaxies. We also determined typical internal extinction towards the population of GCs in our sample galaxies by comparing the mode of the observed colours with that from population synthesis models for a metal-poor (metallicity = 1/20$^{th}$ solar) population of 13~Gyr. We used the best determined distances for the sample galaxies to convert the extinction corrected $V$-magnitude corresponding to the turn-over into the absolute magnitude $M_V{_0}$(TO) and obtained errors on this by carrying out Monte Carlo simulations. The mean of the $M_V{_0}$(TO) in 4 of our galaxies is $-$7.41$\pm$0.14, which is in excellent agreement with the values determined for GC population in the Milky Way of $M_V{_0}$(TO)$_{\rm MW}=-7.40\pm$0.10. In the fifth galaxy M101, $M_V{_0}$(TO) is 1.16~mag fainter than that for the MW. We propose that this difference in $M_V{_0}$(TO) arises due to morphological differences, with spiral galaxies of the Hubble types Sc or earlier having a universal $M_V{_0}$(TO), whereas the Hubble types later than Sc have fainter $M_V{_0}$(TO). The universality of $M_V{_0}$(TO) in early-type spirals is due to the classical GCs dominating the GC population, whereas in late-type spirals GC population is often dominated by old disk clusters, which are in general less massive, and hence fainter than the classical GCs, but otherwise share the same observational properties as the classical GCs. The universal TO value corresponds to a stellar mass of $\sim3\times10^5$~M$_\odot$, where the corresponding value is a factor of 2 lower for M101. We used the dataset of GCs to address three other topics of interest, namely the form of the radial density distribution, distribution of colours, and the specific number density. The S\'ersic function with index between $n$=0.36--1.63 is a good fit for the radial density distribution of GCs in our sample of galaxies. The index value suggests exponential form, rather than the much steeper n=3--4 form found in elliptical galaxies \citep{Kartha:2014}. We carried out a statistical analysis of $(B-I)_{0}$, $(B-V)_{0}$ and $(V-I)_{0}$ colour distributions for our sample of 5 galaxies. We found that the correction factor for contaminating reddened SSCs is a function of GC colour. Taking into account the errors in this correction factor, we find no compelling evidence for a bimodal distribution. We have calculated \ngc, the total number of GCs by making corrections for undetected faint sources, and those outside of our FoV, by extrapolating the GCLF to fainter magnitude and radial surface density profiles to outside our FoV, respectively. The specific number density \sn$\sim$1.10$\pm$0.24 for our sample of spiral galaxies. \section*{Acknowledgements} We are grateful to two anonymous referees for their valuable suggestions on the original manuscript, especially for suggesting us to carryout corrections for possible contamination of our GC samples from reddened young clusters. LLN thanks CONACyT for granting PhD research fellowship that enabled him to carry out the work presented here. We also thank CONACyT for the research grants CB-A1-S-25070 (YDM), and CB-A1-S-22784 (DRG). This work has made use of data from the European Space Agency (ESA) mission {\it Gaia} (\url{https://www.cosmos.esa.int/gaia}), processed by the {\it Gaia} Data Processing and Analysis Consortium (DPAC, \url{https://www.cosmos.esa.int/web/gaia/dpac/consortium}). Funding for the DPAC has been provided by national institutions, in particular the institutions participating in the {\it Gaia} Multilateral Agreement. \section*{Data availability} The data underlying this article are available in the article and in its online supplementary material. \bibliographystyle{mnras}
\section{Introduction} H\,{\sc ii} regions are one of the most widely observed and studied class of ionized regions in galaxy studies. By studying the emission line spectra of H\,{\sc ii} regions, one can learn about their chemical compositions as well as their ionization states, which are related to the past and current evolution statuses of their host galaxies. Various methods have been developed to derive the properties of H\,{\sc ii} regions based on their emission line spectra, among which the so-called `strong line method' is widely used in the literature. The strong line method makes use of strong optical emission lines that are easy to observe to predict the gas-phase metallicity and ionization parameter. There are in general two ways of applying this method, including the empirical calibration and the theoretical modelling. The former takes advantage of the observations of nearby H\,{\sc ii} regions that have very high signal-to-noise ratios (S/N), of which the metallicities can be determined by the direct method that uses faint optical auroral lines. The derived values can then be compared with the strong line ratios to obtain an empirical relation, which could later be applied to distant H\,{\sc ii} regions or SF galaxies without measurements of auroral lines \citep[e.g.,][]{pagel1979,pagel1980, edmunds1984, pettini2004, pilyugin2005, marino2013}. Although the empirical method does not rely on any assumption on the physical conditions of H\,{\sc ii} regions, there are unavoidable intrinsic scatters in most of the relations introduced by the variations in parameters other than metallicity (which we will refer to as `secondary parameters' hereafter). In addition, the ionization parameter, which is defined as the ratio between the flux of the hydrogen ionizing photons to the hydrogen density, is almost impossible to be measured directly. It can not be inferred from the empirical calibrations and has to depend on certain assumptions on the internal structures of H\,{\sc ii}\ regions. The theoretical modelling, on the other hand, can self-consistently predict both metallicity and ionization parameter, provided that the secondary model parameters are properly set and match the realistic H\,{\sc ii}\ regions \citep[e.g.,][]{charlot2001, kewley2002, 2004ApJ...613..898T, kobulnicky2004, 2011MNRAS.415.3616D}. These parameters include the stellar SED, the chemical abundance pattern, the dust composition, the density structure, the geometry, etc. State-of-the-art photoionization codes like {\sc cloudy} and {\sc mappings} can be used to compute one-dimensional models of ionized clouds based on existing atomic data, and predict emission-line ratios that are in good agreement with the observations \citep[e.g.,][and references therein]{dopita2000, 2001ApJ...556..121K, dopita2013, 2019ARA&A..57..511K}. Overall, photoionization models have been shown to be able to successfully reproduce several important emission-line ratios in observations. For example, the model predictions on [N\,{\sc ii}]$\lambda 6583$/H$\alpha$, [S\,{\sc ii}]$\lambda \lambda 6716,6731$/H$\alpha$, and [O\,{\sc iii}]$\lambda 5007$/H$\beta$ are largely consistent with observations, which explains the observed SF sequence in standard optical diagnostic diagrams \citep{stasinska2006, dopita2013}. However, it is important to note that when the model-predicted line ratios are compared with the observations to find the metallicity and ionization parameter, the results have a strong dependence on the input parameters. Unfortunately, many of the secondary model parameters are hard to constrain, and their importance is often overlooked in practice. This can lead to large discrepancies among the strong-line relations based on different models, as we will show in this paper. A prime example of strong model-dependence can be shown by the results on the correlation between metallicity and ionization parameter. Metallicity and ionization parameter are often assumed to be the main contributors to the variations of line ratios among star-forming regions \citep[for a counterargument, however, see][]{2020MNRAS.496..339P}. Are they correlated with each other or independent? Surprisingly, there are a considerable number of contradictory findings in the literature on this issue. Some early works show the two quantities are clearly anti-correlated \citep[e.g.,][]{1986ApJ...307..431D, 2006ApJ...639..858M, 2006A&A...459...85N}, which is further supported by the theoretical calculation of a wind-driven bubble model for H\,{\sc ii}\ regions by \citet{2006ApJ...647..244D} (hereafter D06). D06 argued that there are two effects driving this anticorrelation. First of all, at higher metallicities, the stellar winds become more opaque and absorb more ionizing photons. In addition, the stellar atmosphere would scatter photons more effectively, leading to stronger winds. This enlarges the inner shocked wind region and dilutes the ionizing flux received by the outer H\,{\sc ii}\ region. The anticorrelation has also been confirmed by a number of more recent studies using relatively large sample of H\,{\sc ii} regions or SF galaxies \citep[e.g.,][]{perezmontero2014, 2016A&A...594A..37M, Thomas19}. Interestingly, some other studies found that the metallicity and ionization parameter either have no obvious correlation, or have a positive correlation in observed H\,{\sc ii} regions \citep[e.g.,][]{2011MNRAS.415.3616D, dopita2013, dopita2014, poetrodjojo2018, kreckel2019, mingozzi2020}, in contrast to the theoretical prediction of D06. \cite{dopita2014} (hereafter D14) proposed that a positive correlation between metallicity and ionization parameter only exists in starburst galaxies but not in the normal SF galaxies. They argued that the underlying reason for the positive correlation in starburst galaxies could be the relation between the star-formation rate (SFR) and ionization parameter. Higher SFR could increase the ionization parameter either due to the higher mass of the star cluster or the change of the geometry of the ionized cloud. However, according to \cite{2016ApJ...827...35T} and \cite{mingozzi2020}, such a relation between the SFR and ionization parameter can also be found in normal SF galaxies. In addition, their analyses show that the correlation depends strongly on the stellar masses of the galaxies. Furthermore, \cite{mingozzi2020} found that the ionization parameter is actually more tightly correlated with the specific star-formation rate (sSFR, which is traced by the equivalent width of the H$\alpha$ line in their work) than SFR. To make the matter even more convoluted, \cite{poetrodjojo2018} compared the slopes of the metallicity vs. ionization parameter relations (MI relations) and the SFR vs. ionization parameter relations (SFR-I relations) for H\,{\sc ii} regions in different galaxies. They found that the slopes of these two relations are very different for different galaxies and the overall correlations between these quantities are not significant. The tension between the two contradictory kinds of findings is puzzling and remain unresolved. \cite{2019ARA&A..57..511K} commented that the evidence against the expected anticorrelation mainly came from spatially resolved studies. However, as we will show in this paper, the correlation between metallicity and ionization parameter in observed H\,{\sc ii} regions or SF galaxies are less related to the scale of the observations, but rather a result of model assumptions and methodology. In this work, we reexamine this long standing issue by focusing on the choice of input parameters for photoionization models that are used to fit the metallicity and ionization parameter of H\,{\sc ii} regions. We provide a self-consistent model that resolves this problem, which could help reveal the potential physical process that leads to the correlation. The layout of the paper is as follows. In Section~\ref{sec:data_models} we describe the observational data we use and the input parameters for the photoionization models. In Section~\ref{sec:results} we compare the model predictions on the correlations under different assumptions and evaluate the models based on the consistency of their predictions on different combinations of emission line ratios. We discuss the physical interpretations for the correlation indicated by our best-fit model in Section~\ref{sec:explanation} and examine the robustness of our analyses in Section~\ref{sec:discuss}. Finally, we summarize our findings and draw our conclusions in Section~\ref{sec:conclude}. Throughout this work, we use the following abbreviations for some of the frequently mentioned emission line ratios. We denote log([N\,{\sc ii}]$\rm \lambda 6583/H\alpha$), log([S\,{\sc ii}]$\rm \lambda \lambda 6716,6731/H\alpha$), log([O\,{\sc iii}]$\rm \lambda 5007/H\beta$), log([N\,{\sc ii}]$\rm \lambda 6583/$[O\,{\sc ii}]$\lambda \lambda 3726,3729$), and log([O\,{\sc iii}]$\rm \lambda 5007/$[O\,{\sc ii}]$\lambda \lambda 3726,3729$) as N2, S2, R3, N2O2, and O3O2, respectively. \section{Data and models} \label{sec:data_models} \begin{figure*} \includegraphics[width=0.44\textwidth]{Figures/fig0_0r.png} \includegraphics[width=0.44\textwidth]{Figures/fig0_1r.png} \centering \includegraphics[width=0.5\textwidth]{Figures/fig0_3c.png} \caption{Density distribution of MaNGA MPL-7 spaxels in the three-dimensional space spanned by N2, S2, and R3. Our sample H\,{\sc ii} region spaxels are colored from yellow to purple, while the rest of the spaxels are colored from white to black. Two photoionization model surfaces are shown. The cyan model and the red model are our fiducial SF model and AGN model, respectively. We show three viewing angles that lead to different 2D projections. Specifically, panel (a) and panel (b) correspond to the [S\,{\sc ii}]- and [N\,{\sc ii}]- BPT diagrams. Panel (c) shows the two model surfaces are separate in 3D and are connected by a continuous mixing sequence. } \label{fig:hii_data} \end{figure*} \begin{figure} \includegraphics[width=0.48\textwidth]{Figures/hii_2drrc.png} \caption{Density distribution of the MaNGA data in the two-dimensional $P_1$-$P_2$ diagram, where the relevant parts of the (interpolated) SF model (cyan grid) and AGN model (red grid) appear edge-on and well separated. The sample H\,{\sc ii}\ regions are colored from yellow to purple. Here we only plot the parts of the model surfaces that cover the middle 98\% of the data along the $P_3$ axis (line of sight), which is perpendicular to the $P_1$ vs. $P_2$ plane. This projection corresponds to a line of sight at ($\theta$, $\phi$) = (36$^{\circ}$, 219$^{\circ}$) in the 3D space of (N2, S2, R3), where $\theta$ and $\phi$ are the polar angle and the azimuthal angle, respectively \citep{ji2020b}. } \label{fig:hii_2d} \end{figure} \begin{figure} \includegraphics[width=0.48\textwidth]{Figures/data.png} \caption{Redshift and stellar mass distributions of our sample galaxies. The histogram shows a relatively flat distribution in stellar mass. The sample galaxies include both primary and secondary MaNGA galaxies. The former cover spatial regions out to 1.5 $R_e$, while the latter cover spatial regions out to 2.5 $R_e$.} \label{fig:manga_data} \end{figure} In this work we use observational data from the Mapping Nearby Galaxy at Apache Point Observatory survey \citep[MaNGA,][]{bundy2015}. As one of the three major experiments of SDSS-IV \citep{blanton2017}, MaNGA was designed to obtain spatially resolved spectroscopic data of $\sim 10000$ nearby galaxies and finished its observation in the summer of 2020. Its observing strategy and survey execution are detailed in \cite{law2015} and \cite{yan2016b}. With a median redshift of 0.03, MaNGA's targets form a primary sample made up of galaxies observed out to 1.5 $R_e$ and a secondary sample made up of galaxies observed out to 2.5 $R_e$. These targets are designed to have a nearly flat stellar mass distribution with $M_* = 10^9 \sim 10^{11} ~ M_\odot$ \citep{wake2017}. MaNGA uses the 2.5m Sloan telescope for its observation \citep{gunn2006}. Lights from galaxies are fed through IFU fiber bundles with fields of view ranging from 12$^{\prime \prime}$ to 32$^{\prime \prime}$ \citep{drory2015} to the BOSS spectrographs \citep{smee2013}. The collected spectra have a median spectral resolution of $R\sim2000$ and covering a wavelength range from 3622\AA ~to 10354\AA. These raw spectra data are then reduced and calibrated by the Data Reduction Pipeline \citep[DRP,][]{law2016, law2021a, yan2016a} and eventually fed to the Data Analysis Pipeline \citep[DAP,][]{belfiore2019, westfall2019}. The DAP uses {\sc ppxf} \citep{cappellari2004, cappellari2017} at its core and fits the stellar continua and emission line spectra simultaneously. The final data products include spatially resolved models and measurements of emission lines and stellar continua. A python-based toolkit, MARVIN, further facilitates steamlined access and visulization of the DAP products \citep{cherinka2019}. Our sample is drawn from the MaNGA products in the $\rm 15^{th}$ public data release of SDSS (DR15), which includes a total of 4639 unique galaxies. We select a sample of H\,{\sc ii} regions by using the three-dimensional optical diagnostic introduced by \cite{ji2020b}, which combines the [N\,{\sc ii}]- and [S\,{\sc ii}]- BPT diagrams and select spaxels in a three-dimensional space. Basically, \cite{ji2020b} used two model surfaces to describe the SF and AGN loci in the 3D space, which are shown in Figure~\ref{fig:hii_data}. The two model surfaces are well separated in 3D, allowing decomposition of spatially mixed ionized regions into pure ionized regions, of which the line ratios are indicated by the locations of the model surfaces. With this method, \cite{ji2020b} computed quantitatively a demarcation surface in 3D that is able to isolate SF regions with AGN contributed H$\alpha$ fluxes less than 10\% \footnote{An H\,{\sc ii} region sample selected by using only the [N\,{\sc ii}] BPT diagram would not change our conclusion. Our selection criterion includes slightly more H\,{\sc ii} regions in the outskirts of galaxies that would have been missed by the standard BPT diagnostics.}. The selection function is given by \begin{equation} P_1 < -1.57 P_2^2 + 0.53 P_2 - 0.48, \end{equation} where \begin{equation} P_1 = 0.63 N2 + 0.51 S2 + 0.59 R3, \end{equation} and \begin{equation} P_2 = -0.63 N2 + 0.78 S2. \end{equation} Figure~\ref{fig:hii_data} shows the density distribution of our sample in the three-dimensional space spanned by N2, S2, and R3. It is clear that there is a continuous mixing sequence connecting the two model surfaces, and our selected sample is well traced by the fiducial SF model surface. The sample includes a total of 2782 galaxies and 1.65 million spaxels. Figure~\ref{fig:hii_2d} shows the data distribution in a specific 2D projection (which we will denote as the $P_1$-$P_2$ diagram), where the photoionization model surfaces appear edge-on. Since both the data and the (relevant) model surface cover a very narrow region in this projection, one can use it to visualize how well the model surfaces fit the center of the data distribution. In addition, the projected AGN model grid is clearly separated from the SF model grid, indicating that AGN or composite regions are unlikely to be projected into the SF locus and contaminate the sample significantly. Although the two models seem to overlap with each other at the upper part of the diagram, the corresponding part of the AGN model actually describes very low metallicity AGNs, which are rare in the MaNGA sample, as indicated by the spaxels in the central regions of MaNGA galaxies \citep{ji2020b}. Since we try to carry out a statistical study on the distribution of both the metallicity and ionization parameter in `typical' H\,{\sc ii} regions in this work, whether the selected sample is representative enough will have a non-negligible impact on the result. For our main MaNGA sample, the mass distribution is relatively flat, as can be seen in Figure~\ref{fig:manga_data}. This ensures that the high-mass regime is well populated and helps to constrain photoionization models at high metallicities. We defer a more detailed discussion on the selection effect to Section~\ref{sec:discuss}. Our fiducial photoionization model for H\,{\sc ii} regions (hereafter JY20 model) is generated by the photoionization code {\sc cloudy} \citep[v17.00,][]{ferland2017}, and is described in detail in \cite{ji2020b}. In short, this model simulates an isobaric H\,{\sc ii} region with plane-parallel geometry. The initial hydrogen density is set to be $\rm 14~cm^{-2}$, which is derived from the median [S\,{\sc ii}]$\lambda 6716$/[S\,{\sc ii}]$\lambda 6731$ of H\,{\sc ii} regions in MaNGA \citep{ji2020a}. The ionizing SED is produced by the code {\sc starburst99} \citep[v7.01,][]{leitherer1999}, assuming a continuous star-formation history (SFH) of 4 Myr and a Kroupa IMF \citep{kroupa2001}. When computing this SED, we use the \cite{pauldrach2001} and \cite{hillier1998} stellar atmospheres, and a standard Geneva evolutionary track. To account for secondary nitrogen, we use the N/O vs. 12 + log(O/H) relation given by \cite{dopita2013}, which was derived by fitting a set of H\,{\sc ii}-region measurements derived by \cite{vanzee1998}. For the gas-phase chemical abundances, we choose the solar abundance set of \cite{grevesse2010} as the reference abundance, and use the default dust depletion factors in {\sc cloudy}, which are based on measurements by \cite{cowie1986} and \cite{jenkins1987}. For each gas-phase abundance used in the model, we try to match it with the stellar SED with the same metallicity, assuming the solar $\alpha$/Z ratio. Since {\sc starburst99} only computes stellar metallicities up to $2~Z_{\odot}$, we extrapolate the stellar SED when the gas-phase oxygen abundance is larger than two times the solar value. Basically, we assume the logarithms of the stellar fluxes change linearly with the logarithmic oxygen abundances\footnote{If we do not extrapolate the SED and use mismatched abundances at high metallicities, the predicted metallicity will be $\sim 0.01$ to $0.02$ dex higher at this regime.}. Besides this fiducial model, we also examine another three SF-ionized models in the literature, computed by \cite{levesque2010}, \cite{dopita2013}, and \cite{byler2017}, respectively (we will denote these models as L10, D13, and B17 hereafter). The key input parameters of these models, including the hydrogen density, geometry, ionizing SED, solar abundance set, nitrogen prescription, and dust depletion, are listed in Table.~\ref{tab:models}. The relative importance of these parameters will be further discussed in Section~\ref{sec:results}. Throughout this work, the metallicity is defined as \begin{equation} \rm [O/H] = \log(O/H) - \log(O/H)_{\odot}, \end{equation} where $\rm \log(O/H)_{\odot}$ is the solar oxygen abundance taken from \cite{grevesse2010}. The ionization parameter is defined as \begin{equation} U = \frac{\Phi_{0}}{n_H c} = \frac{Q_0}{4\pi r^2 n_H c}, \end{equation} where $\Phi_{0}$ is the ionizing flux from the central stars, $Q_0$ is the number of ionizing photons per unit time, $r$ is the radius at which the ionization parameter is measured\footnote{This expression is used if the geometry is spherical. $r$ is usually chosen as the inner radius of the H\,{\sc ii}\ region or sometimes the Str\"omgren radius.}, $n_H$ is the hydrogen density, and $c$ is the speed of light. \begin{table*} \centering \caption{Input parameters for the photoionization models} \label{tab:models} \begin{tabular}{l c} \hline \hline Parameter & Values \\ \hline \multicolumn{2}{|c|}{JY20 model (fiducial model in this work)} \\ \hline log(U) & $-4.0$, $-3.75$, $-3.5$, $-3.25$, $-3.0$, $-2.75$, $-2.5$, $-2.25$, $-2.0$, $-1.75$, $-1.5$\\ $[{\rm O/H}]$ & $-1.3$, $-0.7$, $-0.4$, 0.0, 0.3, 0.5\\ $\log (n{\rm_H} / {\rm cm}^{-3})$ & 1.15\\ Geometry & Plane-parallel\\ Stellar SED & {\sc starburst99} model with a continuous SFH of 4 Myr\\ Solar abundance set & \citet{grevesse2010} solar abundance set\\ Nitrogen prescription & \citet{dopita2013} prescription\\ Depletion factor & Default depletion set in {\sc cloudy} \citep{cowie1986, jenkins1987}\\ \hline \multicolumn{2}{|c|}{L10 model} \\ \hline log(U) & $-3.5$, $-3.2$, $-2.9$, $-2.6$, $-2.5$, $-2.2$, $-1.9$\\ $[{\rm O/H}]$ & $-1.3$, $-0.7$, $-0.4$, 0.0, 0.3\\ $\log (n{\rm_H} / {\rm cm}^{-3})$ & 2.0\\ Geometry & Plane-parallel\\ Stellar SED & {\sc starburst99} model with a continuous SFH of 6 Myr\\ Solar abundance set & -\\ Nitrogen prescription & -\\ Depletion factor & -\\ \hline \multicolumn{2}{|c|}{D13 model ($\kappa \rightarrow \infty$)} \\ \hline log(U) & $-4.0$, $-3.7$, $-3.5$, $-3.2$, $-3.0$, $-2.7$, $-2.5$, $-2.2$, $-2.0$\\ $[{\rm O/H}]$ & $-1.3$, $-1.0$, $-0.7$, $-0.5$, $-0.3$, 0.0, 0.3, 0.5, 0.7\\ $\log (n{\rm_H} / {\rm cm}^{-3})$ & 1.0\\ Geometry & Spherical\\ Stellar SED & (Old) {\sc starburst99} model with a continuous SFH of 4 Myr \citep[see][]{dopita2000} \\ Solar abundance set & \citet{grevesse2010} solar abundance set\\ Nitrogen prescription & \cite{dopita2013} prescription\\ Depletion factor & Depletion set described in \cite{kimura2003} and \cite{dopita2005}\\ \hline \multicolumn{2}{|c|}{B17 model (extracted from {\sc python-fsps})} \\ \hline log(U) & $-4.0$, $-3.5$, $-3.0$, $-2.5$, $-2.0$, $-1.5$, $-1.0$\\ $[{\rm O/H}]$ & $-2.0$, $-1.5$, $-1.0$, $-0.6$, $-0.4$, $-0.3$, $-0.2$, $-0.1$, 0.0, 0.1, 0.2\\ $\log (n{\rm_H} / {\rm cm}^{-3})$ & 2.0\\ Geometry & Spherical\\ Stellar SED & {\sc fsps} model with a instantaneous SFH of 1 Myr\\ & (MIST evolutionary track, see \citealp{dotter2016} and \citealp{choi2016}) \\ Solar abundance set & \citet{anders1989} solar abundance set \\ Nitrogen prescription & \cite{dopita2000} prescription\\ Depletion factor & Depletion set described in \cite{dopita2000}\\ \hline \end{tabular} \end{table*} \section{Dependence of the MI correlation on model parameters} \label{sec:results} In this section we use photoionization models to fit gas-phase metallicities as well as ionization parameters for our sample. The basic idea of this approach is to compare the model predictions on multiple emission line ratios with the observed values. Depending on the number of line ratios involved, the calculation could be two-dimensional (minimal dimensions required to fit both metallicity and ionization parameter), or have three or more dimensions. Starting with the two-dimensional diagnostics: the standard two-dimensional BPT diagrams ([N\,{\sc ii}]-, [S\,{\sc ii}]-, and [O\,{\sc i}]-based diagrams) can provide useful constraints on the ionizing sources for the ionized regions, but are not suitable for fitting metallicities and ionization parameters. The photoionization model grids tend to wrap around in these diagrams, which results in significant degeneracies between the fitted metallicities and ionization parameters. Another two-dimensional diagnostic diagram that is frequently used to fit metallicities and ionization parameters simultaneously is the [N\,{\sc ii}]/[O\,{\sc ii}] versus [O\,{\sc iii}]/[O\,{\sc ii}] diagram \citep{dopita2000}. The merit of this diagnostic diagram is that photoionization model grids do not overlap with themselves in this diagram \footnote{Sometimes O3O2 alone is used to to predict ionization parameter. We note that such usage is not recommended as the relation between O3O2 and ionization parameter also depends on metallicity.}. However, a few caveats should be noted. First, this diagram has an extra dependence on dust extinction correction due to the large wavelength separation of the emission lines used. Second, it relies on a good understanding of how the N/O ratio changes with the metallicity. The fact that there is a significant degeneracy between models with different N/O versus O/H relations makes this diagram alone not very useful in constraining the model parameters or providing unique fitting results. To overcome the above difficulties associated with the 2D diagrams, one could take more line ratios into consideration and constrain the secondary model parameters before fitting the metallicity and ionization parameter. This approach effectively brings us to the regime of high-dimensional analysis. \cite{ji2020b} showed that by simply combining [N\,{\sc ii}]/H$\alpha$, [S\,{\sc ii}]/H$\alpha$, and [O\,{\sc iii}]/H$\beta$ and forming a three-dimensional diagnostic diagram (N2-S2-R3 diagnostic), one can place strong constraints on secondary parameters, including the shape of the ionizing SED and the N/O abundance pattern. This is achieved by simply requiring the model surface go through the densest part of the data surface in 3D. The N2-S2-R3 diagnostic itself can also be used to predict the metallicity and ionization parameter. Here we would like to define the concept of `best fitting' in high dimensions. Ideally, there exists an optimal photoionization model which gives consistent predictions over all the line ratios, should the physical properties of the studied H\,{\sc ii}\ regions all have narrow distributions about the median values. Still there will be scatters around the manifold of the model due to the widths of the distributions of different parameters. Following the previous practices on modelling H\,{\sc ii}\ regions, we make the following assumptions \begin{enumerate} \item There are two primary parameters, i.e. the metallicity and the ionization parameter, that contribute the largest line ratio variations. \item At fixed metallicity and ionization parameter, the variations in other (secondary) parameters result in comparably less variations in line ratios for a statistically large sample of H\,{\sc ii}\ regions. \end{enumerate} By varying the metallicity and ionization parameter of the photoionization model, we obtain a two-dimensional surface in any given line-ratio space. The variation in secondary parameters will appear as small scatters around the model surface in high dimensions, but the best-fit model surface would still lie in the center, or the densest part of the data distribution. The location of the `central surface' can then be used to constrain the median values of the secondary parameters. We expect the desired model that best fits the central surface of the data to produce identical relationships between metallicity and ionization parameter, within the uncertainties, no matter which subset of line ratios is used to derive them (except for those subsets with significant degeneracy). Whether the model predicts the same MI correlation using different line ratios is thus a useful test for its self-consistency. In the following part of this section, we will compare the fitting results from different photoionization models. We use the Bayesian inference to estimate the joint and marginalized probability distribution functions (PDFs) of the logarithmic metallicity, [O/H], and ionization parameter, log(U), for each of the data point, assuming flat priors in both dimensions \citep[see e.g.,][for a general discussion on the Bayesian approach]{blanc2015}. Basically, for each data point, we calculate the likelihood as \begin{equation} p(D|M, \theta)= \frac{{\rm exp}(-\chi ^2 /2)}{(2\pi )^{n/2}\rm det({\boldsymbol C})^{1/2}}, \label{eq:likelihood} \end{equation} where D, M, $\theta$ represents the data, the adopted model, and the model parameters (i.e. [O/H] and log(U)). $n$ is the number of emission line ratios considered. $\chi ^2$ is give by \begin{equation} \chi ^2 = [\boldsymbol{X_D}-\boldsymbol{X_M}]^T \boldsymbol{C}^{-1} [\boldsymbol{X_D}-\boldsymbol{X_M}], \end{equation} where $\boldsymbol{X_D} - \boldsymbol{X_M}$ is an $n$ dimensional vector describing the logarithmic line-ratio differences between the data point and the model point, and $\boldsymbol{C}$ is the covariance matrix \citep{hogg2010}. Following \cite{belfiore2019} who examined the uncertainties reported by DAP using repeated observations in MaNGA, we inflate all the uncertainties in emission line fluxes by a factor of 1.25. This is equivalent to multiplying all terms in $\boldsymbol{C}$ by 1.5625 (which does not have a significant effect on our results). The likelihood is then combined with the flat priors and normalized to give the posterior, $p(\theta | D, M)$ (We will discuss the influence of non-flat priors in \S~\ref{sec:discuss}). Finally, the weighted average metallicity and ionization parameter are calculated for each data point using the marginalized posteriors \begin{equation} <{\rm [O/H]}>=\sum _{\rm [O/H]_{min}}^{\rm [O/H]_{max}}p({\rm [O/H]}|D,M){\rm [O/H]}, \end{equation} \begin{equation} <{\rm \log(U)}>=\sum _{\rm \log(U)_{min}}^{\rm \log(U)_{max}}p({\rm \log(U)}|D,M){\rm \log(U)}. \end{equation} It should be noted that the metallicity calculated here is the `pre-depleted' metallicity, i.e. the metallicity before any depletion onto dust grains occur. The relation between the pre-depleted metallicity and the post-depleted metallicity depends on the depletion factors adopted by the model. For the JY20 model, this is given by \begin{equation} \rm [O/H]_{pre} = [O/H]_{post} + 0.22. \end{equation} The post-depleted metallicity is the current gas-phase metallicity in the ionized cloud. Thus, one should be cautious when comparing metallicities derived from photoionization models to those derived through other methods. For each model, we perform three sets of fitting, the first one in the N2O2 versus O3O2 space, the second one in the N2-S2-R3 space, and the last one in the five-dimensional space composed of N2O2, O3O2, N2, S2, and R3. When fitting the data using the N2O2 versus O3O2 method, we apply extinction corrections based on the Balmer decrements, assuming an intrinsic Balmer ratio $F_{H\alpha}/F_{H\beta}=2.86$. The extinction curve we use is from \cite{fitzpatrick1999} with $R_V = 3.1$. We will see whether these results agree with each other, and what is the main driver of different MI correlations. \subsection{Comparison of model predictions based on different emission-line ratios} \begin{figure*} \includegraphics[width=0.30\textwidth]{Figures/Fig1_l0extrap.png} \includegraphics[width=0.7\textwidth]{Figures/Fig1_r0extrap.png} \includegraphics[width=0.30\textwidth]{Figures/Fig1_l1.png} \includegraphics[width=0.7\textwidth]{Figures/Fig1_r1.png} \includegraphics[width=0.30\textwidth]{Figures/Fig1_l2.png} \includegraphics[width=0.7\textwidth]{Figures/Fig1_r2.png} \includegraphics[width=0.30\textwidth]{Figures/Fig1_l3.png} \includegraphics[width=0.7\textwidth]{Figures/Fig1_r3.png} \caption{Left columns: different SF-ionized models and MaNGA MPL-7 data in the $P_1$-$P_2$ diagram. The models are interpolated and cut so that only the parts that cover the middle 98\% of the data along the hidden $P_3$ axis are shown. The spaxels with contributions from SF ionization greater than 90\% are colored from yellow to green, while the rest of the spaxels are colored from white to black. Only the former are used to derive metallicities and ionization parameters. Right columns: derived metallicities and ionization parameters using different SF-ionized models and different combinations of line ratios.} \label{fig:fitting} \end{figure*} \begin{figure*} \includegraphics[width=0.5\textwidth]{Figures/fig2_0extrap.png} \includegraphics[width=0.5\textwidth]{Figures/fig2_1.png} \includegraphics[width=0.5\textwidth]{Figures/fig2_2.png} \includegraphics[width=0.5\textwidth]{Figures/fig2_3.png} \caption{Histograms showing the number distributions of [O/H] and log(U) predicted by different SF-ionized models and different combinations of line ratios.} \label{fig:hist} \end{figure*} \begin{figure} \includegraphics[width=0.48\textwidth]{Figures/fig3r.png} \caption{Median absolute Euclidean distances in the N2-S2-R3 3D space as a function of fitted metallicities for different SF-ionized models. The metallicities shown are derived based on different models using the N2-S2-R3 method, thus having different ranges. The shaded regions encompass the middle 68\% of the data.} \label{fig:3d_dist} \end{figure} In Figure~\ref{fig:fitting} we plot all four SF-ionized models in the $P_1$-$P_2$ diagram as well as their predicted MI correlations. This projection makes the model surfaces roughly edge-on and thus best reveals any discrepancy between the data and model surfaces in the 3D line-ratio space. The leftmost columns compare the model surfaces with the H\,{\sc ii}\ regions (which are colored in green and yellow). All models are interpolated using the 2D interpolation function {\sc griddata} in {\sc python}. To better compare the locations of the model surfaces with the data distribution, we show only parts of the models that cover the middle 98\% of the data along the $P_3$ axis, which is perpendicular to the $P_1$-$P_2$ plane in 3D. By eye, the JY20 model provides the best fit to the densest part of the data distribution in the $P_1$-$P_2$ diagram. For all three combinations of line ratios, the JY20 model predicts positive correlations between [O/H] and log(U). The 2D distributions of [O/H] and log(U) derived by different line ratios show good consistency overall. The only difference may be that the constraints based on the N2O2-O3O2 method gives a slightly smoother distribution than the other two methods In comparison, the L10 model underpredicts $P_2$ values significantly for $P_1 \lesssim 0$. Since $P_2$ anticorrelates with metallicity \citep{ji2020b}, the L10 model fails to describe the majority of the data at relatively low metallicities. As expected, for this model the fitting results from different methods show discrepancies at subsolar metallicities. When using the N2O2-O3O2 method, the L10 model predicts no correlation between [O/H] and log(U) for spaxels with [O/H] < 0. Whereas the N2-S2-R3 method gives a clear anticorrelation between [O/H] and log(U). When all line ratios are combined, the resulting distributions of [O/H] and log(U) closely resemble those predicted by N2, S2, and R3. This could be caused by the fact that N2, S2, and R3 overall have smaller uncertainties than N2O2 and O3O2. However, we note that the position of the model surface relative to the data distribution in 5D could also be relevant. For the D13 model, it shows better consistency with the data in the N2-S2-R3 space, but still offsets from the dense part of the re-projected data locus at low metallicities. Using this model, the N2O2-O3O2 method predicts a very broad distribution of log(U). The resulting [O/H] and log(U) seems to have no correlation except at very high metallicities. On the other hand, the N2-S2-R3 method again predicts a negative correlation between the two quantities at subsolar metallicities and a positive correlation at supersolar metallicities. When all five line ratios are used, the overall shape of the relation between [O/H] and log(U) looks similar to the one obtained using the N2-S2-R3 method, but with a larger scatter in log(U). In summary, the fitting results of the D13 model share similar features with those of the L10 model due to their similar behaviors in the N2-S2-R3 space. They all underestimate these line ratios at (their) subsolar metallicities and show better consistency with the data distribution at supersolar metallicities, which lead to two different correlations between [O/H] and log(U) in these two regimes. In regions where these two model surfaces get close to the center of the data distribution in 3D, the derived [O/H] and log(U) are clearly positively correlated. Finally, the B17 model gives a more complicated result as it crosses the dense part of the H\,{\sc ii} region sample at $P_2 \sim 0.2$. It underestimates N2, S2, and R3 at very low metallicities, while overestimates them at higher metallicities. The N2O2-O3O2 predictions show an anticorrelation between [O/H] and log(U) until [O/H] $\sim$ 0, after which these two quantities seem to start becoming positively correlated again. The predictions given by the N2-S2-R3 method exhibits similar behavior, despite that the turning point of the correlation lies at [O/H] $\sim -0.4$ to $-0.3$ rather than [O/H] $\sim$ 0. The 5D fitting result is again dominated by the N2, S2, and R3. We see that only the JY20 model predicts a positive MI correlation no matter which combination of line ratios is chosen. For the other three models, all of which show obvious discrepancies with the data surface in the 3D line-ratio space, the predicted MI relations through the N2-S2-R3 method all have two different trends. That is, with increasing metallicities, the relations are at first negative, and then become positive at some metallicities, which seem to be related to where the models start to get close enough to the dense part of the data in 3D. Figure~\ref{fig:hist} shows the 1D distributions of [O/H] and log(U) predicted by different models and different line ratios. The results from the JY20 model show the best agreement. Judging from the histograms, the N2-S2-R3 method seems to yields slightly more high metallicities spaxels, which implies that our linearly extrapolated stellar SED at the highest metallicity is not perfect. Another noticeable difference is that the peak of the log(U) distribution derived by the N2-S2-R3 method is higher than that derived by the N2O2-O3O2 method by $\sim 0.1$ dex. This difference originates from the fact that the model predicted O2 value is not entirely consistent with the observed O2 value (if we assume that the model predicted N2, S2 and R3 values are all correct). Since in our case O2 is only used in combination with N2 or O3 that has a much larger wavelength, it is also possible that the extinction correction is not correctly applied. We will further discuss this issue in Section~\ref{subsec:o2_corr}. The other models all show bimodal 1D distributions in [O/H], consistent with what we have seen in the 2D distributions. Unlike the N2-S2-R3 method, the N2O2-O3O2 method always gives single-peaked metallicity distributions. For log(U), the L10 model, D13 model and B17 model all predict systematically lower values than those given by the JY20 model. Interestingly, only the B17 model predicts an obvious bimodal distribution in log(U) when using the N2, S2 and R3 lines or all five emission lines. Given the relatively flat stellar mass distribution in our sample, is reasonable to assume that the true distribution in either [O/H] and log(U) should be a single-peaked function (otherwise one need to explain why the chemical evolution model would favor a very different metal-enrichment time scale for galaxies with an intermediate metallicity). The double peak distributions we see can be qualitatively understood as the following. Even as the model surface deviate significantly from most of the spaxels in high-dimensional line-ratio space, the fitting algorithm is still looking for the closest part of the model to the data. Depending on the relative curvature of the model surface to the data distribution, data points that originally correspond to a wider distribution in [O/H] (or log(U)) might be preferentially assigned to specific parts of the model grids that are closest to the data surface, causing the double-peaked distribution. Figure~\ref{fig:3d_dist} shows how the median distances from the data points to the model surfaces in the N2-S2-R3 space changes as a function of the metallicities predicted by the models. The JY20 model surface lies closest to the majority of the data in the 3D space, with the median distances $d_{3D}\lesssim 0.05$ dex. The D13 model surface is equally close to the high-metallicity data, but fits the low-metallicity data worse. Similarly, the L10 model surface behaves better when [O/H] $\gtrsim$ 0.2, but moves further away from the data as metallicity gets lower. Finally, the B17 model surface appears closest to the data at [O/H] $\approx -0.4$, and starts deviating from the data as metallicity increases. These results are consistent with what we found in Figure~\ref{fig:fitting} with the $P_1$-$P_2$ diagram. This again shows that the agreement between the model surface and the central surface of the data distribution in multidimensional line-ratio space is an important metric for model evaluation. \subsection{Comparison of model parameters} \begin{figure} \includegraphics[width=0.48\textwidth]{Figures/params_com.png} \caption{Comparisons of photoionization models with different input parameters in the $P_1$-$P_2$ diagram. The cyan model is our fiducial model. The red model has the fiducial abundances and depletion set, but uses the SED adopted by the B17 model. The purple model uses the fiducial SED, but adopts the abundances and depletion set of the B17 model. The blue model uses the fiducial SED, but adopts the abundances and depletion set of the D13 model. The models are interpolated and cut so that only the parts that cover the middle 98\% of the data along the hidden $P_3$ axis are shown. The density distribution of the H\,{\sc ii}\ region sample is plotted in green and yellow, while the rest of the MaNGA sample is plotted in black and white.} \label{fig:params_com} \end{figure} \begin{figure*} \includegraphics[width=0.45\textwidth]{Figures/nor.png} \includegraphics[width=0.45\textwidth]{Figures/nor1.png} \caption{Comparisons of different nitrogen prescriptions. Both the input prescription and the output prescription modified by dust depletion are shown. The depleted relation of \protect\cite{dopita2013} is obtained by using the {\sc cloudy} default depletion set, which gives the final gas-phase relation in the JY20 model. The depleted relation of \protect\cite{dopita2000} is obtained by using the depletion set of \protect\cite{dopita2000}, which gives the final gas-phase relation in the B17 model. While the left panel shows the N/O ratios as functions of the absolute oxygen abundance 12 + log(O/H), the right panel shows the N/O ratios as functions of the relative oxygen abundance [O/H], normalized by the solar O/H. The solar oxygen abundances, 12 + log(O/H)$_\odot$, adopted by \protect\cite{dopita2000} and \protect\cite{dopita2013} are 8.93 and 8.69, indicated by the orange triangle and the cyan star in the plot, respectively. } \label{fig:nor} \end{figure*} By comparing four different SF-ionized models, we see that the model which fits the central surface of data in the multidimensional line-ratio space gives the most consistent predictions on metallicity and ionization parameter. The location of the model surface in the line-ratio space is determined by parameters other than metallicity and ionization parameter (i.e., the secondary parameters). Variations in different secondary parameters move the model surface in different directions by different amounts, as detailed in \cite{ji2020b}. In this section we attempt to find the most relevant secondary parameters that distinguishes the JY20 model from other models But before we discuss the effects of the secondary parameters, we note that there are two different photoionization codes used in these models, i.e., {\sc cloudy} and {\sc mappings}. According to \cite{dagostino2019b}, the two codes result in almost identical results if the input parameters are the same. However, as pointed out by \cite{law2021b} and Belfiore in prep, earlier photoionization codes do not have a reliable estimation on the dielectronic recombination rate of $S^{++}$ and use the charge-normalised mean dielectronic recombination rates of C, N, and O as an approximation \citep{ali1991}. The current version of {\sc cloudy} \citep[v17,][]{ferland2017} improves the estimation of this value \citep{badnell2015}, which results in stronger [S\,{\sc ii}] lines. Among the four models, only the JY20 model uses the latest photoionization code. Therefore, we should keep in mind that the S2 predicted by other models are underestimated by some amounts, but could be offset by the effects of other input parameters. Table~\ref{tab:models} lists the input parameters of the four models. We start with the effect of the density structure. The hydrogen densities of the models all lie in the range $\rm 10~cm^{-3}<n_H \leq 100~cm^{-3}$. In fact, for radiation-bounded clouds with $\rm n_H \lesssim 100~cm^{-3}$, the model-predicted line ratios are almost identical except some small differences at very high metallicities \citep{ji2020b}. We also test the effects of different equations of state for the simulated cloud, and the result shows that a cloud with a constant density produces very similar results as those from an isobaric cloud with the same initial density. The geometry of the cloud is a more complicated issue. The spherical geometry is often assumed in the dynamical modelling of H\,{\sc ii}\ regions, while in the real world it is difficult to have perfect symmetry. Density inhomogeneities in the molecular clouds will cause asymmetries and the feedback from the central star clusters could create blister H\,{\sc ii}\ regions. In such cases a plane-parallel geometry might be a more realistic choice \citep[e.g., the Orion nebular,][]{wen1995}. We have computed models with these two different geometries while keeping other parameters the same. For the spherical model, we vary the inner radius from 3 to 10 parsec. We find that these model surfaces cover a similar area in the line-ratio space (regardless of whether the geometry is closed or open for the spherical case) except at very high metallicities, suggesting that the geometry is not likely to be the dominant factor that causes the differences we see among the four models. For an ionized cloud with a high ionization parameter at the illuminated face, the H\,{\sc ii}\ region becomes thick. If the inner radius of the H\,{\sc ii}\ region is comparable to the thickness of the ionized layer, then the geometric dilution of the ionizing photons becomes important and the resulting emission line spectrum would be different from that produced by a plane-parallel model with the same ionization parameter. This could explain the difference we see in the models with different inner radii. We will discuss in Section~\ref{sec:explanation} about whether this effect would become significant if we change the inner radius according to dynamical models. The next input parameter in Table~\ref{tab:models} is the stellar SED, which determines the relative number of ionizing photons and is quite important in setting the line ratios of H\,{\sc ii} regions. The first three models we compare all use stellar SEDs generated by {\sc starburst99}. Both the JY20 model and the D13 model assumes a continuous SFH of 4 Myr. Different from the JY20 model, the D13 model assumes a Salpeter IMF \citep{salpeter1995}. However, we test models with different IMFs and find that the IMF effect is negligible for the line ratios considered here. The remaining difference is that the D13 model uses an earlier {\sc starburst99} SED adopted by \cite{dopita2000}, which is harder compared to the newer SEDs generated by later versions of {\sc starburst99} \footnote{\cite{dopita2000} did not specify which version of the {\sc starburst99} they used. But it should be earlier than v3.1 according to the code release information at https://www.stsci.edu/science/starburst99/docs/new.html}. A harder input SED would strengthen the low-ionization lines like [N\,{\sc ii}] and [S\,{\sc ii}] by increasing the relative size of the partially ionized zone inside the ionized cloud. But compared to the JY20 model, the D13 model instead shows comparable N2 ratios while lower S2 ratios. Thus, the effect of the earlier {\sc starburst99} SED is either not large enough or is offset by the effects of some other parameters (e.g., the underestimated dielectronic recombination rate of $S^{++}$). Meanwhile, the L10 model assumes a continuous SFH of 6 Myr, which should give a very similar SED as that of the JY20 model \citep[see Figure~7 of][]{ji2020b}. Unlike the first three models, the B17 model adopts a much harder SED generated by {\sc fsps} \citep{conroy2009}, which contributes to its overpredictions of N2, S2, R3, and equivalently $P_1$. Such an SED might be able to describe H\,{\sc ii}\ regions undergoing intense star formation, but is too hard for the majority of the H\,{\sc ii}\ regions in our sample. In Figure~\ref{fig:params_com}, we plot a model with the B17 SED set but keep the other parameters the same as those in the JY20 model. This model shows larger $P_1$ values as expected. Finally, the chemical abundance is a fundamental ingredient for setting the line ratios. The eventual chemical abundance in the cloud is determined by the adopted solar abundance, the N/O ratio, and dust depletion factors. The JY20 model and the D13 model both use the solar abundance set in \cite{grevesse2010}, while the B17 model uses the solar abundance set in \cite{anders1989}. The abundances of relevant elements like nitrogen, oxygen, and sulphur is more abundant in the latter set. However, the abundances will be further altered by the N/O ratio and dust depletion factors, as we will detail in the following. The nitrogen is mainly created by the CNO cycles in stars. Depending on whether the carbon and oxygen that get converted to nitrogen are newly created or pre-existed in the clouds that formed the stars, the resulting nitrogen is called to have a primary origin or a secondary origin. The amount of the secondary nitrogen is very sensitive to metallicity, making nitrogen related lines good metallicity tracers \citep{alloin1979}. Theoretical metallicity calibrations that use nitrogen lines thus strongly rely on the assumed relation between the N/O ratio and metallicity (which we will call the nitrogen prescription hereafter). Higher N/O ratios will result in higher N2 (and slightly lower S2 and R3 due to the thermal balance). \cite{ji2020b} found that the nitrogen prescription provided by \cite{dopita2013} fits the MaNGA H\,{\sc ii} regions best and used this for their SF-ionized model. Therefore, the nitrogen prescription does not contribute to the difference between the JY20 model and the D13 model. It is unclear what kind of nitrogen prescription is used in the L10 model. Judging from the shape of the L10 model in the $P_1$-$P_2$ diagram, it could have used a nitrogen prescription that has too much primary nitrogen, causing overestimated N2 or equivalently underestimated $P_2$ at lower metallicities. The B17 model adopts the nitrogen prescription given by \cite{dopita2000}, which yields a higher N/O at a given metallicity, as is shown in Figure~\ref{fig:nor}. Interestingly, due to the effect of dust depletion and higher solar abundances, the actual N/O ratio (at a given O/H) measured in the gas phase is similar to that in the JY20 model. However, if the relative metallicity (e.g., [O/H] or Z/Z$_\odot$) is used when comparing different models, one should be cautious about the difference in the adopted solar abundances, as we will discuss in the next paragraph. The dust depletion factors modify the gas-phase abundance in H\,{\sc ii} regions by removing part of the elements that condensed into dust grains. The depleted elements have two effects on the line ratios. First, intensities of lines emitted by elements that are significantly depleted will decrease due to the lower abundances. Second, the removed coolants will influence the thermal balance of the cloud and raise the equilibrium temperature, thus strengthening lines emitted by elements that are not significantly depleted. Meanwhile, the increasing amount of dust will also heat up the cloud through the photoelectric effect. The JY20 model uses the default depletion set in {\sc cloudy}, which depletes oxygen by 0.22 dex and does not deplete nitrogen at all \citep{cowie1986, jenkins1987}. In comparison, the D13 model depletes oxygen less by 0.15 dex and depletes nitrogen more by 0.05 dex. Although the difference in oxygen depletion is not small, it is not the main cause of the apparent shift of the D13 model surface from the data at low metallicities. For comparison, we have computed a model using the JY20 parameters but with the D13 depletion set. This model does not significantly deviate from the JY20 model in the $P_1$-$P_2$ diagram, as shown by Figure~\ref{fig:params_com}. The largest separation between this model and the JY20 model is roughly $0.1\sim 0.2$ dex along $P_1$ (with the JY20 model showing overall larger $P_1$ values) and negligible along $P_2$, which occurs in high metallicities rather than low metallicities. For the B17 model, it uses the depletion set provided by \cite{dopita2000}. It depletes oxygen by 0.22 dex, same as JY20. But it depletes 0.22 dex more nitrogen compared to the JY20 model. Its solar nitrogen abundance is 0.22 dex higher, making the gas-phase N/H the same between the two models at fixed O/H. However, B17's adopted solar oxygen abundance is 0.24 dex higher and its solar sulphur abundance is 0.09 dex higher. There are two ways to interpret the consequence from these differences: (1) At the same relative ISM metallicity (relative to solar), [O/H], or stellar metallicity, Z/Z$_{\odot}$ (Z$_{\odot} \approx 0.020$ for both {\sc starburst99} and {\sc fsps}), the absolute gas-phase O/H adopted by the B17 model is higher than that of the JY20 model, which also makes the corresponding post-depleted N/O larger according to the right panel of Figure~\ref{fig:nor}. This makes the predicted R3 and N2 values larger. (2) Alternatively, we could understand the difference as a shifted correspondence between the stellar SEDs and the absolute gas-phase metallicities. At the same (post-depleted) gas-phase O/H, the JY20 model and the B17 model show similar gas-phase N/O as shown in the left panel of Figure~\ref{fig:nor}. However, since the solar O/H is higher in the B17 model, the corresponding [O/H] and Z/Z$_{\odot}$ are lower. Since low metallicity SEDs are in general harder, this makes the B17 model predict larger line ratios. We have computed another model using the JY20 parameters but with the B17 abundances and depletion set. The resulting model indeed predicts larger line ratios and is shifted to the right in the $P_1$-$P_2$ diagram, as shown in Figure~\ref{fig:params_com}. We note that current photoionization code does not treat the dust depletion in a totally self-consistent way. The depletion factors could vary in different locations inside galaxies and could depend on the environment, as noted by \cite{jenkins2009}. It also remains an open question whether sulphur depletes or not in the ISM \citep{sofia1994, jenkins2009, white2011, amayo2021}. For a more general discussion of the effect of dust depletion on predicted line ratios, see Gunasekera et al. in prep. In summary, there are three major factors that contribute to the differences among the models. First of all, the change in the dielectronic recombination rate of $S^{++}$ in the updated {\sc cloudy} makes the JY20 model predicts larger S2, resulting in some of the differences among this model, the D13 model and the L10 model. In addition, the harder stellar SED adopted by the B17 model partly offsets the underestimation of S2 but overestimates N2 and R3. Last but not least, the gas-phase chemical abundance plays an important role. At a given [O/H] or Z/Z$_\odot$, the B17 model has overall higher gas-phase abundances due to a combined effect of their adopted nitrogen prescription, dust depletion set, and solar abundance set, which also contributes to its overestimation of the line ratios. All these factors combined make the JY20 model a better representation of an average H\,{\sc ii} region in our sample. A caveat here is that there is still degeneracy between some of the secondary parameters. For example, a harder stellar SED might be able to cancel out the effect of the underestimation of elemental abundances or overestimation of depletion factors. Independent observational constraints are needed to determine the best values of these parameters. It is possible to include more emission lines and break the degeneracy in even higher dimensions, which is beyond the scope of the current paper. Nevertheless, we have seen that by tuning the model parameters within a reasonable range, we can obtain a best-fit model that lies very close to the majority of H\,{\sc ii} regions in a multidimensional line-ratio space. The true model and its predictions should not be too far from what we have presented here, as long as the adopted secondary model parameters are not significantly biased. The best-fit model we show predicts a positive MI correlation extending from subsolar to supersolar metallicities. In the next section we discuss the physical interpretations of this correlation. \section{Physical interpretations} \label{sec:explanation} \begin{figure*} \includegraphics[width=0.33\textwidth]{Figures/surfha_logu.png} \includegraphics[width=0.33\textwidth]{Figures/rmzr_surfha.png} \includegraphics[width=0.33\textwidth]{Figures/rmzr_logu.png} \caption{Left panel: 2D histogram of the logarithmic ionization parameter and logarithmic H$\alpha$ surface brightness. The density distribution shows the results obtained by the JY20 model using all five line ratios. The dashed red contours and the dotted-dashed black contours show the distributions obtained by using N2O2-O3O2 ratios and N2-S2-R3 ratios, respectively. The contour levels are in logarithmic scales and range from the $\rm 16^{th}$ percentile to the $\rm 84^{th}$ percentile. Middle panel: spatially resolved mass-metallicity relation of the sample spaxels color coded by the median H$\alpha$ surface brightness inside each bin. The black contours represent the density distribution of spaxels obtained by using all five line ratios. Right panel: same as the middle panel but color coded by the median ionization parameter inside each bin.} \label{fig:surfha_logu} \end{figure*} \begin{figure*} \includegraphics[width=0.46\textwidth]{Figures/metq_stellarmass.png} \includegraphics[width=0.46\textwidth]{Figures/metq_halpha.png} \caption{Dependence of the log(U) vs. [O/H] relation on stellar mass surface density (left) and H$\alpha$ surface brightness (right). The ionization parameters and metallicities shown are derived using all five line ratios. The contours represent five density levels equally spaced in the logarithmic space from the $\rm 16^{th}$ percentile to the $\rm 84^{th}$ percentile. The dotted-dashed lines indicate the median relations in different bins.} \label{fig:mstarsfr_dep} \end{figure*} The previous section has shown that according to photoionization models, the metallicity and ionization parameter are correlated. The first theoretical analysis on how these parameters are correlated is given by D06. By studying a dynamical model of a wind-driven bubble that expands over time, D06 found $q\propto (Z/Z_{\odot})^{-0.8}$, where $q=Uc$ and $Z$ is the stellar metallicity. Contrary to this theoretical prediction, our best-fit photoionization model results in a positive MI correlation (assuming the stellar metallicity directly scales with the gas-phase metallicity). This positive correlation has also been noted by many authors \citep[e.g.,][]{dopita2014, poetrodjojo2018, mingozzi2020}. Specifically, D14 studied spatially resolved data of ten Luminous Infrared Galaxies (LIRGs) and found strong MI and SFR-I correlations. Hence it is possible the ionization parameter is related to metallicity through their common dependency on SFR. Although the dynamical model of D06 predicts a negative correlation between the ionization parameter and metallicity, the regulation from star formation could change the statistical behavior in the data. It is also possible that the dynamical model proposed by D06 is simply not realistic enough to describe most of the observed H\,{\sc ii}\ regions, or our photoionization model is oversimplified and introduces bias. In this section, we explore the potential mechanisms that lead to the positive MI correlation, including \begin{enumerate} \item The common dependency of the metallicity and ionization parameter on a third parameter (e.g., SFR and related parameters). \item The incompleteness of the wind-driven bubble model. \item The oversimplification of the photoionization model. \end{enumerate} \subsection{Impact of star formation} Star formation plays an important role in regulating the chemical enrichment of galaxies. At fixed stellar masses, galaxies with higher star formation rates tend to have lower metallicities, leading to the fundamental relation between stellar mass, gas-phase metallicity and SFR \citep{mannucci2010}. Whereas overall the metallicity positively correlates with SFR, as more massive SF galaxies tend to have both higher SFR and higher metallicities. In contrast, the dependence of the ionization parameter on SFR is less clear since it is not a direct observable. D14 explored several possibilities to relate the ionization parameter to SFR. One plausible scenario is the effect of cluster mass. D06 observed in their dynamical model that the ionization parameter weakly depends on the cluster mass \begin{equation} U\propto M_{cl}^{1/5}. \label{eq:cl} \end{equation} According to D06, this relation comes from the dependency of $U$ on the relative density of the H\,{\sc ii}\ region to the ambient medium (see their Equation 12). There is evidence that galaxies undergoing more intense star formation can hold a larger number of massive clusters \citep[e.g.,][]{bastian2008, powell2013}, thus connecting the ionization parameter to SFR. However, D14 also found results that contradict observations using this relation. Their data show $U\propto \Sigma _{SFR}^{0.34}$. Assuming there is no other dependencies, we have $M_{cl}\propto \Sigma _{SFR}^{1.7}$. Combining the relation $\Sigma _{SFR} \propto \Sigma _{cl} M _{cl}$ ($\Sigma _{SFR}$ is the star formation rate surface density and $\Sigma _{cl}$ is the surface number density of young clusters) and the star formation law of \cite{kennicutt1998} $\Sigma _{SFR} \propto \Sigma _{g}^{1.4}$ ($\Sigma _{g}$ is the gas surface density), one gets $\Sigma _{cl} \propto \Sigma _g^{-0.98}$. D14 then argued that observationally speaking, the density of clusters actually increases with increasing gas density, and thus relation~\ref{eq:cl} is not a viable solution. If the ionization parameter is truly regulated by SFR through $U\propto \Sigma _{SFR}^{\alpha}$ with $\Sigma _{cl}$ being the medium, we must have the power-law index $\alpha <0.2$ in order to make $\Sigma _{cl}$ positively correlate with $\Sigma _{g}$. The left panel of Figure~\ref{fig:surfha_logu} shows the spatially resolved SFR-I relation of our sample derived using the J20 model. We use the extinction-corrected $\rm \log \Sigma_{H\alpha}$ to represent $\rm \log \Sigma_{SFR}$ as they differ only by a constant \citep{kennicutt2012}. We can see a weak positive correlation between the two quantities. The correlation is weakest when derived using the N2O2-O3O2 method. If we fit a linear relation to the data, the slope is below 0.2, with the N2-S2-R3 method giving the largest value and the N2O2-O3O2 method giving the smallest value. There is, however, large uncertainty in this relation due to the large intrinsic scatter in log(U). It also appears that the relation is not linear but flattens at high $\rm \log \Sigma_{H\alpha}$. The Pearson correlation coefficients for the (logarithmic) MI correlation, SFR-I correlation, and SFR-M correlation are 0.70, 0.61, and 0.42, respectively. Therefore, despite that the derived slope falls into the plausible range, it is unlikely that the weaker SFR-I and SFR-M correlations are able to give rise to the stronger correlation between metallicity and ionization parameter, with the SFR as the main driver. To produce a stronger MI correlation, the residuals in SFR-I and the residuals in SFR-M have to be correlated, which would mean whatever factor that determines the residual is a more fundamental parameter than SFR to setup the MI correlation. This proves that SFR cannot be the dominant factor for establishing the correlation. D14 also proposed another potential mechanism that modifies the ionization parameter through star formation. The geometry of a realistic H\,{\sc ii}\ region could be highly non-spherical. If the fragmented molecular clouds within an H\,{\sc ii}\ region can survive long enough and move close to the central OB stars due to turbulent motions, they would become highly ionized and raise the overall ionization parameter we observe. D14 found that for SF regions with lower cluster masses or higher pressures, it is possible to have a molecular cloud to cross an H\,{\sc ii}\ region within the lifetime of the OB stars. Specifically, H\,{\sc ii}\ regions older than 1 Myr with $\rm M_{cl} \lesssim 10^4~M_{\odot}$ and $\rm n_H \gtrsim 10^2~cm^3$ can have shorter crossing time compared to the expansion time. However, in MaNGA we found the most of the SF regions have hydrogen densities close to 14 cm$^{-3}$ \citep{ji2020a}, which means the gas pressures are not high enough for the majority of our sample. We also find no correlation between the derived ionization parameter and the density (and pressure) sensitive ratio [S\,{\sc ii}]$\lambda 6716$/[S\,{\sc ii}]$\lambda 6731$ in our sample. Unfortunately, MaNGA does not have enough resolution power for investigations of turbulent motions on sub-kpc scales. Thus, we cannot conclude observationally on the dependency of the turbulent motion on SFR. The theoretical calculation of \cite{joung2009} does predict an increase of gas velocity dispersion due to supernova explosions. Regardless, given the weakness of the SFR-I correlation, this solution is questionable. A related question is the dependence of various relations we consider here on stellar masses. If the ionization parameter positively correlates with both the metallicity and SFR, does it contradict the fundamental relation between stellar mass, gas-phase metallicity and SFR? In the middle and right panel of Figure~\ref{fig:surfha_logu}, we plot the spatially-resolved mass-metallicity relations colored coded by $\rm \log \Sigma_{H\alpha}$ and log(U), respectively. The stellar masses are drawn from the MaNGA {\sc pipe3d} Value Added Catalogue (VAC) \citep{sanchez2016}. The fundamental relation seems not apparent in the local scale, which has also been noted by several works \citep[e.g.,][]{sanchez2013, sanchez2017, barrera-ballesteros2017}. At fixed stellar mass surface density, increasing star formation rate surface density does not significantly lower the gas-phase metallicity on average (but there could still be a small effect as can be seen from the color gradient). On the other hand, $\rm \Sigma_{SFR}$ appears strongly correlates with $\rm \Sigma_{M_*}$. Meanwhile, the right panel of Figure~\ref{fig:surfha_logu} shows that at fixed stellar mass surface density, there is still a strong positive MI correlation. We further check the median MI relations at different stellar mass surface density bins and H$\alpha$ surface brightness bins in Figure~\ref{fig:mstarsfr_dep}. One can see the median MI relations are nearly identical in different $\rm \Sigma_{M_*}$ bins. This indicates that the stellar mass surface density does not drive the MI correlation. If we investigate instead the MI relations in different $\rm \Sigma_{H\alpha}$ bins, we see the MI relations persist in most bins. However, as $\rm \Sigma_{H\alpha}$ increases, the relation becomes flattened and elevated, and nearly vanishes at the highest $\rm \Sigma_{H\alpha}$. This is consistent with what we see in the left panel of Figure~\ref{fig:surfha_logu}: there is a large range of possible $U$ at low $\rm \Sigma_{H\alpha}$ values, but a much narrower range of $U$ at high $\rm \Sigma_{H\alpha}$ values. Ionization parameter saturates at high $\rm \Sigma_{SFR}$ and becomes independent of metallicity. It is possible that at very high $U$, the radiation pressure becomes important and prevents $U$ from getting even larger \citep{yeh2012}. Another potential explanation is related to the diffuse ionized gas (DIG) surrounding the H\,{\sc ii}\ regions. Leaking radiation from the H\,{\sc ii}\ regions could ionized the DIG, which exhibits low ionization states as a result of the diluted ionizing flux. If we limit the sample to only the low SFR regions, where the DIG contribution to the emission-line spectra becomes important, we see the MI correlation also becomes stronger. To explain the trend, however, it requires the molecular clouds with low metallicities to be more leaky compared to the high metallicity clouds, which has not been observed to our best knowledge. Finally, the measurement bias induced by the photoionization models might contribute the this effect as well, which we will detail later in \S~\ref{subsec:geometric_bias}. In summary, there indeed exists a positive SFR-I correlation in our sample. However, the coupling between the metallicity and ionization parameter appears stronger than that between the metallicity and SFR, or between the ionization parameter and SFR. In fact, the dependence on SFR weakens the overall MI correlation, as shown in the right panel of Figure~\ref{fig:mstarsfr_dep}. It is thus questionable whether the main driver of the MI relation is the SFR. While the SFR-I correlation could come from the influence of the cluster mass or the turbulent motions of the molecular clouds inside H\,{\sc ii}\ regions. This is related to the details of the dynamical models for H\,{\sc ii}\ regions, which is the topic of the next subsection. \subsection{Dynamical evolution of HII regions} \begin{figure} \includegraphics[width=0.48\textwidth]{Figures/windbubble.png} \caption{Schematic plot of a wind-driven bubble model. Region $a$ is the free-wind region filled with hypersonic stellar winds. Region $b$ is the shocked-wind region, which sets the inner boundary for the H\,{\sc ii}\ region. Region $c$ is composed of shocked gas. Region $d$ is the H\,{\sc ii}\ region. Depending on the ionization rate, region $d$ can be trapped within region $c$ or extend beyond it. Region $e$ is the ambient neutral medium. The relative sizes of the regions are not to scale.} \label{fig:windbubble} \end{figure} The structure of an H\,{\sc ii}\ region is shaped by the feedback from the central young massive stars. The time evolution of the structure of the H\,{\sc ii}\ region is describe by the dynamical models, which in principle set the initial conditions for photoionization models. In this section, we will discuss dynamical models with different assumptions and whether they lead to any correlation between the metallicity and ionization parameter. Among the various feedback mechanisms considered in the modelling, stellar winds and photoionization are two main factors for shaping the geometry. Without stellar winds and any other source of mechanical energy, the radial structure of the ionized region is solely determined by photoionization, with the simplest case being the two-phase solution given by \cite{spitzer1978}. This solution describes a central star photoionizing a homogeneous cloud purely composed of hydrogen. During the first phase, the ionization front (IF) moves exponentially with a time scale of $\tau = 1/n_e \alpha _B$, where $n_e$ is the electron density and $\alpha _B$ is the recombination coefficient under the on-the-spot approximation. Once the IF reaches the Str\"omgren radius given by \begin{equation} r_S = (\frac{3Q_0 }{4\pi n_e^2 \alpha _B })^{1/3}, \end{equation} the ionization rate equals the recombination rate and the second phase of expansion begins. A shock front is created before the IF and the compressed gas is moving toward the neutral ISM. The location of IF will be given by \begin{equation} r_i = r_S [1+\frac{7c_i (t-t_S )}{4r_S }]^{7/4}, \end{equation} where $c_i$ is the sound speed in the ionized medium (typically $\sim 10~km/s$) and $t_S$ is the time when IF reaches $r_S$. This solution is oversimplified and does not take into account important factors like metals, dust, etc. Meanwhile, we need to define the ionization parameter. Since it would be a function of radius, we need to specify a representative location or define an average to calculate it. One commonly adopted choice is the imagined ionization parameter at the Str\"omgren radius, which can be written as \begin{equation} U_S = \frac{Q_0}{4\pi r_S^2 n_H c} \approx (\frac{Q_0 n_e \alpha _B^2}{36\pi c^3})^{1/3}. \end{equation} Clearly, we have $U_S = <U>_{r<r_S}/3$, where $<U>_{r<r_S}$ is the volume-average ionization parameter inside the Str\"omgren sphere. We note that this expression does not describe the actual ionization parameter measured at the Str\"omgren radius, as the number of ionizing photons decreases with increasing depth into the cloud. Given that $\alpha _B \approx 2.56\times 10^{-13} T_4^{-0.83}~cm^3 s^{-1}$ \citep{draine2011}, we have \begin{equation} U_S \propto Q_0^{1/3}n_e^{1/3}T^{-0.55}. \label{eq:us} \end{equation} If we now consider adding metals to the simple model, $T$ will drop due to cooling and tend to increase $U_S$. In the meanwhile, dust abundances increase with increasing metal abundances \citep{draine2011}, which would heat up the gas due to photoelectric heating. Despite this competing effect, the net result of scaling up metallicity and dust abundances is a drop in $T$, which decreases $r_S$ and thus increases $U_S$. The whole H\,{\sc ii} region would become more compact, as shown by \cite{haworth2015}. On the other hand, according to the {\sc starburst99} models, $Q_0$ drops as metallicity increases, provided that all models are normalized to the same SFR. We can check these dependencies with our measurements. Figure~\ref{fig:mstarsfr_dep} shows that log(U) roughly increases by 0.2 dex as [O/H] changes from 0 to 0.3 (solar to double-solar value). The electron temperature of the corresponding {\sc cloudy} model roughly changes from 8600 K to 6400 K. Using Equation~\ref{eq:us}, we only have 0.06 dex increase in $U_S$. If we scale the stellar metallicity with the gas-phase metallicity, $Q_0$ predicted by the {\sc starburst99} models would drop by 20\% , and the resulting $U_S$ would only increase 0.03 dex. On the other hand, although Equation~\ref{eq:us} predicts a correlation between $U_S$ and $Q_0$ (which can be converted to H$\alpha$ luminosity), it does not reflect the saturation of $U_S$ when the luminosity is high. As a result, the simple dynamical model with photoionization fails to explain the correlations we see. Once the stellar winds are included, the structure of the ISM around the central star cluster changes substantially. Figure~\ref{fig:windbubble} shows the structure of a spherical wind-blown cloud. A wind-driven bubble is created and gradually sweeps the outer H\,{\sc ii} region. Due to their high speed (typically $1500\sim 2500~km/s$ for O-type stars), stellar winds drive shocks into the H\,{\sc ii} region and produce a region with very high temperature and low density (region $b$). For the dynamical models containing stellar winds, the geometry of the H\,{\sc ii} region is set by the inner (shock) radius, $r_{in}$, and the Str\"omgren radius. When the stellar winds are important and thus $r_{in} \gtrsim r_S$, the relative thickness of the H\,{\sc ii} region is determined by the ionization parameter at $r_{in}$ and is generally small if $U < 10^{-3\sim -2.5}$ \citep[][but the exact value depends on assumptions of the dynamical model]{2006ApJ...647..244D}. If the shocked-wind radius is small and/or the ionization parameter is high, the H\,{\sc ii}\ region becomes thick. In this situation, the geometric dilution of the ionization photons would become important. Measuring the ionization parameter of such an H\,{\sc ii}\ region with a photoionization model that has a mismatched geometry would introduce bias. We will discuss a thin H\,{\sc ii}\ region first, and investigate the geometric bias for measuring a thick H\,{\sc ii}\ region in the following section. \cite{weaver1977} gave an analytical solution for such a wind-driven bubble. In their model, H\,{\sc ii} region is a thin isobaric shell. The position of the shell is given by the adiabatic solution \begin{equation} r_{shell} = (\frac{250}{308\pi })^{1/5}L^{1/5}_w \rho ^{-1/5} t^{3/5} \approx r_{in}, \label{eq:wind} \end{equation} where $L_w = \frac{1}{2}\dot{M}v_w^2$ is the mechanical power of the stellar winds and $\rho $ is the density of the ambient medium, i.e. the H\,{\sc ii} region beyond the shock front. The pressure of the H\,{\sc ii} region is \begin{equation} P = \frac{7}{(3850\pi )^{2/5}}L^{2/5}_w \rho ^{3/5} t^{-4/5}. \end{equation} Eliminating $t$ and using $\rho \propto n$, we have: \begin{equation} P \propto (\frac{L_w}{n r_{in}^2})^{2/3}n = [4\pi cU(\frac{L_w}{Q_0})]^{2/3}n, \label{eq:wind_u} \end{equation} where we use $n$ to represent the hydrogen density of the H\,{\sc ii} region. The shell would keep expanding following Equation~\ref{eq:wind} until its internal pressure equals the ambient pressure (i.e. the stall condition). After that, the shell moves in a momentum-conserving way and is finally destroyed by the turbulence \citep{oey1997, dopita2005}. Combining Equation~\ref{eq:wind_u} with $P = nkT$, we have \begin{equation} U \propto (\frac{Q_0}{L_w}) T^{3/2}. \label{eq:wind_u0} \end{equation} This equation is a function of time. According to this equation, increasing the gas-phase metallicity would lower $T$, thus decreasing $U$. Meanwhile, increasing the stellar metallicity would generally lower the $Q_0 /L_w $ ratio as the stellar winds and the stellar atmosphere become more opaque. The add-up effect is a decrease in $U$, which gives an anti-correlation between the ionization parameter and metallicity. For a single massive star, the mass loss rate $\dot{M}$ roughly scales with the stellar metallicity following $\dot{M} \propto Z^{0.5\sim 0.85}$ \citep{puls2008}. Based on the {\sc starburst99} models, D06 estimated the anti-correlation to roughly follow $U \propto Z^{-0.8}$. It is noteworthy that the mechanical energy from the stellar winds have to be manually scaled down by roughly 1 dex to reproduce the observed range of $U$ \citep{dopita2005}. The same discrepancy has been noted by \cite{naze2001} and \cite{harper2009} when comparing the observed sizes and expanding velocities of the interstellar bubbles with theoretical predictions. Hence it is likely that there are mechanisms in reality that lower the efficiency of the power output from stars, which could be related to the fact that the stellar winds are clumpy \citep{evans2004,bouret2005,fullerton2006,puls2006, puls2008}. Besides the inefficiency of stellar winds, \cite{harper2009} suggested that the leakage of the hot shocked gas from H\,{\sc ii}\ regions could also lower the radius and increase the ionization parameter by lowering the internal pressure. Whether and how these hyper parameters depend on the metallicity is unknown and requires further investigations. The above adiabatic solution is based on the assumption that the shocked stellar winds do not have enough time to cool. However, as shown by \cite{maclow1988}, the cooling time of the wind bubble is typically short in dense molecular clouds, with $t_{cool}\lesssim 10^4 yr$. In such cases, the pressure directly comes from the momentum of the winds, \begin{equation} P = \frac{\dot{p}_w}{4\pi r_{in}^2} = \frac{(2\dot{M}L_w )^{1/2}}{4\pi r_{in}^2}. \end{equation} Where $\dot{p}_w$ is the force imposed by the wind momentum and $\dot{M}$ is the mass loss rate of the central star. Equating the above equation with $P=nkT$, we obtain \begin{equation} U = \frac{k}{2^{1/2}c}\frac{Q_0}{(\dot{M}L_w)^{1/2}}T. \end{equation} If the metallicity of the cloud is increased, $T$ and $Q_0$ would decrease, while $(\dot{M}L_w)^{1/2}$ would increase. Therefore, the model still predicts an anti-correlation between the ionization parameter and metallicity, despite in a different form. Thus far, we have discussed dynamical models with and without stellar winds. A related question is whether the stellar winds are important in H\,{\sc ii} regions in general. \cite{geen2020} studied this problem and concludes that dynamically speaking, stellar winds do not play an important role in most H\,{\sc ii} regions. However, stellar winds do shape the geometry of the H\,{\sc ii} regions even when they are dynamically unimportant. In other words, a considerably large shocked wind bubble can exist when the location of the IF is barely affected by the presence of stellar winds. We have seen that none of these dynamical models is able to explain the positive correlation we found between $U$ and $Z$. The complicating factor in this problem is that $U$ is not a direct observable and has to rely on certain assumptions of the geometry of the H\,{\sc ii}\ regions. In reality, the geometries of H\,{\sc ii}\ regions are complicated and can be far from spherical, and $U$ also varies with locations inside H\,{\sc ii}\ regions. It is also unclear how stellar winds shape the shocked bubble when the ambient medium is highly asymmetric and inhomogeneous. The mysterious inefficiency of stellar winds in the wind-drive bubble model could be the key to resolve the problem, which we intend to investigate in future work. Quite surprisingly, despite the complicated picture showing here, the resulting correlation between $U$ and $Z$ is relatively clear and strong. This raises the question about the robustness and reliability of our derivations of these quantities based on photoionization models. In the following section, we discuss this point in detail. \subsection{Geometric bias} \label{subsec:geometric_bias} \begin{figure} \includegraphics[width=0.48\textwidth]{Figures/geo_bias0.png} \caption{The measured ionization parameters and metallicities for a spherically ionized cloud of which the inner radius varies with the metallicity. Each colored line corresponds to H\,{\sc ii}\ regions with the same ionization parameter at their inner radii. The black line shows the median trend we measured in the MaNGA data, with the error bars indicating the standard derivations of log(U) in individual metallicity bins. The measurements are done using N2, S2, R2, N2O2, and O3O2 line ratios.} \label{fig:geo_bias} \end{figure} When measuring the ionization parameter of a given H\,{\sc ii}\ region, one needs to define at which location the ionization parameter is measured. Beside choosing the imagined $U$ at the Str\"omgren radius, choosing the $U$ at the inner radius is common and easy to realize in photoionization modelling. However, the definition of the ionization parameter inevitably introduces an uncertainty associated with the actual geometry of the H\,{\sc ii}\ region, or more precisely, the relative thickness of the H\,{\sc ii}\ region (i.e., $r_{in}/r_{i}$). For a spherical H\,{\sc ii}\ region, the ionizing flux decreases more rapidly with radius due to the geometric dilution. Hence the spherical cloud would have a thinner ionized layer compared to a plane-parallel one with the same inner $U$. Their ionization structures are also different. Roughly speaking, the average location at which we measure the average line ratios would exhibit a lower $U$ for a spherical model, since the ionizing flux dilutes more. In other words, suppose we measure a spherical H\,{\sc ii}\ region with a photoionization model with a plane-parallel geometry, the measured ionization parameter would be lower compared to the ionization parameter defined at the inner radius. Similarly, if we use a spherical model with a larger inner radius to measure a spherical H\,{\sc ii}\ region with a smaller radius, the resulting $U$ would also be underestimated. The amount of the bias depends on the relative thickness of the H\,{\sc ii}\ region. If $r_{in}/r_{i}$ is small, the H\,{\sc ii}\ region is thick and the effect of geometric dilution becomes important. Both the ionization parameter and metallicity affect the thickness of the H\,{\sc ii}\ region. For a higher ionization parameter, there is a larger number of ionizing photons and thus the ionized layer becomes thicker. A higher metallicity, on the other hand, would have two effects. First of all, $r_{i}$ deceases due to both a lower equilibrium temperature and a reduction in the number of ionizing photons, which reduces the thickness of the H\,{\sc ii}\ region. In addition, according to \cite{weaver1977}'s wind-driven bubble model, the inner radius would increase as a result of stronger stellar winds (see Equation~\ref{eq:wind}). If the inner $U$ is held fixed, there would be less geometric dilution as the H\,{\sc ii}\ region becomes more plane-parallel. The combined effect is a less underestimation of the inner $U$ for higher metallicities. Therefore, a spurious MI correlation can be induced by the geometric bias, as the ionization parameters of higher metallicity H\,{\sc ii}\ regions are less underestimated. The final slope of the MI relation depends on both the slope of the intrinsic relation and the amount of the geometric bias. It might also explain the saturation of the MI relation at high SFR. If a cluster has a higher SFR and thus holds more stars, both the number of the ionizing photons and the power of the stellar winds increase, but their ratio remains roughly the same. This keeps the inner $U$ unchanged (see Equation~\ref{eq:wind_u0}), but increases the inner radius. If the SFR is high enough, the metallicity effect could be washed out and the geoemtry become close to plane-parallel overall, producing an apparent saturation of $U$. Still this depends on whether the intrinsic MI relation is flat or not, which is the weak point of this argument as we will discuss shortly. Figure~\ref{fig:geo_bias} shows a example of the geometric bias. Here we measure a spherical H\,{\sc ii}\ region model with the inner radius given by \begin{equation} r_{in} = r_0~(Z/Z_{\odot})^{0.17} = 10~(Z/Z_{\odot})^{0.17}~pc, \label{eq:inner_r} \end{equation} with our best-fit plane-parallel model. We have used Equation~\ref{eq:wind} and assumed the most extreme scaling relation for the mass loss rate, i.e., $\dot{M}\propto (Z/Z_{\odot})^{0.85}$ \citep{puls2008}. We choose the normalization to be $r_0 = 10~pc$, which is typical for a late-stage wind-driven bubble with $\rm t_{age} \gtrsim 1~Myr$ \citep[e.g.,][]{dopita2005, dale2014, geen2020}. As expected, for H\,{\sc ii}\ regions with low ionization parameters at the inner radii, the measured $U$ is closer to $U_{in}$ and barely depends on the metallicity. On the other hand, for H\,{\sc ii}\ regions with high $U_{in}$, there are positive MI correlations caused by the geometric dilution. Still the bias-induced correlation is insufficient to explain the MI correlation we measure in the MaNGA data, assuming the intrinsic MI relation is flat. Scaling down $r_0$ would steepen the slopes of the constant $U_{in}$ lines, but even after we reduce $r_0$ to 3 pc (which is too small for common H\,{\sc ii}\ regions with densities of $\rm 10\sim 100~cm^{-3}$), we still cannot explain the median trend in the MaNGA data with a single constant $U_{in}$ line. Making the metallicity dependence of the inner radius stronger would also yield a steeper slope, but it would require the power-law index in Equation~\ref{eq:inner_r} to be on the order of 1, which is not evident in any dynamical model. Furthermore, once we consider the inner radius as a function of the metallicity, the intrinsic MI correlation is unlikely to be flat anymore. If we follow D06's argument and use $U_{in} \propto (Z/Z_{\odot})^{-0.8}$, it is even harder to reconcile with the results from the MaNGA data. To summarize, the geometric bias could potentially influence the MI trend observed at high ionization parameters, but is insufficient to explain the whole MI relation. We have seen that there is no simple physical picture explaining the entire MI relation in our data. There are, however, uncertainties associated with the self-consistency of the photoionization model, the method to derive the parameters, and the sample remained to be investigated. We will explore these points in the next section. \section{Discussions} \label{sec:discuss} As we have seen in Figure~\ref{fig:fitting}, the derived correlation between the ionization parameter and metallicity strongly depends on the choice of photoionization models. The idea behind our derivations is that there exists a best-fit photoionization model surface sitting in the center of the data distribution in the high dimensional line-ratio space. This implicitly assumes that the ionization parameter and metallicity are two primary parameters that determine a two-dimensional manifold embedded in high dimensions, and observed data tend to cluster around this manifold. The secondary parameters, on the other hand, contribute to the scatters around the manifold. Starting from this point, a few questions remain to be answered. Firstly, is our best-fit model still good enough if we include more emission lines? We already see that our model outperform others in a three-dimensional line-ratio space. In higher dimensions, there are more constraints on model parameters. Models that appear to fit the data in lower dimensions do not necessarily work in higher dimensions (which we have already seen in the case of 2D). Secondly, is our Bayesian approach the right choice to capture the true distributions of the primary parameters given the existence of the intrinsic scatters induced by the secondary parameters? In many similar practices, people have invoked priors in their derivations. How should we interpret the effect of priors? Finally, the choice of sample certainly affects the derivations as it could change the mean values of the secondary parameters. Our best-fit model is based on the MaNGA data. Would the MI correlation still be the same if it is derived from other samples? In what follows, we will investigate the above points. \subsection{Offset between the observed O2 and model predictions} \label{subsec:o2_corr} \begin{figure*} \includegraphics[width=0.95\textwidth]{Figures/o2_corr.png} \caption{$\rm O3O2_{data} - O3O2_{model}$ as a function of the gas-phase metallicity (left panel), ionization parameter (middle panel), and Balmer decrement (right panel). The median trend in each panel is shown as the black line, with the standard deviations indicated by the error bars.} \label{fig:o2_corr} \end{figure*} In Figure~\ref{fig:hist}, one can see that the ionization parameters predicted by the N2-S2-R3 method are systematically higher than those predicted by the N2O2-O3O2 method. This implies that the inclusion of the [O\,{\sc ii}] doublet makes our model no longer optimal in describing the data distribution. To check how much the model surface offsets from the data along the axes containing [O\,{\sc ii}] in high dimensions, we can define the logarithmic emission-line ratio difference as \begin{equation} \rm \Delta \log ER = \log ER_{data} - \log ER_{model} ([O/H]_{3D}, U_{3D}). \end{equation} For a given data point, $\rm ER_{data}$ is its extinction-corrected emission-line ratio (involving [O\,{\sc ii}]), $\rm ER_{model} ([O/H]_{3D}, U_{3D})$ is same emission-line ratio predicted by the model with the metallicity and ionization parameter given by the N2-S2-R3 method. The left and middle panels of Figure~\ref{fig:o2_corr} show the O3O2 difference as a function of $\rm [O/H]_{3D}$ and $\rm U_{3D}$. The median difference in O3O2 reaches $\sim 0.1$ dex at high metallicities and ionization parameters. In comparison, the median O3O2 in our sample changes roughly by 0.4 dex from $\rm [O/H]_{3D} = -0.4$ to $\rm [O/H]_{3D} = 0.4$. There is a clear trend of decreasing O3O2 as $\rm U_{3D}$ increases, indicating a systematic bias in the model predicted O3O2. At high ionization parameters and high metallicities, our model tends to overestimate O3O2, or underestimate O2. However, there is a caveat about this interpretation. The O3O2 used here has an extra uncertainty from the extinction correction. It is observed that the overall Balmer derement (and thus the extinction) is positively correlated with metallicity. Therefore, it is possible that the extinction correction is increasingly overestimated as the metallicity (and thus the ionization parameter) increases. The right panel of Figure~\ref{fig:o2_corr} shows how the O3O2 difference changes as the Balmer decrement increases. One can see a similar relation as shown in the middle panel. The extinction correction we used is based on Balmer decrements and a \cite{fitzpatrick1999} extinction curve with $\rm R_V = 3.1$ is adopted. If we instead use a \cite{cardelli1989} extinction curve, the trend still remains. Interestingly, the absolute O3O2 difference would become smaller if we do not apply the extinction correction (but this time the difference is positive), which again implies that the extinction correction is overestimated. In summary, there could be both systematic offset in the model predictions concerning O2 and the overestimation of the extinction based on Balmer decrements. Although the relative offset in O3O2 is not significant, it is correlated with the predicted ionization parameter and the Balmer decrements. We will investigate the model predicted O2 and the potential systematic uncertainties associated with the extinction correction in detail in a future paper. It is unsurprising that the model already becomes `imperfect' in a four-dimensional space. Although photoionization models work well in predicting a large number of emission lines for individual well-observed H\,{\sc ii}\ regions \citep[e.g.,][]{baldwin1991, jamet2005, morisset2013}, finding a model that reproduces all strong emission lines for the general population of H\,{\sc ii}\ regions is notoriously difficult (see e.g., Section 6 of \citealp{law2021b}, Section 3.2 of \citealp{mingozzi2020}, and references therein). As a compromise, when using photoionization models with the Bayesian inference, people usually assume some non-flat priors for metallicities or ionization parameters, and adding terms representing the intrinsic scatters not reflected by the models \citep[e.g.,][]{perezmontero2014, blanc2015, mingozzi2020}. In the next section, we investigate the effects of these methods and their interpretations. \subsection{Non-flat priors and intrinsic scatters} The introduction of non-flat priors changes the form of the posteriors. Using the likelihood we introduced in Equation~\ref{eq:likelihood}, the posterior is given by \begin{equation} p(\theta |D,M) = \frac{p(\theta |M)p(D|M,\theta )}{p(D|M)}, \end{equation} where $p(\theta |M)$ is the prior and $p(D|M)$ is the normalization factor. Priors come in different forms, which usually assume the distribution of the parameter to follow a certain form within a given range, or correlate with some observables. \cite{mingozzi2020}, for example, used [S\,{\sc iii}]$\lambda \lambda 9068, 9532$/[S\,{\sc ii}]$\lambda \lambda 6716, 6731$ to set a prior for the ionization parameter. Photoionization models predict a very tight correlation between [S\,{\sc iii}]/[S\,{\sc ii}] and the ionization parameter, with little dependence on the metallicity \citep{2019ARA&A..57..511K}. \cite{mingozzi2020} adopted the relation given by \cite{diaz1991} and found that the smaller peak in the metallicity distribution predicted by the D13 model vanish (see the lower left panel of Figure~\ref{fig:hist}). Meanwhile, the correlation between the ionization parameter and metallicity seemed disappear at fixed stellar masses (although the overall correlation still exists). Despite the seemingly advantage of using such a prior for `correcting' the model predictions, one caveat needs to be taken into account. Most of the current photoionization models (including ours) fail to predict the observed range of the [S\,{\sc iii}]/[S\,{\sc ii}] ratios. Under this circumstance, using the correlations between [S\,{\sc iii}]/[S\,{\sc ii}] and $U$ set by photoionization models themselves as priors can introduce bias. There is also risk concerning self-consistency if the relation derived from a model is applied to correct the predictions of another model with different model assumptions. In this work, we have seen that the double-peak features in the metallicity distribution is likely a result of the deviation of the model surface from the dense region of the data distribution in the line-ratio space. The effect of priors is to regulate the mappings between the model parameters and the data positions, which can also be achieved by adjusting the secondary model parameters and make the model surface match the data. We think the latter approach is more physically motivated. Still it would be interesting to see how the photoionization models for H\,{\sc ii}\ regions can be improved to correctly reproduce observed [S\,{\sc iii}]/[S\,{\sc ii}] and update the ionization parameter calibration, which we leave for future investigations. Another potentially useful treatment in the Bayesian inference is the inclusion of model uncertainties. As we have mentioned, the variation in the secondary model parameters manifest themselves as intrinsic scatters in the data distribution. Since each photoionization model uses a single set of secondary model parameters, including terms of constant uncertainties for the model-predicted line ratios might help improve the fitting \citep{blanc2015}. Indeed, if we add a systematic uncertainty of 0.1 dex for each line ratio, the agreement between the N2-S2-R3 method and the N2O2-O3O2 method becomes slightly better, and their predicted distributions for the ionization parameter are more consistent. This might be because the 2D method is more susceptible to intrinsic scatters as there are fewer degrees of freedom. Whereas we need to be cautious that the manually added uncertainties could hide the true discrepancy between different line ratios. An alternative way is to include some of the secondary parameters in the modelling as free parameters. In principle, this would reduce the impact of intrinsic scatters. However, more degeneracy would occur as more free parameters are considered. It would be necessary to add more emission lines and go to higher dimensions, which in turn requires models to accurately simulate more lines. No doubt such a self-consistent treatment is complicated and may be computationally expensive, but it might be worth doing if one wants to understand subtle correlations between different parameters. \subsection{Sample selection effect} \begin{figure} \includegraphics[width=0.48\textwidth]{Figures/sdss_5ratio0.png} \caption{The MI correlation derived from the SF galaxies in the DR7 of SDSS. The counters represent the density distribution of the MaNGA data, with five density levels equally spaced in the logarithmic space from the $\rm 16^{th}$ percentile to the $\rm 84^{th}$ percentile.} \label{fig:sdss} \end{figure} Our derived positive correlation between the metallicity and ionization parameter is entirely based on the spatially resolved MaNGA H\,{\sc ii}\ regions. In this section, we discuss the impact of sample selection on our result. MaNGA's sample galaxies has a relatively flat mass distribution (see \S~\ref{sec:data_models}), this explains why a large fraction of our sample spaxels show high metallicities. The data we use are spatially resolved spaxels. For individual spaxels, the measured spectra are light-weighted. While the density distribution of the spaxels are heavily influenced by the on-sky areas of the H\,{\sc ii}\ regions in galaxies. This makes the MaNGA data to be more weighted towards the outer SF regions in galaxies compared to single spectroscopic data. \cite{2019ARA&A..57..511K} suspected that the MI correlation depends on the scales of observations, with the single fiber spectroscopic data yielding anti-correlations as expected by the wind-driven bubble models while the spatially resolved data giving positive or no correlations. To check this possibility, we apply our method to the SF galaxies in the DR7 of SDSS \citep{2000AJ....120.1579Y, 2009ApJS..182..543A}. We obtain the emission line measurements using the updated code of \cite{yan2006} with flux calibrations and zero-point corrections to the equivalent widths for emission lines \citep{yan2011,yan2018}. The result is shown in Figure~\ref{fig:sdss}. Clearly, there is a similar positive trend like what we see in the spatially resolved case. We thereby conclude that the discrepant MI correlations seen in previous works are not due to the difference between single-fiber observations and IFS observations or the difference between the centers of galaxies and outskirts of galaxies. They are more likely a result of different metallicity and ionization parameter calibrators. Still the spatial resolution of MaNGA is not enough to sample individual H\,{\sc ii}\ regions. The FWHM of MaNGA's PSF is roughly $2^{\prime \prime}_. 5$ \citep{law2015}, which corresponds to $1\sim 2$ kpc at the typical redshifts of MaNGA galaxies. As suggested by \cite{sanders2020} and Mannucci in prep, the observed line ratios from H\,{\sc ii}\ regions could change considerably if individual H\,{\sc ii}\ regions are resolved. There are two effects involved. Firstly, the emission from the diffuse ionized gas (DIG) around H\,{\sc ii}\ regions can be blended with that from within H\,{\sc ii}\ regions. The DIG emission has enhanced low-ionization lines and can impact the determination of metallicities \citep{zhang2017}. The DIG impact can largely be removed by applying a cut to the equivalent width or the surface brightness of the H$\alpha$ line \cite[e.g.][]{2011MNRAS.413.1687C, zhang2017}. The majority of our sample spaxels have large enough EW(H$\alpha$). Thus, the DIG is not likely to be dominant in our case. Secondly, within a single H\,{\sc ii}\ region, the emission line spectrum changes with the aperture size as well. The inner region would be featured by stronger high ionization lines but weaker low ionization lines. How exactly the spectrum changes would depend on the geometry of the H\,{\sc ii}\ region. The ionization parameter, being sensitive to geometry, would also change with the aperture size. The observed ionization parameter of the entire H\,{\sc ii}\ region should thus be related to its internal structure. As we have mentioned, the ionization parameter is not a direct observable most of the time and is not well defined if the the geometry of the H\,{\sc ii}\ region is unclear. Therefore, it is vital to have detailed analyses on well-resolved nearby H\,{\sc ii}\ regions to understand how well the geometry is reflected by the emission line measurements, which could be addressed by future surveys such as the Affordable Multi-Aperture Spectroscopy Explorer \citep[AMASE,][]{yan2020} and SDSS-V/Local Volume Mapper \citep[LVM,][]{kollmeier2017}. Last but not least, the redshift of the H\,{\sc ii}\ region sample could also impact the result. MaNGA's sample is mainly composed of low-redshift galaxies (0.01 < $z$ < 0.14). \cite{sanders2016} and \cite{sanders2020} found no evidence of evolution in the IM relation for their high redshift sample from the MOSDEF survey \citep{kriek2015}, but the range of the MI relation they could measure is limited. Star-forming galaxies with higher redshifts form a offset sequence in the line-ratio space compared to the local ones \citep[e.g.][]{shapley2005, erb2006,steidel2014,shapley2015}. They could have higher electron densities \citep{kewley2013,sanders2016}, elevated N/O vs. O/H relations \citep{shapley2015, sanders2016}, or harder ionizing spectra \citep{steidel2014}, which would generally result in larger N2, S2, and R3 line ratios. The density effect on line ratios of H\,{\sc ii}\ regions is small compared to the changing SED effect \citep{ji2020b}. To fit a high redshift sample, one needs to consider the average changes in all secondary parameters and the potential model degeneracy associated with the changes. The accuracy of the model predictions depends on how well these secondary parameters can be constrained. This requires a better understanding of the mappings between different secondary parameters and observed line ratios in H\,{\sc ii}\ regions. Precise and self-consistent photoionization modelling as well as carefully chosen visualizations of data distribution in multi-dimensional line-ratio space would be the key to solve the problem. \section{Conclusions} \label{sec:conclude} In this work we study the correlation between the gas-phase metallicity and ionization parameter (MI correlation) in general H\,{\sc ii}\ regions and investigate its physical origin. We measure the gas-phase metallicities and ionization parameters for H\,{\sc ii}\ regions in MaNGA data released in SDSS DR15 using four different photoionization models (L10, D13, B17, and JY20). We make the measurements with Bayesian inference and calculate the weighted average values assuming flat priors. A total of five emission line ratios are used for the measurements, including N2, S2, R3, N2O2, and O3O2. We compare the results from different models and different combinations of line ratios. Our conclusions are summarized in the following. \begin{enumerate} \item When compared with the data distribution in the three-dimensional line-ratio space spanned by N2, S2, and R3, our updated model (JY20 model) provides a better fit to the location and the shape of the central surface of the data. \item The goodness of fit in the 3D space can reflect the consistency of the model predictions over different line ratios. This is confirmed by the measurements of metallicities and ionization parameters using different subsets of line ratios. For each model, we carry out three sets of measurements using two line ratios (N2O2 and O3O2), three line ratios (N2, S2, and R3), and five line ratios (N2O2, O3O2, N2, S2, and R3), respectively. Compared to other three models considered in this work (L10, D13, and B17), our model provides the most consistent results no matter which set of line ratios is used. \item With our best-fit photoionization model, we find a positive MI correlation, which is in contrast to the prediction of a wind-driven bubble model frequently used for describing the dynamical evolution of H\,{\sc ii}\ regions. \item In order to solve this discrepancy, we investigate the potential influence from star formation. We find that star formation activities alone are not enough to explain the MI correlation. Our results indicate that the star formation actually contributes to the scatter in the MI correlation. \item We also study the bias brought by the assumed geometry in the photoionization model. Since the relative thickness of a spherical H\,{\sc ii}\ region would change with the metallicity due to changes in temperature and stellar wind power, measuring it using a photoionization model with a fixed geometry introduces a bias correlated with the metallicity. We find that this geometric bias can result in a positive MI correlation, but is still not enough to fully explain the MI correlation in the MaNGA data. \end{enumerate} As a concluding remark, the discrepancy between the measurements from photoionization models and the prediction from the dynamical model is still an open question. Both a better photoionization model that could self-consistently reproduce more emission line ratios, and a better dynamical model that could accurately describe the impact from stellar wind as well as other feedback mechanisms are vital for future studies. Equally important is the detailed analysis of the structures of the nearby H\,{\sc ii}\ regions. Future data release from the Affordable Multi-Aperture Spectroscopy Explorer \citep[AMASE,][]{yan2020} and SDSS-V/Local Volume Mapper \citep[LVM,][]{kollmeier2017} would be useful for resolving this issue. \begin{acknowledgements} We acknowledge support by NSF AST-1715898 and NASA grant 80NSSC20K0436 subaward S000353. Funding for the Sloan Digital Sky Survey IV has been provided by the Alfred P. Sloan Foundation, the U.S. Department of Energy Office of Science, and the Participating Institutions. SDSS acknowledges support and resources from the Center for High-Performance Computing at the University of Utah. The SDSS web site is www.sdss.org. SDSS is managed by the Astrophysical Research Consortium for the Participating Institutions of the SDSS Collaboration including the Brazilian Participation Group, the Carnegie Institution for Science, Carnegie Mellon University, the Chilean Participation Group, the French Participation Group, Harvard-Smithsonian Center for Astrophysics, Instituto de Astrof\'isica de Canarias, The Johns Hopkins University, Kavli Institute for the Physics and Mathematics of the Universe (IPMU) / University of Tokyo, the Korean Participation Group, Lawrence Berkeley National Laboratory, Leibniz Institut f\"ur Astrophysik Potsdam (AIP), Max-Planck-Institut f\"ur Astronomie (MPIA Heidelberg), Max-Planck-Institut f\"ur Astrophysik (MPA Garching), Max-Planck-Institut f\"ur Extraterrestrische Physik (MPE), National Astronomical Observatories of China, New Mexico State University, New York University, University of Notre Dame, Observat\'orio Nacional / MCTI, The Ohio State University, Pennsylvania State University, Shanghai Astronomical Observatory, United Kingdom Participation Group, Universidad Nacional Aut\'onoma de M\'exico, University of Arizona, University of Colorado Boulder, University of Oxford, University of Portsmouth, University of Utah, University of Virginia, University of Washington, University of Wisconsin, Vanderbilt University, and Yale University. \end{acknowledgements} \bibliographystyle{aa}
\section{Introduction} Edge coloring is the problem of assigning a color to each edge of a graph such that no two adjacent edges have the same color. Any edge coloring of a graph with maximum degree $\Delta$ requires at least $\Delta$ colors. Vizing's theorem states that $\Delta + 1$ colors suffice. The minimum number of colors in any edge coloring of a graph is its \emph{chromatic index}. Deciding whether the chromatic index of a graph with maximum degree $\Delta$ is $\Delta$ or $\Delta+1$ is generally a hard computational problem, although a constructive proof of Vizing's theorem~\cite{MG92} implies a polynomial-time approximation algorithm with additive error at most $1$. Holyer~\cite{Ho81} proved that edge coloring cubic graphs with three colors, where $\Delta=3$, is already NP-complete. Extending this result, Leven and Galil~\cite{LG83} proved that edge coloring $\Delta$-regular graphs with $\Delta$ colors is NP-complete for any $\Delta \ge 3$. Cai and Ellis~\cite{CE91} further proved that edge coloring $\Delta$-regular line graphs of bipartite graphs with $\Delta$ colors is NP-complete for any odd $\Delta \ge 3$. On the other hand, it is known that $\Delta$ colors always suffice for edge coloring bipartite graphs; see~\cite[Proposition 18.1.3]{Ca94} for a simple proof. Moreover, edge coloring bipartite graphs (or bipartite multigraphs) admits an efficient polynomial-time exact algorithm, even when $\Delta$ is part of the input~\cite{COS01}. Define the \emph{component size} of a graph as the maximum number of edges in any connected component of the graph. In this paper, we study the following problem that generalizes edge coloring: \begin{definition} Given a graph $G$ and two integers $k \ge 2$ and $c \ge 1$, \textsc{$(k,c)$-Decomposition}\ is the problem of deciding whether $G$ admits an edge partition into $k$ subgraphs with component size at most $c$. \end{definition} We show that graph decomposition becomes hard, even in bipartite graphs, when the upper bound on the component size of the resulting subgraphs is relaxed from $1$ (as in edge coloring) to any fixed $c \ge 2$: \begin{theorem}\label{thm:k2c2} For any fixed $k \ge 2$ and $c \ge 2$, \textsc{$(k,c)$-Decomposition}\ is NP-complete in bipartite graphs. \end{theorem} The \emph{arboricity} of a graph is the minimum number of parts in an edge partition of the graph such that each part induces a forest~\cite{Na64}. The trees in the forests may be restricted to various subclasses of trees, leading to several related concepts of arboricity. For example, the \emph{linear arboricity} (respectively, \emph{star arboricity}) of a graph is the minimum number of parts in an edge partition of the graph such that each part induces a disjoint union of paths (respectively, stars). While the arboricity of any graph can be computed in polynomial time~\cite{GW92}, the arboricities with various restrictions on the trees often turn out to be hard to compute~\cite{Ji18}. Our proof of Theorem~\ref{thm:k2c2} shows that arboricity and star arboricity with bounded component size are also hard to compute: \begin{corollary}\label{cor:arboricity} For any fixed $k \ge 2$ and $c \ge 2$, deciding whether a bipartite graph admits an edge partition into $k$ forests with component size at most $c$ is NP-complete. \end{corollary} \begin{corollary}\label{cor:stararboricity} For any fixed $k \ge 2$ and $c \ge 2$, deciding whether a bipartite graph admits an edge partition into $k$ forests of stars with component size at most $c$ is NP-complete. \end{corollary} The \emph{linear $c$-arboricity} of a graph is the minimum number of parts in an edge partition of the graph into \emph{linear $c$-forests}, i.e., disjoint unions of paths of length at most $c$~\cite{BFHP84}. Note that linear $1$-arboricity is simply chromatic index. Thus the aforementioned results on edge coloring~\cite{Ho81,LG83,CE91} imply that determining the linear $1$-arboricity of a graph is hard. Bermond, Fouquet, Habib, and Peroche~\cite{BFHP84} proved that deciding whether a cubic graph has linear $3$-arboricity at most $2$ is NP-complete, and conjectured that determining the linear $c$-arboricity of a graph is hard for all $c$. Since linear $2$-arboricity is equivalent to arboricity and star arboricity with component size at most $2$, the $c = 2$ case of this conjecture is confirmed by our Corollary~\ref{cor:arboricity} and Corollary~\ref{cor:stararboricity}: \begin{corollary}\label{cor:linear2} For any fixed $k \ge 2$, deciding whether a bipartite graph has linear $2$-arboricity $k$ is NP-complete. \end{corollary} For two graphs $G$ and $H$, an \emph{$H$-decomposition} of $G$ is an edge partition of $G$ into subgraphs isomorphic to $H$. For any fixed graph $H$, the problem of deciding whether an input graph $G$ admits an $H$-decomposition is NP-complete when $H$ has a component of at least three edges~\cite{DT97}, and is polynomially solvable when every component of $H$ has at most two edges~\cite{BL09}, in contrast to Corollary~\ref{cor:linear2}. \bigskip We established in Theorem~\ref{thm:k2c2} that \textsc{$(k,c)$-Decomposition}\ is NP-complete in bipartite graphs. It is natural to ask whether the problem remains hard in simpler graphs. Our next theorem characterizes the complexity of \textsc{$(k,c)$-Decomposition}\ in trees: \begin{theorem}\label{thm:tree} When both $k$ and $c$ are part of the input, \textsc{$(k,c)$-Decomposition}\ in trees is NP-complete, is W[1]-hard with parameter $k$, and is FPT with parameter $c$. \end{theorem} Theorem~\ref{thm:tree} implies that for any fixed $c$, \textsc{$(k,c)$-Decomposition}\ in trees can be solved in polynomial time. For the related arboricity problem of deciding whether a tree admits an edge partition into $k$ linear $c$-forests, Chang, Chen, Fu, and Huang~\cite{CCFH00} presented an algorithm that runs in polynomial time when $c$ is fixed. \bigskip The decision problem \textsc{$(k,c)$-Decomposition}\ may be extended to two different optimization problems: \begin{definition} Given a graph $G$ and an integer $c \ge 1$, \textsc{Minimum-Color Decomposition}\ is the problem of decomposing $G$ into the minimum number of subgraphs with component size at most $c$. \end{definition} \begin{definition} Given a graph $G$ and an integer $k \ge 2$, \textsc{Minimum-Size Decomposition}\ is the problem of decomposing $G$ into $k$ subgraphs minimizing the maximum component size. \end{definition} Theorem~\ref{thm:k2c2} implies that \textsc{Minimum-Color Decomposition}\ for any fixed $c \ge 2$ and \textsc{Minimum-Size Decomposition}\ for any fixed $k \ge 2$ are APX-hard and inapproximable within a factor of $3/2$ in bipartite graphs. The previous results on edge coloring~\cite{Ho81,LG83,CE91} imply that \textsc{Minimum-Color Decomposition}\ for $c = 1$ is APX-hard and inapproximable within a factor of $4/3$ in general graphs. In the next two theorems, we show that both minimization problems can be approximated very well in trees: \begin{theorem}\label{thm:mcd} There is a linear-time approximation algorithm for \textsc{Minimum-Color Decomposition}\ in trees that finds an edge partition of any tree $T$ into at most $k^* + 1$ subgraphs with component size at most $c$, where $k^*$ is the smallest number such that $T$ can be decomposed into $k^*$ subgraphs with component size at most $c$. \end{theorem} \begin{theorem}\label{thm:msd} There is a polynomial-time approximation scheme for \textsc{Minimum-Size Decomposition}\ in trees that finds an edge partition of any tree $T$ into $k$ subgraphs with component size at most $(1+\epsilon)c^*$, where $c^*$ is the smallest number such that $T$ can be decomposed into $k$ subgraphs with component size at most $c^*$. \end{theorem} Kleinberg, Motwani, Raghavan, and Venkatasubramanian~\cite{KMRV97} introduced \textsc{$(k,c)$-Fragmented Coloring}, the problem of vertex partitioning a graph into $k$ induced subgraphs such that the number of vertices in each component of each subgraph is at most $c$. Our problem \textsc{$(k,c)$-Decomposition}\ is equivalent to \textsc{$(k,c)$-Fragmented Coloring}\ in line graphs, since edge partitioning a graph $G$ is the same as vertex partitioning the line graph $L(G)$. The problem \textsc{$(k,c)$-Fragmented Coloring}\ in general graphs is easily shown to be NP-hard for any $k \ge 2$ and $c \ge 2$, because the graph property of at most $c$ vertices in each component is additive and induced-hereditary, while vertex partitioning into fixed additive induced-hereditary properties is NP-hard in general~\cite{Fa04}, except the special case of bipartite testing, i.e., vertex partitioning into two independent sets. Also, the problem is trivial in bipartite graphs (and hence in trees), since every bipartite graph has a vertex partition into two induced subgraphs in which every component has only one vertex. \bigskip Our proofs of Theorem~\ref{thm:tree}, Theorem~\ref{thm:mcd}, and Theorem~\ref{thm:msd} are based on a close relationship between \textsc{$(k,c)$-Decomposition}\ in trees and the classical problem of \textsc{Bin Packing}: \begin{definition}\label{def:bp} Given $n$ items of integer weights $w_i$, $1 \le i \le n$, and $k$ bins of integer capacity $c$, \textsc{Bin Packing}\ is the problem of deciding whether the $n$ items can be packed into the $k$ bins, that is, whether the set of $n$ items can be partitioned into $k$ subsets, such that the total weight of the items in each subset is at most $c$. \textsc{Unary Bin Packing}\ is the version of \textsc{Bin Packing}\ where all integers in the problem instance are encoded in unary. \end{definition} It is well-known that \textsc{Bin Packing}\ is strongly NP-hard~\cite{GJ79}, and hence \textsc{Unary Bin Packing}\ is NP-hard, when both $k$ and $c$ are part of the input. In terms of parameterized complexity, Jansen et~al.~\cite{JKMS13} proved that \textsc{Unary Bin Packing}, even with the condition $\sum_{i=1}^n w_i = k c$, is already W[1]-hard with parameter $k$. In the following theorem, we obtain a fixed-parameter algorithm for \textsc{Bin Packing}\ with parameter $c$: \begin{theorem}\label{thm:fpt} \textsc{Bin Packing}\ admits an exact algorithm running in $2^{O(c^{3/2})}N^{O(1)}$ time, where $N$ is the size of the problem instance encoded in binary. \end{theorem} Hochbaum and Shmoys~\cite{HS87} introduced the notion of \emph{dual approximation algorithms} that approximate the feasibility of a problem rather than its optimality. The existence of dual approximation algorithms for \textsc{Bin Packing}, similar to the one in the following theorem, are known~\cite[Sections 9.3.2.1 and 9.3.2.2]{Ho97}. We obtain a simple alternative via Theorem~\ref{thm:fpt}. \begin{theorem}\label{thm:dual} \textsc{Bin Packing}\ admits a dual approximation algorithm that, given $n$ items and $k$ bins of capacity $c$, and given $0 < \epsilon \le 1$, either decides that the $n$ items can be packed into $k$ enlarged bins of capacity $(1+\epsilon)c$ and returns yes, or decides that the $n$ items cannot be packed into $k$ bins of capacity $c$ and returns no, in $2^{O(\epsilon^{-3})}N^{O(1)}$ time, where $N$ is the size of the problem instance encoded in binary. \end{theorem} Throughout the paper, the \emph{size} of a graph is the number of edges in it. We may refer to an edge partition of a graph into $k$ subgraphs and the corresponding $k$-color assignment to the edges interchangeably. \section{Hardness of decomposing bipartite graphs} In this section we prove Theorem~\ref{thm:k2c2}, Corollary~\ref{cor:arboricity}, and Corollary~\ref{cor:stararboricity}. Fix any $k \ge 2$ and $c \ge 2$. The problem \textsc{$(k,c)$-Decomposition}\ and the related arboricity problems are clearly in NP\@. We prove their NP-hardness in bipartite graphs in the following. \subsection{Building blocks $H_i$} The building blocks of our construction are a series of bipartite graphs $H_i = H_i(k,c)$ for $i \ge 0$. $H_0$ is the star $K_{1,kc}$ with one edge designated as an \emph{outlet}. For $i > 0$, $H_i$ has $c^i$ outlets and is constructed recursively as follows. Take $k-1$ disjoint copies of $H_{i-1}$ and $c^{i-1}$ disjoint copies of $K_{1,c}$. Attach a distinct outlet from each copy of $H_{i-1}$ to the center of each copy of $K_{1,c}$. Then designate the edges of all copies of $K_{1,c}$ in the resulting graph $H_i$ as its outlets. Refer to Figures~\ref{fig:k2c3} and~\ref{fig:k3c2} for some examples. It is easy to verify that $H_i$ is bipartite. Since it includes $(k-1)^i$ copies of $K_{1,kc}$ and $\sum_{j = 1}^i c^{j-1}(k-1)^{i - j}$ copies of $K_{1,c}$, its size is at most \begin{equation}\label{eq:H} (k-1)^i kc + \sum_{j = 1}^i c^j(k-1)^{i - j} \le (k-1)^i kc + (c+k)^i \le (c+k)^i(kc + 1) \le (c+k)^{i+2}. \end{equation} \begin{figure}[htbp] \centering\includegraphics{k2c3} \caption{$H_0$, $H_1$, and $H_2$ for $k = 2$ and $c = 3$.} \label{fig:k2c3} \end{figure} \begin{figure}[htbp] \centering\includegraphics{k3c2} \caption{$H_2$ for $k = 3$ and $c = 2$.} \label{fig:k3c2} \end{figure} \begin{lemma}\label{lem:H} $H_i$ admits an edge partition into $k$ subgraphs with component size at most $c$. Moreover, in any edge partition of $H_i$ into $k$ subgraphs with component size at most $c$, each component must be a star $K_{1,c}$, and the $c^i$ outlets must belong to the same subgraph. \end{lemma} \begin{proof} We prove the lemma by induction on $i$. For the base case when $i = 0$, the lemma clearly holds for $H_0 = K_{1,kc}$. Now let $i \ge 1$ for the inductive step. We first show that $H_i$ admits an edge partition into $k$ subgraphs with component size at most $c$. By the induction hypothesis, $H_{i-1}$ admits an edge partition into $k$ subgraphs in which each component is a star $K_{1,c}$, and the $c^{i-1}$ outlets are in the same subgraph. Consider the $k$-color assignment to the edges of $H_{i-1}$ corresponding to this edge partition. Then by rotation of colors, there is an edge partition of the union of the $k-1$ copies of $H_{i-1}$ in $H_i$, such that the outlets from different copies have different colors. Thus the outlets from the $k-1$ copies of $H_{i-1}$ have $k-1$ different colors. Assign the remaining color to all edges of the $c^{i-1}$ disjoint copies of $K_{1,c}$ in $H_i$. This color assignment corresponds to an edge partition of $H_i$ into $k$ subgraphs in which each component is a star $K_{1,c}$, and the $c^i$ outlets are all in the same subgraph. We next show that in any edge partition of $H_i$ into $k$ subgraphs with component size at most $c$, each component must be a star $K_{1,c}$, and the $c^i$ outlets must be in the same subgraph. Consider an arbitrary edge partition of $H_i$ into $k$ subgraphs with at most $c$ edges in each component, and the corresponding $k$-color assignment to the edges of $H_i$. Then in the derived edge partition of each copy of $H_{i-1}$ in $H_i$, each component is a star $K_{1,c}$, and all $c^{i-1}$ outlets are in the same subgraph, by the induction hypothesis. Moreover, since each component in each copy of $H_{i-1}$ already has the maximum allowable size $c$, the outlets from different copies of $H_{i-1}$ must have different colors to avoid forming larger components. Then all edges of the $c^{i-1}$ disjoint copies of $K_{1,c}$ in $H_i$ must have the only remaining color. \end{proof} \subsection{Reduction for $k = 2$} Our proof for the $k = 2$ case of Theorem~\ref{thm:k2c2}, Corollary~\ref{cor:arboricity}, and Corollary~\ref{cor:stararboricity} is based on a reduction from the NP-complete problem \textsc{2-Colorability of 3-Uniform Hypergraphs}~\cite{Lo73}. A \emph{$q$-uniform hypergraph} consists of a set $V$ of vertices and a set $E$ of hyperedges, where each hyperedge in $E$ is a subset of exactly $q$ vertices in $V$. A hypergraph is \emph{$k$-colorable} if its vertices can be colored with $k$ colors such that in each hyperedge, not all $q$ vertices have the same color. Given a $3$-uniform hypergraph $G$, we will construct a bipartite graph $G_2$ with maximum degree $2c$ such that $G$ is $2$-colorable if and only if $G_2$ admits an edge partition into $2$ subgraphs with component size at most $c$. Let $\Delta$ be the maximum degree of $G$, that is, the maximum number of hyperedges in which a vertex is contained. Let $j$ be the smallest integer such that $c^j \ge (c-1)\Delta$. Include in $G_2$ a distinct copy of $H_j$ for each vertex in $G$, and a distinct copy of $K_{1,c+1}$ for each hyperedge in $G$. For each hyperedge in $G$, which consists of three vertices, take $c+1$ distinct outlets from the corresponding three copies of $H_j$, with at least one outlet from each copy, then attach the $c+1$ outlets to the $c+1$ leaves of the copy of $K_{1,c+1}$ corresponding to the hyperedge, with one outlet to each leaf. This completes the construction of $G_2$. Recall that $H_j$ has $c^j$ outlets. Since $c^j \ge (c-1)\Delta$, each copy of $H_j$ can contribute at least $c-1$ distinct outlets to each adjacent copy of $K_{1,c+1}$. On the other hand, of the three copies of $H_j$ adjacent to each copy of $K_{1,c+1}$, each must contribute at least $1$ and hence at most $c+1 - 2 = c-1$ of the $c+1$ outlets. Thus there are enough outlets from each copy of $H_j$ to the adjacent copies of $K_{1,c+1}$. By our choice of $j$, we have $c^{j-1} < (c-1)\Delta$ and hence $c^j < c^2 \Delta$. Recall~\eqref{eq:H} that the size of $H_j$ is at most $(c+k)^{j+2}$. Since $k = 2$ and $c \ge 2$, we have $$ (c+k)^{j+2} \le (c^2)^{j+2} = c^4 (c^j)^2 < c^4 (c^2 \Delta)^2 = c^8 \Delta^2. $$ The reduction is clearly polynomial. The following lemma completes the proof for the $k = 2$ case of Theorem~\ref{thm:k2c2}, Corollary~\ref{cor:arboricity} and Corollary~\ref{cor:stararboricity}: \begin{lemma}\label{lem:k2} $G$ is $2$-colorable if and only if $G_2$ admits an edge partition into two subgraphs with component size at most $c$, if and only if $G_2$ admits an edge partition into two forests with component size at most $c$, if and only if $G_2$ admits an edge partition into two forests of stars with component size at most $c$. \end{lemma} \begin{proof} It suffices to prove a cycle of four implications: \begin{enumerate}\setlength\itemsep{0pt} \item if $G$ is $2$-colorable, then $G_2$ admits an edge partition into two forests of stars with component size at most $c$, \item if $G_2$ admits an edge partition into two forests of stars with component size at most $c$, then $G_2$ admits an edge partition into two forests with component size at most $c$, \item if $G_2$ admits an edge partition into two forests with component size at most $c$, then $G_2$ admits an edge partition into two subgraphs with component size at most $c$, \item if $G_2$ admits an edge partition into two subgraphs with component size at most $c$, then $G$ is $2$-colorable. \end{enumerate} We first prove implication 1. Suppose that there is a $2$-coloring of the vertices of $G$ such that in each hyperedge, not all three vertices have the same color. Color the edges in each copy of $H_j$ in $G_2$ with two colors to partition them into two subgraphs as in Lemma~\ref{lem:H}, such that all $c^j$ outlets in each copy of $H_j$ have the same color as the corresponding vertex in $G$. Next color the edges in each copy of $K_{1,c+1}$ in $G_2$ corresponding to a hyperedge in $G$, such that each edge of $K_{1,c+1}$ has a color different (note that there are only two colors available) from the adjacent outlet. Since in each hyperedge of $G$ not all three vertices have the same color, and since the $c+1$ outlets adjacent to the $c+1$ edges of $K_{1,c+1}$ include at least one outlet from each of the three copies of $H_j$, it follows that not all $c+1$ edges have the same color. Thus we obtain an edge partition of $G_2$ into two subgraphs with component size at most $c$. Note that the two subgraphs are indeed two forests of stars. Implications 2 and 3 are trivial. We next prove implication 4. Suppose that $G_2$ admits an edge partition into two subgraphs with component size at most $c$. Color the edges of $G_2$ with two colors according to this partition. Then it follows by Lemma~\ref{lem:H} that in each copy of $H_j$ in $G_2$, each component is a star with $c$ edges, and all outlets have the same color. Assign this color to the corresponding vertex in $G$. Since each outlet of $H_j$ is already in a component of the maximum allowable size $c$, each edge of $K_{1,c+1}$ must have a color different from its adjacent outlet. In each copy of $K_{1,c+1}$, not all $c+1$ edges can have the same color under the constraint of component size at most $c$. Correspondingly, in each hyperedge of $G$, not all three vertices have the same color either. Thus $G$ is $2$-colorable. \end{proof} \subsection{Reduction for $k \ge 3$} Our proof for the $k \ge 3$ case of Theorem~\ref{thm:k2c2}, Corollary~\ref{cor:arboricity}, and Corollary~\ref{cor:stararboricity} is based on a reduction from the NP-complete problem \textsc{$k$-Colorability}, which asks whether a given graph $G$ admits a vertex coloring with $k$ colors. Maffray and Preissmann~\cite{MP96} proved that for any $k \ge 3$, \textsc{$k$-Colorability} is NP-hard even in triangle-free graphs. Emden-Weinert, Hougardy, and Kreuter~\cite{EHK98} proved that for any $k \ge 3$, \textsc{$k$-Colorability} is NP-hard in graphs with maximum degree $k + \lceil\sqrt{k}\,\rceil - 1$. Note that \textsc{$k$-Colorability} for $k = 2$ is just bipartite testing which is well-known to be solvable in polynomial time. Thus we had to prove the $k = 2$ case by reduction from a different problem. Let $G$ be an input graph for \textsc{$k$-Colorability}. Construct $G_k$ as follows. Let $j$ be the smallest integer such that $c^j$ is at least the maximum degree of $G$. For each vertex in $G$, include in $G_k$ a distinct copy of $H_j$. For each edge in $G$, which consists of two vertices, take a distinct outlet from the copy of $H_j$ for each vertex, then join the two ends of the two outlets into one vertex. It is easy to verify that $G_k$ is bipartite, and the reduction is polynomial. Moreover, by a similar argument as in the proof of Lemma~\ref{lem:k2}, $G$ is $k$-colorable if and only if $G_k$ admits an edge partition into $k$ subgraphs with component size at most $c$, if and only if $G_k$ admits an edge partition into $k$ forests with component size at most $c$, if and only if $G_k$ admits an edge partition into $k$ forests of stars with component size at most $c$. \bigskip This completes the proof of Theorem~\ref{thm:k2c2}, Corollary~\ref{cor:arboricity}, and Corollary~\ref{cor:stararboricity}. \section{Fixed-parameter algorithm for bin packing} In this section we prove Theorem~\ref{thm:fpt} by obtaining a fixed-parameter algorithm for \textsc{Bin Packing}\ with parameter $c$. Recall Definition~\ref{def:bp} that the input to \textsc{Bin Packing}\ consists of $n$ items of integer weights $w_i$, $1 \le i \le n$, and $k$ bins of integer capacity $c$. The problem has a solution only if $\max\{ w_i \mid 1 \le i \le n\} \le c$ and $\sum_{i=1}^n w_i \le k c$, which we assume. Let $N$ be the size of the problem instance encoded in binary. Then $N = \Theta(n + \sum_{i=1}^n \log w_i + \log k + \log c)$. In particular, we have $\log kc = O(N)$. For $1 \le w \le c$, let $a_w$ be the number of items with weight $w$. In $N^{O(1)}$ time, we can compute $a_w$ for all $w$. Then $\sum_{w=1}^c w\,a_w = \sum_{i=1}^n w_i \le k c$. With the multiplicities $a_w$ for $1 \le w \le c$, we no longer need $w_i$ for $1 \le i \le n$. Henceforth, we work on the $c$ integers $a_w$ only. Without loss of generality, we increase $a_1$ until $\sum_{w=1}^c w\,a_w = k c$. Note that each $a_w$ has magnitude at most $kc$, where $\log kc = O(N)$. It remains to decide whether the items with multiplicities $a_w$ can be partitioned into $k$ subsets, each of total weight exactly $c$. Consider the two vectors $\boldsymbol{w} = (1,2,\ldots,c)$ and $\boldsymbol{a} = (a_1,a_2,\ldots,a_c)$ in $\mathbb{Z}_{\ge0}^c$. Then the condition $\sum_{w=1}^c w\,a_w = kc$ becomes $\boldsymbol{w}\cdot\boldsymbol{a} = kc$. For $b \ge 0$, let $$ \P_b = \{\, \boldsymbol{x} \in \mathbb{Z}_{\ge 0}^c \mid \boldsymbol{w}\cdot \boldsymbol{x} = b \,\}. $$ Then $\P_c$ is the set of vectors corresponding to all feasible \emph{patterns} of item multiplicities for a single bin, and we can reformulate the problem as deciding whether there exists a multiset of vectors in $\P_c$ whose sum is $\boldsymbol{a}$. Recall that the \emph{partition number} $p(n)$ for $n \ge 0$ is the number of multisets of positive integers summing up to $n$. In particular, $p(0) = 1$. Then, by definition, the size of $\P_c$ is exactly $p(c)$. Moreover, the size of $\P_b$ is at most $p(b)$ for all $b \ge 0$. It is known that $p(n) = 2^{O(\sqrt{n})}$~\cite[Theorem 15.7]{LW01}. Let $d(c) \ge 0$ be the smallest integer such that $2^d > \sum_{h=0}^d p(hc)$ for all $d > d(c)$. Since $\sum_{h=0}^d p(hc) = 2^{O(\sqrt{d c})}$, we have $d(c) = O(c)$. Let $\boldsymbol{v}_i$, $1 \le i \le p(c)$, be the vectors in $\P_c$. For any index set $I \subseteq \{ 1,\ldots, p(c) \}$, the vector $\sum_{i\in I} \lambda_i \boldsymbol{v}_i$, where $\lambda_i \in \mathbb{Z}_{\ge 0}$ for all $i \in I$, is called an \emph{integer conical combination} of vectors in $\P_c$. Consider the \emph{integer conical hull} of $\P_c$ consisting of all integer conical combinations of vectors in $\P_c$: $$ \mathrm{int.cone}(\P_c) = \bigg\{\, \sum_{i=1}^{p(c)} \lambda_i \boldsymbol{v}_i \;\Big\vert\; \lambda_i \in \mathbb{Z}_{\ge 0} \textrm{ for } 1 \le i \le p(c) \bigg\}. $$ We prove the following lemma using a common technique for Carath\'eodory bounds; see for example~\cite[Lemma 3]{ES06}. \begin{lemma}\label{lem:cone} Every vector in $\mathrm{int.cone}(\P_c)$ can be represented as the integer conical combination of at most $d(c)$ distinct vectors in $\P_c$. \end{lemma} \begin{proof} Let $I$ be any set of $d$ distinct indices from $\{ 1,\ldots, p(c) \}$, where $0 \le d \le p(c)$. Then $I$ has $2^d$ distinct subsets. Denote by $|H|$ the size of a set $H$. For each subset $H \subseteq I$, where $0 \le |H| \le d$, the vector $\boldsymbol{x} = \sum_{i\in H} \boldsymbol{v}_i$ satisfies $$ \boldsymbol{w}\cdot\boldsymbol{x} = \boldsymbol{w}\cdot \sum_{i\in H} \boldsymbol{v}_i = \sum_{i\in H} \boldsymbol{w}\cdot \boldsymbol{v}_i = \sum_{i\in H} c = |H|\,c, $$ and hence $\boldsymbol{x} \in \P_{hc}$ with $h = |H|$. Thus $\boldsymbol{x}$ is one of the vectors in $\cup_{h=0}^d \P_{hc}$. Consider any vector $\boldsymbol{u} = \sum_{i\in I} \lambda_i \boldsymbol{v}_i$, where $\lambda_i \in \mathbb{Z}_{> 0}$ for all $i\in I$. Suppose that $d > d(c)$. Then by our choice of $d(c)$, we have $2^d > \sum_{h=0}^d p(hc)$. Note that the number of vectors in $\cup_{h=0}^d \P_{hc}$ is at most $\sum_{h=0}^d p(hc)$. Thus the number of distinct subsets of $I$ exceeds the number of vectors in $\cup_{h=0}^d \P_{hc}$. By the pigeonhole principle, there are two distinct subsets $A$ and $B$ of $I$ such that $\sum_{i\in A} \boldsymbol{v}_i = \sum_{i\in B} \boldsymbol{v}_i$. Then $A' = A\setminus B$ and $B' = B\setminus A$ are two distinct and disjoint subsets of $I$ such that $\sum_{i\in A'} \boldsymbol{v}_i = \sum_{i\in B'} \boldsymbol{v}_i$. Assume without loss of generality that $A' \neq \emptyset$. Let $\lambda = \min\{\, \lambda_i \mid i \in A' \,\}$. We can rewrite $\boldsymbol{u}$ as follows: \begin{align*} \sum_{i\in I} \lambda_i \boldsymbol{v}_i &= \sum_{i\in I\setminus(A'\cup B')} \lambda_i \boldsymbol{v}_i + \sum_{i\in A'} \lambda_i \boldsymbol{v}_i + \sum_{i\in B'} \lambda_i \boldsymbol{v}_i\\ &= \sum_{i\in I\setminus(A'\cup B')} \lambda_i \boldsymbol{v}_i + \sum_{i\in A'} (\lambda_i - \lambda) \boldsymbol{v}_i + \sum_{i\in B'} (\lambda_i + \lambda) \boldsymbol{v}_i = \sum_{i\in I} \mu_i \boldsymbol{v}_i, \end{align*} where $$ \mu_i = \left\{ \begin{array}{ll} \lambda_i &\textrm{for } i\in I\setminus(A'\cup B')\\ \lambda_i - \lambda &\textrm{for } i\in A'\\ \lambda_i + \lambda &\textrm{for } i\in B'. \end{array} \right. $$ Note that $\mu_i \in \mathbb{Z}_{\ge 0}$ for all $i\in I$, and that $\mu_i = 0$ for at least one index $i \in A' \subseteq I$. Thus $\boldsymbol{u}$ is expressed as the integer conical combination of at most $d - 1$ distinct vectors in $\P_c$. By repeating the above argument, we can eventually obtain a representation of $\boldsymbol{u}$ as the integer conical combination of at most $d(c)$ distinct vectors in $\P_c$. \end{proof} If there is a multiset of vectors in $\P_c$ summing up to $\boldsymbol{a}$, then $\boldsymbol{a}$ is an integer conical combination of vectors in $\P_c$, and hence is included in $\mathrm{int.cone}(\P_c)$, and hence by Lemma~\ref{lem:cone} can be represented as an integer conical combination of $d \le d(c)$ distinct vectors in $\P_c$. Thus to decide whether there exists a multiset of vectors in $\P_c$ whose sum is $\boldsymbol{a}$, we can enumerate all subsets of $\{1,\ldots,p(c)\}$ of size $d \le d(c)$, then for each subset $I$, check whether $\sum_{i\in I} \lambda_i \boldsymbol{v}_i = \boldsymbol{a}$ has a solution with $\lambda_i \in \mathbb{Z}_{\ge 0}$ for all $i\in I$. The checking step reduces to an integer linear program, with $O(c)$ linear constraints on at most $d(c) = O(c)$ variables $\lambda_i$, and with integer coefficients at most $kc$, where $\log kc = O(N)$. We now analyze the running time of our algorithm. Recall that converting the item weights $w_i$ to multiplicities $a_w$ takes $N^{O(1)}$ time. Finding the $p(c)$ vectors in $\P_c$, $\boldsymbol{v}_i$ for $1 \le i \le p(c)$, takes $c^{O(c)}$ time. The number of subsets of $\{1,\ldots,p(c)\}$ of size $d \le d(c)$ is at most $(p(c))^{d(c)} = (2^{O(\sqrt{c})})^{O(c)} = 2^{O(c^{3/2})}$. Solving an integer linear program with $n$ variables and $m$ constraints and with maximum coefficient $\Delta$ takes $n^{O(n)} m^{O(1)} (\log\Delta)^{O(1)}$ time\footnote{See discussion at \url{https://cstheory.stackexchange.com/questions/16530} for more refined estimates.}~\cite{Le83,Ka87}. In our setting, this is $(O(c))^{O(c)} (O(c))^{O(1)} (O(N))^{O(1)} = c^{O(c)}N^{O(1)}$. Thus the total running time is $N^{O(1)} + c^{O(c)} + 2^{O(c^{3/2})}\cdot c^{O(c)}N^{O(1)}$, which simplifies to $2^{O(c^{3/2})}N^{O(1)}$, since $c^{O(c)} = 2^{O(c\log c)}$. This completes the proof of Theorem~\ref{thm:fpt}. \newpage \section{Dual approximation algorithm for bin packing} In this section we prove Theorem~\ref{thm:dual}. Fix any $0 < \epsilon \le 1$. Separate the $n$ items into two groups: \emph{small} items of weight at most $\epsilon c$, and \emph{large} items of weight greater than $\epsilon c$. Let $c' = \lfloor 2\epsilon^{-2} \rfloor$. Note that $c' \cdot \epsilon^2 c / 2 \le c$. For each large item of weight $w_i > \epsilon c$, let $w'_i$ be the largest integer such that $w'_i\cdot \epsilon^2 c / 2 \le w_i$. Then $(w'_i + 1)\cdot \epsilon^2 c / 2 > w_i$. The algorithm works as follows. If the total weight of the $n$ items exceeds $kc$, then clearly the $n$ items cannot be packed into $k$ bins of capacity $c$, so return no. Otherwise, construct a set of scaled items including one item of weight $w'_i$ for each large item of weight $w_i$. Use the fixed-parameter algorithm in Theorem~\ref{thm:fpt} to decide whether the set of at most $n$ scaled items $w'_i$ can be packed into $k$ scaled bins of capacity $c'$, then return the answer accordingly. \begin{lemma} If the scaled items can be packed into $k$ scaled bins of capacity $c'$, then the $n$ items can be packed into $k$ enlarged bins of capacity $(1+\epsilon)c$. \end{lemma} \begin{proof} For each large item of weight $w_i > \epsilon c$, the corresponding scaled item has weight $$ w'_i > \frac{w_i}{\epsilon^2 c / 2} - 1 > \frac{\epsilon c}{\epsilon^2 c / 2} - 1 = 2\epsilon^{-1} - 1 \ge \epsilon^{-1}. $$ Thus each scaled bin of capacity $c' = \lfloor 2\epsilon^{-2} \rfloor$ can hold at most $\lfloor 2\epsilon^{-2} \rfloor / \epsilon^{-1} \le 2\epsilon^{-1}$ scaled items. For the scaled items in each scaled bin, the sum of their weights $w'_i$ is at most $c'$, and hence the sum of $w'_i\cdot \epsilon^2 c / 2$ is at most $c'\cdot \epsilon^2 c / 2 \le c$. Recall that $w'_i\cdot \epsilon^2 c / 2 \le w_i < (w'_i + 1)\cdot \epsilon^2 c / 2$, and hence $w_i - w'_i\cdot \epsilon^2 c / 2 < \epsilon^2 c / 2$. Corresponding to the at most $2\epsilon^{-1}$ scaled items in each scaled bin, the total weight of the large items can exceed $c$ by at most $2\epsilon^{-1} \cdot \epsilon^2 c / 2= \epsilon c$, and hence is at most $(1 + \epsilon)c$. Thus we can pack all large items into $k$ enlarged bins of capacity $(1 + \epsilon)c$. Since the total weight of both large and small items is at most $kc$, at least one of the $k$ enlarged bins is filled to at most $c$ of its capacity $(1+\epsilon)c$, and hence can always accommodate one more small item of weight at most $\epsilon c$. Thus we can pack all small items into the $k$ enlarged bins after the large items. \end{proof} \begin{lemma} If the scaled items cannot be packed into $k$ scaled bins of capacity $c'$, then the $n$ items cannot be packed into $k$ bins of capacity $c$. \end{lemma} \begin{proof} We prove the contrapositive. Suppose that the $n$ items of total weight at most $kc$ can be packed into $k$ bins of capacity $c$. Then by discarding the small items and rounding down the weights $w_i$ of the large items to integer multiples of $\epsilon^2 c / 2$, the rounded items of weights $w'_i \cdot \epsilon^2 c / 2$ can be packed into $k$ bins of capacity $c = 2\epsilon^{-2} \cdot \epsilon^2 c / 2$, and hence the scaled items of integer weights $w'_i$ can be packed into $k$ scaled bins of capacity $c' = \lfloor 2\epsilon^{-2} \rfloor$. \end{proof} With at most $n$ scaled items and capacity $c' = O(\epsilon^{-2})$ for the $k$ scaled bins, it follows by Theorem~\ref{thm:fpt} that the running time of our dual approximation algorithm is $2^{O(\epsilon^{-3})}N^{O(1)}$, where $N$ is the size of the problem instance encoded in binary. This completes the proof of Theorem~\ref{thm:dual}. \section{Parameterized complexity of decomposing trees} In this section we prove Theorem~\ref{thm:tree}. The problem \textsc{$(k,c)$-Decomposition}\ is clearly in NP\@. In the following, we prove that when both $k$ and $c$ are part of the input, \textsc{$(k,c)$-Decomposition}\ in trees is not only NP-hard but also W[1]-hard with parameter $k$, and is FPT with parameter $c$. \subsection{NP-hardness and W[1]-hardness with parameter $k$} We give a polynomial reduction from \textsc{Unary Bin Packing}\ with $k$ bins to \textsc{$(k,c)$-Decomposition}\ in trees. Recall that \textsc{Unary Bin Packing}\ is W[1]-hard with parameter $k$~\cite{JKMS13}. Given $n$ items of weights $w_i$, $1 \le i \le n$, and $k$ bins of capacity $c$, we construct a tree $T$ with $n(k-1)c + \sum_{i=1}^n w_i$ edges as follows. For each item of weight $w_i$, make a star with $(k-1)c + w_i$ edges. Then select an arbitrary leaf from each star, and merge the $n$ leaves selected from the $n$ stars into one center vertex, denoted by $v$. We claim that the $n$ items can be packed into $k$ bins of capacity $c$ if and only if the tree $T$ can be decomposed into $k$ subgraphs with component size at most $c$. We first prove the direct implication of the claim. Suppose that the $n$ items can be packed into $k$ bins of capacity $c$. We color the edges of the tree $T$ with $k$ colors as follows. First color the $n$ edges incident to the center vertex $v$ with $k$ colors corresponding to the $n$ items in the $k$ bins. Then for each star with $(k-1)c + w_i$ edges, color $w_i - 1$ additional edges with the same color as the edge incident to the center vertex $v$, and color the remaining $(k-1)c$ edges with the other $k-1$ colors, $c$ edges of each color. Then the edges of each color induce a forest with component size at most $c$. We next prove the reverse implication of the claim. Suppose that the tree $T$ can be decomposed into $k$ subgraphs with component size at most $c$. Color the edges of $T$ with $k$ colors corresponding to the $k$ subgraphs. Then in the star with $(k-1)c + w_i$ edges corresponding to the item of weight $w_i$, the edge incident to the center vertex $v$ must have the same color as at least $w_i - 1$ other edges, because the other $k-1$ colors can accommodate at most $(k-1)c$ edges. Note that for each of the $k$ colors, the edges of this color that are incident to $v$, as well as the other edges of the same color in their respective stars, are all connected, and form one component of size at most $c$. Put the $n$ items into $k$ bins corresponding to the colors of the $n$ edges incident to $v$. Then the items in each bin must have total weight at most $c$ too. \subsection{FPT with parameter $c$} We present a fixed-parameter algorithm for \textsc{$(k,c)$-Decomposition}\ in trees with parameter $c$. Let $T$ be a tree with $n$ vertices and $n - 1$ edges, rooted at an arbitrary vertex of degree $1$. For each edge $e$ between a vertex $v$ and its parent in $T$, denote by $T_e$ the subtree of $T$ rooted at $v$ plus the edge $e$, and denote by $s(e)$ the minimum $s \ge 1$ such that $T_e$ admits an edge partition into $k$ subgraphs with component size at most $c$, under the constraint that $e$ is in a component of size at most $s$. If no such $s$ exists, let $s(e) = c + 1$. Then $T$ admits an edge partition into $k$ subgraphs with component size at most $c$ if and only if $s(e) \in [1,c]$ for all edges $e$. We can compute $s(e)$ by dynamic programming, following a post-order traversal of the rooted tree $T$. For each edge $e$ incident to a leaf, we clearly have $s(e) = 1$. For each edge $e$ between an internal node $v$ and its parent, and for a candidate size $s \ge 1$, we can check whether $s(e) \le s$ as follows. Let $m_v$ be the number of edges incident to $v$. Construct $m_v$ items corresponding to the $m_v$ edges. Each edge $f$ between $v$ and a child corresponds to an item of weight $s(f)$, which has been computed following the post-order traversal. The edge $e$ between $v$ and its parent corresponds to an item of weight $c-s + 1$, where the surplus of $c-s$ in addition to $1$ for the edge $e$ accounts for the difference between the desired component size $s$ for $e$ and the upper bound $c$. Then $T_e$ admits an edge partition into $k$ subgraphs with component size at most $c$, where $e$ is in a component of size at most $s$, if and only if the $m_v$ items can be packed into $k$ bins of capacity $c$. By Theorem~\ref{thm:fpt}, there is a fixed-parameter algorithm for \textsc{Bin Packing}\ that decides whether the $m_v$ items thus constructed can be packed into $k$ bins of capacity $c$ in $2^{O(c^{3/2})}N_v^{O(1)}$ time, where $N_v = O(m_v(1 + \log kc))$ is the encoding size of the \textsc{Bin Packing}\ instance with $m_v$ items. By one invocation of this fixed-parameter algorithm with $s = c$, we either find that $s(e) > c$ and abort the traversal of $T$, or find that $s(e) \le c$. In the latter case, we can then determine the exact value of $s(e)$ in $[1,c]$ by a binary search, using the fixed-parameter algorithm as a decision procedure. The total running time of the algorithm is $$ n^{O(1)} + \sum_v \big( O(1 + \log c) \cdot 2^{O(c^{3/2})}N_v^{O(1)} \big) = 2^{O(c^{3/2})}n^{O(1)}. $$ Thus \textsc{$(k,c)$-Decomposition}\ in trees is FPT with parameter $c$. This completes the proof of Theorem~\ref{thm:tree}. \section{Approximation algorithms for decomposing trees} In this section we prove Theorem~\ref{thm:mcd} and Theorem~\ref{thm:msd}. Let $T$ be a tree with $n$ vertices, $n-1$ edges, and maximum degree $\Delta < n$, rooted at an arbitrary vertex of degree $1$. \subsection{Approximating \textsc{Minimum-Color Decomposition}} We first present a linear-time approximation algorithm for \textsc{Minimum-Color Decomposition}. Perform a pre-order traversal of the rooted tree $T$. The root is incident to only one edge, which is colored arbitrarily. At each vertex other than the root, color the at most $\Delta-1$ edges to its children with at most $\lceil \frac{\Delta - 1}c \rceil$ colors (at most $c$ edges of each color), all different from the color of the edge from its parent. It is straightforward to verify that the edges of each color induce a forest with component size at most $c$, and moreover each component is a star with at most $c$ edges. Let $k' = \lceil \frac{\Delta}c \rceil$ and $k'' = \lceil \frac{\Delta - 1}c \rceil + 1$. The minimum number of subgraphs with component size at most $c$ into which $T$ can be decomposed is at least $k'$. On the other hand, our algorithm colors the edges of $T$ with $k''$ colors, where $k'' \le k' + 1$. This completes the proof of Theorem~\ref{thm:mcd}. \subsection{Approximating \textsc{Minimum-Size Decomposition}} We next present a polynomial-time approximation scheme for \textsc{Minimum-Size Decomposition}. We first note that our approximation algorithm for \textsc{Minimum-Color Decomposition}\ can be slightly modified to yield a $2$-approximation for \textsc{Minimum-Size Decomposition}\ as follows. During the pre-order traversal of the rooted tree $T$, at each vertex other than the root, color the at most $\Delta-1$ edges to its children with at most $k-1$ colors (at most $\lceil \frac{\Delta - 1}{k-1} \rceil$ edges of each color), all different from the color of the edge from its parent. Let $c' = \lceil \frac{\Delta}k \rceil$ and $c'' = \lceil \frac{\Delta - 1}{k-1} \rceil$. In any edge partition of $T$ into $k$ subgraphs, there is a subgraph with component size at least $c'$. On the other hand, our algorithm colors the edges of $T$ with $k$ colors such that the edges of each color induce a forest with component size at most $c''$, where $$ c'' = \left\lceil \frac{\Delta - 1}{k-1} \right\rceil = \left\lceil \frac{k}{k - 1} \cdot \frac{\Delta - 1}k \right\rceil \le \left\lceil \frac{k}{k - 1} \right\rceil \cdot \left\lceil \frac{\Delta - 1}k \right\rceil \le 2\left\lceil \frac{\Delta}k \right\rceil = 2c'. $$ Now fix any $0 < \epsilon \le 1$. To obtain a $(1+\epsilon)$-approximation of the optimal component size $c^*$, it suffices to perform a binary search in the integer range $(c' - 1, c'']$, using a subroutine that decides either $c^* > c$ or $c^* \le (1+\epsilon)c$ for any candidate component size $c$. When the search range is reduced to $(l, h]$ with $h - l = 1$, we must have $c^* \ge h$, and the subroutine with $c = h$ decomposes the tree into $k$ subgraphs with component size at most $(1+\epsilon)\,h$. \bigskip The subroutine on a candidate component size $c$ is similar to our fixed-parameter algorithm with parameter $c$ in Theorem~\ref{thm:tree}. As before, for each edge $e$ between a vertex $v$ and its parent in the rooted tree $T$, denote by $T_e$ the subtree of $T$ rooted at $v$ plus the edge $e$, and denote by $s(e)$ the minimum $s \ge 1$ such that $T_e$ admits an edge partition into $k$ subgraphs with component size at most $c$, under the constraint that $e$ is in a component of size at most $s$. If no such $s$ exists, let $s(e) = c + 1$. By definition, if $s(e) \le c$, then $s(e)$ is the unique integer $s \in [1,c]$ that satisfies the following two conditions: \begin{enumerate}\setlength\itemsep{0pt} \item[A.] $T_e$ admits an edge partition into $k$ subgraphs with component size at most $c$, where $e$ is in a component of size at most $s$. \item[B.] $T_e$ does not admit any edge partition into $k$ subgraphs with component size at most $c$, where $e$ is in a component of size at most $s - 1$. \end{enumerate} Instead of computing $s(e)$ directly, the subroutine tries to find a \emph{feasible} value $s\in[1,c]$ that satisfies the following two conditions, and records it in $\tilde s(e)$: \begin{enumerate}\setlength\itemsep{0pt} \item[C.] $T_e$ admits an edge partition into $k$ subgraphs with component size at most $(1+\epsilon)c$, where $e$ is in a component of size at most $s$. \item[B.] $T_e$ does not admit any edge partition into $k$ subgraphs with component size at most $c$, where $e$ is in a component of size at most $s - 1$. \end{enumerate} The subroutine computes $\tilde s(e)$ by dynamic programming, following a post-order traversal of the rooted tree $T$. For each edge $e$ incident to a leaf, set $\tilde s(e) \gets 1$. For each edge $e$ between an internal node $v$ and its parent, check whether there exists a feasible value $s \in [1,c]$ for $\tilde s(e)$ that satisfies conditions C and B, as follows. Let $m_v$ be the number of edges incident to $v$. Construct $m_v$ items corresponding to the $m_v$ edges. Each edge $f$ between $v$ and a child corresponds to an item of weight $\tilde s(f)$. The edge $e$ between $v$ and its parent corresponds to an item of weight $c-s + 1$. By Theorem~\ref{thm:dual}, there is a dual approximation algorithm for \textsc{Bin Packing}\ that, given the $m_v$ items and $k$ bins of capacity $c$, either decides that the $m_v$ items can be packed into $k$ enlarged bins of capacity $(1+\epsilon)c$ and returns yes, or decides that the $m_v$ items cannot be packed into $k$ bins of capacity $c$ and returns no. First call this dual approximation algorithm with $s = c$. If its answer is no, then abort the traversal of $T$, and declare that $\hl{c^* > c}$. Otherwise, find a feasible value $s \in [1,c]$ for $\tilde s(e)$ that satisfies both conditions C and B by a binary search, using the dual approximation algorithm as a decision procedure. If the traversal of $T$ finishes successfully, declare that $\hl{c^* \le (1+\epsilon)c}$. \bigskip The correctness of the subroutine can be verified by induction following the post-order traversal. In particular, for all edges $e$ such that a feasible value $s \in [1,c]$ is found for $\tilde s(e)$, we have $\tilde s(e) \le s(e)$ because they satisfy the same condition B, while condition C is a relaxation of condition A. Also observe that the answers of the dual approximation algorithm have the following two implications: \begin{itemize}\setlength\itemsep{0pt} \item If the $m_v$ items can be packed into $k$ enlarged bins of capacity $(1+\epsilon)c$, then $T_e$ admits an edge partition into $k$ subgraphs with component size at most $(1+\epsilon)c$, where $e$ is in a component of size at most $s$. \item If the $m_v$ items cannot be packed into $k$ bins of capacity $c$, then $T_e$ does not admit any edge partition into $k$ subgraphs with component size at most $c$, where $e$ is in a component of size at most $s$. \end{itemize} By Theorem~\ref{thm:dual}, the running time of the dual approximation algorithm on the $m_v$ items is $2^{O(\epsilon^{-3})}N_v^{O(1)}$, where $N_v = O(m_v(1 + \log kc))$ is the encoding size of the problem instance. The total running time of the algorithm, including the nested binary searches on $c^* \in (c'-1,c'']$ and on $s \in [1,c]$, is $$ n^{O(1)} + O(\log(\Delta/k))\Big( n^{O(1)} + \sum_v \big( O(1 + \log c) \cdot 2^{O(\epsilon^{-3})}N_v^{O(1)} \big) \Big) = 2^{O(\epsilon^{-3})}n^{O(1)}. $$ Thus we have a polynomial-time approximation scheme for \textsc{Minimum-Size Decomposition}. This completes the proof of Theorem~\ref{thm:msd}. \section{Concluding remark} In our study of graph decomposition problems in this paper, the focus is on bipartite graphs and trees. It may be interesting to investigate the complexities of these problems on other important graph classes too.
\subsection{\@startsection{subsection}{3}% \z@{.5\linespacing\@plus.7\linespacing}{.1\linespacing}% {\bfseries}} \makeatother \newcommand{\customfootnotetext}[2]{ \renewcommand{\thefootnote}{#1 \footnotetext[0]{#2}} \newcommand{\overline{a}}{\overline{a}} \newcommand{\bbar} { \overline{b}} \newcommand{\pbar} { \overline{a+b}} \newcommand{\abbar} { \overline{ab}} \newcommand{\N} { \mathbb{N}} \newcommand{\Q} { \mathbb{Q}} \newcommand{\Z} { \mathbb{Z}} \newcommand{\C} { \mathbb{C}} \newcommand{\mathfrak{H}}{\mathfrak{H}} \newcommand{\h} { \mathbb{H}} \newcommand{\A} { \mathbb{A}} \newcommand{\I} { \mathcal{I}} \newcommand{\buildrel \text{d{}ef}\over =}{\buildrel \text{d{}ef}\over =} \newcommand{\R} { \mathbb{R}} \newcommand{\U} { \mathscr{U}} \newcommand{\F} { \mathcal{F}} \newcommand{\M} { \mathfrak{M}} \renewcommand{\L} { \mathscr{L}} \newcommand{\X} { \mathfrak{X}} \newcommand{\J} { \mathfrak{J}} \newcommand{\x} { \overline{x}} \newcommand{\y} { \overline{y}} \newcommand{\nul} { \mbox{null}} \newcommand{\spa} { \mbox{span}} \newcommand{\diam} { \mbox{diam }} \newcommand{\mat} { \mbox{Mat}} \newcommand{\Mat} { \mbox{Mat}} \newcommand{\cl} { \mbox{cl}} \newcommand{\inv} { \mbox{Inv}} \newcommand{\ah} { \mbox{ah}} \newcommand{\bd} { \mbox{Bd}} \renewcommand{\th} { \text{th}} \newcommand{\lint} { \underline{\int}} \newcommand{\uint} { \overline{\int}} \newcommand{\cut} { \backslash} \newcommand{\adj} { \mbox{adj}} \newcommand{\co} { \mbox{co}} \newcommand{\vol} { \mathscr{v}} \newcommand{\osso} { \mbox{osso }} \newcommand{\ent} { \mbox{Int }} \newcommand{\ext} { \mbox{Ext}} \newcommand{\extint} { \mbox{ext }\int} \newcommand{\rank} { \mbox{rank }} \newcommand{\supp} { \mbox{supp }} \newcommand{\Aut} { \mbox{Aut}} \newcommand{\rad} { \mbox{rad }} \newcommand{\Lon} { \mbox{Lon}} \newcommand{\Soc} { \mbox{Soc}} \newcommand{\cong}{\cong} \newcommand{\Cay} { \mbox{Cay}} \newcommand{\mathscr{B}}{\mathscr{B}} \newcommand{\mathscr{M}}{\mathscr{M}} \DeclareMathOperator{\AP}{AP} \DeclareMathOperator{\ap}{ap} \newcommand{\maxi} { \mbox{max}} \DeclareMathOperator{\border}{border} \DeclareMathOperator{\E}{\mathbb{E}} \renewcommand{\P}{\mathbb{P}} \DeclareMathOperator{\Prob}{Pr} \DeclareMathOperator{\IR}{IR} \DeclareMathOperator{\ir}{ir} \DeclareMathOperator{\pn}{pn} \DeclareMathOperator{\rep}{rep} \newcommand{\norm}[1]{\left\lVert#1\right\rVert} \usepackage{etoolbox} \makeatletter \patchcmd{\@maketitle} {\ifx\@empty\@dedicatory} {\ifx\@empty\@date \else {\vskip3ex \centering\footnotesize\@date\par\vskip1ex}\fi \ifx\@empty\@dedicatory} {}{} \patchcmd{\@adminfootnotes} {\ifx\@empty\@date\else \@footnotetext{\@setdate}\fi} {}{}{} \makeatother \DeclareMathOperator{\Cdot}{\bigcdot} \title{Unimodality of Domination Polynomials Notes} \begin{document} \maketitle \section{Potential Questions} \begin{ques} When are the non-zero coefficients of the domination polynomial (strictly or weakly) increasing? \end{ques} \begin{ques} Under what conditions are some non-zero coefficients equal (other than $0$)? \end{ques} \begin{ques} Can we prove unimodality for special types of trees (e.g., slight modifications of a path)? \end{ques} \begin{ques} What is the interaction between the domination polynomials and certain graph operations (e.g., contraction, direct product, box product, corona, join) \end{ques} \begin{ques} Can we find any bound for $d_i$ in terms of $d_{i-1}$? (This would be helpful for dealing with graphs with a universal vertex) \end{ques} \begin{ques} Can we determine the mode of the paths? Are paths log concave? \end{ques} \begin{ques} Is it always true that deleting a leaf either doesn't affect the mode or decreases it by $1$? [Also, how does enforcing a vertex to be in the dominating sets affect the mode?] \end{ques} \begin{ques} Let $T \subseteq \mathcal{P}(A)$ such that if $t \in T$ and $t \subseteq t$, then $s \in T$. Look at sizes of elements of $T$, are those counts unimodal? \end{ques} \begin{ques} Note that any product of domination polynomials is itself a domination polynomial by taking the disjoint union of graphs. We could look at graphs whose domination polynomials are not log-concave and take their products. \end{ques} \begin{ques} can we fail log-concavity in the latter half of the coefficients? \end{ques} Where is the largest coefficient? \section{Graphs with a universal vertex} At the end of the original paper, the authors ask about proving unimodality for graphs with an \emph{universal vertex}, which is a vertex adjacent to all other vertices. Using this, we can show the $d_i$ are decreasing for $i \geq 0.56984 n$. It is known that for all graphs, the $d_i$ are increasing for $i < \frac{n}{2}$. We define $r_k(G) = \frac{d_k(G)}{{n \choose k}}$, i.e., $r_k(G)$ is the proportion of subsets of size $k$ of $V(G)$ that are dominating. We will use the following result of Brown and Beaton \begin{thm}\label{thm: BB ratio}[Beaton, Brown] Let $G$ be a graph on $n$ vertices, and $k\geq \frac{n}{2}$. If $r_k(G)\geq \frac{n-k}{k+1}$, then $d_{i+1}(G)\leq d_i(G)$ for all $i\geq k$. In particular if $k=\lceil \frac{n}{2}\rceil$ then $G$ is unimodal with mode $\lceil \frac{n}{2}\rceil$. \end{thm} \begin{thm} Let $G$ be a graph on $n$ vertices with a universal vertex. Then for $k \geq 0.56984n$, we have $$d_k(G) \geq d_{k+1}(G)\,.$$ \end{thm} \begin{proof} Let $H$ be the graph obtained from $G$ by removing a universal vertex. Suppose for some $k \geq \frac{n}{2}$, we have $$d_{k+1}(G) > d_{k}(G)\,.$$ Then we have $${n-1 \choose k} + d_{k + 1}(H) \geq {n-1 \choose k-1} + d_{k}(H)\,.$$ In particular, $$r_{k+1}(H) \geq \frac{{n - 1 \choose k - 1}}{{n \choose k + 1}} = \frac{k(k+1)}{n(n-k)}\,.$$ By Theorem \ref{thm: BB ratio}, it would be enough to show $$\frac{k(k+1)}{n(n-k)} \geq \frac{n-k}{k + 1}$$ Let $k = \lambda n$ for some $\frac{1}{2} \leq \lambda \leq 1$. Then the inequality can be transformed to $$\lambda n(\lambda n + 1)^2 \geq n^3 (1-\lambda)^2$$ In particular, this inequality would be implied by $$\lambda^3 \geq (1-\lambda)^2$$ This has a root at $$\lambda = \frac{1}{3} \left(1 - 5 \sqrt[3]{\frac{2}{11 + 3 \sqrt{69}}} + \sqrt[3]{\frac{1}{2}(11 + 3 \sqrt{69})}\right) \approx 0.56984$$ \end{proof} \section{Bounding the coefficients} A set of vertices is called \emph{encompassing} if it contains the closed neighborhood of some vertex. Note a set of vertices is encompassing if and only if its complement is not dominating. \begin{prop}\label{prop: adj coeff bound} Fix $k \leq \frac{n + 1}{2}$ and a graph $G$ on $n$ vertices. Then $${n \choose k + 1} - d_{n - k - 1}(G) \geq {n \choose k} - d_{n-k}(G)\,.$$ \end{prop} \begin{proof} Let $A$ be a set of vertices labeled by the encompassing sets in $G$ of size $k$ and $B$ be the set of encompassing sets in $G$ of size $k + 1$. Connect a vertex labeled by $U$ to a vertex labeled by $W$ if $U \subset W$ or $W \subset U$, resulting in a bipartite graph $H$ on $A \cup B$. Since a superset of any encompassing is encompassing, each vertex in $A$ has degree $n - k$. Moreover, each vertex in $B$ has degree at most $k + 1$. To show that $|B| \geq |A|$, it is enough to show that $H$ admits a matching which saturates all vertices of $A$. By Hall's Marriage Theorem, it is enough to show that for every $S \subset A$, we have $|N(S)| \geq |S|$. Suppose, seeking a contradiction, that there exists $S \subset A$ for which this does not hold. The number of edges incident with $S$ is $|S|(n - k)$, so by the pigeonhole principal there must be a vertex of $N(S) \subset B$ with degree greater than $n - k$. Hence $n - k + 1 \leq k + 1$, so $k \geq \frac{n + 1}{2}$, contradicting our hypothesis. Thus there are at least as many encompassing sets of size $k + 1$ as there are encompassing sets of size $k$. Taking complements, we find that there are at least as many non-dominating sets of size $n - k - 1$ as there are non-dominating set of size $n - k$. \end{proof} Note that this inequality is tight by taking $G$ to be the complete graph. It would be great to have any sort of bound in the other direction. \begin{comment} \begin{prop}\label{prop: upper portion universal vertex} If $G$ has a universal vertex, then $d_i(G) \geq d_{i + 1}(G)$ for $$i \geq \frac{1}{2}\left(\sqrt{5n^2 + 2n + 1} - n - 1\right)\,.$$ \end{prop} \begin{proof} Let $H$ be the graph obtained by deleting a universal vertex. Then we have $d_i(G) = {n - 1 \choose i - 1} + d_i(H)$. Thus, the coefficients are increasing at $i$ if $${n - 1 \choose i - 1} + d_i(H) < {n - 1 \choose i} + d_{i + 1}(H)$$ hence $$d_{i + 1}(H) - d_i(H) > {n - 1 \choose i - 1} - {n - 1 \choose i}\,.$$ Note that $d_{i + 1}(H) \leq {n - 1 \choose i + 1}$, so we would have $${n - 1 \choose i + 1} > {n - 1 \choose i - 1} - {n - 1 \choose i}$$ That is, $${n \choose i + 1} > {n - 1 \choose i - 1}$$ With some algebra we get $n(n-i) > i(i+1)$ Solving this for $i$, we obtain that $$i < \frac{1}{2}\left(\sqrt{5n^2 + 2n + 1} - n - 1\right)\,.$$ \end{proof} \begin{cor} If $G$ has a universal vertex, then $d_i(G) \geq d_{i + 1}(G)$ for $$i \geq \frac{\sqrt{5} - 1}{2}n\,.$$ \end{cor} \begin{proof} This bound is weaker than that of Proposition \ref{prop: upper portion universal vertex} for $n > 0$. \end{proof} \end{comment} \begin{comment} If we instead wanted to show log concavity, we would want to show $$\left({n - 1 \choose i - 1} + d_i(H)\right)^2 \geq \left({n - 1 \choose i} + d_{i-1}(H)\right)\left({n - 1 \choose i - 2} + d_{i+1}(H)\right)$$ Which becomes \begin{align*} {n - 1 \choose i - 1}^2 - {n - 1 \choose i}{n - 1 \choose i - 2} &\geq {n - 1 \choose i - 2}d_{i-1}(H) + {n - 1 \choose i}d_{i + 1}(H) + d_{i -1}(H)d_{i+1}(H) \\ &\;\;\;-2{n - 1 \choose i - 1}d_i(H) - d_i(H)^2 \end{align*} The left hand side is $$\frac{((n - 1)!)^2}{((i - 1)!)^2((n - i)!)^2} - \frac{((n - 1)!)^2}{i!(n - i - 1)!(i - 2)!(n - i + 1)!} = \frac{1}{n}{n \choose i}{n \choose i -1}$$ Note that the number of critical non-encompassing sets is at most $$\prod_v (\deg(v) + 1)NE_{i - \deg(v)}(G - N[v]) \leq \prod_v (\deg(v) + 1) {n - \deg(v) - 1 \choose i - \deg(v)}$$ \end{comment} \section{Comments on Other References} \subsection{Alikhani and Peng '14, \cite{AP}} This contains a proof that the $d_i$ are increasing for $i < \frac{n}{2}$. It uses the Hall marriage theorem, which is a classic graph theory result. \subsection{Beaton '17, \cite{Bea}} This contains some good general background. \subsection{Beaton and Brown '20 (On the Real Roots of Domination Polynomials), \cite{BB2}} This shows that the closure of the real roots of domination polynomials of all graphs is $(-\infty,0]$. They focus mainly on calculating roots for complete and complete bipartite graphs. It contains an interesting question at the end, asking what the closure of the real roots of all trees is. \section{Trees with one leaf} Let $T_{n,k}$ denote the graph on $n+1$ vertices by taking a path on $n$ vertices labeled $1$ thru $n$ from left-to-right and then appending a leaf to vertex $k$. Note that $T_{n,1} = T_{n,n}$ is a path on $n+1$ vertices. \subsection{Baby Examples} For a chain of 3 with one extra leaf: $$D(G,x) = x + 3x^2 + 4x^3 + x^4$$ For a chain of 4 with one extra leaf: $$D(G, x) = 2x^2 + 7x^3 + 5x^4 + x^5$$ For a chain of 5 with one extra leaf (side): $$D(G,x) = 2x^2 + 8x^3 +12x^4 + 6x^5 + x^6$$ For a chain of 5 with one extra leaf (middle): $$D(G,x) = 8x^3 + 12x^4 +6x^5 + x^6$$ \subsection{Recursions} \begin{align} \label{eq: rec1}D(T_{n,k}) &= (1+x) D(T_{n-1,k-1},v_1) + xD(T_{n-2,k-2}) \text{ for } k > 2\\ \label{eq: rec2}D(T_{n,k}) &= (1+x) D(T_{n-1,k},v_{n-1}) + xD(T_{n-2,k}) \text{ for } k > 2\\ \label{eq: rec3}D(T_{n,k},v_1) &= x\left(D(T_{n-1,k-1},v_1) + D(T_{n-2,k-2})\right) \text{ for } k > 2\\ \label{eq: rec4}D(T_{n,k},v_n) &= x\left(D(T_{n-1,k},v_{n-1}) + D(T_{n-2,k})\right) \text{ for } k < n-1 \end{align} Let $P^n$ be the path on $n$ vertices, and here choose $v_1$ to be a leaf. \begin{align} D(P_n,v_1) &= x^n + 2x^{n-1} + \sum_{j=1}^{n-3} x^jD(P_{n-j-1})\\ D(T_{n,2},v_1) &= D(T_{n-2,1},v_1)(1+2x + 2x^2 + x^3) + D(T_{n-4,1})(x^2 + x^3)\\ D(T_{n,k},v_1) &= x^{k-3}D(T_{n-k-3,3},v_1) + \sum_{j=1}^{k-3} x^j D(T_{n-j-1,k-j-1}) \end{align} \subsection{Combining recurrence relations} \begin{align} D(T_{n,k}) &= x D(P_n) + \frac{1}{x} D(P_k,v_1) D(P_{n-k+1},v_1)\\ &= x D(P_n) + \frac{1}{x} \Big( x^k + 2x^{k-1} + \sum_{i = 1}^{k-3} x^i D(P_{k-i-1}) \Big) \Big(x^{n-k+1} + 2x^{n-k} + \sum_{j=1}^{n-k-2} x^j D(P_{n-k-j})\Big)\\ &= x D(P_n) + \Big( x^k + 2x^{k-1} + \sum_{i = 1}^{k-3} x^i D(P_{k-i-1}) \Big) \Big(x^{n-k} + 2x^{n-k-1} + \sum_{j=1}^{n-k-2} x^{j-1} D(P_{n-k-j})\Big)\\ \end{align} \subsection{Log Concavity?} It would be very nice to show that the domination polynomials of the $T_{n,k}$ graphs are log-concave. This seems true on small examples. Suppose we want to show that Eq.~\eqref{eq: rec3} is log concave. This is equivalent to showing that $$2d_\ell(T_{n-1,k-1},v_1)d_\ell(T_{n-2,k-2}) \geq d_{\ell-1}(T_{n-1,k-1},v_1)d_{\ell+1}(T_{n-2,k-2}) + d_{\ell+1}(T_{n-1,k-1},v_1)d_{\ell-1}(T_{n-2,k-2})$$ It seems that something even stronger is true, in particular that \begin{align} \label{eq: log ineq 1} d_\ell(T_{n-1,k-1},v_1)d_\ell(T_{n-2,k-2}) &\geq d_{\ell-1}(T_{n-1,k-1},v_1)d_{\ell+1}(T_{n-2,k-2})\\ \label{eq: log ineq 2} d_\ell(T_{n-1,k-1},v_1)d_\ell(T_{n-2,k-2}) &\geq d_{\ell+1}(T_{n-1,k-1},v_1)d_{\ell-1}(T_{n-2,k-2}) \end{align} Suppose that we wanted to show that \eqref{eq: log ineq 2} holds. Let $a_\ell$ denote the number of dominating set of size $\ell$ in $T_{n-1,k-1}$ that contain $v_1$ but not $v_2$ or $v_3$. Then it is equivalent to show that the quantity $\frac{a_\ell}{d_{\ell - 1}(T_{n-2,k-2})}$ is decreasing as $\ell$ increases. However, note that $a_\ell$ can be written as $d_{\ell - 1}(T_{n-3,k-3},v_1)$. \subsection{Calculations for certain spiders} \begin{exmp} Let $G$ be the star graph on $n$ vertices. Then $d_k = {n \choose k -1}$ for $1 \leq k < n-1$, and $d_{n-1} = n$. This has a mode at $k = \frac{n}{2} + 1$ (taking ceiling or floor if $n$ is odd). \end{exmp} \begin{exmp} Let $G$ be the disjoint union of $\lambda_1$ isolated vertices and $\lambda_2$ paths on $2$ vertices, so $|V(G)| = \lambda_1 + 2\lambda_2$. \end{exmp} \subsection{Proof that Chains with 1 Leaf are Unimodal} \begin{theorem}[\cite{KPS}] \label{kps_recurrence} Let $G$ be a graph with vertex set $V$. If there exist two vertices $u,v \in V$ such that $N[v] \subseteq N[u]$, then $$D(G) = xD(G/u) + D(G - u) + xD(G - N[u])$$ \end{theorem} First, we notice that for any graph of the form $T_{n,k}$ with $n - k > 3$, $T_{n,k}$ will satisfy this condition if $v = v_1$ and $u = v_2$. So, we apply Theorem \ref{kps_recurrence} and see \begin{align*} D(G/u) &= D(T_{n-1,k-1})\\ D(G-u) &= xD(T_{n-2,k-2})\\ D(G-N[u]) &= D(T_{n-3,k-3}) \end{align*} Therefore, we have $$D(T_{n,k}) = x(D(T_{n-1,k-1}) + D(T_{n-2,k-2}) + D(T_{n-3,k-3}))$$ Let $m_{n,k} = \text{mode of } T_{n,k}$. Induction hypotheses: \begin{itemize} \item $D(T_{p,k})$ is unimodal for $p \leq n$ and $1 \leq k \leq p$ \item $m_{p-1,k-1} \leq m_{p,k} \leq m_{p-1,k-1} + 1$ for $p \leq n$ and $1 \leq k \leq p$ \item $t_{n+1,k+1}^j = t_{n,k}^{j-1} + t_{n-1,k-1}^{j-1} + t_{n-2,k-2}^{j-1}$ for $1 \leq j \leq n+2$ \item $t_{n,k}^j = t_{n-1,k-1}^{j-1} + t_{n-2,k-2}^{j-1} + t_{n-3,k-3}^{j-1}$ for $1 \leq j \leq n+1$ \end{itemize} We want to show that $D(T_{n+1, k+1})$ is unimodal and that $m_{n,k} \leq m_{n+1, k+1} \leq m_{n,k} + 1$. By our recurrence relation (ind hyp 3), $$t_{n+1,k+1}^j = t_{n,k}^{j-1} + t_{n-1,k-1}^{j-1} + t_{n-2,k-2}^{j-1}$$ By induction hypotheses 1 and 2, we know \begin{align*} 0 &\leq t_{n,k}^{1} \leq t_{n,k}^{2} \leq \dots \leq t_{n,k}^{m_{n-2,k-2}} \text{ and } t_{n,k}^{m_{n,k}} \geq \dots \geq t_{n,k}^{n+2} = 1\\ 0 &\leq t_{n-1,k-1}^{1} \leq t_{n-1,k-1}^{2} \leq \dots \leq t_{n-1,k-1}^{m_{n-2,k-2}} \text{ and } t_{n-1,k-1}^{m_{n,k}} \geq \dots \geq t_{n-1,k-1}^{n+2} = 1\\ 0 &\leq t_{n-2,k-2}^{1} \leq t_{n-2,k-2}^{2} \leq \dots \leq t_{n-2,k-2}^{m_{n-2,k-2}} \text{ and } t_{n-2,k-2}^{m_{n,k}} \geq \dots \geq t_{n-2,k-2}^{n+2} = 1\\ \end{align*} Combining these three inequalities via our recurrence relation, we see $$0 \leq t_{n+1,k+1}^{1} \leq t_{n+1,k+1}^{2} \leq \dots \leq t_{n+1,k+1}^{m_{n-2,k-2}} \text{ and } t_{n+1,k+1}^{m_{n,k} + 1} \geq \dots \geq t_{n+1,k+1}^{n+2} = 1$$ We notice that if $D(T_{n+1,k+1})$ is, in fact, unimodal, then its mode must be one of \begin{align*} m_{n+1,k+1} &= m_{n,k} + 1\\ m_{n+1,k+1} &= m_{n,k}\\ m_{n+1,k+1} &= m_{n,k} -1 \end{align*} We want to show that $t_{n+1,k+1}^{m_{n,k} - 1} \leq t_{n+1,k+1}^{m_{n,k}}$. There are three possible cases: \subsubsection{Case 0: $m_{n-2,k-2} = m_{n-1,k-1} = m_{n,k}$} In this case, all three sequences have the same mode. So, $m_{n+1,k+1} = m_{n,k}$ and $D(T_{n+1,k+1})$ is unimodal. \subsubsection{Case 1: $m_{n,k} -1 \leq m_{n-2,k-2} \leq m_{n,k}$} This implies either $m_{n-2,k-2} = m_{n-1,k-1}$ or $m_{n-1,k-1} = m_{n,k}$. Either way, we know \begin{align*} t_{n,k}^{m_{n,k}-2} &\leq t_{n,k}^{m_{n,k}-1}\\ t_{n-1,k-1}^{m_{n,k}-2} &\leq t_{n-1,k-1}^{m_{n,k}-1}\\ t_{n-2,k-2}^{m_{n,k}-2} &\leq t_{n-2,k-2}^{m_{n,k}-1} \end{align*} So, \begin{align*} t_{n+1,k+1}^{m_{n,k}-1} &= t_{n,k}^{m_{n,k}-2} + t_{n-1,k-1}^{m_{n,k}-2} + t_{n-2,k-2}^{m_{n,k}-2}\\ &\leq t_{n,k}^{m_{n,k}-1} + t_{n-1,k-1}^{m_{n,k}-1} + t_{n-2,k-2}^{m_{n,k}-1}\\ &= t_{n+1,k+1}^{m_{n,k}}. \end{align*} Therefore, $$0 \leq t_{n+1,k+1}^{1} \leq t_{n+1,k+1}^{2} \leq \dots \leq t_{n+1,k+1}^{m_{n-2,k-2}} = t_{n+1,k+1}^{m_{n,k}-1} \leq t_{n+1,k+1}^{m_{n,k}} \text{ and } t_{n+1,k+1}^{m_{n,k}} \geq \dots \geq t_{n+1,k+1}^{n+2} = 1$$ So, no matter the relationship between $t_{n+1,k+1}^{m_{n,k}} \text{ and } t_{n+1,k+1}^{m_{n,k}}$, $D(T_{n+1,k+1})$ is unimodal and $m_{n,k} \leq m_{n+1,k+1} \leq m_{n,k} + 1$, as desired. \subsubsection{Case 2: $m_{n-2,k-2} = m_{n,k} -2$} First, note that $t_{n,k}^{m_{n,k}-1} \leq t_{n,k}^{m_{n,k}}$ because $m_{n,k}$ is the mode of $D(T_{n,k})$. By induction hypothesis 4, we can expand each side of this inequality and see $$t_{n-1,k-1}^{m_{n,k}-2} + t_{n-2,k-2}^{m_{n,k}-2} +t_{n-3,k-3}^{m_{n,k}-2} \leq t_{n-1,k-1}^{m_{n,k}-1} + t_{n-2,k-2}^{m_{n,k}-1} + t_{n-3,k-3}^{m_{n,k}-1}$$ By induction hypothesis 2, we know $m_{n-3,k-3} \leq m_{n-2,k-2} = m_{n,k}-2$. So, $t_{n-3,k-3}^{m_{n,k}-2} \geq t_{n-3,k-3}^{m_{n,k}-1}$ which allows us to cancel these terms from the above inequality. Thus, $$t_{n-1,k-1}^{m_{n,k}-2} + t_{n-2,k-2}^{m_{n,k}-2} \leq t_{n-1,k-1}^{m_{n,k}-1} + t_{n-2,k-2}^{m_{n,k}-1}$$ Also, $t_{n,k}^{m_{n,k}-2} \leq t_{n,k}^{m_{n,k}-1}$ since $m_{n,k}-2 \leq m_{n,k} -1 \leq m_{n,k}$. Adding these inequalities together, we see \begin{align*} t_{n,k}^{m_{n,k}-2} + t_{n-1,k-1}^{m_{n,k}-2} + t_{n-2,k-2}^{m_{n,k}-2} &\leq t_{n,k}^{m_{n,k}-1} + t_{n-1,k-1}^{m_{n,k}-1} + t_{n-2,k-2}^{m_{n,k}-1}\\ t_{n+1,k+1}^{m_{n,k}-1} &\leq t_{n+1,k+1}^{m_{n,k}} \end{align*} Therefore, $$0 \leq t_{n+1,k+1}^{1} \leq t_{n+1,k+1}^{2} \leq \dots \leq t_{n+1,k+1}^{m_{n-2,k-2}} \leq t_{n+1,k+1}^{m_{n,k}-1} \leq t_{n+1,k+1}^{m_{n,k}} \text{ and } t_{n+1,k+1}^{m_{n,k}+1} \geq \dots \geq t_{n+1,k+1}^{n+2} = 1$$ so no matter the relationship between $t_{n+1,k+1}^{m_{n,k}} \text{ and } t_{n+1,k+1}^{m_{n,k}+1}$, $D(T_{n+1,k+1})$ is unimodal and $m_{n,k} \leq m_{n+1,k+1} \leq m_{n,k} + 1$, as desired. \subsection{Base Cases for Spiders} The mode of $x^{\ell_1}(2x + x^2)^{\ell_2}$ occurs at $$\ell_1 + 2\ell_2 - \left\lceil \frac{2\ell_2 + 2}{3}\right\rceil + 1.$$ Note that this is the domination polynomial for the disjoint union of $\ell_2$ paths of length $2$ and $\ell_1$ isolated vertices. Suppose we have a spider with $\ell_2$ legs of length $2$ and $\ell_1$ legs of length $1$. Then $$d_i = \sum_{j = \max\{0,i-2\ell_2\}}^{\min\{\ell_1,i-\ell_2\}} {\ell_1 \choose j}{\ell_2 \choose i - j - \ell_2} 2^{2\ell_2 - i + j}$$ \newpage In particular, we would like to show that the sequence $$d_i = \sum_{0}^{\ell_1} {\ell_1 \choose j}{\ell_2 \choose i - j - \ell_2} 2^{2\ell_2 - (i-j)}$$ is unimodal. This is equivalent to showing that $$d_i - d_{i-1} = \sum_{j=0}^{\ell_1 + 1} \left[{\ell_1 \choose j} - {\ell_1 \choose j-1}\right] {\ell_2 \choose 2\ell_2 - i + j}2^{2\ell_2 - i + j}$$ switches sign at most once as $i$ varies from $\ell_1 + \ell_2$ to $\ell_1 + 2\ell_2$. \section{Preliminaries} \begin{defn}[Unimodal] A sequence is unimodal if it is weakly increasing until some $k$th term and weakly decreasing thereafter. \end{defn} \begin{exmp} The sequence $(1,4,6, 7,5,5)$ is unimodal with mode $4$. \end{exmp} \begin{defn}[Dominating Set] Let $G(V,E)$ be a graph. A dominating set $d_i(G)$ is a subset of $V$ of size $i$ such that for all $v \in V$, $v \in d_i(G)$ or $v$ is adjacent to some $u \in d_i(G)$. \end{defn} \begin{exmp}\label{ex:dom_set} Example of dominating set \end{exmp} \begin{defn}[Domination Polynomial] Let $G(V,E)$ be a graph. The domination polynomial $D(G)$ is $$D(G) = \sum_{i=0}^{|V|} d_i(G)x^i.$$ \end{defn} \begin{exmp} The domination polynomial of the graph $G$ found in Example \ref{ex:dom_set} is ... \end{exmp} \section{Previous Work} \begin{conj}[\cite{AP}] The domination polynomial of any graph is unimodal. \end{conj} \begin{thm}[\cite{BeBr}] For $n \geq 3$, $D(P_n)$ and $D(C_n)$ are unimodal. \end{thm} \begin{thm}[\cite{BeBr}] \label{thm:complete_multi} For $n_1, \dots, n_k \in \mathbb{N}$, the complete multipartite graph $K_{n_1,\dots,n_k}$ is unimodal. \end{thm} \begin{thm}[\cite{BeBr}]\label{thm:mindeg} If $G$ is a graph with $n$ vertices with minimum degree $\delta(G) \geq 2\log_2(n)$ then $D(G)$ is unimodal with mode at $\left \lceil{\frac{n}{2}}\right \rceil$. \end{thm} \begin{thm}[\cite{KPS}] \label{thm:recursion} Let $G(V,E)$ be a graph. If there exist $u, v \in V$ such that $N[v] \subseteq N[u]$, then $$D(G) = xD(G/u) + D(G-u) + xD(G-N[u]).$$ \end{thm} \begin{thm}[\cite{AP}]\label{thm:half} Let $G$ be a graph of order $n$. Then for every $0 \leq i < \frac{n}{2}$, we have $d_i(G) \leq d_{i+1}(G)$. \end{thm} \section{Modified Paths} Consider a path that has one extra leaf appended to it. We denote this graph $T_{n,k}$ where $n$ is the length of the path and $k$ is the location of the appended vertex. Let $t_{n,k}^j$ denote the coefficient of $x^j$ in $D(T_{n,k})$. \begin{exmp} The graph below is denoted $T_{}$ give example here \end{exmp} First, we notice that for any graph of the form $T_{n,k}$ with $n - k > 3$, $T_{n,k}$ will satisfy the condition in Theorem \ref{thm:recursion} for $v = v_1$ and $u = v_2$. So, applying the theorem, we see \begin{align*} D(G/u) &= D(T_{n-1,k-1})\\ D(G-u) &= xD(T_{n-2,k-2})\\ D(G-N[u]) &= D(T_{n-3,k-3}) \end{align*} Therefore, we have \begin{equation} \label{eq:recurrence} D(T_{n,k}) = x(D(T_{n-1,k-1}) + D(T_{n-2,k-2}) + D(T_{n-3,k-3})) \end{equation} \begin{thm} For all $n \geq 3$, $1 \leq k \leq n$, $D(T_{n,k})$ is unimodal. \end{thm} \begin{proof} We will proceed by induction. Let $m_{n,k}$ denote the mode of $D(T_{n,k}).$ Take care of base cases here or above somewhere Suppose as the induction hypothesis that for some $n$ and $k$, we know the following: \begin{enumerate} \item $D(T_{p,k})$ is unimodal for all $p \leq n$ and $1 \leq k \leq p$, \item $m_{p-1,k-1} \leq m_{p,k} \leq m_{p-1}{k-1} + 1$ for all $p\leq n$ and $1 \leq k \leq p$, \item $t_{n+1,k+1}^j = t_{n,k}^{j-1}+ t_{n-1,k-1}^{j-1} + t_{n-2,k-2}^{j-1}$ for $1 \leq j \leq n+2$, \item $t_{n,k}^j = t_{n-1,k-1}^{j-1} + t_{n-2,k-2}^{j-1} + t_{n-3,k-3}^{j-1}$ for $1 \leq j \leq n+1$. \end{enumerate} We want to show that $D(T_{n+1,k+1})$ is unimodal with $m_{n,k} \leq m_{n+1,k+1} \leq m_{n,k} + 1$. First, we see that by the first and second induction hypotheses, we know that \begin{align*} 0 &\leq t_{n,k}^{1} \leq t_{n,k}^{2} \leq \dots \leq t_{n,k}^{m_{n,k}-2} \text{ and } t_{n,k}^{m_{n,k}} \geq \dots \geq t_{n,k}^{n+2} = 1\\ 0 &\leq t_{n-1,k-1}^{1} \leq t_{n-1,k-1}^{2} \leq \dots \leq t_{n-1,k-1}^{m_{n,k}-2} \text{ and } t_{n-1,k-1}^{m_{n,k}} \geq \dots \geq t_{n-1,k-1}^{n+2} = 1\\ 0 &\leq t_{n-2,k-2}^{1} \leq t_{n-2,k-2}^{2} \leq \dots \leq t_{n-2,k-2}^{m_{n,k}-2} \text{ and } t_{n-2,k-2}^{m_{n,k}} \geq \dots \geq t_{n-2,k-2}^{n+2} = 1\\ \end{align*} Adding these three inequalities together and keeping in mind the recurrence relation given in the third induction hypothesis, we see, \begin{equation} \label{eq: n+1} 0 \leq t_{n+1,k+1}^{1} \leq t_{n+1,k+1}^{2} \leq \dots \leq t_{n+1,k+1}^{m_{n,k}-1} \text{ and } t_{n+1,k+1}^{m_{n,k} + 1} \geq \dots \geq t_{n+1,k+1}^{n+2} = 1 \end{equation} Equation \ref{eq: n+1} implies that if $D(T_{n+1,k+1})$ is unimodal, its mode must be one of $m_{n,k} -1$, $m_{n,k}$, or $m_{n,k}+1$. Notice that there are two unspecified inequalities in Equation \ref{eq: n+1}: between $t_{n+1,k+1}^{m_{n,k}-1}$ and $t_{n+1,k+1}^{m_{n,k}}$ and between $t_{n+1,k+1}^{m_{n,k}}$ and $t_{n+1,k+1}^{m_{n,k}+1}$. If $t_{n+1,k+1}^{m_{n,k}-1} \leq t_{n+1,k+1}^{m_{n,k}}$, we see $D(T_{n+1,k+1})$ will be unimodal no matter the relationship between $t_{n+1,k+1}^{m_{n,k}}$ and $t_{n+1,k+1}^{m_{n,k}+1}$. So, we aim to prove that $t_{n+1,k+1}^{m_{n,k}-1} \leq t_{n+1,k+1}^{m_{n,k}}$. There are three possible cases. Case 0: $m_{n-2,k-2}=m_{n-1,k-1}=m_{n,k}$. In this case, $D(T_{n,k})$, $D(T_{n-1,k-1})$, and $D(T_{n-2,k-2})$ all have the same mode. Therefore, $$\max_{j} t_{n+1,k+1}^j= t_{n+1,k+1}^{m_{n,k}+1}$$ so $t_{n+1,k+1}^{m_{n,k}-1} \leq t_{n+1,k+1}^{m_{n,k}}$. Thus, $D(T_{n+1,k+1})$ with mode $m_{n+1,k+1} = m_{n,k} + 1$. Case 1: $m_{n,k} - 1 \leq m_{n-2,k-2} \leq m_{n,k}.$ In this case, either $m_{n-2,k-2} = m_{n-2,k-1}$ or $m_{n-1,k-1} = m_{n,k}$. Either way, we know \begin{align*} t_{n,k}^{m_{n,k}-2} &\leq t_{n,k}^{m_{n,k}-1}\\ t_{n-1,k-1}^{m_{n,k}-2} &\leq t_{n-1,k-1}^{m_{n,k}-1}\\ t_{n-2,k-2}^{m_{n,k}-2} &\leq t_{n-2,k-2}^{m_{n,k}-1} \end{align*} as in each case we are comparing terms before the mode. Using this, we see \begin{align*} t_{n+1,k+1}^{m_{n,k}-1} &= t_{n,k}^{m_{n,k}-2} + t_{n-1,k-1}^{m_{n,k}-2} + t_{n-2,k-2}^{m_{n,k}-2}\\ &\leq t_{n,k}^{m_{n,k}-1} + t_{n-1,k-1}^{m_{n,k}-1} + t_{n-2,k-2}^{m_{n,k}-1}\\ &= t_{n+1,k+1}^{m_{n,k}}. \end{align*} Therefore, $D(T_{n+1,k+1})$ is unimodal and has mode either $m_{n,k}$ or $m_{n,k}+1$. Case 2: $m_{n-2,k-2} = m_{n,k}-2.$ First, note that $t_{n,k}^{m_{n,k}-1} \leq t_{n,k}^{m_{n,k}}$ as $m_{n,k}$ is the mode of $D(T_{n,k})$. Using the recurrence relation in the fourth induction hypothesis, we see \begin{align*} t_{n,k}^{m_{n,k}-1} &\leq t_{n,k}^{m_{n,k}}\\ t_{n-1,k-1}^{m_{n,k}-2} + t_{n-2,k-2}^{m_{n,k}-2} +t_{n-3,k-3}^{m_{n,k}-2} &\leq t_{n-1,k-1}^{m_{n,k}-1} + t_{n-2,k-2}^{m_{n,k}-1} + t_{n-3,k-3}^{m_{n,k}-1} \end{align*} By the second induction hypothesis, we know that $m_{n-3,k-3} \leq m_{n-2,k-2} = m_{n,k}-2$. Therefore, $t_{n-3,k-3}^{m_{n,k}-1} \leq t_{n-3,k-3}^{m_{n,k}-2}$ as these terms are after the mode of $D(T_{n-3,k-3}).$ So, we can cancel these terms from the above inequality and find \begin{align*} t_{n-1,k-1}^{m_{n,k}-2} + t_{n-2,k-2}^{m_{n,k}-2} &\leq t_{n-1,k-1}^{m_{n,k}-1} + t_{n-2,k-2}^{m_{n,k}-1} \end{align*} Similarly, since $m_{n,k} -2 \leq m_{n,k}-1 \leq m_{n,k}$ and $m_{n,k}$ is the mode of $D(T_{n,k})$, we have $t_{n,k}^{m_{n,k}-2} \leq t_{n,k}^{m_{n,k}-1}$. Adding this to the above inequality yields \begin{align*} t_{n,k}^{m_{n,k}-2}+ t_{n-1,k-1}^{m_{n,k}-2} + t_{n-2,k-2}^{m_{n,k}-2} &\leq t_{n,k}^{m_{n,k}-1}+ t_{n-1,k-1}^{m_{n,k}-1} + t_{n-2,k-2}^{m_{n,k}-1}\\ t_{n+1,k+1}^{m_{n,k}-1} &\leq t_{n+1,k+1}^{m_{n,k}}. \end{align*} Thus, $D(T_{n+1,k+1})$ is unimodal with either mode $m_{n,k}$ or $m_{n,k} + 1$. Therefore, in all cases, we find that $D(T_{n+1,k+1})$ is unimodal with $m_{n+1,k+1} = m_{n,k}$ or $m_{n+1,k+1} = m_{n,k} + 1$, completing the induction. \end{proof} \section{Spider Graphs} Note that the recursion may work if we mess with the center of the spider and check base cases. Maybe look at wheel graphs or complete graphs. \section{Complete Graphs} \begin{thm} For all $n \in \mathbb{N}$, $D(K_n)$ is unimodal. \end{thm} \begin{proof} Note that in a complete graph, all vertices are adjacent to each other. So, all subsets of the vertex set are dominating sets. Therefore, $$D(K_n) = \sum_{i=0}^n {n \choose i} x^i.$$ We know binomial coefficients are unimodal. Thus, $D(K_n)$ is unimodal for all $n$. \end{proof} \section{Graph Products} \subsection{Crown Graphs} \begin{defn} A crown graph is a graph of the form $K_2 \times K_n$ for some $n \in \N$. \end{defn} \begin{exmp} Example of crown graph \end{exmp} \begin{thm}\label{thm:crown} The crown graphs have unimodal domination polynomials. \end{thm} \begin{proof} First, we can manually calculate $D(K_2 \times K_1)$, $D(K_2 \times K_2)$, and $D(K_2 \times K_3)$ and see they are all unimodal. So, we focus our attention on $n \geq 4$. Let $G = K_2 \times K_n$. Then, $G$ has a total of $2n$ vertices. First, we notice that by Theorem \ref{thm:half}, for $0 \leq i < n$, $d_i(G) \leq d_{i+1}(G)$. Also, we see that the set containing two vertices in the same row is dominating. Therefore, any set that contains a row of vertices is also dominating. By the Pigeonhole Principle, any set of size $i > n$ must contain a row. Therefore, all sets of size greater than $n$ are dominating. In other words, for $n < i \leq 2n$, $d_i(G) = {2n \choose i}$. As these are simply binomial coefficients, we therefore know that $d_i(G) \geq d_{i+1}(G)$ for $n < i \leq 2n$. So, it only remains to be shown that $d_{n-1}(G) \leq d_n(G)$ or $d_n(G) \geq d_{n+1}(G)$. We will show the latter. To do this, we must first count $d_n(G)$, and we can do so by subtracting the non-dominating sets of $G$. We know that any set $d$ which contains a row will be dominating, so we must avoid rows. Also, any set that has two or more vertices from each part will be dominating. Therefore, the only subsets of size $n$ that are not dominating are those with $1$ vertex from one part and $n-1$ vertices from the other. There are $2n$ such sets, one for each vertex. Thus, $$d_n(G) = {2n \choose n} - 2n.$$ So, we aim to prove that $$d_n(G) = {2n \choose n} - 2n \geq {2n \choose n+1} = d_{n+1}(G).$$ We can simplify this to $${2n-1 \choose n-1} \geq n(n+1).$$ We proceed by induction. As a base case, we see that for $n=4$, ${7 \choose 3} = 35 \geq 20 = 4(5).$ Assume as the induction hypothesis that for some $k \geq 4,$ ${2k-1 \choose k-1} \geq k(k+1)$. Then, \begin{align*} {2(k+1)-1 \choose (k+1)-1} &= {2k+1 \choose k}\\ &= \frac{(2k+1)!}{(k+1)!\text{ }k!}\\ &= \frac{(2k+1)(2k)}{(k+1)k}{2k-1 \choose k-1}\\ &\geq \frac{(2k+1)(2k)}{(k+1)k} k(k+1)\\ &= 2k(2k+1)\\ &\geq 2k(k+1)\\ &\geq (k+2)(k+1) \end{align*} as desired. Therefore, $D(K_2 \times K_n)$ is unimodal for all $n \in \N$. \end{proof} \subsection{Generalization of Crown Graphs} \begin{thm} \label{thm:regular} Let $G$ be an $m$-regular graph on $2n$ vertices for some $n-1 \leq m < 2n$. Then, $D(G)$ is unimodal with mode $n$. \end{thm} \begin{proof} Let $G=(V,E)$ be a graph as described. First, we notice that by Theorem \ref{thm:half}, for $0 \leq i < n$, $d_i \leq d_{i+1}$. So, each vertex $v$ has degree $m\geq n-1$, and its closed neighborhood, $N[v]$, contains at least $n$ vertices. Suppose that $S$ is a non-dominating set of size $i$. Then, there exists a vertex $u$ such that $N[u] \cap S = \varnothing.$ Thus, there are at least $n$ vertices which are not in $S$ which implies that $i \leq n$. Therefore, all subsets of size $i > n$ must be dominating so $d_i = {2n \choose i}$ for $n< i \leq 2n$. Therefore, $D(G)$ is unimodal. Finally, to locate the mode of $D(G)$, we must check the relationship between $d_n$ and $d_{n+1}$. We notice that if $m > n-1$, then the maximum size non-dominating set is $2n - m > n$ so all subsets of size $n$ are dominating. Thus, $d_n = {2n \choose n}$ and $d_n \geq d_{n+1}$. If, $m = n-1$, then for any vertex $v$, $|V \setminus N[v]| = n$. Each of these $2n$ sets is non-dominating. However, they may not be distinct if, for example, $N[v] = N[u]$ for $u\neq v$. So, there are at most $2n$ non-dominating sets of size $n$. Thus, $d_n \geq {2n \choose n} - 2n$. We claim, $$d_n(G) = {2n \choose n} - 2n \geq {2n \choose n+1} = d_{n+1}(G).$$ This simplifies to $${2n-1 \choose n-1} \geq n(n+1)$$ which holds for $n\geq 4$ by induction. Therefore, $D(G)$ is unimodal with mode $n$. \end{proof} \subsection{Direct Product of Complete Graphs} Base cases: \begin{align*} K_3 \times K_3 &= x^9 + 9x^8 + 36x^7 + 84x^6 + 126x^5 + 117x^4 + 48x^3\\ K_3 \times K_4 &= x^{12} + 12x^{11} + 66x^{10} + 220x^9 + 495x^8 + 792x^7 + 924x^6 + 780x^5 + 435x^4 + 100x^3 \end{align*} \begin{multline*} K_3 \times K_5 = x^{15} + 15x^{14} + 105x^{13} + 455x^{12} + 1365x^{11} + 3003x^{10} + 5005x^9\\ + 6435x^8 + 6435x^7 + 4990x^6 + 2913x^5 + 1140x^4 + 185x^3 \end{multline*} \begin{multline*} K_3 \times K_6 = x^{18} + 18x^{17} + 153x^{16} + 816x^{15} + 3060x^{14} + 8568x^{13} + 18564x^{12} + 31824x^{11} + 43758x^{10}\\ + 48620x^9 + 43758x^8 + 31806x^7 + 18438x^6 + 8190x^5 + 2475x^4 + 306x^3 \end{multline*} \begin{multline*} K_4 \times K_4 = x^{16} + 16x^{15} + 120x^{14} + 560x^{13} + 1820x^{12} + 4368x^{11} + 8008x^{10} + 11440x^9 + 12870x^8\\ + 11440x^7 + 7992x^6 + 4272x^5 + 1580x^4 + 240x^3 \end{multline*} \begin{multline*} K_4 \times K_5 = x^{20} + 20x^{19} + 190x^{18} + 1140x^{17} + 4845x^{16} + 15504x^{15} + 38760x^{14} + 77520x^{13}\\ + 125970x^{12} + 167960x^{11} + 184756x^{10} + 167960x^9\\ + 125970x^8 + 77500x^7 + 38620x^6 + 15084x^5 + 4145x^4 + 480x^3 \end{multline*} \begin{multline*} K_4 \times K_6 = x^{24} + 24x^{23} + 276x^{22} + 2024x^{21} + 10626x^{20} + 42504x^{19} + 134596x^{18} + 346104x^{17} + 735471x^{16}\\ + 1307504x^{15} + 1961256x^{14} + 2496144x^{13} + 2704156x^{12} + 2496144x^{11} + 1961256x^{10}\\ + 1307504x^9 + 735447x^8 + 345912x^7 + 133924x^6 + 41160x^5 + 9006x^4 + 840x^3 \end{multline*} \begin{multline*} K_5 \times K_5 = x^{25} + 25x^{24} + 300x^{23} + 2300x^{22} + 12650x^{21} + 53130x^{20} + 177100x^{19} + 480700x^{18}\\ + 1081575x^{17} + 2042975x^{16} + 3268760x^{15} + 4457400x^{14} + 5200300x^{13} + 5200300x^{12}\\ + 4457400x^{11} + 3268760x^{10} + 2042975x^9 + 1081550x^8 + 480500x^7\\ + 176400x^6 + 51730x^5 + 10900x^4 + 1000x^3\\ \end{multline*} \begin{multline*} K_5 \times K_6 = \end{multline*} \begin{multline*} K_6 \times K_6 = \end{multline*} It will be helpful in the proof of the next theorem to know that $2^{n-1} \geq n^2$ for $n \geq 7$. So, we will begin with this proof. \begin{lem} \label{lem:ineq1} For $n \geq 7$, $2^{n-1} \geq n^2$. \end{lem} \begin{proof} We proceed by induction. As a base case, we see that if $n=7$, then $2^6 = 64 \geq 49 = 7^2$. So, as the induction hypothesis, suppose there exists $k \geq 7$ such that $2^{k-1} \geq k^2$. Then, \begin{align*} 2^{k+1 - 1} &= 2(2^{k-1})\\ &\geq 2k^2\\ &= k^2 + k^2 \\ &\geq k^2 + (2k +1)\\ &=(k+1)^2 \end{align*} which completes the proof. \end{proof} \begin{multline*} D(K_2\times K_3 \times K_3) = x^{18} + 18x^{17} + 153x^{16} + 816x^{15} + 3060x^{14} + 8550x^{13} + 18330x^{12} + 30400x^{11}\\ + 38682x^{10} + 36494x^9 + 24021x^8 + 9972x^7 + 2292x^6 + 252x^5 + 18x^4 \end{multline*} \begin{multline*} D(K_2 \times K_3 \times K_4) = x^{24} + 24x^{23} + 276x^{22} + 2024x^{21} + 10626x^{20} + 42504x^{19} + 134596x^{18}\\ + 346080x^{17} + 735063x^{16} + 1304240x^{15} + 1944972x^{14} + 2439528x^{13} + 2559062x^{12} \end{multline*} \begin{multline*} D(K_2 \times K_3 \times K_5) = x^{30} + 30x^{29} + 435x^{28} + 4060x^{27} + 27405x^{26} + 142506x^{25} + 593775x^{24}\\ + 2035800x^{23} + 5852925x^{22} + 14307120x^{21} + 30044385x^{20}\\ + 54621000x^{19} + 86453385x^{18} + 119581320x^{17} + 144820425x^{16} + 153531464x^{15} \end{multline*} $$D(K_2 \times K_3 \times K_6) = \text{also checked}$$ \begin{multline*} D(K_3 \times K_3 \times K_3) = x^{27} + 27x^{26} + 351x^{25} + 2925x^{24} + 17550x^{23} + 80730x^{22} + 296010x^{21} + 888030x^{20}\\ + 2220075x^{19} + 4686798x^{18} + 8435799x^{17} + 13033764x^{16} + 17361828x^{15} + 19975680x^{14} + 19827045x^{13} \end{multline*} \begin{multline*} D(K_2 \times K_4 \times K_4) = x^{32} + 32x^{31} + 496x^{30} + 4960x^{29} + 35960x^{28} + 201376x^{27} + 906192x^{26} + 3365856x^{25}\\ + 10518300x^{24} + 28048800x^{23} + 64512208x^{22} + 129023776x^{21} + 225785448x^{20}\\ + 347324320x^{19} + 471201616x^{18} + 564881696x^{17} + 598706534x^{16} \end{multline*} \begin{multline*} D(K_2 \times K_3 \times K_3 \times K_3) = x^{54} + 54x^{53} + 1431x^{52} + 24804x^{51} + 316251x^{50} + 3162510x^{49}\\ + 25827165x^{48} + 177100560x^{47} + 1040465790x^{46} + 5317936206x^{45} + 23930710740x^{44}\\ + 9572279922x^{43} + 343006122510x^{42} + ~1108168100000x^{41} + ~3245366300000x^{40}\\ + ~8653887800000x^{39} + ~21092473000000x^{38} + ~47141720000000x^{37}\\ + ~96878510000000x^{36} + ~183477760000000x^{35} + ~320839870000000x^{34}\\ + ~518791700000000x^{33} + ~776583070000000x^{32} + ~1076967300000000x^{31}\\ + ~1384191800000000x^{30} + ~1648712300000000x^{29} + ~1818943200000000x^{28}\\ + ~1856760100000000x^{27} \end{multline*} \begin{multline*} D(K_2 \times K_3 \times K_3 \times K_4) = ~13559593000000000x^{55} + 4.1432089e+16 x^{54} + 1.1775436e+17 x^{53}\\ + 3.1204903e+17 x^{52} + 7.7269274e+17 x^{51} + 1.7912417e+18 x^{50} + 3.8940012e+18 x^{49}\\ + 7.9502415e+18 x^{48} + 1.5264422e+19 x^{47} + 2.7593232e+19 x^{46} + 4.7010231e+19 x^{45} + 7.5550825e+19 x^{44}\\ + 1.146253e+20 x^{43} + 1.6428763e+20 x^{42} + 2.2256375e+20 x^{41} + 2.8511912e+20 x^{40} + 3.4552015e+20 x^{39}\\ + 3.9619021e+20 x^{38} + 4.2991217e+20 x^{37} + 4.4148438e+20 x^{36} \end{multline*} We want to approximate $d_i$, and we can do this by instead approximating the number of non-dominating sets $n_i$. By inclusion-exclusion, we have for odd $\ell$, $$n_i \leq \sum_{k=1}^\ell (-1)^{k+1}\sum_{\substack{S \subseteq V(G)\\ |S| = k}} {n - |N[S]| \choose i}$$ and for even $\ell$, $$n_i \geq \sum_{k=1}^\ell (-1)^{k+1}\sum_{\substack{S \subseteq V(G)\\ |S| = k}} {n - |N[S]| \choose i}\,.$$ In other words, the inclusion-exclusion partial sum will be an overestimate if the last term is positive, and an underestimate if the last term is negative. \begin{lem}\label{lem:ineq2} For $m,n \geq 3$, $n^{m-2} \geq m$. \end{lem} \begin{proof} First, note that $3$ is less than or equal to all valid values of $n$. So, it suffices to show that $3^{m-2} \geq m$. As a base case, we see that $3^{3-2} = 3 \geq 3$. Now, assume as the inductive hypothesis that for some $k \geq 3$ $3^{k-2} \geq k$. Then, \begin{align*} 3^{k+1-2} &= 3^{k-1}\\ &= 3(3^{k-2})\\ &\geq 3k \\ &\geq k+1 \end{align*} which completes the proof. \end{proof} \begin{thm} Let $G = K_n$ and $H=K_m$ be complete graphs. Then, $D(G \times H)$ is unimodal with mode at $\left \lceil{\frac{nm}{2}}\right \rceil$. \end{thm} \begin{proof} First, notice that $K_n \times K_m = K_m \times K_n$. We can divide the set of all products of two complete graphs into four cases: \begin{enumerate} \item $n=1$ \item $n=2$ \item $3\leq n,m \leq 6$ \item $n \geq 7, m\geq 3$. \end{enumerate} For the first case, we see that $K_1 \times K_m$ is the empty graph for all $m$ so $D(K_1 \times K_m)$ is trivially unimodal. In the second case, we have a crown graph which has unimodal domination polynomial by Theorem \ref{thm:crown}. The third case can be checked manually as there are only 8 such graphs. So, only the fourth case remains to be shown, and we will do so below. Note that the minimum degree of $G$ and $H$ are $\delta_G = n-1$ and $\delta_H = m-1$. Therefore, $\delta_{G\times H} = \delta_G \delta_H$. By Theorem \ref{thm:mindeg}, we know that if $\delta_{G \times H} \geq 2\log_2(nm)$, then $D(G \times H)$ is unimodal with mode $\left \lceil{\frac{nm}{2}}\right \rceil$. So, we want to show that $\delta_{G \times H} \geq 2\log_2(nm)$. We see \begin{align*} \delta_{G \times H} &\geq 2\log_2(nm)\\ \delta_G \delta_H &\geq 2\log_2(nm)\\ (n-1)(m-1) &\geq 2\log_2(nm)\\ 2^{(n-1)(m-1)} &\geq 2^{2\log_2(nm)}\\ (2^{n-1})^{m-1} &\geq n^2m^2 \end{align*} By Lemma \ref{lem:ineq1}, we can substitute, \begin{align*} (n^2)^{m-1} &\geq n^2m^2\\ n^{2m-4} &\geq m^2\\ n^{m-2} &\geq m\\ \end{align*} which is true by Lemma \ref{lem:ineq2}. Therefore, we have shown that $\delta_{G\times H} \geq 2\log_2(nm)$ so $D(G \times H)$ is unimodal with mode at $\left \lceil{\frac{nm}{2}}\right \rceil$. \end{proof} \section{Cartesian Product of Complete Graphs} \begin{defn}[Cartesian Product of Graphs] Let $G=(V_G,E_G)$ and $H=(V_H,E_H)$ be graphs. We define the Cartesian Product $G \text{ }\square \text{ } H$ on the vertices of $V_G \times V_H$ where $(g,h)$ is adjacent to $(g',h')$ if and only if $g=g'$ and $(h,h') \in E_H$ or $(g,g') \in E_G$ and $h = h'$. \end{defn} \begin{lem} For $n \geq 4$, $2^n \geq n^2$. \end{lem} \begin{proof} We see this holds for $n = 4$ as $4 \geq 4$. So, assume as the induction hypothesis that for some $k \geq 4$, $2^k \geq k^2$. Then, $$2^{k+1} = 2^k(2) \geq 2k^2 = k^2 + k^2 \geq k^2 + (2k + 1) = (k+1)^2$$ as desired. \end{proof} \begin{lem} For $m \geq 8$, $2^{m-2} \geq m^2$. \end{lem} \subsection{Explicit Cases} \begin{align*} D(K_3 \text{ }\square \text{ } K_3) &= x^9 + 9x^8 + 36x^7 + 84x^6 + 126x^5 + 117x^4 + 48x^3\\ D(K_3 \text{ }\square \text{ } K_4) &= x^{12} + 12x^{11} + 66x^{10} + 220x^9 + 495x^8 + 792x^7 + 912x^6 + 720x^5 + 333x^4 + 64x^3\\ \end{align*} \begin{multline*} D(K_3 \text{ }\square \text{ } K_5) = x^{15} + 15x^{14} + 105x^{13} + 455x^{12} + 1365x^{11} + 3003x^{10} + 5005x^9\\ + 6420x^8 + 6315x^7 + 4615x^6 + 2343x^5 + 750x^4 + 125x^3 \end{multline*} \begin{multline*} D(K_3 \text{ }\square \text{ } K_6) = x^{18} + 18x^{17} + 153x^{16} + 816x^{15} + 3060x^{14} + 8568x^{13} + 18564x^{12} + 31824x^{11}\\ + 43740x^{10} + 48440x^9 + 42993x^8 + 30024x^7\\ + 15984x^6 + 6210x^5 + 1620x^4 + 216x^3 \end{multline*} \begin{multline*} D(K_3 \text{ }\square \text{ } K_7) = x^{21} + 21x^{20} + 210x^{19} + 1330x^{18} + 5985x^{17} + 20349x^{16} + 54264x^{15} + 116280x^{14}\\ + 203490x^{13} + 293909x^{12} + 352464x^{11} + 351393x^{10} + 289940x^9\\ + 195825x^8 + 106368x^7 + 45276x^6 + 14406x^5 + 3087x^4 + 343x^3 \end{multline*} \begin{multline*} D(K_3 \text{ }\square \text{ } K_8) = x^{24} + 24x^{23} + 276x^{22} + 2024x^{21} + 10626x^{20} + 42504x^{19} + 134596x^{18}\\ + 346104x^{17} + 735471x^{16} + 1307504x^{15} + 1961232x^{14} + 2495808x^{13}\\ + 2702056x^{12} + 2488416x^{11} + 1942608x^{10} + 1276256x^9\\ + 697629x^8 + 311808x^7 + 110656x^6 + 29568x^5 + 5376x^4 + 512x^3 \end{multline*} \begin{multline*} D(K_4 \text{ }\square \text{ } K_4) = x^{16} + 16x^{15} + 120x^{14} + 560x^{13} + 1820x^{12} + 4368x^{11} + 8008x^{10} + 11424x^9 + 12726x^8\\ + 10864x^7 + 6712x^6 + 2640x^5 + 488x^4 \end{multline*} \begin{multline*} D(K_4 \text{ }\square \text{ } K_5) = x^{20} + 20x^{19} + 190x^{18} + 1140x^{17} + 4845x^{16} + 15504x^{15} + 38760x^{14} + 77520x^{13}\\ + 125950x^{12} + 167720x^{11} + 183436x^{10} + 163600x^9 + 116460x^8\\ + 63360x^7 + 24380x^6 + 5784x^5 + 625x^4 \end{multline*} \begin{multline*} D(K_4 \text{ }\square \text{ } K_6) = x^{24} + 24x^{23} + 276x^{22} + 2024x^{21} + 10626x^{20} + 42504x^{19} + 134596x^{18}\\ + 346104x^{17} + 735471x^{16} + 1307480x^{15} + 1960896x^{14} + 2493624x^{13}\\ + 2693296x^{12} + 2464104x^{11} + 1893180x^{10} + 1200864x^9 + 611541x^8\\ + 239904x^7 + 68416x^6 + 12960x^5 + 1296x^4 \end{multline*} \begin{multline*} D(K_4 \text{ }\square \text{ } K_7) = x^{28} + 28x^{27} + 378x^{26} + 3276x^{25} + 20475x^{24} + 98280x^{23} + 376740x^{22}\\ + 1184040x^{21} + 3108105x^{20} + 6906900x^{19} + 13123082x^{18}\\ + 21473676x^{17} + 30417471x^{16} + 37419396x^{15} + 40032180x^{14}\\ + 37211076x^{13} + 29940085x^{12} + 20696592x^{11} + 12143544x^{10}\\ + 5943280x^9 + 2370711x^8 + 747492x^7 + 177674x^6 + 28812x^5 + 2401x^4 \end{multline*} \begin{multline*} D(K_5 \text{ }\square \text{ } K_5) = x^{25} + 25x^{24} + 300x^{23} + 2300x^{22} + 12650x^{21} + 53130x^{20} + 177100x^{19} + 480700x^{18}\\ + 1081575x^{17} + 2042950x^{16} + 3268360x^{15} + 4454400x^{14} + 5186300x^{13}\\ + 5154900x^{12} + 4349400x^{11} + 3075160x^{10} + 1778875x^9 + 808325x^8\\ + 269500x^7 + 58300x^6 + 6130x^5 \end{multline*} \begin{multline*} D(K_5 \text{ }\square \text{ } K_6) = x^{30} + 30x^{29} + 435x^{28} + 4060x^{27} + 27405x^{26} + 142506x^{25} + 593775x^{24} + 2035800x^{23}\\ + 5852925x^{22} + 14307150x^{21} + 30044985x^{20} + 54626700x^{19} + 86487525x^{18} + 119725650x^{17} + 145277400x^{16}\\ + 154653660x^{15} \end{multline*} \begin{multline*} D(K_6 \square K_6) = x^{36} + 36x^{35} + 630x^{34} + 7140x^{33} + 58905x^{32} + 376992x^{31} + 1947792x^{30}\\ + 8347680x^{29} + 30260340x^{28} + 94143280x^{27} + 254186856x^{26}\\ +600805260x^{25} + 1251675800x^{24} + 2310778800x^{23} + 3796214400x^{22} + 5567447160x^{21}\\ + 7305959610x^{20} + 8591124600x^{19} + 9057864300x^{18} \end{multline*} \begin{multline*} D(K_5 \square K_7) = x^{35} + 35x^{34} + 595x^{33} + 6545x^{32} + 52360x^{31} + 324632x^{30} + 1623160x^{29}\\ + 6724520x^{28} + 23535820x^{27} + 70607460x^{26}\\ + 183579396x^{25} + 417225865x^{24} + 834450960x^{23} + 1476328140x^{22} + 2319888560x^{21}\\ + 3247571355x^{20} + 4058443410x^{19} + 4532876810x^{18} + 4525574970x^{17} \end{multline*} \begin{theorem}\label{thm:2xn} For all $n \in \N$, $D(K_2 \text{ }\square \text{ } K_n)$ is unimodal. \end{theorem} \begin{proof} First, note that $K_2 \text{ }\square \text{ } K_n$ has $2n$ vertices. Then, by Theorem \ref{thm:half}, we know that for all $0 \leq i < n$, $d_i \leq d_{i+1}$. Next, we observe that by Theorem \ref{thm:2n} that for $n < i \leq 2n$, $d_i \geq d_{i+1}$. \end{proof} \begin{thm} For all $n \in \N$, $D(K_3 \text{ }\square \text{ } K_n)$ is unimodal. \end{thm} \begin{theorem}\label{thm:cartesian} $D(K_n \text{ }\square \text{ } K_m)$ is unimodal for all $n,m \in \N$. \end{theorem} \begin{proof} First, notice that $K_n \text{ }\square \text{ } K_m \cong K_m \text{ }\square \text{ } K_n$. We can divide the set of all products of two complete graphs into five cases: \begin{enumerate} \item $n=1$ \item $n=2$ \item $n=3$ \item $4\leq n,m \leq 7$ \item $n \geq 4, m\geq 8$. \end{enumerate} We see, $K_1 \text{ }\square \text{ } K_m = K_m$. So, when $n = 1$, $D(K_n \text{ }\square \text{ } K_m)$ is unimodal by Theorem \ref{thm:complete_multi}. Next, we notice that $K_2 \text{ }\square \text{ } K_m$ is an $m$-regular graph on $2m$ vertices. Therefore, by Theorem \ref{thm:regular}, $D(K_n \text{ }\square \text{ } K_m)$ is unimodal when $n = 2$. Let's consider $n = 3$. We see for $m = 3,4$, $D(K_n \text{ }\square \text{ } K_m)$ is unimodal by Theorem $\ref{thm:regular}$. Also, for $m \geq 9$, $D(K_n \text{ }\square \text{ } K_m)$ is unimodal by Theorem \ref{thm:mindeg}. The 10 cases for $4 \leq n.m \leq 7$ can be checked explicitly. We see $D(K_6 \text{ }\square \text{ } K_7)$ and $D(K_7 \text{ }\square \text{ } K_7)$ are unimodal by Theorem $\ref{thm:mindeg}$. The remaining eight cases can be verified by computer. Therefore, it only remains to show that $D(K_n \text{ }\square \text{ } K_m)$ is unimodal for $n \geq 4, m\geq 8$. Recall Theorem \ref{thm:mindeg} proves that if $\delta_G \geq 2\log_2(|V|)$, then $D(G)$ is unimodal. So, we see for $n \geq 4$, $m \geq 8$, \begin{align*} \delta_{K_n \text{ }\square \text{ } K_m} &= (n-1)(m-1)\\ &= n+m-2\\ &\geq 2\log_2(n) + m-2\\ &\geq 2\log_2(n) + 2\log_2(m)\\ &= 2\log_2(nm). \end{align*} \end{proof} \subsection{\@startsection{subsection}{3}% \z@{.5\linespacing\@plus.7\linespacing}{.1\linespacing}% {\bfseries}} \makeatother \newcommand{\customfootnotetext}[2]{ \renewcommand{\thefootnote}{#1 \footnotetext[0]{#2}} \newcommand{\overline{a}}{\overline{a}} \newcommand{\bbar} { \overline{b}} \newcommand{\pbar} { \overline{a+b}} \newcommand{\abbar} { \overline{ab}} \newcommand{\N} { \mathbb{N}} \newcommand{\Q} { \mathbb{Q}} \newcommand{\Z} { \mathbb{Z}} \newcommand{\C} { \mathbb{C}} \newcommand{\mathfrak{H}}{\mathfrak{H}} \newcommand{\h} { \mathbb{H}} \newcommand{\A} { \mathbb{A}} \newcommand{\I} { \mathcal{I}} \newcommand{\buildrel \text{d{}ef}\over =}{\buildrel \text{d{}ef}\over =} \newcommand{\R} { \mathbb{R}} \newcommand{\U} { \mathscr{U}} \newcommand{\F} { \mathcal{F}} \newcommand{\M} { \mathfrak{M}} \renewcommand{\L} { \mathscr{L}} \newcommand{\X} { \mathfrak{X}} \newcommand{\J} { \mathfrak{J}} \newcommand{\x} { \overline{x}} \newcommand{\y} { \overline{y}} \newcommand{\nul} { \mbox{null}} \newcommand{\spa} { \mbox{span}} \newcommand{\diam} { \mbox{diam }} \newcommand{\mat} { \mbox{Mat}} \newcommand{\Mat} { \mbox{Mat}} \newcommand{\cl} { \mbox{cl}} \newcommand{\inv} { \mbox{Inv}} \newcommand{\ah} { \mbox{ah}} \newcommand{\bd} { \mbox{Bd}} \renewcommand{\th} { \text{th}} \newcommand{\lint} { \underline{\int}} \newcommand{\uint} { \overline{\int}} \newcommand{\cut} { \backslash} \newcommand{\adj} { \mbox{adj}} \newcommand{\co} { \mbox{co}} \newcommand{\vol} { \mathscr{v}} \newcommand{\osso} { \mbox{osso }} \newcommand{\ent} { \mbox{Int }} \newcommand{\ext} { \mbox{Ext}} \newcommand{\extint} { \mbox{ext }\int} \newcommand{\rank} { \mbox{rank }} \newcommand{\supp} { \mbox{supp }} \newcommand{\Aut} { \mbox{Aut}} \newcommand{\rad} { \mbox{rad }} \newcommand{\Lon} { \mbox{Lon}} \newcommand{\Soc} { \mbox{Soc}} \newcommand{\cong}{\cong} \newcommand{\Cay} { \mbox{Cay}} \DeclareMathOperator{\AP}{AP} \DeclareMathOperator{\ap}{ap} \newcommand{\maxi} { \mbox{max}} \DeclareMathOperator{\border}{border} \DeclareMathOperator{\E}{\mathbb{E}} \renewcommand{\P}{\mathbb{P}} \DeclareMathOperator{\IR}{IR} \DeclareMathOperator{\ir}{ir} \DeclareMathOperator{\pn}{pn} \DeclareMathOperator{\rep}{rep} \newcommand{\norm}[1]{\left\lVert#1\right\rVert} \usepackage{etoolbox} \makeatletter \patchcmd{\@maketitle} {\ifx\@empty\@dedicatory} {\ifx\@empty\@date \else {\vskip3ex \centering\footnotesize\@date\par\vskip1ex}\fi \ifx\@empty\@dedicatory} {}{} \patchcmd{\@adminfootnotes} {\ifx\@empty\@date\else \@footnotetext{\@setdate}\fi} {}{}{} \makeatother \DeclareMathOperator{\Cdot}{\bigcdot} \title[Unimodality and Monotonic Portions of Certain Domination Polynomials]{Unimodality and Monotonic Portions of Certain Domination Polynomials} \author{Amanda Burcroff} \address{Department of Mathematical Sciences \\ Durham University\\ Durham, United Kingdom DH1 3LE} \email{<EMAIL> \textrm{ or } <EMAIL>} \author{Grace O'Brien} \address{Department of Mathematics\\ University of Michigan\\ Ann Arbor, Michigan 48009} \email{<EMAIL>} \begin{document} \maketitle \begin{abstract} Given a simple graph $G$ on $n$ vertices, a subset of vertices $U \subseteq V(G)$ is \emph{dominating} if every vertex of $V(G)$ is either in $U$ or adjacent to a vertex of $U$. The \emph{domination polynomial} of $G$ is the generating function whose coefficients are the number of dominating sets of a given size. We show that the domination polynomial is unimodal, i.e., the coefficients are non-decreasing and then non-increasing, for several well-known families of graphs. In particular, we prove unimodality for spider graphs with at most $400$ legs (of arbitrary length), lollipop graphs, arbitrary direct products of complete graphs, and Cartesian products of two complete graphs. We show that for every graph, a portion of the coefficients are non-increasing, where the size of the portion depends on the upper domination number, and in certain cases this is sufficient to prove unimodality. Furthermore, we study graphs with $m$ \emph{universal vertices}, i.e., vertices adjacent to every other vertex, and show that the last $(\frac{1}{2} - \frac{1}{2^{m+1}}) n$ coefficients of their domination polynomial are non-increasing. \end{abstract} \section{Introduction} Graph domination has become a mainstream branch of graph theory over the last half century, but only in the past decade have researchers asked enumerative questions about the number of dominating sets of a particular size in a fixed graph. In this paper, we study these quantities on several families of graphs and determine special properties of these counts as sequences, iterating over the size of the dominating sets for a given graph. Let $G = (V,E)$ be a simple graph on $n$ vertices. A set $U \subseteq V$ is called \emph{dominating} if every vertex of $G$ is either in $U$ or adjacent to a vertex of $U$. Let $d_i(G)$ denote the number of dominating sets of a graph $G$ of a fixed size $i$. A significant portion of the study of domination in graphs has focused on finding the minimum size of a dominating set in $G$, the \textit{domination number}, $\gamma(G)$. Note that the minimum $i$ such that $d_i(G) > 0$ is precisely $\gamma(G)$, so calculating these quantities $d_i(G)$ encompasses the task of determining the domination number. It is often convenient to look at these $d_i(G)$ in terms of generating functions; the {\it domination polynomial}, $D(G,x)$, is given by $$D(G,x) = \sum_{i=1}^n d_i(G)x^i\,.$$ Even without precisely calculating the quantities $d_i(G)$, one can investigate properties of their distribution, such as their relative order. Alikhani and Peng posed the following conjecture in 2014: \begin{conj}[\cite{AP}]\label{conj:unimodal} The domination polynomial of any graph is unimodal. \end{conj} Note that, in general, the coefficients of the domination polynomial are not log-concave (see an example of minimum size on $9$ vertices in \cite{BeBr}). This implies that the domination polynomials are not real-rooted, and in fact it is known that the roots are dense in the complex plane \cite{BrTu}. There has been an assortment of partial progress toward Conjecture \ref{conj:unimodal} (see \cite{Bea} for a survey of recent results). In 2020, Beaton and Brown \cite{BeBr} show that paths, cycles, and complete multipartite graphs all have unimodal domination polynomials. Moreover, they prove that graphs with sufficiently large minimum degree have unimodal domination polynomials (see Theorem \ref{thm:mindeg}), which they use to show that almost all graphs have unimodal domination polynomials. In \cite{AJ}, Alikhani and Jahari demonstrate unimodality of the domination polynomials for several families of graphs, including every friendship graph as well as the corona of any graph with $P_3$ or $K_n$. In this paper, we identify other families of graphs with unimodal domination polynomials and study the behavior of certain portions of the coefficients. The families of graphs that we study generally have certain extremal degree properties, i.e., have many vertices of low degrees, high degrees, or equal degrees. We start with spider graphs, which are trees with only one vertex of degree larger than $2$. We extend our methods used for spider graphs to handle lollipop graphs, which consist of vertices of degree at most $2$ and all other vertices of high degree. We then move on to two well-structured families of regular graphs, namely the direct and Cartesian products of complete graphs. We furthermore show that graphs with a very low upper domination number have unimodal domination polynomials; such graphs generally have all vertices of large degree. Lastly, we focus on graphs with one or more universal vertices, which have the maximum possible degree. Loosely speaking, this paper is structured so that the degree sequences of the graphs involved are lexicographically increasing (though, of course, such an ordering depends on the choice of several parameters). More explicitly, the remainder of this paper is structured as follows. We begin by providing the necessary background in Section \ref{sec: prelim}. In Section \ref{sec:spiders}, we consider spider graphs having a bounded number of legs, each of arbitrary length. In particular, we prove that all spider graphs with at most $400$ legs have unimodal domination polynomials. We remark that the bound $400$ is somewhat arbitrary; a portion of the proof relies on a number of computer checks that could be carried out further, but in our case slowed down around this threshold. Our work includes a generalization of the methods developed by Beaton and Brown \cite{BeBr} for paths. We furthermore show that any lollipop graph, i.e., a graph obtained by appending a path to a complete graph, has a unimodal domination polynomial in Section \ref{sec:lollipop}. Next, we investigate connected direct and Cartesian products of complete graphs. The interplay between dominating sets and graph products has been the subject of myriad studies, as surveyed in \cite[Chapter 28]{HIK} and \cite{NR}. In general, it can be hard to estimate how the sequence $d_i(G)$ behaves under graph products. One of the most famous open problems in graph domination is Vizing's conjecture that the domination number of a Cartesian product of graphs is at least the product of their domination numbers \cite{Viz}. In Sections \ref{sec:direct} and \ref{sec:cartesian}, we prove the unimodality of the direct product of arbitrarily many complete graphs and the Cartesian product of two complete graphs, respectively. The former family includes the unitary Cayley graphs of $\Z/q\Z$ for every squarefree integer $q$, which have received recent attention for their extremal domination properties \cite{Bur, Bur2, DI, Vem}. In Section \ref{sec:upper dom}, we use a Hall-type argument to show that a portion of the domination polynomial coefficients are non-increasing, where the size of this portion depends on the upper domination number. The \emph{upper domination number} $\Gamma(G)$ of a graph $G$ is the maximum size of a minimal dominating set in $G$. Our bound in particular implies that graphs of odd order with $\Gamma(G) \leq 4$ and graphs of even order with $\Gamma(G) \leq 3$ have unimodal domination polynomials. In Section \ref{sec:universal}, we study graphs with $m$ universal vertices, as suggested in the open problems section of \cite{BeBr}. A \emph{universal vertex} is a vertex that is adjacent to every other vertex, i.e., has degree $n-1$. We show that the last $\left(\frac{1}{2}-\frac{1}{2^{m+1}}\right)n$ coefficients of the domination polynomial are non-increasing. As a direct corollary, any graph with at least $\log_2(n)-1$ universal vertices has a unimodal domination polynomial. We conclude with several directions for future research in Section \ref{sec: further directions}. \section{Preliminaries}\label{sec: prelim} Here we provide some basic definitions, an overview of the relevant families of graphs and graph operations, as well as a collection of previous results. A polynomial is called \emph{unimodal} if its coefficients are non-decreasing and then non-increasing. We order the coefficients of a polynomial $f(x)$ of degree $n$ by increasing order of the corresponding powers of $x$; thus when we refer to the last $k$ coefficients, we mean the coefficients of $x^{n-k+1}$, $x^{n-k+2}$, \ldots, $x^n$. If $f(x)$ is unimodal, a coefficient of $x^k$ is a \emph{mode} if it achieves the maximum value over all coefficients; in this case, we say $f$ \emph{has a mode at} $k$. Note that a unimodal polynomial may have multiple modes. Given two unimodal polynomials $f(x)$ and $g(x)$, we refer to the \emph{distance} between modes appearing as the coefficients of $x^{k_f}$ and $x^{k_g}$ in $f(x)$ and $g(x)$, respectively, as the quantity $|k_f - k_g|$. We begin by discussing the domination polynomials of spiders. The \emph{spider graph} (or \emph{spider}) $S(\lambda_1,\ldots,\lambda_t)$ is the graph formed by taking $t$ paths, each on $\lambda_i$ vertices, and connecting one end of each path to an additional central vertex. The induced path graph on a set of vertices comprising one of the original paths is called a \emph{leg of length $\lambda_i$}. \begin{figure}[ht!] \centering \includegraphics[width=.3\linewidth]{Spider1223.pdf} \caption{The spider graph $S(1,2,2,3).$} \label{fig:spider} \end{figure} In the study of spiders, we make use of the several common graph notions, defined here. Let $G = (V,E)$ be a graph and $v$ be a vertex. The \emph{open neighborhood of $v$}, denoted by $N(v)$, is the set of all neighbors of $v$. The \textit{closed neighborhood of $v$}, denoted by $N[v]$, is the open neighborhood of $v$ along with $v$ itself, i.e., $N[v] = \{u \in V : \{u,v\} \in E\} \cup \{v\}$. We also look at subgraphs obtained by the deletion of one or more vertices. For any $U \subseteq V$, the graph $G - U$ is the graph obtained by removing all vertices in $U$ and any edges incident to a vertex in $U$. When $U = \{v\}$ consists of a single vertex, we often write $G - v$ for $G - \{v\}$. The subgraph $G/v$ obtained by \emph{contracting} the vertex $v$ has vertex set $V\cut \{v\}$, and its edge set consists of all edges in $G-\{v\}$ plus all edges between two vertices in $N(v)$. After our discussion of spiders, we move on to graph products. There are multiple ways to define a product of graphs; we focus on two of the most common, namely the direct and Cartesian products. Let $G = (V(G), E(G))$ and $H = (V(H),E(H))$ be graphs. The \textit{direct product} (or \emph{tensor product}) of $G$ and $H$ is the graph $G \times H$ on $V(G\times H) = V(G) \times V(H)$ where $(g,h)$ and $(g',h')$ are adjacent if $\{g,g'\} \in E(G)$ and $\{h,h'\} \in E(H)$. The \textit{Cartesian product} (or \emph{box product}) is the graph $G \cart H$ on the vertices of $V(G) \times V(H)$ where $(g,h)$ and $(g',h')$ are adjacent if $g=g'$ and $\{h,h'\} \in E(H)$, or $\{g,g'\} \in E(G)$ and $h = h'$. When we take the product of multiple graphs simultaneously, the definitions follow associatively from the definitions for the product of two graphs. Finally, we introduce two theorems, which we utilize several times throughout this paper. \begin{thm}[\protect{\cite[Theorem 3.2]{BeBr}}]\label{thm:mindeg} If $G$ is a graph on $n$ vertices with minimum degree \\ $\delta(G) \geq 2\log_2(n)$, then $D(G,x)$ is unimodal with a mode at $\left \lceil{\frac{n}{2}}\right \rceil$. \end{thm} \begin{thm}[\protect{\cite[Theorem 5]{AP}}]\label{thm: first half} Let $G$ be a graph on $n$ vertices. Then for every $0 \leq i < \frac{n}{2}$, we have $d_i(G) \leq d_{i+1}(G)$. \end{thm} Theorem \ref{thm:mindeg} is the foundation for Beaton and Brown's proof that almost all graphs (in the context of the Erd{\H o}s-R{\'e}nyi graph model) are unimodal (\cite[Theorem 3.3]{BeBr}). Their result allows us to simplify the consideration of many families of graphs. The proof of Theorem \ref{thm: first half} is a direct application of Hall's Theorem (see Theorem \ref{thm: Hall}). In general, making statements about the first half of the coefficients of a domination polynomial has been relatively straightforward, while claims about the second half have proved more difficult. \section{\texorpdfstring{Spiders With at Most $400$ Legs}{Spiders With at Most 400 Legs}}\label{sec:spiders} Trees are a particularly elusive case of Conjecture \ref{conj:unimodal} due to their low minimum degree, as noted in \cite{BeBr}. As a first step towards understanding the behavior of the domination polynomials for trees in general, we study spider graphs, a family of trees. In this section, we show that all spider graphs with at most $400$ legs have unimodal domination polynomials. In order to establish unimodality for the domination polynomials of spiders, we adapt methods developed by Beaton and Brown to show that $D(P_n,x)$ is unimodal for all $n$, where $P_n$ is the path on $n$ vertices. In particular, we require the following theorem, which allows us to establish unimodality for a sequence of polynomials. \begin{thm}\label{thm: BeBr poly recursion}\emph{(\cite[Theorem 2.2]{BeBr})} Suppose we have a sequence of polynomials $(f_n)_{n \geq 1}$ with non-negative coefficients that satisfy $f_n=x(f_{n-1}+f_{n-2}+f_{n-3})$ for $n\geq 4$. Let $\mathcal{P}_n$ denote the following property: for all $i \in \{1, \ldots , n\}$, $f_i$ is unimodal with a mode at $\mu_i$ and for $i\geq 2$, we additionally have $0\leq \mu_i-\mu_{i-1}\leq 1$. Assume $\mathcal{P}_4$ holds. Then $\mathcal{P}_n$ holds for all $n\geq 1$ (and so each $f_n$ is unimodal). \end{thm} In order to apply Theorem \ref{thm: BeBr poly recursion} to spiders, we use the following recurrence due to Kotek, Preen, Simon, Tittmann, and Trinks. \begin{prop}\emph{(\cite[Proposition 3.1]{KPS})} \label{prop: recursion} Let $G$ be a graph. If there exist $u, v \in V(G)$ such that $N[u] \subseteq N[v]$, then $$D(G,x) = xD(G/v) + D(G-v) + xD(G-N[v])\,.$$ \end{prop} We show that if $G$ can be formed by appending a path on $3$ vertices to a graph, then we can confirm the unimodality of $D(G,x)$ by checking certain unimodality and mode conditions on subgraphs of $G$. We now proceed to characterize which subgraphs must be considered. Fix a graph $H$ on $n$ vertices and a vertex $v \in V(H)$. Let $H_v^{(\ell)}$ denote the graph obtained by appending a path on $\ell$ vertices by adding an edge between $v$ and a leaf, i.e., a vertex of degree $1$, of the path. We set $H_v^{(0)} := H$. Thus, $H_v^{(\ell)}$ has $n + \ell$ vertices for all $\ell \geq 0$. \begin{lem}\label{lem: path recursion} Let $G = (V,E)$ be a graph, and fix $v \in V(G)$. Suppose we have that \begin{enumerate}[(i)] \item $D(G,x)$, $D(G_v^{(1)},x)$, $D(G_v^{(2)},x)$, and $D(G_v^{(3)},x)$ are unimodal with modes at $\mu_0$, $\mu_1$, $\mu_2$, and $\mu_3$, respectively, and \item $0 \leq \mu_i - \mu_{i-1} \leq 1$ for $i \in \{1,2,3\}$. \end{enumerate} Then $D(G_v^{(\ell)},x)$ is unimodal for all $\ell \in \N$. \end{lem} \begin{proof} Let $u_i$ be the unique vertex in $V\left(G_v^{(i)}\right) \cut V\left(G_v^{(i-1)}\right)$ for $i \in \{1,2,3\}$, as illustrated in Figure \ref{fig: path recursion example}. Observe that $G_v^{(3)}/u_2 \cong G_v^{(2)}$ and $G_v^{(3)} - N[u_2] = G_v^{(3)} - \{u_1,u_2,u_3\} = G$. Since $N[u_3] \subseteq N[u_2]$ in $G_v^{(3)}$, by Proposition \ref{prop: recursion} we have $$D\left(G_v^{(3)},x\right) = xD\left(G_v^{(2)},x\right) + D\left(G_v^{(3)}- \{u_2\},x\right) + xD\left(G,x\right).$$ Moreover, note that $G_v^{(3)} - \{u_2\} = G_v^{(1)} \cup \{u_3\}$. Since $u_3$ must be included in every dominating set of $G_v^{(1)} \cup \{u_3\}$, we have $D\left(G_v^{(3)} - \{u_2\},x\right) = xD\left(G_v^{(1)},x\right)$. Thus, Theorem \ref{thm: BeBr poly recursion} applies with $f_n = D\left(G_v^{(3)},x\right)$, $f_{n-1} = D\left(G_v^{(2)},x\right)$, $f_{n-2} = D\left(G_v^{(1)},x\right)$, and $f_{n-3} = D\left(G,x\right)$. \end{proof} \begin{figure}[ht!] \centering \includegraphics[width=.9\linewidth]{extend_spider_example.pdf} \caption{Illustrations of the graphs constructed in Lemma \ref{lem: path recursion}, where \\$G = S(1,2,2,3)$ and $v$ chosen to be the unique vertex of degree at least $3$.} \label{fig: path recursion example} \end{figure} While we use Lemma \ref{lem: path recursion} to show that spiders with a bounded number of legs have unimodal domination polynomials, similar techniques could be applied to other families of graphs satisfying similar hypotheses. We need only check that these conditions hold when attaching paths on at most $3$ vertices to establish unimodality after attaching paths of arbitrary lengths. Once such family where similar methods can be used is the set of lollipop graphs, which we investigate in Section \ref{sec:lollipop}. We now establish the precise domination polynomial of a spider graph with legs of length at most $3$. This classification is then used to complete the finite number of checks needed to ensure the conditions of Lemma \ref{lem: path recursion} hold for spiders with a bounded number of legs, each with length at most $3$. \begin{lem}\label{lem: spider poly} Let $S$ be a spider comprised of $\ell_1$ legs of length $1$, $\ell_2$ legs of length $2$, and $\ell_3$ legs of length $3$. If $\ell_1 > 0$, we have $$D(S,x) = x(1+x)^{\ell_1}(2x+x^2)^{\ell_2}(2x+3x^2 + x^3)^{\ell_3} + x^{\ell_1}(2x + x^2)^{\ell_2}(x+3x^2+ x^3)^{\ell_3}\,.$$ If $\ell_1 = 0$, we have $$D(S,x) = x(2x + x^2)^{\ell_2}(2x +3x^2 + x^3)^{\ell_3} + (2x + x^2)^{\ell_2}(x + 3x^2 + x^3)^{\ell_3} - x^{\ell_2}(x + x^2)^{\ell_3}\,.$$ \end{lem} \begin{proof} Let $z$ denote the center vertex of the spider. We claim that $$A(x) := x(1 + x)^{\ell_1}(2x + x^2)^{\ell_2}(2x + 3x^2 + x^3)^{\ell_3}$$ is the generating function whose coefficients count the number of dominating sets of $S$ that include $z$. Observe that $2x + 3x^2 + x^3$ (resp. $2x+x^2$, $1 + x$) counts the number of sets of a path of length $3$ (resp. $2$, $1$) whose closed neighborhood includes all vertices except possibly one endpoint of the path. The dominating sets of $S$ are formed by taking such a subset of vertices in each of the $\ell_i$ paths of length $i$, and then attaching the (possibly uncovered) endpoint of each path to $z$ via an edge. We now proceed to count the number of dominating sets of $S$ that do not contain $z$. Observe that $x + 3x^2 + x^3$ (resp. $2x + x^2$, $x$) counts the number of dominating sets of a path of length $3$ (resp. $2$, $1$). Suppose that we choose a subset of vertices $W \subset V(S)$ formed by taking such a subset of vertices in the $\ell_i$ paths of length $i$, and then attaching an endpoint of each path to $z$ via an edge. Note that there are $x^{\ell_1}(2x + x^2)^{\ell_2}(x + 3x^2 + x^3)^{\ell_3}$ such sets. Our construction of $W$ guarantees that $W$ dominates all vertices of $S$ except for possibly $z$; we now consider two cases regarding when $z$ is dominated. \begin{enumerate}[(i)] \item If $\ell_1 > 0$, then one of the legs of length $1$ in $S$ must have its leaf included in $W$. Thus, $W$ dominates $z$. So, by the above, $W$ is a dominating set of $S$. \item If $\ell_1 = 0$, then $W$ is non-dominating precisely when all the endpoints of the paths that are attached to $z$ are not included in $W$. Such sets are counted by $x^{\ell_2}(x + x^2)^{\ell_3}$. \end{enumerate} We can therefore see that the number of dominating sets of $S$ not containing $z$ is given by the coefficients of $$B(x) := \begin{cases} x^{\ell_1}(2x + x^2)^{\ell_2}(x + 3x^2 + x^3)^{\ell_3} & \text{ if } \ell_1 > 0\,,\\ (2x + x^2)^{\ell_2}(x + 3x^2 + x^3)^{\ell_3} - x^{\ell_2}(x + x^2)^{\ell_3} & \text{ if } \ell_1 = 0\,. \end{cases} $$ Setting $D(S,x) = A(x) + B(x)$ yields the desired equalities. \end{proof} \begin{lem}\label{lem: spider recursion} Let $S = S(\lambda_1,\ldots,\lambda_t)$ be a spider with $t \leq 400$, and fix $i$ such that $\lambda_i > 3$. Let $S' = S(\lambda_1,\ldots,\lambda_{i-1},\lambda_i+1,\lambda_{i+1},\ldots,\lambda_t)$. If $D(S,x)$ is unimodal with a mode at $\mu$, then $D(S',x)$ is unimodal with a mode either at $\mu$ or $\mu+1$. \end{lem} \begin{proof} Apply Lemma \ref{lem: path recursion} to the vertices at the end of the leg of length $\lambda_i$; in particular, set $u_3$ to be the leaf of this leg, $u_2$ the unique neighbor of $u_3$, $u_1$ the other neighbor of $u_2$, and $v$ the other neighbor of $u_1$. \end{proof} \begin{thm} All spider graphs with at most $400$ legs (each of arbitrary length) have unimodal domination polynomials. \end{thm} \begin{proof} We first note that for $t \leq 400$, one can check via computer (as we have successfully done) that a spider $S$ with $t$ legs, each of length at most $3$, satisfies the hypotheses of Lemma \ref{lem: path recursion}. The domination polynomials for these spiders are given explicitly by Lemma \ref{lem: spider poly}, so the computer check is straightforward. It then follows immediately from Lemma \ref{lem: spider recursion} that every spider with at most $400$ legs has a unimodal domination polynomial. \end{proof} The natural next step is to determine if $D(S,x)$ is unimodal for any spider $S$. Note that the unimodality of these polynomials is implied by Alikhani and Peng's conjecture (\ref{conj:unimodal}). However, proving the following conjecture on spiders with legs of length at most $3$ would also be sufficient to prove unimodality for all spiders by applying Lemma \ref{lem: path recursion}. \begin{conj}\label{conj: spider modes} Let $S$ be a spider with legs of length at most $3$, and $S'$ be a spider obtained by deleting a leaf from $S$. Then $D(S,x)$ and $D(S',x)$ are unimodal with at least one pair of modes at $\mu_S$ and $\mu_{S'}$, respectively, such that $|\mu_S - \mu_{S'}| \leq 1$. \end{conj} \section{Lollipop Graphs}\label{sec:lollipop} Furthering our study of graphs with low minimum degree, we show that all lollipop graphs have unimodal domination polynomials. We use recursive methods with respect to appending paths, similar to those used for spider graphs in the previous section. \begin{defn} The \emph{$(m,n)$-lollipop graph} $L_{m,n}$ is the graph on $m + n$ vertices consisting of a complete graph on $m$ vertices and a path graph on $n$ vertices, connected at a leaf of the path via an edge. \end{defn} \begin{lem}\label{lem: lollipop cases} For $1 \leq n \leq 3$ and $m\geq 3$, we have that $D(L_{m,n},x)$ is unimodal with a mode at $\mu$, where \[ \mu = \begin{cases} \left\lfloor\frac{m}{2}\right\rfloor + 1 & \text{ if } n = 1\,,\\ \left\lceil\frac{m}{2}\right\rceil + 1 & \text{ if } n = 2\,,\\ \left\lfloor\frac{m}{2}\right\rfloor + 2 & \text{ if } n = 3\,.\\ \end{cases} \] \end{lem} \begin{proof} We break into cases depending on the value of $n$. Beaton and Brown \cite{BeBr} completed the case $m=3$ in the remark after their Corollary 2.3, so we can take $m \geq 4$. Thus, $m + n \geq 7$, so in particular, we know by Theorem \ref{thm: first half} that the first $4$ coefficients are non-decreasing.\\\\ {\bf Case $n = 1$:} Note that a set of at least $2$ vertices in $L_{m,1}$ is non-dominating if and only if it does not contain the leaf or the leaf's unique neighbor, i.e., the set is contained in the remaining $m-1$ vertices. Hence, for $i \geq 2$ we have $$d_i(L_{m,1}) = {m + 1 \choose i} - {m - 1 \choose i} = {m \choose i - 1} + {m - 1 \choose i - 1}\,.$$ The first summand ${m \choose i -1}$ has modes at $\left\lceil\frac{m}{2}\right\rceil + 1$ and $\left\lfloor\frac{m}{2}\right\rfloor + 1$, while the second summand ${m-1 \choose i-1}$ has modes at $\left\lceil\frac{m-1}{2}\right\rceil + 1$ and $\left\lfloor\frac{m-1}{2}\right\rfloor + 1$. In particular, both sequences have a mode at $\left\lfloor\frac{m}{2}\right\rfloor + 1 = \left\lceil\frac{m - 1}{2}\right\rceil + 1$. Hence, $D(L_{m,1},x)$ is unimodal with a mode at the desired position.\\\\ {\bf Case $n = 2$:} A set of at least $3$ vertices in $L_{m,2}$ is dominating if and only if it nontrivially intersects the closed neighborhood of the unique leaf. Thus, for $i \geq 3$ we have $$d_i(L_{m,2}) = {m + 2 \choose i} - {m \choose i} = {m + 1 \choose i -1} + {m + 1 \choose i} - {m \choose i} = {m + 1 \choose i -1} + {m \choose i-1}\,.$$ Similar to our analysis in Case 1, though with the indexing for $m$ shifted by one, we can see that $D(L_{m,2},x)$ is unimodal with a mode at $\left\lfloor\frac{m + 1}{2}\right\rfloor + 1 = \left\lceil\frac{m}{2}\right\rceil + 1$. \begin{figure}[ht!] \centering \includegraphics[width=.25\linewidth]{lollipop.pdf} \caption{The lollipop $L_{5,3}$ with designated vertices $u$ and $v$.} \label{fig:lollipop} \end{figure} \noindent {\bf Case $n = 3$:} Let $u$ denote the unique leaf of $L_{m,3}$, and let $v$ be the unique vertex of distance $2$ from $u$ (see Figure \ref{fig:lollipop}). A set of at least $4$ vertices is dominating if and only if it dominates both $u$ and $v$. This is because the unique neighbor of $u$ is dominated provided that $u$ is dominated, and moreover, by the pigeonhole principle at least one vertex of $K_m$ is included in the set hence all vertices of $K_m$ are dominated. There are ${m + 1 \choose i}$ sets of size $i$ that do not dominate $u$, ${m \choose i}$ sets of size $i$ that do not dominate $v$, and ${m - 1 \choose i}$ sets of size $i$ that dominate neither $u$ nor $v$. Hence, we have \begin{align*} d_i(L_{m,3}) &= {m + 3 \choose i} - {m + 1 \choose i} - {m \choose i} + {m - 1 \choose i}\\ &= {m + 2 \choose i - 1} + {m + 2 \choose i} - {m + 1 \choose i} - {m - 1 \choose i - 1}\\ &= {m + 2 \choose i - 1} + {m \choose i-2} + {m \choose i-1} - {m-1 \choose i-1}\\ &= {m + 2 \choose i -1} + {m \choose i-2} + {m-1 \choose i-2}\,. \end{align*} Similar to the previous two cases, we have that ${m \choose i-2} + {m-1 \choose i-2}$ is unimodal with a mode at $\left\lfloor \frac{m}{2}\right\rfloor + 2$. Moreover, ${m + 2 \choose i-1}$ has a mode at $\left\lfloor \frac{m + 2}{2}\right\rfloor + 1 = \left\lfloor \frac{m}{2}\right\rfloor + 2$. Hence, $D(L_{m,3},x)$ is as desired. \end{proof} \begin{thm} All lollipop graphs have unimodal domination polynomials. \end{thm} \begin{proof} This follows directly from Lemma \ref{lem: path recursion} and Lemma \ref{lem: lollipop cases}. \end{proof} \section{Products of Complete Graphs}\label{sec: prod} While the minimum size of a dominating set in a product of graphs has been studied for decades \cite{HIK, NR, Viz}, there has been little work toward understanding the dominating sets of larger sizes in a graph product. In general, this relationship can be rather complex, so we focus on a family of graphs that has been shown to have interesting domination properties in other contexts: direct and Cartesian products of complete graphs. The direct product of complete graphs has been shown to have extremal properties in the domination chain \cite{Bur,DI,Vem}, while the Cartesian products of two complete graphs were used by the first author to demonstrate the tightness of Bre{\v s}ar, Klav{\v z}ar, and Rall's inequality $\Gamma(G\times H) \geq \Gamma(G)\Gamma(H)$, which holds for any graphs $G$ and $H$ \cite{Bur2, BKR}. \begin{comment} \begin{gnote} The domination polynomials of products of graphs have been studied from many angles for decades. Naively, it seems that the relationship between the domination polynomials of two graphs and that of their product should be straightforward. However, upon investigation, the relationship can be surprisingly complex. In this section, we consider the direct and Cartesian products of complete graphs and their domination polynomials. Due to Theorem \ref{thm:mindeg}, we are able to show that the direct product of an arbitrary number of complete graphs has a unimodal domination polynomial. However, since the Cartesian product generally has lower minimum degree, this approach only allows us to prove that the Cartesian product of two complete graphs has unimodal domination polynomial. \end{gnote} \end{comment} \subsection{Direct Products of Complete Graphs} \label{sec:direct} In this section, we investigate the domination polynomials of the connected direct product of complete graphs. We first prove unimodality for certain regular graphs in Lemma \ref{lem:regular}, including graphs of the form $K_2 \times K_n$. Then, we consider the product of an arbitrary number of complete graphs. \begin{lem} \label{lem:regular} Let $G$ be an $m$-regular graph on $2n$ vertices for some $3 \leq n-1 \leq m < 2n$. Then, $D(G,x)$ is unimodal with a mode at $n$. \end{lem} \begin{proof} Let $G=(V,E)$ be a graph as described. First, we notice that by Theorem \ref{thm: first half}, we have $d_1(G) \leq d_2(G) \leq \cdots \leq d_{n-1}(G) \leq d_n(G)$. By the degree condition, each vertex $v$ has a closed neighborhood of size at least $n$. Every set of vertices that does not dominate $v$ must be a subset of $V(G)\cut N[v]$, which has size $2n - |N[v]| \leq n$. Iterating over the vertices, we see that there are at most $2n$ non-dominating sets of size $n$, and furthermore every set of size at least $n+1$ is dominating. Thus, ${2n \choose n} - 2n \leq d_n(G) \leq {2n \choose n}$, and $d_{n+r}(G) = {2n \choose n+r}$ for $1 \leq r \leq n$. In particular, we clearly have $d_{n+1}(G) \geq d_{n+2}(G) \geq \cdots \geq d_{2n}(G)$. For $n \geq 4$, it is straightforward to check that $${2n \choose n} - 2n \geq {2n \choose n+1}\,.$$ Since $d_{n-1}(G) \leq {2n \choose n-1} = {2n \choose n+1} = d_{n+1}(G) \leq d_n(G)$, we can conclude that $D(G,x)$ is unimodal with a mode at $n$. \end{proof} \begin{rem} Lemma \ref{lem:regular} can also be proven using the minimum degree argument from Theorem \ref{thm:mindeg} and a finite number of exceptional cases. However, the exceptional cases would include checking the domination polynomials of all $(n-1)$-regular graphs on $2n$ vertices for $n \leq 9$, which appears computationally challenging. \end{rem} \begin{comment} \begin{thm} Let $n, m \in \N$. Then, $D(K_n \times K_m,x)$ is unimodal with a mode at $\left \lceil{\frac{nm}{2}}\right \rceil$. \end{thm} \begin{proof} First, notice that $K_n \times K_m \cong K_m \times K_n$. We can divide the set of all products of two complete graphs into four cases: \begin{enumerate} \item $n=1$, \item $n=2$, \item $3\leq n,m \leq 6$, and \item $n \geq 7, m\geq 3$. \end{enumerate} For the first case, we see that $K_1 \times K_m$ is the empty graph for all $m$ so $D(K_1 \times K_m,x)$ is trivially unimodal. In the second case, $K_2 \times K_m$ has unimodal domination polynomial by Lemma \ref{lem:regular}. The third case can be checked manually, as there are only 8 such graphs. So, only the fourth case remains to be shown, and we handle this below. Note that the minimum degree of $G$ and $H$ are $\delta_G = n-1$ and $\delta_H = m-1$. Therefore, $\delta_{G\times H} = \delta_G \delta_H$. By Theorem \ref{thm:mindeg}, we know that if $\delta_{G \times H} \geq 2\log_2(nm)$, then $D(G \times H,x)$ is unimodal with a mode at $\left \lceil{\frac{nm}{2}}\right \rceil$. So, we want to show that $\delta_{G \times H} \geq 2\log_2(nm)$. We see \begin{align*} \delta_{G \times H} &\geq 2\log_2(nm)\\ \delta_G \delta_H &\geq 2\log_2(nm)\\ (n-1)(m-1) &\geq 2\log_2(nm)\\ 2^{(n-1)(m-1)} &\geq 2^{2\log_2(nm)}\\ (2^{n-1})^{m-1} &\geq n^2m^2 \end{align*} It can easily be verified that for $n \geq 7$, $2^{n-1} \geq n^2$. So, we can substitute, \begin{align*} (n^2)^{m-1} &\geq n^2m^2\\ n^{2m-4} &\geq m^2\\ n^{m-2} &\geq m\\ \end{align*} which holds for $m \geq 3$. Therefore, we have shown that $\delta_{G\times H} \geq 2\log_2(nm)$ so $D(G \times H,x)$ is unimodal with a mode at $\left \lceil{\frac{nm}{2}}\right \rceil$. \end{proof} \end{comment} We can now focus on connected direct products of at least three complete graphs. Note that a direct product of complete graphs is connected if and only if each complete graph has order at least $2$ and at most one of the complete graphs has order exactly $2$. We begin by proving a technical lemma, which we will use later to show that all but finitely many direct products of complete graphs satisfy the hypotheses of Theorem \ref{thm:mindeg}. \begin{lem}\label{lem: cart product ineq} Suppose we have positive integers $2 \leq n_1 \leq n_2 \leq \cdots \leq n_t$ with $n_2 \geq 3$; and additionally if $t = 2$, then $n_1 \geq 3$. If there exist positive integers $\ell_i \leq n_i$ for $1 \leq i \leq t$ such that $$(\ell_1 - 1)(\ell_2 - 1)\cdots (\ell_t - 1) \geq 2\log_2(\ell_1\ell_2\cdots\ell_t)\,,$$ then $$(n_1 - 1)(n_2 - 1)\cdots (n_t - 1) \geq 2\log_2(n_1n_2\cdots n_t)\,.$$ \end{lem} \begin{proof} By induction, we can assume that $n_i = \ell_i + 1$ for exactly one choice of $i$, and $n_j = \ell_j$ for all $j \neq i$. Note that we must have $n_i \geq 3$, and $\prod_{j \in \{1,\ldots,t\} \cut \{i\}} (n_j - 1)= \prod_{j \in \{1,\ldots,t\} \cut \{i\}} (\ell_j - 1) \geq 2$ by our hypotheses on $n_1,\ldots,n_t$. Thus, we have \begin{align*} \prod_{k=1}^t (n_k - 1) - 2\log_2\left(\prod_{k=1}^t n_k\right) &= \left(\frac{n_i - 1}{\ell_i - 1}\right)\prod_{k=1}^t (\ell_k - 1) -\left( 2\log_2\left(\prod_{k=1}^t \ell_k\right) + 2\log_2\left(\frac{n_i}{\ell_i}\right)\right)\\ &= \left(\frac{1}{\ell_i} + 1\right)\prod_{k=1}^t (\ell_k - 1) - 2\log_2\left(\prod_{k=1}^t \ell_k\right) - 2\log_2\left(\frac{\ell_i + 1}{\ell_i}\right)\\ &\geq \prod_{j \in \{1,\ldots,t\} \cut \{i\}} (\ell_j - 1) - 2\log_2\left(\frac{\ell_i + 1}{\ell_i}\right)\\ &\geq 2 - \log_2\left(\frac{\ell_i + 1}{\ell_i}\right)\\ &> 0\,. \end{align*} Observe that the last inequality follows since $\frac{\ell_i + 1}{\ell_i} < 2$, hence $\log_2\left(\frac{\ell_i + 1}{\ell_i}\right) < 1$. \begin{comment} Observe that, replacing $\ell_i$ with $n_i$, the left-hand side of the above inequality becomes $$(\ell_1 - 1) \cdots (n_i -1) \cdots (\ell_t - 1) = (\ell_1 - 1)\cdots (\ell_t - 1) \left( \frac{n_i - 1}{\ell_i - 1} \right)$$ while the right-hand side becomes $$2\log_2(\ell_1 \cdots n_i \cdots \ell_t) = 2\log_2(\ell_1\cdots \ell_t) + 2\log_2 \left( \frac{n_i}{\ell_i} \right)\,.$$ Thus, the operation of replacing $\ell_i$ with $n_i$ adds Additionally, we see $\frac{(\ell_1 - 1)\cdots(\ell_t-1)}{(\ell_i - 1)} \geq 2,$ so it is sufficient to show $$2\frac{n_i - 1}{\ell_i - 1} \geq 2\log_2 \left( \frac{n_i}{\ell_i} \right)$$ for all choices of $n_i > \ell_i \geq 2$. But, of course, we have $$\frac{n_i - 1}{\ell_i - 1} > \frac{n_i}{\ell_i} \geq \log_2\left(\frac{n_i}{\ell_i}\right)\,,$$ from which the desired inequality $$(\ell_1 - 1) \cdots (n_i -1) \cdots (\ell_t - 1) \geq 2\log_2(\ell_1 \cdots n_i \cdots \ell_t)$$ follows. \end{comment} \end{proof} \begin{prop}\label{prop: direct exceptions} Suppose we have positive integers $2 \leq n_1 \leq n_2 \leq \cdots \leq n_t$ with $n_2 \geq 3$ and $t \geq 2$; and additionally if $t = 2$, then $n_1 \geq 3$. Then $$(n_1 - 1)(n_2 - 1)\cdots (n_t - 1) \geq 2\log_2(n_1n_2\cdots n_t)$$ unless $t = 2$ with $$(n_1,n_2) \in \{(3,3), (3,4)\}\,,$$ or $t = 3$ with $$(n_1,n_2,n_3) \in \{(2,3,3),(2,3,4),(2,3,5),(2,3,6),(2,4,4),(3,3,3)\}\,,$$ or $t = 4$ with $$(n_1,n_2,n_3,n_4) \in \{(2,3,3,3),(2,3,3,4)\}\,.$$ \end{prop} \begin{proof} This follows Lemma \ref{lem: cart product ineq} and basic case checking. \end{proof} Note that the inequalities appearing in Lemma \ref{lem: cart product ineq} and Proposition \ref{prop: direct exceptions} is precisely the minimum degree condition of Theorem \ref{thm:mindeg}. We now combine these results to obtain the main theorem of this section. \begin{thm} The domination polynomials of all connected direct products of complete graphs are unimodal. \end{thm} \begin{proof} Lemma \ref{lem:regular} implies that all graphs of the form $K_2 \times K_n$ have unimodal domination polynomials. Combining Proposition \ref{prop: direct exceptions} and Theorem \ref{thm:mindeg}, we find that the domination polynomials of all connected direct products of complete graphs are unimodal except possibly the ten exceptional cases listed in Proposition \ref{prop: direct exceptions}. It is straightforward to compute the domination polynomials in these ten remaining cases and see that the polynomials are indeed unimodal. \end{proof} \subsection{Cartesian Products of Complete Graphs}\label{sec:cartesian} Motivated by our progress in understanding the direct product of complete graphs, we consider the domination polynomials of Cartesian products of complete graphs. We briefly show that unimodality holds for the Cartesian product of two complete graphs (known as a \textit{rook graph}), followed by a discussion of why higher order products are more difficult to handle than in the direct product case. \begin{thm}\label{thm:cartesian} $D(K_m \cart K_n,x)$ is unimodal for all $m,n \in \N$. \end{thm} \begin{proof} Without loss of generality we can assume $m \leq n$, since $K_m \cart K_n \cong K_n \cart K_m$. When $m = 1$, $D(K_m \cart K_n,x)$ is unimodal as its coefficients are merely the binomial coefficients. When $m = 2$, we notice that $K_2 \cart K_n$ is an $n$-regular graph on $2n$ vertices. Therefore, by Lemma \ref{lem:regular}, $D(K_2 \cart K_n,x)$ is unimodal. For $m \geq 3$, we can divide the set of remaining products of two complete graphs into three cases: \begin{enumerate} \item $m=3$ \item $4\leq m\leq n \leq 7$ \item $m \geq 4, n\geq 8$. \end{enumerate} Let us consider $m = 3$. We see for $n \geq 9$, $D(K_m \cart K_n,x)$ is unimodal by Theorem \ref{thm:mindeg}. The cases for $n \leq 8$ can be checked explicitly. Similarly, the ten cases for $4 \leq m\leq n \leq 7$ can be checked explicitly. We see $D(K_6 \cart K_7,x)$ and $D(K_7 \cart K_7,x)$ are unimodal by Theorem $\ref{thm:mindeg}$. The remaining eight cases can be verified by computer. Therefore, it only remains to show that $D(K_m \cart K_n,x)$ is unimodal for $m \geq 4, n\geq 8$. Recall Theorem \ref{thm:mindeg} proves that if $\delta_G \geq 2\log_2(|V|)$, then $D(G,x)$ is unimodal. So, we see for $m \geq 4$, $n \geq 8$, the minimum degree is given by $$ \delta_{K_m \cart K_n} = (m-1) + (n-1) \geq 2\log_2(m) + n-2 \geq 2\log_2(m) + 2\log_2(n) = 2\log_2(mn)\,. $$ \end{proof} We now discuss why higher order products are more infeasible than in the direct product case. For a bounded number of complete graphs included in the Cartesian product, there is a finite and increasing number of cases that do not satisfy the hypotheses of Theorem \ref{thm:mindeg}. Thus, while one could iterate this procedure for Cartesian products of three or more complete graphs, the number of exceptional cases, i.e., those graphs not covered by Theorem \ref{thm:mindeg}, quickly becomes computationally challenging to handle. Already for a Cartesian product of three complete graphs, there are $72$ exceptional cases, and $221$ for a product of four complete graphs. Contrast this to the direct product case, where the minimum degree is $(n_1-1)(n_2-1)\cdots (n_t-1)$, which in general is much larger than the minimum degree $(n_1-1) + (n_2 - 1) + \cdots + (n_t - 1)$ in the Cartesian setting. As we saw in Proposition \ref{prop: direct exceptions}, the hypotheses of Theorem \ref{thm:mindeg} were satisfied for all connected direct products of five or more complete graphs. One particular special case that may be interesting to investigate is the domination polynomial of the hypercube graph, defined recursively by $Q_n := K_2 \cart Q_{n-1}$ with $Q_1 := K_2$. The problem of determining the domination number of $Q_n$ is a fundamental problem in coding theory and is only known in special cases, namely for $n \leq 9$ and $n = 2^k - 1$ or $2^k$, see \cite{HL, AHK}. Thus, precisely determining the domination polynomials of hypercubes is very difficult, but it may still be possible to further understand the behavior of their coefficients. \section{Unimodality and Upper Domination}\label{sec:upper dom} In this section, we use a Hall-type argument to show that for sufficiently large $i$, depending on the upper domination number, the coefficients $d_i(G)$ are non-increasing. A subset $M \subseteq E(G)$ is a \emph{matching} if no two edges in $M$ share a vertex. A matching $M$ \emph{saturates} a set of vertices $U \subseteq V(G)$ if every vertex of $U$ is incident to an edge in $M$. We make use of Hall's classic theorem on saturated matchings in bipartite graphs. \begin{thm}[Hall's Theorem, \protect{see, e.g., \cite[Theorem 5.2]{BM}}]\label{thm: Hall} Let $G$ be a bipartite graph with bipartition $(X,Y)$. Then $G$ contains a matching that saturates every vertex in $X$ if and only if, for all $U \subseteq X$, we have $|N(U)| \geq |U|$. \end{thm} Similar to the construction used by Alikhani and Peng to prove Theorem \ref{thm: first half}, we define a bipartite graph with vertices labeled by dominating sets of $G$. This construction admits a saturated matching provided the dominating sets are sufficiently large, with the lower bound depending on the upper domination number. Recall that the \textit{upper domination number} $\Gamma(G)$ of a graph $G$ is the maximum size of a minimal dominating set. \begin{thm}\label{thm: upper dom} Let $G$ be a graph on $n$ vertices. If $i \geq \frac{n+\Gamma(G) - 1}{2}$, then $d_i(G) \geq d_{i+1}(G)$. \end{thm} \begin{proof} Let $A$ be a set of vertices labeled by the dominating sets of size $i+1$ in $G$, and let $B$ be a set of vertices labeled by the dominating sets of size $i$. We construct a bipartite graph on $A \cup B$ by connecting two vertices if the corresponding dominating set of size $i$ is contained in the corresponding dominating set of size $i+1$. Note that every vertex of $B$ has degree $n - i$. Moreover, since a dominating set of size $i$ in $G$ contains a minimal dominating set of size at most $\Gamma(G)$, each vertex in $A$ has degree at least $i + 1 - \Gamma(G)$. We want to show that $A$ admits a saturated perfect matching into $B$. By Theorem \ref{thm: Hall}, it is sufficient to show that $|N(T)| \geq |T|$ for every $T \subseteq A$. Suppose that there exists $U \subseteq A$ such that $|N(U)| < |U|$. Since each vertex of $U$ has degree at least $i + 1 - \Gamma(G)$, there must exist a vertex of $N(U)$ with degree greater than $i + 1 - \Gamma(G)$ in the induced subgraph on $U \cup N[U]$. That is, we must have $i + 1 - \Gamma(G) < n - i$. By our choice of $i$, we reach a contradiction. Thus, $A$ admits a saturated perfect matching, so $|A| \leq |B|$, i.e., $d_{i+1}(G) \leq d_i(G)$. \end{proof} In particular, we obtain the following corollary. \begin{cor}\label{cor: low upper dom} Let $G$ be a graph on $n$ vertices. If $n$ is odd and $\Gamma(G) \leq 4$, or if $n$ is even and $\Gamma(G) \leq 3$, then $D(G,x)$ is unimodal with a mode at $\left\lceil{\frac{n}{2}}\right\rceil$ or $\left\lceil{\frac{n}{2}}\right\rceil + 1$. \end{cor} \begin{proof} Suppose first that $n$ is odd. From Theorem \ref{thm: first half}, we have that $$d_1(G) \leq d_2(G) \leq \cdots \leq d_{\frac{n+1}{2}}(G)\,.$$ By Theorem \ref{thm: upper dom}, we furthermore have $$d_{\frac{n+3}{2}}(G) \geq d_{\frac{n+5}{2}}(G) \geq \cdots \geq d_n(G)\,.$$ Thus, regardless of the relation between $d_{\frac{n+1}{2}}(G)$ and $d_{\frac{n+3}{2}}(G)$, the resulting sequence is unimodal. The argument for $n$ even is analogous, but instead the only relation we cannot determine is between $d_{\frac{n}{2}}(G)$ and $d_{\frac{n+2}{2}}(G)$. \end{proof} \begin{rem} Note that we could use Corollary \ref{cor: low upper dom} to show that the lollipop graphs $L_{m,n}$ have unimodal domination polynomials for $n \leq 3$. However, we need to know additional information about the location of modes of these graphs in order to induct on $n$ with Theorem \ref{thm: BeBr poly recursion}, hence we handled this case more explicitly in Section \ref{sec:lollipop}. \end{rem} \section{Graphs with Universal Vertices}\label{sec:universal} In this section, we investigate properties of the domination polynomial of a graph with many universal vertices. Let $G$ be a graph on $n$ vertices. A \emph{universal vertex} is a vertex whose closed neighborhood is the entire graph, i.e., a vertex of degree $n-1$. Since any set of vertices containing a universal vertex is necessarily dominating, we can place lower bounds on the coefficients $d_i(G)$ in terms of the number of universal vertices. This allows us to prove unimodality for graphs with sufficiently many universal vertices, in particular when the number of universal vertices is at least $\log_2(n) -1$. We use the following result of Beaton and Brown to show that the coefficients of the domination polynomial for a graph with one or more universal vertices are non-increasing past a certain threshold. For a graph on $n$ vertices, let $r_k(G)$ be the proportion of subsets of $V(G)$ of size $k$ that are dominating. That is, $r_k(G) = \frac{d_k(G)}{{n \choose k}}.$ \begin{lem}\emph{(\cite[Lemma 3.1]{BeBr})}\label{lem: domination ratio} Let $G$ be a graph on $n$ vertices, and $k\geq \frac{n}{2}$. If $r_k(G)\geq \frac{n-k}{k+1}$ then $d_{i+1}(G)\leq d_i(G)$ for all $i\geq k$. In particular, if $k=\left\lceil\frac{n}{2}\right\rceil$ then $D(G,x)$ is unimodal with a mode at $\left\lceil\frac{n}{2}\right\rceil$. \end{lem} \begin{thm}\label{thm: universal decreasing} Let $G$ be a graph on $n$ vertices, $m$ of which are universal. Let $w_m$ be the smallest positive real root of $f_m(x) = x^{m+1}-x^m - 2x + 1$. Then $d_i(G) \geq d_{i+1}(G)$ for all $i \geq (1-w_m)n$. \end{thm} \begin{proof} Suppose that we have $d_{i+1}(G) > d_{i}(G)$ for some $i \geq \frac{n}{2}$, and we wish to show that $i < (1-w_m)n$. Since any non-dominating set of size $i$ must not contain any of the $m$ universal vertices, we have $$d_i(G) \geq {n \choose i} - {n - m \choose i}\,.$$ By Lemma \ref{lem: domination ratio}, we must have $$\frac{d_{i}(G)}{{n \choose i}} < \frac{n-i}{i+1}\,.$$ Combining the above two inequalities yields $${n \choose i} - {n - m \choose i} \leq d_i(G) \leq \frac{n-i}{i+1}{n \choose i}\,.$$ We can then divide both sides by ${n \choose i}$ and rearrange to obtain $$\frac{n-i}{i+1} + \prod_{j=0}^{m-1} \frac{n-i -j}{n-j} > 1\,.$$ Since $\frac{n-i-j}{n-j} < \frac{n-i}{n}$ for any $j > 0$, we furthermore have $$\frac{n-i}{i} + \left(\frac{n-i}{n}\right)^m \geq \frac{n-i}{i+1} + \left(\frac{n-i}{n}\right)^m > 1\,.$$ Setting $i = (1-\kappa)n$, we see that this condition is equivalent to $$\frac{\kappa n}{(1-\kappa) n} + \left (\frac{\kappa n}{n}\right)^m - 1 = \frac{\kappa}{1-\kappa} + \kappa ^m - 1 > 0\,.$$ Multiplying by $\kappa - 1$ (which is necessarily negative) yields $$\kappa^{m+1}-\kappa^m - 2\kappa + 1 < 0.$$ Since $f(0) > 0$ and $f(\kappa) < 0,$ by the above inequality, we must have that $\kappa > w_m$. Hence, we can conclude $i = (1-\kappa)n < (1-w_m)n$, as desired. \end{proof} We can now use a bound on the smallest positive root of $f_m(x)$, the proof of which is included at the end of this section, to show that that certain domination polynomials are unimodal. \begin{lem}\label{lem: root estimate} For $m \in \N$, the smallest positive real root of $f_m(x) = x^{m+1} - x^m -2x + 1$ lies in the range $\left(\frac{1}{2} - \frac{1}{2^{m+1}}, \frac{1}{2} \right)$. \end{lem} When the above bounds $w_m$ are sufficiently close to $\frac{1}{2}$ with respect to the number of vertices $n$, we can conclude that the latter half of the domination coefficients is non-increasing. \begin{thm}\label{thm: unimodal many universal} If $G$ is a graph on $n$ vertices having at least $\log_2(n) - 1$ universal vertices, then $D(G,x)$ is unimodal with a mode at $\left\lceil\frac{n}{2}\right\rceil$ or $\left\lceil\frac{n}{2}\right\rceil + 1$. \end{thm} \begin{proof} Let $m$ denote the number of universal vertices of $G$. By Theorem \ref{thm: universal decreasing}, we have \\$d_{i}(G) \geq d_{i+1}(G)$ for $i \geq (1-w_m)n$. Using the estimate $\frac{1}{2} - w_m < \frac{1}{2^{m+1}}$ from Lemma \ref{lem: root estimate} along with our assumption that $m \geq \log_2(n)-1$, this implies $$(1-w_m)n < \left(\frac{1}{2} + \frac{1}{2^{m+1}}\right)n = \frac{n}{2} + \frac{n}{2^{m+1}} \leq \frac{n}{2} + 1\,.$$ Therefore, we have $d_i(G) \geq d_{i+1}(G)$ for $i \geq \frac{n}{2} + 1$. Since, by Theorem \ref{thm: first half}, we also have $d_i(G) \leq d_{i+1}(G)$ for $i < \frac{n}{2}$, we can conclude that $d_i(G)$ is unimodal with a mode as claimed. \end{proof} \begin{rem} Note that the minimum degree of a graph satisfying the hypotheses of Theorem \ref{thm: unimodal many universal} can be as low as $\log_2(n) - 1$. Thus, these graphs may have minimum degree as low as half of the lower threshold required to apply Theorem \ref{thm:mindeg} by Beaton and Brown, which assumes that the minimum degree is at least $2\log_2(n)$. \end{rem} \begin{comment} \begin{rnote} \begin{proof} Let $m$ denote the number of universal vertices of $G$. By Lemma \ref{lem:regular}, we can assume $m \leq \frac{n}{2}$ as $\delta \geq m -1$. Since any non-dominating set must not contain any of the $m$ universal vertices, we have $$d_{\left\lceil\frac{n}{2}\right\rceil} \geq {n \choose \left\lceil\frac{n}{2}\right\rceil} - {n - m \choose \left\lceil\frac{n}{2}\right\rceil}\,.$$ By our choice of $m$, we have that $2^m \geq \left\lceil\frac{n}{2}\right\rceil + 1$. Moreover, note that $$2 \leq \frac{n-1}{\left\lceil\frac{n}{2}\right\rceil-1} \leq \frac{n-2}{\left\lceil\frac{n}{2}\right\rceil-2} \leq \cdots \leq \frac{n-(m-1)}{\left\lceil\frac{n}{2}\right\rceil-(m-1)}\,.$$ Hence, we have \begin{align*} 1 &\leq \frac{1}{\left\lceil\frac{n}{2}\right\rceil+1} 2^m\\ &\leq \frac{1}{\left\lceil\frac{n}{2}\right\rceil+1}\frac{\left( (\left\lceil\frac{n}{2}\right\rceil+1) - \left\lfloor\frac{n}{2}\right\rfloor\right)n}{\left\lceil\frac{n}{2}\right\rceil}2^{m-1}\\ &\leq \frac{1}{\left\lceil\frac{n}{2}\right\rceil+1}\frac{\left( (\left\lceil\frac{n}{2}\right\rceil+1) - \left\lfloor\frac{n}{2}\right\rfloor\right)n}{\left\lceil\frac{n}{2}\right\rceil} \prod_{j = 1}^{m -1} \frac{n-j}{\left\lceil\frac{n}{2}\right\rceil - j}\\ &= \left(\left(\left\lceil\frac{n}{2}\right\rceil+1\right) - \left\lfloor\frac{n}{2}\right\rfloor\right)\frac{n!\left(\left\lceil\frac{n}{2}\right\rceil - m\right)!}{(n-m)!\left(\left\lceil\frac{n}{2}\right\rceil + 1\right)!}\\ &\leq \left(\left(\left\lceil\frac{n}{2}\right\rceil+1\right) - \left\lfloor\frac{n}{2}\right\rfloor\right)\frac{n!\left(\left\lceil\frac{n}{2}\right\rceil - m\right)!}{(n-m)!\left(\left\lceil \frac{n}{2} \right \rceil + 1 \right)\left(\left\lfloor\frac{n}{2}\right\rfloor\right)!}\\ &= \frac{1}{{n-m \choose \left\lceil\frac{n}{2}\right\rceil}}\left[{n \choose \left\lceil\frac{n}{2}\right\rceil} - {n \choose \left\lceil\frac{n}{2}\right\rceil + 1}\right] \end{align*} we have $${n-m \choose \left\lceil\frac{n}{2}\right\rceil} \leq {n \choose \left\lceil\frac{n}{2}\right\rceil} - {n \choose \left\lceil\frac{n}{2}\right\rceil + 1}\,,$$ from which we can conclude $$d_{\left\lceil\frac{n}{2}\right\rceil} \geq {n \choose \left\lceil\frac{n}{2}\right\rceil + 1} = \frac{\left\lfloor\frac{n}{2}\right\rfloor}{\left\lceil\frac{n}{2}\right\rceil + 1}{n \choose \left\lceil\frac{n}{2}\right\rceil}\,.$$ Dividing both sides by ${n \choose \left\lceil\frac{n}{2}\right\rceil}$ yields $$r_{\left\lceil\frac{n}{2}\right\rceil} \geq \frac{\left\lfloor\frac{n}{2}\right\rfloor}{\left\lceil\frac{n}{2}\right\rceil + 1} = \frac{n - \left\lceil\frac{n}{2}\right\rceil}{\left\lceil\frac{n}{2}\right\rceil + 1}\,.$$ Therefore by Lemma \ref{lem: domination ratio}, $D(G,x)$ is unimodal with mode at $\left\lceil\frac{n}{2}\right\rceil$. \end{proof} Similarly, by examining the ratios $r_i$, we can show that a graph with universal vertices has non-increasing coefficients past a certain point. \end{rnote} \end{comment} Lastly, we prove the claimed bounds on $w_m$, the smallest positive root of the polynomial $f_m(x) = x^{m+1}-x^m - 2x + 1$. \begin{proof}[Proof of Lemma \ref{lem: root estimate}] By Descartes' Rule of Signs, this polynomial can have at most two positive real roots. Moreover, since $f_m(0), f_m(2) > 0$ and $f_m\left(\frac{1}{2}\right) < 0$, $f_m$ must have one root in the interval $\left(0,\frac{1}{2}\right)$, which we denote by $w_m$, and another in the interval $\left(\frac{1}{2},2\right)$. We expect $w_m$ to approach $\frac{1}{2}$ from below as $m$ increases. So we let $\varepsilon_m = \frac{1}{2} - w_m > 0$ and estimate $\varepsilon_m$. Using the fact that $(1+ \frac{1}{y})^y > e$ for all $y < -1$, we have $$(w_m)^m = \left(\frac{1-2\varepsilon_m}{2}\right)^m = \frac{(1-2\varepsilon_m)^{-\frac{1}{2\varepsilon_m}(-2\varepsilon_mm)}}{2^m} \leq \frac{e^{-2\varepsilon_mm}}{2^m}\,.$$ Now, additionally using the hypothesis that $2w_m - 1 = (w_m)^m(w_m-1)$, we have $$2\left(\frac{1}{2}-\varepsilon_m\right) - 1 \geq \frac{e^{-2\varepsilon_m}}{2^m}\left(\left(\frac{1}{2}-\varepsilon_m\right)-1\right)\,.$$ In particular, recalling that $\varepsilon_m < \frac{1}{2}$ we obtain $$\varepsilon_m \leq \frac{e^{-2\varepsilon_mm}}{2^{m+1}}\left(\frac{1}{2} + \varepsilon_m\right) \leq \frac{1}{2^{m+1}}\left(\frac{1}{2} + \varepsilon_m\right) = \frac{1}{2^{m+2}} + \frac{\varepsilon_m}{2^{m+1}} < \frac{1}{2^{m+1}}\,.$$ This yields the corresponding lower bound for $w_m$. \end{proof} \begin{comment} \begin{bnote} I think the last inequality below somehow lost a factor of 2, so the above argument gets a slightly weaker bound. \end{bnote} \begin{bnote} We have $(1+1/x)^x > e$ for $x < -1$ (can just assert as a fact, can do using similar summation tricks to the positive case). We use it when $x = -\frac{1}{2y}$, and since $0 < y < \frac{1}{2}$ for $m \geq 1$ this inequality indeed holds. \end{bnote} \begin{gnote} \begin{proof} First, we notice that $0^{m+1} - 0^m - 2(0) + 1 = 1$ and $\frac{1}{2}^{m+1} - \frac{1}{2}^m - 2(\frac{1}{2}) + 1 = -\frac{1}{2}^{m+1}$. Thus, the polynomial must have a root in $(0,1/2).$ We note our polynomial can be rewritten as $x^m(x-1) = 2x - 1$. So, we see $$c^m = \frac{(1-2y)^m}{2^m} = \frac{(1-2y)^{-\frac{1}{2y}(-2ym)}}{2^m} \leq \frac{{\rm e}^{-2ym}}{2^m}.$$ Substituting this in to our equation, we approximate \begin{align*} 2x - 1 &= x^m(x-1)\\ 2 \left( \frac{1-2y}{2} \right) - 1 &\geq \frac{{\rm e}^{-2ym}}{2^m}\left( \frac{1-2y}{2} - 1 \right) \\ y &\leq \frac{{\rm e}^{-2ym}}{2^{m+1}}\left( \frac{1}{2} + y \right)\\ &\leq \frac{1}{2^{m+1}}\left( \frac{1}{2} + y \right)\\ & = \frac{1}{2^{m+2}} + \frac{y}{2^{m+1}}\\ &\leq \frac{1}{2^{m+2}}\\ \end{align*} Therefore, $\frac{1}{2} \geq c \geq \frac{1}{2} - \frac{1}{2^{m+2}}.$ \end{proof} \end{gnote} \end{comment} \section{Further Directions}\label{sec: further directions} As discussed in Section \ref{sec:spiders}, the unimodality of the domination polynomials for families of graphs with low minimum degree is of particular interest. We show that spiders with at most $400$ legs have unimodal domination polynomials, so a natural extension would be showing this result for an arbitrary number of legs. If Conjecture \ref{conj: spider modes} holds, this would be sufficient to prove unimodality for all spider graphs. Part of this conjecture asserts that the operation of leaf deletion yields a domination polynomial having a mode of distance at most $1$ from a mode of the original domination polynomial. In fact, we have not yet found a counterexample to this phenomenon for trees, leading to the following question. \begin{ques} Does there exist a tree $T$ and a leaf $v \in V(T)$ such that $D(T)$ and $D(T \cut v)$ are both unimodal but have no modes of distance at most $1$? \end{ques} In Subsection \ref{sec:cartesian}, we show that the Cartesian product of any two complete graphs is unimodal with a mode at $\left\lceil\frac{n}{2}\right\rceil$ using Theorem \ref{thm:mindeg}. If one considers Cartesian products of arbitrarily many complete graphs, it is straightforward to see that there are infinitely many graphs that do not satisfy the hypotheses of Theorem \ref{thm:mindeg}, unlike in the direct product case. It would be interesting to develop new techniques for showing unimodality for this family, which may generalize to higher order products. We examined graphs with many vertices of the highest possible degree in Section \ref{sec:universal}. It seems likely that the results in this section could be generalized for graphs with many vertices of the near highest degree, i.e., for graphs with $m$ vertices of degree $n - k$ for fixed $k$ and sufficiently large $n$. In this setting, it would be interesting to determine the threshold for $m$ (in terms of $n$ and $k$) after which one could determine that the domination polynomial is unimodal with a mode at $\left\lceil \frac{n}{2}\right\rceil$. \section{Acknowledgements} The authors thank Joe Gallian for his tireless efforts leading the Duluth REU community. They furthermore thank Colin Defant, Milan Haiman, Noah Kravitz, and Yelena Mandelshtam for helpful suggestions and insightful questions. This research was conducted at the University of Minnesota Duluth Mathematics REU and was supported, in part, by NSF-DMS Grant 1949884 and NSA Grant H98230-20-1-0009. The first author was also supported by a Marshall scholarship, and additional support for the second author was provided by the Mitya.
\section{Introduction} \label{sec:intro} \begin{figure}[tp] \centering \includegraphics[width=0.95\linewidth]{Images/intro_figure_bentham_docqa.pdf} \caption{This work addresses the problem of Question Answering on handwritten document collection. Given a natural language question, a document snippet that answers the question is returned.} \label{fig:fig1:the_process} \end{figure} Despite the rise in the creation, use, and transmission of electronic documents, there is an increase in the information generated as paper documents. The digitization options offered by mobile devices like phone cameras help us capture paper-based documents such as handwritten notes, medical records, or invoices, among many others Archival and historical material are also being digitized in large quantities as part of active conservation efforts~\cite{google_books}. Information in such large-scale document image collections is not easy to access. On the other hand, the ecosystem of document analysis has grown to include hand-held scanners, off-the-shelf Optical Character Recognition (OCR) tools and APIs, and cloud storage solutions. Beyond the capability of recognizing text or extract regions of interest, complex document understanding tasks have been largely left unattended by the community barring a few exceptions from recent years ~\cite{funsd,sroie,layoutlm,mathew2020docvqa}. The recent advances in deep learning have led to significant improvements in accuracy for a wide variety of segmentation and recognition tasks~\cite{fast_cnn_layout,crnn,praveen_e2e}. It now permit us to explore more complex problems in the document comprehension space. There are two parallel streams of work in Computer Vision (CV) and Natural Language Processing (NLP), toward measuring how well machines understand visual and textual data respectively. The computer vision community has recently defined tasks like image captioning~\cite{coco_caption_server} and Visual Question Answering (VQA)~\cite{antol2015vqa,kafle2018dvqa,textvqa,stvqa,mathew2020docvqa}. In VQA, objective performance is measured by looking at how accurately a model can answer a set of questions asked on images that humans can answer comfortably. Similarly, the NLP and Information Retrieval (IR) communities look at understanding paragraphs and electronic text collections with Question Answering (QA) skills~\cite{squad,ms_marco,reading_wiki_acl,bert}. The questions in this space are usually semantically richer, compared to questions in VQA datasets. In a recent work, we introduced the problem of VQA on document images and organized a challenge called DocVQA~\cite{docvqa_challenge}. Understanding a document is a complex cognitive task that goes beyond the capability to recognize text or extract regions of interest. DocVQA 2020 edition comprises two different tasks --- task 1 dealing with VQA on a single document image, and task 2 for VQA on a collection of forms with the same template. Baselines~\cite{mathew2020docvqa} and the challenge results~\cite{docvqa_challenge} demonstrate that one of the challenges in task 1 is difficulty in recognizing handwritten text. Although deep learning based techniques have led to considerable performance improvement in handwriting recognition~\cite{praveen_e2e,hwr_eccv_2018,hwr_2020_Kang}, it is still far from OCR performance on printed documents. Owing to large variations between collections of handwritten/historical documents, recognition models typically need to be re-trained/fine-tuned on annotated samples from the new set of documents that need to be recognized. A recent study by Bazzo et al.~\cite{bazzo_ocr_ir} observe that even a 5\% word error has a significant impact on information retrieval from document images that are automatically transcribed using an OCR. In another study based on data in a large digital library, Chiron et al.~\cite{chiron_ocr_library} observe that a significant number of user queries are affected by OCR errors. They also observe that at least 15\% of the OCR errors are for named entities that cannot be corrected by dictionary-based error correction approaches. This motivates us to devise a retrieval-based solution for QA that does not require text recognition and extracts a relevant region from an image in the collection that answers the question. Consequently, we propose to return answers to the questions as image/document snippets. Fig.~\ref{fig:fig1:the_process} depicts an example case where the answer to a natural language question on a document collection is an image snippet/crop from one of the documents in the collection. Although this approach does not yield a textual answer to the question, it would still meet the requirement of human users looking for information from document collections. This is in line with works in VQA which argue that visual evidence is as important as coming up with a textual answer~\cite{where_to_look,general_value_of_evidence}. For example, in the STE VQA dataset~\cite{general_value_of_evidence}, in addition to the textual answer, each question is provided with a bounding box representing the image region where the question is grounded on. Moreover, returning image snippets as answers is similar to extractive QA tasks in NLP\slash IR where an answer is not generated, but returned as a span (a sequence of contiguous text tokens) of the given context~\cite{squad,newsqa}. We propose a method that performs QA in the image space, without any explicit text recognition from the documents in the collection. We use an end-to-end deep embedding network~\cite{praveen_e2e} to extract feature embeddings of both textual words in questions and word images in documents. These representations are aggregated for each question, document, or snippet to form question vectors, document vectors, and snippet vectors, respectively. This way, documents best matching a question or snippets best matching a question can be retrieved using the nearest neighbour search. Major contributions of this work are: \begin{itemize} \item Formulate the problem of information extraction from a document image collection as a question answering task. This is motivated by VQA in Computer Vision and QA in NLP. The question is defined as a natural language query resulting in an answer in the form of image snippets. \item \sloppy Introduce two new datasets: HW-SQuAD and BenthamQA, for QA on handwritten document collection. HW-SQuAD is curated using an existing dataset for electronic text --- SQuAD1.0~\cite{squad}. We render passages in SQuAD1.0 as images using handwritten fonts. For BenthamQA, we annotate questions and answers on handwritten manuscripts from Transcribe Bentham Project~\cite{bentham_transcribe}. \item Propose an evaluation protocol to evaluate QA, where the answer is a document image snippet. \item A two stage solution for QA on document collection and evaluate it on the newly introduced datasets. Our method is segmentation-based (requires word and line bounding boxes), recognition-free (does not require to recognize text in the documents) and lexicon-free (does not depend on a fixed vocabulary). We compare our approach against a recognition-based approach and analyze how the two approaches fare when text recognition is noisy. \end{itemize} \section{Related work} \label{sec:related_works} \sloppy Machine reading comprehension (MRC) and Open Domain Question Answering are two problems that are pursued actively by the NLP and IR communities. Introduction of large scale datasets like the Stanford Question Answering Dataset (SQuAD1.0)~\cite{squad}, MicroSoft MAchine Reading COmprehension dataset (MS MACRO)~\cite{ms_marco} and Natural Questions~\cite{natural_questions} have led to the development of deep learning based QA\slash MRC systems~\cite{hermann2015teaching,shen2017reasonet,wang2016machine,bert} that can answer questions about a given a corpus of text or passage. The main difference between these works with the problem we address here is that they use textual information provided as computer readable strings (electronic text), while we tackle the problem of answering questions asked on a set of document images without any given transcription. Our work is also related to the problem of VQA, which is receiving increasing interest from the Computer Vision research community in recent years~\cite{antol2015vqa,gao2015you,ren2015exploring,goyal2017making,johnson2017clevr,agrawal2018don}. Most of the early VQA datasets and methods disregard text present in the images, and the problem is often modelled as a multi-class classification where the set of output answers is fixed. Questions in these datasets typically focus on visual aspects such as objects, attributes, and relationships. Gurari et~al.~\cite{vizwiz_challenge} showed that in a goal oriented VQA setting where visually impaired individuals ask questions on images they take, answering a good number of questions require the ability to read and interpret text on the images. This inspired introduction of two datasets --- Scene Text VQA~\cite{stvqa} and TextVQA~\cite{textvqa}, where reading text on the images is pivotal to answering the questions asked on the images. Our work is different from these tasks on two accounts: (i) these datasets contain images ``in the wild'' which are drawn from popular scene text datasets or datasets like OpenImages~\cite{openImages2}, which predominantly have scattered text tokens compared to the handwritten document images we consider, and (ii) almost all VQA problems including the ones involving text on the images are formulated as QA on a single image, while the proposed QA task is for a collection of document images. Another set of VQA works related to ours is VQA on charts and plots ~\cite{kafle2018dvqa,kahou2017figureqa} and the work of Kembhavi et~al.~\cite{kembhavi2017you} on Textbook Question Answering (TQA). The TQA dataset aims at answering questions given a context of text, diagrams and images. However textual information is provided in computer readable format. But in case of the VQA on charts and plots, text on the images needs to be recognized using an OCR to answer a good number of questions. However, the text found on the synthetically generated charts/plots on these datasets is sparse and rendered in standard font types and in good quality, compared to the handwritten text in the form of sentences and paragraphs (running text) in our case. As stated earlier, this work is motivated by our own recent work on VQA on document images called DocVQA. The dataset for task 1 of DocVQA comprises a wide variety of documents containing printed, typewritten, handwritten and born-digital text. The documents include content in the form of sentences, forms, tables, figures and photographs. While DocVQA task 1 sticks to the standard VQA setting where the answer is textual, we propose to respond to natural language queries by providing ``visual answers'' in the form of image snippets. On the information retrieval and keyword spotting front, there are a plethora of works dealing with handwritten document indexing and retrieval~\cite{hw_retrieval_anoop,hw_retrieval_howe,hw_retrieval_Cao,hw_retrieval_ahmed2017survey,imageclef}. One relevant example is the ImageCLEF 2016 Handwritten Scanned Document Retrieval challenge~\cite{imageclef}, aimed at developing retrieval systems for handwritten documents. Although there are some similarities between the ImageCLEF 2016 document retrieval challenge and the QA on handwritten documents proposed in this paper---their queries have multiple words (like our questions) and the retrieval instance is a document segment/snippet---the task of document retrieval which they address differs clearly from the proposed QA in the following aspects: (i) queries in their case are not natural language questions but search queries having multiple tokens and (ii) their task requires that all the tokens in the input query appear in the same order in the retrieved document snippet. Kise et al.~\cite{kise} address the problem of document retrieval for building a QA system for a collection of printed document images. This probably is the first work on QA over a document image collection. In their work they use documents with machine printed English text. Recognition of printed text is relatively easier and allows use of recognition-based systems for QA over such collections. Hence, contrary to the recognition-free approach proposed in our work, their approach first recognizes the text from the documents and the transcribed electronic text is the input to their QA system. Task 2 of DocVQA~\cite{docvqa_challenge} is similar to the work we present here for the fact that both deal with the problem of QA over a document collection. The former uses a document collection in which all documents are forms of the same template (US candidate registration forms), compared to the handwritten documents in HW-SQuAD and BenthamQA with diverse content. The dataset has 20 questions in total. Unlike the proposed formulation to return answer snippets, the objective is to retrieve all documents (or forms) in the collection required to answer the question correctly. \begin{figure*}[htp] \centering \includegraphics[width=\linewidth]{Images/hw_squad_architecture_illustration_with_realimage_symmetric.pdf} \caption{Proposed recognition-free approach to QA on document collection. Our approach works by aggregating embeddings of words in a question, a handwritten document or a document snippet to a $QuestionVector$, $DocumentVector$ or $SnippetVector$ respectively. We use an end-to-end embedding network~\cite{praveen_e2e} for the embeddings. These vector representations help us to retrieve documents similar to a question or snippets similar to a question in a Vector Space model. The snippets are extracted in a two step process. In the first step, a small number of relevant documents are retrieved. In the second step, a document snippet answering the question is extracted from one of the previously retrieved documents.} \label{fig:model_architecture} \end{figure*} \section{Method} \label{sec:section3_method} In the following discussion, we use the term `document' to refer to a handwritten document image. `Word' refers to a textual word in questions and a word image in documents. We define a document snippet or a `snippet' as a horizontal slice of one or more contiguous text lines from a document. The proposed QA method returns the answer to a given question as a snippet extracted from one of the queried documents. Given a question like \textit{In which year was John McIntire murdered?} (see Fig.~\ref{fig:fig1:the_process}) we would like to find an embedding\slash representation for the question. We aim to find a snippet in the new embedding space that can be the most probable answer using a simple nearest neighbour search. This approach leads to the following technical challenges: \begin{itemize} \item We need an embedding where both text (questions) and image (document/snippet) modalities can be embedded. \item The embedding of a question must be independent of its length and its paraphrasing. \item In the joint embedding space, a question's matching snippet must have its embedding similar to the question. \end{itemize} We describe a solution that meets the above requirements below. Fig.~\ref{fig:model_architecture} shows a schematic representation of the proposed solution. \subsection{Joint embedding of text strings and word images} \label{method_word_embeddings} In order to come up with a joint space where questions and snippets can match, we first embed the constituent words of a question or snippet to a joint space. Later these individual embeddings are aggregated to form a single global embedding for the question or the snippet. For the joint embedding of words, we use an end-to-end embedding network introduced in~\cite{praveen_e2e}, which simultaneously learns both text and image embeddings using a multi-task loss. The primary advantage of this model is that it is an end-to-end trainable network, without the need to embed image and text in separate steps and later combine them.. The network learns a feature space where words which are lexically similar lie closer to each other. This facilitates word spotting in this joint space, in both query-by-string and query-by-example settings. Word spotting results using this network, suggest that it does a better job at learning joint representations compared to other similar approaches in the recent years~\cite{phocnet,tppphoc,lsde}. \subsection{Aggregating word embeddings} \label{method_aggregation} The answer extraction process we discuss below requires us to represent questions, documents, and snippets as vectors of a fixed dimension. This is achieved by aggregating the embeddings of the constituent words of a question\slash document\slash snippet into a global representation, whose size is independent of the number of words being aggregated. Stop words in questions and documents\slash snippets are removed prior to the aggregation of word embeddings (see Section~\ref{subsec_implementation_details} for details). Two different approaches are tried out for aggregating the word embeddings and they are discussed below. \subsubsection{Aggregate by Summing (SUM)} \label{agg_sum} A set of $M$ word embeddings $\{x_1, x_2....x_M\}$ of size $D_w$ are summed together to form an aggregate vector of the same size. \subsubsection{Aggregate using Fisher Vector (FV) framework} \label{agg_fisher} The Fisher Vector (FV) framework introduced in~\cite{Jaakkola} has been widely used to aggregate local image descriptors to a global descriptor in image retrieval and classification problems~\cite{fisher_original,fisher_inria,fisher_improving}. Given a set of word embeddings $X = \{x_1, x_2....x_M\}$ we assume that these continuous word embeddings have been generated by a Gaussian Mixture Model (GMM). We denote the parameters of the GMM, $\lambda=\{{w_i},{\mu_i},{\Sigma_i},\:i = 1\ldots K\}$, where $K$ is the number of Gaussians. $w_i$, $\mu_i$ and $\Sigma_i$ are respectively the mixture weight, mean vector and covariance matrix of the Gaussian $i$. We assume that the covariance matrices are diagonal and hence it is denoted by the variance vector, $\sigma^2_i$. The GMM, $u_\lambda$ is estimated/trained offline from a representative set of samples using Maximum Likelihood (ML) estimation. For the $i^{th}$ Gaussian in the GMM, let $\mathcal{G}^\lambda_{\mu,i}$ be the gradient with respect to the mean ($\mu_i$) and $\mathcal{G}^\lambda_{\sigma,i}$ be the gradient with respect to the standard deviation ($\sigma_i$). FV of the given set of embeddings $X$ will be the gradient vector $\mathcal{G}^\lambda_{X}$ which is obtained by concatenating $\mathcal{G}^\lambda_{\mu,i}$ and $\mathcal{G}^\lambda_{\sigma,i}$ for $i=1 \ldots K$. Following the standard practice we do not consider gradients with respect to the mixture weights, $w_i$s, since it adds little discriminative information~\cite{aggregate_fisher_inria,fisher_improving}. Finally, we apply Power normalization and L2 normalization to the FV as suggested in~\cite{fisher_inria}. Power normalization proposed by Perronnin et al.~\cite{fisher_improving} helps to ``unsparisfy'' the FV as it becomes sparser with more number of Gaussians. To each dimension of the FV, power normalization applies the following function $f(z)=sign(z){|z|}^\alpha$. $0 \leq \alpha \leq 1$ is the power normalization parameter and usually set to $1/2$. \subsection{Document retriever} \label{method_doc_retreivl} Following the standard practice in QA systems for electronic text~\cite{reading_wiki_acl}, we first select a small set of documents that are likely to contain the answer. We call this step ``Document Retriever''. Given a question and a document collection of $M$ documents, the Document Retriever generates $N$ proposals ( $N << M $ ) for the `target document', i.e., the document where the potential answer to a given question lies. For this step, the question and the documents are summarized into a $QuestionVector$ and $DocumentVectors$ of fixed size using one of the aggregation methods mentioned above. \sloppy Subsequently, target document proposals are generated by retrieving $N$ documents best matching the question by computing cosine similarity between the $QuestionVector$ and the $DocumentVector$s. \subsection{Answer snippet extraction} \label{method_snippet_retreival} Once a set of target document proposals are generated by the Document Retriever, all possible snippets from these proposals are considered as `candidate snippets'. Since our approach assumes that word and line segmentations are known, the candidates are extracted in a sliding window manner, scanning text lines in a document from top to bottom. For instance if the size of answer snippets is set as 2 text lines, we group each pair of consecutive text lines as a snippet. First two lines in a document as one snippet, second and third lines as another one and likewise the second last and last lines will form the last candidate snippet. Then, candidate snippets are converted into $SnippetVectors$ using one of the aggregation methods proposed in Section~\ref{method_aggregation}. The aggregation method used for this step could be different from the one used with the document retriever. The best aggregation scheme for each step shall be found empirically, by evaluating different options on a validation set. Finally, similar to Document Retriever, cosine similarity between the $QuestionVector$ and $SnippetVectors$ are computed and the top matching snippet is returned as the answer to the given question. \begin{figure*}[htp] \centering \includegraphics[width=\linewidth,height=5cm]{Images/squad_samples_bentham.pdf} \caption{Sample documents in the newly introduced HW-SQuAD and BenthamQA datasets. The first two are synthetically rendered images in HW-SQuAD. The synthetic samples have diverse fonts, backgrounds, textures, image artifacts and inter-word, and inter-line spacing. The last two are real handwritten manuscripts which are part of the BenthamQA dataset.} \label{fig:document_examples} \end{figure*} \section{HW-SQuAD and BenthamQA datasets} \label{section_hw_squad_dataset} The annotation of a QA dataset on a handwritten document collection requires considerable human effort. Moreover, modern deep learning-based supervised models benefit from large amounts of training data. As an alternative to costly human annotation, we build a dataset using an existing QA dataset for electronic text by reusing the questions and answers. Since this dataset is a derivative of the existing SQuAD1.0 dataset, we term it HW-SQuAD. We use HW-SQuAD for experimenting with different ablations of the proposed approach. For benchmarking the approach on a real collection of handwritten manuscripts we create another dataset called BenthamQA. Images in BenthamQA are scanned images of handwritten manuscripts from 18\textsuperscript{th} and 19\textsuperscript{th} centuries. \subsection{HW-SQuAD} \label{subsec:hwsquad} SQuAD1.0~\cite{squad} is a popular benchmark dataset used by NLP and IR communities for QA and MRC on electronic text. It contains 100,000+ question--answer pairs on 23,000+ passages, drawn from over 500 Wikipedia articles. Every question is associated with a passage, and the answer to the question is marked as a `span' of contiguous words in the passage. The train set of the dataset has only one answer mapped per question. But in the development (public test) set, each question is provided with one or more target (ground truth) answers. The analysis presented in~\cite{squad} shows the dataset has diverse questions in terms of i) syntactic and lexical variations, and ii) the extent of reasoning required to answer the questions. The passages need to be rendered as document images to reuse SQuAD1.0 for our purpose. Motivated by the success of synthetic datasets for OCR problems~\cite{jaderberg,praveen_e2e}, we synthetically render the passages in SQuAD1.0 as handwritten document images. In the following, we describe how we use SQuAD1.0 data to create the new HW-SQuAD dataset. \subsubsection{Data preprocessing} \label{subsubsec:content_curation} Samples in SQuAD1.0 are first subjected to standard pre-processing steps\footnote{\url{https://github.com/facebookresearch/DrQA}} to tokenize questions and passages, and to generate question--passage correspondences in terms of token offsets. Non-ASCII tokens in questions passages are then converted to nearest ASCII transliterations using the \texttt{Unidecode} library\footnote{\url{https://pypi.org/project/Unidecode/}}. This was required since most of the handwritten fonts we use do not support characters outside the ASCII character set. Following the pre-processing step, a few questions---corresponding to the answers for which mapping the character offsets to the token offsets fail---are excluded. The original train set of SQuAD1.0 is split randomly into two subsets in HW-SQuAD --- 95\% in train and 5\% for validation (val). We use the original development set (public test set) of SQuAD1.0 to create the test set in HW-SQuAD. \begin{table*}[tp] \begin{center} \begin{tabularx}{0.95\linewidth}{X c c c c} & \multicolumn{3}{c}{HW-SQuAD} & BenthamQA \\ &train & val & test & \\ \toprule Number of Questions & 67887 & 7578 & 9477 & 200\\ Number of Documents & 17007 & 1889 & 2067 & 338 \\ Average number of words per document & 116.6 & 117.2 & 122.8 & 202.0 \\ Average number of words per question & 10.1 & 10.1 & 10.2 & 18.0\\ Average number of words per answer & 2.4 & 2.4 & 2.7 & 3.9\\ \bottomrule \end{tabularx} \end{center} \caption{HW-SQuAD and BenthamQA dataset statistics.} \label{table_squad} \end{table*} \subsubsection{Synthetic rendering of SQuAD1.0 passages as handwritten document images} \label{subsubsec:synth_rendering} We render a passage as a single-column document image using a handwriting font. The font used is randomly sampled from over 100 handwriting style fonts downloaded from Google Fonts\footnote{\url{https://fonts.google.com/}}. The first step is to render each word in a passage in SQuAD1.0 onto a transparent background. The font size is set randomly from a range of 28--52 pts. Intensity of the foreground ( i.e., the pixels making up the text strokes) is varied randomly in the 0--50 range (0 being darkest and 255 being the brightest). This means all our documents have darker text on lighter backgrounds, which is the case for document images in general. For a random 15\% of the word images, we induced degradation by eroding the images using the \texttt{erode()} function available in OpenCV~\cite{opencv_library}. In the next step, all the word images are pasted onto a background image in the same order as in the original passage using alpha blending. The background image is randomly sampled from a set of 20+ manuscripts like textures downloaded from the internet. While pasting the words onto the background image, we break the lines after every few words. The number of words in a line is varied randomly, with a minimum of 5 and a maximum of 7. For a document, the fixed inter-word spacing used is the average per character width (width of a word image divided by number of characters in it) for the words in the document. Similarly the fixed inter-line spacing used for a document is the average height of word images in the document. For a random 15\%, we used a different spacing than the fixed value. In such cases, we multiply the fixed value by a random multiplier in the range of 0.9--2.5 for inter-word spacing and a random multiplier in the range of 0.9--1.3 for inter-line spacing. The borders on all 4 sides of the document are also set as a function of the inter-word spacing used in the document. The border on each side is the fixed inter-word spacing for the document multiplied by a random value in the range 1.5--5. Once all word images are pasted onto the background image, we subjected the image to a random amount of skew. The skew angle we used is a random value in the range -5--5. Then a random 15\% of the images are re-sampled and brought back to the original dimensions to induce artifacts resulting from re-sampling of images. For re-sampling, we used a random scaling factor in 0.6--1.4 range. \subsection{BenthamQA} \label{subsec:BenthamQA} To build a handwritten QA dataset containing real images, we use manuscripts from historical collections since OCR is typically poorer on such images. We use a collection with word and line bounding box annotation already available so that QA methods that require gold-standard annotations for words or lines can use them. We use the ImageCLEF 2016 Bentham Handwritten Retrieval dataset~\cite{imageclef}, which has images from the Bentham Transcriptorium project~\cite{bentham_transcribe}. 433 images in the development (dev) split of this dataset have manually reviewed bounding box annotations for words and lines. We chose this split as the document collection for our QA annotation. Comparing the documents using Jaccard Similarity of their gold-standard transcriptions, duplicates and near-duplicates were filtered out. In HW-SQuAD, we could define answers in the image space since we know the words that constitute the answer and their bounding boxes. Therefore, to annotate the Bentham manuscripts, we used a tool that allows annotators to see the image, add questions and textual answers, and mark the region where the answer lies. During the pilot annotation, the annotators had difficulty reading text on the manuscripts, thereby slowing down the annotation process. Hence we tested an approach similar to the annotation of SQuAD-like datasets. We used a hosted version of the Haystack annotation tool\footnote{\url{https://annotate.deepset.ai}} for the same. The gold-standard transcriptions of the manuscripts were shown to the annotators to add questions and answers. Similar to the typical extractive QA annotation, the answers were marked as spans of the transcripts. The textual words that constitute each answer were then mapped to the corresponding image locations. With the help of two volunteers, 200 question--answer pairs based on 94 different document images were collected. However there are total 383 images in the collection. We keep the remaining images in the dataset as distractors for the QA task. In other words, we have 200 questions on 338 images and 94 images have at least one question based on it. Basic statistics of questions, answers and documents in both HW-SQuAD and BenthamQA are shown in Table~\ref{table_squad}. Questions in BenthamQA are almost double the length of questions in HW-SQuAD. This is expected since SQuAD1.0 dataset was annotated for MRC where each question is asked in the context of a single passage. A detailed discussion on this aspect is given in Section 5.3 when we analyze the performance based on length of questions. While annotating BenthamQA, annotators were instructed not to ask questions specific to a particular document such as \textit{What is the title of the document?} or \textit{What is the name of the city mentioned in the first paragraph?}. This made the annotators ask longer questions. For example, take this question in the dataset, \textit{In one of the notes where the author talks about ``Genus" and ``Species" in the context of law, he makes a comparison with a flower. Which flower is it?'}. The question gives context that helps find the target manuscript from the collection and then talks about the context within the manuscript. On average, document images in BenthamQA have more words in them since these documents are manuscript pages compared to passages rendered as document images in HW-SQuAD. We show two documents each from HW-SQuAD and BenthamQA in Fig.~\ref{fig:document_examples}. \subsection{Performance evaluation} \label{subsec:evaluation} QA and MRC benchmarks use evaluation metrics like F1 score and Exact Match~\cite{squad,reading_wiki_acl}. On the other hand, standard VQA benchmarks, particularly those that do not involve text, use a metric called VQA Accuracy. It treats a predicted answer as correct if at least 3 of the 10 annotators entered the exact same answer~\cite{antol2015vqa}. Scene Text VQA and DocVQA use a metric, named Average Normalized Levenshtein Similarity (ANLS)~\cite{stvqa}. The metric assigns a score for each prediction based on the Levenshtein distance between the prediction and the ground truth answer. Since all these metrics are conceptualized for textual answers, they cannot be used for a QA task where answers are document snippets. Hence new evaluation scheme is devised where the predicted answer snippet is evaluated against a ground truth defined in the image space. \begin{figure}[tp] \setlength{\tabcolsep}{2pt} \renewcommand{\arraystretch}{0.25} \frame{\begin{tabularx}{\linewidth}{l m{0.4cm}l} &&\\ &&\\ &\small{\fontfamily{qhv}\selectfont } & \small{\fontfamily{qhv}\selectfont Telnet used what interface technology? }\\ &&\\ &&\\ &{\small{\fontfamily{qhv}\selectfont \color{red}A1:}} & ``host interface to X.25 and terminal interface to X.29" \\ &&\\ &&\\ &{\small{\fontfamily{qhv}\selectfont \color{blue}A2:}} & ``X.25" \\ &&\\ &&\\ &{\small{\fontfamily{qhv}\selectfont \color{green}A3:}} & ``ARPANET" \\ &&\\ &&\\ \multicolumn{3}{c} { \includegraphics[width=0.9\linewidth,height=8.5cm]{Images/hw_squad_annotation_new_bigger_box.pdf} } \\ &&\\ &&\\ \end{tabularx}} \caption{A question--answer pair and the associated document from the test set of HW-SQuAD dataset. To evaluate answer snippet extraction, we define ground truth in the image space in terms of a Large Box ($LB$) which includes the lines where the answer is, plus a line above and below it and a Small Box ($SB$) which tightly encloses the words constituting the answer. In this case there are three ground truth textual answers, and hence we show $SB$ (solid lines) and $LB$ (dotted lines) for the three answers. Note: the margins of the boxes shown in the figure is changed a bit to show the overlapping boxes without clutter.} \label{fig:hw_squad_annotation} \end{figure} Wang et al.~\cite{general_value_of_evidence} proposes a VQA task where models need to predict a textual answer and a bounding box as `evidence'. The ground truth `evidence' is used to assess the predicted `evidence'. Inspired by evaluation in object detection benchmarks, the authors propose to use Intersection Over Union (IOU) as a measure to evaluate the predicted box. We considered a similar evaluation scheme, by treating the minimum rectangle bounding the answer words as the ground truth (GT) box. Methods which work without recognizing the text in the documents such as the method we propose in this work, do not understand the semantics of the text and must be relying on similarity between words in question and the context where the answer lies. It is unlikely that such approaches can narrow down to a tight box around the answer words. This would result in low IOU scores when pitted against a GT box which tightly bounds the answer. An alternative is to check if the GT box is inside the predicted snippet. However a method can always output bigger snippets that contain the answer words and satisfy the condition. This motivated us to develop an evaluation scheme, which accommodates methods that return answers as short snippets containing the exact answer and some context. At the same time we want to make sure that larger snippets with too much context are discouraged. \\ We treat the predicted answer snippet (or Answer Box; $AB$ for short) as a correct prediction if: (i) $AB$ is inside a Large Box ($LB$) which is the region in the image enclosing the text lines where the words making up the ground truth answer lie and one line above and one line below it and (ii) the smallest box containing the words constituting the textual answer (i.e., a Small Box or $SB$) is inside the $AB$. In short, the condition for an answer snippet to be a correct prediction is a double inclusion criterion: $AB \subset LB \land SB \subset AB$. To understand this better we show $LB$ and $SB$ for an example case in Fig.~\ref{fig:hw_squad_annotation}. To incorporate the double inclusion criterion into a score, we define Double Inclusion Score (DIS) as \begin{equation*} DIS = \frac{{AB} \cap {SB}}{|SB|} \times \frac{{AB} \cap {LB}}{|AB|} \end{equation*} For a question, if the predicted answer snippet has a $DIS > 0.8$ with any of the ground truth answers, we consider it as a correct prediction. Accuracy is then calculated as the percentage of questions for which we have a correct prediction. Note that the HW-SQuAD and BenthamQA datasets can also be used for recognition-based QA where textual answers are expected. In such a setting, it is ideal to use the standard metrics for text based QA, such as Exact Match (EM) score and F1 score~\cite{squad}. In Section~\ref{subsec:recognition_based}, we report results on both the datasets in recognition-based setting where textual answers are expected. \section{Experiments and results} In this section we present experimental settings, results of our experiments, and a discussion of the results. \subsection{Implementation details} \label{subsec_implementation_details} Questions are split into constituent words, and stop words are removed using NLTK~\cite{nltk}. Words from the documents are extracted using gold-standard word bounding boxes available with the datasets. In practice, word bounding boxes are obtained using a document segmentation algorithm, and the segmentations need not be perfect. Hence results we report below do not factor in possible segmentation errors in such scenarios. To filter out stop words from the documents, we train a Convolutional Neural Network (CNN) based binary classifier. The classifier separates word images from the documents into stop words and non-stop words. The feature extraction block of this network follows the same architecture as the one in CRNN~\cite{crnn} network. Feature maps after the last convolutional layer are mapped to a binary classification layer. The classifier is trained using synthetic, handwritten word images in HW-SYNTH dataset~\cite{synth-data} and word images from IAM dataset~\cite{iam}. After stop words removal, words from both the questions and documents are fed to the end-to-end embedding network to represent them as word embeddings. We use a pretrained model\footnote{\url{https://github.com/kris314/e2eEmbed}} for this network, made publicly available by the authors. The pretrained model is trained on HW-SYNTH and IAM datasets. The output of the network is an L2 normalized embedding vector $x \in \mathbb{R}^{2048}$. We use Principal Component Analysis (PCA)~\cite{bishop} to map $x$ to a $x^{\prime} \in \mathbb{R}^{Dw}$ in a lower dimensional space. PCA rotation matrices are learnt on the training set of the HW-SQuAD. In our experiments, particularly while using FV aggregation scheme, we work with these dimensionality reduced vectors. Parameters of the GMMs are estimated offline using embeddings of around $1.2$ million words (after filtering stop words) drawn from documents in the train set of HW-SQuAD. Since words in questions are almost a subset of the words in the documents, and word images add more variability than textual words, we use only words from documents to fit the GMMs. To get candidate snippets from the document proposals generated by the document retriever (see Section~\ref{method_snippet_retreival}), we use sliding windows of size $2$ and a step size of $1$ over the text lines, scanning from top to bottom. For example, from a document proposal having $l$ text lines, we have $l-1$ candidate snippets, each one enclosing two contiguous text lines. \begin{table}[t] \begin{center} \begin{tabularx}{\linewidth}{X c c c} & \multicolumn{2}{c}{HW-SQuAD} & BenthamQA \\ $D_w$ & val & test & \\ \toprule 2048 & 26.0 & 22.1 & 23.5 \\ 200 & 21.8 & & \\ 128 & 20.5 & & \\ 64 & 16.3 & & \\ \bottomrule \end{tabularx} \end{center} \caption{Top-5(\%) accuracy for the document retriever when the aggregation scheme used is SUM.} \label{table_doc_sum} \end{table} \subsection{Performance of document retriever} \label{exp_doc_proposal} . \begin{table*}[t] \small \begin{center} \begin{tabularx}{\linewidth}{X ccccccc} & \multicolumn{6}{c}{HW-SQuAD} & BenthamQA \\ &\multicolumn{5}{c}{val} & test & \\ \toprule \diagbox{$D_w$}{$K$} & 32 & 64 & 128 & 256 & 512 & 512 & 512 \\ \midrule \multicolumn{7}{c}{ \textit{Gradients w.r.t to both mean and standard deviation considered i.e. } $FV$ = $\mathcal{G}^\lambda_{\mu,i}$s and $\mathcal{G}^\lambda_{\sigma,i}$s ; ${|FV|} = 2K{D_w}$} \\ \midrule 64 & 14.6 & 15.6 & 16.2 & \\ 128 & 10.8 & 14.4 & 17.5 & \\ 200 & 6.8 & 12.9 & 15.4 & \\ \midrule \multicolumn{7}{c}{\textit{ Only gradients w.r.t to mean are considered i.e} - $FV$ = $\mathcal{G}^\lambda_{\mu,i}$s ; ${|FV|} = K{D_w}$} \\ \midrule 64 & 31.9 & 39.5 & 40.9 & 44.0 & 48.2 & \\ 128 & 36.6 & 43.2 & 45.7 & 48.3 & \textbf{50.4} & \textbf{46.5} & \textbf{55.5} \\ 200 & 30.1 & 40.9 & 42.0 & 44.7 & 46.5 & \\ \bottomrule \end{tabularx} \end{center} \caption{Top-5 accuracy (\%) for the document retriever when FV aggregation is used. The top half shows the results when FV is a concatenation of gradients with respect to means ($\mathcal{G}^\lambda_{\mu,i}$) and standard deviations of the Gaussians. ($\mathcal{G}^\lambda_{\sigma,i}$). The bottom half shows results when FV formed is a concatenation of gradients with respect to means alone. In all cases the resulting FVs are normalized using power normalization and L2 normalization.} \label{table_doc_fisher_full} \end{table*} Since the performance of the answer snippet extraction (Section ~\ref{method_snippet_retreival}) step is dependent on the quality of the document proposals generated by the document retriever (Section~\ref{method_doc_retreivl}), we first evaluate the document retriever. Top-$N$ accuracy---percentage of questions for which target document is in top $N$ proposals---is used as the evaluation metric. Table~\ref{table_doc_sum} reports top-$5$ accuracy for the proposals retrieval on both the datasets for different word embedding sizes ($D_w$) when the aggregation scheme used is SUM. We appreciate that the original embedding vector (without any dimensionality reduction) of size $2048$ yields the best results in this case. \begin{figure}[tp] \centering \includegraphics[width=0.85\linewidth]{Images/answer_in_proposals_plot.png} \caption{With more % document proposals generated for the target document, the chance of finding the answer to a question in the document proposals increases. When the number of document proposals is more than 2000, the answer is found within the proposals for almost all the questions. The given plot is for validation set of HW-SQuAD.} \label{fig:propoasl_vs_accuracy} \end{figure} Performance of the document retriever using FV aggregation for different word embedding sizes and number of Gaussians in GMM ($K$) is shown in Table~\ref{table_doc_fisher_full}. The top half of the table shows results when the FV is a concatenation of gradients with respect to both the mean ($\mathcal{G}^\lambda_{\mu,i}$) and standard deviation ($\mathcal{G}^\lambda_{\sigma,i}$) of the Gaussians. Thus the size of the resulting FV ($\lvert FV \rvert$) is $2KD_w$, since each gradient vector is of size $D_w$ (see section~\ref{agg_fisher}). We repeat the same set of experiments using FVs where only the gradients with respect to the means of the Gaussians are concatenated to form the FV. These results are shown in the bottom half of the table. This setting yields much better performance, consistent across different values of $K$ and $D_w$. It also helps in faster computations since $\lvert FV \rvert$ becomes half in this case. For this reason, experiments considering gradients with respect to both the mean and standard deviation of Gaussians are not conducted for higher values of $K$. On the test set of the HW-SQuAD and on BenthamQA, we report results only for the setting which yields the best performance on the validation (val) set of HW-SQuAD. The best performance on the validation set is for $K=512$ and dimensionality reduced word embeddings of size $D_{w}=128$. Embeddings of size 128 give better results compared to a larger embedding size of 200 for all values of $K$. This is in line with the finding in~\cite{aggregate_fisher_inria} that dimensionality reduction of the local features using PCA improves the overall performance of classification and retrieval. In \cite{aggregate_fisher_inria} the authors cite two possible reasons for this: (i) decorrelated data can be fitted more accurately when the covariance matrices of the GMM are diagonal, and (ii) GMM estimation is less noisy if only the `stronger' components are considered. In Table~\ref{table_doc_fisher_full}, it can be seen that the larger the number of Gaussians $K$, the better the retrieval performance. However, for higher values of $K$ dimensionality of the FV becomes very large and it is computationally expensive to work with such large vectors in practical scenarios. Although we apply L2 normalization and power normalization to the fisher vectors as a default choice, we study how power normalization helps in improving the results. Fig.~\ref{fig:normalization_chart} depicts the effect of power normalization of the FVs for the document retriever step. The chart plots top-5 accuracy for the document retriever on the HW-SQuAD validation set, as a function of $\lvert FV \rvert$. We use dimensionality reduced embeddings of size $D_w=128$ for different values of $K$. It can be seen that power normalization of the FVs consistently improves the performance. The impact is more prominent as $\lvert FV \rvert$ increases. This trend is in line with the observation in previous studies~\cite{aggregate_fisher_inria,fisher_inria} that power normalization helps in improving the quality of fisher vectors for classification/retrieval problems. Fig.~\ref{fig:propoasl_vs_accuracy} shows how the number of questions for which the target document is found within the proposals grows as a function of number of proposals. With number of proposals $>$ 2000, every question's target document is found among the proposals. \begin{figure}[] \centering \includegraphics[width=\linewidth]{Images/chart.png} \caption{ Top-5 accuracy for document retriever for different sizes of $FV$, with and without power normalization. Embedding size used in this experiment, $D_w=128$.} \label{fig:normalization_chart} \end{figure} \begin{table*}[t] \begin{center} \begin{tabularx}{\linewidth}{X c c c c c c} & \multicolumn{4}{c}{HW-SQuAD} & \multicolumn{2}{c}{BenthamQA} \\ & \multicolumn{2}{c}{val} & \multicolumn{2}{c}{test} & \\ Aggregation scheme for the answer extraction step & Acc. & F1(lines) & Acc. & F1(lines) & Acc. &F1(lines) \\ \toprule FV (${D_w}=128$, $K=64$) & 15.1 & 12.5 & 14.44 & 11.7 & 11.0 & 10.4 \\ FV (${D_w}=128$, $K=512$) & 10.6 & 9.9 & & & & \\ \midrule SUM (${D_w}={D_o}=2048$) & \textbf{15.9} & 12.7 & \textbf{15.9} & 12.7 & \textbf{17.5} & 15.1 \\ \bottomrule \end{tabularx} \end{center} \caption{Performance evaluation of end-to-end answer snippet extraction. In all cases, document retriever generates 5 document proposals. Aggregation scheme used for document retriever is FV (${D_w}=128$, $K=512$). Acc. stands for the snippet extraction accuracy in percentage based on DIS score proposed in Section 4.3 for a DIS threshold of 0.8. F1 (lines) is F1 score in percentage for the text lines.} \label{table_two_stage} \end{table*} \subsection{Evaluating end-to-end answer snippet extraction} \label{exp_qa} Next, we evaluate our full pipeline, which retrieves relevant documents first and then extract the answer snippet. Qualitative results of snippet extraction using the full pipeline is shown in Fig.~\ref{fig:qualitative_results}. \begin{figure*}[t] \begin{center} \end{center} \setlength{\tabcolsep}{10pt} \renewcommand{\arraystretch}{1} \begin{tabularx}{\linewidth}{m{0.47\linewidth} m{0.47\linewidth} } \small{\fontfamily{qhv}\selectfont When is the oldest recorded incident of civil disobedience? } & \small{\fontfamily{qhv}\selectfont Why was the Merit network formed in Michigan? } \\ & \\ \includegraphics[height=1cm,width=8cm,cfbox=green 1pt 0pt]{Images/q_ok_1_1.jpg} & \includegraphics[height=1cm,,width=8cm,cfbox=red 1pt 0pt]{Images/qid4353_snippet_fail_2-3_g4-7_978.jpeg} \\ & \\ \midrule \small{\fontfamily{qhv}\selectfont In every quasi jury, how many classes of quasi jurors are there? } & \small{\fontfamily{qhv}\selectfont What caused scarcity of wheat in public stores towards the end of the year 1799? } \\ & \\ \includegraphics[height=1cm,width=8cm,cfbox=green 1pt 0pt]{Images/qid92_snippet_success_5-6_035_323_001.jpeg} & \includegraphics[height=1cm,,width=8cm,cfbox=red 1pt 0pt]{Images/qid25_snippet_fail_21-22_gt20-20_116_073_001.jpeg} \end{tabularx} \caption{Qualitative Results of end-to-end answer snippet extraction. The first row shows a success and failure case from test set of HW-SQuAD. In case of the second question (the one on the right) although the extracted snippet talks about formation of Merit network it doesn't answer the question. The second row shows examples from BenthamQA dataset. The left one is a success. In case of the right one, our model returns a snippet talking about wheat scarcity but it doesn't say anything about the reason for the scarcity.} \label{fig:qualitative_results} \end{figure*} Table 4 shows the results for different aggregation schemes used for the snippet extraction step with our best setting for document retriever. In addition to the accuracy measure using DIS, we use a metric that measures F1 score at the level of text lines. Since our approach generates candidate snippets as a set of two consecutive text lines, we believe it is meaningful to define a metric at the level of text lines. We define Precision (P) as the ratio of number of text lines common to the answer snippet and the target answer to number of text lines in the answer snippet. Recall (R) is the ratio of number of lines common to the answer snippet and target answer to the number of text lines in the target answer. F1 is computed as Harmonic mean of P and R. This metric makes sense only when the answer snippets are defined in terms of text lines. This is the reason why we do not define this metric in Section 4.3 where we define a generic evaluation scheme for the proposed QA task where answers are document snippets. We evaluate performance on the test set of HW-SQuAD, when the target document for each question is made available to the answer extraction step directly, bypassing the proposal generation step. This is equivalent to a MRC task since the document containing the answer is given, and the only job left is to extract the answer snippet. In this case, using the SUM aggregation, answers are found with an accuracy of 43\%. Fig.~\ref{fig:how_many_proposals} shows how the performance varies when the number of proposals generated varies, for the test set of HW-SQuAD. When only one document proposal is generated, snippet extraction accuracy is 7.6\% and it goes upto 16.72\% when number of proposals is 25 and then starts dropping. When all the documents in the test set are considered as the proposals for every question in the set, the accuracy is 12.7\%. Chen et al.~\cite{reading_wiki_acl} note that open domain QA performance on SQuAD1.0 dataset is significantly affected by the nature of questions. The dataset is originally curated for MRC and the questions are asked in the context of a short paragraph. Information sought in the question is ambiguous in many cases if the context is not given. For example, questions like \textit{What day was the game played on?} or \textit{Why did he walk?} which are part of the development set of SQuAD1.0 (the test of HW-SQuAD) cannot be answered unless the associated passage or document is given. In order to study the impact of such questions on QA on HW-SQuAD, we analyze in Fig.~\ref{fig:questionL} how the performance varies when the question length varies (question length is measured in terms of the number of non stop words). The trend seen in the plot is that performance improves with more words in the question. This could mean that, with more words in the question, questions become less ambiguous and hence easier to locate the right answer snippet. In our experiments two aspects make the experimental setting (see Section 5.1) advantageous for HW-SQuAD, compared to the BenthamQA dataset. Firstly, the off-the-shelf, end-to-end embedding model which we use for word embeddings is trained on HW-SYNTH dataset whose synthetic word images are similar to the word images in HW-SQuAD dataset. Both HW-SYNTH and HW-SQUAD use handwritten fonts to render text and there could be many common fonts between the two datasets. Secondly, PCA rotation matrices and GMMs used for the FV aggregation scheme are learnt on the train split of the HW-SQuAD dataset alone. Despite the disadvantages, the document retriever and the answer extraction steps perform better on BenthamQA. We attribute this to i) the smaller size of the dataset which makes the proposal generation easier with lesser number of distractors, and ii) longer, unambiguous questions in BenthamQA as discussed in Section 4.2. \begin{figure}[t] \centering \includegraphics[width=0.85\linewidth]{Images/numProposalsVsSnippetAcc_Round2.png} \caption{Performance of answer snippet extraction step on the test set of HW-SQuAD as a function of number of document proposals generated. The performance flattens for number of proposals $>$ 20, suggesting that with more proposals answer extraction becomes difficult.} \label{fig:how_many_proposals} \end{figure} \begin{figure}[b] \centering \includegraphics[width=0.85\linewidth]{Images/questionLvsAccuracy_round2submission.png} \caption{Longer questions are likely to carry more information helpful in finding the right answer snippet when there are multiple candidates with similar content. Better performance for longer questions substantiate this.} \label{fig:questionL} \end{figure} \subsection{Evaluating a recognition-based QA approach on HW-SQuAD and BenthamQA} \label{subsec:recognition_based} To study how recognition-based QA models work on the newly introduced Handwritten QA datasets, we evaluate a full pipeline IR/NLP QA framework on the text transcriptions of the datasets. In NLP/IR domain, the standard approach to QA over a document collection is to use a document retriever first and then use a document reader which extracts answers. The document retriever is similar in function to the one we use, i.e., to generate document proposals for the document which is likely to contain the answer. The document reader, typically an extractive QA model, extracts an answer using the document proposals as its context. In our experiments we use a TF--IDF-based document retriever, the same as the one used by Chen et al.~\cite{reading_wiki_acl} in their work. They observe that a simple TF--IDF based retriever performs better than other similar models such as ElasticSearch~\cite{elastic_search}. For document reader part, we use a BERT~\cite{bert} QA model. The specific model we use is a BERT\textsubscript{LARGE} model fine-tuned for QA on SQuAD1.0 dataset. The exact model name in Transformers model zoo\footnote{\url{https://huggingface.co/transformers/pretrained_models.html}} is `bert-large-uncased-whole-word-masking-finetuned-squad'. Note that HW-SQuAD which is a derivative of SQuAD1.0 has little domain gap with HW-SQuAD data, provided the text transcriptions are good. For our experiments, we used end-to-end QA pipeline implementation available as part of the Haystack library\footnote{\url{https://github.com/deepset-ai/haystack}}. \begin{table*}[h] \begin{center} \begin{tabularx}{\linewidth}{XX c c } && \multicolumn{2}{c}{Word acuuracy(\%)} \\ OCR & Training data& HW-SQuAD test & BenthamQA \\ \toprule SynthIam & HW-SYNTH~\cite{synth-data}+IAM~\cite{iam} & 44.87 & 13.72 \\ SynthIamHwSq & HW-SYNTH+IAM+HW-SQuAD & 97.85 & 23.17 \\ \bottomrule \end{tabularx} \end{center} \caption{Performance of a CRNN~\cite{crnn} OCR model on the documents in the newly introduced datasets.} \label{table_ocr_accuracy} \end{table*} \subsubsection{Transcribing handwritten images using a CRNN OCR} To recognize text in the handwritten documents in HW-SQuAD and BenthamQA, we used a CRNN~\cite{crnn} OCR model. Here the OCR model is only a word recognition model and we assume that segmented words are available. Since gold-standard word bounding boxes are available for both the the datasets, we use them directly to crop the word images. We trained two OCRs: i) SynthIam -- trained on 9 million synthetic handwritten word images in HW-SYNTH~\cite{synth-data}, train split of IAM dataset with real handwritten images, and ii) SynthIamHwSq -- trained on HW-SYNTH, IAM train split and train split of HW-SQuAD. Except for different training data, both the OCRs are the same in terms of network architecture and training parameters. In Table 5, we show the performance of both the OCRs on the test set of HW-SQuAD and BenthamQA. We report word accuracy, which is the percentage of words for which the recognized text matches exactly with the ground truth. Although SynthIam is not trained on HW-SQuAD or BenthamQA, this model yields better performance on HW-SQuAD, than its performance on BenthamQA. Since the 9 million word images in HW-SYNTH are synthetically generated using handwriting fonts, it is likely that a lot of these fonts are used to render document images in HW-SQuAD. On BenthamQA although both OCRs yield low word accuracy, SynthIamHwSq is significantly better than SynthIam. We believe better performance with SynthIamHwSq is primarily due to the paper/manuscript style backgrounds used while rendering document images in HW-SQuAD. This is in contrast to IAM and HW-SYNTH where backgrounds are solid colors. Some of the background images and textures used for HW-SQuAD resemble the background of historical manuscripts. This information must have helped the SynthIamHwSq model to better recognize the word images in BenthamQA. \subsubsection{Evaluating TF--IDF document retriever} Table~\ref{table_tfidf} shows the performance of the TF-IDF document retriever for different types of transcriptions. The results are directly comparable with our recognition-free document retriever (Section~\ref{method_doc_retreivl}) since the task and evaluation metrics are the same. As expected, with higher OCR accuracy, the recognition-based approach is better at retrieving documents. For BenthamQA, the proposed recognition-free approach outperforms (top-5 accuracy of 55.5\%, see Table~\ref{table_doc_fisher_full}) the recognition-based document retriever (top-5 accuracy of 32.0\%, see Table~\ref{table_tfidf}) when OCR transcriptions are used. \begin{table}[b] \begin{center} \begin{tabularx}{\linewidth}{X c c } & \multicolumn{2}{c}{top-5 Accuracy(\%)} \\ Transcriptions & HW-SQuAD test & BenthamQA \\ \toprule SynthIam & 47.93 & 15.76 \\ SynthIamHwSq & 86.10 & 32.00 \\ \midrule Gold-standard & 90.2 & 98.5 \\ \bottomrule \end{tabularx} \end{center} \caption{Results of a TF--IDF document retriever on transcriptions of the documents in HW-SQuAD and BenthamQA.} \label{table_tfidf} \end{table} \subsubsection{Evaluating TF--IDF + BERT\textsubscript{LARGE} full pipeline QA framework } Here we present results of the full QA pipeline, which uses the TF--IDF document retriever to generate document proposals and a BERT\textsubscript{LARGE} based extractive QA model. The results are shown in Table~\ref{table_haystack}. In the table ``F1'' stands for the F1 score which is the most commonly used evaluation metric for QA and MRC benchmarks like SQuAD1.0. It measures the average overlap between the predicted answer and the ground truth answer~\cite{squad}. Do not confuse this F1 score with the F1 score for text lines we compute to evaluate snippet extraction in Table 4. Exact Match (EM) is the percentage of questions for which an answer matches exactly with at least one of the ground truth answers. The predicted answers are mapped to a corresponding document snippet and evaluated for snippet extraction performance as well. Since the predicted answers are extracted as spans from the given documents, we take the text lines where the span lies as the answer snippet and evaluate by calculating the DIS score as given in Section~\ref{subsec:evaluation}. These numbers are shown under ``Snippet Acc.'' in the table. Comparing the snippet extraction accuracy in Table~\ref{table_two_stage} with the Snippet Acc. in Table~\ref{table_haystack}, it is evident that the proposed recognition-free approach works better when robust OCR transcriptions are not available. \begin{table*}[tp] \begin{center} \begin{tabularx}{\linewidth}{X c c c c c c } & \multicolumn{3}{c}{HW-SQuAD test} & \multicolumn{3}{c}{BenthamQA} \\ Transcription & F1 & EM & Snippet Acc. & F1 & EM & Snippet Acc. \\ \toprule SynthIam & 23.05 & 13.54 & 19.13 & 1.05 & 0.34 & 0.82\\ SynthIamHwSq & 65.24 & 55.31 & 59.26 & 3.00 & 1.5 & 2.46 \\ \midrule Gold-standard & 76.82 & 70.73 & 74.76 & 78.41 & 66.00 & 72.85 \\ \bottomrule \end{tabularx} \end{center} \caption{F1 score, Exact Match (EM) percentage and Snippet Accuracy (Snippet Acc.) for full pipeline QA using the transcribed text. F1 is the standard evaluation metric used for evaluating extractive QA. For calculating Snippet Acc., we map the textual answers to document snippets and evaluate them using DIS score proposed in Section~\ref{subsec:evaluation}. } \label{table_haystack} \end{table*} Results in Table~\ref{table_haystack} suggest that highly noisy OCR transcriptions lead to sub-standard QA performance even when state-of-the-art NLP/IR QA models are used. Although some works address recognition-based document retrieval in presence of noisy OCR outputs~\cite{venu_hw_document_retrieval_noisy_ocr,fatachia}, we do not explore this direction since our approach focuses on QA without explicit recognition of the content. \section{Conclusion} In this paper, we have introduced the problem of QA on handwritten document collections and presented two new datasets --- HW-SQuAD and BenthamQA. The problem has proven to be challenging and we expect it to attract the interest of the research community. We also have presented a new method for QA that is segmentation based, recognition-free, and lexicon free. We have presented extensive experiments with different aggregation schemes that allows us to find answers as nearest neighbours of a given question representation in the space of possible answer snippets. The obtained results demonstrate that the proposed solution would perform better than recognition-based document retrieval and QA models, when the OCR transcription is highly noisy. \bibliographystyle{spmpsci}
\section{Introduction} \label{introduction} Estimating 3D human pose and shape (HPS) from a single RGB image is a core challenge in computer vision and has many applications in robotics, computer graphics, and AR/VR. Reconstructing a high dimensional 3D structure from 2D observations is ill-posed by nature. To overcome this, much attention has been given to structured prediction \cite{deepcap,huang2017pami,vlasic2008articulated} and incorporating shape and pose priors \cite{SMPL-X:2019,Xu_2020_CVPR} to guide estimation. Weakly-supervised training of HPS regressors leverages 2D-pose datasets \cite{mpii,lspet,coco} and requires various forms of regularization \cite{kanazawa_hmr,SPIN:ICCV:2019,xu2019denserac}. Data for full 3D supervision often relies on controlled lab settings \cite{ionescu_h36m,Sigal:IJCV:10b}, synthetic images \cite{varol17_surreal}, or, more recently, in-the-wild capture of reference data \cite{Mehta2018XNectRM,vonMarcard2018_3dpw}. Despite rapid progress, we observe that most state-of-the-art (SOTA) methods \cite{bogo_smplify,expose2020eccv,guler_2019_CVPR,jiang2020mpshape,joo2020eft,kanazawa_hmr,kanazawa_temporal_hmr,kocabas2019vibe,kolotouros2019cmr,SPIN:ICCV:2019,SMPL-X:2019,Rockwell2020,song2020human,CenterHMR,zanfir2020weakly} make several simplifying assumptions about the image formation process itself. First, they all apply a weak perspective or orthographic projection assumption; resulting in a simplified camera model with only three parameters which capture the camera translation relative to the body. Moreover, some \cite{kocabas2019vibe,SPIN:ICCV:2019,SMPL-X:2019} set the focal length to a predefined large constant for every input image. Finally, they all assume zero camera rotation, which entangles body rotation and camera rotation, making it extremely hard to correctly estimate the body orientation in 3D. These assumptions are valid for images where bodies are roughly perpendicular to the principal axis and are located far away from the camera. However, in most real world images of people, perspective effects are clearly evident, \eg~foreshortening in selfies. Ignoring perspective projection leads to errors in pose, shape, and global orientation (see Fig.~\ref{fig:teaser}). To overcome these limitations in existing methods, we present \emph{\methodname (Seeing People in the wild with Estimated Cameras)}, the first 3D human pose and shape estimation framework that leverages cues present in the image to extract perspective camera information and exploits this to better reconstruct 3D human bodies from images in the wild. \methodname consists of two parts: camera calibration and body reconstruction. We make contributions to each. One might hope that embedded EXIF information would be sufficient to address this problem. However, many images lack EXIF information, some applications strip this off, and even if present, converting the stored focal length in millimeters to pixels requires knowing specifics of the image sensor. Given the huge variety of cameras on the market, exploiting this is a non-trivial task. Furthermore, this does not give information about the camera rotation. Instead, we estimate the camera directly from the RGB image. Recent work \cite{Hold-Geoffroy_2018_CVPR,Kendall_2015_ICCV,workman2016horizon,zhu2020single} casts this ill-posed regression problem as a classification task. However, training such methods with their losses, \eg~cross-entropy and KL-divergence, ignores the natural notion of distance or ordering of the original target space. To address this, we propose a new loss, Softargmax-$\mathcal{L}_{2}$\xspace, to preserve distance during loss calculation. Moreover, we observe that HPS accuracy is quite sensitive to underestimation of focal length and less sensitive to overestimates as also noted by ~\cite{kissosECCVW2020,yu2020pcls}. Therefore, we modify Softargmax-$\mathcal{L}_{2}$\xspace to be asymmetric such that less penalty is applied when the focal length is overestimated. These novel losses help us to train a better regressor for direct camera calibration, which we term \emph{CamCalib\xspace}. We integrate the regressed camera parameters into two 3D-body-reconstruction paradigms: (1) an optimization-based approach, SMPLify-X \cite{SMPL-X:2019}, and (2) a regression-based one similar to HMR or SPIN \cite{kanazawa_hmr,SPIN:ICCV:2019}. Since SMPLify-X estimates a 3D body my minimizing the difference between projected 3D joints and observed 2D joints, improving the the projective geometry improves the estimated body. In the case of direct HPS regression from pixels, the estimated camera is employed in two ways: (1) in the reprojection loss similar to the one in SMPLify-X and (2) as {\em conditioning} for the network by appending the camera parameters to the CNN image features. This second contribution is a key novelty of \methodname, which enables us to disentangle camera and body orientation. SOTA methods~\cite{PARE_2021, SPIN:ICCV:2019, kocabas2019vibe, CenterHMR}, cannot do this because the body is estimated in camera space, entangling body orientation and camera rotation. Training such a body regressor requires in-the-wild images annotated with both 3D human bodies and the camera parameters. Since existing 3D human body datasets \cite{ionescu_h36m,mpiiinf3dhp_mono-2017,vonMarcard2018_3dpw} contain little variation in camera parameters, we create two new datasets with rich camera variety. First, we create a photorealistic synthetic dataset which has accurate ground-truth human and camera annotations (\methodname-SYN\xspace) using ideas from \cite{patel2021agora}. This dataset is used both for testing and training. Second, we collect a crowdsourced dataset following the Mimic-The-Pose framework \cite{Mueller:CVPR:21} (\methodname-MTP\xspace). We ask web participants to calibrate their camera and take videos from different angles while mimicking a predefined pose. Then, we obtain pseudo ground-truth labels by fitting the SMPL model to the provided videos while exploiting the predefined pose as a prior. Through extensive experiments and analysis using these new datasets, alongside an existing in-the-wild dataset (3DPW \cite{vonMarcard2018_3dpw}), we show that going beyond the weak-perspective/orthographic assumption improves human pose and shape estimation results. In summary, our contributions are: (1) We propose a single-view, camera-aware, 3D human body estimation framework that estimates perspective camera parameters from in-the-wild images directly and reconstructs the 3D body without relying on weak-perspective assumptions or offline calibration. (2) We train a neural network to regress the perspective camera parameters given one RGB image, using two novel losses: Softargmax-$\mathcal{L}_{2}$\xspace and the asymmetric variant to improve the calibration accuracy. (3) Using the estimated camera parameters helps to reconstruct a better 3D body with the optimization-based SMPLify-X algorithm. (4) Conditioning on camera information helps a direct regression approach based on HMR \cite{kanazawa_hmr} learn to regress better poses. % (5) We present two different datasets with ground-truth camera and human body parameters: (i) a photorealistic synthetic dataset, \methodname-SYN\xspace, and (ii) a crowdsourced dataset, \methodname-MTP\xspace. \section{Experiments} \label{experiments} We focus the evaluation on CamCalib\xspace and \methodname; for evaluation of SMPLify-X-cam\xspace, see Sup.~Mat.\xspace \subsection{Datasets} \textbf{Pano360 dataset.} Previous work~\cite{Hold-Geoffroy_2018_CVPR, zhu2020single}, uses the SUN360~\cite{xiao2012recognizing} dataset to train camera calibration networks, which is unfortunately no longer available due to licensing issues. Therefore, we have curated a new dataset of equirectangular panorama images called Pano360. The Pano360 dataset consists of 35K panoramic images of which 34K are from Flickr and 1K rendered from photorealistic 3D scenes. Following previous work~\cite{Hold-Geoffroy_2018_CVPR, zhu2020single}, we randomly sample the camera pitch, roll, yaw, and vertical field of view to generate 400K training and 15K validation images. We use these to train our CamCalib\xspace model. \textbf{\methodname-SYN\xspace.} Existing datasets, used to train HPS regressors, contain limited camera variation. Hence, they are not ideal for training and evaluating the effects of camera estimation on HPS. Therefore, we created a photorealistic synthetic dataset, inspired by AGORA~\cite{patel2021agora}, to train and evaluate our model. It has high-quality textured human 3D scans and provides reference SMPL(-X) parameters for them. We place these scans in 5 different large high-quality photorealistic 3D scenes, enabling the generation of many unique views. We randomly sample camera viewpoints, $\alpha \sim \mathcal{U}(-30^{\circ}, 15^{\circ})$ and $\phi \sim \mathcal{N}(0^{\circ}, 2.8^{\circ})$, and focal lengths, $\upsilon \sim \mathcal{U}(70^{\circ}, 130^{\circ})$, to add diversity. In total, we generate 22191 images with 71982 ground truth bodies for training, and 3783 images with 12071 bodies for testing. \textbf{\methodname-MTP\xspace.} To evaluate calibrated HPS (CHPS) methods on real data, we collect a new dataset with high-quality pseudo ground truth using Amazon Mechanical Turk (AMT). Following the idea of the MTP dataset~\cite{Mueller:CVPR:21}, we ask AMT workers to mimic 10 poses for which we have 3D ground truth. While the person maintains a pose, a second person records a video from different viewpoints. In addition, the worker calibrates the camera and provides their height and weight. We extend SMPLify-XC~\cite{Mueller:CVPR:21} and use the calibrated camera to fit the SMPL-X model to multiple video frames. See Sup.~Mat.\xspace~for details. In total, we collect 64 videos of 7 subjects (4 male, 3 female) and extract 3284 images at a frame rate of 1 fps. \textbf{Other datasets.} To train 3D CHPS estimation, we use the 3DPW~\cite{vonMarcard2018_3dpw}, COCO~\cite{coco}, MPI-INF-3DHP~\cite{mpiiinf3dhp_mono-2017}, and Human3.6M~\cite{ionescu_h36m} datasets. We evaluate \methodname using separate test data: 3DPW-test, \methodname-SYN\xspace, and \methodname-MTP\xspace. Since there are no ground truth 3D body and camera annotations for COCO, we use CamCalib\xspace to estimate camera parameters and SMPLify-X-cam to obtain pseudo 3D body ground truth, using EFT~\cite{joo2020eft} annotations as the initialization. \subsection{Evaluation metrics} \label{sec:metrics} The mean per joint position error (MPJPE\xspace), Procrustes-aligned mean per joint position error (PA-MPJPE\xspace), and per vertex error (PVE\xspace) are the most commonly-used evaluation metrics in the literature. PA-MPJPE exists as a metric specifically because current HPS methods that use IWP-cam\xspace reconstruct bodies in camera coordinates $\predjoints{3}^{cam}$. Procrustes alignment ``hides many sins" in that it removes the rotation of the body caused by an unknown camera pose. See Sup.~Mat.\xspace~for details of how PA-MPJPE and MPJPE are computed. Instead, we propose variants of MPJPE\xspace and PVE\xspace that compute the error in world coordinates without the need of camera information and dub them W-MPJPE\xspace and W-PVE\xspace. Since \methodname disentangles camera and body rotations, the predictions reside in world coordinates $\predjoints{3}^{world}$ and W-MPJPE\xspace is computed as $\lVert \predjoints{3}^{world} - \gtjoints{3} \rVert$. For existing SOTA methods, we report two versions of W-MPJPE\xspace: (1) $\lVert \predjoints{3}^{cam} - \gtjoints{3} \rVert$ and, (2) $\lVert R^{c^{-1}} \predjoints{3}^{cam} - \gtjoints{3} \rVert$, where $R^c$ is the estimated camera rotation by CamCalib\xspace. By reporting (2), we do not assume known camera rotations for any method and compare them all in world coordinates. This also illustrates the effect of using CamCalib\xspace with prior work. We discuss these metrics in greater detail and report MPJPE \& PVE in the Sup.~Mat.\xspace \begin{table}[] \centering \resizebox{0.48\textwidth}{!}{ \npdecimalsign{.} \nprounddigits{2} \begin{tabular}{l|r|r|r} \toprule \textbf{Methods} & \textbf{vfov $\upsilon^{\circ}$} $\downarrow$ & \textbf{pitch $\alpha^{\circ}$} $\downarrow$ & \textbf{roll $\phi^{\circ}$} $\downarrow$ \\ \midrule ScaleNet~\cite{zhu2020single} & 5.68 & 2.61 & 1.41 \\ \midrule CamCalib\xspace (KL Loss) & 3.53 & 2.32 & 1.15 \\ CamCalib\xspace (Softargmax-$\mathcal{L}_{2}$\xspace) & 3.34 & 2.06 & 1.11 \\ CamCalib\xspace (Softargmax-biased-$\mathcal{L}_{2}$\xspace) & \bf 3.24 & \bf 1.94 & \bf 1.02 \\ \bottomrule \end{tabular} } \vspace{-0.05in} \caption{{\bf Regressing camera parameters.} CamCalib\xspace methods are trained and tested on the Pano360 dataset. ScaleNet~\cite{zhu2020single} results use the authors' implementation. } \vspace{-2ex} \label{tab:camcalib} \end{table} \subsection{Implementation details} \label{sec:implementation} \textbf{CamCalib\xspace.} We follow the implementation of \cite{Hold-Geoffroy_2018_CVPR,zhu2020single} but use ResNet-50 as the backbone and predict pitch $\alpha$, roll $\phi$, and vfov $\upsilon$ with separate fully-connected layers. Each parameter has $B=256$ bins and we apply Softargmax-biased-$\mathcal{L}_{2}$\xspace for $\upsilon$, Softargmax-$\mathcal{L}_{2}$\xspace for $\alpha$ and $\phi$. The model is trained with images of varied resolutions for 30 epochs. The Pano360 dataset is used for training and evaluation. \textbf{\methodname.} Similar to the original HMR~\cite{kanazawa_hmr}, we use a ResNet-50 backbone, followed by fully-connected layers that iteratively regress SMPL parameters. We do not apply HMR's adversarial discriminator since we use psuedo-ground-truth 3D training data. The Adam optimizer with a learning rate of $5e^{-5}$ is used. For the first 150 training epochs we use the COCO and \methodname-SYN\xspace datasets, and then incorporate MPI-INF-3DHP and Human3.6M. Total training takes around 175 epochs, $\sim$4-5 days. Note that CamCalib\xspace and \methodname are trained separately. Training them jointly is not possible because we lack an \emph{in-the-wild} dataset that has both ground-truth bodies and diverse camera focal lengths and views. \methodname-MTP\xspace meets these requirements but is small so we us it for evaluation. During inference, CamCalib and SPEC run jointly. \subsection{Single-image camera calibration results} Table~\ref{tab:camcalib} reports the mean angular error in camera pitch $\alpha$, roll $\phi$, and vfov $\upsilon$ for different camera calibration methods on the Pano360 test set. For reference, we inlcude the open-source implementation of ScaleNet \cite{zhu2020single}, which uses a different backbone than CamCalib\xspace. We also train ScaleNet with our backbone on Pano360 (CamCalib\xspace (KL loss) in Table~\ref{tab:camcalib}). We evaluate the effect of different loss functions, \ie~KL-divergence, Softargmax-$\mathcal{L}_{2}$\xspace, and Softargmax-biased-$\mathcal{L}_{2}$\xspace, and define the final CamCalib\xspace network to be the best performing version (Softargmax-biased-$\mathcal{L}_{2}$\xspace). \subsection{\methodname evaluation} Tables~\ref{tab:sota_mtp}, \ref{tab:sota_agora}, and \ref{tab:sota_3dpw} show the results of recent SOTA methods on the \methodname-MTP\xspace, \methodname-SYN\xspace and 3DPW datasets. {\bf The correct metric.} We believe W-MPJPE is the metric that best reflects performance in real-world applications, so we report W-MPJPE\xspace, PA-MPJPE\xspace, and W-PVE\xspace. MPJPE\xspace is also reported and discussed in Sup.~Mat.\xspace For W-MPJPE\xspace and W-PVE\xspace, we report both definitions from Sec.~\ref{sec:metrics}, i.e.~(1)/(2) in the tables. Note that \methodname has the same error under both metrics. PA-MPJPE\xspace has only one entry because Procrustes alignment removes the effect of camera rotation (and more); this effectively hides the fact that SOTA methods do not estimate global pose well. {\bf Comparison to the state-of-the-art.} To compute the performance of SOTA methods, we use their open source implementations. We use HMR$^{*}$ as our IWP-cam\xspace baseline, which is HMR~\cite{kanazawa_hmr} trained with the same datasets as \methodname, \ie~COCO, \methodname-SYN\xspace, MPI-INF-3DHP, and Human3.6M. Again, we do not use HMR's discriminator since we train with ground-truth or pseudo ground-truth 3D labels. For I2L-MeshNet~\cite{Moon_2020_ECCV_I2L-MeshNet}, we use the SMPL output of this method instead of non-parametric mesh to be able to report W-PVE\xspace and denote this with $^{\dagger}$. Since W-MPJPE\xspace and W-PVE\xspace measure the error w.r.t.~the body in world coordinates, these measures reveal the performance improvement of \methodname over the SOTA when the camera deviates from the IWP-cam\xspace assumption. Compared a dataset like 3DPW, \methodname-MTP\xspace and \methodname-SYN\xspace have significantly more variety in focal lengths and viewpoints as shown in Fig.~\ref{fig:qualitative}. As a result, \methodname yields a larger improvement in W-MPJPE\xspace and W-PVE\xspace over the SOTA for these datasets. Using explicit camera information is a key driver of this improvement. The improvement in PA-MPJPE\xspace is less significant, suggesting that the largest improvements come from estimating the body in world coordinates rather than better articulated pose. This is valuable in many applications, \eg~human-scene interaction, where bodies and objects are often reconstructed from distinct methods but should reside in a common space. Figure \ref{fig:error_breakdown} analyzes W-MPJPE\xspace on \methodname-SYN\xspace for different camera viewpoints and focal lengths. \methodname results are similar across different camera settings, while the HMR$^{*}$ is less robust to values that deviate from its assumptions. \input{tables/results_mtp_j24} \input{tables/results_agora_j24} \input{tables/results_3dpw} \input{tables/results_agora_ablation_j24} \begin{figure*}[h] \centering \includegraphics[width=0.87\textwidth]{figures/qualitative_v3.pdf} \vspace{-0.1in} \caption{Qualitative results. Top \& middle: \methodname-MTP\xspace; bottom: \methodname-SYN\xspace. We also provide failure cases in Sup.~Mat.\xspace } \label{fig:qualitative} \vspace{-2ex} \end{figure*} \begin{figure}[h] \centering \begin{minipage}{.25\textwidth} \centering \includegraphics[width=0.95\textwidth]{figures/mpjpe_per_cam_pitch.pdf} \end{minipage}% \begin{minipage}{.25\textwidth} \centering \includegraphics[width=0.95\textwidth]{figures/mpjpe_per_focal_length.pdf} \end{minipage}% \vspace{-0.1in} \caption{Breakdown of W-MPJPE\xspace per camera focal length and pitch range.} \label{fig:error_breakdown} \vspace{-3ex} \end{figure} \textbf{Ablation experiments.} We ablate different camera parameters and components of \methodname to investigate their effect on performance. We report results on the \methodname-SYN\xspace test data (Table \ref{tab:hmr_agora}) because it has challenging cameras; for ablation results on 3DPW please see Sup.~Mat.\xspace We use HMR$^{*}$ as our baseline and use the same datasets and training configurations for all methods. To obtain the predicted 2D joints, $\predjoints{2}$, HMR$^{*}$ uses the bounding-box center as the principal point. We start by changing it to the image center, \ie~$o_x=w/2, o_y=h/2$ denoted as ``HMR$^{*}$ + $c$". This ensures a better projective geometry than using the bounding-box center as the image center and already improves results. Next, we replace the fixed focal length of $5000$ with the values estimated by CamCalib\xspace, denoted as ``HMR$^{*}$ + $c$ + $f$". ``HMR$^{*}$ + $c$ + $f$ + $R^c$" uses $R^c$ instead of the identity matrix as the camera rotation during projection. Finally, \methodname uses $c$, $f$, and $R^c$ both during projection and as a conditioning input to the final stage of HMR$^{*}$ predictions. Overall, improving the camera model improves W-MPJPE\xspace and W-PVE\xspace. Conditioning the network on the camera parameters helps, but we suspect that better camera conditioning schemes can be employed to make the network more aware of the camera geometry. \textbf{Qualitative results.} Figure \ref{fig:qualitative} shows representative results. HMR$^{*}$ assumes IWP-cam\xspace and yields incorrect body poses (legs in top row) and incoherent body orientations (middle \& bottom); \methodname predicts overall more globally coherent bodies as can be seen in side-view images. \section{Methods} \subsection{Formulation of per-body translation $t^b$} For each body in the image, besides SMPL parameters $\theta,\beta$, \methodname also estimates camera parameters $(s, t_x, t_y)$, which is defined w.r.t.~the bounding box (bbox) of the subject. Similar to \cite{jiang2020mpshape,kissosECCVW2020}, we perform a coordinate transformation to obtain the final $t^b$ vector w.r.t.~the original full image following: \begin{equation} \label{eq:body_transl} \begin{split} t^b_x & = t_x + \frac{2(c_x - w/2)}{s \cdot w_{bbox}} \text{,} \\ t^b_y & = t_y + \frac{2(c_y - h/2)}{s \cdot h_{bbox}} \text{, and } \\ t^b_z & = \frac{2 \cdot f}{h_{bbox} \cdot s} \text{,} \end{split} \end{equation} where $(c_x, c_y)$ is the bbox center, $w, h$ are originial image sizes, $w_{bbox}, h_{bbox}$ are bbox sizes, and focal length $f$ is estimated by CamCalib\xspace. As explained in the main text, Eq.~3, $t^b$ is used during perspective projection $\Pi = K[R^c|-t^b]$. \subsection{Softargmax-$\mathcal{L}_{2}$\xspace and Softargmax-biased-$\mathcal{L}_{2}$\xspace} As described in the main manuscript, we follow \cite{zhu2020single} to discretize the spaces of pitch $\alpha$, roll $\phi$ and vertical field of view (vfov) $\upsilon$ into $B=256$ bins but avoid casting it as a pure classification problem. To this end, we propose Softargmax-$\mathcal{L}_{2}$\xspace loss and the biased variant. Let $\mathbf{\boldsymbol{\alpha}}=\left [ \alpha_1, \dots \alpha_i, \dots \alpha_B \right]$, $\mathbf{\boldsymbol{\phi}}=\left [ \phi_1, \dots \phi_i, \dots \phi_B \right]$, and $\mathbf{\boldsymbol{\upsilon}}=\left [ \upsilon_1, \dots \upsilon_i, \dots \upsilon_B \right]$ denote the center values of each of the bins, and let $\mathbf{p^{\alpha}}=\left [ p_1^{\alpha}, \dots p_i^{\alpha}, \dots p_B^{\alpha} \right]$, $\mathbf{p^{\phi}}=\left [ p_1^{\phi}, \dots p_i^{\phi}, \dots p_B^{\phi} \right]$, and $\mathbf{p^{\upsilon}}=\left [ p_1^{\upsilon}, \dots p_i^{\upsilon}, \dots p_B^{\upsilon} \right]$ denote the probability mass from the fully-connected layers of each head respectively. We compute the expectation value of the probability mass as the prediction: \begin{equation} \begin{split} \hat{\alpha} &= \sum_i p_i^{\alpha} \alpha_i\text{,} \\ \hat{\phi} &= \sum_i p_i^{\phi} \phi_i \text{, and} \\ \hat{\upsilon} &= \sum_i p_i^{\upsilon} \upsilon_i. \\ \end{split} \end{equation} This differentiable operation has been commonly-used in human joint detection \cite{luvizon2019human,sun2018integral} to determine the peak location in a likelihood heat map, in contrast to the non-differentiable argmax operation. For pitch $\alpha$ and roll $\phi$ angles, we apply the standard $\mathcal{L}_2$ loss between the prediction and the ground truth. To encourage underestimation of vfov $\upsilon$ more than overestimation, we design an asymmetric loss as depicted in Fig.~3 in the main text; formally: \begin{equation} \label{eq-softbiasedltwo} \mathcal{L}(\hat{\upsilon})= \begin{cases} \frac{(\hat{\upsilon} - \upsilon)^2}{(\hat{\upsilon} - \upsilon)^2+ 1}, & \text{if}\ \hat{\upsilon} <= \upsilon \\ (\hat{\upsilon} - \upsilon)^2, & \text{otherwise.} \end{cases} \end{equation} We verify the benefits of these design choices in Table 1 in the main text. \subsection{Virtual ground plane} In all qualitative results, we visualize a virtual ground plane with a checkerboard, which is parallel to the $xz$-plane and therefore parameterized as $[0,y,0]$. We define $y=\min\left(\mathcal{M}(\theta, \beta)[:,2]\right)$, \ie~we place the ground plane just below the SMPL mesh. This simple parameterization is feasible because we disentangle the camera rotation $R^c$ from the body orientation $R^b$. For SOTA methods that apply the IWP-cam\xspace model, the virtual ground planes are often tilted. As a result, it requires further processing to estimate the up-vector, or conversely, the direction of gravity, making it non-trivial to integrate the reconstructed bodies for some downstream applications, \eg~scene understanding, character animation, physics simulation. \methodname, on the other hand, reconstructs bodies in the world coordinate frame with a consistent up vector $[0,1,0]$, which is more physically plausible when visualized together with the ground plane. See Sup.~Mat.\xspace~video. \subsection{SMPLify-X-Cam} To integrate the estimated camera parameters from CamCalib\xspace into an optimization-based method, we use the original implementation of SMPLify-X \cite{SMPL-X:2019} with slight modifications. We replace the IWP-cam\xspace with the estimated $K$ and $R^c$ as described in Sec.~3.3 of the main text. Additionally, we initialize the optimization with the output of HMR-EFT \cite{joo2020eft}, instead of starting from a mean pose and a mean shape. We use the Adam optimizer with a step size of $10^{-2}$ for 100 steps for both the first and second stage of optimization. The results of SMPLify-X-cam\xspace are evaluated in Sec.~\ref{sec:smplifycam_evaluation}. \section{Implementation Details} \subsection{\methodname-MTP\xspace Dataset} M\"uller \etal~\cite{Mueller:CVPR:21} propose a ``Mimic The Pose'' (MTP) task to collect datasets of natural images with high-quality pseudo ground truth body parameters from Amazon Mechanical Turk (AMT). Each image shows a person mimicking a posed SMPL-X mesh presented to them on AMT. M\"uller \etal~devise a three-stage optimization routine, SMPLify-XC\xspace, to fit the SMPL-X model to each image. It is based on the default SMPLify-X \cite{SMPL-X:2019} but considers additionally the pose $\tilde{\theta}$ and self-contact $\tilde{C}$ of the presented SMPL-X mesh to constrain the optimization. The body parts in self-contact are identified by finding vertices that are close in Euclidean and far in geodesic space. Please see \cite{Mueller:CVPR:21} for a detailed definition of self-contact. We follow the MTP approach but add two distinctions in order to obtain ground truth camera parameters: (1) Instead of getting a single picture for each pose, we ask AMT subjects to record a video showing the pose from multiple viewpoints, similar to Mannequin-Challenge style \cite{li2019learning}. (2) We also ask them to print out a calibration pattern and record a video of the grid following a detailed protocol. In addition, we ask them to measure the size of the grid and take a picture of the grid and a ruler to verify the measured values. To fit SMPL-X pose $\theta$ and shape $\beta$, as well as camera pitch $\alpha$, roll $\phi$, yaw $\psi$, and camera translation $t^c$ to the collected MTP videos, we extend SMPLify-XC\xspace and introduce SMPLify-XC-Cam. We follow the three-stage optimization routine. In the first stage, body pose $\theta$ is initialized as the poses of the presented mesh, $\theta = \tilde{\theta}$, and stays fixed in this stage. The objective is: \begin{equation} E(\beta, \alpha, \phi, \psi, t^c) = \lambda_M E_M + \sum_{i=1}^{F} E_{J_i} \text{.} \end{equation} $E_M$ denotes the SMPLify-XC shape loss, that takes the ground truth height and weight of a person into account. \begin{equation} E_{J_i} = \Big|\Big| \omega_i \gamma \big( \Pi \big(\mathcal{M}(\beta, \theta), R^c_i, K, t^c_{i} \big) - \mathcal{J}_{\mathit{2D}_i} \big) \Big|\Big|^{2}_{2} \end{equation} is the 2D re-projection error of a single frame $i$ with detected 2D joints $\mathcal{J}_{\mathit{2D}_i}$, and camera rotation $R^c_i$ and translation $t^c_i$. $\omega_i$ and$\gamma$ are per joint confidence and weight, respectively. $F$ is the number of frames per video, extracted at one frame per second. In the second and the third stage, we freeze body shape $\beta$ and refine the pose $\theta$ and camera parameters by minimizing: \begin{align} \begin{split} E(\theta, \alpha, \phi, \psi, t^c) = & \lambda_{m_h}E_{m_h} + \lambda_{\tilde{\theta}} E_{\tilde{\theta}} + \lambda_{\tilde{C}} E_{\tilde{C}} + \\ & \lambda_{S} E_{S} + \sum_{i=1}^{F} E_{J_i} \text{.} \end{split} \end{align} $E_{m_h}$, $E_{\tilde{\theta}}$, $E_{\tilde{C}}$, $E_{S}$ denote the hand and presented pose priors, the presented contact loss and the general contact loss as defined in \cite{Mueller:CVPR:21}, respectively. Fig.~\ref{fig:mtp-cam} shows several examples of \methodname-MTP\xspace frames and the computed SMPL-X fit. \methodname-MTP\xspace is used only for evaluation. \begin{figure*} \centering \includegraphics[width=0.95\textwidth]{figures/mtp-cam_v2.pdf} \caption{\textbf{\methodname-MTP\xspace benchmark samples.}} \label{fig:mtp-cam} \end{figure*} \subsection{\methodname-SYN\xspace Dataset} We obtain the 3D scans and SMPL-X fits to those scans from the AGORA dataset \cite{patel2021agora}. This includes many high-quality 3D scans of clothed people with accurate SMPL-X ground truth shape and pose. We convert the SMPL-X model to the SMPL format. We then put these scans in 3D scenes and use Unreal engine \cite{unrealengine} to generate photorealistic images with diverse fields of view (fov) and camera rotations. Fig.~\ref{fig:agora-cam-samples} shows several examples, with SMPL fits overlaid on the images. One can observe some perspective distortion at the image boundary in the 3rd and 4th rows, indicating large fov (small focal length); the first and the last row show examples with high camera pitch angles. \begin{figure*} \centering \includegraphics[width=0.85\textwidth]{figures/agora-cam-v2_samples.pdf} \caption{\textbf{\methodname-SYN\xspace dataset samples.}} \label{fig:agora-cam-samples} \end{figure*} \subsection{Pano360 Dataset} \begin{figure*} \centering \includegraphics[width=0.9\textwidth]{figures/pano360.pdf} \caption{\textbf{Pano360 dataset.} Random viewpoints (b) from a single equirectangular panorama image (a). Horizon annotations are shown in red line.} \label{fig:pano360} \end{figure*} To generate training dataset from equirectangular panorama images, we follow the strategy of Zhu \etal~\cite{zhu2020single}. We crop images from panorama images with random viewpoints and focal lengths. Fig.~\ref{fig:pano360} shows a sample panorama image along with the cropped images. \section{Experiments} \subsection{Training Datasets} In addition to \methodname-SYN\xspace dataset which is described in main text, we use datasets explained below for training. \noindent\textbf{MPI-INF-3DHP}~\cite{mpiiinf3dhp_mono-2017} is a multi-view indoor 3D human pose estimation dataset. 3D annotations are captured via a commercial markerless mocap software, therefore it is less accurate than some of the 3D datasets \eg \texttt{Human3.6M}\xspace~\cite{ionescu_h36m}. We use all of the training subjects S1 to S8 which makes 90K images in total. \noindent\textbf{Human3.6M}~\cite{ionescu_h36m} is an indoor, multi-view 3D human pose estimation dataset. Following previous methods, for training, we use 5 subjects (S1, S5, S6, S7, S8) which means 292K images. \noindent\textbf{COCO}~\cite{coco} dataset is a 2D keypoint dataset. In addition to 2D keypoint annotations, we utilize SMPLift-X-cam and CamCalib\xspace method to obtain SMPL and camera parameters annotations. We initialize the SMPLify-X-cam with SMPL fits provided by EFT~\cite{joo2020eft} method. \paragraph{Training Dataset Ratios.} To obtain the final best performing model, we follow EFT~\cite{joo2020eft} and SPIN~\cite{SPIN:ICCV:2019} which use fixed data sampling ratios for each batch. We first train SPEC with 50\% \methodname-SYN\xspace, 50\% COCO for 175K steps. Then, we continue training with 20\% Human3.6M, 20\% MPI-INF-3DHP, with 50\% \methodname-SYN\xspace, and 50\% COCO for around 50K steps until convergence. \subsection{CamCalib Qualitative Results} In Fig.~\ref{fig:camcalib_qual_good}, we show the qualitative results of CamCalib\xspace. We follow \cite{zhu2020single} to visualize the estimated camera rotation by drawing the estimated horizons (red dashed lines). If the camera is pointing down (pitch angle $\alpha > 0$), the horizon should appear in the upper half of the image. Tilting to the left or right indicates the camera roll. CamCalib\xspace estimates reasonable camera parameters for most examples. We also show the failure cases in Fig.~\ref{fig:camcalib_qual_bad}. We observe that they are all portrait images in which background contain little information for estimating camera parameters. We remark that despite no rich information in the background, human bodies still provide useful cues for the calibration purpose and we leave this to the future work. \begin{figure*} \centering \includegraphics[width=0.92\textwidth]{figures/camcalib_qual.pdf} \caption{\textbf{CamCalib\xspace qualitative results.}} \label{fig:camcalib_qual_good} \end{figure*} \begin{figure*} \centering \includegraphics[width=0.992\textwidth]{figures/camcalib_qual_failures.pdf} \caption{\textbf{CamCalib\xspace failures.}} \label{fig:camcalib_qual_bad} \end{figure*} \subsection{\methodname MPJPE/PVE Results and Discussions} Table \ref{tab:sota_mtp} to \ref{tab:sota_3dpw} summarize the performance of \methodname in comparison to SOTA methods on three datasets: \methodname-MTP\xspace, \methodname-SYN\xspace, and 3DPW. In addition to the three metrics, W-MPJPE, PA-MPJPE and W-PVE that are already reported in the main paper, we also include MPJPE and PVE here. The two versions of W-MPJPE and W-PVE are defined in Sec.~4.2 in the main text. First, we observe that \methodname yields better ``pure body pose'' according to the improved PA-MPJPE. Moving onward, a 3DHPS method should learn not only to reconstruct body poses and shapes but also to place and orient them properly in the space. To this end, MPJPE and PVE are often considered stricter than the Procrustes-aligned counterparts as they measure additionally discrepancies in rotation. \methodname also outperforms SOTA methods \cite{SPIN:ICCV:2019,kolotouros2019cmr,Moon_2020_ECCV_I2L-MeshNet,Rockwell2020} in MPJPE/PVE, but yield on-par or slightly worse results than HMR$^*$, which is an IWP-cam\xspace baseline trained under the identical setting as \methodname. Note that MPJPE and PVE are typically computed in the camera space. One needs to transform the ground truth bodies using the camera extrinsics provided by the datasets, and thus the error encodes dataset-specific camera information. However, existing benchmarks, \eg, MPI-INF-3DHP, Human3.6M and 3DPW are often captured with little variation in camera parameters. As a results, MPJPE and PVE cannot clearly reflect the performance of a IWP-cam\xspace method for in-the-wild scenarios where camera types and viewpoints are diverse and unknown. We advocate W-MPJPE and W-PVE because they also measure discrepancies in rotation, but unlike MPJPE/PVE, they are computed in world coordinates, assuming no access to camera information. In W-MPJPE and W-PVE, \methodname again outperforms SOTA methods \cite{SPIN:ICCV:2019,kolotouros2019cmr,Moon_2020_ECCV_I2L-MeshNet,Rockwell2020} and yield consistently better results than HMR$^*$ on datasets captured with diverse camera parameters -- \methodname-MTP\xspace and \methodname-SYN\xspace. Even on 3DPW which is captured with single focal length value, \methodname attains improved or on-par results than HMR$^*$. \input{tables/supmat_mtp_j24} \input{tables/supmat_agora_j24} \input{tables/supmat_3dpw} \subsection{SMPLify-X-cam\xspace Results} \label{sec:smplifycam_evaluation} Table \ref{tab:smplify_agora} and \ref{tab:smplify_3dpw} summarize the performance of SMPLify-X-cam\xspace in comparison to the baseline SMPLify-X method. The same 2D keypoint detections from \cite{mmpose2020} are used for all the reported methods. We compare the default SMPLify-X with $f=5000$ \cite{SMPL-X:2019}, the setting considered by Kissos \etal~\cite{kissosECCVW2020} where $f=2200$, and the setting which uses CamCalib\xspace estimated $K$ and $R^c$. We observe a consistent improvement in W-MPJPE\xspace and W-PVE\xspace when $R^c$ is used. This is due to correct global orientation reconstruction w.r.t.~world coordinates. On \methodname-SYN\xspace, using $K$ improves the PA-MPJPE\xspace due to more accurate projective geometry. 3DPW is captured with a single camera where $f=1962$ so it is not a good dataset with which to evaluate the effect of focal length. Even in this case, SMPLify-X-cam\xspace improves the results over the default setting and the PA-MPJPE\xspace result is on par with results using $f=2200$. The $f=2200$ approximation is already close to the single focal length used in 3DPW dataset $f=1962$, consequently it does well. As a reference, the average CamCalib\xspace focal length error is 360 and 246 pixels on 3DPW and \methodname-SYN\xspace datasets, respectively. To further analyze the impact of focal length on body reconstructions, we run SMPLify-X on \methodname-SYN\xspace with focal lengths perturbed from the real ground truth values and plot the W-MPJPE trend in Fig.~\ref{fig:f_sensitivity} (blue curve). We see that the quality of HPS are sensitive to underestimated focal lengths and less sensitive to overestimation, as also reported in \cite{kissosECCVW2020,yu2020pcls}. In addition, we visualize default SMPLify-X ($f=5000$) and SMPLify-X (CamCalib\xspace $K$) according to the corresponding W-MPJPE in Table \ref{tab:smplify_agora}. One can see that in average, with the focal lengths from CamCalib\xspace, body reconstructions are closer to the low-error basin of small perturbations, \ie~closer to the true focal lengths. Note that, the averaged focal length in \methodname-SYN\xspace is 840 pixels, so the averaged error of 246 pixels (29\%) confirms again that SMPLify-X-cam\xspace is relatively robust when the estimated focal length ranges between 0.7 and 1.3 times the true one. \input{tables/supmat_smplify_agora_j24} \begin{figure} \centering \includegraphics[width=0.45\textwidth]{figures/focal_length_sensitivity.pdf} \caption{Sensitivity of SMPLify-X to focal length perturbation on \methodname-SYN\xspace dataset. Using CamCalib\xspace estimated $f$ yields better results. Body reconstruction accuracy is less sensitive to larger focal lengths. Therefore, we propose Softargmax-biased-$\mathcal{L}_{2}$\xspace loss.} \label{fig:f_sensitivity} \end{figure} \input{tables/supmat_smplify_3dpw} \subsection{Ablation study on \methodname with 3DPW} The Table 5 in the main text provides an ablation study on \methodname using the \methodname-SYN\xspace dataset, which dissects the improvement over the baseline HMR$^*$ in various aspects: using the original image center as the principal point, using the CamCalib\xspace estimated focal length, using the estimated rotations, and lastly conditioning the network with the estimated cameras (\methodname). We repeat this here on the common 3DPW benchmark as in Table \ref{tab:hmr_3dpw}. Despite that it is not a suitable dataset to analyze the impact of each camera parameters, we still observe that appending the estimated cameras to the image feature leads to improvement in five metrics (c.f. the last two rows), so does using the estimated focal length (HMR$^{*}$ + $c$ + $f$ vs. HMR$^{*}$ + $c$). \begin{table} \centering \resizebox{0.47\textwidth}{!}{ \begin{tabular}{l|r|r|r} \toprule \textbf{Methods} & \textbf{W-MPJPE\xspace} & \textbf{PA-MPJPE\xspace} & \textbf{W-PVE\xspace} \\ \midrule HMR$^{*}$ & 112.7 / \textbf{97.2} & 62.3 & 133.1 / 115.6 \\ HMR$^{*}$ + $c$ & 115.4 / 97.3 & 62.2 & 135.9 / 116.9 \\ HMR$^{*}$ + $c$ + $f$ & 112.1 / 96.1 & 61.4 & 134.1 / \textbf{113.6} \\ \midrule HMR$^{*}$ + $c$ + $f$ + $R^c$ & 102.7 / 102.7 & 60.2 & 124.0 / 124.0 \\ SPEC & \textbf{98.1} / 98.1 & \textbf{59.9} & \textbf{119.3} / 119.3 \\ \bottomrule \end{tabular} } \caption{Ablation experiments on \methodname with 3DPW validation set. $c$: using the image center as camera center; $f$ and $R^c$: using CamCalib\xspace estimated focal length and camera rotation, respectively. All numbers are in \emph{mm}.} \label{tab:hmr_3dpw} \end{table} \begin{table} \centering \resizebox{0.3\textwidth}{!}{ \begin{tabular}{l|r|r} \toprule \textbf{Methods} & \textbf{MPJPE\xspace} & \textbf{PA-MPJPE\xspace} \\ \midrule Want~\etal~\cite{wang2020viewpoint}& 89.7 & 65.2 \\ SPEC w. 3DPW & 96.4 & 52.7 \\ \bottomrule \end{tabular} } \caption{Comparison to Wang~\etal~\cite{wang2020viewpoint}. Here both methods are trained with 3DPW training set for a fair comparison.} \label{tab:comparison_wang_etal} \end{table} \subsection{Comparison to Wang \etal~\cite{wang2020viewpoint}} Wang~\etal~\cite{wang2020viewpoint} train their methods on 3DPW training set. We also train SPEC on 3DPW to make a comparison to their method. Results are denoted in Table~\ref{tab:comparison_wang_etal}. SPEC outperforms Wang~\etal~\cite{wang2020viewpoint} in terms of PA-MPJPE metric, but performs poorly in MPJPE. This is due to the use of estimated camera parameters in SPEC's evaluation. We argue that SPEC would perform better with W-MPJPE metric, however a comparison is not possible since the code of Wang~\etal~\cite{wang2020viewpoint} is not available. \subsection{Qualitative results of \methodname} In Fig.~\ref{fig:spec_qualitative_good}, we show several qualitative results from \methodname. One can observe that \methodname yields on-par or more physically plausible reconstructed bodies than the baseline that is trained with the identical setting. For more clear illustration, please see the 360$^\circ$ visualizations in Sup.~Mat.\xspace~video. The failure cases of \methodname are shown in Fig.~\ref{fig:spec_qualitative_bad}. We observe that some examples share similar traits as those in Fig.~\ref{fig:camcalib_qual_good}: portrait images with limited background information. The error of \methodname can be partially attributed to the error from CamCalib\xspace. Other scenarios include rarely-seen viewpoints or poses that are not observed in the training data. \begin{figure*} \centering \includegraphics[width=\textwidth]{figures/spec_supmat_results.pdf} \caption{\textbf{SPEC qualitative results.}} \label{fig:spec_qualitative_good} \end{figure*} \begin{figure*} \centering \includegraphics[width=\textwidth]{figures/spec_failures.pdf} \caption{\textbf{SPEC failures.}} \label{fig:spec_qualitative_bad} \end{figure*} \section{Method} \label{methods} \subsection{Preliminaries} \label{recap} A pinhole camera maps a 3D point $X \in \mathbb{R}^3$ to an image pixel $x \in \mathbb{R}^2$ through $x = K(R^c X + t^c)$, where $K \in \mathbb{R}^{3\times 3}$ is the intrinsic matrix storing focal length $f_x$, $\focaly$ and the principal point $(o_x, o_y)$. We follow previous work and omit skew, radial and tangential distortion. Extrinsic parameters are $R^c \in SO(3)$ and $t^c = (t_x^c, t_y^c, t_z^c) \in \mathbb{R}^3$, representing camera rotation and translation in the world coordinate frame, respectively. We estimate a parameteric human body model, SMPL \cite{looper_smpl,SMPL-X:2019}, that deforms a predefined human surface $\smpl$ according to body pose $\theta$ and shape $\beta$. When both body translation $t^b$ and body orientation $R^b$ are zero, the mesh is located near the origin of world coordinates, facing the $z^{+}$ direction and $y^{+}$ is the up-vector, as visualized in Fig.~\ref{fig:naive_cam}(a). Existing approaches \cite{bogo_smplify,expose2020eccv,guler_2019_CVPR,jiang2020mpshape,kanazawa_hmr,kocabas2019vibe,SMPL-X:2019,song2020human,CenterHMR} assume zero camera rotation, $R^c = \text{I}$, and estimate the camera translation $t^c$ in two ways: (1) by fitting the body joint coordinates to 2D keypoints \cite{bogo_smplify,SMPL-X:2019,zanfir2020weakly} or (2) by predicting weak perspective camera parameters $(s, t_x^c, t_y^c)$ with a neural network, where the scale parameter $s$ is converted to $t_z^c$ \cite{kanazawa_hmr,kanazawa_temporal_hmr,kocabas2019vibe,SPIN:ICCV:2019}. See Sup.~Mat.\xspace~for details of this conversion. The underlying assumption here is weak perspective projection. It is assumed that the camera is placed very far from the person, such that depth variations in the $z$ coordinate of the person are negligible compared to the distance from the camera. This is violated regularly in natural images where it is common that the distance from the camera to the body is no more than the height of the body itself. For intrinsic parameters, \cite{bogo_smplify,kocabas2019vibe,SPIN:ICCV:2019,SMPL-X:2019} set the focal length as a large constant $f_x = \focaly = f \equiv 5000$ to meet the weak-perspective assumption and set the principal point $(o_x, o_y)$ at the center of the resized cropped image around the person, while \cite{kanazawa_hmr,CenterHMR,zanfir2020weakly} directly apply weak perspective projection $x = sX + t^c$. Despite the differences in modeling projection and translation, one common feature of these simplified cameras is that they only have three unknowns: $(s, t_x^c, t_y^c)$ or equivalently $(t_x^c, t_y^c, t_z^c)$. We refer to them collectively as \emph{IWP-cam\xspace} in this paper, standing for Identity rotation and Weak Perspective. Note that both camera variables $(R^c, t^c)$ and body variables $(R^b, t^b)$ are expressed in world coordinates, not in camera space. Given just one single-view image, the network/optimizer can change both $(R^c, t^c)$ and $(R^b, t^b)$ to explain the image observations. IWP-cam\xspace addresses this by assuming $R^c = \text{I}$ and $t^b=0$ to solve only for camera translation $t^c$ and body orientation $R^b$, or more precisely, the body orientation in the camera space: $R^b_c = R^c R^b$. See Fig.~\ref{fig:naive_cam}(a). This approach is a key reason why most methods evaluate accuracy after Procrustes alignment of the estimated body to the ground truth. IWP-cam\xspace works well when the weak-perspective assumption holds. However, images captured by cameras with significant pitch and smaller focal lengths, such as those in Fig.~\ref{fig:teaser} and Fig.~\ref{fig:qualitative}, have foreshortening distortion that breaks this assumption because changes in the $z$ coordinate of the 3D body are no longer negligible compared to the distance from the camera. IWP-cam\xspace expects HPS methods to absorb this camera pitch $\alpha$ into the relative body orientation $R^b_c$, but in practice, due to the mismatch in focal length, the optimization often unnecessarily changes body pose; e.g.~the wrong arm and leg poses in Fig.~\ref{fig:teaser}(b). \begin{SCfigure} \centering \includegraphics[width=0.25\textwidth]{figures/BiasedL2_v2.pdf} \caption{Softargmax-biased-$\mathcal{L}_{2}$\xspace penalizes underestimates of vfov less than over estimates. \label{fig:biased-L2} \vspace{-2ex} \end{SCfigure} \begin{figure*}[t] \centering \includegraphics[width=0.86\textwidth]{figures/method_v3.pdf} \caption{\textbf{\methodname overview.} CamCalib\xspace takes the whole input image as input and predicts camera pitch $\alpha$, roll $\phi$, and vertical field of view $\upsilon$. These parameters are then used to construct camera rotation $R^c$ and intrinsics $K$. Horizon line (green) is rendered following \cite{zhu2020single} to indicate camera rotations. \methodname takes a cropped bounding box as input and extracts image features using a CNN backbone. Predicted camera parameters from CamCalib\xspace are concatenated with image features to estimate SMPL body parameters $\theta,\beta$ along with the body translation $t^b$. Camera parameters are also taken into account when computing a loss between the projected 3D joints $\predjoints{2}$ and ground truth.} \label{fig:model_spec} \vspace{-2ex} \end{figure*}{} \subsection{Camera Calibration from a Single Image} \label{cam_calib} Inspired by single-view camera calibration and metrology \cite{Hold-Geoffroy_2018_CVPR,Kendall_2015_ICCV,workman2016horizon,zhu2020single}, we estimate camera rotation $R^c$ and focal length $f$ from a single RGB image. By lifting the zero camera rotation constraint, \ie~$R^c \neq \text{I}$, and directly estimating $R^c$, we bypass the camera-relative body orientation $R^b_c$, and thus disentangle camera rotations from body orientations. Doing so allows us to handle perspective/foreshortening distortion while keeping a consistent $xz$-plane aligned ground plane located at $[0, y, 0]$. Utilizing better focal length also improves the pose estimation quality by leveraging accurate perspective projection. Specifically, camera rotation is parameterized by three angles: pitch $\alpha$, roll $\phi$ and yaw. Since focal length in pixels has an unbounded range and it changes whenever one resizes images, we estimate vertical field of view (vfov) $\upsilon$ in radians and convert it to focal length $f_y$ via: \begin{equation} \label{eq-vfov2fly} f_y = \frac{\frac{1}{2}h}{\tan (\frac{1}{2} \upsilon )}, \end{equation} where $h$ is the image height in pixels. We follow \cite{zhu2020single} to assume zero camera yaw and $f_x = \focaly = f $. Our camera thus has three more parameters -- pitch, $\alpha$, roll, $\phi$, and vertical field of view, $\upsilon$, in addition to the original $(s, t_x^c, t_y^c)$. Since the three new parameters are all in radians, we choose to learn them with one camera calibration model termed \emph{CamCalib}. We place the camera at the origin so $t^c = [0,0,0]$, as depicted in Fig.~\ref{fig:naive_cam}(b), and leave the estimation of body translation $t^b$ to the downstream body estimator. Many human body reconstruction networks take only a cropped image patch around the person as input. In contrast, CamCalib\xspace takes the uncropped full-frame image to predict pitch $\alpha$, roll $\phi$, and vfov $\upsilon$, which are the same for all subjects in the image. We argue that this is beneficial because the full image contains rich cues that facilitate camera calibration. For example, there are abundant geometric cues, \eg~vanishing points and lines, available to help determine camera rotations and field of view in the original image. Following \cite{Hold-Geoffroy_2018_CVPR,Kendall_2015_ICCV,zhu2020single}, we use a CNN as the backbone for CamCalib\xspace and discretize the spaces of pitch $\alpha$, roll $\phi$, and vfov $\upsilon$ into $B$ bins, converting the regression problem into a $B$-way classification problem. However, instead of cross-entropy~\cite{workman2016horizon} or KL-divergence~\cite{Hold-Geoffroy_2018_CVPR,zhu2020single} losses, we aggregate the predicted probability mass using a softargmax operation, \ie~computing the expectation value of the prediction, and measure its difference to the ground truth with an $\mathcal{L}_2$\xspace loss which we term Softargmax-$\mathcal{L}_{2}$\xspace. Thus, we avoid the difficulty of regressing in a continuous target space while retaining the notion of distance in the loss. The detailed formulation of Softargmax-$\mathcal{L}_{2}$\xspace is provided in the Sup.~Mat.\xspace Furthermore, as pointed out by \cite{kissosECCVW2020,yu2020pcls} and shown in the Sup.~Mat.\xspace, predicting larger focal lengths than the ground truth (or equivalently smaller fov) is less harmful to the reconstructed 3D poses than predicting smaller focal lengths (larger fov). We therefore apply an asymmetric loss for vfov $\upsilon$. As shown in Fig.~\ref{fig:biased-L2}, predictions $\hat{\upsilon}$ larger than the ground truth $\upsilon$ yield higher penalty through a standard $\mathcal{L}_2$\xspace loss, while the penalty for smaller predictions $\hat{\upsilon}$ saturates via a Geman-McClure function \cite{geman-mcclure}. We verify the benefits of all these design choices in Sec.~\ref{experiments}. \subsection{Optimization approach: SMPLify-X-cam\xspace} \label{optimization_method} Next, we showcase how using the estimated camera parameters help human body estimation in an optimization-based approach. To this end, we modify the SMPLify-X method \cite{SMPL-X:2019}. Given an image, CamCalib\xspace predicts camera pitch $\alpha$, roll $\phi$, and vfov $\upsilon$. We convert them into camera rotation $R^c = R(\alpha)R(\phi)$ and intrinsics, $K$, storing $f=f_x=f_y$ and the principal point $(o_x, o_y)=(w/2, h/2)$, where $f_y$ is computed from Eq.~\ref{eq-vfov2fly} and $w,h$ are the image width and height in pixels. Then, we estimate the 2D keypoints $\gtjoints{2}$ using an off-the-shelf 2D keypoint detector~\cite{mmpose2020} and define the the SMPLify-X-cam\xspace energy function as: \begin{equation} E(\beta, \theta, R^c, K, t^b) = E_{J} + E_{\theta} + E_{\beta}, \end{equation} where $\beta, \theta$ are SMPL shape and pose parameters, $t^b$ is SMPL body translation, $E_{\theta}$ and $E_\beta$ are pose and shape prior terms, and $E_{J}$ is the data term. We modify the original SMPLify-X method to take perspective camera parameters into account in the data-term $E_{J}$. We obtain SMPL 3D joint locations using a pretrained joint regressor $W$ by $\predjoints{3} = W \mathcal{M}(\theta, \beta)$. $E_{J}$ measures the difference between the detected $\gtjoints{2}$ and the estimated $\predjoints{3}$, projected on the image by the estimated camera parameters: \begin{equation} \label{eq:persp-proj} E_{J} = \Big|\Big| \Pi \predjoints{3} - \gtjoints{2} \Big|\Big|^{2}_{2}\text{, where } \Pi = K[R^c | -t^b]. \end{equation} \subsection{Learning-based approach: \methodname} \label{regression_method} To evaluate the effect of estimated camera parameters on a regression-based method, we take a simple and widely-used method, HMR \cite{kanazawa_hmr}, as a backbone, which employs a 2D reprojection loss during training that uses the estimated IWP-cam\xspace. We incorporate our estimated camera parameters in two ways: (1) by using them as $R^c$ and $K$ during the projection of 3D joints like in Eq.~\ref{eq:persp-proj} and (2) by conditioning the fully connected layers, which estimate SMPL parameters, with $R^c$ and $\upsilon$. Figure~\ref{fig:model_spec} gives an overview of \methodname. Given an image, we first estimate the camera pitch $\alpha$, roll $\phi$, and vfov $\upsilon$ using CamCalib\xspace and then convert them into $R^c$ and $K$ as explained in Sec.~\ref{optimization_method}. For human body regression, we take a cropped bounding-box image as input and extract image features using a backbone CNN. These image features are concatenated with $R^c$ and $\upsilon$ and fed to an iterative regressor \cite{kanazawa_hmr} to regress SMPL pose $\theta$ and shape $\beta$ along with body translation $t^b$. By doing so, \methodname learns to disentangle the SMPL body's global orientation $R^b$ from the camera rotation $R^c$. See Sup.~Mat.\xspace~for the details of $t^b$. Then, we obtain SMPL 3D joint locations $\predjoints{3}= W \mathcal{M}(\theta, \beta)$ and 2D projection $\predjoints{2}=\Pi \predjoints{3}$ as in Eq.~\ref{eq:persp-proj}. Overall, our total loss for each training sample is: $\mathcal{L} = \lambda_{3D}\mathcal{L}_{3D} + \lambda_{2D}\mathcal{L}_{2D} + \lambda_{SMPL} \mathcal{L}_{SMPL}$ where \begin{eqnarray} \mathcal{L}_{\mathit{3D}} &= & \| \predjoints{3} \; - \; \gtjoints{3} \|_F^2 \text{, } \\ \mathcal{L}_{\mathit{2D}} &= & \| \predjoints{2} \; - \; \gtjoints{2} \|_F^2, \\ \mathcal{L}_{\mathit{SMPL}} &= & \| \hat{\theta} \; - \; \theta \|_2^2 + \| \hat{\beta} \; - \; \beta \|_2^2 \text{,} \end{eqnarray} where $\hat{\cdot}$ represents the prediction for the corresponding variable. $\lambda$'s are scalar coefficients to balance the loss terms. Note that we define both 3D and 2D losses on the body joints. This is because the 3D ground truth we use for training is not always reliable and thus the 2D joints provide important additional image cues, which can be exploited particularly well when using the correct camera geometry. \section{Experiments} \label{experiments} \oh{we could use an introductory sentence here. What experiments are we doing to answer which kind of questions.} \subsection{Datasets} \paragraph{Pano360 dataset.} Previous work~\cite{Hold-Geoffroy_2018_CVPR, zhu2020single}, uses the SUN360~\cite{xiao2012recognizing} dataset to train camera calibration networks, however the dataset is no longer available due to licensing issues. Therefore, we have curated a new dataset of equirectangular panorama images called Pano360. The Pano360 dataset consists of 35K panoramic images of which 34K are from Flickr and 1K rendered from photorealistic 3D scenes. Following previous work~\cite{Hold-Geoffroy_2018_CVPR, zhu2020single}, we randomly sample the camera parameters pitch, roll, yaw, and vertical field-of-view to generate 400K training and 15K validation images. We use these to train our CamCalib\xspace model. More details on the dataset are provided in the Sup.~Mat.\xspace \paragraph{\methodname-SYN\xspace.} Existing datasets are captured using limited variation. Hence, they are not suitable for testing and training. We created a photorealistic synthetic dataset inspired by AGORA~\cite{patel2021agora} to train and evaluate our model. The AGORA dataset has high-quality textured human 3D scans from different vendors and provides ground-truth SMPL(X) parameters for them. We place these scans in 5 different high-quality photorealistic 3D scenes. These 3D scenes are quite large \oh{handwavy} and we optimize for maximum coverage. We randomly sample camera viewpoints and focal lengths to add diversity. Camera pitch is sampled from a uniform distribution $\mathcal{U}(-30^{\circ}, 15^{\circ})$, roll is sampled from a normal distribution $\mathcal{N}(0^{\circ}, 2.8^{\circ})$, and camera field-of-view from $\mathcal{U}(70^{\circ}, 130^{\circ})$ to cover the cameras used in everyday life \eg digital cameras, smartphones. In total, we obtained 22191 images/71982 instances for training, 3783 images/12071 instances for validation. \paragraph{Mimic-the-pose Cam (MTP-Cam)}. MTP-Cam is a new test set for human pose, shape, and camera estimation. Following the idea of the MTP dataset~\cite{}, we ask a person to mimic 10 different poses. While the person remains in the pose, a video is being recorded, showing the person from different viewpoints. The camera is held at chest height, overhead, and close to the ground, through which perspective effects are generated. In addition, we ask each person to calibrate their camera, following a detailed protocol. We use a standard calibration toolbox~\cite{rehder2016extending} and keypoint detector~\cite{cao2018openpose} to obtain focal length, $f_x$ and $\focaly$, and estimate 2D joints $\gtjoints{2}$, respectively. We extend the SMPLify-XC method and use the ground truth calibrated camera to fit the SMPL-X model to each video. In total, we collect 60 videos of 6 subjects (4 male, 2 female) who together mimic 60 different poses. The SMPLify-XC method is a three-stage optimization routine, that fits the SMPL-X model to an image, showing a person who is mimicking the pose of a presented SMPL-X mesh (MTP image). The pose $\tilde{\theta}$ and contact $\tilde{C}$ of the presented mesh constrain the optimization. Here, we introduce SMPLify-XC Cam, a method for fitting SMPL-X pose $\theta$ and shape $\beta$, as well as camera pitch $\alpha$, roll $\phi$, yaw $\psi$, and translation $t^c$ to a MTP video captured in mannequin style. We also use three optimization stages, where the SMPLify-XC Cam first stage objective is given by \begin{equation} E(\beta, \alpha, \phi, \psi, t^c) = \lambda_M E_M + \sum_{i=1}^{F} E_{J_i} \text{.} \end{equation} $E_M$ denotes the SMPLify-XC shape loss, that takes the ground truth height and weight of a person into account. \begin{equation} E_{J_i} = \Big|\Big| \omega_i \gamma \big( \Pi \big(\mathcal{M}(\beta, \theta), R^c_i, K, t^c_i \big) - \gtjoints{2}_i \big) \Big|\Big|^{2}_{2} \end{equation} denotes the 2D re-projection error of a single frame $i$ with ground truth 2D joints $\gtjoints{2}_i$, and camera rotation $R^c_i$ and translation $t^c_i$. $\omega_i$ and$\gamma$ are per joint confidence and weight, respectively. $F$ is the number of frames per video, extracted at one frame per second. In the second and third stage, we seek to optimize \begin{align} \begin{split} E(\theta, \alpha, \phi, \psi, t^c) = & \lambda_{m_h}E_{m_h} + \lambda_{\tilde{\theta}} E_{\tilde{\theta}} + \lambda_{\tilde{C}} E_{\tilde{C}} \\ & \lambda_{S} E_{S} + \sum_{i=1}^{F} E_{J_i} \text{.} \end{split} \end{align} $E_{m_h}$, $E_{\tilde{\theta}}$, $E_\tilde{C}$, $E_{S}$ denote the hand and presented pose priors, the presented contact loss and the general contact loss as defined in \cite{}, respectively. \paragraph{Others} In addition to the above datasets, we use the 3DPW~\cite{vonMarcard2018_3dpw}, COCO~\cite{coco}, MPI-INF-3DHP~\cite{mpiiinf3dhp_mono-2017}, and Human3.6M~\cite{ionescu_h36m} datasets. COCO, MPI-INF-3DHP, and Human3.6M are used for training, while 3DPW, \methodname-SYN\xspace, and MTP-Cam are used for evaluation. Since there is no 3D body and camera annotations for COCO, we use CamCalib\xspace to attain pseudo camera parameters and SMPLify-X-cam to obtain pseudo 3D human body annotations. SMPLify-X-cam fitting is initialized via EFT~\cite{joo2020eft} annotations. \paragraph{Evaluation metrics.} Mean per joint position error MPJPE\xspace, procrusted-aligned mean per joint position error PA-MPJPE\xspace, and per vertex error PVE\xspace are the most commonly used evaluation metrics in the literature. In the current literature, methods assume known camera extrinsics and then compute MPJPE\xspace, PVE\xspace in camera coordinates. However, this evaluation does not really reflect the performance of the existing method in in-the-wild settings where camera types and viewpoints are quite diverse. Therefore we propose using a variant of MPJPE\xspace and PVE\xspace without assuming known camera extrinsics and compute the joint error in world coordinates which we call these metrics as W-MPJPE\xspace and W-PVE\xspace. More details regarding the difference of evaluation metrics are discussed in greater detail in Sup.~Mat.\xspace. \subsection{Implementation Details} \label{sec:implementation} \paragraph{CamCalib\xspace.} We follow the implementation of Geoffroy \etal~\cite{Hold-Geoffroy_2018_CVPR}. We use ResNet-50 as the backbone and predict $\alpha$, $\phi$, and $\upsilon$ using separate fully-connected layers. Each parameter has 256 bins. The model is trained with variable size images for 30 epochs. Pano360 dataset is used for training and evaluation. \paragraph{SMPLify-X-cam.} We use the original implementation of SMPLify-X with some modifications. Instead of starting from a mean pose and shape, we initialize the optimization from a regressor output. \oh{which?} Both for the first and second stage of optimization, the Adam optimizer with a step size of $10^{-2}$ is utilized for 100 steps. \paragraph{SPEC.} Similar to the original HMR~\cite{kanazawa_hmr}, we use a ResNet-50 as the backbone and fully-connected layers applied iteratively to regress SMPL parameters. The Adam optimizer with a learning rate of $5e-5$ is used. For training, for the first 150 epochs, we start training with COCO and \methodname-SYN\xspace datasets, and then incorporate MPI-INF-3DHP and Human3.6M datasets. Total training takes 175 epochs, $\sim$4-5 days. \subsection{Single image camera calibration results} We demonstrate the performance of different camera calibration methods on the Pano360 evaluation set in Table~\ref{tab:camcalib}. We report the mean angular error for camera pitch $\alpha$, roll $\phi$, and vfov $\upsilon$. ScaleNet is from Zhu \etal~\cite{zhu2020single}, we use their open sourced implementation to obtain the result on Pano360. ScaleNet uses KL loss for training. We investigate the effect of different loss function \ie KL-divergence, Softargmax-$\mathcal{L}_{2}$\xspace, and Softargmax-biased-$\mathcal{L}_{2}$\xspace with CamCalib\xspace network. Softargmax-biased-$\mathcal{L}_{2}$\xspace performs the best in comparison to different loss functions. \begin{table}[] \centering \resizebox{0.49\textwidth}{!}{ \npdecimalsign{.} \nprounddigits{2} \begin{tabular}{l|r|r|r} \toprule \textbf{Methods} & \textbf{vfov $\upsilon^{\circ}$} $\downarrow$ & \textbf{pitch $\alpha^{\circ}$} $\downarrow$ & \textbf{roll $\phi^{\circ}$} $\downarrow$ \\ \midrule ScaleNet & 5.68 & 2.61 & 1.41 \\ \midrule CamCalib\xspace (KL Loss) & 3.53 & 2.32 & 1.15 \\ CamCalib\xspace (Softargmax-$\mathcal{L}_{2}$\xspace) & 3.34 & 2.06 & 1.11 \\ CamCalib\xspace (Softargmax-biased-$\mathcal{L}_{2}$\xspace) & \bf 3.24 & \bf 1.94 & \bf 1.02 \\ \bottomrule \end{tabular} } \caption{Results of different methods Pano360 camera calibration dataset. ScaleNet~\cite{zhu2020single} results are obtained using authors' implementation.} \label{tab:camcalib} \end{table} \subsection{SMPLify-X-cam\xspace results} Table~\ref{tab:smplify_agora} and \ref{tab:smplify_3dpw} summarize the performance of SMPLify-X-cam\xspace in comparison to the baseline SMPLify-x methods. The same 2D keypoint detections from \cite{mmpose2020} are used for all the reported methods. We compare the default setting of SMPLify-X with $f=5000$, the SMPLify-X setting used by Kissos \etal~\cite{kissosECCVW2020} where $f=2200$, and the SMPLify-X setting which uses CamCalib\xspace estimated $K, R^c$. We observe a consistent improvement in W-MPJPE\xspace and W-PVE\xspace when $R^c$ is used. This is due to correct global orientation reconstruction wrt. world coordinates. On \methodname-SYN\xspace using $K$ improves the PA-MPJPE\xspace due to more accurate projective geometry. 3DPW is limited in terms of camera variety. It is captured with a single camera where $f=1962$. Even in this case, SMPLify-X-cam\xspace improves the results over the default setting and the PA-MPJPE\xspace result is on par with when $f=2200$ used. This is because $f=2200$ approximation is already close to the single focal length used in 3DPW dataset $f=1962$. As a reference, the average CamCalib\xspace focal length error is 360, 246 pixels on 3DPW and \methodname-SYN\xspace datasets, respectively. \begin{table}[] \centering \resizebox{0.49\textwidth}{!}{ \begin{tabular}{l|r|r|r} \toprule \textbf{Methods} & \textbf{W-MPJPE\xspace} & \textbf{PA-MPJPE\xspace} & \textbf{W-PVE\xspace} \\ \midrule SMPLify-X (ground-truth $f$) & 138.5 & 67.6 & 151.5 \\ \midrule SMPLify-X ($f=5000$) & 179.3 & 71.6 & 191.5 \\ SMPLify-X ($f=2200$) & 164.2 & 70.1 & 176.9 \\ \midrule SMPLify-X (CamCalib\xspace $K$) & 143.3 & \textbf{67.4} & 156.3 \\ SMPLify-X-cam\xspace (CamCalib\xspace $K$ + $R^c$) & \textbf{121.9} & 67.8 & \textbf{135.0} \\ \bottomrule \end{tabular} } \caption{Results of SMPLify-X-cam\xspace on \methodname-SYN\xspace dataset.} \label{tab:smplify_agora} \end{table} \begin{figure} \centering \includegraphics[width=0.45\textwidth]{figures/focal_length_sensitivity.pdf} \caption{Sensitivity of SMPLify-X to focal length perturbation on \methodname-SYN\xspace dataset. Using CamCalib\xspace estimated $f$ yields better results. Body reconstruction accuracy is less sensitive to larger focal lengths. Therefore, we propose Softargmax-biased-$\mathcal{L}_{2}$\xspace loss.} \label{fig:f_sensitivity} \end{figure} \subsection{SPEC results} \paragraph{Comparison to the state-of-the-art} Table~\ref{tab:sota_agora} and \ref{tab:sota_3dpw} show the results of a recent state-of-the-art (SOTA) methods on the \methodname-SYN\xspace and the 3DPW datasets, respectively. To compute the W-MPJPE\xspace, PA-MPJPE\xspace, and W-PVE\xspace metrics for other methods, we use their open source implementations. We use the HMR~\cite{kanazawa_hmr} method as our baseline and train it with identical settings \ie training datasets and optimization parameters as SPEC. SPEC outperforms the SOTA methods on both the \methodname-SYN\xspace and 3DPW datasets. It also outperforms the HMR method which is trained in identical settings for fair comparison. The improvements in W-MPJPE\xspace and W-PVE\xspace are significant because of more accurate camera geometry information both during training and inference. \begin{table}[] \centering \resizebox{0.49\textwidth}{!}{ \begin{tabular}{l|r|r|r} \toprule \textbf{Methods} & \textbf{W-MPJPE\xspace} & \textbf{PA-MPJPE\xspace} & \textbf{W-PVE\xspace} \\ \midrule GraphCMR~\cite{kolotouros2019cmr} & 180.8 & 71.6 & 195.9 \\ SPIN~\cite{SPIN:ICCV:2019} & 178.9 & 72.5 & 194.8 \\ PartialHumans~\cite{Rockwell2020} & 187.5 & 82.2 & 202.6 \\ I2L-MeshNet~\cite{Moon_2020_ECCV_I2L-MeshNet} & 180.8 & 71.6 & 195.9 \\ \midrule HMR$^{*}$~\cite{kanazawa_hmr} & 126.5 & 51.9 & 138.4 \\ SPEC & \textbf{78.1} & \textbf{49.9} & \textbf{92.8} \\ \bottomrule \end{tabular} } \caption{Results of SOTA methods on \methodname-SYN\xspace dataset. We use the implementations provided by authors to obtain results. HMR$^{*}$ denotes that we train HMR using the same data as SPEC to make a fair comparsion. $^{\dagger}$ we use the SMPL output of this method instead of non-parametric mesh to be able to report W-PVE\xspace.} \label{tab:sota_agora} \end{table} \begin{table}[] \centering \resizebox{0.49\textwidth}{!}{ \begin{tabular}{l|r|r|r} \toprule \textbf{Methods} & \textbf{W-MPJPE\xspace} & \textbf{PA-MPJPE\xspace} & \textbf{W-PVE\xspace} \\ \midrule GraphCMR~\cite{kolotouros2019cmr} & & & \\ SPIN~\cite{SPIN:ICCV:2019} & & & \\ PartialHumans~\cite{Rockwell2020} & & & \\ I2L-MeshNet~\cite{Moon_2020_ECCV_I2L-MeshNet} & & & \\ \midrule HMR$^{*}$~\cite{kanazawa_hmr} & & & \\ SPEC & & & \\ \bottomrule \end{tabular} } \caption{Results of SOTA methods on MTP-Cam dataset. We use the implementations provided by authors to obtain results. HMR$^{*}$ denotes that we train HMR using the same data as SPEC to make a fair comparsion. $^{\dagger}$ we use the SMPL output of this method instead of non-parametric mesh to be able to report W-PVE\xspace.} \label{tab:sota_mtp} \end{table} \begin{table}[] \centering \resizebox{0.49\textwidth}{!}{ \begin{tabular}{l|r|r|r} \toprule \textbf{Methods} & \textbf{W-MPJPE\xspace} & \textbf{PA-MPJPE\xspace} & \textbf{W-PVE\xspace} \\ \midrule GraphCMR~\cite{kolotouros2019cmr} & 137.8 & 69.1 & 158.4 \\ SPIN~\cite{SPIN:ICCV:2019} & 122.2 & 59.0 & 140.9 \\ Partial Humans~\cite{Rockwell2020} & 139.4 & 76.9 & 160.1 \\ I2L-MeshNet$^{\dagger}$~\cite{Moon_2020_ECCV_I2L-MeshNet} & 133.3 & 60.0 & 154.5 \\ \midrule HMR$^{*}$~\cite{kanazawa_hmr} & 122.3 & 55.3 & 139.4 \\ SPEC & \textbf{106.4} & \textbf{53.2} & \textbf{127.4} \\ \bottomrule \end{tabular} } \caption{Results of SOTA methods on 3DPW test set. We use the implementations provided by authors to obtain results. HMR$^{*}$ denotes that we train HMR using the same data as SPEC to make a fair comparsion. $^{\dagger}$ we use the SMPL output of this method instead of non-parametric mesh to be able to report W-PVE\xspace.} \label{tab:sota_3dpw} \end{table} \paragraph{Ablation experiments} We ablate different components of the SPEC model to investigate their effects on the final performance. We use the same datasets and training configurations for all methods. We use HMR as our baseline. To obtain the $\predjoints{2}$, HMR uses the bounding-box as the camera center. Hence, we start by changing the camera center to the image center \ie $o_x=w/2, o_y=h/2$ denoted as ``HMR + $c$". This ensures a better projective geometry than using the bounding-box center as the image center and already improves results. Next, we replace the fixed focal length of 5000 with t he values estimated by CamCalib\xspace and denote this with ``HMR + $c$ + $f$". ``HMR + $c$ + $f$ + $R^c$" denotes the setting where $R^c$ instead of $I$ is used as camera rotation during projection. Finally, SPEC denotes the use of $c$, $f$, $R^c$ during projection and as an input to the final stage of HMR predictions. \begin{table}[] \centering \resizebox{0.49\textwidth}{!}{ \begin{tabular}{l|r|r|r} \toprule \textbf{Methods} & \textbf{W-MPJPE\xspace} & \textbf{PA-MPJPE\xspace} & \textbf{W-PVE\xspace} \\ \midrule HMR & 122.6 & 65.9 & 139.327 \\ HMR + $c$ & 117.1 & 64.0 & 134.1 \\ HMR + $c$ + $f$ & & & \\ \midrule HMR + $c$ + $f$ + $R^c$ & & & \\ SPEC & \textbf{100.6} & \textbf{62.0} & \textbf{122.6} \\ \bottomrule \end{tabular} } \caption{Ablation experiments on 3DPW validation set. $c$: using the image center as camera center, $f$ using CamCalib\xspace estimated focal length, $R^c$ using CamCalib\xspace estimated camera rotation.} \label{tab:hmr_3dpw} \end{table} \begin{table}[] \centering \resizebox{0.49\textwidth}{!}{ \begin{tabular}{l|r|r|r} \toprule \textbf{Methods} & \textbf{W-MPJPE\xspace} & \textbf{PA-MPJPE\xspace} & \textbf{W-PVE\xspace} \\ \midrule HMR & 138.3 & 53.9 & 149.9 \\ HMR + $c$ & 126.5 & 51.9 & 138.4 \\ HMR + $c$ + $f$ & & & \\ \midrule HMR + $c$ + $f$ + $R^c$ & & & \\ SPEC & \textbf{78.1} & \textbf{49.9} &\textbf{92.8} \\ \bottomrule \end{tabular} } \caption{Ablation experiments on \methodname-SYN\xspace dataset. $c$: using the image center as camera center, $f$ using CamCalib\xspace estimated focal length, $R^c$ using CamCalib\xspace estimated camera rotation.} \label{tab:hmr_agora} \end{table} \begin{figure}[t] \centering \begin{minipage}{.45\textwidth} \centering \includegraphics[width=\textwidth]{figures/mpjpe_per_cam_pitch.pdf} \label{fig:test1} \end{minipage}% \begin{minipage}{.45\textwidth} \centering \includegraphics[width=\textwidth]{figures/mpjpe_per_focal_length.pdf} \label{fig:test1} \end{minipage}% \caption{Breakdown of W-MPJPE\xspace per camera focal length and pitch range.} \label{fig:error_breakdown} \end{figure}{} \subsection{Qualitative Results} Figure~\ref{fig:qualitative} shows qualitative results. \begin{figure*}[t] \centering \includegraphics[width=\textwidth]{figures/qualitative.pdf} \caption{Qualitative results.\mkocabas{Figure is not final yet. I am working on it.} } \label{fig:qualitative} \end{figure*}{} \section{Related Work} \label{related_work} We review work that captures/reconstructs 3D humans under calibrated-camera settings, then focus on our goal: in-the-wild 3D human body reconstruction from monocular RGB. We discuss how prior art simplifies the camera model to make the problem tractable and also discuss relevant methods of camera calibration from one RGB image. \noindent\textbf{3D HPS Estimation with Calibrated Cameras}. To capture human motions in 3D, early work exploits calibrated and synchronized multi-camera settings. They can be largely classified to ``bottom up'' approaches \cite{belagiannis20143d,burenius20133d,dong2019fast,grauman2003inferring,sigal2008combined,zhang20204d} that assemble 3D body poses from multi-view image evidence (keypoints, silhouettes), and ``top down'' approaches \cite{Balan:CVPR:2007,EEJTP15,gall2009motion,huang2017pami,totalcapture,vlasic2008articulated} that deform a pre-defined 3D human template according to detected image features in each view. Powered by CNNs, learning-based methods \cite{epipolartransformers2020cvpr,iskakov2019learnable,qiu2019crossview,remelli2020lightweight,to2020voxelpose} gain robustness by training keypoint detection and multi-view pose reconstruction end-to-end. Some monocular approaches \cite{mpiiinf3dhp_mono-2017,Mehta2018XNectRM,Pavlakos_2017_CVPR,shen2020multi} are trained with direct supervision from multi-view data, while others \cite{deepcap,iqbal2020cvpr,kocabas2019epipolar, rhodin2018learning} enforce multi-view consistency as weak, or self, supervision. In either way, known intrinsic or extrinsic parameters are always assumed. Yu \etal~\cite{yu2020pcls} propose perspective crop layers, which crop the image around a person according to camera parameters and image location, effectively removing some effect of camera geometry. All these methods require offline calibration and have a risk of overfitting to the cameras used in training and are typically limited to controlled settings. \noindent\textbf{Single-view HPS Estimation with Unknown Cameras}. In early work, Liebowitz and Carlsson \cite{Liebowitz:2001} use the repetitive structure of a moving person as a cue for camera calibration. Since then, numerous methods reconstruct 3D human bodies given single-view images or videos in uncontrolled settings. Closely related to structure-from-motion and bundle adjustment, \cite{arnab_kineticspose,dong2020motion,leroy2020smply,xiang2020monoclothcap} take videos as input and jointly estimate cameras and reconstruct human bodies; \cite{hasler2009markerless, liu20204d} further ground the bodies in 3D scenes. We focus on the more general scenario in which the input is a single image. SOTA methods use parametric body models \cite{totalcapture,looper_smpl,SMPL-X:2019,xu2020ghum} and estimate the parameters either by fitting to detected image features \cite{bogo_smplify,SMPL-X:2019,xiang2019monocular} or by regressing directly from pixels with deep neural networks \cite{expose2020eccv,guler_2019_CVPR,jiang2020mpshape,joo2020eft,kanazawa_hmr,SPIN:ICCV:2019,Rockwell2020,rong2020frankmocap,song2020human,xu2019denserac,CenterHMR,zanfir2020weakly}. All these approaches, including non-parametric approaches \cite{kolotouros2019cmr, saito2019pifu, saito2020pifuhd, Zeng_2020_CVPR}, assume weak perspective/orthographic projection or pre-define the focal length as a large constant for all images. Additionally, they all assume zero camera rotation, which entangles body rotation and camera rotation. As a result, these camera models have only three parameters, capturing the camera translation relative to the body. Kissos \etal~\cite{kissosECCVW2020} identify this problem and show that replacing focal length with a constant closer to ground truth, \ie $f=5000 \rightarrow 2200$, improves results. Wang et al.~\cite{wang2020viewpoint} demonstrate that jointly estimating camera viewpoints and 3D human poses improves cross-dataset generalization. To show this, they train a 3D pose estimation model on available 3D human pose datasets in a supervised way. However, these datasets are limited in terms of camera viewpoint and focal length diversity, background, and number of subjects. In contrast to the above methods, \methodname generalizes to in-the-wild settings, varied camera intrinsics and viewpoints. \noindent\textbf{Single-image Camera Calibration}. Recent work \cite{Hold-Geoffroy_2018_CVPR,Kendall_2015_ICCV,workman2016horizon,zhu2020single} directly estimates camera parameters from a single image. Zhu et al.~\cite{zhu2020single} also recover the height of some scene objects, \eg~people and cars, together with the camera geometry. They estimate 2D human poses but not 3D bodies. To estimate camera rotations and fields of view, these methods train a neural network to leverage geometric cues in the image without calibration boards or body keypoints. They discretize the continuous space of rotation into bins, casting the problem as a classification task and applying cross-entropy \cite{workman2016horizon} or KL-divergence \cite{Hold-Geoffroy_2018_CVPR,zhu2020single} losses. These losses unfortunately ignore the ordering in target spaces. We devise new losses to retain the concept of distance in the original space, leading to better estimated cameras. \section{Conclusion} \label{conclusion} In this paper, we demonstrate that a) camera geometry can be estimated from images and b) can effectively be leveraged to improve 3D HPS accuracy. Existing methods make simplifying assumptions about the camera: weak-perspective projection, large constant focal length, and zero camera rotation. To go beyond these simple assumptions, we introduce \methodname, the first 3D HPS method that regresses a perspective camera from a single image and employs this to reconstruct 3D human bodies more accurately. Using the estimated camera parameters improves both SOTA camera regression methods and HPS regression methods. We introduce two new datasets, \ie~\methodname-MTP\xspace and \methodname-SYN\xspace, with accurate camera and 3D body annotations to showcase the effect of \methodname through ablation studies and comparison with the SOTA and to foster future research in this area.
\section{Proofs of Theorems~\ref{th:asyn-convergence} and~\ref{th:nr-iter-convergence}} \label{sec:proof-theor-refth} \subsection{Definitions} \label{sec:definitions} First, we review the definition of a block optimal point and describe some useful mathematical objects used in the proofs. \begin{definition} \label{def:block-optimal} A point $z^{\bullet} = (z^{\bullet}_{i})_{i \in \mathcal{V}}$ is \emph{block optimal} for the constrained function $F$ in~\eqref{eq:matrix-cost} if, for all $i$, $z^{\bullet}_{i} = (x^{\bullet}_{i},\{y^{\bullet}_{ij}\},\{w^{\bullet}_{ik}\})$ is a minimizer of the restricted function $F_{i}$ defined in \eqref{eq:sl-problem}~\cite{JakoveticXavierMoura2011}. \end{definition} We denote the sublevel sets of $F$ as $T_{\alpha} = \{z : F(z) \leq \alpha \}$ and the minimum of that function as $F^{\star}$. We also define the sets \begin{eqnarray} \mathcal{Z}^{\star} &=& T_{F^{\star}} \cap \mathcal{Z}\\ \label{eq:X-epsilon} \mathcal{Z}_{\epsilon} &=& \left \{z \in \mathcal{Z} : \mathrm{d}_{\mathcal{Z}^{\star}}(z) < \epsilon\right \}\\ \label{eq:x-epsilon-c} \mathcal{Z}_{\epsilon}^{c} &=& \left \{z \in \mathcal{Z}: \mathrm{d}_{\mathcal{Z}^{\star}}(z) \geq \epsilon\right \}\\ \label{eq:X-epsilon-c-f} \mathcal{\hat Z}_{\epsilon}^{c} &=& \mathcal{Z}_{\epsilon}^{c} \cap T_{F(z^{0})}, \end{eqnarray} where $\mathcal{\hat Z}_{\epsilon}^{c}$ is the set of all points in $\mathcal{Z}$ whose distance to the optimal set $\mathcal{Z}^{\star}$ is larger than $\epsilon$, but also belong to the initial sublevel set of $F$. We will see that the iterates of Algorithm~\ref{alg:asyncronous} belong to~$\mathcal{\hat Z}_{\epsilon}^{c}$ until they reach the absorbing set~$\mathcal{Z}_{\epsilon}$. We also define the \emph{expected improvement function} as \begin{equation} \label{eq:rel-improvement} \rho(z) = {\mathbb E} \left [ F\left(Z(k+1) \right) | Z(k) = z \right] - F(z). \end{equation} It is easy to see that the expected improvement $\rho$ can also be written as \begin{equation} \label{eq:rel-improvement-2} \rho(z) = \sum_{i=1}^{n} \left( F_{i}^{\star}(z) - F(z) \right) P_{i}, \end{equation} where $F_{i}^{\star}(z)$ denotes the minimum of $F_{i}$ in \eqref{eq:sl-problem} over its restricted argument for the current iterate $z$, and $P_{i}$ is the probability of the event ``node~$i$ is awaken at time~$t$'' (we recall the independence of the random variables~$\chi_{t}$ defined in~\eqref{eq:rv}). For notational convenience, we introduce the function \begin{equation} \label{eq:phi} \varphi(z) = - \rho(z), \end{equation} which, by construction of Algorithm~\ref{alg:asyncronous}, is always non-negative. \subsubsection{Auxiliary Lemmas} \label{sec:auxil-lemmas} The analysis is founded on Lemma~\ref{lem:expected-improvement-properties}, where the symmetric of the expected improvement is shown to attain a positive infimum on the set~$\mathcal{\hat Z}_{\epsilon}^{c}$. Lemma~\ref{lem:basic-properties} will be instrumental in the proof of Lemma~\ref{lem:expected-improvement-properties} but contains also some useful properties of function~$F$ and the solution set~$\mathcal{Z}^{\star}$. \begin{lemma}[Basic properties] \label{lem:basic-properties} Let $F$ be defined as in~\eqref{eq:matrix-cost}. Then the following properties hold. \begin{enumerate} \item $F$ is coercive; \item $F^{\star} \geq 0$ and $\mathcal{Z}^{\star} \neq \varnothing$; \item $\mathcal{Z}^{\star}$ is compact; \item If $z^{\bullet}$ is block optimal for $F$ in $\mathcal{Z}$, then it is a global minimizer for $F$ in $\mathcal{Z}$. \end{enumerate} \end{lemma} \begin{proof} \begin{enumerate}[leftmargin=*,noitemsep,topsep=0pt,parsep=0pt,partopsep=0pt] \item By Assumption~\ref{th:connected-assumption} in Section \ref{sec:analysis-asynchr-algor} there is a path from each node~$i$ to some node~$j$ which is connected to an anchor~$k$. Also, we know that, by definition,~$\|y_{ij}\|$ and~$\|w_{ik}\|$ are bounded by the ranges~$d_{ij} < \infty$ and~$r_{ik} < \infty$. So these components of~$z$ will have no effect in the limiting behavior of~$F$. If $\|x_{i}\| \to \infty$ there are two cases: (1) there is at least one edge $t \sim u$ along the path from~$i$ to~$j$ where~$\|x_{t}\| \to \infty$ and~$\|x_{u}\|\not \to \infty$, and so $h_{R_{tu}}(\|x_{t}-x_{u} - y_{tu}\|) \to \infty$; (2) if $\|x_{u}\| \to \infty$ for all~$u$ in the path between~$i$ and~$j$, in particular we have~$\|x_{j}\| \to \infty$ and so~$h_{Ra_{jk}}(\|x_{j}-a_{k} - w_{jk}\|) \to \infty$, and in both cases~$F \to \infty$. Thus,~$F$ is coercive. \item $F$ defined in~\eqref{eq:matrix-cost} is a continuous, convex and real valued function lower bounded by zero; so, the infimum~$F^{\star}$ exists and is non-negative. To prove that this infimum is attained and~$\mathcal{Z}^{\star} \neq \varnothing$, we observe that the set~$\mathcal{Z}$ is a cartesian product of the closed sets~${\mathbb R}^{np}$,~$\{y \in {\mathbb R}^{|{\mathcal E}| p} : y = \{y_{ij}, \|y_{ij}\| \leq d_{ij}, i \sim j \in \mathcal{E}\} \}$, and~$\{w \in {\mathbb R}^{\sum_i |{\mathcal A}_i| p} : w = \{w_{ik}, \|w_{ik}\| \leq r_{ik}, i \in \mathcal{V}, k \in \mathcal{A}_i\} \}$, and thus~$\mathcal{Z}$ is also closed. Now consider a sublevel set~$T_{\alpha}$, which is compact because $F$ is coercive. For some~$\alpha$, the intersection of~$T_{\alpha}$ and~$\mathcal{Z}$ is nonempty and it is known that the intersection of a closed and a compact set is compact~\cite[Corollary to 2.35]{rudin1976principles}, so~$T_{\alpha}\cap\mathcal{Z}$ is compact. As function~$F$ is convex, it is also continuous on the compact set~$T_{\alpha}\cap\mathcal{Z}$ and, by the extreme value theorem, the value~$p = \inf_{z \in T_{\alpha}\cap\mathcal{Z}} F(z)$ is attained. It is obvious that~$\inf_{z \in T_{\alpha}\cap\mathcal{Z}} F(z) = \inf_{z \in \mathcal{Z}} F(z)$. \item $\mathcal{Z}^{\star} = T_{\alpha} \cap \mathcal{Z}$ for~$\alpha = F^{\star}$, and we established in the previous proof that~$ T_{\alpha} \cap \mathcal{Z}$ is compact. \item If~$z^{\bullet}$ is block-optimal, then~$\langle \nabla F_i(z^\bullet_i), z_i-z_i^\bullet\rangle \geq 0$ for all~$i$. When stacking the inequalities for all~$i$, we get~$\langle \nabla{F}(z^\bullet),z-z^\bullet\rangle \geq 0$, which proves the claim.\qedhere \end{enumerate} \end{proof} \begin{lemma} \label{lem:expected-improvement-properties} Let~$\varphi$ be defined as in~\eqref{eq:phi}, taking values on the set~$\mathcal{\hat Z}_{\epsilon}^{c}$ in~\eqref{eq:X-epsilon-c-f}. Then, \begin{enumerate} \item Function $\varphi$ is positive: \begin{equation} \label{eq:expected-improvement-property-1} \varphi(z) > 0, \quad \text{for all } z \in \mathcal{\hat Z}_{\epsilon}^{c}; \end{equation} \item As a consequence, function~$\varphi$ is bounded below by a finite positive value~$a_{\epsilon}$: \begin{equation} \label{eq:expected-improvement-property-2} \inf_{z \in \mathcal{\hat Z}_{\epsilon}^{c}} \varphi(z) = a_{\epsilon}. \end{equation} \end{enumerate} \end{lemma} \begin{proof} We start by proving the first claim, $\varphi(z) > 0$ for all $z \in \mathcal{\hat Z}_{\epsilon}^{c}$. Suppose $\varphi(z) = 0$; then, by Equation~\eqref{eq:rel-improvement-2} $F^{i}(z) = F(z)$, which means that $z$ is block optimal. By Lemma~\ref{lem:basic-properties}, $z$ is also global optimal, which contradicts the fact that $z$ belongs to the set~$\mathcal{\hat Z}_{\epsilon}^{c}$. The second claim follows by observing that $\varphi$ is a sum of real valued functions and, thus, a real valued function, and that $\varphi(z)$ is bounded below by zero in~$ \mathcal{\hat Z}_{\epsilon}^{c}$ and so it has a positive infimum for~$ \mathcal{\hat Z}_{\epsilon}^{c}$. \end{proof} \subsubsection{Theorems} \label{sec:theorems} Equipped with the previous Lemmas, we are now ready to prove the Theorems stated in Section~\ref{sec:analysis-asynchr-algor}. \begin{proof}[Proof of Theorem~\ref{th:asyn-convergence}] We denote the random variable corresponding to the outcome of the $t$-th loop step of Algorithm~\ref{alg:asyncronous} as~$Z^{t}$. The expected value of the expected improvement function~$\rho$ \eqref{eq:rel-improvement} is \begin{equation*} \begin{split} {\mathbb E} \left[ \rho\left(Z^{t}\right) \right] & = {\mathbb E} \left[ {\mathbb E} \left[F \left(Z^{t+1} \right) | Z^{t} \right] \right] - {\mathbb E}\left[ F\left(Z^{t}\right) \right] \\ & = {\mathbb E} \left [F \left( Z^{t+1} \right) \right] - {\mathbb E} \left[F \left( Z^{t} \right) \right], \end{split} \end{equation*} where the second equality comes from the tower property documented, \eg, in Williams~\cite{Williams1991}. This expectation can also be written as \begin{equation*} \begin{split} {\mathbb E} \left[ \rho\left(Z^{t}\right) \right] &= {\mathbb E} \left[ \rho \left(Z^{t} \right) | Z^{t} \in \mathcal{\hat Z}_{\epsilon}^{c} \right] {\mathbb P} \left(Z^{t} \in \mathcal{\hat Z}_{\epsilon}^{c} \right) + {\mathbb E} \left[ \rho \left(Z^{t} \right) | Z^{t} \not \in \mathcal{\hat Z}_{\epsilon}^{c} \right] {\mathbb P} \left(Z^{t} \not \in \mathcal{\hat Z}_{\epsilon}^{c} \right) \\ & \leq {\mathbb E} \left[ \rho \left(Z^{t} \right) | Z^{t} \in \mathcal{\hat Z}_{\epsilon}^{c} \right] {\mathbb P} \left(Z^{t} \in \mathcal{\hat Z}_{\epsilon}^{c} \right). \end{split} \end{equation*} By combining both we get \begin{equation*} {\mathbb E} \left [F \left( Z^{t+1} \right) \right] - {\mathbb E} \left[F \left( Z^{t} \right) \right] \leq {\mathbb E} \left[ \rho \left(Z^{t} \right) | Z^{t} \in \mathcal{\hat Z}_{\epsilon}^{c} \right] {\mathbb P} \left(Z^{t} \in \mathcal{\hat Z}_{\epsilon}^{c} \right) \end{equation*} which can be further bounded using Lemma~\ref{lem:expected-improvement-properties} as \begin{equation*} {\mathbb E} \left [F \left( Z^{t+1} \right) \right] - {\mathbb E} \left[F \left( Z^{t} \right) \right] \leq -a_{\epsilon} p_{t} \end{equation*} where $p_{t} = {\mathbb P} \left(Z^{t} \in \mathcal{\hat Z}_{\epsilon}^{c} \right).$ By expanding the recursion we obtain \begin{equation*} {\mathbb E} \left [F \left( Z^{t+1} \right) \right] \leq -a_{\epsilon}\sum_{k=1}^{t}p_{k} + F\left(z^{0}\right), \end{equation*} which provides a bound on the sum of probabilities~$p_{k}$ when rearranged as \begin{equation*} \sum_{k=1}^{t}p_{k} \leq \frac{F \left( z^{0} \right) - {\mathbb E} \left [F \left( Z^{t+1} \right) \right]}{a_{\epsilon}}. \end{equation*} Taking $t$ up to infinity, we obtain \begin{equation*} \begin{split} \sum_{k=1}^\infty p_k &\leq \frac{F \left( z^{0} \right) - {\mathbb E} \left [F \left( Z^{\infty} \right) \right]}{a_\epsilon} \\ & \leq \frac{F \left( z^{0} \right) - F^\star}{a_\epsilon}. \end{split} \end{equation*} This means that the infinite series of probabilities $p_{k}$ takes on a finite value; by the Borel-Cantelli Lemma, we get ${\mathbb P} \left( Z^{t} \in \mathcal{\hat Z}_{\epsilon}^{c}, \quad i.o. \right) = 0,$ where~$i.o.$ stands for \emph{infinitely often}. This concludes the proof, since this statement is equivalent to the first claim of Theorem~\ref{th:asyn-convergence}. \end{proof} \begin{proof}[Proof of Theorem~\ref{th:nr-iter-convergence}] We consider a variant of the set defined in~\eqref{eq:X-epsilon} \begin{equation*} \mathcal{Y}_\epsilon =T_{F^\star + \epsilon} \cap \mathcal{Z}, \end{equation*} and, similarly to \eqref{eq:x-epsilon-c}--\eqref{eq:X-epsilon-c-f}, its complement in $\mathcal{Z}$, $\mathcal{Y}_\epsilon^c$, and the intersection with the initial sublevel set, $\mathcal{\hat{Y}}_\epsilon^c = \mathcal{Y}_\epsilon^c \cap T_{F(z^{0})}$ Using the same arguments as in Lemma~\ref{lem:expected-improvement-properties}, we can prove that~$\inf_{z \in \mathcal{\hat{Y}}_{\epsilon}^{c}} \varphi (z) = b_{\epsilon}, \quad 0 < b_{\epsilon} < \infty.$ We now define a sequence of points $\tilde z ^{t}$ such that \begin{equation*} \tilde z^{t} = \begin{cases} z^{t} & \text{if } z^{t} \in \mathcal{\hat Y}_{\epsilon}^{c} \\ z^{\star} & \text{otherwise}, \end{cases} \end{equation*} and the sequence of real values~$\rho(\tilde z^{t}) = \begin{cases} \rho(z^{t}) & \text{if } z^{t} \in \mathcal{\hat Y}_{\epsilon}^{c} \\ 0 & \text{otherwise} \end{cases}.$ The expected value of $\rho(\tilde Z^{t})$ is \begin{equation*} {\mathbb E} \left[\rho \left(\tilde Z^{t} \right) \right] = {\mathbb E} \left[ F \left(\tilde Z^{t+1} \right) \right] - {\mathbb E} \left[ F \left(\tilde Z^{t} \right) \right]. \end{equation*} Summing these expectations over time, we get \begin{equation*} \sum_{k=0}^{t-1} {\mathbb E} \left[\rho \left(\tilde Z^{k} \right) \right] = {\mathbb E} \left[ F \left( \tilde Z^{t} \right) \right] - F \left( z^{0} \right). \end{equation*} Taking $t$ to infinity and interchanging integration and summation we obtain \begin{equation*} {\mathbb E} \left[ \sum_{k=0}^{\infty} \rho\left( \tilde Z^{k} \right) \right] = {\mathbb E} \left[ F \left( Z^{\infty} \right) \right] - F\left( z^{0} \right). \end{equation*} From the definition of~$\rho(\tilde z^{k})$ we can write~${\mathbb E} \left[ \sum_{k=0}^{\infty} \rho\left( \tilde Z^{t} \right) \right] \leq {\mathbb E} \left[ K_{\epsilon}(-b_{\epsilon}) \right],$ thus obtaining the result \begin{equation*} {\mathbb E} \left[ K_\epsilon \right] \leq \frac{F (z^{0}) - {\mathbb E} \left[ F \left (Z^{\infty}\right) \right]}{b_\epsilon} \leq \frac{F(z^{0}) - F^\star}{b_\epsilon} \end{equation*} which is a finite number. This completes the proof. \end{proof} \section{Introduction} \label{sec:intro} Outliers can cause large errors in non-robust estimation algorithms and, if other systems use wrong estimates as input, error propagation can invalidate the engineered system's final purpose. Network localization is a key component in many network-centric systems that is prone to such drastic error propagation. It might be taken for granted in most sensor network applications, but in challenging environments network localization is an open and very active research field. We present a new approach addressing the presence of outliers, not by eliminating them from the estimation process, but by weighting them, so they can contribute to the solution, while mitigating the outlier bias on the estimator. {\color{blue} This strategy is strongly rooted in Robust Statistics and Robust Statistical Signal Processing~\cite{zoubir2012robust}.} \subsection{Related work} \label{sec:related-work} Focusing on more related work, several different approaches are available, some performing semidefinite or second-order cone relaxations of the original nonconvex problem like O\u{g}uz-Ekim {\it et al.}~\cite{OguzGomesXavierOliveira2011} or Biswas {\it et al.}~\cite{BiswasLiangTohYeWang2006}. These approaches do not scale well, since the centralized semidefinite program (SDP) or second-order cone program (SOCP) gets very large even for a small number of nodes. In~O\u{g}uz-Ekim {\it et al.}\ the Majorization-Minimization (MM) framework was used with quadratic cost functions to also derive centralized approaches to the sensor network localization problem. Other approaches rely on multidimensional scaling, where the sensor network localization problem is posed as a least squares problem, as in the excellent work of Shang {\it et al.}~\cite{ShangRumiZhangFromherz2004}. Unfortunately, multidimensional scaling is unreliable in large-scale networks with sparse connectivity. Another class of relaxations focuses on the envelopes of terms in the cost function, like { the work in~\cite{soares2014simple}, where we present three algorithms for network localization, one parallel and two asynchronous ones, all with proven convergence. While developed as a relaxation of a maximum-likelihood estimator, \cite{soares2014simple} assumes an additive Gaussian noise measurement model which, as we now show through numerical simulations, does not withstand outlier noise. To address a data model where range measurements are contaminated with Gaussian measurement noise plus outliers, here we cast the localization problem in a broader M-estimation framework and replace the outlier-amplifying quadratic loss considered in~\cite{soares2014simple} by the robust Huber function. A Huber M-estimator was already used for centralized target localization in~\cite{Sun2004}, where the Huber estimation was used in a bootstrapping scheme. The robust problem is also nonconvex and a global optimum is very difficult to find. As in~\cite{soares2014simple}, we opt for a term-to-term relaxation, but unlike~\cite{soares2014simple} the new convex approximated robust problem includes explicit constraints that elicit different solution methods. To find a distributed algorithm with low computational complexity, we put forward a novel representation of the Huber function composed with a norm. We start by developing an optimal first-order synchronous algorithm, similarly to~\cite{soares2014simple}, but for a different, robust problem. As network localization in many applications calls for unstructured, asynchronous time models, we also develop an asynchronous algorithm based on coordinate gradient descent, for which we provide proof of convergence to the optimal cost with probability one. This parallels the result in the unconstrained Gaussian-motivated problem in~\cite{soares2014simple}, but for the robust problem with constraints.} { Some existing references directly tackle the nonconvex maximum-likelihood problem. Due to nonconvexity of the problem, such iterative algorithms can be trapped in one of the multiple local maxima of the cost, and consequently they aspire to no more than finding a local optimum that may be highly sensitive to the algorithm initialization. Here we can point out several approaches, like Costa \textit{et al.}~\cite{CostaPatwariHero2006}, where the authors present a distributed solution inspired in multidimensional scaling, {\color{blue}Ersenghe~\cite{Erseghe2015} that presents a nonconvex ADMM, proven to converge to a stationary point of the ML cost}, and Soares \textit{et al.}~\cite{SoaresXavierGomes2014a}, where the authors reformulate the problem to obtain a Lipschitz gradient cost, decoupling the problem via MM. } {\color{blue} A common approach to initialize the nonconvex maximum-likelihood algorithms is to run a convex relaxation, and refine the result with the nonconvex method. This type of approach can be found in~\cite{piovesan2016}.} Some of the localization fundamental limits were object of thorough study, for example in~\cite{Bletsas2016}, the authors derive closed-form Cram\'{e}r-Rao bounds for multi-modal, multi-agent systems, with remarkably general assumptions, but only covering independent Gaussian noise. The very recent work~\cite{Buehrer2018} notes that the Cram\'{e}r-Rao lower bound considered in previous research assumes a fixed configuration of anchoring nodes, thus not conveying the full picture regarding localization performance; to address this gap, the authors consider the bound as a random variable, and put forward the distribution of the Cram\'{e}r-Rao lower bound under a time of arrival measurement model. The statistical assumptions on this result include, again, normally distributed independent measurement noise. The recent rise of 5G and full-duplex wireless communications opened the door to interesting developments in GPS-denied localization technologies, as in~\cite{Shen2018}, and~\cite{DestinoWymeersch2018}, both presenting fundamental bounds and estimators for position and orientation, once more assuming normally distributed noise. All these approaches assume Gaussian noise contaminating the distance measurements or their squares, while many empirical studies reveal that real data are seldom Gaussian. Despite this, the literature is scarce in robust estimation techniques for network localization. Some of the few approaches rely on identifying outliers from regular data and discarding them. An example is Ihler \textit{et al.}~\cite{IhlerFisherMosesWillsky2005}, which formulates network localization as an inference problem in a graphical model. To approximate an outlier process the authors add a high-variance Gaussian to the Gaussian mixtures and employ non-parametric belief propagation to approximate the solution. The authors assume a particular probability distribution for outlier measurements. In the same vein, Ash \textit{et al.}~\cite{AshMoses2005} employs the EM algorithm to jointly estimate outliers and sensor positions, and Yin {\it et al.} ~\cite{YinZoubirFritscheGustafsson2013} tackled robust {\color{blue} localization in a wireless environment, assuming noise can only enter the process through propagation and not measurement hardware. Also, their method is designed for single source localization using a set of base stations, whereas we deal with the robust network localization problem. Their algorithms, EM- and JMAP-ML, performed} estimation of the position, mixture parameters, and {\color{blue} assumed an} outlier noise model for unknown propagation conditions, again under predetermined probability distributions. {\color{blue} Further, Yin et al.\ assume that several measurements are taken of the same distance. In our setup only one measurement is collected, for each underlying distance between elements.}. Alternatively, methods may perform a soft rejection of outliers, still allowing them to contribute to the solution. O\u{g}uz-Ekim {\it et al.}~\cite{OguzGomesXavierOliveira2011} derived a maximum-likelihood estimator for Laplacian noise and relaxed it to a convex program by linearizing and dropping a rank constraint; they also proposed a centralized algorithm to solve the approximated problem. Such centralized solutions fail to scale with the number of nodes and number of collected measurements. Forero and Giannakis~\cite{ForeroGiannakis2012} presented a robust multidimensional scaling based on regularized least squares, where the regularization term was replaced by a convex function, and solved via MM. The main drawbacks of this approach are the centralized processing architecture and selection of a sensitive regularization parameter. Korkmaz and van der Veen~\cite{KorkmazVeen2009} use the Huber loss~\cite{huber1964} composed with a discrepancy function between measurements and estimated distances, in order to achieve robustness to outliers. The resulting cost is nonconvex, and optimized by means of the Majorization-Minimization technique. The method is distributed, but the quality of the solution depends on the quality of the initialization. {\color{blue} The recent work of Chen and colleagues~\cite{Chen2019} puts forward a new model for LOS/NLOS based on a multiplicative transformation of the additive data model, considering Exponential noise. The authors argue that this type of noise is routinely found in dense urban areas. They also propose a relaxation of their proposed data model to be run distributedly via the ADMM framework---unlike our present work, where we are focusing on the standard noise model-agnostic Huber M-estimator.} Yousefi {\it et al.}~\cite{YousefiChangChampagne2014} { present a distributed gradient algorithm for a Huber discrepancy relaxed problem. This is inspired by the Projection Onto Convex Sets approach of Blatt and Hero~\cite{BlattHero2006} for single source localization, later extended to network localization by Gholami {\it et al.}~\cite{Gholami2011}. We independently developed the same relaxation (see also~\cite{SoaresGomes2014}), but whereas Yousefi {\it et al.}\ optimized it by means of a gradient method, our reformulation and analysis presented here leads to (i) a synchronous algorithm with optimal convergence, and (ii) a provably convergent asynchronous algorithm. These two modes are of paramount importance in real-world implementations, where fast methods clearly have an edge in the presence of time and power constraints, and the unstructured nature of engineered networks calls for asynchronous operation.} \subsection{Contributions} \label{sec:contributions} In applications of large-scale networks there is a need for distributed localization methods with soft rejection of outliers that are simple to implement, scalable and efficient under reasonable outlier noise distributions. Our methods incorporate outliers into the estimation process and do not assume any statistical outlier model. We capitalize on the robust estimation properties of the Huber function but, unlike Korkmaz and van der Veen~\cite{KorkmazVeen2009}, we do not address the nonconvex cost in our proposal, thus removing the initialization uncertainty. Instead, we derive a convex relaxation which numerically outperforms {relevant benchmark} methods, and other natural formulations of the problem. The contributions of this work are: \begin{enumerate} \item We motivate a \textbf{tight convex underestimator} for each term of the robust discrepancy measure for sensor network localization (Section~\ref{sec:conv-under}), and we provide an \textbf{optimality bound} for the convex relaxation. Further, we analyze the tightness of the convex approximation. We also compare it with other discrepancy measures and appropriate relaxations. All measurements contribute to the estimate, although we do not compute specific weights. Numerical simulations illustrate the quality of the convex underestimator (Section~\ref{sec:appr-qual-cvx-underestimator}); \item We develop a \textbf{distributed gradient method}, requiring only simple computations at each node, with \textbf{guaranteed optimal convergence rate} (Sections~\ref{sec:synchr-algor} and~\ref{sec:analysis-synchr-algor}). The keystone of the algorithm is a new representation of the Huber function composed with a norm (Section~\ref{sec:repr-huber-comp}). \item Further, we introduce an \textbf{asynchronous method} for robust network localization, with convergence guarantees (Sections~\ref{sec:asynchr-algor} and~\ref{sec:analysis-asynchr-algor}); \end{enumerate} We benchmark our algorithms {against published methods} in robust network localization, achieving better performance with fewer communications (Section~\ref{sec:numer-exper}). The proposed scheme has optimal convergence rate for a first-order method, in the synchronous case, without degradation of accuracy. It does not require further approximation/relaxation for parallel operation, as it is naturally distributed. Both properties follow from our novel representation of the robust localization problem, as described in Sections~\ref{sec:discrepancy-measure} and~\ref{sec:conv-under}. {\color{blue} The reduced communication cost for the distributed methods is due to having a cost whose gradient is naturally distributed and the only data needed to broadcast to neighbors is the current estimate of each node's position. At each iteration a node only communicates a vector of the same size as the ambient space (${\mathbb R}^2$ or ${\mathbb R}^3$).} \section{Discrepancy measure} \label{sec:discrepancy-measure} The network is represented as an undirected graph~$\mathcal{G} = (\mathcal{V},\mathcal{E})$, where~$\mathcal{V} = \{1,2, \dots, n\}$ indexes the set of sensors with unknown positions and ${\mathcal E}$ is the set of edges. There is an edge $i \sim j \in {\mathcal E}$ between nodes $i$ and $j$ if a pairwise range measurement is available and~$i$ and $j$ can communicate with each other. Anchors have known positions and are collected in the set ${\mathcal A} = \{ 1, \ldots, m \}$; they are not nodes on the graph~$\mathcal{G}$. For each sensor $i \in {\mathcal V}$, we let ${\mathcal A}_i \subset {\mathcal A}$ be the subset of anchors with measured range to node~$i$. The set~$\mathcal{N}_{i}$ collects the neighbor sensor nodes of node~$i$. The element positions belong to~${\mathbb R}^p$, with~$p=2$ for planar networks and $p=3$ for volumetric ones. We denote by $x_i \in {\mathbb R}^p$ the position of sensor $i$, and by $d_{ij}$ the range measurement between sensors $i$ and $j$. The variable $x=\{x_{\mathcal{V}}\}$ concatenates all unknown sensor positions. Anchor positions are denoted by $a_{k} \in {\mathbb R}^{p}$. We let $r_{ik}$ denote the noisy range measurement between sensor $i$ and anchor $k$. { The given data are, thus, the anchor positions~$\{a_{k} \in {\mathbb R}^p \colon k \in \mathcal{A}\}$, noisy ranges between sensors~$\{d_{ij} \colon i \sim j \in \mathcal{E}\}$ and noisy ranges between sensors and anchors~$\{r_{ik} \colon i \in \mathcal{V}, k \in \mathcal{A}_{i}\}$.} We wish to estimate the sensor positions taking into account two types of noise: (1) regular Gaussian noise, and (2) outlier-induced noise. Outlier measurements are non-Gaussian and will heavily bias the solutions of the standard maximum-likelihood estimator for sensor positions with additive independent and identically distributed (i.i.d.) Gaussian noise, since their magnitude will be amplified by the squares in each outlier term. Robust estimation theory provides some alternatives to perform soft rejection of outliers, namely, replacing each quadratic loss above with the~$L_{1}$ loss or the Huber loss, defined as \begin{equation} \label{eq:huber-loss} h_{\delta}(u) = \begin{cases} u^{2} & \text{if } |u| \leq \delta,\\ 2\delta|u|-\delta^{2} & \text{if } |u| \geq \delta. \end{cases} \end{equation} The Huber loss achieves the best of two worlds: it is robust for large values of the argument --- like the~$L_{1}$ loss --- and for reasonable noise levels it behaves like a quadratic, thus leading to the maximum-likelihood estimator adapted to regular noise{\color{blue}~\cite{zoubir2012robust}}. \begin{figure}[tb] \centering \subfigure[For Gaussian noise,~$g_{Q}(x)$, evidences steep tails acting as outlier amplifiers. The loss~$g_{|\cdot|}(x)$, adapted to impulsive noise, fails to model the Gaussianity of low-power operating noise. The Huber loss~{$g_{R}(x)$} combines robustness to high-power outliers and adaptation to regular noise.] {\includegraphics[width=0.47\columnwidth]{nonconvex} \label{fig:nonconvex}} \hfill \subfigure[All functions~$f$ are the convex envelopes and, thus, the best convex approximations of the functions~$g$ in Figure~\ref{fig:nonconvex}. The convexification is performed by restricting the arguments of~$g$ to be nonnegative.] {\includegraphics[width=0.47\columnwidth]{convexified} \label{fig:convexified}} \caption{The different cost functions considered in this paper, applied to a 1D problem with one node and one anchor. The anchor sits at the origin, and the node at 0.4, so~$d=0.4$ in the absence of noise. The scalar variable for the node position is denoted as~$x$. The ML estimator for independent white Gaussian noise is~$g_{Q}(x) = (|x| - d)^{2}$, while the ML estimator considering Laplacian noise is~$g_{|\cdot|}(x) = ||x| - d|$. The Huber M-estimator is defined by~{$g_{R}(x) = h_{\delta = 0.8}(|x| - d)$}.} \end{figure} Figure~\ref{fig:nonconvex} depicts the different {nonconvex costs~$g_{Q}$, $g_{|\cdot|}$, $g_{R}$ for Gaussian, $L_{1}$ and Huber losses, respectively, evaluated for a one-dimensional problem with one node and one anchor}. We can observe in this simple example the main properties of the different cost functions, in terms of adaptation to low/medium-power Gaussian noise and high-power outlier spikes. Using~\eqref{eq:huber-loss} we can write our robust optimization problem as \begin{equation} \label{eq:snlOptProb} \operatornamewithlimits{minimize}_{x} g_{R}(x) \end{equation} where \begin{align} \label{eq:huberDist} g_{R}(x) = & \sum _{i \sim j} \frac 12 h_{D_{ij}}(\|x_{i} - x_{j}\| - d_{ij}) + \sum_{i} \sum_{k \in \mathcal{A}_{i}} \frac 12 h_{R_{ik}}(\|x_{i}-a_{k}\| - r_{ik}) \end{align} and $D_{ij}$, $R_{ik}$ denote the chosen Huber radii for inter-node and node-anchor terms, which will be discussed in Section \ref{sec:numer-exper}. This function is nonconvex and, in general, difficult to minimize. We shall provide a convex underestimator that tightly bounds each term of~\eqref{eq:huberDist}, thus leading to better estimation results than other relaxations such as~\cite{SimonettoLeus2014}. {\color{blue} The expected enhanced performance of our relaxation for the estimation under outlier noise comes naturally from the fact that our formulation directly accounts for it, whereas the one in~\cite{SimonettoLeus2014} does not. The mismatch between the data model and data distribution can strongly impact the quadratic terms considered in the ML estimator for Gaussian noise. A thorough study of the impact of robust statistics in Signal Processing can be found in~\cite{zoubir2012robust}.} \section{Convex underestimator} \label{sec:conv-under} To convexify~$g_{R}$ we can replace each term by its convex hull\footnote{The convex hull of a function~$\gamma$ is its best possible convex underestimator, defined as $ \text{conv } \gamma(x) = \sup\left \{ \eta(x) \; : \; \eta \leq \gamma, \; \eta \text{ is convex} \right \} $. It is hard to determine in general~\cite{UrrutyMarechal1993}.}, as depicted in Figure~\ref{fig:convexified} { following the same approach as in Falk and Soland~\cite{FalkSoland1969} or, more recently, in our paper~\cite{soares2014simple}}. Here, we observe that the high-power behavior is maintained, whereas the medium/low-power is only altered in the convexified area. We define the convex costs by composing any of the convex losses with a non-decreasing function~{$(\xi)_{+} = \max \{ 0, \xi\}$ which, in turn, operates on the discrepancies~$\|x_{i} - x_{j}\| - d_{ij}$, and~$\|x_{i} - a_{k}\| - r_{ik}$. As~$\left ( \|x_{i} - x_{j}\| - d_{ij} \right )_{+}$ and~$\left ( \|x_{i} - a_{k}\| - r_{ik} \right )_{+}$} are non-decreasing and each one of the { functions~$h_{D_{ij}}$ and~$h_{R_{ik}}$ is convex, then their sum \begin{equation}\label{eq:huber-cvx} \begin{aligned} f_{R}(x) = &\sum _{i \sim j} \frac 12 h_{D_{ij}}\left(\left(\|x_{i} - x_{j}\| - d_{ij}\right)_{+} \right) + \sum_{i} \sum_{k \in \mathcal{A}_{i}} \frac 12 h_{R_{ik}}\left(\left(\|x_{i}-a_{k}\| - r_{ik}\right)_{+} \right) \end{aligned} \end{equation} is also convex, for any positive value of parameters~$D_{ij}$ for each edge~$i \sim j$, and~$R_{ik}$ for each node-anchor pair~$i \in \mathcal{V}, k \in \mathcal{A}_{i}$.} The cost function~\eqref{eq:huber-cvx} also appears in Yousefi {\it et al.}~\cite{YousefiChangChampagne2014} via a distinct reasoning. The striking difference with respect to Yousefi {\it et al.}~is how the cost~\eqref{eq:huber-cvx} is exploited here to generate distributed solution methods where all nodes work in parallel {with optimal first-order convergence speed}, for the synchronous algorithm, or randomly awaken, for the asynchronous algorithm, {with proven convergence}. \subsection{Approximation quality of the convex underestimator} \label{sec:appr-qual-cvx-underestimator} We now study the quality of the convexified estimator using~(\ref{eq:huber-cvx}). The quadratic problem was addressed in~\cite{soares2014simple}. We summarize the results here for the reader's convenience and extend them to the $L_1$ and Huber convex problems. The optimal value of the cost {for any nonconvex~$g$ in $\{g_{Q}, g_{|\cdot|}, g_{R}\}$}, denoted by~$g^{\star}$, is bounded by~$f^{\star} = f(x^{\star}) \leq g^{\star} \leq g(x^{\star})$, where~$x^{\star}$ is the minimizer of the convex underestimator~$f$ { in~$\{f_{Q},f_{|\cdot|},f_{R}\}$, respectively}, and~$f^{\star} = \min_{x} f(x)$, is the minimum of function~$f$. A bound for the optimality gap is, thus,~$ g^{\star} - f^{\star} \leq g(x^{\star}) - f^{\star}$. It is evident that in all cases (quadratic, absolute value, and Huber)~$f$ is equal to~$g$ when~$\|x_{i} - x_{j}\| \geq d_{ij}$ and~$\|x_{i}-a_{k}\| \geq r_{ik}$. When the function terms differ, say, for edges\footnote{The same reasoning applies to anchor terms.} in a subset~$i \sim j \in \mathcal{E}_{2} \subset \mathcal{E}$, we necessarily have~$\left(\|x_{i} - x_{j}\| - d_{ij}\right)_{+} = 0$, leading to\footnote{Note that the minimizers in these expressions are not necessarily identical, but for simplicity we have used a common notation for the three losses.} the bounds $ g_{Q}^{\star} - f_{Q}^{\star} \leq \sum_{i \sim j \in \mathcal{E}_{2}} \frac 12 \left(\|x_{i}^{\star} - x_{j}^{\star}\| - d_{ij} \right)^{2}$ for the quadratic loss, $g_{| \cdot |}^{\star} - f_{| \cdot |}^{\star} \leq \sum_{i \sim j \in \mathcal{E}_{2}} \frac 12 \left| \|x_{i}^{\star} - x_{j}^{\star}\| - d_{ij}\right|$ for the absolute value loss, and \begin{equation} \label{eq:bound-tighth} g_{R}^{\star} - f_{R}^{\star} \leq \sum_{i \sim j \in \mathcal{E}_{2}} \frac 12 h_{D_{ij}}\left(\|x_{i}^{\star} - x_{j}^{\star}\| - d_{ij} \right) \end{equation} for the Huber loss. These bounds are an optimality gap guarantee available after the convexified problem is solved; they tell us how low our estimates can bring the original cost. Our bounds are tighter than the ones available \textit{a priori} from applying~\cite[Th. 1]{udellBoyd2014}, which are~$g_{Q}^{\star} - f_{Q}^{\star} \leq \sum_{i \sim j} \frac 12 d_{ij}^{2}$ for the quadratic case,~$g_{| \cdot |}^{\star} - f_{| \cdot |}^{\star} \leq \sum_{i \sim j} \frac 12 d_{ij}$ for the absolute value problem, and \begin{equation} \label{eq:udellBoydh} g_{R}^{\star} - f_{R}^{\star} \leq \sum_{i \sim j} \frac 12 h_{D_{ij}}\left( d_{ij} \right), \end{equation} for the relaxation presented in this paper. \begin{table}[t] \caption{Bounds on the optimality gap for a 1D example.} \label{tab:bounds} \centering \begin{tabular}[h]{@{}p{1.5cm}c|ccc@{}} \toprule & \textbf{True gap $g^{\star} - f^{\star}$} & \textbf{Proposed bound} & \textbf{\emph{A priori} bound \cite{udellBoyd2014}}\\\midrule Quadratic $g_{Q}^{\star} - f_{Q}^{\star}$ &3.7019&5.5250&11.3405\\ \rule{0pt}{4ex} Absolute value $g_{| \cdot |}^{\star} - f_{| \cdot |}^{\star}$ &1.1416&1.1533&3.0511\\ \rule{0pt}{4ex} Robust Huber $g_{R}^{\star} - f_{R}^{\star}$ &0.1784&0.1822&0.4786\\ \bottomrule \end{tabular} \end{table} We show simulation results for a one-dimensional example averaged over 500 Monte Carlo trials in Table~\ref{tab:bounds}. The true average gap $g^{\star} - f^{\star}$ is also listed. In the Monte Carlo trials {we obtained a baseline noisy range measurement as $r_{k} = | \|x^{\star} - a_{k}\| + \nu_{k} |$, where~$x^{\star}$ is the true position and $\nu_{k}, k \in \mathcal{A}$ is a zero-mean (i.i.d.) Gaussian random variable with $\sigma = 0.04$}. One of the measurements is then corrupted by a zero-mean random variable with~$\sigma = 4$, modeling outlier noise. These results show the tightness of the convexified function under such noisy conditions and also demonstrate the looseness of the \textit{a priori} bound in~\eqref{eq:udellBoydh}. Not only do we use a robust dissimilarity, but we also add a smaller optimality gap by using this particular surrogate. In the end, the Huber-based approximation will be tighter, thus conferring robustness to the estimator, as pointed out by Destino and Abreu~\cite{DestinoAbreu2011}. \section{Distributed and robust sensor network localization} \label{sec:distr-robust-sens} We construct our algorithm by reformulating~\eqref{eq:huber-cvx} as the infimum of a sum of Huber functions composed with a norm, and then by rewriting each of the terms with an alternative representation that uncovers the possibility of a naturally distributed, optimal method for estimating the unknown sensor positions. { More specifically, we will (A) reformulate the problem using a novel representation of the Huber function composed with a norm, (B) we will find the closed-form gradient for the new convex cost, and (C) we will verify that this gradient is Lipschitz continuous, minimized over a convex set. The latter is a key prerequisite for deriving a first-order method with optimal convergence rate.} For the first step, we invoke that each term of the first summation of~\eqref{eq:huber-cvx}, corresponding to the edge~$i \sim j$, has a variational representation \begin{equation} \label{eq:cvx-term-norm} h_{D_{ij}}((\|x_{i}-x_{j}\| - d_{ij})_{+}) =\inf_{\|y_{ij}\|\leq d_{ij}} h_{D_{ij}}(\|x_{i}-x_{j}-y_{ij}\|), \end{equation} where~$y_{ij} \in {\mathbb R}^{p}$ is an optimization variable. The result~\eqref{eq:cvx-term-norm} follows from the variational representation\footnote{This representation is related to the one used in \cite{OguzGomesXavierStosicOliveira2014}, to describe each one of the nonconvex terms in the ML estimator for Gaussian noise:~$(\|x_{i}-x{j}\| - d_{ij}) = \inf_{\|y\| = d_{ij}} \|x_i-x_j -y\|$.}~$(\|x_{i}-x{j}\| - d_{ij})_+ = \inf_{\|y\| \leq d_{ij}} \|x_i-x_j -y\|$ already explored in previous work~\cite{soares2014simple} and the fact that the Huber function~$h_{D_{ij}}$ is monotonic on the positive argument in~${\mathbb R}_+$. \subsection{Alternative representation of the Huber function composed with a norm} \label{sec:repr-huber-comp} Using the variational representation from~\eqref{eq:cvx-term-norm}, we can rewrite the convex unconstrained minimization Problem~\eqref{eq:huber-cvx} as the constrained problem \begin{equation} \label{eq:cvx-aux-variables} \begin{aligned} \operatornamewithlimits{minimize}_{x,y,w} &\sum_{i \sim j}\frac 12 h_{D_{ij}}(\|x_{i}-x_{j}-y_{ij}\|) + \sum_{i} \sum_{k \in \mathcal{A}_{i}} \frac 12 h_{R_{ik}}(\|x_{i}-a_{k}-w_{ik}\|)\\ \operatornamewithlimits{\text{subject to}} &\left\{\|y_{ij}\| \leq d_{ij}, i \sim j\right\}, \; \left\{\|w_{ik}\| \leq r_{ik}, i \in \mathcal{V}, k \in \mathcal{A}_{i}\right\} , \end{aligned} \end{equation} where we have introduced $y = \{y_{ij} : i \sim j\}$ and~$w = \{w_{ik} : i \in \mathcal{V}, k \in \mathcal{A}_{i}\}$. We put forward a new representation of the Huber function in~\eqref{eq:huber-loss}, when composed with the norm of a vector,~{$\psi_{\delta}(u) = h_{\delta}(\|u\|)$}, {\color{blue} in the following proposition.} \begin{proposition}[Representation of the Huber function composed with a norm] \label{prop:huber-composed} {\color{blue} Let $u \in {\mathbb R}^q$, be a vector. Then, the composition of the Huber function with Huber radius~$\delta$ with the Euclidean norm of $u$, $\psi_{\delta}(u) = h_{\delta}(\|u\|)$ can be written as} \begin{equation} \label{eq:huber-norm} \psi_{\delta}(u) = \|u\|^{2} - \mathrm{d}^{2}_{\delta}(u), \end{equation} {\color{blue} where we denote by~$\mathrm{d}^{2}_{\delta}(u)$ the squared Euclidean distance of vector~$u$ to a ball of radius~$\delta$ centered at the origin.} \end{proposition} \begin{proof} {\color{blue} If the norm of the vector is smaller than the the Huber radius $\delta$, the distance of the vector to the ball centered in the origin with radius $\delta$ is zero, and thus we recover the first branch in~\eqref{eq:huber-loss}, $ h_{\delta}(\|u\|) = \|u\|^2 \text{ if } \|u\| \leq \delta$. Otherwise, if we have that $ \|u\| \geq \delta$, then the squared distance to the disk has a closed form, that is the norm of $u$ minus the radius of the disk, $\delta$. So, the squared distance to the disk is $\mathrm{d}^{2}_{\delta}(u) = \|u\|^2 -2 \delta \|u\| + \delta^2$. As we are subtracting $\mathrm{d}^{2}_{\delta}(u)$ to $\|u\|^2$ we obtain the second branch of~\eqref{eq:huber-loss}, and, thus,~\eqref{eq:huber-norm}.} \end{proof} We use this representation to rewrite the cost in problem~\eqref{eq:cvx-aux-variables} as \begin{equation*} \begin{aligned} \sum_{i \sim j} \frac 12 \psi_{D_{ij}}(x_{i}-x_{j}-y_{ij}) + \sum_{i \in \mathcal{V}} \sum_{k \in \mathcal{A}_{i}}\frac 12 \psi_{R_{ik}}(x_{i}-a_{k}-w_{ik}), \end{aligned} \end{equation*} or, in abbreviated form, \begin{equation} \label{eq:huber-cart-prod} \frac 12 \psi_{\mathcal{D}}(Ax-y) + \frac 12 \psi_{\mathcal{R}}(Mx - \alpha -w), \end{equation} {where~$\mathcal{D}$ is a Cartesian product of balls \begin{align} \mathcal{D} & = \prod\limits_{i \sim j} \mathcal{D}_{ij}, & \mathcal{D}_{ij} & = \{x : \|x\| \leq D_{ij}\}, \end{align} and similarly for node-anchor terms \begin{align} \mathcal{R} & = \prod\limits_{i \in \mathcal{V}, k \in \mathcal{A}_{i}} \mathcal{R}_{ik}, & \mathcal{R}_{ik} & = \{x : \|x\| \leq R_{ik}\}. \end{align} For compactness we have overloaded the notation for $\psi$ in \eqref{eq:huber-cart-prod}; when indexed by a vector of concatenated coordinates and a Cartesian product of balls, it is shorthand for the sum of contributions \eqref{eq:huber-norm} for each coordinate and for the radius of the ball in the corresponding element of the Cartesian product. The squared distance function indexed by concatenated coordinates and a Cartesian product, $\mathrm{d}^{2}_{\mathcal{D}}(\cdot)$ or $\mathrm{d}^{2}_{\mathcal{R}}(\cdot)$, is also used below and similarly defined in terms of the regular squared distance in \eqref{eq:huber-norm}.} Matrix $A = C \otimes I$ in~(\ref{eq:huber-cart-prod}) is the Kronecker product of the arc-node incidence matrix\footnote{The arc-node incidence matrix $C$ is a $|\mathcal{E}| \times |\mathcal{V}|$ matrix. The rows and the columns of $C$ are indexed by $\mathcal{E}$ and $\mathcal{V}$, respectively. The $(e,i)$-entry of $C$ is 0 if node $i$ and edge $e$ are not incident, and otherwise it is 1 or -1 according to the direction agreed on the operation onset by the two nodes involved in edge~$e$.}~$C$ associated with the graph~$\mathcal{G}$, and the identity matrix with dimension of the ambient space (usually, 2 or 3). The product $Ax$ thus concatenates coordinate differences $x_{i}-x_{j}$ as required by the ordering of elements chosen for vector $y$. On the second term of \eqref{eq:huber-cart-prod} $M$ is a selection matrix that concatenates coordinates $x_{i}$ according to the ordering of elements chosen for vector $w$, whereas vector $\alpha$ concatenates anchor coordinates $a_{k}$ with the same criterion. Consider the aggregation of variables~$z = (x,y,w)$; we define the constraint set in~\eqref{eq:cvx-aux-variables} as \begin{equation} \label{eq:constraint-set} \mathcal{Z} = \{(x,y,w) : \|y_{ij}\| \leq d_{ij}, i \sim j, \|w_{ik}\| \leq r_{ik}, k \in \mathcal{A}_{i}, i \in \mathcal{V}\}, \end{equation} and the cost as \begin{equation} \label{eq:matrix-cost} {F(z) := \frac 12 \psi_{\mathcal{D}}(Bz) + \frac 12 \psi_{\mathcal{R}}(Ez-\alpha),} \end{equation} where~$B = [A\quad -I \quad 0]$ and~$E = [M \quad 0 \quad -I]$. With this notation,~\eqref{eq:cvx-aux-variables} becomes \begin{equation} \label{eq:cvx-matrix-z} \begin{aligned} \operatornamewithlimits{minimize} & \quad F(z)\\ \operatornamewithlimits{\text{subject to}} & \quad z \in \mathcal{Z}. \end{aligned} \end{equation} { Problem~\eqref{eq:cvx-matrix-z} is convex and, as we will see next, can be solved by a first-order method with optimal convergence rate, namely, FISTA, proposed by Beck and Teboulle~\cite{BeckTeboulle2009}. The required properties for FISTA are: (1) Lipschitz continuous gradient of the cost~$F(z)$, (2) known Lipschitz constant, and (3) an easy way to compute the proximal operator of the balls' indicator function, as described in the following sections.} \subsection{Gradient} \label{sec:gradient} To compute the gradient of the cost in~\eqref{eq:matrix-cost}, we need the gradient of the squared distance to a convex set --- a known result from convex analysis (see~\cite[Prop. X.3.2.2, Th. X.3.2.3]{UrrutyMarechal1993}). Let us denote the squared distance to a convex set~$C$ as $ \phi(u) = \frac 12 \mathrm{d}^{2}_{C}(u)$. Then, from convex analysis, we know that~$\phi$ is convex, differentiable, and its gradient is $ \nabla \phi (u) = u - \mathrm{P}_{C}(u)$, where~$\mathrm{P}_{C}(u)$ is the orthogonal projection of point~$u$ onto the set~$C$,~$\mathrm{P}_{C}(u) = \operatornamewithlimits{argmin}_{y \in C} \|u-y\|$. Knowing this, we can compute the gradient of~\eqref{eq:huber-norm} as~$\nabla \psi_{R}(u) = 2u-2(u-\mathrm{P}_{R}(u)) = 2 \mathrm{P}_{R}(u)$, and the gradient of~\eqref{eq:matrix-cost} as \begin{equation} \nabla F (z) = \frac 12 B^{\top} \nabla \psi_{\mathcal{D}}(Bz) + \frac 12 E^{\top} \nabla \psi_{\mathcal{R}}(Ez-\alpha)\label{eq:gradient} = B^{\top} \mathrm{P}_{\mathcal{D}}(Bz) + E^{\top} \mathrm{P}_{\mathcal{R}}(Ez-\alpha). \end{equation} Above, to project a vector of concatenated coordinates onto a Cartesian product of balls amounts to concatenating the projection of each coordinate onto the corresponding ball. This is used explicitly in the given summary of the synchronous Algorithm~\ref{alg:synchronous}. \subsection{Lipschitz constant} \label{sec:lipschitz-constant} { Finding a differentiable function such as~$F(z)$, whose gradient admits a Lipschitz constant~$L_{F}$ such that \begin{equation*} \| \nabla F(z_{1}) -\nabla F(z_{2}) \| \leq L_{F} \|z_{1} - z_{2}\|, \text{ for all } z_{1}, z_{2}, \end{equation*} means that we have access to~$L_F$ an upper bound to the curvature of the convex function~$F(z)$. The optimal gradient method FISTA~\cite{BeckTeboulle2009} can be used once this upper bound is known. We will now obtain such an upper bound~$L_{F}$ with the favourable property that the network can compute it in a distributed way where the complexity per node does not increase as the network grows.} It is widely known that projections onto convex sets shrink distances~\cite{Phelps1957}, {\it i.e.}, \begin{equation} \label{eq:project-shrink-dist} \|\mathrm{P}_{C}(u) - \mathrm{P}_{C}(v)\| \leq \|u - v\|. \end{equation} Using this result, we can compute a Lipschitz constant for~\eqref{eq:gradient}. First, let us focus on the inter-node term in~\eqref{eq:gradient}: \begin{equation*} \begin{split} \|B^{\top}\mathrm{P}_{\mathcal{D}}(Bu) - B^{\top}\mathrm{P}_{\mathcal{D}}(Bv)\| &\leq \mtxnorm{B}\|\mathrm{P}_{\mathcal{D}}(Bu) - \mathrm{P}_{\mathcal{D}}(Bv)\|\\ & \leq \mtxnorm{B}\|Bu-Bv\| \leq \mtxnorm{B}^{2}\|u-v\| \\ &= \lambda_{\mathrm{max}}(BB^{\top})\|u-v\|, \end{split} \end{equation*} {where~$\mtxnorm{B}=\sigma_{\mathrm{max}}(B)=\sqrt{\lambda_{\max}(BB^\top)}$ is the matrix 2-norm of~$B$.} The first inequality follows from the Cauchy-Schwarz inequality, the second from \eqref{eq:project-shrink-dist}, and the final one from Cauchy-Schwarz again. The maximum eigenvalue of~$BB^{\top}$ can be bounded by \begin{equation}\label{eq:inter-node-lips} \begin{split} \lambda_{\mathrm{max}}(BB^{\top}) & = \lambda_{\mathrm{max}}\left( \begin{bmatrix} A& -I& 0 \end{bmatrix} \begin{bmatrix} A^{\top}\\ -I \\ 0 \end{bmatrix} \right)\\ & = \lambda_{\mathrm{max}}(AA^{\top} +I) \\ &= (1+ \lambda_{\mathrm{max}}(AA^{\top}))\\ & = (1+ \lambda_{\mathrm{max}}(L)) \\ & \leq (1+ 2\delta_{\mathrm{max}}), \end{split} \end{equation} where~$L$ is the graph Laplacian matrix, and~$\delta_{\max}$ is the maximum node degree of the network\footnote{To characterize the network we use the concepts of \emph{node degree}~$k_{i}$, the number of edges that touch a node~$v$. Maximum node degree is the maximum of this number for all nodes in the network, , and \emph{average node degree}~$\langle k \rangle = 1/n \sum_{i=1}^{n}k_{i}$.}. A proof of the inequality~$\lambda_{\mathrm{max}}\leq 2\delta_{\mathrm{max}}$ is given in Bapat~\cite{Bapat2010}. In the same way, for the node-anchor terms, we have \begin{equation*} { \|E^{\top}\mathrm{P}_{\mathcal{R}}(Eu) - E^{\top}\mathrm{P}_{\mathcal{R}}(Ev)\|} \leq \mtxnorm{E}^{2}\|u-v\| = \lambda_{\mathrm{max}}(EE^{\top})\|u-v\| \end{equation*} and the constant can be upper-bounded by \begin{equation} \label{eq:node-anchor-lips} \begin{split} \lambda_{\mathrm{max}}(EE^{\top}) & = \lambda_{\mathrm{max}}\left( \begin{bmatrix} M 0 -I \end{bmatrix} \begin{bmatrix} M^{\top}\\ 0\\-I \end{bmatrix} \right) \\ & = \lambda_{\mathrm{max}}\left(MM^{\top}+I\right)\\ &\leq \left(1+\lambda_{\mathrm{max}}(MM^{\top})\right)\\ & \leq \left(1 + \max_{i \in \mathcal{V}} |\mathcal{A}_{i}|\right), \end{split} \end{equation} where the last inequality can be deduced from the structure of matrix~$M$: there are identity matrices for each node~$i$ for as many anchor measurements it collected. From~\eqref{eq:inter-node-lips} and~\eqref{eq:node-anchor-lips} we can see that a Lipschitz constant for~\eqref{eq:matrix-cost} is \begin{equation} \label{eq:lipschitz} L_{F} = 2 + 2\delta_{\mathrm{max}} + \max_{i \in \mathcal{V}} |\mathcal{A}_{i}|. \end{equation} We stress that this constant is small, does not depend on the size of the network, {and can be computed in a distributed way, for example by flooding}~\cite{chung1997spectral} \subsection{Synchronous algorithm} \label{sec:synchr-algor} The gradient in~\eqref{eq:gradient} and its Lipschitz continuity, with the constant in~\eqref{eq:lipschitz}, enable us to use Nesterov's optimal gradient method~\cite{Nesterov1983, Nesterov2004}, further developed by Beck and Teboulle \cite{BeckTeboulle2009}. Firstly, we must write the problem as an unconstrained minimization using an indicator function~$I_{\mathcal{Z}}(u)= \begin{cases} 0 \qquad \text{if } u \in \mathcal{Z}\\ +\infty \quad \text{otherwise } \end{cases} $, and incorporate the constraints in the problem formulation { to obtain the problem} $ {\operatornamewithlimits{minimize}_{z} F(z) + I_{\mathcal{Z}}(z).}$ Then we perform the proximal minimization of the unconstrained problem { using FISTA. For completeness, we outline FISTA, whose optimality convergence proofs can be found in the aforementioned work of Beck and Teboulle~\cite{BeckTeboulle2009}. For any initialization~$z[0] = z[-1]$ and for~$t\geq 1$ the FISTA algorithm performs the following iterations:} \begin{equation*} \begin{split} {\zeta} & {= z[t-1] + \frac{t-2}{t+1} \big( z[t-1] - z[t-2] \big )}, \\ {z[t] } & {= \text{Prox}_{I_{\mathcal{Z}}} \big ( \zeta - \frac{1}{L_{F}}\nabla F(\zeta) \big )}, \end{split} \end{equation*} {where~$\text{Prox}_{I_{\mathcal{Z}}}(\cdot)$ is the proximal operator of function~$I_{\mathcal{Z}}$, that, for the present case, can be computed as} \begin{equation*} \begin{split} {\text{Prox}_{I_{\mathcal{Z}}}(z)} &{ = \operatornamewithlimits{argmin}_{u} \left ( I_{\mathcal{Z}}(u) + \frac 12 \|u-z\|^{2} \right )}\\ &{ = \mathrm{P}_{\mathcal{Z}}(z),} \end{split} \end{equation*} {where~$\mathrm{P}_{\mathcal{Z}}(z)$ is the projection of point~$z$ onto set~$\mathcal{Z}$.} The result for our reformulation is shown in Algorithm~\ref{alg:synchronous}, {where iteration counts are given in square brackets.} \begin{algorithm}[tb] \caption{Synchronous method: STRONG} \label{alg:synchronous} \begin{algorithmic}[1] \REQUIRE $L_{F}; \{d_{ij}, \: D_{ij} : i \sim j \in \mathcal{E}\}; \{r_{ik}, \: R_{i,k} : i \in \mathcal{V}, k \in \mathcal{A}_{i}\}$; \ENSURE $\hat x$ \STATE let $ \mathcal{Y}_{ij} = \{y \in {\mathbb R}^{p}: \|y\| \leq d_{ij}\} $; and $ \mathcal{W}_{ik} = \{w \in {\mathbb R}^{p}: \|w\| \leq r_{ik}\} $; \STATE each node~$i$ chooses and broadcasts arbitrary~$x_{i}{[0]} = x_{i}{[-1]}$; \STATE set $y_{ij}{ [0]} = \mathrm{P}_{\mathcal{Y}_{ij}}\left(x_{i}{ [0]} -x_{j}{ [0]}\right)$; and $w_{ik}{ [0]} = \mathrm{P}_{\mathcal{W}_{ik}}\left(x_{i}{ [0]} -a_{k}\right)$; \STATE $t = 0$; \WHILE{some stopping criterion is not met, each node~$i$} \STATE $t = t+1$; \STATE $\xi_{i} = x_{i}{ [t-1]} + \frac{t-2}{t+1} \left(x_{i}{ [t-1]} - x_{i}{ [t-2]} \right)$;\label{alg:xi} \STATE broadcast~$\xi_{i}$ to all neighbors { and listen for neighbors' $\xi_{j}$}; \FOR{all~$j$ in the neighbor set~$\mathcal{N}_{i}$} \STATE $\upsilon_{ij} = y_{ij}{ [t-1]} + \frac{t-2}{t+1} \left(y_{ij}{ [t-1]} - y_{ij}{ [t-2]} \right)$;\label{alg:upsilon} \STATE $ y_{ij}{ [t]} = \mathrm{P}_{\mathcal{Y}_{ij}} \left( \upsilon_{ij} + \frac{1}{L_{F}} \mathrm{P}_{\mathcal{D}_{ij}}\left(\xi_{i}-\xi_{j} - \upsilon_{ij}\right)\right) $; \ENDFOR \FOR{all~$k$ in the anchor set~$\mathcal{A}_{i}$} \STATE $ \omega_{ik} = w_{ik}{ [t-1]} + \frac{t-2}{t+1} \left(w_{ik}{ [t-1]} - w_{ik}{ [t-2]} \right)$;\label{alg:omega} \STATE $w_{ik}{ [t]} = \mathrm{P}_{\mathcal{W}_{ik}}\left( \omega_{ik}+\frac{1}{L_{F}}\mathrm{P}_{\mathcal{R}_{ik}}(\xi_{i}-a_{ik}-\omega_{ik})\right) $; \ENDFOR \STATE $ {\nabla F_{i}} = \sum_{j \in \mathcal{N}_{i}} \mathrm{P}_{\mathcal{D}_{ij}}(\xi_{i}-\xi_{j}-\upsilon_{ij}) + \sum_{k \in \mathcal{A}_{i}} \mathrm{P}_{\mathcal{R}_{ik}}\left(\xi_{i}-a_{k}-\omega_{ik}\right);$ \STATE $ x_{i}{ [t]} =\xi_{i} - \frac{1}{L_{F}}{ \nabla F_{i}} $;\label{alg:x} \ENDWHILE \RETURN $\hat x_{i} = x_{i}{ [t]}$ \end{algorithmic} \end{algorithm} We denote the entries of~$\nabla F$ regarding variable~$x_{i}$ as~${\nabla F_{i}}$. Each node~$i$ will update: \begin{itemize} \item{the current estimate of its own position,} \item{each one of the~$y_{ij}$ for all the incident edges, and} \item{the anchor terms~$w_{ik}$, if any.} \end{itemize} In step~\ref{alg:xi} we have the extrapolation step for each~$x_{i}$, whereas in steps~\ref{alg:upsilon} and~\ref{alg:omega} we can see the update of the extrapolation steps for each one of the edge variables~$y_{ij}$, and~$w_{ik}$, respectively. {\color{blue} In terms of computational complexity at each node, the operations are multiplications and summations, and thus do not demand intensive calculus and the corresponding battery drain. The same applies to the nonconvex Huber method~\cite{KorkmazVeen2009}. In the other extreme, the SDP method~\cite{SimonettoLeus2014} is addressed with interior point algorithms, that are cubic in the problem dimension.} \paragraph*{Paralellizability} We observe that each block of~$z = (x, y, w)$ at iteration~$t$ only needs local neighborhood information, as shown in Algorithm~\ref{alg:synchronous}. To demonstrate the natural distribution of the method we go back to~\eqref{eq:gradient}. Here, the term~$E^{\top} \mathrm{P}_{\mathcal{R}}(Ez-a)$ only involves anchor measurements relative to each node, and so it is distributed. The term~$B^{\top}\mathrm{P}_{\mathcal{D}}(Bz)$ is less clear. The vector~$Bz$ collects~$x_{i}-x_{j}-y_{ij}$ for all edges~$i \sim j$ and to it we apply the projection operator onto the Cartesian product of balls. This is the same as applying a projection of each edge onto each ball. When left multiplying with~$B^{\top}$ we get~$B^{\top}\mathrm{P}_{\mathcal{D}}(Bz)$. The left multiplication by~$B^{\top}$ will group at the position of each node variable~$x_{i}$ the contributions of all incident edges to node~$i$. \paragraph*{Edge variables} Recall that we introduced edge variables $y_{ij}$ in \eqref{eq:cvx-term-norm} to reformulate terms in the maximum-likelihood function in a more tractable form. These are associated with edges linking pairs of nodes in the measurement graph $\mathcal{G}$. Variables $w_{ik}$ play the same role for node-anchor terms. To update the~$y_{ij}$ variables we could designate one of the incident nodes, $i$ or $j$, as responsible for the update and then communicate the result to the non-computing neighbor. But, to avoid this expensive extra communication, we decide that each node~$i$ should compute its own~$y_{ij}$, where~$y_{ij} = -y_{ji}$ for all edges. Also, with this device, the gradient entry regarding variable~$x_{i}$ would be~$\sum_{j \in N_{i}} C_{(i\sim j,i)} \mathrm{P}_{\mathcal{D}_{ij}}\left( C_{(i\sim j,i)}(x_{i}-x_{j} - y_{ij})\right)$. The symbol $C_{(i \sim j,i)}$ denotes the arc-node incidence matrix entry relative to edge~$i \sim j$ (row index) and node~$i$ (column index). As the projection onto a ball $\mathcal{B}$ of radius~$\delta$ centered at the origin can be written as \begin{equation*} \mathrm{P}_{\mathcal{B}}(u) = \begin{cases} \frac {u}{\|u\|}\delta & \qquad \text{if } \|u\| > \delta\\ u & \qquad \text{if } \|u\| \leq \delta \end{cases}, \end{equation*} then~$\mathrm{P}_{\mathcal{B}}(-u) = - \mathrm{P}_{\mathcal{B}}(u)$, and, thus, the gradient entry regarding variable~$x_{i}$ becomes~$\sum_{j \in \mathcal{N}_{i}} \mathrm{P}_{\mathcal{D}_{ij}}\left( x_{i}-x_{j} - y_{ij} \right)$, as stated in Algorithm~\ref{alg:synchronous}. \paragraph{{\color{blue} Communications}} {\color{blue} For each iteration $t$, the algorithm requires only that each agent $i$ broadcast to its neighbors one vector in the ambient space (${\mathbb R}^2$ or ${\mathbb R}^3$) with the Nesterov extrapolated point $\xi_i$. The position estimates $x_i[t]$, node-anchor variables $w_{ik}[t]$, and edge variables $y_{ij}[t]$ are computed internally at each node.} \subsection{Asynchronous algorithm} \label{sec:asynchr-algor} In Section~\ref{sec:synchr-algor} we presented a distributed method addressing the robust network localization problem in a scalable manner, where each node uses information from its neighborhood and performs a set of simple arithmetic computations. But the results still depend critically on synchronous computation, where nodes progress in lockstep through iterations. As the number of processing nodes becomes very large, this synchronization can become seriously difficult --- and unproductive. An asynchronous approach is called for in such very large-scale and faulty settings. In an asynchronous time model, the nodes move forward independently and algorithms should withstand certain types of faults, like temporary unavailability of a node. To address this issue, we present a fully asynchronous method, based on a broadcast gossip scheme (c.f. Shah~\cite{shah2009} for an extended survey of gossip algorithms). Nodes are equipped with independent clocks ticking at random times (say, as Poisson point processes). When node~$i$'s clock ticks, it performs the update of its variables and broadcasts the update to its neighbors. Let the order of node activation be collected in~$\{\chi_{t}\}_{t \in \mathbb{N}}$, a sequence of independent random variables taking values on the set~$\mathcal{V}$, such that {the probability~${\mathbb P}(\chi_{t} = i)$ is always positive, i.e.,} \begin{equation} \label{eq:rv} {\mathbb P}(\chi_{t} = i) = P_{i} > 0. \end{equation} This assumption ensures that the node can be activated. The asynchronous update of variables on node~$i$ is summarized in Algorithm~\ref{alg:asyncronous} and described in detail below. \begin{algorithm}[tb] \caption{Asynchronous method: asyncSTRONG} \label{alg:asyncronous} \begin{algorithmic}[1] \REQUIRE $L_{F}; \{d_{ij}, \: D_{ij} : i \sim j \in \mathcal{E}\}; \{r_{ik}, \: R_{i,k} : i \in \mathcal{V}, k \in \mathcal{A}_{i}\}$; \ENSURE $\hat x$ \STATE let $ \mathcal{Y}_{ij} = \{y \in {\mathbb R}^{p}: \|y\| \leq d_{ij}\} $; and $ \mathcal{W}_{ik} = \{w \in {\mathbb R}^{p}: \|w\| \leq r_{ik}\} $; \STATE each node $i$ chooses {and broadcasts} random $x_{i}{[0]}$; \STATE \textbf{Initialization:} {set $y_{ij}{ [0]} = \mathrm{P}_{\mathcal{Y}_{ij}}\left(x_{i}{ [0]} -x_{j}{ [0]}\right)$; and $w_{ik}{ [0]} = \mathrm{P}_{\mathcal{W}_{ik}}\left(x_{i}{ [0]} -a_{k}\right)$;} \STATE $t = 0$; \WHILE{some stopping criterion is not met, each node $i$} \STATE $t = t + 1;$ \STATE $ \begin{aligned}[t] x_{i}{[t]} = \begin{dcases} \operatornamewithlimits{argmin}_{\substack{\xi_{i}, \{y_{ij} \in \mathcal{Y}_{ij}, j \in \mathcal{N}_{i} \}, \\ \{w_{ik} \in \mathcal{W}_{ik}, k \in \mathcal{A}_{i}\}}} F_{i}(\xi_{i},\{y_{ij}\},\{w_{ik}\}) \label{alg:asynminx} &\mbox{if } \chi_{t} = i\\ x_{i}{[t-1]} &\mbox{otherwise;} \end{dcases} \end{aligned} $ \STATE if~{$\chi_{t}= i$}, broadcast~$x_{i}{[t]}$ to neighbors \ENDWHILE \RETURN $\hat x = x{[t]}$ \end{algorithmic} \end{algorithm} It is useful to recast Problem~\eqref{eq:matrix-cost}--\eqref {eq:cvx-matrix-z} as \begin{equation} \label{eq:per-node} \begin{aligned} \operatornamewithlimits{minimize}_{x,y,w} &\sum_{i} \left(\sum_{j \in \mathcal{N}_{i}} \frac 14 \|x_{i}-x_{j}-y_{ij}\|^{2} - \frac 14 \mathrm{d}^{2}_{\mathcal{D}_{ij}}(x_{i}-x_{j}-y_{ij}) + \right.\\ & \left.\sum_{k \in \mathcal{A}_{i}} \frac 12 \|x_{i}-a_{k}-w_{ik}\|^{2} - \frac 12 \mathrm{d}^{2}_{\mathcal{R}_{ik}}(x_{i}-a_{k}-w_{ij}) \right)\\ \operatornamewithlimits{\text{subject to}} & \qquad \|y_{ij}\| \leq d_{ij}, \quad \|w_{ik}\| \leq r_{ik},, \end{aligned} \end{equation} where the factor~$\frac{1}{4}$ accounts for the duplicate terms when considering summations over nodes instead of over edges. Our strategy for obtaining an asynchronous algorithm simply consists in solving a single-source localization problem at any given node upon wake-up, fixing the neighbor positions to their last known values. Node $i$ thus solves \begin{equation} \label{eq:sl-problem} \begin{aligned} \operatornamewithlimits{minimize}_{\substack{x_{i}, \{y_{ij}: \: j \in \mathcal{N}_{i} \}, \\ \{w_{ik}: \: k \in \mathcal{A}_{i}\}}} & \;{ F_{i}(x_{i},\{y_{ij}\},\{w_{ik}\})}\\ \operatornamewithlimits{\text{subject to}} & \qquad \|y_{ij}\| \leq d_{ij}, \quad \|w_{ik}\| \leq r_{ik}, \end{aligned} \end{equation} where \begin{equation*} F_{i}(x_{i},\{y_{ij}\},\{w_{ik}\}) := {\sum_{j \in \mathcal{N}_{i}} \frac 14 \psi_{D_{ij}}(x_{i}-x_{j}-y_{ij}) + }{\sum_{k \in \mathcal{A}_{i}} \frac 12 \psi_{R_{ik}}(x_{i}-a_{k}-w_{ij}).} \end{equation*} Problem~\eqref{eq:sl-problem} is convex, solvable at each node by a general purpose solver. Nevertheless, that approach would not take advantage of the specific problem structure, thus depriving the solution of an efficient and simpler computational procedure. Again, Problem~\eqref{eq:sl-problem} can be solved by the Nesterov optimal first-order method, because the gradient of~$F_{i}$ is Lipschitz continuous {in~$x_{i}, y_{ij}$, and~$w_{ik}$}, accepting the same Lipschitz constant as~$F$, in~\eqref{eq:lipschitz}. \paragraph{{\color{blue} Communications}} {\color{blue} For each iteration $t$, the algorithm requires only that the agent $i = \chi_{t}$ broadcast to its neighbors a vector in the ambient space (${\mathbb R}^2$ or ${\mathbb R}^3$) with the position estimate $x_i[t]$.} \section{Convergence analysis} \label{sec:analysis} In this section we address the convergence of Algorithms~\ref{alg:synchronous} and~\ref{alg:asyncronous}. We provide convergence guarantees and rate of convergence for the synchronous version, and we also prove convergence for the asynchronous method. \subsection{Synchronous algorithm} \label{sec:analysis-synchr-algor} As shown in Section~\ref{sec:distr-robust-sens}, Problem~\eqref {eq:cvx-matrix-z} is convex and the cost function has a Lipschitz continuous gradient. As proven by Nesterov~\cite{Nesterov1983, Nesterov2004}, and further developed by Beck and Teboulle~\cite{BeckTeboulle2009}, Algorithm~\ref{alg:synchronous} converges at the optimal rate $O\left( t^{-2} \right)$. Specifically, $F( z^{t} ) - F^\star \leq \frac{2 L_{F}}{(t+1)^2} \left\| z^{0} - z^\star \right\|^2$, where~$F^{\star}$ is the optimal value and~$z^{\star}$ is a minimizer of Problem~\eqref {eq:cvx-matrix-z}. \subsection{Asynchronous algorithm} \label{sec:analysis-asynchr-algor} To investigate the convergence of Algorithm~\ref{alg:asyncronous}, as it is a constrained problem unlike~\cite{soares2014simple}, we will use a totally different proof strategy, not by crafting a supermartingale that bounds the gradient norm, but depending on the Borel-Cantelli Lemma, as formally described in~\ref{sec:proof-theor-refth}. We need the following trivial assumption for the network localization problem: \begin{assumption} \label{th:connected-assumption} The graph~$\mathcal{G}$ is connected, and there is at least one node in~$\mathcal{G}$ with an anchor measurement. \end{assumption} This assumption is naturally fulfilled: if the network is supporting several disconnected components, then each can be treated as a different network, and, for disambiguation, range-based, static localization requires the availability of 3 anchors in 2D and 4 anchors in 3D. The convergence of Algorithm~\ref{alg:asyncronous} is stated next. \begin{theorem}[Almost sure convergence] \label{th:asyn-convergence} Let Assumption~\ref{th:connected-assumption} hold. Consider Problem~\eqref{eq:cvx-matrix-z}, and the sequence~$\{z^{t}\}_{t \in \mathbb{N}}$ generated by Algorithm~\ref{alg:asyncronous}. Define the solution set as $\mathcal{Z}^{\star} = \{z \in \mathcal{Z}: F(z) = F^{\star}\}$. Then \begin{enumerate} \item $\mathrm{d}_{\mathcal{Z}^{\star}}(z^{t}) \to 0$, a.s.; \item $F(z^{t}) \to F^{\star}$, a.s. \end{enumerate} \end{theorem} We stress that the convergence stated in this result is the strongest possible, encompassing convergence in expectation, {\it i.e.}, the expected value of iterates converge to a minimizer, and convergence in probability, where the probability density function of the iterates converges to the true probability density function of a minimizer. Moreover, we prove that the iterates of our algorithm converge to a minimizer of our function with probability one. Next, we will state in Theorem~\ref{th:nr-iter-convergence} that, with probability one, Algorithm~\ref{alg:asyncronous} converges in a \emph{finite} number of iterations, for a given precision. Both proofs can be found in~\ref{sec:proof-theor-refth}. \begin{theorem} \label{th:nr-iter-convergence} For a prescribed precision~$\epsilon$, the sequence of iterates~$\{z^{t}\}_{t \in \mathbb{N}}$ converges in~$K_{\epsilon}$ iterations. The expected count is \begin{equation} \label{eq:nr-iter-convergence} {\mathbb E} \left[ K_{\epsilon} \right] \leq \frac{F\left(z^{0}\right) - F^{\star}}{b_{\epsilon}}, \end{equation} where~$b_{\epsilon}$ is a constant that depends on the specified~$\epsilon$. \end{theorem} In practice, this result states that the number of iterations until convergence will be a finite number, and not infinity, \eg, as in typical distributed consensus algorithms. \section{Numerical experiments} \label{sec:numer-exper} The experimental setup consists in a uniquely localizable geometric network deployed in a square area with side of~1~Km, with four anchors located at the corners, and ten sensors. The average node degree of the network is~4.3. The regular noisy range measurements are generated according to $ d_{ij} = | \|x_{i}^{\star} - x_{j}^{\star}\| + \nu_{ij} |$, and $ r_{ik} = | \|x_{i}^{\star} - a_{k}\| + \nu_{ik} |,$ where~$x_{i}^{\star}$ is the true position of node~$i$, and~$\{\nu_{ij} : i \sim j \in \mathcal{E}\} \cup \{\nu_{ik} : i \in \mathcal{V}, k \in \mathcal{A}_{i}\}$ are independent Gaussian random variables with zero mean and standard deviation~40~m. Node~7 is malfunctioning {\color{blue} and with some probability all measurements related to it are corrupted by noise with heavy-tailed distributions with a scale parameter of~4~Km, unless stated otherwise. Two families of heavy-tailed distributions were used: Laplace and Cauchy. The Laplace distribution is well-known for modeling outlier noise~\cite{Tarantola2005}, and Cauchy noise is frequent in contexts like radar echo, atmospheric noise, and underwater acoustic signals noise~\cite{tsakalides1998deviation}.} Node~8 is badly calibrated, so measurements are 20\% of the true value, which is also affected by white noise with the same standard deviation of~40~m. We sampled both regular and outlier noise. The performance metric used to assess accuracy is the positioning error per sensor, defined as \begin{equation} \label{eq:error} \epsilon(m) = \frac{\|\hat x(m) - x^{\star}\|}{|\mathcal{V}|}, \end{equation} where~$\hat x(m)$ denotes the position estimates for all sensors in Monte Carlo trial~$m$. The average positioning error is defined as \begin{equation*} \label{eq:avgerror} \epsilon = \frac1{M} \sum_{m =1}^{M} \epsilon(m), \end{equation*} where~$M$ is the number of Monte Carlo trials. \subsection{Underestimator performance} \label{sec:under-perf} The convex optimization problems were solved with \texttt{cvx}~\cite{cvx}. We ran~200 Monte Carlo trials, where we sampled the measurement and outlier noise sources. \begin{figure}[tb] \centering {\includegraphics[width=0.8\textwidth]{cdf-outlier}} \caption{Underestimator performance: Empirical CDF for the positioning error per sensor, in meters. {\color{blue} Our Huber-based relaxation shows higher accuracy than the $L_2$ and the robust $L_1$ relaxations, in an experiment where~2 nodes in~10 are affected by Laplacian noise.}} \label{fig:error} \end{figure} The empirical CDFs of estimation errors are shown in Figure~\ref{fig:error}, which demonstrate that the Huber robust cost used in STRONG can reduce the error per sensor by more than~30 meters, when compared with the~$L_{1}$ discrepancy, and about 10~m for the~$L_2$ discrepancy. The sensitivity to the value of the Huber parameter~$R$ in~\eqref{eq:huber-loss} is {\color{blue} small in the range from 40 to 100 m. In fact, for this range, the positioning error variation per sensor is about 10 cm. The proposed estimator exhibits smaller error per sensor than the competing algorithms for all tested values of the parameter.} We observe that the error increases when~$R$ approaches the standard deviation of the regular Gaussian noise, meaning that the Huber loss gets closer to the~$L_{1}$ loss and, thus, is no longer adapted to regular noise ($R=0$ corresponds exactly to the~$L_{1}$ loss); in the same way, as~$R$ increases, so does the extent of the quadratic section, and the estimator gets less robust to outliers, so, again, the error increases. \subsection{Performance of the distributed synchronous Algorithm~\ref{alg:synchronous}} \label{sec:perf-distr-algor} We tested Algorithm~\ref{alg:synchronous} using the same setup as in the previous section, running~200 Monte Carlo trials. \begin{figure}[tb] \centering {\includegraphics[width=0.8\columnwidth]{cdf-distr-median-SDP-L2-H-Laplace-noise} \caption{Accuracy of the distributed synchronous algorithm. Empirical CDF for the positioning error per sensor, in meters, for the outlier experiment,{\color{blue} with Laplacian noise. Our STRONG algorithm outperforms all tested methods,} including the nonconvex Huber~\cite{KorkmazVeen2009}, and the $L_2$~\cite{soares2014simple}. Note that although~$L_2$ seems to have a close performance at the scale of the plot, the accuracy gain of STRONG is still large.} \label{fig:cdf-distr-median-SDP-L2-H-Laplace-noise}} \end{figure} \begin{figure}[tb] \centering {\includegraphics[width=0.8\columnwidth]{cdf-distr-median-SDP-L2-H-CauchyOnly-noise} \caption{{\color{blue} Accuracy of the distributed synchronous algorithm. Empirical CDF for the positioning error per sensor, in meters, for the outlier experiment, with Cauchy noise. Our STRONG algorithm still outperforms all other methods.}} \label{fig:cdf-distr-median-SDP-L2-H-Cauchy-noise}} \end{figure} We benchmark our method comparing with the performance of the centralized solutions in O\u{g}uz-Ekim {\it et al.},~\cite{OguzGomesXavierOliveira2011}, the SDP presented by Simonetto and Leus\footnote{In~\cite{SimonettoLeus2014}, the authors present a distributed ESDP algorithm which is a relaxation of the centralized SDP. As the simulation time for the distributed, edge-based algorithm is considerable we benchmarked against the tighter and more accurate centralized SDP solution.}~\cite{SimonettoLeus2014}, and also the distributed locally convergent algorithm by Korkmaz and Van der Veen\footnote{This distributed method directly minimizes the nonconvex cost~\eqref{eq:huberDist}, thus delivering a local solution, that depends on the initialization point. The algorithm was initialized with samples of a zero mean Gaussian distribution.}~\cite{KorkmazVeen2009}. {\color{blue}The results are summarized in Figures~\ref{fig:cdf-distr-median-SDP-L2-H-Laplace-noise}, for Laplacian noise, and~\ref{fig:cdf-distr-median-SDP-L2-H-Cauchy-noise} for Cauchy noise.} The empirical CDFs for positioning error~\eqref{eq:error} {\color{blue} indicate that the STRONG algorithm has the highest accuracy among the tested methods.} {\color{blue}As depicted in Figures~\ref{fig:cdf-distr-median-SDP-L2-H-Laplace-noise} for Laplace and~\ref{fig:cdf-distr-median-SDP-L2-H-Cauchy-noise} for Cauchy noise,} it is noticeable that the STRONG algorithm outperforms in accuracy the {algorithm in}~\cite{soares2014simple} for the quadratic discrepancy by more than 14~meters per sensor in average positioning error. When we compare to a~$L_{1}$-type algorithm --- in this case the~$L_1$ relaxation from O\u{g}uz-Ekim {\it et al.}~\cite{OguzGomesXavierOliveira2011} --- under the same conditions, the improvement of performance of our solution is, on average, about 120 meters per sensor. \begin{figure}[tb] \centering {\includegraphics[width=0.8\columnwidth]{cdf-distr-median-SDP-L2-H-CauchyOnly-meanErrVSprob} \caption{{\color{blue} As the probability of having one malfunctioning node injecting Cauchy outlier measurements into the distributed estimation process increases, all the methods increase the positioning error, as expected. The proposed STRONG method has the lowest mean error for 200 random trials for each value of the outlier probability.}} \label{fig:median-SDP-L2-H-Cauchy-noise-meanErrVSprob}} \end{figure} \begin{figure}[tb] \centering {\includegraphics[width=0.8\columnwidth]{cdf-distr-median-SDP-L2-H-Laplace-meanErrVSprob} \caption{{\color{blue} As with Cauchy noise in Figure~\ref{fig:median-SDP-L2-H-Cauchy-noise-meanErrVSprob}, The error response of the tested methods increases with the probability of multiplicative and Laplace noise.}} \label{fig:median-SDP-L2-H-Laplace-noise-meanErrVSprob}} \end{figure} {\color{blue} We also tested all methods regarding the probability of having a malfunctioning (or malicious) node in the network, injecting both multiplicative and Laplacian noise in Figure~\ref{fig:median-SDP-L2-H-Laplace-noise-meanErrVSprob} and Cauchy noise in Figure~\ref{fig:median-SDP-L2-H-Cauchy-noise-meanErrVSprob} into the estimation process. From the positioning error obtained in our simulations we see that outlier probability for the two heavy-tailed noise schemes drives the performance of the algorithms. We can also conclude that, for the tested scenarios, STRONG maintains consistently the lowest mean positioning error.} {\color {blue} We have experimented with the Gaussian measurement noise power, but, in the presence of outliers and for the same outlier probability, the influence of varying the power of the measurement noise is negligible, compared with the effect of outlier noise.} \subsection{Performance of the distributed asynchronous Algorithm~\ref{alg:asyncronous}} \label{sec:perf-asynchr-algor} Here, we tested Algorithm~\ref{alg:asyncronous}, async STRONG, using Gaussian outlier noise with a standard deviation of~5~Km. We benchmarked it against the synchronous Algorithm~\ref{alg:synchronous}, STRONG, since both minimize the same cost function. The algorithms were allowed to run with the same communication load, and the mean positioning error for the considered measurement noise levels (excluding outlier noise) is depicted in Figure~\ref{fig:syncVSasync}. \begin{figure}[tb] \centering \includegraphics[width=0.8\columnwidth]{syncVSasync \caption{Mean positioning error for different noise standard deviations.} \label{fig:syncVSasync} \end{figure} \begin{figure}[tb] \centering \includegraphics[width=0.8\columnwidth]{cdf-sync-vs-async-sd2 \caption{Accuracy of the distributed asynchronous algorithm: positioning error of synchronous algorithm~\ref{alg:synchronous} versus asynchronous algorithm~\ref{alg:asyncronous}. CDF of the positioning error. Noise standard deviation of 10 meters (corresponding to the second data point in Fig.~\ref{fig:syncVSasync}). Both algorithms were run with the same communication load. Experiment within a square with 1 Km sides.} \label{fig:cdf-sync-vs-async-sd2} \end{figure} We can observe that the async STRONG algorithm fares better than STRONG for the same level of communication. This is an interesting phenomenon that has already been empirically observed in several optimization algorithms when comparing deterministic and randomized versions. In fact, Bertsekas and Tsitsiklis~\cite[Section~6.3.5]{BertsekasTsitsiklis1989} provide a proof of this behavior for a restricted class of algorithms. Figure~\ref{fig:cdf-sync-vs-async-sd2} further explores the numerical results, by examining the CDF of the positioning error for the tested Monte Carlo trials. Here we see the superior accuracy of the asynchronous Huber Algorithm~\ref{alg:asyncronous}, for the same communications volume. We must, nevertheless, emphasize that this result does not correspond to a faster algorithm, in terms of running time: STRONG in one iteration updates all of the node positions in parallel, and broadcasts the current estimates across neighbors, whereas in async STRONG only one node operates at a time. As the wireless medium might be much more intensively used for synchronous updates than for random gossip interactions, it seems entirely possible that for the same operation time STRONG will outperform async STRONG --- at the expense of greater overall power consumption. \section{Discussion and conclusions} \label{sec:concl-future-work} We presented two distributed, fast, and robust localization algorithms that take noisy ranges and a few anchor locations, and output accurate estimates of the node positions. We approximated the difficult nonconvex problem based on the Huber discrepancy in~\eqref{eq:snlOptProb} with a convex envelope of terms, robust to outliers. How does the Huber-based approximation in~\eqref{eq:huber-cvx} compare to similar $L_{1}$ and $L_{2}$ underestimators, frequently used in robust estimation? A smaller optimality gap means a more robust approximation~\cite{DestinoAbreu2011}: We designed a bound that certifies the gap between the nonconvex and surrogate optimal values for Huber, $L_{1}$ and $L_{2}$, which shows a tighter gap in the Huber case. A numerical analysis of a star network in 1D unveiled that the optimality gap for the Huber approximation was one order of magnitude smaller than the quadratic or absolute value convexified problems, with respect to their nonconvex counterparts. Numerical network localization trials verify the robust behavior of this surrogate under different types of outlier noise. In order to develop a distributed method we needed to transform our cost. So, we proposed a new representation of the Huber function composed with a norm, and arrived at a novel distributed gradient method, STRONG, with optimal convergence rate. But our STRONG algorithm requires synchronization of nodes, which may be inconvenient in many applications. Thus, we put forward a novel asynchronous method for robust network localization, async STRONG, which converges with probability one. Like other relaxation methods, ours are prone to the anchor convex hull problem: preliminary results show that the positioning accuracy degrades --- albeit graciously --- when node positions depart from the convex hull of the anchors. Arguably, this is not a big issue because engineers in general can control the choice or placement of anchors, and can delimit the area under survey. In summary, both our algorithms work with simple computations at each node and minimal communication requirements, have provable convergence, and show superior performance in our numerical experiments. \section*{Acknowledgment} The authors would like to thank Prof.\ Pinar O\u{g}uz-Ekim and Dr.\ Andrea Simonetto for providing the MATLAB implementations of their published algorithms. Also, we thank Prof.\ Jo\~{a}o Xavier for insightful discussions during this research. This research was partially supported by Fundação para a Ciência e a Tecnologia (projects HARMONY PTDC/EEI-AUT/31411/2017, and LARSyS - FCT Plurianual funding 2020-2023).
\section{Introduction} The fluxonium circuit is a promising candidate for qubit implementation for a superconducting quantum processor~\cite{Manucharyan113}. In addition to having a strongly anharmonic spectrum, this qubit can exhibit ms-long coherence time because of the relatively low frequency of its main transition~\cite{Nguyenfluxonium,somoroff2021millisecond}, in comparison to transmons~\cite{Transmon}. Owing to the long coherence time, the single-qubit gate error has been recently demonstrated to be under $10^{-4}$~\cite{somoroff2021millisecond}. Currently, the search for suitable two-qubit gates for fluxoniums is expanding in several directions that differ by the qubit control. The control can be realized by using microwave irradiation of the system~\cite{Nesterov_2018,Abdelhafez2020,Ficheux_2021, xiong2021arbitrary, Nesterov_2021}, fast changes of the flux bias through the fluxonium superinductor loop~\cite{Zhang_2021,Wang2021a}, or a tunable coupling scheme~\cite{Moskalenko2021}. The first experimentally demonstrated two-qubit gate on fluxoniums was based on the microwave activation scheme~\cite{xiong2021arbitrary,Ficheux_2021}. In particular, a coupled two-qubit system was temporarily taken outside of the computational subspace, which results in a controlled-phase operation~\cite{xiong2021arbitrary,Ficheux_2021}. Since noncomputational states generally have shorter lifetimes than the computational ones, these gate schemes are exposed to additional incoherent error channels. This problem can be avoided by utilizing schemes that keep the system entirely in the computational subspace during the gate operation. Exploring ideas from transmon qubits~\cite{Transmon}, examples of microwave-activated gates with such a property include the cross-resonance gate~\cite{Chow2011, Sheldon2016b} and the two-photon b\textsc{swap} gate~\cite{Poletto2012}; the latter idea has been analyzed theoretically for fluxonium qubits with promising predictions for possible error rate~\cite{Nesterov_2021}. Alternatively, the system can be kept in the computational subspace while two qubits are being entangled by bringing their frequencies in resonance using a rapid flux tuning. The disadvantage of this scheme is that the qubit is exposed to the flux-noise-induced decoherence while being off the sweet spot. Nevertheless, flux-controlled single-qubit gates have recently been demonstrated for a fluxonium with a low frequency in the range of 10-20 MHz~\cite{Zhang_2021}. Therefore, there is motivation to analyze theoretically the performance of flux-tunable logical operations on two fluxonium qubits. In this paper, we consider two fluxoniums with a direct capacitive coupling and show that in the case of a unitary dynamics, flux-tunable two-qubit gates can maintain a negligible gate error at a short gate time of less than 20 ns. In our proposal, we focus on an $\sqrt{i\textsc{swap}}$-like gate, which mixes $\ket{01}$ and $\ket{10}$ states while also generally results in phase accumulation in $\ket{00}$ and $\ket{11}$ states. This class of gates consists of perfect entanglers, and $\sqrt{i\textsc{swap}}$ has been shown to provide powerful compilation capabilities rivaling those of $i\textsc{swap}$ and \textsc{cnot} gates~\cite{huang2021ultrahigh}. Frequency-tunable gates have been analyzed and successfully implemented multiple times for weakly anharmonic superconducting qubits such as transmons~\cite{Strauch_2003, DiCarlo2009, Dewes_2012, Barends_2019,Wang_2019,Li_2019, Rol_2019, Foxen_2020, Sung_2021, Negirneac_2021}. There, gate schemes can be broadly divided into two categories depending on which resonance condition in two-qubit spectra is utilized. In the first category, weak anharmonicity is an asset since it allows for an easy resonance condition between a computational and a higher energy noncomputational states such as $\ket{11}$ and $\ket{02}$, resulting in a controlled-phase gate implementation; see, e.g., Refs.~\cite{DiCarlo2009, Negirneac_2021}. For fluxonium qubits, such a resonance is harder to achieve and is not desirable as mixing of computational and noncomputational states commonly results in increased leakage and decoherence. Instead, we analyze an operation from the second category of frequency-tunable gates, which are based on a resonance between two computational levels~\cite{Dewes_2012, Barends_2019, Foxen_2020, Sung_2021}. This condition is achieved by flux biasing one of the fluxoniums away from its sweet spot, which entangles the two qubits and can be tuned to realize an accurate $\sqrt{i\textsc{swap}}$-like gate. In addition to frequency-tunable implementations, $i\textsc{swap}$ and $\sqrt{i\textsc{swap}}$-like gates on superconducting quantum hardware have been also demonstrated via parametric activation~\cite{Abrams_2019, sete2021parametricresonance}. In comparison to weakly anharmonic qubits, where a similar gate scheme requires extra tuning of qubit frequencies or coupling constant to synchronize minima in the swap and leakage errors~\cite{Barends_2019}, our proposal for fluxonium qubits naturally leads to superior resistance to coherent leakage to higher noncomputational levels. In particular, we find that the leakage error calculated numerically is likely smaller than numerical precision of our calculations. This resistance to leakage provides high fidelity for the gate, which is optimized by adjusting parameters of the magnetic-flux pulse, such as the pulse width, its raising and lowering times, and the pulse amplitude. By choosing a proper flux detuning, the gate time can be shorter than $\SI{20}{\nano\second}$, with coherent gate error below $10^{-6}$ and negligible leakage. Furthermore, the fluxonium qubits have the advantage to be insensitive to flux noise~\cite{Nguyenfluxonium}, thus making the gate noise-resistant. To verify this statement and to account for other incoherent processes, we also analyze the effect of flux noise and qubit relaxation on the gate fidelity. We show that while these two effects result in significant reduction of the fidelity obtained from optimization of the qubit unitary dynamics, the gate error can still remain below $10^{-4}$ for currently reported values of the magnetic flux noise and relaxation times. The paper is structured as follows. In Sec.~\ref{section:2qubit}, we describe the fluxonium Hamiltonian and present a simplified analytic treatment based on two-level models. In Sec.~\ref{section:transition}, we give a detailed account of how the entangling gate operation is realized, present numerical simulations of coherent dynamics of the gate as well as its coherent error. In Sec.~\ref{section:noise}, we discuss reduction in gate fidelity due to flux noise and relaxation. We conclude in Sec.~\ref{section:conclusion}. \section{Model of capacitively coupled fluxoniums}\label{section:2qubit} \begin{figure} \centering \includegraphics[scale=0.15]{explanation.pdf} \caption{Schematic of the fast flux entangling gate. (a) Circuit diagram of two capacitively coupled fluxonium qubits. (b) Single-qubit transition frequencies as a function of qubit $B$'s external flux. (c) Two-qubit energy levels at the flux sweet spot (solid lines) and at the flux used for gate operation (dashed lines). (d) The flux pulse shape represented by the flat-top Gaussian shape with switching on/off time $t_r/2$ and plateau duration $t_p$. } \label{Fig:explanation} \end{figure} \subsection{Full Hamiltonian} In this section, we introduce the model of interacting fluxonium qubits~\cite{Nesterov_2018, Nesterov_2021}. Figure~\ref{Fig:explanation}(a) illustrates the circuit diagram of two capacitively coupled fluxoniums, labeled as A and B. We model this system by the Hamiltonian \begin{equation} \hat{H}=\hat{H}_A+\hat{H}_B+\hat{V}\,. \label{eq:ham} \end{equation} Here \begin{equation} \hat{H}_{\alpha}=4E_{C,\alpha}\hat{n}_{\alpha}^2+\dfrac{1}{2}E_{L,\alpha}\hat{\varphi}_{\alpha}^2-E_{J,\alpha}\cos(\hat{\varphi}_{\alpha}-\phi_{\alpha}) \label{eq:qubits} \end{equation} describes individual fluxonium qubits $(\alpha=A,B)$\cite{Manucharyan113}. In this Hamiltonian, the canonical variables are flux $\hat{\varphi}_{\alpha}$ and charge (the number of Cooper pairs) $\hat{n}_{\alpha}$, which satisfy $[\hat{\varphi}_{\alpha},\hat{n}_{\alpha'}]=i\delta_{\alpha\alpha'}$. The kinetic term in Eq.~(\ref{eq:qubits}) is determined by the charging energy $E_{C,\alpha}=e^2/2C_{\alpha}$, where $(-e)$ is the electron charge and $C_{\alpha}$ is the total capacitance of the circuit $\alpha$. The second term in Eq.~\eqref{eq:qubits} describes the superinductance or a long chain of Josephson junctions and depends on the inductive energy $E_{L,\alpha}=(\hbar/2e)^2/L_{\alpha}$, where $L_{\alpha}$ is the effective linear inductance of the chain. This superinductance is shunted by a small junction, which is characterized by a Josephson energy $E_{J,\alpha}$. The final term in Eq.~\eqref{eq:qubits} depends on $\phi_{\alpha}=(2e/\hbar)\Phi_{\alpha}$, where $\Phi_{\alpha}$ is the externally induced magnetic flux threading the loop formed by the small junction and superinductance. This parameter is tunable, and we use it to activate entangling gates. We label single-qubit eigenstates as flux-dependent eigenstates of Hamiltonian \eqref{eq:qubits} as $\ket{k}_{\alpha,\phi_\alpha}$ for qubit $\alpha$ for the flux variable $\phi_{\alpha}$. Here, $k=0,1,2,\dots$ is the excitation index of a fluxonium labeling energy states $E^{(k)}_{\alpha,\phi_\alpha}$ in the ascending order. The first two levels define the qubit transition frequencies $\hbar\omega_{\alpha, \phi_\alpha} = E^{(1)}_{\alpha,\phi_\alpha}-E^{(0)}_{\alpha,\phi_\alpha}$; we also write $\omega_\alpha = \omega_{\alpha, \pi}$. The interaction between the fluxoniums is described by \begin{equation}\label{eq:V} \hat{V}=J_C\hat{n}_A\hat{n}_B, \end{equation} where the interaction constant is determined by the mutual capacitance $C_M$. In the limit of a small mutual capacitance, $C_M\ll C_A,C_B$, the interaction strength is given by $J_C=4e^2C_M/(C_AC_B)$\cite{Nesterov_2018,qec}. \begin{table} \centering \begin{tabular}{cccccc} \hline\hline \multirow{2}{*}{Qubit} & $E_{C, \alpha}/h$ & $E_{L, \alpha}/h$ & $E_{J, \alpha}/h$ & $\omega_\alpha/2\pi$ & $J_C/h$ \\ & (GHz) & (GHz) & (GHz) & (GHz) & (GHz)\\ \hline $A$ & 1.5 & 1.0 & 3.8 & 1.152 & \multirow{2}{*}{0.3}\\ $B$ & 0.9 & 1.0 & 3.0 & 0.848 & \\ \hline\hline \end{tabular} \caption{Hardware parameters used in numerical simulations.} \label{table:para} \end{table} Both qubits have sweet spots at $\phi_{\alpha}=\pi$, where the qubits are first-order insensitive to the flux noise and demonstrate long coherence times suitable for information storage and high-fidelity single-qubit operations~\cite{Nguyenfluxonium, somoroff2021millisecond}. Here we study a flux-tunable two-qubit gate that is activated by moving the qubit with lower transition frequency away from the sweet spot for a short time. Specifically, we investigate in detail the scheme when qubit $A$ is kept at its sweet spot, so $\phi_A=\pi$, while the magnetic flux drives qubit $B$ from the sweet spot towards the level crossing of both qubits; see Fig.~\ref{Fig:explanation}(b). Since $\phi_A=\pi$ is fixed, we omit index $B$ below for the flux variable $\phi_B=\phi$. We label interacting (dressed) two-qubit eigenstates of Hamiltonian \eqref{eq:ham} as $\ket{kl}_{\phi}$, implying adiabatic connection to the noninteracting tensor-product states $\ket{k}_A\ket{l}_{B,\phi}$. The corresponding eigenenergies of the full Hamiltonian are denoted by $E_{\phi}^{(kl)}$. Three lowest two-qubit levels are shown schematically in Fig.~\ref{Fig:explanation}(c) for $\phi = \pi$ and for the value of $\phi$ corresponding to the level crossing. \subsection{Hamiltonian in the computational subspace} For any value of external flux $\phi$ used during the gate operation, the two-qubit computational subspace $\{\ket{00}_{\phi},\ket{01}_{\phi},\ket{10}_{\phi},\ket{11}_{\phi}\}$ is separated from other states by a relatively large energy gap, suppressing the leakage of the qubit state into higher noncomputational levels. Higher noncomputational levels are generally important for quantitative analysis and are accounted for in numerical simulations of Secs.~\ref{section:transition} and \ref{section:noise}. To demonstrate the mechanism of the gate, we project the Hamiltonian into the noninteracting computational subspace fixed at the sweet spot $\phi=\pi$. In the tensor-product basis $\{\ket{0}_A\ket{0}_{B,\pi},\ket{0}_A\ket{1}_{B,\pi},\ket{1}_A\ket{0}_{B,\pi},\ket{1}_A\ket{1}_{B,\pi}\}$, we thus find \begin{equation} \begin{aligned} \label{eq:pauli} \hat{H}_\phi & =-\dfrac{\hbar\omega_A}{2}\hat{\sigma}_{z,A}-\dfrac{\hbar\omega_{\phi}}{2}\hat{\sigma}_{z,B}+\dfrac{a_\phi}{2}\hat{\sigma}_{x,B} +g\hat{\sigma}_{x,A}\hat{\sigma}_{x,B} \,. \end{aligned} \end{equation} Here \begin{subequations} \begin{equation} \begin{aligned} \omega_\phi &= \omega_B -\dfrac{E_{J, B}(1+\cos\phi)}{\hbar}\\ &\times\left[\bra{1}_{B, \pi} \cos\hat{\varphi}_B\ket{1}_{B, \pi}-\bra{0}_{B, \pi} \cos\hat{\varphi}_B\ket{0}_{B, \pi}\right] \end{aligned} \end{equation} and \begin{equation} a_\phi =-2E_{J,B}\sin\phi\bra{0}_{B, \pi} \sin\hat{\varphi}_B \ket{1}_{B, \pi} \end{equation} describe diagonal and off-diagonal terms of qubit $B$'s Hamiltonian expressed in the $\phi=\pi$ basis and \begin{equation} g=J_C\bra{0}_{A}\hat{n}_{A}\ket{1}_{A} \bra{0}_{B, \pi}\hat{n}_{B}\ket{1}_{B, \pi} \end{equation} \end{subequations} is the effective interaction strength in the computational subspace. For vanishing interaction ($g=0$), the energy gap $\hbar\Delta_\phi$ between crossing levels $\ket{01}_{\phi}$ and $\ket{10}_{\phi}$ is given by \begin{equation} \label{eq:gap} \Delta_{\phi}=\omega_A- \sqrt{\omega_\phi^2+a^2_\phi/\hbar^2}\,. \end{equation} This gap gives the distance between the two lines in Fig.~\ref{Fig:explanation}(b) except that a realistic multi-level fluxonium model was used for numerical results in the figure. At the level crossing, $\Delta_{\phi}$ vanishes and $a^2_\phi=\hbar^2|\omega_A^2-\omega_\phi^2|$. When $g\neq 0$, the interaction introduces an off-diagonal term in the reduced Hamiltonian in the two-dimensional subspace $\mathcal{C} = \{\ket{0}_A\ket{1}_{B,\phi}, \ket{1}_A\ket{0}_{B,\phi}\}$: \begin{equation} \hat{H}^{(\rm red)}(\phi)=-\frac{1}{2}\Delta_{\phi}\hat{\sigma}_z^{01, 10} + g\cos\vartheta\hat{\sigma}_x^{01, 10}\,, \end{equation} where $\tan\vartheta=a_\phi/(\hbar\omega_\phi)$. This Hamiltonian describes the Larmor precession in the subspace $\mathcal{C}$. Our goal is then to quickly tune $\phi$ towards the level crossing $\Delta_\phi\approx 0$ and wait time $\sim h/g$ for states to evolve according to a desirable two-qubit gate. This gate operation based on tuning energies of states $\ket{01}_\phi$ and $\ket{10}_\phi$ is illustrated schematically in Fig.~\ref{Fig:explanation}(c). Our gate scheme in the computational subspace is easier to understand in the limit when changes of the magnetic flux are fast with respect to states $\ket{01}_\phi$ and $\ket{10}_\phi$, but sufficiently smooth and adiabatic for states $\ket{00}_{\phi}$ and $\ket{11}_{\phi}$, so they only accumulate some phases after the gate operation but do not mix. These requirements imply \begin{equation}\label{eq:gate_possibility_condition} g/\hbar \ll 1/t_r \ll \min(\omega_A, \omega_B)\,, \end{equation} where $t_r$ is the total time spent on tuning magnetic flux during the operation; see Fig.~\ref{Fig:explanation}(d) for an example of a pulse shape. In numerical simulations discussed in Sec.~\ref{section:transition}, we find that high-fidelity optimized gates are possible even when limits \eqref{eq:gate_possibility_condition} are not strict, so $g/\hbar < 1/t_r < \min(\omega_A, \omega_B)$. In addition to this condition, in a realistic multi-level fluxonium, the change of spectrum also has to be adiabatic with respect to transitions between computational and noncomputational levels such as between $\ket{11}_\phi$ and $\ket{12}_\phi$. This requirement is satisfied in the fluxonium because of its strong anharmonicity and thus a large spacing between computational and noncomputational levels. \section{Unitary Dynamics }\label{section:transition} By varying the external flux parameter $\phi=\phi_{B}$, we can modify the two-qubit spectrum. This way, as discussed in the previous section, see also Figs.~\ref{Fig:explanation}(b) and \ref{Fig:explanation}(c), the eigenenergies of states $\ket{10}_\phi$ and $\ket{01}_\phi$ can be quickly brought to the avoided-crossing point. While staying in the vicinity of this point, the state vector precesses in the $\ket{10}_\phi$ and $\ket{01}_\phi$ subspace and with proper timing, we can generate entangling gates. In this section, we introduce $\sqrt{i\textsc{swap}}$-like gates and simulate unitary dynamics of two coupled fluxonium qubits. \subsection{$\sqrt{i\textsc{swap}}$-like gates} We define an ideal target gate operation as the one where only mixing of states $\ket{01}_\pi$ and $\ket{10}_\pi$ occurs, while other transitions between basis states are not allowed. Using single-qubit $Z$ rotations both before and after the operation, any unitary operator describing such a gate can be reduced to the form \begin{equation} \label{eq:Uid} \hat{U}_{\rm ideal}(\theta,\zeta)=\begin{pmatrix} e^{-i\zeta/2} & 0 & 0 & 0 \\ 0 & \cos\frac\theta 2 & -i\sin\frac\theta 2 & 0 \\ 0 & -i\sin\frac\theta 2 & \cos\frac\theta 2 & 0 \\ 0 & 0 & 0 & e^{-i\zeta/2} \end{pmatrix}\,. \end{equation} Here $\theta$ is the rotation angle for the subspace $\{\ket{01}_\pi, \ket{10}_\pi\}$, and the second angle, $\zeta$, describes the common effect of accumulated phases. In particular, $\zeta$ includes a contribution due to an effective $ZZ$ term~\cite{Zhao2020, Ku2020} in Hamiltonian~\eqref{eq:ham}. In Eq.~\eqref{eq:Uid}, both angles $\theta$ and $\zeta$ are needed to parametrize gates up to single-qubit rotations. In general, two gates \eqref{eq:Uid} with different pairs $\theta$ and $\zeta$ cannot be reduced to one another by single-qubit rotations, i.e., they are from two different classes of local equivalence~\cite{Nesterov_2021}. The family of local-equivalence classes given by Eq.~\eqref{eq:Uid} spans the family of excitation-preserving gates for fermionic simulations~\cite{Kivlichan2018, Foxen_2020}. Some prominent members of the family are \textsc{cz} [$U_{\rm ideal}(0, \pi)$], $\sqrt{i\textsc{swap}}$ [$U_{\rm ideal}(\pi/2, 0)$], $i$\textsc{swap} [$U_{\rm ideal}(\pi, 0)$], and \textsc{swap} [$U_{\rm ideal}(\pi, \pi)$] operations, which have different entangling properties. Using entangling power $\mathcal{P}$ to characterize these properties~\cite{Zanardi_2000, Ma2007}, we observe that \textsc{cz} and $i$\textsc{swap} have maximally possible entangling power of $\mathcal{P} = 2/9$, while $\mathcal{P}=0$ for \textsc{swap} since it is not an entangling gate despite being a nonlocal operation. Here we consider the single-parameter subfamily of $\sqrt{i\textsc{swap}}$-like gates, which are parametrized by $U_{\rm ideal}(\pi/2, \zeta)$ with $\zeta$ varying between $0$ and $2\pi$. This group of gates includes $\sqrt{i\textsc{swap}}$ itself as well as $\sqrt{\textsc{swap}}$ [$U_{\rm ideal}(\pi/2, \pi/2)$] and $\sqrt{\textsc{swap}}^\dagger$ [$U_{\rm ideal}(\pi/2, 3\pi/2)$]. We observe that for $U_{\rm ideal}(\pi/2, \zeta)$ gates, $\mathcal{P}=1/6$ regardless of the phase $\zeta$, cf.~\cite{Nesterov_2021}. For the gates family \eqref{eq:Uid}, this robustness of $\mathcal{P}$ with respect to variations of $\zeta$ is a special property of $\theta=\pi/2$ and is not the case for other mixing angles. To find coherent gate fidelity for a realistic simulated unitary operator acting in a larger Hilbert space with noncomputational levels and with possible leakage to those levels, we first project it into the computational subspace to obtain $\hat{U}_{\rm sim}$. We calculate \begin{equation}\label{eq:phase} \zeta = -\beta_{00} - \beta_{11} + \beta_{01} + \beta_{10}\,, \end{equation} where $\beta_{kl} = \mathrm{arg}\bra{kl} \hat{U}_{\rm sim}\ket{kl}$ is the diagonal-matrix-element phase of the simulated operator, and define the ideal target operator as $\hat{U}_{\rm ideal}(\pi/2, \zeta)$ according to Eq.~\eqref{eq:Uid}. Thus, an appropriate local-equivalence class is chosen each time a new computation is performed. We then find $\hat{U}_{\rm sim}'$ by applying single-qubit $Z$ rotations to adjust phases of relevant matrix elements of $\hat{U}_{\rm sim}$ to make their structure be the same as in Eq.~\eqref{eq:Uid}. For example, we ensure that ${\rm arg}\bra{01} \hat{U}_{\rm sim}'\ket{01} = {\rm arg}\bra{10} \hat{U}_{\rm sim}'\ket{10} = 0$. Finally, we calculate coherent gate fidelity $F$ according to the standard expression~\cite{Pedersen2007}: \begin{equation} F= \dfrac{\Tr(\hat{U}_{\rm sim}'^{\dagger}\hat{U}_{\rm sim}')+\abs{\Tr[\hat{U}_{\rm ideal}(\pi/2,\zeta)\hat{U}_{\rm sim}']}^2}{20}\,. \end{equation} \subsection{Optimization of the fast flux pulse} In this section, we present our analysis of the system dynamics described by the full Hamiltonian~\eqref{eq:ham} in response to time-dependent flux bias for fluxonium $B$, while keeping fluxonium $A$ at its sweet spot. For numerical simulations, we use single-qubit parameters as presented in Table~\ref{table:para} and choose the coupling constant to be $J_C/h=\SI{0.3}{\giga\hertz}$. For these parameters, the fixed-$\phi_A$ avoided level crossing takes place at $\phi_{B}=\phi= \pi\pm \delta\phi_{*}$ with $\delta\phi_* \approx 0.0705\pi$. Detuning the external flux through fluxonium $B$ by a shift of $\delta\phi_{*}$, we can induce precession in the subspace of $\ket{01}_{\pi + \delta\phi_{*}}$ and $\ket{10}_{\pi + \delta\phi_{*}}$ states and generate entanglement between the qubits, see Sec.~\ref{section:2qubit}B. The avoided-level-crossing energy splitting is $E_{10-01}/h=\SI{30}{\mega\hertz}$, meaning that the gate with $\theta = \pi/2$ in Eq.~\eqref{eq:Uid} can be faster than 20 ns. To suppress leakage to other states, we detune the flux of qubit B from the sweet spot using a smooth Gaussian square pulse with ramp up and down times $t_r/2$ each, plateau time $t_p$, and flux detuning at the plateau $\delta\phi$, see Fig.~\ref{Fig:explanation}(d). The pulse is then defined through \begin{subequations} \begin{equation}\label{eq:pulse} \phi(t)=\pi+ C\delta\phi \left\{\exp\left[-A\dfrac{\bar{t}(\bar{t}-t_r)}{t_r^2}\right]-1\right\} \end{equation} when $0\leq t\leq t_r/2$ or $t_p+t_r/2\leq t \leq t_p + t_r$ and through \begin{equation}\label{eq:pulse_plateau} \phi(t)=\pi + \delta\phi \end{equation} \end{subequations} when $t_r/2 \leq t \leq t_p + t_r/2$. Here $C=[\exp(A/4)-1]^{-1}$ is the normalization factor, and the time variable $\bar{t}$ is defined as \begin{equation} \bar{t}= \begin{cases} t & t\leq t_r/2\,,\\ t-t_p & t\geq t_r/2+t_p\,. \end{cases} \end{equation} We note that the actual flux detuning $\delta\phi$ could deviate from the level crossing $\delta\phi_*$, while the gate fidelity remains high by adjusting plateau duration, which we shall demonstrate below. \begin{figure} \centering \includegraphics[width=\textwidth]{complete007.pdf} \caption{Optimized total gate duration (a) and coherent gate error (b) versus flux detuning at the plateau section of the flux pulse, see Eqs.~\eqref{eq:pulse} and \eqref{eq:pulse_plateau}. The red dots are the exact simulation data, and the dashed blue curve is a smooth fitting. Notice an asymmetry around the avoided-level-crossing detuning $\delta\phi_*\approx 0.0705\pi$. \label{Fig:inf}} \end{figure} For numerical simulations of gate dynamics, we use QuTiP package for Python~\cite{Johansson2012, Johansson2013}. For each qubit, we first write Hamiltonian~\eqref{eq:qubits} in the basis of at least 30 harmonic-oscillator eigenstates of the same Hamiltonian but with $E_J = 0$. Then, we compute the eigenspectrum of the full single-qubit Hamiltonian~\eqref{eq:qubits} and choose $n=5$ lowest energy states at the sweet spot. We have verified that truncating the single-qubit spectrum at five levels produces sufficiently accurate results for gate dynamics, which are practically not affected by an increase in $n$ up to 10 levels. Using two sets of sweet-spot eigenstates for both qubits, we form the two-qubit tensor-product basis of $n\times n$ levels and the two-qubit Hamiltonian \eqref{eq:ham}. We perform all the computations in this tensor-product basis, which we refer to as the sweet-spot basis. To simulate the gate operation, we focus on the interacting computational subspace and find the final state for each eigenvector (or the density matrix) of that subspace. This way, we reconstruct the evolution matrix (or quantum process) of the gate, which is generally nonunitary if projected into the computational subspace. We first study the gate performance as a function of flux detuning $\delta\phi$. For each value of $\delta\phi$, we optimize over pulse parameters $t_r,t_p,$ and $A$. We plot optimized gate duration $t_r + t_p$ and optimized infidelity vs $\delta\phi$ in Fig.~\ref{Fig:inf}. Below we identify and discuss three different regions defined by $\delta\phi$. The first and main region of interest is the valley in Fig.~\ref{Fig:inf}(b) defined by $0.067\pi\leq\delta\phi\leq0.075\pi$. In this valley, $\delta\phi$ is close to the avoided-level-crossing point $\delta\phi_*$, so the noninteracting gap~\eqref{eq:gap} is small and gate dynamics resembles that of an ideal gate discussed above. Figure~\ref{Fig:inf}(b) shows that the coherent gate error in the valley is below $10^{-7}$, which is a sufficiently small number to be potentially affected by the machine's computational precision. Although such a high precision is sensitive to fluctuations of the pulse parameters, we demonstrate in Sec.~\ref{sensitivity} that the gate operated in this parameter regime has a stable high fidelity above $99.99\%$. This number is sufficient for quantum error correction~\cite{bravyi1998quantum, Fowler2012} and can help extending the depth of circuits executable on noisy intermediate-scale processors~\cite{Preskill2018quantumcomputingin}. In addition, Fig.~\ref{Fig:inf}(a) demonstrates that the total gate duration in the valley is below 20 ns, implying that flux detuning pulses can deliver extremely fast and high-fidelity $\sqrt{i\textsc{swap}}$-like gates. For undershooting detuning, $\delta\phi<0.067\pi$, the optimized gate fidelity drops fast below $0.9$. Since the avoided level crossing area is not reached for such detunings, amplitude $\lambda$ in expansion $\ket{10}_\pi \propto \ket{10}_{\pi + \delta\phi} + \lambda\ket{01}_{\pi + \delta\phi}$ is not sufficiently large to produce a desired mixing of $\ket{01}_\pi$ and $\ket{10}_\pi$ by Larmor precession at $\phi = \pi + \delta\phi$. In comparison, when $\delta\phi = \delta\phi_*$, we find $|\lambda|=1$, so an operation with any mixing angle $\theta$ is possible. The high-fidelity valley as in Fig.~\ref{Fig:inf}(b) narrows for larger rotations angles $\theta$. Accurate gate operations with a smaller angle $\theta$ in Eq.~\eqref{eq:Uid} are possible in a wider region. On the other hand, for overshooting detuning, $\delta\phi>\delta\phi_*$, the optimized gate fidelity can still exceed $0.999$. This high fidelity is possible because for large detuning amplitude, the system goes through the avoided level crossing and experiences the Landau-Zener transition between $\ket{01}_{\phi}$ and $\ket{10}_{\phi}$ states twice~\cite{Oliver2005, Berns2006}. With proper phase accumulation between the transitions, a proper full evolution can be reduced to the desired form, Eq.~\eqref{eq:Uid}. \subsection{Gate dynamics in the high-fidelity region} \label{sensitivity} Here we discuss gate dynamics in the high-fidelity valley of Fig.~\ref{Fig:inf}(b) in more detail. We first address the effects of timing and flux errors in pulse parameters, see Eqs.~\eqref{eq:pulse} and \eqref{eq:pulse_plateau}. To elaborate on this issue, we study gate fidelity as a function of $\delta\phi$ and $t_p$ with the ramp time and the Gaussian envelope parameter being fixed at $t_r=\SI{7.05}{\nano\second}$ and at $A=16.741$, respectively. These values of $t_r$ and $A$ are chosen as being close to the optimal values in the vicinity of $\delta\phi = 0.07\pi$ in the high-fidelity valley of Fig.~\ref{Fig:inf}(b). Plotting $F$ vs $\delta\phi$ and $t_p$ in Fig.~\ref{Fig:colormap}, we observe a triangle-shaped high-fidelity contour line with flux detuning $0.067\pi\leq\delta\phi\leq0.075\pi$. We find that with small variations in $\delta\phi$, coherent gate error can be kept below $10^{-6}$ by properly choosing plateau time along this high-fidelity contour. For successful error corrections, it is sufficient to have gate errors only below $10^{-4}$, which is also a realistic target goal given presently available best coherence times. For this error threshold, the allowed time interval error for plateau times for a given flux detuning is at least around $\SI{0.2}{\nano\second}$. The effects of flux errors are discussed in more detail in Sec.~\ref{section:noise}. \begin{figure} \centering \includegraphics[width=\textwidth]{colormap007_long.pdf} \caption{Coherent gate error versus flux-pulse parameters $\delta\phi$ and $t_p$ with other pulse parameters being fixed at $t_{r}=\SI{7.05}{\nano\second}$ and $A=16.741$. Points a and b are at the avoided level crossing $\delta\phi=\delta\phi_*$. The evolution of state $\ket{01}_\pi$ at parameters of points a-d is illustrated in time domain in Fig~\ref{Fig:bloch}. Parameters of points c and e, where point e is the bottom-most point of the high-fidelity contour, are used to plot Fig.~\ref{Fig:noise}.} \label{Fig:colormap} \end{figure} Along the high-fidelity contour, gate operations have similar entangling power as each of them is very close to $\hat{U}_{\rm ideal}(\pi/2, \zeta)$ for some $\zeta$. They, however, formally belong to different classes of local equivalence since they have different phases $\zeta$ calculated according to Eq.~\eqref{eq:phase}. Nevertheless, changes in $\zeta$ along the contour are less than $0.08\pi$ and are thus small with the values of $\zeta$ being primarily determined by $t_p$ rather than $\delta\phi$. To demonstrate how the dynamics differ along the contour, we pick four points to study evolution in time domain. Using the instantaneous basis $\{\ket{01}_{\phi(t)},\ket{10}_{\phi(t)}\}$, in Fig.~\ref{Fig:bloch}, we illustrate the evolution of eigenstate $\ket{01}_{\pi}$ of the full Hamiltonian~\eqref{eq:ham} by using the Bloch-sphere representation (left) and by plotting occupation probabilities (right). \begin{figure} \includegraphics[width=\textwidth]{evolution.pdf} \caption{ Unitary gate dynamics in the $\{\ket{10}_{\phi(t)}, \ket{01}_{\phi(t)}\}$ subspace for starting state $\ket{01}_\pi$. Left: Bloch-sphere trajectories for the ramp-on (blue), plateau (red), and ramp-off (green) parts of the flux pulse. Right: populations of states $\ket{01}_{\phi(t)}$ (solid orange lines) and $\ket{10}_{\phi(t)}$ (dashed blue lines). Panel labels correspond to pulse parameters of points a, b, c, and d in Fig. \ref{Fig:colormap}: (a) $t_{p}=\SI{25.85}{\nano\second}, \delta\phi=0.0705\pi$, (b) $t_{p}=\SI{7.30}{\nano\second}, \delta\phi=0.0705\pi$, (c) $t_{p}=\SI{12.05}{\nano\second}, \delta\phi=0.0674\pi$, and (d) $t_{p}=\SI{9.00}{\nano\second}, \delta\phi=0.07482\pi$. Coherent gate fidelity exceeds $99.9999\%$ for each of the four points. } \label{Fig:bloch} \end{figure} Both Figs.~\ref{Fig:bloch}(a) and \ref{Fig:bloch}(b) demonstrate the gate operation for pulses with $\delta\phi = \delta\phi_*$, which bring the system precisely to the avoided levels crossing. Therefore, a fast ramp-up acting on state $\ket{01}_\pi$ results in an equal superposition of states $\ket{01}_\phi$ and $\ket{10}_\phi$, so the state is close to the Bloch-sphere equator during the plateau portion of the pulse. Figures~\ref{Fig:bloch}(a) and \ref{Fig:bloch}(b) correspond to two significantly different plateau times $t_p$, which both generate high-fidelity gates, but with different relative phases of states $\ket{01}_\phi$ and $\ket{10}_\phi$. These phases accumulated on the equator of the Bloch sphere during the flat part of the pulse differ by $\pi$. Figure \ref{Fig:bloch}(c) corresponds to the leftmost point of the high-fidelity contour in Fig.~\ref{Fig:colormap}, where $\delta\phi < \delta\phi_*$, so the state does not cross the equator of the Bloch sphere during the ramp-up portion of the pulse. In comparison, in Fig.~\ref{Fig:bloch}(d), $\delta\phi > \delta\phi_*$, so the state crosses the equator during the ramp-up portion. Both the probability plots and the Bloch spheres in Fig.~\ref{Fig:bloch} suggest that transitions between instantaneous states $\ket{01}_\phi$ and $\ket{10}_\phi$ happen only during the ramp up and down parts of the pulse. During the plateau, the amplitudes of $\ket{01}_\phi$ and $\ket{10}_\phi$ are constant, so the latitudes of the quantum states on the Bloch sphere remain constant as well. The function of the flat portion of the pulse is to wait for a state to precess in order to accumulate a proper phase difference between $\ket{01}_\phi$ and $\ket{10}_\phi$ in their superposition, so that the rotation happening during ramping down results in a proper final combination of $\ket{01}_\pi$ and $\ket{10}_\pi$. All the final states in Fig.~\ref{Fig:bloch} are located on the equator of the Bloch sphere, but have different phases, which can be absorbed into $\zeta$ of Eq.~\eqref{eq:Uid}. We however note that Bloch-sphere representations of quantum states in Fig.~\ref{Fig:bloch} do not describe additional $Z$ rotations that are used as a final step to reduce the operator to the standard form (\ref{eq:Uid}). The main factors contributing to gate errors in superconducting qubits are leakage to noncomputational levels, flux noise, and the decoherence. One advantage of the fast flux pulse gate is that the leakage can be greatly suppressed in fluxonium qubits, where the computational subspace is well separated from higher states, normally by several gigahertz, so flux pulses discussed in this paper do not drive state out of the computational subspace. According to numerical simulations, the probability of exciting to a noncomputational level in the middle of the gate operation is below $10^{-7}$ for any initial computational basis state. Due to such extraordinarily low leakage, our main concern for gate error is the error induced by nonunitary processes in the computational subspace, which is discussed in the next section. \section{Nonunitary evolution}\label{section:noise} Here we discuss effects of the environment on gate performance. Among these effects, two main sources of gate error are relaxation processes and low-frequency flux noise. We first focus on the gate error coming from relaxation. To account for these processes, we make an assumption that the decay channel is that of the single qubits at sweet spot. We write the master equation on the density matrix $\hat{\rho}(t)$ as \begin{equation} \begin{aligned} \Dot{\hat{\rho}}(t)&=-\dfrac{i}{\hbar}\comm{\hat{H}(t)}{\hat{\rho}(t)}\\&+\sum_{\alpha=A,B}\left[2\hat{c}_{\alpha}\hat{\rho}(t)\hat{c}_{\alpha}^{\dagger}-\hat{\rho}(t)\hat{c}_{\alpha}^{\dagger}\hat{c}_{\alpha}-\hat{c}_{\alpha}^{\dagger}\hat{c}_{\alpha}\hat{\rho}(t)\right]\,, \end{aligned} \end{equation} where $\hat{H}(t)$ is defined in Eq.~\eqref{eq:ham} and the collapse operators are given by \begin{equation} \hat{c}_{\alpha}=\dfrac{1}{\sqrt{T_{1,\alpha}}}\ket{0}_{\alpha, \pi}\bra{1}_{\alpha, \pi}\,. \end{equation} Here we also assume that both qubits have identical relaxation times $T_{\alpha, 1} = T_1$. To find fidelity for such a relaxation process, we first find the process fidelity $F_p=\Tr(\chi_{\mathrm{ideal}}\chi_{\mathrm{sim}})$~\cite{Chow_2009}, where $\chi_{\mathrm{ideal}}$ is the $\chi$ matrix for the ideal entangling gate, and $\chi_{\mathrm{sim}}$ is the simulated $\chi$ matrix of the actual quantum process. We find the gate fidelity empirically to be $F_g=[4F_p+\Tr(\chi_{\mathrm{sim}})]/5$, which connects gate and process fidelity and accounts for leakage~\cite{Nielsen_2002}. Using optimal pulse parameters found for unitary evolution of Sec.~\ref{section:transition}, with the assumption that both qubits have $T_1$ of $\SI{100}{\micro\second}$, we find the best gate fidelity to be $F_g=99.99\%$. Thus, although incoherent processes substantially increase gate error up from $10^{-7}$, we still obtain an error rate that is sufficient for quantum error corrections. The main reason for such a high fidelity is that the total gate duration is almost $10^4$ times smaller than $T_1$, thus the operation is completed before the decay processes become significant. \begin{figure} \includegraphics[width=\textwidth]{dissipation_complete.pdf} \caption{Left column: the gate error vs $\delta\phi$, the flux detuning at the plateau, at a fixed duration of the plateau $t_p=\SI{6.95}{\nano\second}$ (a) and $\SI{12.05}{\nano\second}$ (c). Right column: the gate error vs $t_p$ at a fixed $\delta\phi=0.0723\pi$ (b) and $0.0674\pi$ (d). Shown are the results with no relaxation (solid blue lines), with $T_1=\SI{100}{\micro\second}$ (orange dashed lines), and with $T_1=\SI{10}{\micro\second}$ (green dash-dot lines). Fixed fluxes and times are chosen from the high-fidelity contour in Fig.~\ref{Fig:colormap} for points labeled as e (top row) and as c (bottom row). } \label{Fig:noise} \end{figure} We now discuss gate error due to low-frequency flux noise. For fast flux tunable gates discussed here, external magnetic flux $\phi_\alpha$ in Eq.~(\ref{eq:qubits}) is controlled by two sources and we express it as the sum $\phi_\alpha = \phi_{\alpha, {\rm slow}} + \phi_{\alpha, {\rm fast}}$. The first contribution describes the source that enables relatively large values of $\phi_\alpha$, which cannot be changed fast, and also incorporates low-frequency flux noise. It is this source that is used to park qubits at the sweet spots, so, ideally, $\phi_{\alpha, {\rm slow}} = \pi$. On the contrary, the second source allows for fast, but small changes in magnetic flux, and is used to quickly tune qubit $B$ away from its sweet spot as described by flux pulse in Eqs.~(\ref{eq:pulse}) and (\ref{eq:pulse_plateau}). At the sweet spot, where qubits are parked while idling and during single-qubit gates, we have $\phi_{\alpha, {\rm fast}} = 0$. Qubit transition frequencies are susceptible to low-frequency flux noise in $\phi_{\alpha, {\rm slow}}$, but only via second- and higher-orders sensitivity, resulting in a contribution to total qubit dephasing. On the other hand, even if fast flux pulses $\phi_{B, {\rm fast}}(t)$ are stable between different gate operations, low-frequency noise in $\phi_{B, {\rm slow}}$ may result in starting values of $\phi_{B}$ at the beginning of the pulse being different from $\pi$ and, therefore, may result in $\phi_B$ at the plateau of the pulse exhibiting small fluctuations between different gate operations. The gate error due to this effect can be estimated as the error due to miscalibration in the flux-pulse parameters. We presented sensitivity to this type of control error in Fig.~\ref{Fig:colormap} and discuss it in more detail below. In Fig.~\ref{Fig:noise}, we combine the effects of both types of errors discussed in this section. We show the dependence of gate error on the height of the flux pulse and duration of the plateau time for both unitary evolution (solid blue lines) and for two different relaxation times (dashed orange and dash dot green lines). Top (bottom) row of Fig.~\ref{Fig:noise} shows the results for the horizontal and vertical line cuts at point e (point c) of the two-dimensional color plot of Fig.~\ref{Fig:colormap}. As expected, Fig.~\ref{Fig:noise} demonstrates that gate error increases with $T_1$ decreasing. However, even for a relatively short relaxation time of 10 $\mu$s, we observe gate errors that are only around $10^{-3}$ because of short gate durations. We also observe that the width of the valley around local minima of infidelity increases with $T_1$ decreasing, which indicates that while the optimized error increases at shorter relaxation times, the gate becomes less sensitive to control errors and errors due to flux noise. For relaxation times that are at least 100 $\mu$s, Fig.~\ref{Fig:noise}(a) suggests that the gate error remains below $10^{-4}$ in the presence of flux noise below $10^{-3}$ of the flux quantum $2e/h$. For other working points, e.g., Fig.~\ref{Fig:noise}(c), which corresponds to point c in Fig.~\ref{Fig:colormap}, the gate is more sensitive to flux noise, but flux noise $10^{-4}\times 2e/h$ is still compatible with the gate error below $10^{-4}$. In simulations of unitary dynamics in Sec.~\ref{section:transition}, we found the lowest infidelity to be below $10^{-7}$. Such a small number may be affected by machine precision and may be easily destroyed by a small shift in the plateau time or flux detuning. However, we notice that in the cases of $T_1=\SI{100}{\micro\second}$ in Fig.~\ref{Fig:noise}, the infidelity curves show a relatively flat valley at $1-F \approx 10^{-4}$. Therefore, even though the machine precision might affect the optimized coherent gate error, which demonstrates sharp dips in Fig.~\ref{Fig:noise}, we are still confident that with long coherence time of fluxonium qubit, the gate can achieve a stable fidelity that is greater than $99.99\%$. \section{Conclusion}\label{section:conclusion} We have presented a way to build a fast $\sqrt{i\textsc{swap}}$-like gate on fluxonium qubits using flux detuning with fidelity greater than $99.99\%$. The gate is turned on by tuning qubit frequency with an external magnetic flux to the avoided level crossing point for energies of $\ket{01}$ and $\ket{10}$ states. We have demonstrated gate operation via simulations with Gaussian flat-top flux pulses that enable correct mixing of states $\ket{01}$ and $\ket{10}$ and heavily suppressed probability of transitions between other states. In particular, this fast flux tunable gate for fluxonium qubits has the advantage of practically zero leakage out of the computational subspace without any additional steps. In comparison, flux-tunable gates with weakly anharmonic qubits may require more advanced techniques such as a net zero scheme to mitigate leakage~\cite{Rol_2019, Negirneac_2021}. We have also investigated the effects of the flux noise and qubit relaxation. We have found that the relaxation times of 100 $\mu$s and flux noise below $10^{-3}\times 2e/h$ are sufficient to keep the gate error below $10^{-4}$, while flux noise below $10^{-4}\times 2e/h$ provides more freedom in choosing parameters of the flux pulse. A more modest error threshold of $10^{-3}$ requires relaxation times of only 10 $\mu$s. We have also made a detailed comparison of gate dynamics at four different sets of flux parameters that result in high coherent fidelity. As displayed in Fig.~\ref{Fig:bloch}, their difference is determined by whether the state in instantaneous basis crosses the equator of the Bloch sphere or not. We believe that our proposal provides a promising way for building a fast entangling gate with fluxonium qubits that is robust against flux noise, has practically zero leakage, and is not noticeably affected by qubit relaxation. \begin{acknowledgements} We acknowledge the support from ARO-LPS HiPS program (grant No. W911NF-18-1-0146). V.E.M. and M.G.V acknowledge the Faculty Research Award from Google and fruitful conversations with the members of the Google Quantum AI team. We used the QuTiP software package~\cite{Johansson2012, Johansson2013} and performed computations using resources and assistance of the UW-Madison Center For High Throughput Computing (CHTC) in the Department of Computer Sciences. The CHTC is supported by UW-Madison, the Advanced Computing Initiative, the Wisconsin Alumni Research Foundation, the Wisconsin Institutes for Discovery, and the National Science Foundation. \end{acknowledgements}
\section{Introduction} Let $\hilbertX$ be a real vector space. We consider the minimization problem of the form \begin{equation} \label{problem} \tag{P} \text{Min}_{x\in \hilbertX}\ \ f(x)+g(x). \end{equation} where $f,g:\hilbertX\rightarrow (-\infty,+\infty]$. \vspace{0.2cm} \noindent {\bf Our standing assumptions and notations are as follows.} \begin{itemize} \item[(a)] $\Phi$ and $\Psi$ are classes (closed under addition of real constants) of real-valued functions $\varphi:\hilbertX\rightarrow \mathbb{R}$, called elementary functions, of simple structure, e.g. affine, quadratic, step functions. In the sequel, we put additional requirements on sets of elementary functions of algebraic character when needed, e.g. in some of constructions and theorems we assume that $\Phi$ is symmetric ($\Phi=-\Phi$), and/or $\Phi$ is additive, ($\Phi+\Phi\subset\Phi$). \item[(b)] A function $f:X\rightarrow(-\infty,+\infty]$ is proper, i.e., the domain of $f$ is nonempty, i.e. $$ \text{dom}(f):=\{x\in X \ : \ f(x)<+\infty \}\neq \emptyset. $$ and $g:X\rightarrow(-\infty,+\infty]$ is proper and $\dom (f)\cap \dom (g)\neq\emptyset$. \item[(c)] When $\hilbertX$ is a Hilbert space the inner product is denoted by $\langle\cdot\mid\cdot\rangle$ and the associated norm is $\|\cdot\|$. \end{itemize} Main tool of the present investigation is the abstract convexity theory, called $\Phi$-convexity. The origins of the $\Phi$-convexity theory goes back to the investigations of Ky Fan \cite{kyfan2}, Moreau \cite{moreau}, and Rubinov and Kutateladze \cite{KutRub72}. Applications in optimization were investigated e.g. by Balder \cite{balder}, Dolecki and Kurcyusz \cite{dolecki-k}, Pallaschke \& Rolewicz \cite{rolewicz}, Rubinov \cite{rubbook}, in mass transport by R\"{u}schendorf \cite{Ruschendorf}. The underlying idea of $\Phi$-convexity also called {\em convexity without linearity}, is to replace the classical bi-linear coupling functions used in the convex analysis by general (possibly nonlinear) coupling functions. $\Phi$-convexity provides a framework for the analysis of important classes of nonconvex problems. In the case of bi-linear coupling, this framework allows for the retrieval, and sometimes refinement, of classical results of convex analysis. $\Phi$-convexity provides global tools for investigating nonconvex objects and offers a framework for investigating global optimization problems, see, e.g. the monographs by Alexander Rubinov \cite{rubbook}, and by Diethard Pallaschke \& Stefan Rolewicz \cite{rolewicz}. Basic concepts of $\Phi$-convexity theory from a historical perspective, its r\^ole in global optimization and duality theory have been recently discussed in several presentations during the on-line WOMBAT 2020 meeting (https://wombat.mocao.org/wombat-2020/recordings/). An important class of $\Phi$-convex functions are $\Phi_{lsc}$-convex functions defined on a Hilbert space with elementary functions defined by \eqref{philsc}. In a series of papers, \cite{Rolewiczpara}, \cite{rolewicz1979}, \cite{rolewicz2000}, Stefan Rolewicz investigated particular subclass of $\Phi_{lsc}$-convex functions, called paraconvex functions (weakly convex, semiconvex) functions. Formulae for $\Phi$-subdifferentials, $\Phi$-conjugates, $\Phi$-infimal convolution for the sum of two functions have been studied by Jeyakumar, Rubinov \& Wu \cite{JRW} who also provided generalizations of the results obtained for convex problems by Burachik \& Jeyakumar in \cite{burjey}. The results of \cite{JRW} have been generalized by Bui, Burachik, Kruger \& Yost in \cite{bui2020zero} to the sum of any finite number of functions $f_{i}$, $i=1,...,m$. In \cite{bui2020zero} the the dual problem $(ICD)$ is formulated on the basis of the $\Phi$-infimal convolution of $\Phi$-convex conjugates of functions $f_{i}$ in the classes of elementary functions $\Phi$ for which $0\in\Phi$ and $\Phi+\Phi\subset\Phi$. In the present paper, we construct a $\Phi$-conjugate dual $(CD)$, where $0\in\Phi$, for the problem of minimizing the sum of two proper functions which is based on the perturbation function $p(\cdot,\cdot)$. We calculate the $c$-conjugate $p_{c}^{*}(\cdot,\cdot)$ with respect to a suitably chosen coupling function $c$ and we define the dual $(CD)$ as the problem of maximizing the function $-p^{*}_{c}(0,\cdot)$. This approach coincides with the approach to conjugate duality in the convex case, see e.g. \cite{bot, Bonnans}. We also introduce the $\Phi$-Lagrangian function ${\mathcal L}(\cdot,\cdot)$ for which the $\Phi$-Lagrangian dual \eqref{lagdual} is equivalent to the $\Phi$-conjugate dual problem $(CD)$. The question of conditions ensuring zero duality gap is approached via minimax theorems obtained by Syga in \cite{syga} and \cite{Syga2018} for classes of elementary functions $\Phi$ which are convex sets. In Theorem 3.1 and Theorem 4.1 of \cite{syga}, the so-called {\em intersection property} is proved to be a necessary and sufficient condition for the minimax equality to hold. These results allow us to prove that the intersection property for the $\Phi$-Lagrange function is necessary and sufficient for zero duality gap both in the $\Phi$-Lagrangian and the $\Phi$-conjugate dualities. We investigate the relationships between $\Phi$-infimal convolution dual $(ICD)$ and the $\Phi$-conjugate dual problem $(CD)$ zero duality gap conditions obtained in \cite{bui2020zero}. The contribution of the paper is as follows. \begin{enumerate} \item[-] Construction of the conjugate dual $(CD)$ via the conjugate $p_{c}^{*}(\cdot,\cdot)$ of the perturbation function $p$ with respect to the coupling function $c$ (formula \eqref{cpl1}) (Section 3 and Section \ref{section4}). \item[-] Construction of the Lagrangian dual equivalent to the conjugate dual (Section 5). \item[-] Derivation of conditions for zero duality gap in the form of the so-called {\em intersection property} and discussion of its relationship to respective conditions for $\Phi$-inf convolution-based zero duality gap proved in \cite{bui2020zero} (Section 6). \item [-] Definition of $\Phi$-KKT conditions and characterization of solutions to problems $(P)$ and $(CD)$. (Section 7). \end{enumerate} \section{Preliminaries} \subsection{Abstract Convexity} Let $\Phi$ be a set of elementary real-valued functions $\varphi:\hilbertX\rightarrow \mathbb{R}$ and $f:\hilbertX\rightarrow(-\infty,+\infty]$. The set $$ \text{supp}_{\Phi}(f):=\{\varphi\in \Phi\ :\ \varphi\le f\} $$ is called the {\em support} of $f$ with respect to $\Phi$, where, for any $g,h:\hilbertX\rightarrow(-\infty,+\infty]$, $g\le h\ \Leftrightarrow\ g(x)\le h(x)\ \ \forall\ x\in \hilbertX.$ We will use the notation $\text{supp}(f)$ whenever the class $\Phi$ is clear from the context. Elements of class $\Phi$ are called elementary functions. \begin{definition}(\cite{dolecki-k}, \cite{rolewicz}, \cite{rubbook}) \label{convf} A function $f:\hilbertX\rightarrow (-\infty,+\infty]$ is called {\em $\Phi$-convex on $\hilbertX$} if $$ f(x)=\sup\{\varphi(x)\ :\ \varphi\in\textnormal{supp}(f)\}\ \ \forall\ x\in \hilbertX. $$ If the set $\hilbertX$ is clear from the context, we simply say that $f$ is {\em $\Phi$-convex}. \end{definition} \subsection{$\Phi$-subgradients} \begin{definition} [see e.g. formula 1.1.1 of \cite{rolewicz} and Definition 1.7 of \cite{rubbook}] \label{def_subgradient_gen} An element $\varphi\in\Phi$ is called a {\em $\Phi$-subgradient} of a function $f:\hilbertX\rightarrow (-\infty,+\infty]$ at $\bar{x}\in\text{dom\,} f$, if the following inequality holds \begin{equation} \label{phi_sub} f(x)-f(\bar{x}) \geq \varphi(x)-\varphi(\bar{x}) \ \ \forall \ x\in \hilbertX.\end{equation} The set of all $\Phi$-subgradients of $f$ at $\bar{x}$ is denoted as $\partial_{\Phi} f(\bar{x})$. For characterizations of subgradients see Proposition 1.2, Proposition 1.3 of \cite{rubbook} and formula $1.1.7_{max}$ of \cite{rolewicz}. \end{definition} \begin{definition} [see e.g. Definition 7.8 of \cite{rubbook}, formula $1.1.1_{\varepsilon}$ of \cite{rolewicz}] An element $\varphi\in\Phi$ is called a {\em $\Phi$-$\varepsilon$-subgradient} of a function $f:\hilbertX\rightarrow (-\infty,+\infty]$ at $\bar{x}\in\text{dom\,} f$, if the following inequality holds \begin{equation} \label{phi_sub1} f(x)-f(\bar{x}) \geq \varphi(x)-\varphi(\bar{x})-\varepsilon \ \ \forall \ x\in \hilbertX. \end{equation} The set of all $\Phi$-$\varepsilon$-subgradients of $f$ at $\bar{x}$ is denoted as $\partial^{\varepsilon}_{\Phi} f(\bar{x})$. If $f$ is $\Phi$-convex on $\hilbertX$, then, for every $\varepsilon>0$, the domain of the $\varepsilon$-subdifferential mapping $\text{dom}\partial^{\varepsilon}_{\Phi} f=\{x\in\hilbertX\ \mid\ \partial^{\varepsilon}_{\Phi} f(x)\neq\emptyset\}$ coincides with $\text{dom\,}f.$ \end{definition} \subsection{$\Phi$-conjugation} \label{conjugation} Let $f:\hilbertX\rightarrow(-\infty,+\infty]$. The function $f^{*}_{\Phi}:\Phi\rightarrow(-\infty,+\infty]$, \begin{equation} \label{conjugate} f^{*}_{\Phi}(\varphi):=\sup_{x\in X} (\varphi(x)-f(x)) \end{equation} is called the {\em $\Phi$-conjugate} of $f$ (see e.g.\cite{moreau}). The function $f^{*}_{\Phi}$ is convex whenever $\Phi$ is convex. For the characterisation of the epigraph of $f_{\Phi}^{*}$, see e.g. Proposition 7.8 of \cite{rubbook}. Accordingly, the {\em $\Phi$-bi-conjugate} of $f$ is defined as $$ f^{**}_{\Phi}(x):=\sup_{\varphi\in\Phi}(\varphi(x)-f^{*}_{\Phi}(\varphi)). $$ The following relationships between $\varepsilon$-$\Phi$-subgradients, conjugate and biconjugate functions hold. \begin{theorem} \label{conju} Let $f:\hilbertX\rightarrow(-\infty,+\infty]$. \begin{enumerate} \item[(i)] Fenchel-Moreau inequality: For every $x\in\text{dom\,}(f)$ and every $\varphi\in\Phi$ \begin{equation} \label{eq-eps_con1} f(x)+f_{\Phi}^{*}(\varphi)\ge\varphi(x). \end{equation} \item[(ii)] For every $x\in\text{dom\,}(f)$ and every $\varepsilon>0$ \begin{equation} \label{eq-eps_con} \varphi\in\partial_{\Phi}^{\varepsilon}f(x)\ \Leftrightarrow\ f(x)+f_{\Phi}^{*}(\varphi)\le\varphi(x)+\varepsilon. \end{equation} \item[(iii)] For every $x\in\text{dom\,}(f)$, $f_{\Phi}^{**}(x)\le f(x).$ \item[(iv)] For every $x\in\text{dom}(f)$ \begin{equation} \label{eq-eps_con3} (\forall\ \varepsilon>0)\ \partial_{\Phi}^{\varepsilon} f(x)\neq\emptyset\ \Rightarrow\ f(x)=f_{\Phi}^{**}(x). \end{equation} \item [(v)] $\mbox{f is $\Phi$-convex on $\hilbertX$}\ \Leftrightarrow \ \ f(x)=f^{**}_{\Phi}(x)\ \ \forall \ \ x\in \hilbertX.$ \end{enumerate} \end{theorem} \begin{proof} \begin{enumerate} \item[(i)] Follows directly from the definition of the $\Phi$-conjugate function, see e.g. Proposition 1 \cite{oettli} and Proposition 1.2.2 of \cite{rolewicz}. \item[(ii)] Follows from the definition of the conjugate and the $\varepsilon$-$\Phi$-subgradient, see Propositioon 1 of \cite{oettli}, Proposition 1.2.$4_{\varepsilon}$ of \cite{rolewicz} , Proposition 7.10 of \cite{rubbook}. \item[(iii)] Follows directly from Fenchel-Moreau inequality $(i)$. \item [(iv)] Let $\varepsilon>0$ and $\varphi\in\partial_{\Phi}^{\varepsilon}f(x)$. By $(ii)$ and the definition of the $\Phi$-bi-conjugate $$ f(x)\le\varphi(x)-f_{\Phi}^{*}(x)+\varepsilon\le f_{\Phi}^{**}+\varepsilon. $$ Since $\varepsilon$ is arbitrary, $f(x)\le f_{\Phi}^{**}(x)$. By $(iii)$, the conclusion follows. \item [(v)] For the proof see Theorem 1.2.6 of \cite{rolewicz} and Theorem 7.1 of \cite{rubbook}, \end{enumerate} \end{proof} As noted in Proposition 1.2.3 of \cite{rolewicz}, the space $\hilbertX$ induces on $\Phi$ the family of functions $x:\Phi\rightarrow\mathbb{R}$ defined as $x(\varphi)=\varphi(x).$ This family of functions is also denoted by $\hilbertX$. Hence, for any $\bar{x}\in\hilbertX$, $\bar{\varphi}\in\Phi$, we write $\bar{x}\in\partial_{\hilbertX}f_{\Phi}^{*}(\bar{\varphi})$ if \begin{equation} \label{subgradientx} f_{\Phi}^{*}(\varphi)-f_{\Phi}^{*}(\bar{\varphi})\ge \varphi(\bar{x})-\bar{\varphi}(\bar{x})\ \ \ \ \text{for all } \varphi\in\Phi. \end{equation} The following proposition holds (see also Proposition 1 of \cite{oettli}). \begin{proposition} \label{you} Let $f:\hilbertX\rightarrow(-\infty,+\infty]$ be a $\Phi$-convex function. Let $\bar{\varphi} \in \Phi$ and $\bar{x}\in \hilbertX$. The following conditions are equivalent. \begin{description} \item{(i)} $ f(\bar{x})+f^*_{\Phi}(\bar{\varphi})=\bar{\varphi}(x) $. \item{(ii)} $\bar{\varphi} \in \partial_{\Phi}f(\bar{x})$. \item(iii) $\bar{x}\in\partial_{\hilbertX} f^*(\bar{\varphi})$. \end{description} \end{proposition} \begin{proof} The equivalence between $(i)$ and $(ii)$ was proved in \cite{rubbook}, Proposition 7.7 and \cite{rolewicz}, Proposition 1.2.4. We show the equivalence between $(i)$ and $(iii)$. Assume that $(i)$ holds. Then, by $\Phi$-convexity of $f$, and Theorem \ref{conju}$(v)$, we get $$ f^{**}_{\Phi}(\bar{x})+f^*_{\Phi}(\bar{\varphi})=\bar{\varphi}(x), $$ which is equivalent to $$ \varphi(x)-f^{*}_{\Phi}(\varphi)+f^*_{\Phi}(\bar{\varphi})\leq \bar{\varphi}(x) \ \ \ \ \forall \ \ \ \varphi \in \Phi, $$ i.e. $\bar{\varphi}\in \partial_{X}f_{\Phi}^{*}(\bar{x})$. Assume that $(iii)$ holds. We have the following inequality $$ \bar{\varphi}(\bar{x}) \geq \varphi(\bar{x})-f^{*}_{\Phi}(\varphi)+f^*_{\Phi}(\bar{\varphi}) \ \ \ \ \forall \ \ \ \varphi \in \Phi. $$ Taking the supremum over $\varphi\in \Phi$ we obtain $$ \bar{\varphi}(\bar{x}) \geq \sup_{\varphi\in\Phi}\{\varphi(\bar{x})-f^{*}_{\Phi}(\varphi)\}+f^*_{\Phi}(\bar{\varphi}) \ \ \ \ \forall \ \ \ \varphi \in \Phi, $$ which is equivalent to $$ \bar{\varphi}(\bar{x}) \geq f(\bar{x}) +f^*_{\Phi}(\bar{\varphi}) \ \ \ \ \forall \ \ \ \varphi \in \Phi. $$ This, together with the Fenchel-Moreau inequality, gives $(i)$. \end{proof} \section{Perturbation function and its conjugate.} Let $\hilbertX$ and $\hilbertY$ be real linear vector spaces. The perturbation function $p:\hilbertX\times\hilbertY\rightarrow(-\infty,+\infty]$ related to problem $(P)$ is defined as \begin{equation} \label{funkcjaper} p(x,y):= f(x) + g(x+y). \end{equation} Clearly, $p(x,0)=f(x)+g(x)$. In this section we investigate the conjugate $p^{*}$ to the perturbation function $p$. The obtained formulae, will be used in Section \ref{section4} to define the conjugate dual to problem $(P)$. Let $\Phi$ and $\Psi$ be two classes of elementary functions defined on $\hilbertX$ and $\hilbertY$, respectively, where $\hilbertH$ is a real linear subspace, $\hilbertX+\hilbertY\subset \hilbertH$. To define the conjugate $p^{*}$ we introduce the coupling function $c$ on the Cartesian product $\Phi\times\Psi$, $c:(\Phi\times\Psi)\times(\hilbertX\times \hilbertY)\rightarrow\mathbb{R}$ as follows \begin{equation} \tag{$cpl$} \label{cpl1} c((\varphi,\psi), (x,y)):=\varphi(x)+\psi(x+y)-\psi(x). \end{equation} In other words, elementary functions $c=(\varphi,\psi):\hilbertX\times \hilbertY\rightarrow\mathbb{R}$ defined on the product $(\Phi\times\Psi)$ are of the form \begin{equation} \tag{$c$} \label{c1} c=(\varphi,\psi)(x,y):=\varphi(x)+\psi(x+y)-\psi(x). \end{equation} By $(\Phi\times \Psi)^{c}$ we denote the Cartesian product $\Phi\times \Psi$ equipped with the coupling \eqref{cpl1}. For other coupling functions defined on the Cartesian product $\Phi\times \Psi$ see \cite{oettli}. Clearly, if the class $\Psi$ consists of all affine functions, i.e. $\psi(y)=\langle w,y\rangle +d$, $w\in\hilbertX^{\circ}$ and $\hilbertX^{\circ}$ is the algebraic dual of $\hilbertX$, $d\in\mathbb{R}$, then $$ c((\varphi,\psi), (x,y)):=\varphi(x)+\psi_{0}(y), $$ where $\psi_{0}(y)=\langle w,y\rangle$, which is the standard bi-linear coupling, see e.g. \cite{bot,Bonnans}. The conjugate $p_{c}^{*}:(\Phi\times \Psi)^{c}\rightarrow(-\infty,+\infty]$ with respect to the coupling \eqref{cpl1}, i.e. with respect to the set of elementary functions $(\Phi\times \Psi)^{c}$, is given as \begin{equation} \label{conjp} p_{c}^*(\varphi,\psi):=\sup\limits_{x,y\in \hilbertX}\{ \varphi(x)+\psi(x+y)-\psi(x)-p(x,y)\}. \end{equation} Clearly, the conjugate $p_{c}^{*}$ depends on the choice of the coupling between the Cartesian products $\hilbertX\times\hilbertY$ and $\Phi\times\Psi$ ( for other definitions of nonlinear couplings see e.g. \cite{oettli}.) In the sequel we simplify the notation and put $p^{*}:=p_{c}^{*}$ Now, $$ p^{*}(\varphi,\psi)\begin{array}[t]{l} =\sup\limits_{x\in\hilbertX}\sup\limits_{y\in\hilbertX}\{\varphi(x)+\psi(x+y)-\psi(x)-f(x)-g(x+y)\}\\ =\sup\limits_{x\in\hilbertX}\varphi(x)-f(x)-\psi(x)+\sup\limits_{y\in\hilbertX}\{\psi(x+y)-g(x+y)\}. \end{array} $$ By putting $z:=x+y$ we obtain \begin{equation} \label{conjmain} p^*(\varphi,\psi)\begin{array}[t]{l} =\sup\limits_{x\in \hilbertX}\varphi(x)-f(x)-\psi(x) +\sup\limits_{z\in \hilbertX}\{ \psi(z)-g(z)\}\\ =\sup\limits_{x\in \hilbertX}\varphi(x)-f(x)-\psi(x) +g_{\Psi}^{*}(\psi). \end{array} \end{equation} \begin{enumerate} \item[(P1)] When $\Psi=\Phi$, $0\in\Phi$, and $\hilbertX=\hilbertY$, by \eqref{conjmain}, for any $\varphi\in\Phi$ \begin{equation} \label{conjmain0} p^{*}(0,\varphi)\begin{array}[t]{l} =\sup\limits_{x\in\hilbertX}-f(x)-\varphi(x)+g_{\Phi}^{*}(\varphi)\ \\ ={}^{*}f_{\Phi}(\varphi)+g_{\Phi}^{*}(\varphi), \end{array} \end{equation} where ${}^{*}f_{\Phi}(\varphi):=\sup\limits_{x\in\hilbertX}-f(x)-\varphi(x)$. Clearly, ${}^{*}f_{\Phi}(\varphi)=f_{\Phi}^{*}(-\varphi)$ whenever $-\varphi\in\Phi$. When $\Phi$ is a convex set, then $p^{*}(0,\cdot): \Phi\rightarrow(-\infty,+\infty]$ is convex. \item[(P2)] When $\hilbertX=\hilbertY$ is a Hilbert space and $\Phi=\Phi_{lsc}=\Psi$, where \begin{equation} \label{philsc} \Phi_{lsc}:=\{\varphi:\hilbertX\rightarrow\mathbb{R}\ \mid\ \varphi(x):=-a\|x\|^{2}+\langle v,x\rangle+c,\ a\ge 0,\ v\in\hilbertX,\ c\in\mathbb{R}\}, \end{equation} by \eqref{conjmain}, for any $\varphi\in\Phi$, \begin{equation} \label{conjmain1} p^*(0,\varphi)\begin{array}[t]{l} =\sup\limits_{x\in \hilbertX}-f(x)+a\|x\|^{2}-\langle v,x\rangle -c +g_{\Phi_{lsc}}^{*}(\varphi)\\ =\sup\limits_{x\in \hilbertX}-f(x)+a\|x\|^{2}-\langle v,x\rangle +g_{\Phi_{lsc}}^{*}(\varphi_{1})\\ =\sup\limits_{x\in \hilbertX}-\tilde{f}(x)-\langle v,x\rangle +g_{\Phi_{lsc}}^{*}(\varphi_{1})\\ =\tilde{f}_{\Phi_{lsc}}^{*}(0,-v) +g_{\Phi_{lsc}}^{*}(a,v)=p^{*}(0,\varphi_{1})\\ \end{array} \end{equation} where $\varphi_{1}(x):=-a\|x\|^{2}+\langle v,x\rangle$ and $\tilde{f}(x):=\tilde{f}_{\varphi_{1}}(x)=f(x)-a\|x\|^{2}$ and we identify functions from the class $\Phi_{lsc}$ of the form $\varphi_{1}$ with pairs $(a,v)$, $a\in \mathbb{R}_{+}$, $v\in\hilbertX$. By \eqref{conjmain1}, the domain of $p^{*}(0,\cdot)$ can be restricted to elementary functions of the form $\varphi_{1}$ (with $c=0$). As previously, ${}^{*}f_{\Phi_{lsc}}(\varphi_{1}):=\sup\limits_{x\in\hilbertX} -\varphi_{1}(x)-f(x)$. Clearly, ${}^{*}f(\varphi_{1})={}^{*}f(a,v)=\tilde{f}^{*}(0,-v)$. By Proposition 6.3 of \cite{rubbook} $\tilde{f}$ is $\Phi_{lsc}$-convex whenever $f$ is. Moreover, $p^{*}(0,\cdot)$ is a convex function on $\Phi_{lsc}$. \item[(P3)] When $\Phi$ is symmetric, i.e., $\Phi=-\Phi$ with $(-\varphi)(x):=-\varphi(x)$ we have \begin{equation} \label{psym} p^{*}(0,\varphi)=-f_{\Phi}^{*}(-\varphi)-g_{\Phi}^{*}(\varphi). \end{equation} Consider now $\Phi=\Phi_{conv}$, where $\hilbertX$ is a Banach space with the dual $\hilbertX^{*}$, \begin{equation} \label{psiconv} \Phi_{conv}:=\{\varphi:\hilbertX\rightarrow \mathbb{R}\ |\ \varphi(x)=\langle v,x\rangle+c, \ v\in\hilbertX^{*},\ c\in\mathbb{R}\}. \end{equation} By \eqref{conjmain0}, \begin{equation} \label{conj1a} p^*(0,\varphi)\begin{array}[t]{l} =\sup_{x\in \hilbertX}-f(x)-\langle v, x\rangle -c +c+g^{*}(v)\\ =f^{*}(-v) +g^{*}(v)=p^*(0,\varphi_{0}), \end{array} \end{equation} where $g^{*}(v):=\sup_{y\in\hilbertX}\langle v,y\rangle-g(y)$ is the conjugate to $g$ in the sense of convex analysis, $\varphi_{0}(y):=\langle v,y\rangle$. By \eqref{conj1a}, we can restrict the domain of $p^{*}(0,\cdot)$ to linear functionals. \end{enumerate} \section{The $\Phi$-conjugate dual} \label{section4} Following the classical (convex) approach (see e.g. Bo\c{t} \cite{bot} and Bonnans, Shapiro \cite{Bonnans}), we introduce the conjugate dual to $(P)$ by the formula \begin{equation} \label{gencondual} \tag{GCD} \text{Max\,}_{\psi\in\Psi} -p^*_{c}(0,\psi). \end{equation} \begin{enumerate} \item[(D1)] When $\hilbertX=\hilbertY$, $\Psi=\Phi$, $0\in\Phi$, and the coupling $c$ is given by \eqref{cpl1}, by \eqref{conjmain0}, the $\Phi$-conjugate dual \eqref{gencondual} takes the form \begin{equation} \label{condual3} \tag{CD} \text{Max\,}_{\varphi\in\Phi}-{}^{*}f_{\Phi}(\varphi)-g_{\Phi}^{*}(\varphi). \end{equation} where ${}^{*}f_{\Phi}(\varphi)=\sup\limits_{x\in\hilbertX}-f(x)-\varphi(x)$. For dual problems resulting from other coupling functions $c$ see e.g. \cite{oettli}. \item [(D2)] When $0\in\Phi$ and the set $\Phi$ is symmetric, i.e. $\Phi=-\Phi$, problem \eqref{condual3} takes the form \begin{equation} \label{condual3a} \tag{$CD^{sym}$} \text{Max\,}_{\varphi\in\Phi}-f_{\Phi}^{*}(-\varphi)-g_{\Phi}^{*}(\varphi).\end{equation} (c.f. Corollary 5.2 of \cite{JRW}.) \item [(D3)] When $0\in\Phi$, and $\Phi+\Phi\subset\Phi$ and $\Phi=-\Phi$ the problem \eqref{condual3a} becomes the $\Phi$-infimal convolution dual \eqref{hoabui} as introduced in \cite{bui2020zero}, \begin{equation} \label{hoabui} \tag{$ICD$} \text{Max\,}_{\varphi_{1},\varphi_{2}\in\Phi,\ \varphi_{1}+\varphi_{2}=0}-f_{\Phi}^{*}(\varphi_{2})-g_{\Phi}^{*}(\varphi_{1}). \end{equation} In general, when $\Phi$ is not symmetric we have \begin{equation} \label{cd} val\eqref{condual3}\geq val\eqref{condual3a}. \end{equation} \end{enumerate} \begin{example} \begin{enumerate} \item Let $\hilbertX$ be a Hilbert space and $\Phi=\Phi_{lsc}$. The $\Phi_{lsc}$-conjugate dual \eqref{condual3} takes the form \begin{equation} \label{conjugate_dual1} \tag{$CD^{lsc}$} \text{Max\,}_{(a,w)\in\Phi_{lsc}} -(\tilde{f}_{(a,w)})_{\Phi_{lsc}}^{*}(0, -w)-g_{\Phi_{lsc}}^{*}(a,w), \end{equation} where functions of the form $\varphi_{1}(x):=-a\|x\|^{2}+\langle w,x\rangle$ are identified with pairs $(a,w)$, $w\in\hilbertX$, $a\in\mathbb{R}_{+}$ and $\tilde{f}_{\varphi_{1}}(x):=\tilde{f}_{(a,w)}(x)=f(x)-a\|x\|^{2}$ (according to \eqref{conjmain1} we can neglect constants). Since $\Phi_{lsc}\neq-\Phi_{lsc}$, the $\Phi_{lsc}$-conjugate dual does not coincide, in general, with $\Phi_{lsc}$-infimal convolution dual \eqref{hoabui}, see Example \ref{example1} below. \item When $\hilbertX$ is a Banach space, and $\Phi=\hilbertX^{*}$, the $\hilbertX^{*}$-conjugate dual \eqref{condual3} becomes the classical {\em Fenchel dual} \begin{equation} \label{fencheldual} \tag{FD} \text{Max\,}_{v\in \hilbertX^{*}} -f^{*}(-v)-g^{*}(v). \end{equation} \eqref{fencheldual} coincides with \eqref{condual3a} and the $\hilbertX^{*}$-infimal convolution dual \eqref{hoabui}. \end{enumerate} \end{example} \subsection{Weak (conjugate) duality} Let $\hilbertX$ be a real linear space. By \eqref{conjmain0}, for every $x\in \hilbertX$ and $\varphi\in\Phi$ $$ p(x,0)+p^{*}(0,\varphi)\begin{array}[t]{l} =p(x,0)+{}^{*}f(\varphi)+g_{\Phi}^{*}(\varphi),\\ \ge f(x)+g(x)- f(x)-\varphi(x)+\varphi(x)-g(x)\\ =0 \end{array} $$ In consequence, \begin{equation} \label{pdineq} p(x,0)\ge-p^{*}(0,\varphi) \ \ \ x\in \hilbertX\ \ \ \varphi\in\Phi \end{equation} which yields the {\em weak duality} \begin{equation} \label{weak_duality} val(P):=\inf\limits_{x\in \hilbertX}p(x,0)=\inf\limits_{x\in X} f(x)+g(x)\ge\sup\limits_{\varphi\in\Phi}- p^{*}(0,\varphi)=:val(CD). \end{equation} The problem of zero duality gap will be addressed in Section \ref{zeroduality}. \section{Lagrangian dual} \label{seclag} In this section we introduce the $\Phi$-Lagrangian function \eqref{lagrange} with the $\Phi$-Lagrangian dual equivalent to the $\Phi$-conjugate dual \eqref{condual3}. For problem \eqref{problem}, we consider the $\Phi$-Lagrangian $\lagrangianL:\hilbertX\times\Phi\rightarrow\barR$ defined as \begin{equation} \label{lagrange} \tag{L} {\mathcal L}(x,\varphi):=f(x)+\varphi(x)-g_{\Phi}^{*}(\varphi) \end{equation} with the $\Phi$-Lagrangian primal \begin{equation} \tag{LP} \label{lagprimal} \inf\limits_{x\in \hilbertX}\sup\limits_{\varphi\in\Phi}{\cal L}(x,\varphi) \end{equation} and the $\Phi$-Lagrangian dual \begin{equation} \tag{LD} \label{lagdual} \sup\limits_{\varphi\in\Phi}\inf\limits_{x\in \hilbertX} {\mathcal L}(x,\varphi). \end{equation} Then \begin{equation} \label{lag_primal_eq} \sup\limits_{\varphi\in\Phi}{\mathcal L}(x,\varphi) =f(x)+\sup\limits_{\varphi\in\Phi}\varphi(x)-g_{\Phi}^{*}(\varphi) =f(x)+g_{\Phi}^{**}(x). \end{equation} \begin{proposition} \label{lagprimalequality} If $g:\hilbertX\rightarrow\barR$ is $\Phi$-convex on $\hilbertX$, the $\Phi$-Lagrangian primal \eqref{lagprimal} is equivalent to \eqref{problem}, i.e., \begin{equation} \label{eqprimal} \inf\limits_{x\in \hilbertX} f(x)+g(x)=\inf\limits_{x\in \hilbertX}\sup\limits_{\varphi\in\Phi}{\mathcal L}(x,\varphi), \end{equation} \end{proposition} \begin{proof} Follows from Theorem \ref{conju} $(v)$. \end{proof} On the other hand, by \eqref{lagrange}, $$ \inf_{x\in \hilbertX}{\cal L}(x,\varphi)=\inf_{x\in \hilbertX}f(x)+\varphi(x)-g_{\Phi}^{*}(\varphi)=-\sup_{x\in \hilbertX}-f(x)-\varphi(x)-g_{\Phi}^{*}(\varphi). $$ By using the notation ${}^{*}f_{\Phi}(\varphi)=\sup\limits_{x\in\hilbertX}-\varphi(x)-f(x)$, \begin{equation} \label{lagconj} \sup\limits_{\varphi\in\Phi}\inf\limits_{x\in \hilbertX}{\mathcal L}(x,\varphi)=\sup\limits_{\varphi\in\Phi}-{}^{*}f_{\Phi}(\varphi)-g_{\Phi}^{*}(\varphi) \end{equation} which shows that the $\Phi$-conjugate dual \eqref{condual3} is equivalent to the $\Phi$-Lagrangian dual \eqref{lagdual} with the Lagrangian defined by \eqref{lagrange}. \begin{example} Let $\hilbertX$ be a Hilbert space. For $\varphi\in\Phi_{lsc}$, $\varphi(x):=-a\|x\|^{2}+\langle w,x\rangle$, $a\ge 0$, $w\in \hilbertX$, we have $$ \inf\limits_{x\in \hilbertX}{\cal L}(x,\varphi)\begin{array}[t]{l} =\inf\limits_{x\in \hilbertX}f(x)+\varphi(x)-g_{\Phi_{lsc}}^{*}(\varphi)=-\sup\limits_{x\in \hilbertX}-f(x)-\varphi(x)-g_{\Phi_{lsc}}^{*}(\varphi)\\ =-\sup\limits_{x\in \hilbertX}-f(x)+a\|x\|^{2}-\langle w,x\rangle-g_{\Phi_{lsc}}^{*}(\varphi)\\ =-\sup\limits_{x\in \hilbertX}-\tilde{f}(x)-\langle w,x\rangle-g_{\Phi_{lsc}}^{*}(\varphi)\\ =-\tilde{f}_{\Phi_{lsc}}^{*}(0,-w)-g^{*}_{\Phi_{lsc}}(a,w), \end{array} $$ where $\varphi$ is identified with the pair $(a,w)$, and, for a given $\varphi$, $\tilde{f}:=f(\cdot)-a\|\cdot\|^{2}$. \begin{equation} \label{lagconjlsc} \sup\limits_{\varphi\in\Phi}\inf\limits_{x\in \hilbertX}{\mathcal L}(x,\varphi)=\sup\limits_{\varphi\in\Phi_{lsc}}-\tilde{f}_{\Phi_{lsc}}^{*}(0,-w)-g_{\Phi_{lsc}}^{*}(a,w), \end{equation} and the $\Phi_{lsc}$-conjugate dual \eqref{conjugate_dual1} coincides with the $\Phi_{lsc}$-Lagrangian dual \eqref{lagdual}. \end{example} \begin{example} Let $\hilbertX$ be a Banach space. Let $\Phi:=\{\varphi:\hilbertX\rightarrow\mathbb{R}\mid \varphi(x):=\langle v,x\rangle+c, \ v\in\hilbertX^{*},\ c\in\mathbb{R}\}$ and let $g(\cdot):=\text{ind\,}_{A}(\cdot)$ be the indicator function of a set $A$, $$ A:=\{x\in\hilbertX\mid x\in K\} $$ where $K$ is a cone in $\hilbertX$. For the problem $(P)$ with $f:\hilbertX\rightarrow(-\infty,+\infty]$ $$ {\mathcal L}(x,\varphi)\begin{array}[t]{l} = f(x)+ \varphi(x) -(\text{ind\,}_{A})^{*}(\varphi)\\ =f(x)+\langle v,x\rangle+c-\sup\limits_{x\in\hilbertX} \{\langle v,x\rangle+c-\text{ind\,}_{K}(x)\}\\ =f(x)+\langle v,x\rangle-\sup\limits_{x\in\hilbertX} \{\langle v,x\rangle-\text{ind\,}_{K}(x)\}\\ =f(x)+\langle v,x\rangle-\sup\limits_{ x\in K } \langle v,x\rangle\\ \end{array} $$ Since $$ \sup\limits_{ x\in K } \langle v,x\rangle=\left\{\begin{array}{ll} 0&v\in K^{\circ}\\ +\infty&v\not\in K^{\circ}\end{array}\right. $$ where $K^{\circ}:=\{v\in\hilbertX\mid \langle v,x\rangle\le 0\ \ \forall\ x\in K\}$ is the polar cone to $K$, we get $$ {\mathcal L}(x,\varphi)=\left\{\begin{array}{ll} f(x)+\langle v,x\rangle&v\in K^{circ}\\ -\infty&v\not\in K^{\circ}\end{array}\right. . $$ Consequently, the $\Phi$-Lagrangian primal \eqref{lagprimal} is $$ \inf\limits_{x\in\hilbertX} \sup\limits_{v\in K^{*}} f(x)+\langle v,x\rangle=\inf\limits_{x\in\hilbertX} f(x)+\sup\limits_{v\in K^{\circ}}\langle v,x\rangle, $$ and the $\Phi$-Lagrangian dual \eqref{lagdual} is $$ \sup_{v\in K^{\circ}}\inf\limits_{x\in\hilbertX} f(x)+\langle v,x\rangle. $$ is equivalent to the $\Phi$-conjugate dual \eqref{condual3} is $$ \sup_{v\in K^{*}}- f^{*}(-v). $$ \end{example} \section{Zero duality gap for $\Phi$-conjugate duality} \label{zeroduality} In view of Proposition \ref{lagprimalequality}, and formula \eqref{lagconj}, the question of zero duality gap for $\Phi$-conjugate and $\Phi$-Lagrangian dualities can be investigated simultaneously, by seeking conditions ensuring minimax equality for $\Phi$-Lagrangian. We begin this section by discussing zero duality gap for problems \eqref{lagprimal}, \eqref{lagdual} from the point of view of minimax theorems. The characterisation of zero duality gap for problems \eqref{lagprimal}, \eqref{lagdual} is expressed with the help of the so called {\em intersection property}, which is used in general minimax theorems formulated within the framework of $\Phi$-convexity as it is done in \cite{Syga2018} for the case, where the elementary functions may admit infinite values. For convenience of the reader we provide the outline of the proof based on Lemma \ref{key_lemma}. The intersection property together with the condition $\inf\limits_{x\in\hilbertX} f(x)+g(x)=\inf\limits_{x\in\hilbertX} f(x)+g^{**}_{\Phi}(x)$ immediately gives the zero duality gap condition for the pair of dual problems \eqref{problem} and \eqref{condual3}. \begin{theorem} \label{lagmin} Let $\hilbertX$ be a real vector space. Let $\Phi$ be a convex set of elementary functions $\varphi:\hilbertX\rightarrow \mathbb{R}$ and $f,g:\hilbertX\rightarrow(-\infty,+\infty]$ and the $\Phi$-Lagrangian is given by \eqref{lagrange}. The following are equivalent: \begin{description} \item[(i)] for every $\alpha <\inf\limits_{x\in X}\sup\limits_{\varphi\in\Phi}{\mathcal L}(x, \varphi)$ there exist $\varphi_1,\varphi_2\in \Phi$ and $ \bar{\varphi}_1 \in\text{supp} {\mathcal L}(\cdot,\varphi_1)$ and $ \bar{\varphi}_2 \in\text{supp} {\mathcal L}(\cdot,\varphi_2)$ such that functions $\bar{\varphi}_1$ and $\bar{\varphi}_1$ have the {\em intersection property} on $\hilbertX$ at the level $\alpha$, i.e., for all $t\in [0,1]$ \begin{equation} \label{eq-11} [t\bar{\varphi}_1+(1-t)\bar{\varphi}_2<\alpha]\cap [\bar{\varphi}_1<\alpha]=\emptyset \ \ \ \ \text \ \ \ \ [t\bar{\varphi}_1+(1-t)\bar{\varphi}_2<\alpha]\cap [\bar{\varphi}_2<\alpha]=\emptyset, \end{equation} where $[\bar{\varphi}<\alpha]:=\{x\in\hilbertX \ \bar{\varphi}(x)<\alpha \}$. \item[(ii)] $$\inf_{x\in \hilbertX}\sup_{\varphi\in\Phi}{\mathcal L}(x, \varphi)=\sup_{\varphi\in\Phi}\inf_{x\in \hilbertX}{\mathcal L}(x, \varphi).$$ \end{description} \end{theorem} The proof of Theorem \ref{lagmin} is based on the following lemma (c.f. \cite{Syga2018}, Lemma 4.1). \begin{lemma} \label{key_lemma} Let $X$ be a set, $\alpha\in\mathbb{R}$, and let $\varphi_{1},\ \varphi_{2}:X\rightarrow\mathbb{R}$ be any two functions. The functions $\varphi_{1}$ and $\varphi_{2}$ have the intersection property on $X$ at the level $\alpha$ if and only if $\exists\ t_{0}\in[0,1]$ such that \begin{equation} \label{key_ineq} t_{0}\varphi_{1}+(1-t_{0})\varphi_{2}\ge \alpha\ \ \forall\ x\in X. \end{equation} \end{lemma} Lemma 4.1 proved in \cite{Syga2018} refers to a more general situation, where $\varphi_{1},\ \varphi_{2}:X\rightarrow [-\infty,+\infty]$ and reduces to Lemma \ref{key_lemma} whenever $\varphi_{1},\ \varphi_{2}:X\rightarrow \mathbb{R}$. \begin{proof} Let $\alpha <\inf\limits_{x\in X}\sup\limits_{\varphi\in\Phi}{\mathcal L}(x, \varphi)$. By $(i)$, there exist $\varphi_1,\varphi_2\in \Phi$ and $ \bar{\varphi}_1 \in\text{supp} {\mathcal L}(\cdot,\varphi_1)$ and $ \bar{\varphi}_2 \in\text{supp} {\mathcal L}(\cdot,\varphi_2)$ such that $ \bar{\varphi}_1 \in\text{supp} {\mathcal L}(\cdot,\varphi_1)$ and $ \bar{\varphi}_2 \in\text{supp} {\mathcal L}(\cdot,\varphi_2)$ have the intersection property on $\hilbertX$ at the level $\alpha$. By Lemma \ref{key_lemma} and \eqref{key_ineq}, there exists $t\in [0,1]$ such that \begin{equation} \label{key_ineq1} t\bar{\varphi}_{1}+(1-t)\bar{\varphi}_{2}\ge \alpha\ \ \forall\ x\in X. \end{equation} By the definition of the support set and the inequality \eqref{key_ineq1} we get \begin{equation} \label{key_ineq2} t{\mathcal L}(x,\varphi_1)+(1-t){\mathcal L}(x,\varphi_2)\ge \alpha\ \ \forall\ x\in X. \end{equation} By the concavity of ${\mathcal L}$ as a function of $\varphi$, we have \begin{equation} \label{key_ineq3} {\mathcal L}(x,\varphi_0)\ge \alpha\ \ \forall\ x\in X, \end{equation} where $\varphi_0=t\varphi_1+(1-t)\varphi_2$ and, by convexity of $\Phi$, $\varphi_0\in\Phi$. From this we deduce the following inequality \begin{equation} \label{key_ineq4} \sup\limits_{\varphi\in\Phi} \inf\limits_{x\in X} {\mathcal L}(x,\varphi)\ge \alpha\ \ \forall\ x\in X. \end{equation} By the fact that the inequality \eqref{key_ineq4} holds for every $\alpha <\inf\limits_{x\in X}\sup\limits_{\varphi\in\Phi}{\mathcal L}(x, \varphi)$ we get the desired conclusion. The second implication follows directly from Theorem 2.1 of \cite{Syga2018}. \end{proof} \begin{remark} Let us note that in some classes of functions (e.g. $\Phi_{lsc}$ and $\Phi_{conv}$, see Proposition 2 and Proposition 4 of \cite{bed-syg}) the intersection property at the level $\alpha$ is equivalent to the condition \begin{equation} \label{empty} [\varphi_1<\alpha]\cap [\varphi_2<\alpha]=\emptyset. \end{equation} \end{remark} Theorem \ref{lagmin} allows us to formulate the following zero duality gap conditions for $\Phi$-conjugate dual \eqref{condual3}. \begin{theorem} \label{lagmin1} Let $\hilbertX$ be a real vector space. Let $\Phi$ be a convex set of elementary functions $\varphi:\hilbertX\rightarrow \mathbb{R}$, $f,g:\hilbertX\rightarrow(-\infty,+\infty]$ and the $\Phi$-Lagrangian is given by \eqref{lagrange}. Assume that \begin{equation} \label{eq_equality} \inf_{x\in\hilbertX} f(x)+g(x)=\inf_{x\in \hilbertX} f(x)+g^{**}_{\Phi}(x). \end{equation} The following are equivalent: \begin{description} \item[(i)] for every $\alpha <\inf\limits_{x\in X}\sup\limits_{\varphi\in\Phi}{\mathcal L}(x, \varphi)$ there exist $\varphi_1,\varphi_2\in \Phi$ and $ \bar{\varphi}_1 \in\text{supp} {\mathcal L}(\cdot,\varphi_1)$ and $ \bar{\varphi}_2 \in\text{supp} {\mathcal L}(\cdot,\varphi_2)$ such that functions $\bar{\varphi}_1$ and $\bar{\varphi}_1$ have the {\em intersection property} at the level $\alpha$, i.e., for all $t\in [0,1]$ \begin{equation} \label{eq-111} [t\bar{\varphi}_1+(1-t)\bar{\varphi}_2<\alpha]\cap [\bar{\varphi}_1<\alpha]=\emptyset \ \ \ \ \text{or} \ \ \ \ [t\bar{\varphi}_1+(1-t)\bar{\varphi}_2<\alpha]\cap [\bar{\varphi}_2<\alpha]=\emptyset. \end{equation} \item[(ii)] $$ \inf\limits_{x\in \hilbertX}\{ f(x)+g(x)\}= \sup_{\varphi\in\Phi} -{}^{*}f_{\Phi}(\varphi)-g^{*}_{\Phi}(\varphi), $$ \end{description} where ${}^{*}f_{\Phi}(\varphi)=\sup\limits_{x\in\hilbertX} -\varphi(x)-f(x).$ \end{theorem} \begin{proof} Follows directly from Theorem \ref{lagmin} and formula \eqref{lag_primal_eq}. \end{proof} \vskip 0.3 true in By Proposition \ref{lagprimalequality} if $g$ is $\Phi$-convex on $\hilbertX$, then \eqref{eq_equality} holds. The following conditions for zero duality gap for problems \eqref{problem} and \eqref{hoabui} were proved in \cite{bui2020zero}. \begin{theorem}(\cite{bui2020zero}, Theorem 3.5) \label{bui3.6} Let $\hilbertX$ be a real linear vector space. Let $f,g:\hilbertX \rightarrow(-\infty, +\infty]$ and $0\in \Phi$ and $\Phi+\Phi\subset\Phi$. The following properties are equivalent: \begin{description} \item[(i)] \begin{equation} \label{bui} 0\in \bigcap_{\varepsilon>0}(\partial^{\varepsilon}_{\Phi}f+ \partial^{\varepsilon}_{\Phi}g)(\hilbertX), \end{equation} \item[(ii)] $\inf\limits_{x\in \hilbertX}(f(x)+g(x))=\sup\limits_{\varphi_{1},\varphi_{2}\in \Phi,\ \varphi_{1}+\varphi_{2}=0}(-f_{\Phi}^*(\varphi_{1})-g_{\Phi}^*(\varphi_{2}))=val(ICD)<+\infty$. \end{description} \end{theorem} \begin{remark} The following inequalities hold \begin{equation} \label{eq_grop} val(P)\stackrel{(1)}{\ge} val (LP)\stackrel{(2)}{\ge} val (LD)\stackrel{(3)}{=}val(CD)\stackrel{(4)}{\ge} val(ICD), \end{equation} where $(1)$ holds by Theorem \ref{conju} $(iii)$, $(2)$ holds by general minimax inequality, $(3)$ holds by \eqref{lagconj} and $(4)$ holds by \eqref{cd}. In particular, condition \eqref{bui} of Theorem \ref{bui3.6} implies that $val(P)=val(LP)$, i.e. $$ \inf\limits_{x\in\hilbertX} f(x)+g(x)=\inf\limits_{x\in\hilbertX} f(x)+g_{\Phi}^{**}(x). $$ \end{remark} \begin{theorem} \label{th_implication} Let $\hilbertX$ be a real vector space, $0\in\Phi$, and $\kappa:=\inf\limits_{x\in \hilbertX} \sup\limits_{\varphi\in \Phi} {\mathcal L}(x,\varphi)<+\infty$. Consider the following conditions: \begin{enumerate} \item condition \eqref{bui}: $$ 0\in \bigcap_{\varepsilon>0}(\partial^{\varepsilon}_{\Phi}f+ \partial^{\varepsilon}_{\Phi}g)(\hilbertX), $$ \item condition \eqref{eq-111}: for every $\alpha< \inf\limits_{x\in\hilbertX} \sup\limits_{\varphi\in \Phi} {\mathcal L}(x,\varphi)$ there exist $\bar{\varphi}, \tilde{\varphi} \in \Phi$, $\varphi_1\in \text{supp}{\cal L}(,\cdot,\bar{\varphi} ) $ and $\varphi_2\in \text{supp}{\cal L}(,\cdot,\tilde{\varphi} ) $ such that $\varphi_1$ and $\varphi_2$ have the intersection property at the level $\alpha$. \end{enumerate} Then \begin{enumerate} \item If $\Phi$ is convex, $\Phi=-\Phi$, and \begin{equation} \label{eq_gropa11} \inf\limits_{x\in\hilbertX} f(x)+g(x)=\inf\limits_{x\in\hilbertX} f(x)+g_{\Phi}^{**}(x)=\inf\limits_{x\in\hilbertX} \sup\limits_{\varphi\in\Phi}{\mathcal L}(x,\varphi)=\kappa. \end{equation} then $(2)$ implies $(1)$. \item If $\Phi+\Phi\subset \Phi$, then $(1)$ implies $(2)$. \end{enumerate} \end{theorem} \begin{proof} $(2)\Rightarrow (1).$ Let $\varepsilon>0$. By Lemma \ref{key_lemma}, there exists $t_{0}\in[0,1]$ $t_{0}\varphi_{1}+(1-t_{0})\varphi_{2}\ge\alpha:=\kappa-\varepsilon\ \ \forall\ \ x\in \hilbertX.$ Hence, $$ {\cal L}(x,t_{0}\psi_{1}+(1-t_{0})\psi_{2})\ge t_{0}{\cal L}(x,\psi_{1})+(1-t_{0}){\cal L}(x,\psi_{2})\ge t_{0}\varphi_{1}+(1-t_{0})\varphi_{2} $$ for all $x\in \hilbertX$ and \begin{equation} \label{key_ineq2n} {\cal L}(x,\psi_{0})\ge \kappa-\varepsilon=(\varepsilon+\kappa)-2\varepsilon \ \ \forall\ \ x\in\hilbertX, \end{equation} where $\psi_{0}:=t_{0}\psi_{1}+(1-t_{0})\psi_{2}\in\Phi$ (in view of the convexity of $\Phi$). By assumption \eqref{eq_gropa11}, and Theorem \ref{conju}, $(iii)$, there exists $\bar{x}\in\hilbertX$ satisfying \begin{equation} \label{key_ineq21a} \varepsilon+\kappa>f(\bar{x})+g(\bar{x})\ge \sup\limits_{\varphi\in\Phi}{\mathcal L}(\bar{x},\varphi)=f(\bar{x})+g^{**}_{\Phi}(\bar{x}). \end{equation} Moreover, $\varepsilon +f(\bar{x})+g^{**}_{\Phi}(\bar{x})\ge\varepsilon+\kappa>f(\bar{x})+g(\bar{x})$, hence $g^{**}_{\Phi}(\bar{x})\ge g(\bar{x})-\varepsilon$ and \begin{equation} \label{key_ineq21aa} \varepsilon+\kappa>f(\bar{x})+g(\bar{x})\ge \sup\limits_{\varphi\in\Phi}{\mathcal L}(\bar{x},\varphi)=f(\bar{x})+g^{**}_{\Phi}(\bar{x})\ge f(\bar{x})+g(\bar{x})-\varepsilon. \end{equation} By \eqref{key_ineq2n}, \eqref{key_ineq21a}, \eqref{key_ineq21aa} for all $x\in \hilbertX$, $$ \begin{array}{l} (a). \ \ {\cal L}(x,\psi_{0})\ge\sup\limits_{\varphi\in\Phi}{\cal L}(\bar{x},\varphi)-2\varepsilon\ge {\cal L}(\bar{x},\psi_{0})-3\varepsilon\\ (b). \ \ {\cal L}(x,\psi_{0})\ge f(\bar{x})+g(\bar{x})- 3\varepsilon.\\ \end{array} $$ In particular, by $(b)$, $$ (b').\ \ \ \ {\cal L}(\bar{x},\psi_{0})\ge f(\bar{x})+g(\bar{x})-3\varepsilon. $$ Since $\Phi=-\Phi$, hence $-\psi_{0}\in\Phi$ and by $(a)$, \begin{equation} \label{key_ineq55} f(x)+\psi_{0}(x)-g^{*}(\psi_{0})={\cal L}(x,\psi_{0})\ge f(\bar{x})+\psi_{0}(\bar{x})-g^{*}(\psi_{0})-3\varepsilon\ \ \forall\ \ x\in\hilbertX. \end{equation} which shows that $-\psi_{0}\in\partial^{3\varepsilon} f(\bar{x})$. By $(b')$, $$ {\cal L}(\bar{x},\psi_{0})\ge f(\bar{x})+g(\bar{x})-3\varepsilon \ \ \ i.e.\ \ \ f(\bar{x})+\psi_{0}(\bar{x})-g^{*}(\psi_{0})\ge f(\bar{x})+g(\bar{x})-3\varepsilon $$ which gives $\psi_{0}(\bar{x})-g^{*}(\psi_{0})\ge g(\bar{x})-3\varepsilon$. By Theorem \ref{conju} $(ii)$, the latter is equivalent to $\psi_{0}\in\partial^{3\varepsilon}g(\bar{x}).$ This means that $$ 0\in\bigcap_{\varepsilon>0}(\partial^{\varepsilon}f+\partial^{\varepsilon}g)(\hilbertX) $$ i.e. $(1)$ holds. $(1)\Rightarrow (2)$. Let $\alpha < \inf\limits_{x\in \hilbertX} \sup\limits_{\varphi\in \Phi} {\mathcal L}(x,\varphi)$ and take any $\beta$ such that $\alpha <\beta< \inf\limits_{x\in \hilbertX} \sup\limits_{\varphi\in \Phi} {\mathcal L}(x,\varphi)$. Let $\varepsilon=\beta-\alpha>0$. By assumption, there exist $\bar{x}\in \hilbertX$ and $\bar{\varphi}\in \partial^{\varepsilon}_{\Phi}f(\bar{x})$ and $\tilde{\varphi}\in \partial^{\varepsilon}_{\Phi}g(\bar{x})$ such that \begin{equation} \label{hoaeps} \bar{\varphi}+\tilde{\varphi}=0. \end{equation} Since $\bar{\varphi}\in \partial^{\varepsilon}_{\Phi}f(\bar{x})$ the following inequality holds for all $x\in\hilbertX$ $$ f(x)-f(\bar{x})\geq \bar{\varphi}(x)- \bar{\varphi}(\bar{x})-\varepsilon, $$ which is equivalent to $$ f(x)+(-\bar{\varphi}(x)) -g_{\Phi}^*(-\bar{\varphi})-(f(\bar{x})+(-\bar{\varphi}(\bar{x}))-g_{\Phi}^*(-\bar{\varphi}))\geq 0-\varepsilon \ \ \ \ \forall \ \ x\in \hilbertX. $$ Equivalently, \begin{equation} \label{hoa1eps1} {\mathcal L}(x,-\bar{\varphi})-{\mathcal L}(\bar{x}, -\bar{\varphi})\geq-\varepsilon. \end{equation} By the equality \eqref{hoaeps} we have $\tilde{\varphi}=-\bar{\varphi}$ and the inequality \eqref{hoa1eps1} takes the form \begin{equation} \label{hoa2eps1} {\mathcal L}(x,\tilde{\varphi})\geq {\mathcal L}(\bar{x}, \tilde{\varphi})-\varepsilon \ \ \ \ \forall \ \ \ x\in \hilbertX. \end{equation} Since $\tilde{\varphi}\in \partial^{\varepsilon}_{\Phi}g(\bar{x})$, the inequality $g^*_{\Phi}(\tilde{\varphi})+g(\bar{x})\leq \tilde{\varphi}(\bar{x})+\varepsilon$ holds (see Theorem \ref{conju}(ii)). We have $$ {\mathcal L}(\bar{x}, \tilde{\varphi})= f(\bar{x})+\tilde{\varphi}(\bar{x})-g^*_{\Phi}(\tilde{\varphi}) \geq f(\bar{x})+g(\bar{x})-\varepsilon\geq \inf_{x\in \hilbertX}\{ f(x)+g(x)\}-\varepsilon $$ The above inequality together with \eqref{hoa2eps1} and \eqref{eq_gropa11} give \begin{equation} \label{lag1} {\mathcal L}(x,\tilde{\varphi})\geq\inf_{x\in \hilbertX}\{ f(x)+g(x)\}-\varepsilon= \inf\limits_{x\in \hilbertX} \sup\limits_{\varphi\in \Phi} {\mathcal L}(x,\varphi) -\varepsilon\ \ \ \ \forall \ \ \ x\in \hilbertX. \end{equation} By the inequality \eqref{lag1} we have $$ {\cal L}(x,\tilde{\varphi})\geq \beta-\varepsilon=\beta-\beta+\alpha=\alpha. $$ Let $\varphi_1\equiv \alpha$ then $ \varphi_1\in \text{supp}\, {\cal L}(\cdot,\tilde{\varphi})$ and $[\varphi_1<\alpha]=\emptyset$. Let $\varphi_2 \in \text{supp}\, {\cal L}(\cdot,\bar{\varphi})$, then $\varphi_1$, $\varphi_2$ have the intersection property at the level $\alpha$. \end{proof} \begin{remark} \begin{enumerate} \item Let $\hilbertX$ be a topological vector space equipped with closed convex pointed cone $S$ which induces the ordering relation: $x\le y\ \Leftrightarrow \ y-x\in S$ The family of functions $L:=\{\ell_{y}:\hilbertX\rightarrow\mathbb{R}\ \mid\ y\in\hilbertX\}$ defined as $$ \ell_{y}(x)=\max\{\lambda\ge 0\ \lambda y\le x\} $$ It was shown in \cite{Mohebi13}, (see also \cite{Eberhard10}) that $0\in L$, $L+L\subset L$, and $L=-L$ and a function $f:\hilbertX\rightarrow[0,,+\infty]$ is increasing positive homogeneous (IPH) if and only if $f$ is $L$-convex. $L$-conjugate dual \eqref{condual3} coincides with $L$-infimal convolution dual \eqref{hoabui}. \item By Theorem \ref{th_implication}, if $\Phi$ is convex, $0\in\Phi$, $\Phi+\Phi\subset\Phi$ and $\Phi=-\Phi$, $$ \text {condition }\eqref{bui}\ \Leftrightarrow \ \text {condition }\eqref{eq-111}+ \text {equality}\eqref{eq_gropa11}. $$ \item If $0\in\Phi$, $\Phi+\Phi\subset\Phi$ and $\Phi=-\Phi$, then \eqref{condual3} is equivalent to \eqref{hoabui} (see Corollary \ref{corzeroduality} below) and Theorem \ref{bui3.6} is stronger than Theorem \ref{lagmin1} since the convexity of $\Phi$ is not required in Theorem \ref{bui3.6}. \item If $0\in\Phi$, $\Phi+\Phi\subset\Phi$ and $\Phi\neq-\Phi$, (e.g., $\Phi=\Phi_{lsc}$ ) the $\Phi$-infimal convolution dual \eqref{hoabui} is defined but is not equivalent to \eqref{condual3} and it may happen that zero duality gap holds for \eqref{condual3} but not for \eqref{hoabui} (see Example \ref{example1} ). \end{enumerate} \end{remark} \begin{example} \label{example1} Let $\Phi=\Phi_{lsc}$. Let $g(x)=-x^2$ and $f(x)=2x^2$. It is easy to see that $\inf\limits_{x\in \hilbertX}(f(x)+g(x))=0$. For every $\varepsilon>0$, the elements of the set $\partial^{\varepsilon}_{\Phi}g$ are of the form $(a,b)\in \mathbb{R}\times \mathbb{R}$ with $a\geq 1$ and some $b\in \mathbb{R}$, this means that $$ 0\notin \bigcap_{\varepsilon>0}(\partial^{\varepsilon}_{\Phi}f+ \partial^{\varepsilon}_{\Phi}g)(\hilbertX). $$ On the other hand, $$ {\cal L}(x,1,0)=2x^2-x^2-\sup_{x\in X}\{-x^2+x^2\}=x^2. $$ This means that $\hat{\varphi}\equiv0$ belongs to the set $\text{supp}{\cal L}(x,1,0)$. We have $$ {\cal L}(x,3,0)=2x^2-3x^2-\sup_{x\in X}\{-3x^2+x^2\}=-x^2, $$ and the set $\text{supp}{\cal L}(x,3,0)\neq \emptyset$. Hence the functions $\hat{\varphi}$ and any other $\varphi\in \text{supp}{\cal L}(x,3,0)$ have the intersection property at every level $\alpha<0$. For any $a\ge 0$, $b\in\mathbb{R}$ and $\tilde{f}=(2-a)x^{2}$ we have $$ \begin{array}{l} g^{*}(a,b)=\sup_{x\in\mathbb{R}}\{bx-ax^{2}+x^{2}\}=\left\{\begin{array}{lll} +\infty&\mbox{for}&0\le a< 1 \ \\ +\infty&\mbox{for}&a=1\ b\neq 0 \ \\ 0&\mbox{for}&a=1\ b= 0,\ \\ \frac{b^{2}}{4(a-1)}&\mbox{for}&a>1\\ \end{array} \right.\\ \tilde{f}^{*}(0,-b)=\sup_{x\in\mathbb{R}}\{-bx+ax^{2}-2x^{2}\}=\left\{\begin{array}{lll} \frac{-b^{2}}{4(a-2)}&\mbox{for}&0\le a< 2\\ 0&\mbox{for}&a=2,\ b=0\\ +\infty&\mbox{for}&a=2,\ b\neq 0\\ +\infty&\mbox{for}&a>2,\\ \end{array} \right.\\ f^{*}(0,b)=\sup_{x\in\mathbb{R}}\{bx-2x^{2}\}=\frac{b^{2}}{8}. \end{array} $$ In consequence, $$ val(ICD)=\sup_{b\in\mathbb{R}}-f^{*}(0,-b) -g^{*}(0,b)=\sup_{b\in\mathbb{R}}-\frac{b^{2}}{8}-\infty=-\infty $$ and $$ val(CD)\begin{array}[t]{l} =\sup_{(a,b)\in\mathbb{R}_{+}\times\mathbb{R}}-\tilde{f}^{*}(0,-b)-g^{*}(a,b)\\ =\max\{0,\sup_{1<a<2\ b\in\mathbb{R}}\frac{b^{2}}{4(a-2)}-\frac{b^{2}}{4(a-1)}\}\\ \\ =\max\{0,\sup_{1<a<2\ b\in\mathbb{R}}\frac{b^{2}}{4}\frac{1}{(a-1)(a-2)}\}\\ =0 \end{array} $$ \end{example} \begin{corollary} \label{corzeroduality} Let $\hilbertX$ be a real vector space. Let $g: \hilbertX \rightarrow (-\infty,+\infty]$ be $\Phi$-convex. If $\Phi+\Phi\subset\Phi$, $0\in \Phi$, $\Phi=-\Phi$ and $\Phi$ is a convex set, then the intersection property \eqref{eq-11} is equivalent to \eqref{bui}. Consequently, \eqref{hoabui} is equivalent to \eqref{condual3a}, i.e. \begin{equation} \label{hoabuisym} val(ICD) =\sup\limits_{\varphi\in\Phi}-f_{\Phi}^{*}(-\varphi)-g_{\Phi}^{*}(\varphi)=val(CD^{sym}). \end{equation} \end{corollary} \begin{proof} Follows directly from Theorem \ref{th_implication}. \end{proof} \section{ $\Phi$-Karush-Kuhn-Tucker conditions.} In this section we provide a characterisation of solutions to $(P)$ and $(CD)/(CD^{sym})$ in terms of the $\Phi$-Karush-Kuhn-Tucker conditions. Let $\hilbertX$ be a real vector space. Consider problem \eqref{problema} \begin{equation} \label{problema} \tag{P} \text{Min}_{x\in \hilbertX}\ \ f(x)+g(x). \end{equation} where $f,g:\hilbertX\rightarrow(-\infty,+\infty]$ are $\Phi$-convex. The existence of solutions to the dual problem $(CD^{sym})$ was investigated in \cite{JRW} and the following result was proved. \begin{proposition}(\cite{JRW}, Corollary 5.2) Let $\Phi$ be an additive and symmetric set of elementary functions, i.e. $-\varphi\in \Phi$ if $\varphi\in \Phi$. Assume that $f$ and $g$ are $\Phi$-convex. If the mapping $\text{supp}(\cdot, \Phi)$ is additive in $f, g$, then there exists $\varphi^{*}\in \Phi$, such that $$ \inf_{x\in X}\{f(x)+g(x)\}=-f_{\Phi}^{*}(\varphi^{*})-g_{\Phi}^{*}(-\varphi^{*})=\sup_{\varphi\in\Phi}\{-f_{\Phi}^{*}(\varphi)-g_{\Phi}^{*}(-\varphi) \} $$ \end{proposition} \begin{definition} Let $\Phi$ be symmetric i.e. $\Phi=-\Phi$. We say that $x^{*}\in \hilbertX$ and $\varphi^{*}\in\Phi$ satisfy the {\em $\Phi$-Karush-Kuhn-Tucker conditions} $(KKT)$ for the pair of dual problems $(P)$ and $(CD^{sym})$ if \begin{equation} \label{solvability2} \tag{KKT} -\varphi^*\in\partial_{\Phi} f(x^{*}),\ \ \ x^{*}\in\partial_{\hilbertX} g_{\Phi}^{*}(\varphi^{*}). \end{equation} \end{definition} \begin{theorem} \label{kkt} Let $\hilbertX$ be a vector space and $\Phi$ be a symmetric set of elementary functions. Let $f,g:\hilbertX\rightarrow(-\infty,+\infty]$ be $\Phi$-convex functions. Let $x^{*}\in\hilbertX$ and $\varphi^{*}\in\Phi$. The following conditions are equivalent. \begin{description} \item[(i)] $x^{*}$ and $\varphi^{*}$ are solutions to $(P)$ and $(CD^{sym})$, respectively, i.e. \begin{equation} \label{solvability22} \inf\limits_{x\in\hilbertX} (f(x)+g(x))=f(x^{*})+g(x^{*})=\sup_{\varphi\in\Phi}(-f_{\Phi}^{*}(-\varphi)-g_{\Phi}^{*}(\varphi)) =-f_{\Phi}^{*}(-\varphi^*)-g_{\Phi}^{*}(\varphi^*) \end{equation} \item[(ii)] $x^{*}$ and $\varphi^{*}$ satisfy the $\Phi$-KKT conditions, i.e., \begin{equation} \label{solvability223} -\varphi^*\in\partial_{\Phi} f(x^{*}),\ \ \ x^{*}\in\partial_{\hilbertX} g_{\Phi}^{*}(\varphi^{*}). \end{equation} \end{description} \end{theorem} \begin{proof} Assume that \eqref{solvability22} holds, i.e. \begin{equation} \label{equ123} f(x^*)+g(x^*)=-f_{\Phi}^*(-\varphi^*)-g_{\Phi}^*(\varphi^*). \end{equation} By Theorem \ref{conju} and the $\Phi$-convexity of $g$, \eqref{solvability22} is equivalent to $$ f(x^*)+g^{**}_{\Phi}(x^*)=-f_{\Phi}^*(-\varphi^*)-g_{\Phi}^*(\varphi^*). $$ By the definition of $g^{**}_{\Phi}(x^*)$, $f(x^*)+\varphi^*(x^*)-g_{\Phi}^*(\varphi^*)\leq -f_{\Phi}^*(-\varphi^*)-g_{\Phi}^*(\varphi^*)$, i.e., $$ f(x^*)+f_{\Phi}^*(-\varphi^*)\leq -\varphi^*(x^*). $$ This, together with the Fenchel-Moreau inequality yields to $ f(x^*)+f_{\Phi}^*(-\varphi^*)= -\varphi^*(x^*) $ i.e. $-\varphi^*\in\partial_{\Phi} f(x^{*})$. Analogously, by replacing in \eqref{equ123} function $f$ with $f_{\Phi}^{**}(x^*)$ we obtain $x^*\in \partial_{\hilbertX}g^*_{\Phi}(\varphi^*)$. Assume now that the conditions \eqref{solvability223} hold. By the Proposition \ref{you}, \begin{equation} \label{eqf1} -\varphi^*(x^*)=f_{\Phi}^*(-\varphi^*)+f(x^*) \end{equation} and \begin{equation} \label{eqg1} \varphi^*(x^*)=g_{\Phi}^*(\varphi^*) +g(x^*). \end{equation} Hence, $$ f(x^*)+g(x^*)=-f_{\Phi}^*(-\varphi^*)-g_{\Phi}^*(\varphi^*). $$ From \eqref{eqg1} we get $\varphi^*\in \partial_{\Phi} g(x^*)$, which means that $0\in \partial_{\Phi} f(x^*)+\partial _{\Phi}g(x^*)\subset \partial_{\Phi} (f+g)(x^*)$. From the equality \eqref{eqf1} we have $x^*\in \partial_{\hilbertX} f_{\Phi}^*(-\varphi^*)$, this, together with the assumption that $x^{*}\in\partial_{\hilbertX} g_{\Phi}^{*}(\varphi^{*})$, yields to $$ f_{\Phi}^*(-\varphi)+g_{\Phi}^*(\varphi)-f_{\Phi}^*(-\varphi^*)-g_{\Phi}^*(\varphi^*)\geq -\varphi(x^*)+\varphi^*(x^*)+\varphi(x^*)-\varphi^*(x^*)\ \ \ \forall \ \ \ \varphi\in \Phi. $$ Equivalently, $-f_{\Phi}^*(-\varphi)-g_{\Phi}^*(\varphi)\leq -f_{\Phi}^*(-\varphi^*)-g_{\Phi}^*(\varphi^*) $ for all $\varphi\in \Phi$ which means that $-f_{\Phi}^*(-\varphi^*)-g_{\Phi}^*(\varphi^*)=\sup\limits_{\varphi\in\Phi}(-f_{\Phi}^{*}(-\varphi)-g_{\Phi}^{*}(\varphi))$. This completes the proof. \end{proof} \subsection{KKT for $\Phi= \Phi_{lsc}$} Let $\hilbertX$ be a Hilbert space. In the present subsection we prove a variant of Theorem \ref{kkt} with $f$ and $g$ which are $\Phi_{lsc}$-convex, where \begin{equation} \label{philsc1} \Phi_{lsc}=\{\varphi:\hilbertX\rightarrow\mathbb{R}\ \mid\ \varphi(x):=-a\|x\|^{2}+\langle v,x\rangle +c,\ a\ge 0,\ v\in\hilbertX,\ c\in\mathbb{R}\}. \end{equation} The set $\Phi_{lsc}$ is nonsymmetric and forms a non pointed cone with the lineality space $L=\hilbertX$. By Proposition 6.3 of \cite{rubbook}, the class of $\Phi_{lsc}$-convex functions defined on Hilbert space $\hilbertX$ coincides with the class of all lower semicontinuous functions minorized by a function $\varphi\in\Phi_{lsc}$. Clearly, the class $\Phi_{lsc}$ is additive and the sum $f+g$ of any $\Phi_{lsc}$-convex functions $f$ and $g$ is a $\Phi_{lsc}$ function. Recall that the $\Phi_{lsc}$-conjugate dual to problem $(P)$ with $\Phi_{lsc}$-convex functions $f$ and $g$ has the form \eqref{conjugate_dual1} \begin{equation} \label{conjugate_dual11} \tag{$CD^{lsc}$} \text{Max\,}_{(a,w)\in\Phi_{lsc}} -(\tilde{f}_{(a,w))})_{\Phi_{lsc}}^{*}(0, -w)-g_{\Phi_{lsc}}^{*}(a,w), \end{equation} where functions of the form $\psi_{1}(x):=-a\|x\|^{2}+\langle w,x\rangle$ are identified with pairs $(a,w)$, $a\ge 0$, $w\in\hilbertX$ and $\tilde{f}_{\psi_{1}}(x)=\tilde{f}_{(a,w)}(x):=f(x)-a\|x\|^{2}$. \begin{theorem} \label{kktlsc} Let $\hilbertX$ be a Hilbert space. Let $f,g:\hilbertX\rightarrow(-\infty,+\infty]$ be $\Phi_{lsc}$-convex functions. In order that $x^{*}\in\hilbertX$ and $\varphi^{*}=(a^{*},w^{*})\in\Phi_{lsc}$ be such that \begin{equation} \label{solvabilitylsc1} \begin{array}{l} \inf\limits_{x\in\hilbertX} (f(x)+g(x))=f(x^{*})+g(x^{*})=\sup\limits_{(a,w)\in\Phi_{lsc}}(-(\tilde{f}_{(a,w)})_{\Phi_{lsc}}^{*}(0,-w)-g_{\Phi_{lsc}}^{*}(0,w))\\ =-(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^{*}(0,-w^{*})-g_{\Phi_{lsc}}^{*}(a^{*},w^{*}), \end{array} \end{equation} i.e. $x^{*}\in\hilbertX$ solves $(P)$ and $\varphi^{*}=(a^{*},w^{*})\in\Phi_{lsc}$ solves \eqref{conjugate_dual11} it is necessary and sufficient that $x^{*}\in \hilbertX$ and $\varphi^{*}\in\Phi_{lsc}$ satisfy the $\Phi$-Karush-Kuhn-Tucker conditions \eqref{solvability2}, \begin{equation} \label{solvabilitylsc} (0,-w^{*})\in\partial_{lsc}\tilde{f}(x^{*}),\ \ \ x^{*}\in\partial_{\hilbertX}g_{\Phi_{lsc}}^{*}(\varphi^{*}) \end{equation} where $\partial_{lsc}$ denotes the $\Phi_{lsc}$-subgradient. \end{theorem} \begin{proof} By Proposition \ref{you}, the inclusions in formulae \eqref{solvabilitylsc} are respectively equivalent to the following equalities \begin{equation} \label{eqflsc} -\langle w^{*},x^{*}\rangle=(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})+\tilde{f}(x^*)=(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})+f(x^*)-a^{*}\|x^{*}\|^{2}, \end{equation} where $\tilde{f}_{(a^{*},w^{*})}(x^{*}):=f(x^{*})-a^{*}\|x^{*}\|^{2}$ and $\varphi^*(x^*)=-a^{*}\|x^{*}\|^{2}+\langle w^{*},x^{*}\rangle=g_{lsc}^*(\varphi^*) +g(x^*).$ Consequently, $$ (\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^{*}(0,-w^{*})+f(x^*)=-g_{\Phi_{lsc}}^*(\varphi^*)-g(x^*) $$ and, in view of \eqref{pdineq}, we obtain \eqref{solvabilitylsc1}. Assume now that \eqref{solvabilitylsc1} holds with $\varphi^{*}(x):=-a^{*}\|x\|^{2}+\langle w^{*},x\rangle$, i.e. \begin{equation} \label{equ1234} f(x^*)+g(x^*)=-(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})-g_{\Phi_{lsc}}^*(\varphi^*), \end{equation} where $$ (\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})=\sup\limits_{x\in \hilbertX} -\langle w^{*},x\rangle-(f(x)+a^{*}\|x\|^{2}) $$ and, as previously, $\tilde{f}_{\varphi}(\cdot)=\tilde{f}_{(a,w)}(\cdot)=f(\cdot)-a\|\cdot\|^{2}$ for any $\varphi\in\Phi$. By Theorem \ref{conju} and the $\Phi$-convexity of $g$, \eqref{equ1234} is equivalent to $$ f(x^*)+g_{\Phi_{lsc}}^{**}(x^*)=-(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})-g_{\Phi_{lsc}}^*(\varphi^*). $$ By definition of $g_{\Phi_{lsc}}^{**}(x^*)$, $f(x^*)+\varphi^*(x^*)-g_{\Phi_{lsc}}^*(\varphi^*)\leq -(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})-g_{\Phi_{lsc}}^*(\varphi^*)$, i.e., $$ f(x^*)+(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})\leq -\varphi^*(x^*). $$ Hence, $\tilde{f}(x^*)+(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})\leq -\langle w^*,x^*\rangle$ and, by Fenchel-Moreau inequality, $\tilde{f}_{(a^{*},w^{*})}(x^*)+(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})= -\langle w^*,x^*\rangle$ i.e. $(0,-w^{*})\in\partial_{lsc} \tilde{f}_{(a^{*},w^{*})}(x^{*})$. Analogously, by \eqref{equ1234}, $\tilde{f}_{(a^{*},w^{*})}(x^*)+a^{*}\|x\|^{2}+g(x^*)=-(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^*(0,-w^{*})-g_{\Phi_{lsc}}^*(\varphi^*)$, and since $\tilde{f}$ is $\Phi_{lsc}$ convex, $\tilde{f}_{(a,w)}=(\tilde{f}_{(a,w)})_{\Phi_{lsc}}^{**}$, and $$ -(\tilde{f}_{(a^{*},w^{*})})^{*}_{\Phi_{lsc}}(0,-w^{*})-\langle w^{*},x^{*}\rangle +a^{*}\|x^{*}\|^{2}+g(x^{*})\le -(\tilde{f}_{(a^{*},w^{*})})_{\Phi_{lsc}}^{*}(0,-w^{*})-g_{\Phi_{lsc}}^{*}(\varphi^{*}), $$ i.e. $g(x^{*})+g_{\Phi_{lsc}}^{*}(\varphi^{*})\le \varphi^{*}(x^{*})$ which, together with Fenchel-Moreau inequality, gives $x^*\in \partial_{\hilbertX}g_{\Phi_{lsc}}^*(\varphi^*)$. \end{proof} The example below illustrates Theorem \ref{kktlsc}. \begin{example} Let $\hilbertX=\mathbb{R}$. Let $f,g:\mathbb{R}\rightarrow\mathbb{R}$ be given by the following formulas $$ f(x)=\left \{ \begin{matrix} 2(x-1)^2 & \ \ \text{for} \ \ x\geq 0\cr 2(x+1)^2 & \ \ \ \text{for} \ \ x<0\cr \end{matrix} \right., \ \ \ \ \ \ \ g(x)=-x^2. $$ It is easy to see that $f$ and $g$ are nonconvex but $\Phi_{lsc}$-convex, where the set $\Phi_{lsc}$ is defined by \eqref{philsc}. Functions $\varphi\in \Phi_{lsc}$ such that $c=0$ will be identified with pairs $(a,v)$, $a,v\in\mathbb{R}$. Consider the problem $$ \inf_{x\in \mathbb{R}}\{f(x)+g(x)\}. $$ Let $\varphi^*(x)=-x^2$, which we identify with the pair $(1,0)$, it is easy to see that $$ f(x)-f(2)\geq x^2-(2)^2 $$ i.e. $(-1,0)\in \partial_{lsc}f(2)$. Now we show that $2\in\partial_{\hilbertX}g_{lsc}^*(1,0)$ i.e that the KKT conditions hold and this means, that $\varphi^*(x)=-x^2$ and $x^*=2$ are the solutions of the dual and primal problems, respectively. By simple calculations we get $$ g^*(a,b)=\sup_{x\in\mathbb{R}}\{ -ax^2+bx+x^2\}=\left \{ \begin{matrix} +\infty & \ \ \text{for} \ \ a\leq 1,b\neq 0\cr 0 & \ \ \ \text{for} \ \ a=1,b=0\cr \frac{-b^2}{4(1-a)}& \ \ \ \text{for} \ \ a>1,b\neq0\end{matrix} \right., $$ and it is easy to see that $2\in\partial_{\hilbertX}g_{lsc}^*(1,0)$ and $(0,0)\in \partial_{lsc}\tilde{f}(2)$, where $\tilde{f}_{(a,v)}=f-a\|\cdot\|^{2}$. \end{example} \section{Conclusions} In conclusion, Theorem \ref{lagmin1} provides sufficient and necessary conditions for zero duality gap for primal \eqref{problem}, $\Phi$-Lagrangian \eqref{lagprimal}, $\Phi$-Lagrangian dual \eqref{lagdual} and $\Phi$-conjugate dual \eqref{condual3} problems, for a suitably defined $\Phi$-Lagrangian function when $0\in \Phi$, and $\Phi$ is a convex set. Theorem \ref{lagmin1}, together with Theorem \ref{kkt} and Theorem \ref{kktlsc} reveal the importance of properties of the elementary functions $\Phi$ in general duality theory. \bibliographystyle{siam}
\section{Conclusion and Future Work} In this paper we examined two key parameters of HSA design, the point along the auxetic trajectory, and the number of cells vertically that had both been overlooked in past work. We found that the point along the auxetic trajectory that was set as the rest state has a dramatic effect on the actuators performance, far beyond the other parameters that had been studied. Changing the auxetic trajectory point allowed us to expand the range of blocked forces up to ~150N, generate stiffness over 80 N/mm, and expand the range of actuation to include contraction and bidirectional actuation. By studying the effect of length on traditional closed HSA actuators, we found that shorter HSAs generated higher forces and stiffer structures at the cost of lower extensions and higher torques. For both parameter sets we studied the coupling between extension, stiffness, angle, and torque. The characterization provides the information needed for future researchers to select motors, information that is critical to design efforts. While current materials and fabrication methods may limit time scale of force application due to stress relaxation, we believe future manufacturing improvements will overcome this limitation and that the trends we have found will generalize to other materials. There are still several parameters to explore, including cell aspect ratio, ratio of beam widths, and the connection to the mounting point. This work lays a foundation for applications of HSAs as entirely electric and compliant actuation in grippers, arms, exoskeletons, and any other soft robotic application and sets a direction for future improvements to HSAs. \section{Methods} \begin{figure}[h!] \centering \includegraphics[width=.31\textwidth]{media/Full-AuxeticTrajectory.eps} \caption{The Auxetic Trajectory for an Handed Shearing Auxetic (HSA) pattern. HSAs tile a 2D unit cell (A) around and along a cylinder. Rows represent the number of vertically stacked unit cells and collumns represent the number of horizontally stacked unit cells. As an internal angle $\phi$ between links of the cell increases the cell expands and shears, driving a rotation and expansion of the cylinder (B). A rotation of one end of the cylinder ($\theta$) can also drive an expansion of the cell and cylinder. The evolution of the system with respect to $\phi$ is the auxetic trajectory. Different instantiations of the auxetic trajectory can then be manufactured and used in soft robotic applications(C).} \label{fig:AuxTraj} \hfill \vspace{-0.75cm} \end{figure} Handed Shearing Auxetics were originally designs as an idealized kinematic linkage structure of tessellated cells on a plane or cylinder\cite{lipton2018handedness}. In this framework the structure has a zero energy mode of deformation, leaving it no preferred state. This zero energy mode of deformation defines a single degree of freedom that is coupled to a change in the angle between two links in the tiled cells seen in Figure~\ref{fig:AuxTraj}A. The evolution of the cells with respect to this angle is known as the auxetic trajectory\cite{lipton2018handedness}. As seen in Figure~\ref{fig:AuxTraj}B, when a cylinder is twisted, the structure moves along its auxetic trajectory, causing the cells and therefore the cylinder to expand. While in the idealized model there is no preferred point along the trajectory, actually fabricating the model out of living hinges biases the structure and convert the zero-energy mode of deformation into one with a shallow gradient. The first and all subsequent soft robotic HSA structures were designed to be maximally compact to maximize the expansion of the structure\cite{lipton2018handedness,chin2018compliant,truby2021recipe}. This biased the device to be at the most closed point possible. To explore the effect of biasing the HSA auxetic trajectory, we selected three points along the auxetic trajectory for testing as seen in Figure~\ref{fig:AuxTraj}C. The closed state is the same as past HSAs. The open state represents the maximum point along the auxetic trajectory, further evolution of $\phi$ beyond this point result in non-auxetic deformations of the cell and is out of scope for this paper. We then chose a point midway between the closed state and the open state and refer to it as the semi-open state. Past work on characterizing HSAs focused on taking a structure of fixed length and shrinking the size of the cell, to increase the number of wraps around the cylinder and the number of cells vertically. What remains unknown is how changing the length with the same size cell effects stiffness. HSAs can be viewed as programmable springs, where the change in angle changes the stiffness of the structures. For regular springs the relationship between length and spring constant is an inverse relationship set by the number of windings. It is unclear how a change in spring constant as a function of $\theta$ is effected by the number of stacked unit cells, because the number of windings remains constant. \begin{figure}[h] \centering \includegraphics[width=.45\textwidth]{media/RowHSAs.eps} \caption{Five instantiations of closed left-handed HSAs with varying row counts from four to twelve. These are made by tiling the closed pattern around a unit cell.} \label{fig:rows} \vspace{-0.75cm} \end{figure} \subsection{Mechanical Characterization} \subsubsection{HSA Manufacturing} All HSAs tested were rapidly manufactured using digital projection lithography on a Carbon M1 3D Printer using Carbon FPU50. All closed trajectory HSAs were printed horizontally with the semi-open and open HSAs being printed at a 20 degree angle to improve print quality of the primary bands. All parts were handled, cleaned, and cured following the manufacturers specifications. Unless otherwise specified all HSAs in this paper were designed with a 21mm outer diameter and a 2mm wall thickness. \subsubsection{Auxetic Trajectory Test Parameters} The testing procedures for Auxetic Trajectory HSA configurations was defined by manually observing the practical range of rotation and extension for each configuration. All samples tested are left handed which means that a clockwise rotation will shorten the structure. \begin{table}[!h] \caption{Testing procedures for the Auxetic Trajectory subcategory of HSAs. All test rates are 20 mm/s} \begin{adjustbox}{center,max width=\linewidth} \begin{tabular}{lrrr} \toprule \bf \stackbox[l]{HSA\\Type} & \bf \stackbox[r]{Theta\\ Steps }& \bf \stackbox[r]{Printed \\Length} & \bf \stackbox[r]{Cycling \\Range} \\ \midrule Closed & 0:30:90 & 75 mm & 0 to 20.0 mm \\ Semi-Open & -90:30:90 & 109 mm & -3.4 to 6.6 mm \\ Open & -180:30:0 & 122.2 mm & -3.4 to 0 mm \\ \bottomrule \end{tabular} \end{adjustbox} \vspace{-0.5cm} \label{tab:Auxetic} \end{table} The 4-row closed HSA testing procedure was obtained through a (i) tensile failure test and (ii) a series of manual rotations and extensions. Zero force displacement was obtained by manually jogging the HSA to a displacement where the force reading is zero for every $\theta$ value stepped to, then averaging the difference between each step. For this configuration, the zero force displacement was 2.7 mm. The lower displacement limit for the semi-open configuration was defined as the displacement necessary to have a minimum force reading at a rotation of 90 degrees clockwise. The upper limit is defined as half the resting height of the open HSA configuration (6.6 mm). The relationship between rotation and zero force displacement is linear in this region. For this configuration, the zero force displacement was 1.1 mm. The lower limit for the open configuration was defined as the displacement necessary to have a minimum force reading at a rotation of 180 degrees clockwise. The upper limit was defined as the printed length of the open HSA. The zero force displacement was obtained by dividing the lower displacement limit by the number of rotation steps needed to go back to the resting state. For this configuration, the zero force displacement was 0.6mm. To determine the spring constant for the semi-open and open HSAs for a given $\theta$, we conducted an extension test of 4.0mm and 0.5mm at L. Force and displacement were measured and the slope used to determine the spring constant. \subsubsection{Row Test Parameters} All HSAs in this subcategory vary the number of stacked closed unit cells. We tested closed HSAs with 4, 6, 8, 10, and 12 rows. The testing procedures were obtained in the same way as the 4-row closed HSA configuration. The zero-force displacement was found by manually jogging and rotating the HSA to find the minimum force. The average difference in displacement between steps is defined as the zero-force displacement. For future HSAs, the practical cycling range and zero force displacement can be estimated from the trends from this work. \begin{table}[!h] \caption{Testing procedures for HSAs of different row amounts. \textit{All tested at 20 mm/s}} \begin{adjustbox}{center,max width=\linewidth} \begin{tabular}{rrrrr} \toprule \bf \stackbox[r]{Number of\\ Rows} & \bf \stackbox[r]{Theta\\ Steps }& \bf \stackbox[r]{Printed \\Length} & \bf \stackbox[r]{Cycling \\Range} & \bf \stackbox[r]{Zero Force \\Displacement} \\ \midrule 4 & 0:30:180 & 75 mm & 0 to 20.0 mm & 2.7 mm \\ 6 & 0:30:180 & 89 mm & 0 to 19.4 mm & 3.6 mm \\ 8 & 0:30:180 & 100 mm & 0 to 31.7 mm & 3.5 mm \\ 10 & 0:30:180 & 112 mm & 0 to 41.8 mm & 3.5 mm \\ 12 & 0:30:180 & 124 mm & 0 to 60.0 mm & 3.8 mm \\ \bottomrule \end{tabular} \end{adjustbox} \vspace{-0.75cm} \label{tab:Rows} \end{table} \subsection{Measured and Derived Properties} In this paper, we characterize four main properties for the HSAs tested: blocked force ($F_b $), minimum energy length (L), holding torque ($\tau_h$), and the spring constant (k). Blocked force is defined as the force required to counteract the pulling or pushing force exerted by the HSA when one of its ends is rotated while preventing the structure from changing length. The minimum energy length is defined as the position where the force is minimized for a given $\theta$ rotation. Holding torque is then defined as the moment required to hold an HSA at a given angle $\theta$ at the minimum energy length, L. The spring constant is defined as the slope of the force displacement curve at L. All HSAs were cycled ten times and the median values plotted. Error bars extend from each point representing the minimum and maximum values encountered in the ten cycles. We elected to drop the first cycle of data from the plotted figures, due to hysteresis in HSAs made from FPU50 as described in \cite{truby2021recipe}. All data was gathered from an Instron 68SC-2 at 50Hz with a force and torque cell. An additional dimension to add to testing is that of time, particularly for FPU50. To characterize the HSAs holding force over time, we conducted a force-relaxation test. The test was conducted on a closed 8 row HSA with a 25.4mm diameter. The HSA was extended to 30mm over three seconds where it was then held for 20 minutes at an ambient temperature of approximately 71F (22C). \section{Introduction} For soft robots to find wide-scale utility they must leverage our past and ongoing development of electrical power sources, compute, and motors. Fluid-flow driven robots have proliferated, but they must be entirely fluid based\cite{hubbard2021fully,drotman2021electronics,wehner2016integrated}, or rely on slow, rigid, and inefficient hardware to interface with electrical systems\cite{chin2018compliant}. While a significant amount of effort has gone into self healing and puncture resistant fluid-driven robots\cite{terryn2017self, martinez2014soft}, their nature leaves them susceptible to cascading failure. \begin{figure}[h] \centering \includegraphics[width=0.85\linewidth]{media/HeroFigureV3.eps} \captionsetup{justification=centering} \caption{HSAs convert rotation into compliant length changes enabling soft robots such as (A) A 4-DoF platform. (B) By varying the structure of the HSA in terms of its cell rest state and the number of cells, we can effect Torque ($\tau$), Blocked Force (F), the spring constant (K) and minimum energy length (L) } \label{fig:hero} \end{figure} Efforts in building electrically-driven soft robots have either focused on novel responsive materials\cite{lipton2016electrically,miriyev2017soft,acome2018hydraulically,he2019electrically}, or on cable driven systems\cite{almubarak2017twisted,bern2020soft,somm2019expanding}. Dielectric actuators can quickly, efficiently and directly respond to electrical stimuli but require high voltages, limiting adoption. Thermal responsive materials like liquid crystal elastomers can be programmed to generate complex shape transformations\cite{li2021controlling,boley2019shape} and phase change materials\cite{lipton2016electrically} can generate large forces. While these are promising they fundamentally rely on converting electricity to heat, making them slow to cycle and inefficient. The alternative to materials that convert electricity into actuation has been to rely on motors in soft robots. The primary method has been twisted pair\cite{almubarak2017twisted} or cable driven\cite{bern2020soft,somm2019expanding,bern2019trajectory,mishra2017simba} robots. While these have been successfully used as arms\cite{bern2020soft}, grippers\cite{somm2019expanding,mishra2017simba}, and locomotive robots\cite{bern2019trajectory}, these drives can only pull, and must rely on the structure itself to generate a restorative force. Recent developments in auxetic metamaterials allows compliant structures to directly convert the rotation and torque from a motor into linear translation\cite{lipton2018handedness}, bending\cite{chin2018compliant,chin2019simple} or volumetric expansion\cite{lipton2019modular}. Handed Shearing Auxetic (HSA) materials have been used to make robot arm sections\cite{lipton2018handedness} and grippers\cite{chin2018compliant, chin2019simple, chin2019automated, chin2020multiplexed}. They can be lasercut from PTFE tubes\cite{chin2018compliant,chin2019simple}, assembled from spring steel strips\cite{lipton2018handedness}, or 3D printed out a variety of polymers\cite{truby2021recipe}. HSA actuators are made by tiling a shearing auxetic cell onto a cylinder to cause it to expand when twisted as seen in Fig.\ref{fig:AuxTraj}. As internal angles of the cells change, the structure expands. The internal angle change defines a trajectory of system state we call the auxetic trajectory. When an HSA is made, a point of the trajectory is converted into a structure for fabrication per Fig.\ref{fig:AuxTraj}. All work until today has focused on the initial HSA design, which is at a maximally closed state\cite{chin2018compliant, chin2019automated, chin2020multiplexed,truby2021recipe}. This actuator can be twisted to extend, but due to its closed state design, cannot be twisted to generate pull forces. Characterization of this design has focused on the effect of cell size, base materials, diameter and wall thickness on performance metrics such a blocked force, extension, and grip strength\cite{truby2021recipe}. The upper limit of blocked force and spring constant found by this work reached 5N and 2N/mm respectfully. While useful, it has not given us enough information to select a motor for an HSA actuator, nor has it solved the fundamental limitations of the original design. For HSAs to become more widely used in robotics we need to move beyond push-only actuation and to understand how to spec an HSA structure and a motor pair to make an actuator. To that end we have analyzed the effect of two overlooked design parameters on HSA structures by 3D printing structures and testing them. Specifically we focused on the point of the auxetic trajectory used as the base state and the number of cells along the actuator. By varying the point along the auxetic trajectory used to make the structure, we find that we can generate purely contractile actuators, purely expanding actuators, and actuators that can expand and contract. We model the HSA as a spring of variable stiffness and length that is driven by the twist angle of the base. We determined the amount of holding torque and angle range needed for an HSA as a function of cell number and trajectory point, enabling servo selection. We found that the materials these structures were made from also contributed significantly to actuator performance, and found that stress-relaxation could limit the time scale of force application. In this paper we: \begin{itemize} \item Model to key metrics needed for motor selection with HSA structures \item Expanded the force range of HSA actuators to include contraction \item Characterize the effect of the auxetic trajectory point selection, and vertical cell count on actuator performance \item Evaluate the effect of stress relaxation on force application by HSA actuators \end{itemize} \section{Results} \subsection{The effect of the number of rows} \begin{figure*}[t] \centering \hfill \makebox[\textwidth][c]{\includegraphics[width=1.22\textwidth]{media/rowConfigs.eps}} \caption{HSA properties as a function of number of cells for a traditional closed HSA design.} \label{fig:row results} \hfill \end{figure*} The results for row counts effect on blocked force, spring constant, mininum energy length, and holding torque as a function of angle of rotation can be seen in Figure~\ref{fig:row results}. The blocked force trends in Figure~\ref{fig:row results}a show blocked force increasing as a function of angle of twist for all patterns. These are best modeled as a quadratic function of $\theta$ whose terms can be seen in table~\ref{tab:Fit Functions}. We found that HSAs of lower row counts generate higher blocked forces for the same angle. We see from Figure~\ref{fig:row results}C that row count has no effect on the length change of the actuator as a function of angle, demonstrated by an equal slope for all configurations. Therefore, the effect of compression is not driving the blocked force effects; it is driven entirely by the effect of cells on spring constant. One would expect the spring constant for an HSA at rest, like a traditional spring, to have an inverse relationship with the number of rows. This is because in the traditional wire springs the spring constant is governed by the equation, \begin{equation} k = \frac{G d^4}{8n_c D^3} \label{eq:spring} \end{equation} where $n_c$ is the number of coils, D is the mean coil diameter, G is the shear modulus, and d is the diameter of the winding. While our HSA does not have a circular cross section, the effect of coil count should be unaffected. In a closed HSA, the number of coils is the number of wide beams that wrap around the structure. Our HSA has a 3 way rotational symmetry about its axis so if we ignore the effect of the small beams the number of coils is three times the row count. At no rotation, we find that in fact, there is an inverse relationship between the number of rows $n_r$ and the rest state spring constant. However the power is -1.4 rather than -1. What we would not anticipate from traditional models of springs is that that the HSA would stiffen as $\theta$ increases. While the pitch and total length changes as $\theta$ increases, equation~\ref{eq:spring} predicts that there should be no change in stiffness. In fact since the structure is auxetic, the mean diameter (D) would increase, and we would anticipate a decrease in stiffness. This effect is what makes HSAs fundamentally different from a simple spring. We found that the shorter the HSA was, the more quickly the spring constant changed as a function of $\theta$ (see spring constant fit values A in table ~\ref{tab:Fit Functions}). Overall, smaller HSAs are less prone to problems such as buckling especially at higher twist angles. While these smaller HSAs are better suited for carrying force, they sacrifice the higher extension capabilities that come with more rows. The main tradeoff in choosing a row count is between throw and stiffness/blocked force. The consequence of having a higher blocked force for a closed HSA is an increase the the amount of torque a motor must produce. For the open HSA we found that all have a nearly perfect linear relationship between twist angle and holding torque. The twist-torque constant increases significantly as row count decreases. Overall for the same amount of length change in an actuator, the more rows there are, the less torque is needed. \begin{figure*}[t] \centering \makebox[\textwidth][c]{\includegraphics[width=1.22\textwidth]{media/auxtraj.eps}} \caption{Key properties for HSAs printed along the auxetic trajectory with fixed number of cells.} \label{fig:auxtrajstartchart} \captionsetup{justification=centering} \vspace{0.5cm} \end{figure*} \begin{table*}[] \resizebox{\textwidth}{!}{% \begin{tabular}{c|ccccccccccccc} Value & \multicolumn{3}{c|}{Blocked force} & \multicolumn{2}{c|}{Holding torque} & \multicolumn{3}{c|}{Spring constant} & \multicolumn{3}{c}{Minimum energy length} \\ Equation & \multicolumn{3}{c|}{$F_b = A\theta^2 + B\theta$} & \multicolumn{2}{c|}{$\tau_h = C_\tau\theta$} & \multicolumn{3}{c|}{$k=C_k\theta + k_0$} & \multicolumn{3}{c}{$L = C_l\theta + L_o$} \\ Constants & $A$ & $B$ & \multicolumn{1}{c|}{$R^2$} & $C_\tau$ & \multicolumn{1}{c|}{$R^2$} & $C_k$ & $k_0$ & \multicolumn{1}{c|}{$R^2$} & $C_l$ & $L_o$ & $R^2$ \\ \hline 4 row & -4.2339e-04 & -0.0903 & 0.9988 & 0.9545 & 0.999 & 0.0122 & 1.6640 & 0.977 & 0.0531 & 74.8555 & 0.993 \\ 6 row & -3.3056e-04 & -0.0228 & 0.9955 & 0.4770 & 0.993 & 0.0028 & 0.7747 & 0.902 & 0.0664 & 88.5024 & 0.989 \\ 8 row & -1.4010e-05 & -0.0329 & 0.9909 & 0.3521 & 0.999 & 0.0018 & 0.4700 & 0.906 & 0.0653 & 99.7678 & 0.996 \\ 10 row & -8.4170e-05 & -0.0194 & 0.9917 & 0.2899 & 0.999 & 7.1581e-04 & 0.4339 & 0.713 & 0.0653 & 111.7795 & 0.997 \\ 12 row & -3.1436-04 & 0.0115 & 0.9878 & 0.2039 & 0.999 & 2.6294e-04 & 0.3576 & 0.831 & 0.0608 & 124.3016 & 0.997 \end{tabular}% } \caption{Fit functions and their parameters for HSAs with varying rows} \label{tab:Fit Functions} \end{table*} \subsection{Auxetic Trajectory} The effect of changes in the auxetic trajectory point can be seen in Figure~\ref{fig:auxtrajstartchart}. We see the effect of increasing $\theta$ (counterclockwise rotation) decreasing $\theta$ (clockwise rotation) on the structure blocked force, spring constant, minimum energy length and holding torque. For all structures the blocked force is 0N when no rotation is applied. As expected, the closed HSA only has a positive theta range and generates a pushing forces as $\theta$ increased from 0. The fully open HSA by contrast only has a negative theta range from 0 to -180 degrees. It generates a pulling force that grows with rotation (negative $\theta$). This force peaks at the end of its rotational range of -180 degres, generating a maximum force of 124N. This contractile force is caused by the structures minimum energy length decreasing with as $\theta$ decreases as seen in Figure~\ref{fig:auxtrajstartchart}c. The semi-open HSA meanwhile has a rotation range with positive and negative $\theta$. It expands in the positive $\theta$ range and contracts in the negative $\theta$ range. The result is that the blocked force can be both positive (expanding) and negative (contracting). The expansion force at +90 degree of the semi-open (8.9N) is comparable to that of the the closed HSA(11.6N). We can observe from this that the auxetic trajectory point is a major factor in controlling blocked force, and that it is directly driven by the changing the range of angles that can be achieved and the resulting change in length. For all of them, minimum energy length is a linear function of $\theta$ of the form $L=C_l \theta + L_0$ with $L_0$ being the length at zero rotation and $C_l$ being the rotation-extension coupling constant. It should be noted that the closed HSA has the largest rotation-extension coupling constant of 0.053mm/radian followed by semi-open (0.030mm/radian) then open (0.013mm/radian). This is expected since the HSAs follow the auxetic trajectory as they are twisted. When $\phi$ is small, minor changes in $\phi$ result in large translations to the height of the unit cell. As $\phi$ approaches $\phi_(max)$, large changes in $\phi$ produce relatively small changes in height. For all HSAs, the spring constants increased as $\theta$ increases as seen in Figure~\ref{fig:auxtrajstartchart}B. The Open HSA has a significantly higher spring constant that the others which reaches it maximum at zero rotation. This is primarily due to the open HSA having straight connections between the top and bottom, which must be pulled or compressed till buckling to move. It is the combination of high spring constant and low rotation-extension coupling constant that causes the open HSA to have such a large blocked force. Unlike the closed HSA, the spring constants are nonlinear functions of $\theta$ for the open and semi-open HSA. It should be noted that the lowest spring constant for the open is higher than the highest of the semi-open. The same is true for the Semi-open and the closed. Therefor the point along the auxetic trajectory that is used should be considered the primary determinant of stiffness in HSA design. The required holding torque as a function of the angle of rotation for the three different auxetic trajectory states is shown in Figure~\ref{fig:auxtrajstartchart}D with the torque being 0 Nmm when no rotation is applied. Unlike the closed HSA, the semi-open and open HSAs do not have a linear relationship between angle and torque. For the semi-open there is a small linear region between -30 and 30 degrees. For the open HSA the holding torque can be modeled as a quadratic function of $\theta$ of the form $(-1.219{\times}10^{-4}) \theta^2+0.1834 \theta$ With this data, we can how see how much torque and angle range would be needed to drive the various types of HSA to to their desired stiffness, length or force by examining what twist angle would be needed. \subsection{Stress relaxation} \begin{figure}[h] \centering \includegraphics[width=.49\textwidth]{media/StressRelaxationPlot.eps} \caption{Stress relaxation on a closed 8-wrap HSA shows that the structure will ultimately loose half of its holding force over time.} \label{fig:creep} \end{figure} The stress relaxation results of a closed 8 wrap FPU50 HSA can be seen in Figure~\ref{fig:creep}. It shows severe degradation in holding force over time. This is due to the material's viscoelastic properties. At 30mm of extension we see a peak of 16.3N blocked force on the HSA. after 0.1s of holding, blocked force drops by 0.7N (4.3\%). At 0.5s and 1s, blocked force is down 1.3N(8.5\%) and 1.7N(11.8\%). 5 seconds after peak, blocked force is down 3.1N(23.0\%). Ultimately after 1200 seconds the force drops 7.4N(45\%). The response is typical of materials with multiple relaxation modes. We find that by fitting exponential fits from peak force to +0.16 and a second fit of force +0.16 seconds to 1.2 seconds we find a relaxation modes with a time constant of 3 seconds and 18 seconds respectively. Therefor for actuation that is much faster than 3 seconds we can assume elastic performance and can ignore viscoelastic effects. For longer time scales, a more complex model would be needed when using the FPU material. For applications where long term force outputs are required, manufacturing the HSA out of a material with a longer time constant would be suggested.
\section{Introduction} Semantic parsing is a way to represent the semantic structure of a text. It aims to represent the meaning of a text in natural language that can be understood by machines. Parsing has long been dominated by tree-structured target representations. Graphs are receiving increasing attention in Natural Language Processing (NLP) in recent years due to their capability on expressing and generating adequate target structures for sentence-level grammatical analysis of the representation of the semantic structure of a text. Following this, different schemes such as Abstract Meaning Representation (AMR; \cite{banarescu2013abstract}), bilexical Semantic Dependencies (SDP; \cite{oepen2016towards}), Universal Decompositional Semantics (UDS; \cite{white2016universal}), Parallel Meaning Bank (PMB; \cite{abzianidze2017parallel}), and finally Universal Conceptual Cognitive Annotation (UCCA; \cite{abend2013ucca}) have been proposed for semantic parsing. These graph-based representations, along with the advances on semantic parsing, have proven to be beneficial in many Natural Language Understanding (NLU) tasks, and have already demonstrated applicability to a variety of tasks, including summarization \cite{dohare2017text,liu2018toward}, paraphrase detection \cite{issa2018abstract}, machine translation \cite{song2019semantic}, question answering \cite{zeng2013using} and text simplification \cite{sulem2018simple}. Over the past few years, NLP tasks have evolved in a different direction with the usage of transfer learning methods. Transfer learning aims to extract knowledge from a source setting and transfer it to a target setting. Cross-lingual learning and cross-framework learning are two paradigms that are used to transfer knowledge from one natural language or framework to another. The aim of knowledge transfer is to overcome the scarcity of data in a target language by compensating the deficiency with another language or dataset. With the cross-lingual representations of words, cross-lingual NLP tasks have emerged in machine translation \cite{kim2019effective} and semantic parsing \cite{zhang2017selective, zhang2018cross} in recent years. Cross-framework learning has gained attention for semantic parsing with an application on different frameworks \cite{li2019sjtu,oepen2019mrp, wang2020shanghaitech}. Existing studies on graph-based semantic parsing are either cross-lingual or cross-framework. This paper addresses the cross-lingual and cross-domain studies conducted only on the UCCA framework. First we discuss the studies conducted on UCCA-based semantic parsing, then we propose a neural model on UCCA representation. The remaining of this paper is structured as follows: Section \ref{sec:background} describes the concept of semantic graph-based structure, Section \ref{sec:ucca} describes the details of the UCCA representation. We categorize and explain the approached applied to semantic parsing in Section \ref{sec:approaches} which is followed by the related work in Section \ref{sec:rel}. Section \ref{sec:shared} gives the details of the shared tasks conducted on graph-based frameworks including UCCA framework. Section \ref{sec:model} describes the proposed model, and Section \ref{sec:result} presents the experimental setting and results on the UCCA dataset, with an error analysis. Finally, Section \ref{sec:conc} concludes the paper with potential directions that remain as future work. \section{Background}\label{sec:background} Before describing the details of the UCCA framework, we provide background information on Semantic Graphs and Flavors from a general perspective. \subsection{Semantic Graphs} A semantic graph is a directed graph represented with a tuple $(T, N, E)$ where $N$ denotes a set of nodes, $T \subset N$ is a set of root nodes and $E \subseteq N \times N$ denotes a set of edges. The number of coming and leaving edges from each node is represented as \textit{in} and \textit{out}-degree of a node, respectively. Semantic graphs can have multiple roots with an in-degree value of zero. Trees are connected (there exists an undirected path between any pair of nodes) and ought to be acyclic (contains no cycles). A tree consists of nodes with an in-degree value of zero apart from the root node. In contrast, semantic graphs can have nodes with an in-degree value of two or higher, and they can contain cycles (the directed path leading from a node to itself). Moreover, semantic graphs do not need to be connected. \subsection{Flavors} Semantic graph frameworks can be divided into three different types based on the relationships between the linguistic surface (string) and the nodes of the graph. This relationship is called anchoring or alignment \cite{koller2019graph}. \begin{itemize} \item Flavor (0) is the strongest form of anchoring in which graph nodes injectively correspond to surface lexical units (i.e., tokens or words). In these graphs, each node is linked to one specific token and the nodes inherit the linear order of their corresponding tokens. EDS \cite{oepen2006discriminant}, SDP \cite{oepen2016towards} and DM \cite{ivanova2012did} are examples to Flavor (0) form. \item Flavor (1) is a more general form of the anchored semantic graphs. This type of semantic graphs is partially anchored (a subset of nodes are linked to the surface lexical units). This allows one-to-one correspondence to surface tokens or overlapping and sub-token or phrasal relationships with flexibility in the representation of meaning contributed by. UCCA \cite{abend2013ucca} is an example of this form. \item Flavor (2) is the weakest form of anchoring in which semantic graphs are simply unanchored. Semantic graphs do not consider the correspondence between nodes and the surface string as part of the representation of meaning. AMR \cite{banarescu2013abstract} is an example of this form. \end{itemize} \section{Universal Conceptual Cognitive Annotation (UCCA)}\label{sec:ucca} UCCA is a novel cross-linguistically applicable annotation scheme for encoding semantic annotations. It was developed by \cite{abend2013ucca}. This scheme is a multi-layer structure that allows extending it open-endedly. UCCA is represented by directed acyclic graphs (DAGs), whose leaves called terminals correspond to the tokens and multi-tokens in the text. The nodes of the graph are called units that can be either a terminal or several tokens that are jointly viewed as a single entity according to some semantic or cognitive consideration. The edges of the graph point the role of the child in the relation (categories). UCCA is a multi-layered framework, where each layer corresponds to a “module” of semantic distinctions. The foundational layer of UCCA focuses on grammatically relevant information. It covers predicate-argument relations for predicates of all grammatical categories (verbal, nominal, adjectival and, others). The foundational layer views the text as a collection of \textit{Scenes}. A Scene can describe some movement or action, or otherwise a temporally persistent state. Scene contains relations that can be one or higher. The Relation can be \textit{Process} (P) if Scene evolves in time otherwise, it can be \textit{State} (S) that means Scene describes a temporally persistent state. \textit{Participants} (A) are the relations of the Scenes. They can be concrete or abstract. Embedded Scenes are also considered as Participant of the main Scenes. The secondary relations of the Scenes are marked as \textit{Adverbials} (D). There are also non-Scene relations in the UCCA framework. \textit{Connectors} (N) are the relations between two or more entities with similar feature or types. The arguments of non-Scene relations are marked as \textit{Centers} (C). For example, in ``John and Mary", ``John" and ``Mary" are Centers and ``and" is Connector that connects two similar relations (Center). \textit{Elaborates} (E) is applied to a single argument. For example, in ``around a beam", `around" and ``a" are Elaborates that describe the ``beam". The other type of relation between two or more units is \textit{Relator} (R) that does not evoke a Scene. In two different scenarios, the relation is marked as Relator. 1. A single entity is related to the other relations in the same context as Relator. For example ``in" in the phrase ``I saw cookies in the jar". Here ``in" relates ``the jar" to the rest of Scene. 2. Two units attached with different aspects of the same entity are related to Relator. For instance, ``of" relates ``suspicious" and ``people" in ``suspicious of people" that refers to the same entity. There are also Function units in which terminals do not refer to a participant or relation. They function only as a part of the construction they are situated in. These are marked as \textit{Function} (F). For example, ``had" is a Function unit in Scene ``He had tied a ...". Linkage in UCCA refers to the relation between Scenes. In a sentence, there can be more than one Scene. There are three types of Linkage in the UCCA adopted from Basic Linguistic Theory \cite{dixon2010abasic}: 1. A Scene can be a Participant of the main Scene. In that case, it is marked as Participant (P) of the Scene. 2. A Scene can be an Elaborator of some unit in another Scene, in which it is marked as Elaborator (E). 3. There can be inter-Scene relations that are not covered above. The relation between these Scenes is marked as \textit{Linker} (L) and its arguments as \textit{Parallel Scenes} (H). Moreover, some units express the speaker’s opinion of a Scene with specific words such as ``surprisingly", ``in my opinion". They constitute a Scene, and their participants are implicit. For such cases, a new category \textit{Ground} (G) is introduced. An example UCCA representation is illustrated in Figure \ref{fig:UCCA_annotation1}. In the example, there are two Scenes with a relation called \textbf{Process}: ``tied" and ``hanged". ``and" is a \textbf{Linker} between Scenes. \textbf{Participant} of the Process is the terminal ``He". ``He" has got two parents connected with one primary edge and one remote edge (dashed). The example also includes a discontinuous unit due to ``He" that is a Participant of the two Scenes. \begin{figure}[t!] \centering \resizebox*{13 cm}{!}{\includegraphics{123001.png}} \caption{An Example of UCCA annotation for the sentence ``He has tied a sheet around a beam and hanged himself."}\label{fig:UCCA_annotation1} \end{figure} The distinct features of the UCCA framework are be summarized as follows: \begin{enumerate} \item There is a one-to-one correspondence between the terminal nodes and the spans in the sentence. \item One node may have multiple parents, among which one is annotated as the primary parent that is marked by solid line edges, and the others are annotated as remote parents and marked by dashed line edges. The primary edges form a tree structure, whereas the remote edges enable reentrancy, thereby forming a directed acyclic graph (DAG). \item UCCA involves nodes with discontinuous leaves, known as discontinuity. In the framework, some leaves are discontinuous because some terminal nodes it spans are not its descendants. \end{enumerate} \section{Parsing Approaches}\label{sec:approaches} Semantic parsing refers to the task of mapping natural language text to formal representations or abstractions of its meaning. We can categorize the methods applied to the semantic parsing task into four architectures: \begin{enumerate} \item \textbf{Transition-Based Architectures:} In transition-based parsing, a semantic graph is generated with a series of actions similar to the transition-based dependency parsing. A graph $G = (V, E, l)$ is constructed by nodes and edges where $V$ is a set of nodes, $E$ is a set of edges, and $l : E \rightarrow L$ is a label function, with a set of labels $L$. At each step in parsing, the model predicts an action to take, which is possibly based on a classifier. When parsing is complete, the sequence of parsing actions is used to deterministically reconstitute the meaning representation graph. This type of approach is mainly inspired by the transition-based dependency tree parsing \cite{nivre2008algorithms,yamada2003statistical}. To the best of our knowledge, \cite{sagae2008shift} are the first to apply this type of approach to predict predicate-argument structures grounded in Head-Driven Phrase Structure (HPSG) \cite{miyao2004corpus}. \item \textbf{Factorization-Based Architectures:} A factorization-based parser explicitly models the target semantic structures by defining a score function that can evaluate the goodness of any candidate graph. The aim of this architecture to search for a subset $E' \subseteq E$ from a given a directed graph $G = (E,V)$ that represents an input sentence $x = w_1, \cdots, w_n$. The graph with the highest score is selected as follows: \begin{equation} (V,E') = \argmax{G^* = (V, E^* \subseteq E)} SCORE_G(G^*) \end{equation} where $V$ is a set of surface tokens and $G$ is the corresponding graph. The set of possible graphs that can be used to generate an input sentence is usually large. Therefore, a parser needs to be informed to find the highest-scoring graph from the possible set of graphs. Generally, \textbf{factorization} strategy, defining a decomposable score function that enumerates all sub-parts of a candidate graph, is employed to solve the problem in the form of a combinatorial optimization. To the best of our knowledge, the first proposed graph-based syntactic dependency parsing algorithm is proposed by \cite{mcdonald2006online}. \cite{kuhlmann2015parsing} generalize the graph-based parsing by Maximum Subgraph parsing with an application of Minimum Spanning Tree parsing. \item \textbf{Composition-Based Architectures:} Following the principle of compositionality, a semantic graph can be viewed as a derivation process where a set of lexical and syntactic-semantic rules is iteratively applied and evaluated. From a linguistic perspective, such rules extensively encode explicit knowledge about natural languages. From a compositional perspective, such rules must be governed by a well-defined grammar formalism. \item \textbf{Translation-Based Architectures:} This type of approach is inspired by the success of neural sequence-to-sequence (seq2seq) models \cite{sutskever2014sequence} that form the basis of the Neural Machine Translation (NMT) systems. A translation-based parser encodes a semantic graph, and relations of each word are viewed as a string in another language \cite{buys2017robust,konstas2017neural,peng2017addressing}. \end{enumerate} \section{Related Work}\label{sec:rel} UCCA framework \cite{abend2013ucca} is one of the recently proposed semantic graph representation frameworks. TUPA parser \cite{hershcovich2017transition} is the first parser proposed for generating UCCA representations. It is a neural transition-based parser model. The model involves various transition actions and features to handle discontinuous and remote nodes of UCCA graphs. \cite{hershcovich2018multitask} extend the TUPA parser with multi-task learning by utilizing other semantic graph representations such as AMR \cite{banarescu2013abstract}, UD \cite{nivre2017universal,nivre2016universal}, SDP \cite{oepen2016towards}. UCCA framework was employed in several shared tasks. The first shared task is ``Cross-lingual Semantic Parsing with UCCA" SemEval 2019 \cite{hershcovich2019semeval}. The shared task's goal is to leverage the semantic parsing in low-resource languages by using data in source-rich languages, thereby extending it as a cross-lingual parsing. The methods proposed within the shared task vary in terms of the parsing approaches. Also, some of the proposed methods handle remote edges by additional features, layers, or models. T\"{u}Pa \cite{putz2019tupa} and CUNY-PekingU \cite{lyu2019cuny} adapt the baseline TUPA parser. T\"{u}Pa extends the feature set defined in the TUPA parser. It uses a feed-forward neural network along with ELMo contextualized embeddings. It handles remote edges by creating a set of features such as the last parser actions, named-entities, parts-of-speech and dependency types. CUNY-PekingU \cite{lyu2019cuny} introduces a Cascaded BiLSTM model that is also based on a TUPA parser with an extra MultiLayer Perceptron (MLP). CUNY-PekingU handles remote edges by adding a new node with a special type and removing them. HLT@SUDA \cite{jiang2019hlt} converts UCCA graphs into constituency trees and applies span-based constituency parser as a parsing method, and uses a multi-task framework for learning remote edges. It obtains the first place in English and German and the second place in the French. [email protected] \cite{nguyen2019dangnt} is a rule-based system defined on the Stanford Parser. MaskParse@Deski\~n \cite{marzinotto2019maskparse} implements a recursive method with a bidirectional GRU and masking mechanism. UC-Davis \cite{yu2019uc} is an encoder-decoder model with an extra multi-layer introduced for remote edges. GCN-Sem \cite{taslimipoor2019gcn} proposes a sequence-to-sequence architecture composed of Graph Convolution Networks and BiLSTM components. Remote edges are ignored in their method due to the frequency of them compared the primary edges. Additionally, the UCCA framework took place in Meaning Representation Parsing (MRP) cross-framework shared task \cite{oepen2020mrp,oepen2019mrp} in 2019 and 2020. While transition based approaches were widely used in MRP 2019, encoder-decoder was the most applied method in MRP 2020. Transition-based approaches in MRP 2019 \cite{bai2019sjtu,che2019hit,lai2019cuhk,straka2019ufal} tackled the problem with variations in the parsing process. SJTU \cite{bai2019sjtu} extends the TUPA parser by integrating all the frameworks into it by using shared features. HIT-SCIR \cite{che2019hit} extends the general transition-based parser by introducing a stack-LSTM to efficiently compute homogeneous operations within a batch. CUHK \cite{lai2019cuhk} includes a new action \textit{RESOLVE} that is used in all semantic frameworks (AMR, DM, PSD, EDC, UCCA), \'UFAL MRPipe \cite{straka2019ufal} introduces a graph-to-graph architecture where the graph is built iteratively by two-layer wise transformations: adding nodes, and adding edges. Graph-based approaches \cite{cao2019amazon,droganova2019ufal,koreeda2019hitachi,li2019sjtu,na2019jbnu,wang2019second,zhang2019suda} generally tackles the task as a search problem to find the graph with the highest score among all possible graphs for a given input. \cite{koreeda2019hitachi,li2019sjtu, na2019jbnu,zhang2019suda} utilize an LSTM encoder with a biaffine classifier to predict the edges between nodes. Amazon \cite{cao2019amazon} classifies meaning representations into two groups: lexical-anchoring and phrasal-anchoring. For UCCA, the authors apply a span-based CYK parsing by converting a graph into a constituent tree structure and use a unified latent-alignment-based parsing framework for DM, PSD, and AMR. \'UFAL-Oslo (\cite{droganova2019ufal}) applies third-party parsers (developed by other studies) instead of implementing a new parser. NeurboParser \cite{peng2017deep}, JAMR \cite{flanigan2016cmu,flanigan2014discriminative} and UDPipe \cite{straka2017tokenizing}, ShanghaiTech \cite{wang2019second} adopt a pointer-generator network \cite{zhang2019amr} in all frameworks except UCCA. SJTU-NICT \cite{li2019sjtu} and SUDA–Alibaba \cite{zhang2019suda} adopt a graph-based UCCA parser \cite{jiang2019hlt}. SJTU–NICT \cite{li2019sjtu}, SUDA–Alibaba \cite{zhang2019suda}, and Amazon \cite{cao2019amazon} remove remote edges before the models. Then the remote edges are added in the post-processing step and a separate classifier is used for prediction of remote edges. Hitachi \cite{koreeda2019hitachi} is a unified encoder-to-biaffine network with a shared architecture, and JBNU \cite{na2019jbnu} is a unified parsing model that is based on a biaffine attention with a BiLSTM encoder and a biaffine-attention decoder. The model uses a bilexical format for UCCA in training by converting UCCA into this format (bilexical format) as a preprocessing step. Composition-based approach \cite{che2019hit,donatelli2019saarland,oepen2019erg} has also been utilized for UCCA representation. Saarland \cite{donatelli2019saarland} propose a parser that learns to map sentences to Apply-Modify (AM) dependency trees instead of learning to map directly from sentences to graphs. The other model ERG \cite{oepen2019erg} applies English Resource Semantics (ERS) parsing. In MRP 2020 \cite{oepen2020mrp}, the participant models are mainly based on encoder-decoders with slight variations in the decoder components. Hitachi \cite{dou2020hit} is a transformer-based encoder-decoder architecture. It utilizes a Plain Graph Notation (PGN) within the decoder. The proposed parser predicts a PGN based sequence by leveraging transformers and biaffine notations. \'UFAL \cite{samuel2020ufal} is a novel permutation-invariant approach (PERIN) proposed for sentence-graph semantic parsing. The authors compute contextualized embeddings with XLM-RoBERTa (XLM-R) in the encoder and use an attention head to predict the edges and edge labels. HIT-SCIR \cite{dou2020hit} and JBNU \cite{na2020jbnu} adopt iterative inference framework proposed by \cite{cai2020amr}. The iterative inference framework is also based on encoder-decoder architecture. While HIT-SCIR \cite{dou2020hit} uses the iterative inference with little modification, JBNU \cite{na2020jbnu} extends the framework by adding a shared state. Finaly, JUJI-KU \cite{arviv2020huji} uses TUPA parser at MRP \cite{hershcovich2019tupa} and HIT-SCIR \cite{che2019hit}. \section{Shared Tasks}\label{sec:shared} The goal of the shared tasks is to benefit semantic parsing in resource-scarce languages or frameworks by using data in resource-rich languages or frameworks. We can classify the shared tasks that use UCCA representation into two categories: Cross-Lingual and Cross-Framework. Cross-lingual parsing \cite{zhang2017selective, zhang2018cross} is the task of parsing where we train a parser on a source language and transfer it to a target language. Cross-Framework \cite{dou2020hit, hershcovich2018multitask, samuel2020ufal} is the task of parsing a text for more than one meaning representation framework. While cross-lingual learning aims to improve the results for resource-scarce languages, the cross-framework learning aims to reduce the number of framework-specific methods. SemEval 2019 \cite{hershcovich2019semeval} and MRP 2019 \cite{oepen2019mrp} are built on cross-lingual and cross-framework tasks respectively, and MRP 2020 \cite{oepen2020mrp} involves tracks on cross-lingual and cross-framework. The main challenge in cross-framework semantic parsing task is that diverse frameworks differ in mapping methods between surface strings and graph nodes, which incurs the incompatibility among framework-specific parsers. The frameworks deviate from each other with their node labels and properties. MRP 2019 and MRP 2020 use directed graphs to unify the five different semantic representation frameworks to overcome this problem. MRP format is used along with a common JSON-based interchange format that allows an arbitrary graph structure whose nodes may or may not be anchored to the input text's spans. \section{Self-Attentive UCCA-based Parsing}\label{sec:model} We propose a neural model for semantic parsing that tackles the task as a constituency parsing problem. Our model is inspired by non-projective dependency parsing by \cite{nilsson2005pseudo}, which was also used on semantic parsing approaches \cite{jiang2019hlt,zhang2019suda}. \subsection{Constituency Parsing} We adopt the constituency parsing model based on self-attention mechanism proposed by \cite{kitaev2018multilingual}. It follows the chart-based constituency parsing where the constituency tree $T$ of an input sentence $s= \{w_1, \cdots, w_n\}$ is represented as a set of labeled spans: \begin{equation} T = \{(i_t, j_t, l_t): t = 1, \cdots, |T|\} \end{equation} where $(i_t,j_t,l_t)$ is produced by the encoder where $i_t$ and $j_t$ refer to the beginning and ending positions of the $t^{th}$ span with a label $l_t \in L$. We assign a score $s(T)$ to each tree, which is decomposed as follows: \begin{equation} s(T) = \sum_{(i,j,l) \in T} s(i,j,l) \end{equation} The encoder in the model involves self-attention layers that learn a context vector $y_t$ for each position $t$ for each word vector $x_t$. The overview of one layer of encoder architecture is given in Figure \ref{fig:encoder}. Our encoder involves $8$ layers. Each word $w_t$ is mapped into a dense vector $x_t$: \begin{equation} x_t = e_{w_t} \oplus e_{p_t} \oplus e_{d_t} \oplus e_{e_t} \oplus e_{e_ob_t} \end{equation} which is a concatenation of the word embedding $e_{w_t}$, PoS tag embedding $e_{p_t}$, dependency label embedding $e_{d_t}$, entity type embedding $e_{e_t}$ , and entity iob type embedding $e_{e_ob_t}$. \begin{figure}[th!] \centering \resizebox*{8 cm}{!}{\includegraphics{encoder_.JPG}} \caption{An overview of the self-attention encoder, which has 8 identical layers}\label{fig:encoder} \end{figure} An MLP classifier consisting of two fully-connected layers with ReLU nonlinearity assigns labeling scores s(i,j,l) to each span. We utilize a remote edge recovery model that also shares the same encoder to recover remote edges in trees \cite{jiang2019hlt} as given in Figure~\ref{fig:remote}. Therefore, the model incorporates two independent MLPs to predict remote edges and candidate parent nodes using the same encoder. \begin{figure}[h!] \centering \resizebox*{8 cm}{!}{\includegraphics{remote.JPG}} \caption{Remote Edge Recovery}\label{fig:remote} \end{figure} The parsing loss is the summation of the cross-entropy losses introduced by the remote edges and non-terminal node pairs: \begin{equation} L = L_{remote} + L_{non-terminal} \end{equation} As for the inference, CYK algorithm is used to generate a globally optimized tree $ \hat{T}$ for each sentence that is used as a decoder in the model (Figure~\ref{fig:architecture}): \begin{equation} \hat{T} = \argmax{T} s(T) \end{equation} \begin{figure}[h!] \centering \resizebox*{10 cm}{!}{\includegraphics{architecture.JPG}} \caption{The general architecture of the proposed model}\label{fig:architecture} \end{figure} \section{Experiments \& Results}\label{sec:result} We did experiments in two folds: single-lingual and cross-lingual. \subsection{Datasets} We used SemEval 2019 shared task dataset \cite{hershcovich2019semeval} in this study because it is especially built for cross-lingual parsing. The details of the datasets are given in Table \ref{tab:dataset}. It involves datasets in English, German, and French. We performed two single-lingual experiments similar to \cite{hershcovich2019semeval} for English: 1. In-domain setting using English-Wiki corpus for training and validation set of English-Wiki for testing purposes, 2. Out-of-domain setting using English-Wiki corpus for training and validation set as English-20K for testing purposes. We only performed in-domain experiments for German and French, since only one dataset is available for the two languages. Because of insufficient training data available for French in SemEval dataset, we performed cross-lingual experiments by merging training datasets of three languages to train the model in a cross-lingual setting. In this way, we expect the model to utilize all training data as if it is a single language, which helps sharing the languages' parameters using the similarities in different languages while learning the language differences concurrently. \begin{table}[ht!]\centering \caption{Number of sentences in each dataset in Semeval 2019 Dataset \cite{hershcovich2019semeval}} \centering \begin{tabular}{lcccc} \toprule & English-Wiki & English-20K & German-20K & French-20K \\ \midrule Train & 4,113 & 0 & 5,211 & 15 \\ Validation & 514 & 0 & 651 & 238 \\ Test & 515 & 492 & 652 & 239 \\ \bottomrule \end{tabular} \label{tab:dataset} \end{table} \subsection{Hyperparameters and Implementation Details} For the encoder, we used a self-attention layer with the same parameter values used in \cite{vaswani2017attention}. The word embedding dimensionality is $100$ with an embedding dimensionality of $50$, for PoS tags, $50$ for dependency tags, $25$ for entity types, and $25$ for the entity iob types. We used Adam \cite{kingma2014adam} optimizer and early stopping because of the variations in the size of the training sets. All syntactic embeddings (word, PoS tags, dependency tags, entity types, and entity iob types) are randomly initialized for single-lingual experiments. In addition to the syntactic embeddings, we used pre-trained fasttext \cite{bojanowski2016enriching} character n-gram based word embeddings. Additionally, we used BERT embeddings as contextualized embeddings to incorporate contextual information. For the cross-lingual models, we did experiments with and without contextual embeddings in addition to the syntactic embeddings in the model. \subsection{Evaluation and Results} We followed the official evaluation metrics provided by \cite{hershcovich2019semeval} for SemEval 2019. The evaluation method measures a matching score between each output graph $G_o = (V_o, E_o,l_o)$ and its corresponding gold graph $G_g = (V_g, E_g,l_g)$ over the same sequence of nodes. Labeled precision and recall metrics are calculated by dividing the number of matching edges in $G_o$ and $G_g$ with their corresponding labels to $|E_o|$ and $|E_g|$ respectively. $F_1$ is the harmonic mean of precision and recall: \begin{equation} F_1 = 2 \cdot \frac{Precision \cdot Recall}{Precision \times Recall} \end{equation} Unlabeled precision, recall, and $F_1$ are calculated analogously, but without requiring label matching for the edges. We evaluate both primary and remote edges separately in all experiments. The results of both single-lingual and cross-lingual experiments on SemEval 2019 \cite{hershcovich2019semeval} datasets for English, French and German are given in Table \ref{tab:experiments}. \begin{table}[ht!]\centering \caption{Single-Lingual and Cross-Lingual Experimental Results on Semeval 2019 dataset } \begin{tabular}{lcccccc} \toprule \multicolumn{1}{c}{} & \multicolumn{3}{c}{Single-Lingual Exp.} & \multicolumn{3}{c}{Cross-Lingual Exp.} \\ \\ \toprule & Prim. & Rem. & Avg & Prim. & Rem. & Avg \\ \midrule & \multicolumn{6}{c}{English-Wiki} \\ \midrule syntactic emb. & 74.5 & 2.1 & 73.04 & 74.8 & 44.7 & 74.19 \\ syntactic emb. $\oplus$ fasttext & 77.9 & 53.0 & 77.4 & - &- & - \\ syntactic emb. $\oplus$ bert & 78.3 & 52.8 &77.79 & 79.6 & 48.5 & 78.97 \\ syntactic emb. $\oplus$ fasttext $\oplus$ bert & 80.2 & 55.4 & \textbf{79.7} & - & - & - \\ \bottomrule & \multicolumn{6}{c}{English-20K} \\ \toprule syntactic emb. & 71.0 & 7.9& 68.87 & 72.7 & 23.6 & 71.04 \\ syntactic emb. $\oplus$ fasttext & 73.8 & 25.0 & 72.15 & - & - & - \\ syntactic emb. $\oplus$ bert & 75.45 & 28.6 & 73.87 & 75.9 & 29.4 & 74.33 \\ syntactic emb. $\oplus$ fasttext $\oplus$ bert & 76.2 & 29.3 & \textbf{74.62} & - & - & - \\ \bottomrule & \multicolumn{6}{c}{German-20K} \\ \toprule syntactic emb. & 77.3 & 31.5 & 76.09 & 80.4 & 49.3 & 79.58 \\ syntactic emb. $\oplus$ fasttext & 83.6 & 60.2 & 82.98 & - & - & - \\ syntactic emb. $\oplus$ bert & 85.1 & 63.7 & 84.54 & 86.2 & 53.6 & 85.34 \\ syntactic emb. $\oplus$ fasttext $\oplus$ bert & 86.7 & 65.1 & \textbf{86.13 } & - & - & - \\ \bottomrule & \multicolumn{6}{c}{French-20K} \\ \toprule syntactic emb. & 43.1 & 0 & 41.67 & 65.4 & 15.3 & 63.74 \\ syntactic emb. $\oplus$ fasttext & 43.2 & 0 &41.77 & - & - & - \\ syntactic emb. $\oplus$ bert & 44.5 & 0 & 43.02 & 68.7 & 45.5 & \textbf{ 67.93}\\ syntactic emb. $\oplus$ fasttext $\oplus$ bert & 46.2 & 0 & 44.67 & - & - & - \\ \bottomrule \end{tabular} \label{tab:experiments} \end{table} For the single-lingual setting, using fasttext embeddings along with BERT contextualized embeddings in addition to the syntactic embeddings outperforms other settings on all languages. For the cross-lingual setting, the results of languages except French have dropped slightly. However, French results improved significantly. The cross-lingual setting helps to predict remote edges in French, while it is not sufficient to predict remote edges due to the inadequate amount of training data for French in single-lingual setting. We did not run experiments by using pre-trained fasttext embeddings because they are independently trained for different languages and not available as multilingual embeddings. Using BERT improves F1 scores by around 4\% for English, 5\% for German, and 4\% for French in cross-lingual setting. Comparative results of our model with other participants at Semeval 2019 \cite{hershcovich2019semeval}\footnote{We give the official results given in \cite{hershcovich2019semeval}} are given in Table \ref{tab:all-result}. The results show that our model achieves state-of-the-art performance among the other parsers in English and German. \cite{jiang2019hlt} outperforms other models in French. However, our results are still competitive to that of \cite{jiang2019hlt} on unlabeled edges. \begin{table}[htbp] \centering \caption{Comparative F-1 results of our model with other participants of UCCA framework at Semeval 2019} \begin{tabular}{lcccccc} \toprule & \multicolumn{6}{c}{English-Wiki} \\\midrule & \multicolumn{3}{c}{Labeled} & \multicolumn{3}{c}{Unlabeled}\\\midrule & All & Prim. & Rem. & All & Prim. & Rem.\\\midrule Tupa & 72.8 & 73.3 & 47.2 & 85.0& 85.8& 48.4\\ HLT@SUDA & 77.4 & 77.9 & 52.2 & 87.2 &87.9 & 52.5 \\ Davis & 72.2 & 73.0 & 0 & 85.5 & 86.4 & 0 \\ CUNY-PekingU & 71.8 & 72.3 & 49.5 & 84.5 & 85.2 & 50.1 \\ [email protected] & 70.0 & 70.7 & 0 & 81.7 & 82.6 & 0 \\ GCN-Sem & 65.7 & 66.4 & 0 & 80.9 & 81.8 & 0 \\\toprule Self-Attentive UCCA Parser & \textbf{79.7}& 80.2 & 55.4 & \textbf{89.6} & 90.3& 55.3 \\\bottomrule & \multicolumn{6}{c}{English-20K} \\\toprule HLT@SUDA &72.7&73.6&31.2&85.2&86.4&32.1\\ Tupa&67.2&68.2&23.7&82.2&83.5&24.3\\ CUNY-PekingU&66.9&67.9&27.9&82.3&83.6&29.0\\ GCN-Sem&62.6&63.7&0&80.0&81.4&0\\\midrule Self-Attentive UCCA Parser & \textbf{74.62} & 76.2 & 29.3& \textbf{87.69} & 89.7& 30.1\\\bottomrule & \multicolumn{6}{c}{German-20K} \\\toprule HLT@SUDA&84.9&85.4&64.1&92.8&93.4&64.7\\ Tupa&79.1&79.6&59.9&90.3&91.0&60.5\\ TüPa&78.1&78.8&40.8&89.4&90.3&41.2\\ XLangMo&78.0&78.4&61.1&89.4&90.1&61.4\\ MaskParse@Deski\~n & 74.2 & 74.8 & 47.3 & 87.1 & 88.0 & 47.6 \\\midrule Self-Attentive UCCA Parser &\textbf{86.13} & 86.7 & 65.1 & \textbf{94.1} & 94.4 & 64.5 \\\bottomrule & \multicolumn{6}{c}{French-20K} \\\midrule HLT@SUDA&\textbf{75.2}&76.0&43.3&\textbf{86.0}&87.0&45.1\\ XLangMo&65.6&66.6&13.3&81.5&82.8&14.1\\ MaskParse@Deski\~n &65.4&66.6&24.3&80.9&82.5&25.8\\ Tupa&48.7&49.6&2.4&74.0&75.3&3.2\\ TüPa&45.6&46.4&0&73.4&74.6&0\\ MaskParse@Deski\~n & 65.4 & 66.6 & 24.3 & 80.9 & 82.5 & 25.8 \\\midrule Self-Attentive UCCA Parser & 67.93 &68.7 &45.5 & 84.8 & 85.5 & 54.6\\\bottomrule \end{tabular} \label{tab:all-result} \end{table} \textbf{Zero-shot and Few-shot Cross-Lingual Model:} Zero-shot learning \cite{wang2019cross, tran2019zero} and few-shot learning \cite{lauscher2020zero} have shown outstanding success recently in various NLP tasks such as dependency parsing and text classification. Zero-shot cross-lingual model is used when there is no or few annotated examples are available in the target language. In contrast, few-shot cross-lingual model is used when a small amount of training data is available during training. We performed both few-shot and zero-shot learning on the French dataset as part of the cross-lingual experiments due to its insufficient size. In zero-shot setting, we ran cross-lingual experiments without using the French dataset, whereas we included the dataset in few-shot learning setting. The results are given in Table \ref{tab:result-data}. The results show that even a small amount of data improves the results substantially in few-shot learning compared to zero-shot learning. \begin{table}[ht!]\centering \centering \caption{Effect of French dataset on cross-lingual model} \begin{tabular}{lcccccc} \toprule \multicolumn{1}{c}{} & \multicolumn{3}{c}{Labeled} & \multicolumn{3}{c}{Unlabeled} \\\midrule \multicolumn{1}{c}{} & Primary & Remote & Avg & Primary & Remote & Avg \\ \midrule single-lingual & 46.2 & 0 & 44.67 & 68.9 & 0 & 66.62 \\ zero-shot & 57.18 & 16.2 & 56.42 & 78.6 & 16.2 & 76.53 \\ few-shot & \textbf{68.7} & \textbf{45.5} & \textbf{67.93} & \textbf{85.8} & \textbf{54.6} & \textbf{84.48} \\ \bottomrule \end{tabular} \label{tab:result-data} \end{table} \subsection{Error Analysis} We characterize errors made by our parser by performing further experiments to analyze the impact of structural and linguistic features of sentences on the parser's accuracy. \textbf{Sentence Length:} The results according to different lengths of sentences are given in Table \ref{tab:result-length}. The results show that the longer the sentences are, the lower the F-1 scores are for the remote edges except for the English-Wiki dataset. However, remote edge scores on the English-Wiki dataset are higher in longer sentences. The frequency of a remote edge is $1$ or $0$ in each sentence in the dataset. Therefore, the strength of the model on primary edges is more important compared to remote edges. \begin{table}[ht!]\centering \footnotesize \centering \caption{Result by Length} \begin{tabular}{ccccccccccccc} \toprule & \multicolumn{3}{c}{English-Wiki} & \multicolumn{3}{c}{English-20K} & \multicolumn{3}{c}{German-20K} & \multicolumn{3}{c}{French-20K} \\ \midrule \multicolumn{1}{c}{Sent. Len.} & \multicolumn{1}{c}{Prim.} & \multicolumn{1}{c}{Rem.} & \multicolumn{1}{c}{All} & \multicolumn{1}{c}{Prim.} & \multicolumn{1}{c}{Rem.} & \multicolumn{1}{c}{All} & \multicolumn{1}{c}{Prim.} & \multicolumn{1}{c}{Rem.} & \multicolumn{1}{c}{All} & \multicolumn{1}{c}{Prim.} & \multicolumn{1}{c}{Rem.} & \multicolumn{1}{c}{All} \\ \midrule \textgreater{}=10 & 80.8 & 50.8 & 79.76 & 73.2 & 30.1 & 72.33 & 87.2 & 66.7 & 86.61 & 68.2 & 45.4 & 67.42 \\ \textgreater{}=20 & 80.4 & 50.9 & 79.42 & 76.9 & 29.0 & 75.89 & 84.5 & 60.3 & 83.75 & 67.5 & 45.3 & 66.72 \\ \textgreater{}=30 & 79.8 & 63.0 & 79.18 & 75.8 & 26.6 & 74.74 & 83.4 & 59.2 & 82.67 & 69.1 & 42.7 & 68.17 \\ \textgreater{}=40 & 82.4 & 61.0 & 81.68 & 74.5 & 26.4 & 73.58 & 83.0 & 48.5 & 82.01 & 66.5 & 41.4 & 65.58 \\ \textgreater{}=50 & 78.5 & 61.5 & 77.93 & 74.2 & 0 & 72.55 & 82.9 & 49.2 & 81.84 & 66.8 & 39.8 & 65.83 \\ \bottomrule \end{tabular} \label{tab:result-length} \end{table} \textbf{Semantic Categories:} We analyze each semantic category's results to further assess the model's performance according to the categories. The results are given in Table \ref{tab:result-type}. The frequencies of Adverbial (A), Function (F), Ground (G), Linker (L), Connector (C), and State (S) categories are comparably lower than other semantic categories in the dataset\footnote{The dataset details are given in \cite{hershcovich2019semeval}.}. While the model struggles with predicting categories with low frequency, more frequent categories are learned more accurately. \begin{table}[!ht] \footnotesize \centering \caption{F-1 measure of predicting Primary edges and their labels} \begin{tabular}{ccccccccccccc} \toprule dataset & A & C & D & E & F & G & H & L & N & P & R & S \\ \midrule English-Wiki & 0.77 & 0.83 & 0.67 & 0.80 & 0.73 & 0.65 & 0.75 & 0.56 & 0.87 & 0.68 & 0.86 & 0.24 \\ English-20K & 0.67 & 0.81 & 0.54 & 0.78 & 0.71 & 0.25 & 0.60 & 0.72 & 0.82 & 0.73 & 0.86 & 0.23 \\ German-20K & 0.81 & 0.90 & 0.77 & 0.87 & 0.88 & 0.71 & 0.79 & 0.88 & 0.30 & 0.79 & 0.92 & 0.27 \\ French-20K & 0.58 & 0.78 & 0.32 & 0.71 & 0.41 & 0.46 & 0.49 & 0.59 & 0.75 & 0.68 & 0.83 & 0.24 \\ \bottomrule \end{tabular} \label{tab:result-type} \end{table} \section{Conclusion and Future Work}\label{sec:conc} In this paper, we propose a constituency parsing model for learning UCCA semantic representation, which is based on a self-attention mechanism where various types of syntactic and semantic embeddings are incorporated in training. We obtain state-of-the-art parsing results with a self-attention encoder on English and German in a single-lingual model. Moreover, we propose a cross-lingual model to compare the performance with other models proposed for the UCCA framework. The results show that the cross-lingual model performs better on low-resource languages. The results on the French language are remarkably better in the cross-lingual model. Our models suggest that further research in cross-lingual learning has the potential to lead to improvements on creating a dataset for no resource languages. \bibliographystyle{unsrt} \section{Introduction} \lipsum[2] \lipsum[3] \section{Headings: first level} \label{sec:headings} \lipsum[4] See Section \ref{sec:headings}. \subsection{Headings: second level} \lipsum[5] \begin{equation} \xi _{ij}(t)=P(x_{t}=i,x_{t+1}=j|y,v,w;\theta)= {\frac {\alpha _{i}(t)a^{w_t}_{ij}\beta _{j}(t+1)b^{v_{t+1}}_{j}(y_{t+1})}{\sum _{i=1}^{N} \sum _{j=1}^{N} \alpha _{i}(t)a^{w_t}_{ij}\beta _{j}(t+1)b^{v_{t+1}}_{j}(y_{t+1})}} \end{equation} \subsubsection{Headings: third level} \lipsum[6] \paragraph{Paragraph} \lipsum[7] \section{Examples of citations, figures, tables, references} \label{sec:others} \lipsum[8] \cite{kour2014real,kour2014fast} and see \cite{hadash2018estimate}. The documentation for \verb+natbib+ may be found at \begin{center} \url{http://mirrors.ctan.org/macros/latex/contrib/natbib/natnotes.pdf} \end{center} Of note is the command \verb+\citet+, which produces citations appropriate for use in inline text. For example, \begin{verbatim} \citet{hasselmo} investigated\dots \end{verbatim} produces \begin{quote} Hasselmo, et al.\ (1995) investigated\dots \end{quote} \begin{center} \url{https://www.ctan.org/pkg/booktabs} \end{center} \subsection{Figures} \lipsum[10] See Figure \ref{fig:fig1}. Here is how you add footnotes. \footnote{Sample of the first footnote.} \lipsum[11] \begin{figure} \centering \fbox{\rule[-.5cm]{4cm}{4cm} \rule[-.5cm]{4cm}{0cm}} \caption{Sample figure caption.} \label{fig:fig1} \end{figure} \subsection{Tables} \lipsum[12] See awesome Table~\ref{tab:table}. \begin{table} \caption{Sample table title} \centering \begin{tabular}{lll} \toprule \multicolumn{2}{c}{Part} \\ \cmidrule(r){1-2} Name & Description & Size ($\mu$m) \\ \midrule Dendrite & Input terminal & $\sim$100 \\ Axon & Output terminal & $\sim$10 \\ Soma & Cell body & up to $10^6$ \\ \bottomrule \end{tabular} \label{tab:table} \end{table} \subsection{Lists} \begin{itemize} \item Lorem ipsum dolor sit amet \item consectetur adipiscing elit. \item Aliquam dignissim blandit est, in dictum tortor gravida eget. In ac rutrum magna. \end{itemize} \section{Conclusion} Your conclusion here \section*{Acknowledgments} This was was supported in part by...... \bibliographystyle{unsrt}
\section{\label{histo}Introduction} In the present article we are concerned with integrals of the following type:\\ \begin{equation} \label{formula_0} I(m,n):=\int_{0}^{\infty}\frac{\sin^{n}{x}}{x^m}\mathrm{d}x \end{equation} where $n$, $m$ are positive integers.\\ The improper integral $I(m,n)$ is absolut convergent when $n\geq m\geq 2$.\\ The case $m=1$ has to be treated separately since the integrals $I(1,n)$ are not absolut convergent. It turns out that these integrals are divergent for even $n$ and convergent for odd $n$. A corresponding formula for the case of equal exponents $n=m$ is known \cite{apostol:1980,remmert:2001}. The simplest case $n=m=1$ is the well-known Dirichlet Integral:\\ \begin{equation} \label{formula1} I(1,1)=\int_{0}^{\infty}\frac{\sin{x}}{x}\mathrm{d}x=\frac{1}{2}\pi \end{equation} \\ \newpage The main purpose of this article is to derive the following formulae.\\ \\ In the case $n\geq m\geq 2$: \begin{equation} \label{formula_-1} I(m,n)=\frac{i^{m-n+1}}{2^{n}(m-1)!}\sideset{}{'}\sum^{n}_{l=0}(-1)^{l}\binom{n}{l}(n-2l)^{m-1}\ln[{i(2l-n)}] \end{equation} In the case $m=1$: \begin{equation} \label{formel_Zwei} I(1,n)=\begin{cases} \text{divergent}&\quad n\,\text{even}\\ \frac{-1}{(2i)^n}\sum^{n}_{l=0}(-1)^{l}\binom{n}{l}\ln[{i(2l-n)}]&\quad n\,\text{odd}\\ \end{cases} \end{equation} where in formula \ref{formula_-1} the term $2l=n$ is omitted in the summation. Note that the complex logarithm in the above formulae may be written as follows: \begin{equation*} \ln[{i(2l-n)}]=\ln{|2l-n|}+i\frac{\pi}{2}\,\text{sign}(2l-n) \end{equation*} \begin{exm} \begin{equation*} \begin{split} I(1,1)&=\frac{1}{2}\pi \quad\quad I(1,2)=\text{divergent}\qquad\qquad\qquad\qquad\,\, I(1,3)=\frac{1}{4}\pi\\ I(2,2)&=\frac{1}{2}\pi \quad\quad I(2,3)=\frac{3}{4}\ln{3}\qquad\qquad\qquad\qquad\qquad I(2,4)=\frac{1}{4}\pi \\ I(3,3)&=\frac{3}{8}\pi \quad\quad I(3,4)=\ln{2}\qquad\qquad\qquad\qquad\qquad\,\,\ I(3,5)=\frac{5}{32}\pi \\ I(4,4)&=\frac{1}{3}\pi \quad\quad I(4,5)=\frac{125}{96}\ln{5}-\frac{45}{32}\ln{3}\qquad\qquad\,\,\, I(4,6)=\frac{1}{8}\pi \\ I(5,5)&=\frac{115}{384}\pi\quad I(5,6)=\frac{27}{16}\ln{3}-2\ln{2}\qquad\qquad\quad\,\,\, \, I(5,7)=\frac{77}{768}\pi \\ \\ \end{split} \end{equation*} \end{exm} \subsection{Dirichlet Integral} In the present section we introduce the method by calculating the well-known Dirichlet Integral. We rewrite this integral in the following suggestive form: \begin{equation*} \int_{0}^{\infty}\frac{\sin{kx}}{x}\mathrm{d}x=\frac{1}{2i}\int_{-\infty}^{\infty}\frac{\Theta(x)\,\mathrm{e}^{-i(-k)x}}{x}-\frac{\Theta(x)\,\mathrm{e}^{-ikx}}{x}\mathrm{d}x \end{equation*} Where $\Theta(\cdot)$ denotes Heaviside's unit step function defined by: \begin{equation*} \Theta(x)=\begin{cases} 1&\text{if} \quad x>0\\ \frac{1}{2}&\text{if} \quad x=0\\ 0&\text{if} \quad x<0 \end{cases} \end{equation*} Obviously, splitting of the latter integral is not possible. However, if one reinterprets the quantity $\frac{\Theta(x)}{x}$ as a tempered distribution rather than a function (See Appendix A) one may write: \begin{equation} \label{zusatz} \int_{0}^{\infty}\frac{\sin{kx}}{x}\mathrm{d}x=\frac{1}{2i}\mathscr{F}\left[\frac{\Theta(x)}{x}\right]_{-k}-\frac{1}{2i}\mathscr{F}\left[\frac{\Theta(x)}{x}\right]_{k} \end{equation} Note that the Fourier transform $\mathscr{F}\left[\frac{\Theta(x)}{x}\right]$ is well-defined in the context of tempered distributions. The explicit formula reads as follows (See Appendix \ref{appendix_1}): \begin{equation} \label{formula_10} \mathscr{F}\left[\frac{\Theta(x)}{x}\right]=-\gamma-\ln{|k|}-i\frac{\pi}{2}\text{sign}(k)=-\gamma-\ln{ik} \end{equation} where $\gamma=0.5772156\dots$ denotes Euler's constant. By inserting formula \ref{formula_10} into Eq.~\ref{zusatz} we obtain the correct result: \begin{equation*} \label{formula2} \int_{0}^{\infty}\frac{\sin{kx}}{x}\mathrm{d}x=\frac{\pi}{2}\,\text{sign}(k) \end{equation*} \section{\label{Sec.II}Derivation of the general formula} In the present section we derive a general formula for the integrals \ref{formula_0}. For this purpose we need the following Lemma. \begin{lem} \label{lemma1} \begin{equation*} \left(\frac{\Theta}{x}\right)^{(n)}=-\delta^{(n)}(x)\left[1+\frac{1}{2}+\frac{1}{3}+\dots+\frac{1}{n}\right] +(-1)^n\,n!\,\frac{\Theta(x)}{x^{n+1}} \end{equation*} where $\delta^{(n)}(x)$ denotes the $nth$ derivative of Delta-Dirac-distribution. \end{lem} \begin{proof} We give a proof by induction on n. Evidently, the Lemma holds for $n=1$: \begin{equation*} \left(\frac{\Theta}{x}\right)^{\prime} =\delta(x)\cdot\frac{1}{x} -\frac{\Theta(x)}{x^2}=-\delta^{\prime}(x)-\frac{\Theta(x)}{x^2} \end{equation*} Where the following well-known identities have been used. \begin{equation*} \begin{split} &\Theta^{\prime}(x)=\delta(x)\\ &\delta^{\prime}(x)=-\frac{\delta(x)}{x} \end{split} \end{equation*} Inductive step $n\Rightarrow n+1$: \begin{equation*} \begin{split} \left(\frac{\Theta}{x}\right)^{(n+1)}&=-\delta^{(n+1)}(x)\left[1+\frac{1}{2}+\frac{1}{3}+\dots+\frac{1}{n}\right] +(-1)^n\,n!\,\left[\frac{\delta(x)}{x^{n+1}}-(n+1)\frac{\Theta(x)}{x^{n+2}}\right]\\ &=-\delta^{(n+1)}(x)\left[1+\frac{1}{2}+\frac{1}{3}+\dots+\frac{1}{n+1}\right]+ (-1)^{n+1}\,(n+1)!\,\,\frac{\Theta(x)}{x^{n+2}} \end{split} \end{equation*} Where the following equally well-known formula for the $nth$ derivative of delta function has been used: \begin{equation*} \delta^{(n)}(x)=(-1)^n\,n!\,\frac{\delta(x)}{x^n} \end{equation*} \end{proof} Lemma \ref{lemma1} leads to the following Corollary: \begin{cor} \label{corollary_1} \begin{equation} \label{formula_3} \mathscr{F}\left[\frac{\Theta(x)}{x^{n+1}}\right]=\frac{(-ix)^n}{n!}\,\left(\mathscr{F}\left[\frac{\Theta(x)}{x}\right]+\sum^{n}_{l=1}\frac{1}{l}\right) \end{equation} \end{cor} \begin{proof} On one hand, $\Theta(x)/x$ fulfills the following identity: \begin{equation} \label{gleichung1} \mathscr{F}\left[\left(\frac{\Theta(x)}{x}\right)^{(n)}\right]=(ix)^{n}\mathscr{F}\left[\frac{\Theta(x)}{x}\right] \end{equation} On the other hand, according to Lemma \ref{lemma1}, we have: \begin{equation} \label{gleichung2} \mathscr{F}\left[\left(\frac{\Theta(x)}{x}\right)^{(n)}\right]=-(ix)^{n}\sum^{n}_{l=1}\frac{1}{l}+(-1)^n\,n!\,\mathscr{F}\left[\frac{\Theta(x)}{x^{n+1}}\right] \end{equation} We obtain formula of Corollary \ref{formula_3} by equating Eqs.~\ref{gleichung1}, \ref{gleichung2}. \end{proof} It is now a straightforward task to derive a formula for the integrals \ref{formula_0}. By virtue of the Eulerian formula we may use: \begin{equation*} \sin^{n}{x}=\left(\frac{\mathrm{e}^{ix}-\mathrm{e}^{ix}}{2i}\right)^n \end{equation*} Expanding the latter expression yields: \begin{equation} \label{expansion} \sin^{n}{x}=\frac{1}{(2i)^n}\sum^{n}_{l=0}\binom{n}{l}(-1)^l \mathrm{e}^{-ix(2l-n)} \end{equation} By inserting expansion \ref{expansion} into \ref{formula_0} and by adding an exponential we obtain formally: \begin{equation} \label{formula_6} \int_{0}^{\infty}\frac{\sin^{n}{x}}{x^m}\mathrm{e}^{-\epsilon x}\mathrm{d}x= \frac{1}{(2i)^n}\sum^{n}_{l=0}\binom{n}{l}(-1)^l\mathscr{F}\left[\frac{\Theta(x)}{x^m}\right]_{k=2l-n-i\epsilon} \end{equation} We now take advantage of Corollary \ref{formula_3} and formula \ref{formula_10} which leads to: \\ \begin{equation} \label{formula_20} \begin{split} \int_{0}^{\infty}\frac{\sin^{n}{x}}{x^m}\mathrm{e}^{-\epsilon x}\mathrm{d}x&=\frac{i^{m-n+1}}{2^{n}(m-1)!}\sum^{n}_{l=0}(-1)^{l}\binom{n}{l}(n-2l+i\epsilon)^{m-1}\ln[{i(2l-n-i\epsilon)}]\\ &+(C-\gamma)\frac{i^{m-1-n}}{2^n\,(m-1)!}\sum^{n}_{l=0}(-1)^l\,\binom{n}{l}\,(n-2l+i\epsilon)^{m-1} \end{split} \end{equation} \\ Where $C:=1+\frac{1}{2}+\frac{1}{3}+\dots+\frac{1}{m-1}$ \\ \\ In the next step we take the limit $\epsilon\to 0$ on both sides of Eq.~\ref{formula_20}.\\ \\ In the case $n\geq m>1$ we obtain the formula: \begin{equation*} \int_{0}^{\infty} \frac{\sin^{n}x}{x^m}\mathrm{d}x=\frac{i^{m-n+1}}{2^{n}(m-1)!} \sideset{}{'}\sum^{n}_{l=0}(-1)^{l}\binom{n}{l}(n-2l)^{m-1}\ln[{i(2l-n)}] \end{equation*} Where the following identity has been used (See Appendix B) \begin{equation*} \sum^{n}_{l=0}(-1)^l\,\binom{n}{l}\,(n-2l)^{m-1}=0,\quad n\geq m\geq 2 \end{equation*} In the case $m=1$ we get: \\ \begin{equation*} \int_{0}^{\infty}\frac{\sin^{n}x}{x}\mathrm{d}x=\begin{cases} \text{divergent}&\quad n\,\text{even}\\ -\frac{1}{(2i)^n}\sum^{n}_{l=0}(-1)^{l}\binom{n}{l}\ln[{i(2l-n)}]&\quad n\,\text{odd}\\ \end{cases} \end{equation*} \\ where the following elementary identity has been used: \begin{equation*} \sum^{n}_{l=0}(-1)^l\,\binom{n}{l}=(1-1)^n=0 \end{equation*} \begin{rem} By using the identity \begin{equation*} \ln[{i(2l-n)}]=\ln{|2l-n|}+i\frac{\pi}{2}\,\text{sign}(2l-n) \end{equation*} one derives easily the following formula for $n\geq m>1$: \\ \begin{equation*} \int_{0}^{\infty}\frac{\sin^{n}x}{x^m}\mathrm{d}x = \left\{ \begin{array}{lll} \frac{i^{m-n+2}}{2^{n}(m-1)!}\frac{\pi}{2}\sideset{}{'}\sum^{n}_{l=0}(-1)^{l}\binom{n}{l}(n-2l)^{m-1}\,\text{sign}(2l-n) &\textrm{if $n-m$ even} \\ & \\ \frac{i^{m-n+1}}{2^{n}(m-1)!}\sideset{}{'}\sum^{n}_{l=0}(-1)^{l}\binom{n}{l}(n-2l)^{m-1}\ln{|2l-n|} & \, \textrm{if $n-m$ odd} \\ \end{array} \right. \end{equation*} \\ A formula without case distinction is possible by using the following definitions: \begin{equation*} \begin{split} 0^{m-1}\ln{(i\cdot0)}&:=0\quad \quad\ m=2, 3,\dots\\ 0^{m-1}\ln{(i\cdot0)}&:=+\infty\quad m=1\\ \end{split} \end{equation*} Presuming this we may write down a formula valid in the entire range $n\geq m\geq1$: \begin{equation*} I(m,n)=\frac{i^{m-n+1}}{2^{n}(m-1)!}\sum^{n}_{l=0}(-1)^{l}\binom{n}{l}(n-2l)^{m-1}\ln[{i(2l-n)}] \end{equation*} Evidently, these definitions get their justification due to the following limits: \begin{equation*} \lim_{x\to 0} x^{m-1}\ln{ix}=\begin{cases} 0&\text{if} \quad m=2, 3, \dots\\ \infty&\text{if} \quad m=1\\ \end{cases} \end{equation*} \end{rem}
\section{Introduction} Critical infrastructures (such as power grids, transportation systems and nuclear plants) are subject to unprecedented cyber attacks against their system operation \cite{Karnouskos2011, Ukraine2016:Analysis, LakshWiSec2018}. In particular, power grids are attractive targets since their disruption can have serious social and economic consequences. The growing integration of IoT-enabled smart-home appliances at the consumer end, such as Wi-Fi-enabled air conditioners, battery storage systems, plug-in-electric vehicles and so forth, presents a new threat to power grid operations. Such smart appliances are already widely prevalent in the market since they provide convenience to the consumers and improve residential energy efficiency. However, due to their poor security features, \cite{Fernandes2016HomeApp, maple2017security}, they may become convenient entry points for malicious parties to gain access to the system. Cyber security of power grids has received widespread attention in recent years. A significant body of work is dedicated to utility-side cyber attacks and the associated SCADA system security. In particular, false data injection (FDI) attacks against power system state estimation has received significant attention \cite{Liu2009, LakshRMT2021, LakshGT2021}. Different from the aforementioned works, this paper considers cyber attacks that target the end-user consumer devices \cite{HamedLAA2011}, and their impact on power grid operations. Unlike utility-side and SCADA assets, end-user devices (such as IoT-smart home appliances) cannot be monitored continuously due to their large numbers. Thus, cyber threats targetting demand-side attacks pose a major threat to power grid operations. Sudden and abrupt manipulation of the power grid demand due to large-scale cyber attacks against IoT-smarthome appliances (e.g., a Botnet-type attack) can potentially disrupt the balance between the supply and demand and lead to severe effects on power grid operations. Recent works have quantified their impact on power grid operations. In particular, \cite{Dabrowski2017, Soltan2018} showed that LAAs can lead to unsafe frequency excursions, subsequently triggering generator trips and resulting in large-scale blackouts. Moreover, such attacks can also be used to increase the operational cost of the power grid \cite{Soltan2018}. Subsequent work \cite{HuangUSENIX2019} showed that existing protection mechanisms such as under frequency load shedding (UFLS) are capable of preventing large-scale blackouts. Nevertheless, LAAs can still lead to partition in bulk power systems and/or a controlled load shedding event. Demand-side cyber attacks can also propagate from the distribution grid to the transmission grid, which can lead to an attack impact over a larger geographical area \cite{Dvorking2017}. Despite these severe consequences, \emph{static LAAs} leading to a sudden one-time manipulation of the demand (as proposed in \cite{Dabrowski2017, Soltan2018, Dvorking2017, HuangUSENIX2019}) cannot destabilize the power grid's frequency control loop. A more severe attack known as the \emph{dynamic LAAs} was introduced in \cite{AminiLAA2018}, which showed that if the attacker manipulates the load over a period of time in accordance with the fluctuations of the grid frequencies, the resulting attack can destabilize the frequency control loop, which can subsequently trigger cascading failures. An analytical method to understand the impact of static/dynamic LAAs using the theory of second-order dynamical systems was presented in \cite{LakshIoT2021}, which was used to find the locations of nodes from which an attacker can launch the most impactful LAAs. Despite the growing number of works on analyzing the impact of LAAs, there is relatively less work on detecting and identifying such attacks, which is the main focus of this paper. Following the onset of an LAA, swift detection and identification of the compromised nodes is critical to minimizing the adverse effects and service disruptions. This can be challenging since well-designed LAAs can remain undetected by traditional pattern recognition algorithms applied to the load consumption data \cite{AminiSGC2015}. The growing deployment of phasor-measurement units (PMUs) that provide fine-grained monitoring of power grid signals can be leveraged to detect such attacks. Amini et. al. \cite{AminiSGC2015} showed that LAAs can however be detected by analyzing the system measurements (e.g., load, frequency, etc.) in the frequency domain since LAAs can result in new frequency components that are non-existent in the original data. The method was subsequently extended to identifying the location of the compromised nodes using an optimization-based framework in \cite{AminiIdentification2019}. An unscented Kalman filter (UKF) based approach to detect and identify the attack parameters was proposed in \cite{IzbickiACC2017} in which the attack parameters were augmented to the power grid's state variables and estimated jointly. However, a major limitation of existing work (such as \cite{AminiSGC2015, AminiIdentification2019}) is that the formulation used is specific to a linear power system model. While the theory of UKF proposed in \cite{IzbickiACC2017} is applicable for non-linear systems, when the power grid dimensions grow, the number of attack parameters to be estimated (which in turn depends on the different combinations of nodes that can be attacked as well as the attacker's chosen parameters) scales much faster that the number of system state measurements. Thus, the UKF approach is not scalable to power grids of large dimensions since the estimation problem becomes under-specified \cite{IzbickiACC2017}. Moreover, our results show that the UKF approach cannot track the attack parameters accurately when the system is highly dynamic. To overcome the aforementioned issues, this paper adopts state-of-the-art data-driven methods for dynamical systems in order to detect and identify LAAs using real-time monitoring of the power grid's physical signals, such as frequency/phase angle measurements monitored by PMUs. The application is based on the observation is that LAAs lead to a change in the parameters of the power system's dynamical model \cite{AminiLAA2018}. Thus, the attack detection/identification involves solving the following question: \emph{given a series of frequency/phase angle observations over time, what are attack the parameters that best describe the observed data?} We model the problem as one of \emph{data-driven discovery} of power grid's non-linear dynamical equations \cite{BruntonSINDy2016, RaissiPINN2018}. We apply two state-of-the-art data-driven methods to solve the aforementioned problem, namely (i) a Sparse Regression (SR) algorithm and (ii) a physics-informed neural network (PINN) algorithm \cite{RaissiPINN2018}. The SR algorithm is motivated by the Sparse Identification of Nonlinear Dynamics (SINDy) approach proposed in \cite{BruntonSINDy2016}. It applies sparse regression to determine the fewest attack parameters that best describe the observed measurements. In the context of attack detection/identification, the rationale for seeking a sparse solution is that in a real-world scenario, the attacker can likely monitor the frequency fluctuations and manipulate the load at only a few nodes in the power grid. In particular, we use the least absolute shrinkage and selection operator (LASSO) method to obtain a sparse solution to the LAA detection/identification problem. The PINN method on the other hand uses deep neural networks (DNNs) to approximate both the state of the power grid (voltage phase angles/frequency) as well as the unknown non-linear dynamics. It treats the DNN weights as well as the attack parameters as variables to obtain the parameters that best describe the observed dynamics and the mechanisms that govern the evolution of the observed measurements. In both the algorithms, the solution to the attack parameter estimation problem will automatically determine which load buses are compromised by the attacker and those that are not. Furthermore, we present a methodology for the implementation of each method, particularly showing the implementation utilizing edge computing deployed over decentralized architectures, requiring limited information exchange between the neighbouring nodes. We note that there is a growing body of work that apply ML to detect FDI attacks against power grids. Despite their effectiveness, they cannot be applied directly to the problem at hand, since (i) we are interested with both detecting the attacks as well as identifying the attack locations. Existing works on FDI attack detection (e.g., \cite{HeDL2017, YingSSDL2021}) apply binary classification solutions, i.e., classify whether the attack has occurred or not; they do not localize the attack. Identifying the attack location requires a multi-class classification approach. For the problem at hand, such an approach will have exponential complexity, since the defender must consider every combination of victim nodes that the attacker can target. To overcome this issue, the proposed SR and PINN algorithms leverage the knowledge of the power grid's ``physical model" to infer the attack parameters with a small amount of training data. (ii) ML techniques applied to FDI attack detection problem only consider the steady-state operation of power grids. In contrast, our work considers ML algorithms that consider the power grid dynamics and applies data-driven methods for dynamical systems. We conduct extensive simulations using benchmark IEEE bus systems to evaluate the performance of these algorithms in detecting and identifying LAAs. Our results show that both the SR and the PINN algorithms are more effective in estimating the attack parameters as compared to the UKF approach, especially in systems that exhibit fast dynamics. Furthermore, both the algorithms can estimate the attack parameters within a shorter observation time window. However, the PINN algorithm does not perform well on systems that exhibit slow and oscillatory dynamics, since the training may potentially get stuck in local minima. The SR algorithm on the other hand performs reliably well under all system conditions. The rest of the paper is organized as follows. Section \ref{sec:Prelim} introduces the system model; Section II-B describes the attack detection/identification problem. The SINDy and the PINN algorithms are described in Section~\ref{sec:Algos} and a decentralized methodology to implement the algorithms is presented in Section~\ref{sec:Implement}. Section~\ref{sec:Sims} describes the simulation results and Section~\ref{sec:Conc} concludes. The simulation parameters are listed in the Appendix. \section{Preliminaries} \subsection{System Model} \label{sec:Prelim} We consider a power grid consisting of a set of $\mathcal{N} = \{1,\dots,N \}$ buses. For each node $i \in \mathcal{N},$ the set of neighbouring nodes is denoted by $\mathcal{N}_i.$ The buses are divided into generator buses $\mathcal{N}_G$ and load buses $\mathcal{N}_L$ and $\mathcal{N} = \mathcal{N}_G \cup \mathcal{N}_L$. The power grid dynamic model is given by \cite{kundur1994}: \begin{align} \dot{\delta}_i & = \omega_i, i \in \mathcal{N}_G \label{eqn:dyn1} \\ M_i \dot{\omega}_i & = - D_i \omega_i - K^P_i \omega_i - K^I_i \delta_i - P^F_i, \ i \in \mathcal{N}_G, \label{eqn:dyn2}\\ D_i \dot{\delta}_i &= - P^{L}_i - P^F_i, \ i \in \mathcal{N}_L, \label{eqn:dyn3} \end{align} where $P^F_i = \sum_{j \in \mathcal{N}} B_{i,j} \sin (\delta_{ij}).$ In the above, $\delta_i$ is the phase angle deviation at bus $i \in \mathcal{N},$ $\delta_{ij} = \delta_i - \delta_j, \ i,j \in \mathcal{N}$ and $\omega_i$ denotes the rotor frequency deviation at the generator buses $i\in \mathcal{N}_G.$ The generator inertia coefficient at bus $i \in \mathcal{N}_G$ is denoted by $M_i.$ The damping coefficients at generator/load buses is denoted by $D_i$ $i \in \mathcal{N}$. $B_{i,j}$ is the suscpetance of line $i,j.$ Finally, $P^L_i $ denotes the load at bus $i \in \mathcal{N}_L$. We denote $\omega_{\text{nom}}$ as the grid's nominal frequency, e.g., $50~$Hz in Europe or $60~$Hz in North America. For safe operations, the frequency must be maintained within the safety limits. We denote $\omega_{\text{max}}$ as the maximum permissible frequency deviation for system safety. Thus, $| \omega_{\text{nom}} - \omega_i| \leq \omega_{\text{max}}, \forall i \in \mathcal{G}.$ We note that in steady state, $\dot{\omega}_i = 0, \forall i \in \mathcal{G}.$ {\bf Load Altering Attacks:} Under IoT-based LAAs, the attacker manipulates the system load by synchronously switching on or off a large number of high-wattage devices. Assume that the demand at the load buses consists of two components $P^L_i = P^{LS}_i + P^{LV}_i,$ where $P^{LS}_i$ denotes the secure part of the load (i.e., load that cannot be altered) and $ P^{LV}_i$ denotes the vulnerable part of the load at node $i \in \mathcal{N}_l$. We denote the set of victim nodes by $\mathcal{N}_v (\subseteq \mathcal{N}_L),$ and $N_v = |\mathcal{N}_v|,$ which are the subset of load buses at which the attacker can manipulate the load. The system load under LAAs is given by \begin{align} P^L_i = -\sum^S_{j = 1} K^{L}_{i,k_j} \omega_{k_j} + \epsilon^L_i + P^{LS}_i \label{eqn:load_attack} \end{align} Herein, $\epsilon^L_i$ is a step-change in the load introduced by the attacker (static LAA component). Note $\epsilon^L_i = 0$ if $i \notin \mathcal{N}_v.$ The component $-\sum_{k_j \in \mathcal{S}} K^{L}_{i,k_j} \omega_{k_s}$ is the dynamic LAA component. Note that to inject the dynamic LAA, the attacker must monitor the frequency fluctuations at a subset of the buses in the system, $\omega_{k_j}, k_j \in \mathcal{S}.$ Herein, $\mathcal{S} (\subseteq \mathcal{N}),$ denotes the set of \emph{sensing} buses, i.e., buses at which the attacker can monitor the frequency fluctuations, and $k_j$ denotes the index of the $j^{\text{th}}$ sensing bus and $S = |\mathcal{S}|$. $K^{L}_{i,k_j}$ denotes attack controller gain values corresponding to the attack at load bus $i \in \mathcal{N}_L$ that follows the frequency at bus $k_j \in \mathcal{S}.$ Note that ${K}^{L}_{i,k_s} \geq 0,$ and therefore, the dynamic LAA component increases the system load when the frequency falls below the setpoint and vice versa; this has the opposite effect of arresting the frequency deviation. Furthermore, we have $\epsilon^L_i \leq P^{LV}_i$ and \begin{align} \sum^S_{j = 1} {K}^{L}_{i,k_j} \omega^{\max} \leq (P^{LV}_i - \epsilon^L_i)/2 , \forall i \in \mathcal{V}. \label{eqn:Attack_lim} \end{align} The above limit on the dynamic LAA component can be explained as follows. The left-hand side of \eqref{eqn:Attack_lim} is the maximum load value that must be altered by the attacker at victim bus $i \in \mathcal{V}$ before the frequency at the sensor bus $k_j$ exceeds the safety limit $\omega^{\max}$. This must be less than the amount of vulnerable load $P^{LV}_i - \epsilon^L_i$ (after removing the static LAA component). Note that the amount of load that can be compromised under dynamic LAA must allow for both over and under frequency fluctuations before the system frequency exceeds $\omega^{\max}$ (see \cite{AminiLAA2018}). Thus, the right-hand side of \eqref{eqn:Attack_lim} is divided by $2.$ Under LAA described in \eqref{eqn:load_attack}, the power grid dynamics noted in \eqref{eqn:dyn1}-\eqref{eqn:dyn3} becomes, \begin{align} \dot{\delta}_i & = \omega_i, i \in \mathcal{N}_G \label{eqn:dyn_attack1} \\ M_i \dot{\omega}_i & = - D_i \omega_i - K^P_i \omega_i - K^I_i \delta_i - P^F_{i}, \ i \in \mathcal{N}_G, \label{eqn:dyn_attack2}\\ D_i \dot{\delta}_i = & \sum^S_{j = 1} K^{L}_{i,k_j} \omega_{k_j} - \epsilon^L_i - P^{LS}_i - P^F_{i}, \ i \in \mathcal{N}_L, \label{eqn:dyn3_LAA} \end{align} Equations \eqref{eqn:dyn_attack1}, \eqref{eqn:dyn_attack2} and \eqref{eqn:dyn3_LAA} jointly describe the power grid dynamics under LAAs. As an example, we illustrate the phase angle and frequency dynamics for the IEEE-39 bus system under LAAs is shown in Fig.~\ref{fig:freq_dyn_plot39bus}. It can be observed that the attacker parameters destabilize the the system, subsequently leading to unsafe frequency excursions. \subsection{Problem Formulation} The focus of this work lies in detecting and identifying LAAs by observing the power grid dynamics. We assume that the system operator has deployed PMUs in the power grid, which enables them to monitor the voltage phase angles $\{ \delta^{(\tau)}_i \}_{i \in \mathcal{N}, \tau = 1,\dots,T}$ and frequency fluctuations $\{ \dot{\delta}^{(\tau)}_i \}_{i \in \mathcal{N}, \tau = 1,\dots,T}$ respectively over a period of time. Herein, we assume a slotted time system with $x^{(\tau)}$ as the value of the signal $x$ at time slot $\tau,$ where the slots are sampled at a time interval of $T_s$ and $T$ is the total number of time slots. For instance, according to IEEE/IEC standards, for a $50~$Hz system, the PMU sampling frequency can be between 10 to 100 frames per second. Therefore, $T_s$ is in the range $10-100~$ms \cite{PMU2018}. Attack detection/identification problem involves inferring the parameters $\{{K}^{L}_{i,k_j}\}_{i \in \mathcal{V}, k_j \in \mathcal{S}}$ and $\epsilon^L_i, i \in \mathcal{V}$ by by monitoring the power grid dynamics $\{ \delta^{(\tau)}_i \}_{i \in \mathcal{N}, \tau = 1,\dots,T}$ and $\{ \omega^{(\tau)}_i \}_{i \in \mathcal{N}, \tau = 1,\dots,T}.$ \section{Data-Driven Techniques for Detecting and Identifying LAAs} \label{sec:Algos} In this section, we propose data-driven algorithms to detect and identify LAAs. We note that the problem at hand can be modeled as supervised learning that learns only based on the training samples and does not rely on any prior knowledge or the laws of physics. Specifically, one can train a machine learning classifier that distinguishes between the system's dynamics under different values of the attack parameters $\{{K}^{L}_{i,k_j}\}_{i \in \mathcal{V}, k_j \in \mathcal{S}}, \epsilon^L_i, i \in \mathcal{V}.$ However, under such an approach, identifying the locations and the magnitude of LAA will be challenging since it will involve a combinatorial search across nodes of the grid that the attacker may target (note that this number can be potentially $2^{|\mathcal{V}| \times |\mathcal{S}|}$). Training such a classifier would be computationally complex requiring a tremendous amount of training data. On the other hand, if the physical model governing the system dynamics is known, this knowledge can be incorporated into the learning. This approach is particularly useful when the inference must be performed with a limited number of samples, which is indeed the case in our problem, where the identification must be performed quickly before the the system is damaged. Motivated by these challenges, we propose two state-of-the-art techniques for data-driven identification of dynamical systems to solve the LAA detection/identification problem, namely, the SR algorithm and the PINN algorithm. The details are presented next. \subsection{LAA Detection and Identification Using SR Approach} The SR approach, that is based on the SINDy algorithm proposed in \cite{BruntonSINDy2016}, applies sparse regression to find the attack parameters that best represent the observed power grid dynamics. In order to formalize the SR framework for detection and identification of LAAs, we define the following additional notations. First, we define $\dot{\theta}_i$ as \begin{align} \dot{\theta}^{(\tau)}_i = \dot{\delta}^{(\tau)}_i + \frac{1}{D_i} \LB P^{LS}_i + \sum_{j \in \mathcal{N}} B_{i,j} \sin (\delta^{(\tau)}_{ij}) \RB. \label{eqn:rearr} \end{align} Using \eqref{eqn:rearr}, a discretized version of the load bus dynamics in \eqref{eqn:dyn3_LAA} over $\tau = 1,2,\dots,T$ time slots can be rewritten as \begin{align} \underbrace{\begin{bmatrix} \dot{\theta}^{(1)}_i \\ \vdots \\ \dot{\theta}^{(T)}_i \\ \end{bmatrix}}_{\dot{\hbox{\boldmath$\theta$}}_i} = \underbrace{\frac{1}{D_i} \begin{bmatrix} \omega^{(1)}_{k_1},\dots,\omega^{(1)}_{k_S},-1 \\ \vdots \\ \omega^{(T)}_{k_1},\dots,\omega^{(T)}_{k_S},-1 \\ \end{bmatrix}}_{\Omega } \underbrace{\begin{bmatrix} K^L_{i,k_1} \\ \vdots \\ K^L_{i,k_s} \\ \epsilon_i \end{bmatrix}}_{{\bf k}^L_i}, i \in \mathcal{N}_L. \label{eqn:Regression_full} \end{align} Equation \eqref{eqn:Regression_full} represents the relationship between the attack parameters ${\bf k}^L_i$ and the load bus dynamics at bus $i \in \mathcal{N}_L.$ Note that the system operator can compute the elements of $\dot{\hbox{\boldmath$\theta$}}_i$ and $\Omega$ using the frequency and phase angle measurements obtained from PMU. Thus, the system operator can estimate the attack parameters ${\bf k}^L_i$ by solving \eqref{eqn:Regression_full}. At this stage, several comments are in order. First, \eqref{eqn:Regression_full} is a system of $T$ linear equations with $S+1$ unknown variables. In general $T \gg S+1$, since PMUs have a high sampling frequency (e.g., $50$ measurement samples per second \cite{PMU2018}). Second, the measurements in $\dot{\hbox{\boldmath$\theta$}}_i$ and $\Omega$ are corrupted by measurement noises. Third, the value of ${\bf k}^L_i$ that solves \eqref{eqn:Regression_full} may not be unique. For instance, there may be multiple attack vectors that result in similar dynamics. Thus, we seek to find the sparsest attack vector ${\bf k}^L_i$ that best explains the dynamics observed in $\dot{\hbox{\boldmath$\theta$}}_i$ and $\Omega$. The rationale is that in a real-world scenario, the attacker can likely monitor the frequency fluctuations and manipulate the load at only a few nodes in the power grid. To promote sparsity, we use the LASSO algorithm which applies an L1-regularization term to promote sparsity. The optimization problem corresponding the LASSO algorithm is given by \cite{LassoRef1996} \begin{align} \widehat{{\bf k}}^{L}_i = \arg \min_{{\bf k}^{L}_i} || \Omega {\bf k}^{L}_i - \dot{{\hbox{\boldmath$\theta$}}}_i ||^2 + \lambda || {\bf k}^{L}_i ||_1, \ i = 1 \dots, |\mathcal{V}|. \label{eqn:sparse_reg} \end{align} Herein, $|| {\bf k}^{L}_i ||_1$ represents a penalty term that and $\lambda >0$ is a scaling parameter. \subsection{Identification Based on Physics-Informed Neural Networks} We now describe the PINN framework \cite{RaissiPINN2018, Lagaris1998} applied to detecting/identifying LAAs. PINN incorporates the knowledge of the physical model guiding the observed dynamics to train a neural network with limited training samples. As in \cite{RaissiPINN2018}, we incorporate the underlying differential equations as an additional loss function to solve two different types of problems. The first problem is the forward problem, which uses NN to obtain a solution to the differential equations, i.e., in our context, the signals $\delta_i(t)$ and $\omega_i(t)$ that solve \eqref{eqn:dyn_attack1} , \eqref{eqn:dyn_attack2} and \eqref{eqn:dyn3_LAA} under LAAs. The second problem that is of more interest to our work is the inverse problem, in which, given the measurements and the structure of the differential equations, estimate the unknown parameters $\{{K}^{L}_{i,k_j}\}_{i \in \mathcal{V}, k_j \in \mathcal{S}}$ and $\epsilon^L_i, i \in \mathcal{V}$ that best describe the observed data. The PINN framework accomplishes these two tasks by defining appropriate loss functions and training a NN to minimize them. The overall PINN framework is shown in Fig.~\ref{fig:pinn_arch} and we present the details next. First, let $\widehat{\omega}_i (t,\hbox{\boldmath$\phi$})$ and $\widehat{\delta}_i (t,\hbox{\boldmath$\phi$})$ be the NN approximations of ${\omega_i} (t)$ and ${\delta_i} (t)$ as shown in Fig.~\ref{fig:pinn_arch}. Herein, $\hbox{\boldmath$\phi$}$ represents the weights of the NN, which are trained to minimize the following losses: \subsubsection{Mean-square loss} The first loss term involves the mean square loss between the observed measurements ${\omega_i} (t)$ and ${\delta_i} (t)$ and their NN approximations, i.e., \begin{align} L_1 (\hbox{\boldmath$\phi$}) =\frac{1}{T}\sum_{\tau=1}^{T} & \Big{(} \sum_{i \in \mathcal{N}_G} (\widehat{\omega}_i(\tau ,\hbox{\boldmath$\phi$}) \nonumber - {\omega}_i(\tau))^2 \\ & + \sum_{i \in \mathcal{N}} (\widehat{\delta}_i(\tau,\hbox{\boldmath$\phi$}) - {\delta}_i(\tau))^2 \Big{)}. \end{align} \subsubsection{Physics based Loss} The system dynamics are incorporated as a second loss function. Specifically, let us define \begin{align} f^{(1)}_i & = \dot{\widehat{\delta}}_i - \widehat{\omega}_i, i \in \mathcal{N}_G \label{eqn:dyn11} \\ f^{(2)}_i & = M_i \dot{\widehat{\omega}}_i + D_i \widehat{\omega}_i + K^P_i \widehat{\omega}_i \nonumber \\ & \qquad + K^I_i \widehat{\delta}_i + \sum_{j \in \mathcal{N}} B_{i,j} \sin (\widehat{\delta}_{ij}), \ i \in \mathcal{N}_G, \label{eqn:dyn12}\\ f^{(3)}_i & = D_i \dot{\widehat{\delta}}_i - \sum^S_{j = 1} \widehat{K}^{L}_{i,k_j} \widehat{\omega}_{k_j} + \widehat{\epsilon}^L_i + P^{LS}_i \nonumber \\ & \qquad + \sum_{j \in \mathcal{N}} B_{i,j} \sin (\widehat{\delta}_{ij}), \ i \in \mathcal{N}_L, \label{eqn:dyn13} \end{align} where in the above, we have dropped the notations showing the dependency of $f^{(1)}_i$ and $f^{(2)}_i$ on $(t,\hbox{\boldmath$\phi$})$ and $f^{(3)}_i$ on $(t, \hbox{\boldmath$\phi$}, {\bf K}^L, \hbox{\boldmath$\epsilon$}^L)$ and simplicity. In the above, the derivatives are computed using NN's automatic differentiation. The physics-based loss function is then given by \begin{align} L_2 & (\hbox{\boldmath$\phi$}, {\bf K}^L, \hbox{\boldmath$\epsilon$}^L) =\frac{1}{T}\sum_{\tau=1}^{T} \Big{(} \sum_{i \in \mathcal{N}_G} (f^{(1)}_i (\tau, \hbox{\boldmath$\phi$}))^2 \nonumber \\ & + \sum_{i \in \mathcal{N}_G} (f^{(2)}_i(\tau, \hbox{\boldmath$\phi$})^2 + \sum_{i \in \mathcal{N}_L} (f^{(3)}_i(\tau, \hbox{\boldmath$\phi$}, {\bf K}^L, \hbox{\boldmath$\epsilon$}^L)^2 \Big{)}. \end{align} Note that the above loss function depends both on the NN weights $\hbox{\boldmath$\phi$}$ and the attack parameters ${\bf K}^L,\hbox{\boldmath$\epsilon$}^L.$ \subsubsection{Sparsity-Promoting Loss} As noted before, we are interested in sparse solutions to the attack parameter estimation problem. Thus, in the PINN framework, we also add an additional sparsity promoting term in the loss function given by \begin{equation} L_3({\bf K}^L) = \alpha \LB || \widehat{{\bf K}}^L ||_1 + || \widehat{\hbox{\boldmath$\epsilon$}}^L ||_1 \RB, \end{equation} where, $\alpha$ is the scaling factor and $|| \widehat{{\bf K}}^L ||_1$ and $|| \widehat{\hbox{\boldmath$\epsilon$}}^L ||_1$ are the 1-norm of the vectors consisting of all the attack parameters. The NN is trained using the observed measurements $\{ \delta^{(\tau)}_i \}_{i \in \mathcal{N}, \tau = 1,\dots,T}$ and $\{ \dot{\delta}^{(\tau)}_i \}_{i \in \mathcal{N}, \tau = 1,\dots,T}$ as follows: \begin{align*} \hbox{\boldmath$\phi$}^*, \widehat{{\bf K}}^L, \widehat{\hbox{\boldmath$\epsilon$}}^L = \arg \min_{\hbox{\boldmath$\phi$}, {\bf K}^L, \hbox{\boldmath$\epsilon$}^L } L_1 (\hbox{\boldmath$\phi$}) + L_2 (\hbox{\boldmath$\phi$}, {\bf K}^L, \hbox{\boldmath$\epsilon$}^L) + L_3({\bf K}^L). \end{align*} Note that when the sum of these two losses is minimized, we ensure three criteria: (i) the output of the NN replicates the observed system dynamics, (ii) $f^{(1)}_i, f^{(2)}_i,$ and $f^{(3)}_i$ are close to zero, which in turn implies that \eqref{eqn:dyn_attack1}, \eqref{eqn:dyn_attack2} and \eqref{eqn:dyn3_LAA} are satisfied, and (iii) the obtained solution is sparse. This implies that the estimated attack parameters that best fit the observed data. \begin{figure} \centering \input{fig_pinn} \caption{PINN network showing input output and the losses} \label{fig:pinn_arch} \end{figure} \section{Implementing the Methods} \label{sec:Implement} In this section, we highlight the implementation aspects of the SR and PINN algorithms. The proposed algorithms can be integrated into existing wide-area monitoring systems (WAMS) in a straightforward manner. The hierarchical structure of WAMS network is shown in Fig.~\ref{fig:WAMS}. PMUs installed at the substation monitor the phase angle/frequency measurements, and send these measurements to a phasor data concentrator (PDC), and subsequently to a control center (CC). The proposed algorithms can be implemented in a centralized (at the CC), or decentralized manner. Since they are not significantly resource-intensive, both the SR and PINN algorithms can be implemented at the edge, either at a local phasor data concentrator (PDC) or at individual substations with limited information exchange between the nodes. This allows efficient response and detection, more control over data flows, and therefore enhanced security, privacy and data handling. We elaborate the method in the following. \begin{figure}[!t] \centering \includegraphics[width=0.48\textwidth]{Implement} \caption{Integration into wide-area monitoring systems.} \label{fig:WAMS} \vspace{-0.2 cm} \end{figure} Recall that the SR algorithm involves solving \eqref{eqn:sparse_reg} for every victim node $i \in \mathcal{V}$ to determine ${\bf k}_i$. This in turn requires the following signals at each node $i \in \mathcal{V}$: (i) $ \delta_i$ (ii) $ \{ \delta_{j} \}_{j \in \mathcal{N}_i},$ and (iii) $ \{ \omega_{k_j} \}_{ k_j \in \mathcal{S}}$. Note that (i) can be monitored locally at individual substations, and (ii) only requires information exchange with the neighboring nodes of node $i,$ i.e., $j \in \mathcal{N}_i$. On the other hand, (iii) requires information exchange from all the potential nodes at which the attacker can sense the grid frequency. In practice, due to the attacker's limited capabilities, these nodes are likely to be restricted to nodes that belong to the same control area or those that are connected to the same PDC. Thus, the SR algorithm can be implemented locally with limited information exchange. The PINN algorithm can be also be implemented in a decentralized manner. In particular, each substation can locally solve the following optimization problem to determine ${\bf k}^L_i$. \begin{align} \hbox{\boldmath$\phi$}^*_i, \widehat{{\bf k}}^L_i = \arg \min_{\hbox{\boldmath$\phi$}_i, {\bf k}^L_i } L_1 (\hbox{\boldmath$\phi$}_i) + L_2 (\hbox{\boldmath$\phi$}_i, {\bf k}^L_i) + L_3({\bf k}^L_i), \label{eqn:PINN_local} \end{align} \begin{align} \text{where} \ L_1 (\hbox{\boldmath$\phi$}) & =\frac{1}{T}\sum_{\tau=1}^{T} \Big{(} \sum_{j \in \{ i \cup \mathcal{N}_i \} } (\widehat{\omega}_i(\tau ,\hbox{\boldmath$\phi$}) - {\omega}_i(m))^2 \nonumber \\ & + \sum_{j \in \{ i \cup \mathcal{N}_i \} } (\widehat{\delta}_i(\tau,\hbox{\boldmath$\phi$}) - {\delta}_i(m))^2 \Big{)}, \nonumber \\ L_2 (\hbox{\boldmath$\phi$}) & = (f^{(3)}_i (\hbox{\boldmath$\phi$}_i, {\bf k}^L_i))^2, L_3 (\hbox{\boldmath$\phi$}) = \alpha || {\bf k}^L_i ||_1. \nonumber \end{align} As noted in the case of the SR algorithm, all the signals required to solve \eqref{eqn:PINN_local} can be obtained locally with limited information exchange between nodes of the same control area. \section{Simulation Results} \label{sec:Sims} In this section, we present simulation results to show the effectiveness of the proposed approaches. The power grid topological data is obtained from the MATPOWER simulator. In order to generate the dataset corresponding to power grid signals under LAA, we simulate the differential equations in \eqref{eqn:dyn_attack1}, \eqref{eqn:dyn_attack2}, and \eqref{eqn:dyn3_LAA} using the \emph{ode-45} function of MATLAB. We implement the UKF and SLR algorithms using the MATLAB functions \emph{unscentedKalmanFilter} and \emph{Lasso} respectively. The PINN algorithm is implemented using Tensorflow. We use a multi-layer perceptron for PINN with three hidden layers each with $50$ neurons. We use automatic differentiation to calculate the gradients. The NN is trained using limited memory Broyden–Fletcher–Goldfarb–Shanno algorithm (LBFGS) optimizer (similar to \cite{RaissiPINN2018}), as it is better suited when the training samples are limited. Attack detection and identification algorithms in the context of LAAs must have two characteristics (i) the targetted node(s) and the corresponding attack parameter(s) $K^L_{v,s}$ must be identified correctly, and (ii) for the nodes that are not targetted by the attacker, the estimated value of ${K}^L_{v,s}$ must be close to zero. Accordingly, we evaluate the algorithm performance in terms of two metrics. The first, given by $\eta_1 = (K^L_{v,s} - \widehat{K}^L_{v,s})/K^L_{v,s},$ which measures the accuracy of estimating the attack parameter correctly. The second metric is given by $\eta_2 = \sum_{v \in \mathcal{V}, s \in \mathcal{S}} (K^L_{v,s} - \widehat{K}^L_{v,s})^2$. $\eta_2$ represents the mean-square estimation error over all possible components of $K^L_{v,s}$. A low value of $\eta_2$ implies that nodes not targetted by the attacker are not identified as attacked nodes. The proposed algorithms were tested using the IEEE-6 and 39 bus systems. For brevity, we only present results from the IEEE-39 bus system. The simulations with the IEEE-6 bus system exhibit a similar trend. For the IEEE-39 bus system, $\mathcal{N}_G = \{30,\dots,39\}, |\mathcal{N}_G| = 10$ and $\mathcal{N}_L = \{1,\dots,29\}, |\mathcal{N}_L| = 29.$ We assume $\mathcal{S} = \mathcal{N}_G$ and $\mathcal{V} = \mathcal{N}_L.$ Thus, in our simulation setup, the attack parameter identification involves estimating $|\mathcal{N}_G| \times |\mathcal{N}_L| = 290$ values of $K^L_{v,s}, v \in \mathcal{V}, s \in \mathcal{S}.$ We present the simulation results next. \subsubsection*{Single-Point Attacks} First, we consider single-point attacks. For the IEEE 39-bus system, the node pair $(v,s) = (19,33)$ corresponds to the least-effort LAA \cite{LakshIoT2021}. Thus, for single-point attacks, we set $K^L_{19,33}$ to a non-zero value (to be specified subsequently) and rest of the values of $K^L_{v,s}$ to be zero. We consider two sets of generation parameters as listed in the Appendix. The frequency/phase angle dynamics corresponding to the two sets of parameters are shown in Fig.~\ref{fig:freq_dyn_plot39bus}. We refer to the parameter set A as \emph{fast dynamics}, in which the frequency deviates away from the setpoint of $50~$Hz relatively quickly within a few oscillation cycles. It can be observed that the oscillations are relatively smooth. The attack parameter in this case is set to $K^L_{19,33} = 18.$ We refer to parameter set B as \emph{slow oscillatory dynamics}, in which we observe several cycles of oscillations before the frequency deviates away from the setpoint of $50~$Hz. The attack parameter in this case is set to $K^L_{19,33} = 25.$ For both cases, we set $\epsilon_{19} = 0.1$ pu. \begin{figure}[!t] \centering \includegraphics[width=0.48\textwidth]{freq_dyn_plot39bus} \caption{Frequency dynamics under DLAAs for the IEEE-39 bus system . Top figure: Fast dynamics (System parameters A) wit $K^L_{19,33} = 18$. Bottom figure: Slow oscillatory dynamics (System parameters B) with $K^L_{19,33} = 25$. The horizontal lines indicate the safety limit of $2~$Hz.} \label{fig:freq_dyn_plot39bus} \vspace{-0.2 cm} \end{figure} We examine the effectiveness of the SR and PINN methods in detecting the DLAAs and compare their performance with the UKF method. To generate noisy data (as inputs to the algorithms), we add Gaussian noise to the frequency and the phase angle waveforms (obtained by solving \eqref{eqn:dyn1}-\eqref{eqn:dyn3}), whose standard deviation is set to $0.01~$pu. We assume PMU sampling frequency of $50$ measurements per second. Hence, the number of measurements involved in the training process is $50T,$ where $T$ is the measurement time window (specified subsequently). The parameter estimation accuracy $\eta_1$ (boxplots) for the IEEE-39 bus system is shown in Fig.~\ref{fig:Acc_SR} for the SR and PINN algorithms respectively. The results are plotted for different observation time windows. The attack parameter estimation is repeated $100$ times, where the measurements differ due to the realization of noise. It can be observed that the SR method is able to estimate the parameters accurately for both parameter settings (slow oscillatory and fast dynamics) before the system dynamics breach the safety limits. As expected, the attack parameters can be estimated with greater accuracy when the observation time window is larger, due to the availability of more data. On the other hand, we observe that while the PINN algorithm is able to accurately estimate the attack parameters for the system with fast dynamics, its accuracy is poor for the system with slow oscillatory dynamics (rightmost plot in Fig.~\ref{fig:Acc_SR}). This can be explained by observing Fig.~\ref{fig:train_epoch}, in which we plot the overall loss as a function of the training epochs. We observe that while in the case of fast dynamics, the error is minimized over several training epochs ($47,000$ epochs) and reaches a very low value, for slow oscillatory dynamics, the training terminates relatively quickly ($640$ epochs) since the loss does not decrease further. We conjecture this is because the system with slow dynamics has several oscillatory cycles (see Fig.~\ref{fig:freq_dyn_plot39bus}) and the NN training process may be potentially stuck at local minima. In contrast, for the system with fast dynamics, the oscillatory cycles are relatively smooth and conducive to training the NN. Thus, the PINN algorithm is not suited for attack detection/identification for systems with slow dynamics. \begin{figure}[!t] \centering \includegraphics[trim=150 0 0 0,clip,width=0.48\textwidth]{Acc_Plot} \caption{Attack parameter estimation accuracy (boxplots). Left figure: Fast dynamics ($12-16$ s, System parameters A) with $K^L_{19,33} = 18$. Right figure: Slow oscillatory dynamics ($30-45$ s, System parameters B) with $K^L_{19,33} = 25$.} \label{fig:Acc_SR} \vspace{-0.3 cm} \end{figure} \begin{figure} \centering \includegraphics[width=0.4\textwidth]{fig_train_39} \caption{PINN training for the slow and fast dynamics cases showing loss over the training epochs. The Both X and Y axes are in Logarithmic scale.} \label{fig:train_epoch} \vspace{-0.3 cm} \end{figure} We also compare the UKF approach for attack parameter estimation. Since UKF is a sequential algorithm, we plot the evolution of the attack parameter estimates as a function of the observation time window in Fig.~\ref{fig:UKF_Est}. It can be observed that while in the case of slow dynamics (right plot), the UKF method is able to track the attack parameters accurately, it is unable to do so in the case of fast dynamics. In particular, from Fig.~\ref{fig:UKF_Est}, it can be observed that while the attack was only applied at $K^L_{19,33},$ two parameters, $K^L_{19,33}$ and $K^L_{19,34}$ were estimated to be non-zero. \begin{figure}[!t] \centering \includegraphics[width=0.48\textwidth]{UKF_Est} \caption{Evolution of the attack parameter estimates under the UKF approach. Left figure: Fast dynamics (Parameters A) wit $K^L_{19,33} = 18$. Right figure: Slow oscillatory dynamics (Parameters B) with $K^L_{19,33} = 25$.} \label{fig:UKF_Est} \vspace{-0.3 cm} \end{figure} Further, we also enlist the overall mean-square error of attack parameter estimation ($\eta_2$) in Table~\ref{tbl:Accuracy}. We observe a similar trend as the previous result, i.e., the PINN algorithm performs well when the system has fast dynamics and the UKF approach performs well for the system with slow dynamics. The SR algorithm performs well over a wide range of system parameters. In particular, the low value of $\eta_2$ indicates that the value of $K^L_{v,s}$ for nodes that are not targetted by the attacker are close to zero. The error for the PINN algorithm under slow oscillatory dynamics is very high; hence we do not include them in the table. \begin{table}[!t] \begin{center} \begin{tabular}{|c | c | c | c | c |c |} \hline & PINN & SR & UKF \\ [0.5ex] \hline\hline \multirow{2}{*}{Fast dynamics ($T = 15$ s) } & $2.41$ & $0.91$ & $162$ \\ \cline{2-4} & $4.12$ & $3.18$ & $82$ \\ \hline \multirow{2}{*}{Slow oscillatory dynamics ($T = 40$ s) } & $- $ & $0.1$ & $3.4$ \\ \cline{2-4} & $- $ & $4.47$ & $6.19$ \\ \hline \end{tabular} \end{center} \caption{Mean-square error of attack parameter estimation ($\eta_2$) for IEEE-39 bus system with single-point attack. $K^L_{19,33} = 18$ for fast dynamics (Parameters A) and $K^L_{19,33} = 25$ for slow oscillatory dynamics (Parameters B).} \label{tbl:Accuracy} \vspace{-0.3 cm} \end{table} \subsubsection*{Simulations with Non-Gaussian Noise} In the previous simulations, we modeled the noise by Gaussian distribution. However, recent work based on real-world experiments shows that PMU noise data can be better modeled by non-Gaussian distributions such as the Student-t or Logistic distributions \cite{Wang2018}. Thus, we also perform simulations by adding non-Gaussian noise to the measurements. Specifically, we add Logistic noise whose parameters are adjusted to obtain a standard deviation of $0.01$ pu. The MSE of the algorithm performances are tabulated in Table~\ref{tbl:Accuracy_NonGauss}, which shows that the algorithm is able to reliably estimate the attack parameters even under non-Gaussian settings. \begin{table}[!t] \begin{center} \begin{tabular}{|c | c | c | c | c |} \hline & PINN & SR \\ [0.5ex] \hline\hline Fast dynamics ($T = 15$ s) & $4.84$ & $3.64$ \\ \hline \end{tabular} \end{center} \caption{Mean-square error of attack parameter estimation ($\eta_2$) for IEEE-39 bus system with Logistic noise distribution. System parameters considered correspond to fast dynamics.} \label{tbl:Accuracy_NonGauss} \end{table} \subsubsection*{Multi-point Attacks} We also consider simulations with multi-point attacks. We only present the results for the system with fast dynamics, since the PINN algorithm has poor performance for the system with slow dynamics. The attack parameters in this case are given by $K^L_{15,33} = 4, K^L_{19,33} = 14, K^L_{20,33} = 4.$ Once again, the parameters are chosen to represent a system that is stable without attacks, but unstable due to the LAAs. The accuracy results for the different attack parameters are plotted in Fig.~\ref{fig:Acc_MLAA} considering an observation time widow of $T = 16$ seconds. We observe that both the algorithms produce reliable estimates within the considered observation time window. Although not shown here, we also observed that the SR algorithm remains effective with multi-point attacks for the system with slow dynamics as well. \begin{figure}[!t] \centering \includegraphics[trim=150 0 0 0,clip,width=0.48\textwidth]{Acc_MLAA} \caption{Attack parameter estimation accuracy (boxplots) for multi-point attacks with T = 16 s. Attack parameters: $K^L_{19,33} = 4, K^L_{19,33} = 18, K^L_{19,33} = 4$.} \label{fig:Acc_MLAA} \end{figure} \subsubsection*{Execution Times} Finally, we also enlist the execution times of the SR and PINN algorithms. The simulations are conducted on a Windows PC with Intel Xeon(R) CPU E5-2630 v3 @ 2.40GHz processor, RAM :24 GB GPU NVIDIA K80. For the PINN algorithm, we consider two training regimes. First, train from scratch, in which the NN weights are randomly initialized and trained with the observed data. In the second method, the NN weights are pre-trained with the phase angle/ frequency measurements with no attacks. Then during the online phase, the NN weights are initialized with the pre-trained weights and fine-tuned with the real-time measurements (with attack). The results are tabulated in Table~\ref{tbl:Exe_Time} averaged over $100$ runs. It can be noted that the SR algorithm takes significantly less time to execute compared to the PINN algorithm. This is because the PINN involves training a NN over several epochs, which is computationally complex. The pre-training reduces the computational time of the PINN algorithm. On the other hand, SR follows the LASSO method which is computationally much simpler. Thus, in addition to being broadly applicable over a wide range of system parameters, the SR method also has an additional advantage of quick execution, thus minimizing the system downtime. \begin{table}[!t] \begin{center} \begin{tabular}{|c | c | c | c | } \hline & Execution time (s) \\ [0.5ex] \hline\hline SR & $4.84$ \\ \hline PINN (Train from scratch) & $4071$ \\ \hline PINN (Pre-trained) & $1523$ \\ \hline \end{tabular} \end{center} \caption{Exection times for the SR and PINN algorithms.} \label{tbl:Exe_Time} \vspace{-0.3 cm} \end{table} \section{Conclusions} \label{sec:Conc} In this work, we proposed data-driven algorithms to detect and identify IoT-enabled LAAs against power grids. We cast the problem as that of a system identification problem in which the attack parameters that best describe the observed dynamics are estimated from the measurements. We adopted two algorithms, namely, SR and PINN to estimate the attack parameters and extensively tested them using IEEE test bus systems. The proposed methods are applicable to generic non-linear power grid models. The results show that the proposed data-driven algorithms outperform existing methods such as those based on the UKF approach, especially in systems that exhibit fast dynamics. The PINN algorithm on the other hand does not perform well for systems with slow dynamics due to difficulties in training the neural network. Future work includes an extension to multi-area frequency control and optimal placement of PMUs to ensure reliable attack parameter estimation. \section*{Appendix: Simulation Parameters} System A: Fast dynamics \begin{align*} & M_1 = 2.3186; M_2 : M_8 = 2.6419; M_9 : M_{10} = 2.4862. \\ & K^P_1 - K^P_{10}= [1; 0.45; 0.45; 0.1; 0.5; 0.4; 0.3; 0.2; 0.4; 0.5]; \\ & K^I_i = 0.6, \forall i \in \mathcal{N}_G; D_i = 2, \forall i \in \mathcal{N}_G; D_i = 0.01, \forall i \in \mathcal{N}_L; \end{align*} System B: Slow oscillatory dynamics \begin{align*} & M_1 = 2.3186; M_2 : M_8 = 2.6419; M_9 : M_{10} = 2.4862. \\ & K^P_1 - K^P_{10}= [100; 45; 45; 10; 50; 40; 30; 20; 40; 50]; \\ & K^I_i = 60, \forall i \in \mathcal{N}_G; D_i = 2, \forall i \in \mathcal{N}_G; D_i = 0.01, \forall i \in \mathcal{N}_L; \end{align*} \balance \bibliographystyle{IEEEtran}
\section{Introduction} \label{introduction} White dwarfs (WDs) are the final evolutionary state of stars with initial masses of less than about 9\,M$_{\odot}$ \citep{2018MNRAS.480.1547L}. For the evolution of single stars, the minimum mass of a WD is around 0.40\,M$_{\odot}$ \citep{2007ApJ...671..761K}. Stars on the main sequence with lower masses have an evolution time greater than the age of the Universe. Considering the mass-radius relation of WDs, such masses correspond to a minimal $\log g$\ of about 6.5. On the other hand, the maximum $\log g$\ of main-sequence A-type stars is about 4.75 in the case of low metallicities. This limit is even lower for higher metallicity because of its radius dependence \citep[e.g.][]{2015MNRAS.450.3708R}. Binary evolution can lead to objects having $\log g$\ values between 6.5 and 4.75 \citep{2016A&A...595A..35I,2018MNRAS.473..693V}. One scenario is that binary interaction strips away the star’s outer layers during core He burning, resulting in a hot, lower-mass object known as a hot subdwarf \citep[see][for a thorough review on these objects]{2016PASP..128h2001H}. This mechanism works only for a certain mass regime because, for stars with masses lower than 2\,M$_{\odot}$, the temperature for burning He is only reached after they become degenerate \citep{2004cmpe.conf...31L}. As a consequence, if the outer layers of a low-mass progenitor are stripped away before the He burning starts, a degenerate He core with a hydrogen atmosphere will be left: a WD. Because the mass of the WDs that result from this mechanism can be much lower than the single star evolution limit, they are known as extremely low-mass WDs \citep[ELMs;][]{2020ApJ...889...49B}, which have $4.5 < \log~g < 7.0$. Their precursors, pre-ELMs, can have even lower values of $\log g$\ before they reach the cooling track. Due to rotational mixing, they can also show atmospheric metals \citep{2016A&A...595A..35I}. Hence, the spectra of (pre-)ELMs can resemble the spectra of low-metallicity main-sequence A-type stars very closely. The result is that the evolutionary status of objects that show metal-poor hydrogen-dominated spectra with $\log g$\ in the range 4--6 \citep[taking the large uncertainties due to line blanketing into account;][]{2017ApJ...839...23B,2018MNRAS.475.2480P} cannot be determined from spectroscopy alone. These objects are grouped into the spectroscopy class of subdwarf A-type (sdA) stars, given that they are located below the canonical (solar metallicity) main sequence \citep{2016MNRAS.455.3413K}. In a series of papers \citep{2019MNRAS.482.3831P}, we have attempted to shed light on the evolutionary nature of stars within the sdA spectral class. Recently, \citet{2019ApJ...885...20Y} have shown, using population synthesis models, that most sdA stars are consistent with metal-poor main-sequence stars, in agreement with previous works. The fraction of (pre-)ELMs can vary from 0.1\% to 20\%, depending on the age of the population. In summary, the physical properties of sdA stars are basically consistent with four different scenarios: (a) pre-ELMs or ELMs; (b) blue-stragglers; (c) metal-poor late-type main-sequence stars; and (d) hot subdwarfs plus main-sequence F, G, K binaries \citep{2018MNRAS.475.2480P}. Investigating the properties of the light curves of sdA stars offers an independent probe into their evolutionary origin \citep[e.g.][]{2018A&A...617A...6B}. Depending on the evolutionary status of the sdA stars, they can be located, for example, within the classical pulsational instability strip. Our main aim is to study the (non-)variability of this star group in order to shed more light on the evolutionary status of the individual objects. The long, ultra-precise, and well-sampled time series data provided by space missions, such as the the {\it CoRoT} \citep{Corot}, {\it Kepler} \citep{Kepler}, or {\it TESS} \citep{Tess} satellites, have revolutionized the field of variable star research and, in particular, asteroseismology. The detection limit for variability signals has decreased dramatically, which has enabled the first detailed investigations and classifications of variable stars with very low amplitudes and has revealed unprecedented detail and complexity in their light curves. In this paper we present the time series analysis of 25 stars classified as sdA that were observed by the {\it Kepler K2} mission. We also derive upper limits of non-variability for almost half the objects. \section{Target selection, used data, and data reduction} \label{target_selection} We used the list of 3891 sdA stars previously identified in the Sloan Digital Sky Survey (SDSS) with available and reliable {\it Gaia} Data Release 2 (DR2) astrometric data taken from \citet{2019MNRAS.482.3831P}. This is the best currently available dataset for this spectroscopic class. As the next step, we searched for matches in the complete dataset of the {\it Kepler K2} mission. Kepler was launched in March of 2009; it consists of a 0.95\,m Schmidt telescope feeding a 94.6 million pixel 42 charge-coupled device (CCD) detector array and covers a wavelength of 4300\AA\ to 8400\AA. The {\it Kepler} K2 mission began in November of 2013 and continued until 2019; during this period, {\it Kepler} was repurposed for a pointed survey of predetermined targets along the ecliptic plane, in contrast to the original fixed Kepler Input Catalog (KIC) stars. K2 typically saved target pixel files (TPFs) of chosen targets and would only download full-frame images (FFIs) twice per campaign. K2 data products were mostly long-cadence TPFs (29.4\,min), short-cadence TPFs (1\,min), and long-cadence light curves. Each field (115.6 deg$^2$) was observed for approximately 80\,d at a time. K2 also boasted a photometric precision of $\approx$ 300 parts per million and a pointing stability of approximately 0.66 pixels. K2 observed targets of brightness up to $V$\,=\,4\,mag and down to as low as $V$\,=\,20\,mag with a photometric precision of 10\% (at 30 minutes). The resulting K2 data were saved in the K2 Ecliptic Plane Input Catalog (EPIC), and the light curves used in this paper were all retrieved from this catalogue. In total, there are about 490\,000 light curves available. We found 32 light curves for 25 objects, which are listed in Table \ref{stellar_parameters}. For the time series analysis of the light curves, the original and pre-reduced \citep{2014PASP..126..948V} data were used. The latter take into account that the reduced telescope’s ability to point precisely for extended periods of time has influenced the photometric precision. The reduction technique accounts for the non-uniform pixel response function of the Kepler detectors by correlating flux measurements with the spacecraft’s pointing and removing the dependence. Although there are still artefacts visible, the quality of the light curve and thus the noise level of the data are significantly improved. All light curves were examined in more detail using the program package {\sc Period04} \citep{2005CoAst.146...53L}, which performs a discrete Fourier transformation. The results from {\sc Period04} were checked with {\sc cleanest} and phase dispersion minimization (PDM) algorithms as implemented in the program package {\sc Peranso} \citep{2016AN....337..239P}. The same results were obtained within the derived errors, which depend on the time series characteristics (i.e. the distribution of the measurements over time and photon noise). If more than one light curve was available, we checked both of them for the significant frequencies. For all cases, all the significant frequencies were detected in both datasets. This provides confidence that no spurious frequencies or artefacts are present in the analysed light curves. We also merged the light curves of one object for two or more campaigns and searched for long-term trends. However, this task is extremely restrained by instrumental effects. \citet{2017ApJ...851..116M} described their efforts, starting with the FFIs of the original {\it Kepler} mission. We were not able to gain any statistically significant improvements or find convincing long-term trends. Because the time basis of most light curves is about 30 days, we therefore confined our time series analysis to periods of 30\,d. \begin{table*} \begin{center} \caption{The results of the time series analysis for all target stars. The errors in the final digits of the corresponding quantity are given in parentheses.} \label{tsa_targets} \footnotesize \begin{tabular}{cccccccccc} \hline PMF & EPIC & Campaign & Frequency & Amplitude & SNR & Type & \multicolumn{3}{c}{Upper Limit}\\ & & & & & & & 0.03 -- 0.5 & 0.5 -- 2.0 & 2.0 -- 25 \\ & & & [c/d] & [Flux] & & & [c/d] & [c/d] & [c/d] \\ \hline 2917-54556-0089 & 201381939 & C102 & & & & & 0.30 & 0.15 & 0.09 \\ 2892-54552-0194 & 201434772 & C102 & & & & & 0.50 & 0.25 & 0.18 \\ 0515-52051-0079 & 201634373 & C01 & & & & & 0.18 & 0.12 & 0.12 \\ 3334-54927-0349 & 202066368 & C00 & 0.61558(9)& 0.0105(3) & 12.3 & GDOR & & & \\ & & & 0.6594(5) & 0.0094(3) & 11.1 & & & \\ & & & 0.5808(1) & 0.0080(3) & 9.4 & & & \\ & & & 0.5475(7) & 0.0048(3) & 5.7 & & & \\ & & & 1.272(1) & 0.0038(3) & 4.9 & & & \\ 3334-54927-0089 & 202066487 & C00 & & & & & 0.18 & 0.18 & 0.15 \\ 2676-54179-0319 & 202066571 & C00 & 0.5594(2) & 0.00525(6) & 38.0 & ACV & & & \\ & & & 0.2826(5) & 0.00202(6) & 14.4 & & & \\ & & & 0.3216(6) & 0.00160(6) & 11.4 & & & \\ & & & 0.842(1) & 0.00092(6) & 6.7 & & & \\ 2676-54179-0272 & 202067375 & C00 & & & & & 0.14 & 0.14 & 0.14 \\ 2676-54179-0317 & 202067392 & C00 & 15.622(2) & 0.00036(4) & 7.7 & DSCT & & & \\ & & & 16.007(2) & 0.00027(4) & 5.6 & & & \\ & & & 14.317(3) & 0.00026(4) & 5.4 & & & \\ & & & 21.404(3) & 0.00025(4) & 4.9 & & & \\ & & & 15.150(3) & 0.00021(4) & 4.8 & & & \\ 5293-55953-0322 & 211378898 & C05, C18 & 15.3052(6) & 0.023(2) & 14.7 & UGSU & & & \\ 2428-53801-0439 & 211477347 & C16, C18 & 0.6093(1) & 0.28(1) & & EA & & & \\ 2434-53826-0400 & 211617909 & C05, C18 & 6.8339(2) & 0.0125(4) & 32.8 & CV & & \\ & & & 13.6685(6) & 0.0052(4) & 16.8 & & & \\ & & & 20.5027(8) & 0.0037(4) & 14.4 & & & \\ 2271-53726-0187 & 211823779 & C05, C18 & & & & & 0.23 & 0.19 & 0.09 \\ 1924-53330-0016 & 212003762 & C18 & 0.6476(4) & 0.00194(6) & 13.9 & ROT & & & \\ & & & 0.6227(5) & 0.00143(6) & 10.2 & & & \\ & & & 1.312(1) & 0.00058(6) & 4.7 & & & \\ 1927-53321-0533 & 212108396 & C05, C18 & & & & & 0.71 & 0.33 & 0.33 \\ 1929-53349-0356 & 212137838 & C05 & 0.22416(4) & 0.00554(3) & 56.3 & ROT & & & \\ & & & 0.20862(9) & 0.00279(3) & 28.3 & & & \\ & & & 0.2414(3) & 0.00091(3) & 9.3 & & & \\ & & & 0.4569(3) & 0.00073(3) & 7.7 & & & \\ & & & 0.4373(4) & 0.00069(3) & 7.2 & & & \\ 2315-53741-0286 & 212167054 & C18 & 1.4501(4) & 0.27(1) & & EA & & & \\ 2315-53741-0014 & 212168575 & C05, C18 & 3.0421(2) & 0.126(2) & 26.4 & RRc & & & \\ & & & 6.085(1) & 0.017(3) & 7.4 & & & \\ & & & 9.127(2) & 0.08(3) & 5.8 & & & \\ 2716-54628-0638 & 212682624 & C06 & 1.4500(2) & 0.00122(5) & 21.0 & ELL & & & \\ & & & 3.309(1) & 0.00025(5) & 4.9 & & & \\ 0696-52209-0410 & 220227479 & C08 & & & & & 0.33 & 0.18 & 0.15 \\ 4550-55894-0172 & 220489294 & C08 & & & & & 2.80 & 1.35 & 1.70 \\ 3779-55222-0306 & 228960916 & C102 & & & & & 1.80 & 2.10 & 1.90 \\ 0381-51811-0200 & 246429212 & C12 & 4.0908(2) & 0.0039(1) & 24.8 & ELL & & & \\ & & & 2.0460(6) & 0.0014(1) & 8.0 & & & \\ 3834-56014-0026 & 248407521 & C14 & & & & & 1.20 & 0.80 & 0.90 \\ 5357-55956-0482 & 248833732 & C14 & & & & & 2.00 & 1.80 & 2.00 \\ 2304-53762-0140 & 251353301 & C16 & 5.94660(5) & 0.0881(8) & 27.5 & EW & & & \\ & & & 2.9724(7) & 0.0076(8) & 4.7 & & & \\ & & & 8.9210(8) & 0.0071(8) & 5.5 & & & \\ & & & 17.840(1) & 0.0052(8) & 7.1 & & & \\ & & & 11.894(1) & 0.0052(8) & 6.1 & & & \\ & & & 23.787(1) & 0.0046(8) & 8.4 & & & \\ \hline \end{tabular} \tablefoot{ The determined frequencies, amplitudes, and signal-to-noise ratios for the variable ones are listed in Cols. 4 to 6. For the eclipsing binaries EPIC 211477347 and 212167054, we list the mean depths of the primary minimum. The next column denotes the type of variability according to the abbreviations of the VSX (see notes below). The last three columns list the upper limits in different frequency domains. The absolute numbers depend on the time basis, apparent magnitude, and the observed sector. It should be noted that harmonics of frequencies were also detected. \\ GDOR stands for $\gamma$ Doradus star. ACV stands for $\alpha^2$ Canum Venaticorum variable. DSCT stands for the variable of the $\delta$ Scuti type. UGSU stands for U Geminorum-type variable, quite often called dwarf novae. EA stands for detached eclipsing binary. CV stands for cataclysmic variable. ROT stands for spotted star showing variability due to rotation. RRc stands for RR Lyrae type-c variable. ELL stands for rotating ellipsoidal variable. EW stands for W Ursae Majoris-type eclipsing binary.} \end{center} \end{table*} Defining the variability threshold is not straightforward. In general, the statistical significance of the noise in the Fourier spectrum is underestimated. We employed a conservative approach and defined the upper limit of variability as the upper envelope of the peaks in an amplitude spectrum. Because the noise levels change over the frequency range, we derived the values for three regions: 0.03 -- 0.5 c/d, 0.5 -- 2.0 c/d, and 2.0 -- 25 c/d. One example is shown in Fig. \ref{non_variable}. The red lines show the deduced limits of (non-)variability for the light curve of EPIC 220489294 (Table \ref{tsa_targets}). To check for known variable stars, we applied the version of the International Variable Star Index \citep[VSX;][]{2006SASS...25...47W} available as of January 27, 2020 (1\,432\,563 included objects). The search radius for objects was 10''. We detected eight objects among our sample (see the last column of Table \ref{stellar_parameters}). The light curves were analysed together with spectra of the Large Sky Area Multi-Object Fiber Spectroscopic Telescope (LAMOST) DR5 \citep{2019yCat.5164....0L} and the SDSS DR12 \citep{2015ApJS..219...12A} to constrain the evolutionary status of each sdA star. The LAMOST telescope \citep{2012RAA....12.1197C} is a reflecting Schmidt telescope located at the Xinglong Observatory in Beijing, China. It boasts an effective aperture of 3.6 to 4.9m and a field of view of 5$\degr$. Due to its unique design, LAMOST is able to take 4000 spectra in a single exposure with a spectral resolution $R \sim 1800$, a limiting magnitude of about 19\,mag in $r$, and a wavelength coverage from 3700 to 9000\AA. LAMOST is therefore particularly suited to survey large portions of the sky and is dedicated to a spectral survey of the entire available northern sky. LAMOST data products are released to the public in consecutive data releases and can be accessed via the LAMOST spectral archive\footnote{http://www.lamost.org}. The SDSS uses a dedicated 2.5m wide-field telescope, instrumented with a sequence of sophisticated imagers and spectrographs. The wavelength coverage of the spectra is from 3800 to 9200\AA\ for the SDSS spectrograph (up to Plate 3586), and 3650 to 10\,400\AA\ for the BOSS spectrograph, with a resolution of 1500 at 3800\AA\ and 2500 at 9000\AA\ \citep{2011AJ....142...72E}. \begin{figure} \begin{center} \includegraphics[width=0.45\textwidth]{non_variable.pdf} \caption{Amplitude spectrum of the apparent non-variable star EPIC 220489294, showing how the variability threshold is defined.} \label{non_variable} \end{center} \end{figure} \section{Results} \label{results} In Table \ref{tsa_targets} we present all the results of our time series analysis. The detected variable stars among the sdA stars (Table \ref{tsa_targets}) show quite a variety in terms of type (Col. 7 of the table), reflecting the different evolutionary status of the spectral sdA class; this is also clear from their different locations in the {\it Gaia} Hertzsprung-Russell diagram (HRD) shown in Fig.~\ref{CMD}. All three stars among the high $\log g$ \ (i.e. the WD domain EPIC 220489294, 248407521, and 248833732) are found to be constant. The other non-variable objects are distributed along the complete temperature range. The location of variable objects shows good agreement with their observed variability, considering what we know about the pulsation instability strip and the occurrence of $\alpha^{2}$ Canum Venaticorum (ACV) variables, as discussed in more detail below. \subsection{Astrophysical parameters} \citet{2019MNRAS.482.3831P} applied a grid of synthetic spectra to the observed ones from the SDSS in order to derive the astrophysical parameters. This method was especially optimized for subdwarfs. We have updated this procedure and checked it with the literature for known WDs \citep{2013ApJS..204....5K,2015A&A...583A..86K}. We compared the astrophysical parameters listed in Table \ref{stellar_parameters} with estimates from the literature. For this, we used the values from \citet{2018A&A...616A...8A}, \citet{2019A&A...628A..94A}, and \citet{2019AJ....158...93B}, which are all based on an automatic pipeline and the {\it Gaia} DR2. In Fig. \ref{comparison_literature} the comparison is presented. The $T_\mathrm{eff}$\ values show a wide spread around the line of equality. This is also true if we compare the literature values among themselves. Additionally, due to the rather large uncertainties, most of the data points fall on the identity line in a 2$\sigma$ range. For the $\log g$\ values, only \citet{2019A&A...628A..94A} can be used for a comparison. They do not include any WDs in their study. Again, we see a wide spread, which is to be expected. To get more accurate astrophysical parameters, high resolution spectra are needed, which is beyond the scope of this paper. \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{CMD.png} \caption{HRD, i.e. $M_G$ versus $(BP-RP)$ diagram, of our targets, together with stars from the Sample C presented in \citet{2018A&A...616A..10G} for guidance. The location of our targets together with their variability type is marked with different symbols. `NOV' indicates that the target was `not observed to vary'. The remaining acronyms are the same as in Table~\ref{tsa_targets}.} \label{CMD} \end{center} \end{figure} \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{comparison_literature.pdf} \caption{Comparison of the $T_\mathrm{eff}$\ (lower panel) and $\log g$\ (upper panel) values with those from the literature. The $\log g$\ values were derived by automatic pipelines \citep{2018A&A...616A...8A,2019A&A...628A..94A,2019AJ....158...93B}.} \label{comparison_literature} \end{center} \end{figure} Furthermore, we checked the astrophysical parameters of the three WDs (i.e. EPIC 220489294, 248407521, and 248833732). Because they cover a wide variety of spectral types (DB, DA, and DC), we used different appropriate atmosphere models \citep{2010MmSAI..81..921K} and spectral classifications \citep{1982A&A...116..147K}. The estimated $T_\mathrm{eff}$\ and $\log g$\ values were checked with the location in the HRD \citep{2018MNRAS.480.1547L}. No inconsistencies were found. \subsection{Main-sequence and horizontal branch pulsators} \subsubsection{EPIC 202066368} \citet{2015A&A...579A..19A} classified the light curve of EPIC 202066368 as quasi-periodic with a period of 1.621151\,d but did not study the source of the variability. We identify the same dominant period as \citet{2015A&A...579A..19A}, as well as four other previously unidentified frequencies. Given the effective temperature, observed eigenfrequencies, and light curve characteristics, we identify this star as being a $\gamma$ Doradus pulsator \citep{2011MNRAS.415.3531B}. These variables are characterized by a high-order, low-degree, non-radial gravity-mode (g-mode) pulsation \citep{1999PASP..111..840K}, which is thought to be driven by the convective flux blocking mechanism \citep{2000ApJ...542L..57G}. They are encountered between spectral types A7 and F7, consistent with the physical parameters found for this object (see Table~\ref{stellar_parameters}), although other sources have shifted the red border of the corresponding instability strip to somewhat hotter temperatures (spectral type F5; cf. \citealt{2015pust.book.....C}, and references therein). The multi-periodic variations are clearly seen in Fig. \ref{GDOR_SPB}. We employed the empirical pulsation period versus $T_\mathrm{eff}$\ relation derived by \citet{2018NewA...62...70I} for 109 $\gamma$ Doradus stars. It yields a period of about 0.55\,d for the $T_\mathrm{eff}$\ taken from Table \ref{stellar_parameters}. The found periods are between 0.5475 and 0.6594\,d, which perfectly coincidences with the expected value. EPIC 202066368 is therefore a main-sequence $\gamma$ Doradus pulsator, the first identified among sdA stars. \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{GDOR_ROT.pdf} \caption{Light curves of the pulsating star EPIC 202066368 (upper panel) and the rotational-induced variability of EPIC 212003762 (lower panel). The multi-periodic variations for EPIC 202066368 are clearly visible.} \label{GDOR_SPB} \end{center} \end{figure} \subsubsection{EPIC 202067392} This star was included by \citet{2010A&A...522A..88S} in their catalogue of blue horizontal branch stars at a distance of 6.41\,kpc from the Sun. With the new {\it Gaia} data (Table \ref{stellar_parameters}), we now know that this object is much closer (about 3.5\,kpc) to the Sun and therefore less luminous than previously thought. Here, we report its variability for the first time. The light curve and found periods are typical for a $\delta$ Scuti-type pulsation. They are multi-periodic pulsators of luminosity classes V to III that boast masses between about $1.5 M_{\odot} < M < 4.0 M_{\odot}$ \citep{2010aste.book.....A}. The observed light changes are caused by multiple radial and non-radial low-order pressure modes (p modes), which are excited through the $\kappa$ mechanism \citep{2009AIPC.1170..403H}. In evolved $\delta$ Scuti stars, so-called mixed modes are often observed. These are pulsation modes exhibiting g-mode characteristics in the interior and p-mode characteristics near the stellar surface \citep{2016MNRAS.460.1970B}. If we take the period luminosity relation from \citet{2019MNRAS.486.4348Z}, the period with the highest amplitude gives an absolute magnitude of +2.17\,mag. Taking the astrophysical parameters from Table \ref{stellar_parameters}, we derive a value of about +2\,mag with an error of about $\pm$0.3\,mag. The main contribution here is the error of the parallax. Because the detected variability is multi-periodic (Fig. \ref{DSCT}) within the proper frequency range, we conclude that EPIC 202067392 is a $\delta$ Scuti-type pulsator. The high gravity found by \citet{2019MNRAS.482.3831P} (4.62; see Table~\ref{stellar_parameters}) is at odds with the fact that this is likely a young object, hence with high metallicity, in agreement with its position in Fig.~\ref{CMD}. This can be explained by the fact that \citet{2019MNRAS.482.3831P} assumed solar metallicity in their fits, leading to high systematic uncertainties in $\log g$. \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{DSCT.pdf} \caption{Rich amplitude spectrum of the variable of the $\delta$ Scuti-type pulsator EPIC 202067392. The found amplitudes and the noise level are quite small.} \label{DSCT} \end{center} \end{figure} \subsubsection{EPIC 212168575} This star has previously been identified as an RR Lyrae star by \citet{2013AJ....146...21S}, using data from the The Lincoln Near-Earth Asteroid Research (LINEAR) survey. We confirm this result with the higher-quality K2 light curve, shown in Fig. \ref{RRc_ELL_var}, which confirms EPIC 212168575 as an RRc variable. Classical RR Lyrae are evolved stars that burn helium in their cores. In the HRD, they are located at the intersection of the horizontal branch and the classical instability strip, in which the $\kappa$ mechanism operating in the hydrogen and helium partial ionization zones drives the pulsation. RRc stars pulsate in the first overtone radial mode \citep{2019ApJS..244...32P}. It is important to mention that RR Lyrae-like pulsations can also be observed in pre-ELMs: Because of their complicated evolution, which can involve episodes of residual burning, they can have properties within the RR Lyrae instability strip. There is at least one observed system with such properties \citep{2012Natur.484...75P}, with another candidate observed by \citet{2018A&A...617A...6B}. The former could be confirmed as a pre-ELM because it is in an eclipsing system, which allowed its mass to be determined as only 0.26~$M_{\odot}$. We unfortunately detect no eclipses for EPIC 212168575. Considering that \citet{2012Natur.484...75P} estimated that only 0.2\% of RR Lyrae are pre-ELMs, and that only a small fraction of sdA stars are expected to not be main-sequence stars, we conclude that EPIC 212168575 is likely a classical RR Lyrae star. This, combined with the position in Fig.~\ref{stellar_parameters}, suggests that the $\log~g$ estimated by \citet{2019MNRAS.482.3831P} and quoted in Table~\ref{stellar_parameters} is overestimated, illustrating the importance of performing additional analyses other than spectral fitting for sdA stars. \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{RRc_ELL_var.pdf} \caption{Phased light curves of EPIC 212168575 (upper panel), EPIC 212682624 (middle panel), and EPIC 246429212 (lower panel).} \label{RRc_ELL_var} \end{center} \end{figure} \subsection{A new $\alpha^{2}$ Canum Venaticorum variable} The light curve of EPIC 202066571, shown in the inset of Fig.~\ref{202066571}, resembles that of a classical ACV variable. These are magnetic, chemically peculiar (CP) stars of the upper main sequence that show a non-uniform distribution of chemical elements. This distribution manifests itself in the formation of spots and patches of enhanced element abundance \citep{1981A&A...103..244M}, in which flux is redistributed through bound-free and bound-bound transitions. Therefore, as the star rotates (normally below 50\,\,km\,s$^{-1}$), strictly periodic changes are observed in the spectra and brightness of many CP stars, which are satisfactorily explained by the oblique rotator model \citep{1950MNRAS.110..395S}. The light curves are stable over several thousand rotational cycles \citep{2015AN....336..981B}. The found period (about 3.54\,d) is typical for ACV variables. We have to emphasize that this is not the frequency with the highest amplitude because EPIC 202066571 shows a double-wave structure (Fig. \ref{202066571}). Such a behaviour has been observed in several ACV variables \citep{1980A&A....89..230M,2016AJ....152..104H}. The classification of the available LAMOST and SDSS spectra according to appropriate Yerkes (MKK) standard stars \citep{2011AN....332...77P} results in a spectral type of A0\,V SiCrEu, which is typical for a magnetic CP star. As the parameters from \citet{2019MNRAS.482.3831P} quoted in Table~\ref{stellar_parameters} assumed stellar metallicity, the derived $T_\mathrm{eff}$\ is lower than expected for an A0\,V. Most importantly, we detected the typical 5200\,\AA\ flux depression, as shown in Fig. \ref{202066571}. It was found that this spectral feature occurs solely in these stars and is correlated with the organized local stellar magnetic field \citep{2007A&A...469.1083K}. It is well known that the effects of radiative diffusion are not restricted to the main-sequence domain; they are also predicted in stars with high gravities as well as in subdwarfs \citep{2011A&A...529A..60M}. However, a detailed abundance analysis on the basis of high resolution spectra for EPIC 202066571 is needed to reveal its true nature. This newly identified ACV variable is the first among sdA stars. \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{202066571.pdf} \caption{Part of the LAMOST spectrum for the bona fide CP star EPIC 202066571. Marked is the 5200\AA\ flux depression characteristic for members of this star group. The phased light curve is shown in the upper-right corner.} \label{202066571} \end{center} \end{figure} \subsection{Two composite hot subdwarfs} The SDSS and LAMOST spectra for EPIC 212003762 and EPIC 212137838 seem to indicate that they are B-type stars rather than cooler sdA objects. \cite{2016ApJ...818..202L} classified EPIC 212003762 as a composite of a hot subdwarf and a main-sequence star. For EPIC 212137838, \citet{2016MNRAS.457.3396P} concluded from a spectral energy distribution (SED) fitting that it is a binary system of a hot component (classification: SdB 0.2 He 9) and a cool component. The classification scheme is according to \citet{2013A&A...551A..31D}. To further investigate the SED of both objects, we employed the VO Sed Analyzer (VOSA\footnote{http://svo2.cab.inta-csic.es/theory/vosa/} v6.0) tool \citep{2008A&A...492..277B} for fitting the available photometry. The contributions of the hot and cool components for each star are visible. The LAMOST and SDSS spectra confirm this conclusion, clearly showing the \ion{Mg}{I} triplet at 5180\AA\ and the G band. Both objects are included in the hot subdwarf catalogue of \citet{2017A&A...600A..50G} as composite hot subdwarfs. As pointed out in \citet{2018MNRAS.475.2480P}, about 0.5\% of the sdA stars are hot subdwarfs with F,G,K companions. The periods observed here are, however, too long for hot pulsating subdwarfs \citep{2017MNRAS.466.5020H,2018MNRAS.474.4709K}. Assuming the variability comes from the B-type component, these objects could be interpreted as slowly pulsating B-type (SPB) stars. They are main-sequence stars of spectral types B2 to B9, which show non-radial g-mode oscillations driven by the $\kappa$ mechanism acting on the iron bump \citep{1993MNRAS.262..213G}. However, as can be clearly seen in Fig.~\ref{CMD}, where these objects are shown as cyan pentagons, both are under-luminous, suggesting that they are indeed subdwarfs. In this case, the most plausible explanation for the photometric variability, which is reported here for the first time, is that it actually originates in the cooler, unseen companion and is caused by stellar rotation and convection. It results from the change in brightness as spot(s) move in and out of the visible hemisphere of the star. Tens of thousands of rotational variables have been identified by the Kepler \citep[e.g.][]{2013A&A...560A...4R} and K2 missions \citep[e.g.][]{2020A&A...635A..43R}. The light curves often show a second period close to the dominant rotation period, as found here, which is interpreted as surface differential rotation. The relatively short rotation periods detected here are consistent with the formation scenario for hot subdwarfs with cool companions \citep{2002MNRAS.336..449H}: Roche-lobe overflow causes the hot subdwarf progenitor to lose its outer layers, and mass is accreted by the companion, causing it to spin up \citep[see e.g. the $v \sin i$ values in Table 5 of][]{2018MNRAS.473..693V}. \subsection{Two new ellipsoidal variables} EPIC 212682624 and EPIC 246429212 show light curves (Fig. \ref{RRc_ELL_var}) consistent with ellipsoidal variables (ELLs), similar to, for example, KIC 4570326 \citep{2014IAUS..301..413G}. This group of variables consists of close binaries whose components are distorted by their mutual gravitation but whose orbital inclinations are too small to show eclipses in the line of sight \citep{1986Ap&SS.125...69B}. The light variations are a combination of three effects: tidal distortion, reflection, and beaming. Beaming in particular is induced by the stellar radial motion, which results in an increase (decrease) in brightness when the star is approaching (receding from) the observer. Due to these effects and the many free parameters, the light curves of ELLs show a wide variety of shapes and amplitudes \citep{2016AcA....66..405S}. A good quality SDSS spectrum is available for EPIC 212682624. It is composed of six exposures taken over 25 hours. We noticed a hint of radial velocity variation (around 50\,km\,s$^{-1}$) between these sub-exposures. Using the package {\sc rvsao} \citep{1998PASP..110..934K} and a spectral template with the parameters from Table~\ref{stellar_parameters}, we estimated the radial velocities from each SDSS spectrum. We then calculated the Fourier transform of these velocities, which is shown in Fig.~\ref{2716_ft}. The dashed red line marks the dominant period from the photometry. There are many possible aliases from the radial velocities alone, but one ($1.4509\pm0.2575$~c/d) coincides with the photometric period, providing further evidence for the origin of the photometric variability. Figure~\ref{2716_rv} shows the radial velocities folded to this period, together with a sinusoidal fit, which give an amplitude of $K = 40 \pm 16$~km/s. Given the large uncertainty in the amplitude, the mass function for the unseen companion is not well constrained ($f_2 = 0.0047 \pm 0.0056~M_{\odot}$). Furthermore, this object is located below the main sequence (upper green diamond in Fig.~\ref{CMD}) in a region with relatively low extinction \citep[E(B-V) = 0.0279;][]{2011ApJ...737..103S}. This, combined with the binarity and the ellipsoidal variation, suggests that the object is an ELM with an unseen companion. \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{2716-54628-0638_periodogram.pdf} \caption{Fourier transform for the SDSS radial velocities of EPIC 212682624. The dashed red line marks the photometric period, which is consistent with one of the possible aliases.} \label{2716_ft} \end{center} \end{figure} \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{2716-54628-0638_phase.pdf} \caption{SDSS radial velocities of EPIC 212682624, folded to the period in Fig.~\ref{2716_ft} that is consistent with the photometric period. The dashed red line shows a sinusoidal fit, assuming a circular orbit.} \label{2716_rv} \end{center} \end{figure} EPIC 246429212 was previously selected by \citet{2008ApJ...684.1143X} as a blue horizontal branch star candidate. The phased light curve is shown in Fig. \ref{RRc_ELL_var}. The short orbital period suggests that the binary cannot harbour a horizontal branch star. The position far below the main sequence in Fig.~\ref{CMD} also supports the idea that the object is instead an ELM. We obtained radial velocities for this star with the Goodman High Throughput Spectrograph at the SOAR 4~m telescope using a 1200~l/mm grating and a 1" slit, obtaining a resolution of $\approx 2$\AA, as part of the programme SO2018B-002 (PI: Pelisoli). Each spectrum was paired with an arc-lamp exposure to guarantee precise radial velocities. The radial velocities were calculated in the same way as for EPIC~212682624. These velocities alone do not constrain the period well -- many aliases are possible, and similar values of $\chi^2$ are obtained assuming a large range of periods (see Fig. \ref{0381_ft}). The best period given by the radial velocities is $2.8\pm0.8$~c/d, but there is also a possible alias at $4.0214\pm0.0009$~c/d that is more consistent with the photometric variability. Figure~\ref{0381_rv} shows the obtained orbital solutions assuming these two periods. For the former, the amplitude is $138\pm5$~km/s, while for the latter it is slightly smaller, $122\pm6$~km/s. The corresponding binary mass functions are $f_2 = 0.0979\pm0.0102~M_{\odot}$ and $f_2 = 0.0473\pm-0.007$, respectively. In any case, this is consistent with an ELM with a cool unseen companion, as for EPIC 212682624. Unfortunately, the mass of the primary in these systems is not straightforward to determine, due to the complicated evolution of ELMs, which involves residual burning and leads to an overlap between evolutionary tracks that show the same value of $\log~g$ for different combinations of mass, radius, and metallicity (see e.g. Fig. 9 in \citealt{2016A&A...595A..35I} and Fig. 8 in \citealt{2019ApJ...871..148L}). Therefore, further constraints on the ellipsoidal systems cannot be derived with the current set of spectra. \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{0381-51811-0200_periodogram.pdf} \caption{Top panel: Fourier transform for the radial velocities of EPIC 246429212, as obtained from SOAR spectra. Bottom panel: Values of $\chi^2$ for orbital solutions calculated at each period, assuming a circular orbit. The dashed red line marks the photometric period. The radial velocities do not constrain the period well, but a solution with low $\chi^2$ is possible near the photometric period.} \label{0381_ft} \end{center} \end{figure} \begin{figure}[t] \begin{center} \includegraphics[width=0.45\textwidth]{0381-51811-0200_RVs.pdf} \caption{Obtained radial velocities for EPIC 246429212 shown together with two possible solutions. The solid line assumes the period with lowest $\chi^2$ in Fig.~\ref{0381_ft}, and for the dashed line we have chosen the alias closest to the photometric period.} \label{0381_rv} \end{center} \end{figure} \subsection{Other previously known binaries} \subsubsection{EPIC 211477347 and 212167054} These are two rather normal Algol-type eclipsing binaries first detected by the Catalina Survey \citep{2014ApJS..213....9D}. However, they are not included in the final catalogue of eclipsing binaries from the {\it Kepler} mission \citep{2016AJ....151...68K}. \citet{2018ApJS..238....4P} list a period of 0.7667809\,d for EPIC 212167054. The periods suggest that they can consist of normal (i.e. not compact) components \citep{2004A&A...417..263B}. \subsubsection{EPIC 211617909} \citet{2009AJ....137.4011S} included this object in their list of cataclysmic variables (CVs) but did not publish any period. Here we report a period of 0.146\,d; we also identify its harmonics. Cataclysmic variables are binary star systems consisting of a WD and a normal star companion. They irregularly increase in brightness by a large factor and then drop back down to a quiescent state due to mass transfer and accretion \citep{2020MNRAS.492L..40A}. EPIC 211617909 is included in the list of known bright WDs by \citet{2017MNRAS.472.4173R}. The two independent light curves show a quiet irregular behaviour, such as that of the CV variable HV And \citep{2012NewA...17..442R}. The orbital period of EPIC 211617909 is most likely 0.146\,d. Whereas the LAMOST spectrum is very noisy, showing only H$\alpha$ in emission, the SDSS spectrum clearly shows that most of the hydrogen lines are in emission. Also, the binarity characteristics are visible; this is without any doubt a CV system. The fact that it has been classified as sdA despite the emission lines is a consequence of the SDSS spectral classification pipeline allowing for negative normalization when fitting spectral templates (i.e. Balmer lines in emission can be fitted with an upsidedown A-type spectrum and be erroneously labelled as A type). \subsubsection{EPIC 211378898} EPIC 211378898 is a known U Geminorum-type variable that has been studied for many years \citep{2017PASJ...69...75K}. U Geminorum-type variables are a class of dwarf novae that show long, bright outbursts (super-outbursts) in addition to normal outbursts, and these super-outbursts are believed to be caused by the tidal instability when the disk radius expands to a resonance during an outburst \citep{1989PASJ...41.1005O}. During super-outbursts, variations with periods slightly longer than the orbital period are observed, and they are called super-humps. The orbital period of EPIC 211378898 is about 0.065\,d \citep{1996ASSL..208...61M}, which is exactly what we have measured in the light curve. The LAMOST and SDSS spectra show the typical strong emission of the hydrogen lines. Like\ EPIC 211617909, EPIC 211378898 has been classified as sdA due to negative normalization factors being allowed. It should be noted that this short orbital period excludes a main-sequence binary due to the Roche lobe criterion \citep[i.e. at least one of the components should be a compact object;][]{1983ApJ...268..368E}. \subsubsection{EPIC 251353301} This star is listed as a W UMa-type variable with a period of 0.3363233\,d by \citet{2014ApJS..213....9D}. This would perfectly coincidence with the frequency of 2.9724 c/d (Table \ref{tsa_targets}). Although this is the frequency with the lowest signal-to-noise ratio, all other detected frequencies are harmonics of it. \subsection{Other known variable sdA stars in the AAVSO database} \begin{table} \begin{center} \caption{Types of the 120 known variable stars taken from the VSX.} \label{vsx} \begin{tabular}{cc} \hline Type & No. \\ \hline CV & 3 \\ DSCT & 14 \\ EA & 16 \\ EB & 1 \\ EW & 37 \\ HADS & 11 \\ NON-CV & 1 \\ RRAB & 8 \\ RRC & 18 \\ RRD & 3 \\ RS & 1 \\ UGSU & 3 \\ V361HYA & 1 \\ VAR & 3 \\ \hline \end{tabular} \tablefoot{CV stands for cataclysmic variable. DSCT stands for variable of the $\delta$ Scuti type. EA stands for detached eclipsing binary. EW stands for W Ursae Majoris-type eclipsing binary. HADS stands for high amplitude $\delta$ Scuti stars. NON-CV stands for a star that was once classified as a CV but then was found to be constant. RRAB stands for RR Lyrae type-a or type-b variable. RRC stands for RR Lyrae type-c variable. RRAB stands for RR Lyrae type-d variable. RS stands for subtype for eclipsing or ellipsoidal systems showing chromospheric activity. UGSU stands for U Geminorum-type variable, quite often called a dwarf nova. V361HYA stands for very rapidly pulsating hot subdwarf B star. VAR stands for variable of unknown type. } \end{center} \end{table} To gather further insight into the range of variables within the sdA spectroscopic class, we cross-matched our complete list of sdA candidates with the VSX database maintained by the American Association of Variable Star Observers (AAVSO) and found 120 matches. This is only about 3\% of the total sample. It is important to emphasize that no list of apparent non-variable stars exists, especially for the highly accurate space-based datasets. Table \ref{vsx} lists the statistics of the found variables in the VSX. The largest group are the binaries (CV, EA, EB, EW, and RS), followed by the pulsating stars (DSCT, HADS, RRAB, RRC, RRD, and V361HYA). For the RR Lyrae stars, for example, the period-luminosity relation also depends on the metallicity \citep{2004ApJS..154..633C}, which could provide interesting insight into the sdA stars. For $\delta$ Scuti stars, there is a well-established period-luminosity-colour-metallicity relation \citep{1999A&A...352..547P} that can be used as for RR Lyrae stars. Furthermore, for the radial $\delta$ Scuti-type pulsators of Population I, the observations indicate increasing and decreasing period changes, while most of the Population II counterparts are characterized by sudden jumps \citep{1998A&A...332..958B}. These jumps have already been successfully observed \citep{2019PASP..131f4202Z}. A detailed investigation of all available data on a longer time basis is needed to put further constraints on the evolutionary status of the pulsators. \section{Discussion} Reflecting the inhomogeneity of the sdA spectral class, we find these objects to show a wide range of possible photometric variability. The K2 light curves allow us to confirm that three of the analysed objects (EPIC 202066368, 202067392, and 202066571) are consistent with main-sequence stars, as expected for most sdA stars. A fourth object (EPIC 212168575) is likely a horizontal branch star. The rate of binaries, in particular with compact companions, seems to be high among photometric variable sdA stars. Only three out of the nine stars identified as binaries have periods long enough to not harbour a compact star. Two of the binaries (EPIC 212682624 and EPIC 246429212) have a (pre-)ELM as a primary, with an unseen cool companion as the secondary. The derived surface gravities would be consistent with metal-poor main-sequence stars (i.e. blue stragglers). If their detected companions are not the objects that donated mass, they could be rare examples of such objects formed in primordial (or dynamically formed) hierarchical triple stars \citep{2009ApJ...697.1048P}. For the CVs, it is interesting to note that \citet{2005ASPC..334..351S} suggested that the observed period gap in CVs is created by a superposition of a short-period subdwarf B-type channel and a longer-period post-thermal-timescale mass-transfer channel rather than the conventional model of a single uniform formation channel and disrupted magnetic braking. The detected CVs among the sdA stars could contribute to the analysis of this mechanism. Within our analysis, about half (12 out of 25) of the objects were found to show no variability on a time basis of 30 days and to have very low amplitudes. There has not yet been any homogeneous and comprehensive study on the incidence of (non-)variable stars across the HRD. However, studying this parameter is of the upmost importance for analysing the current evolutionary status of the sdA stars. Because of their evolutionary history across the HRD, we can expect a different behaviour than that of solar-abundant main-sequence stars. A first basic study in this respect entitled `Gaia Data Release 2 -- Variable stars in the colour--absolute magnitude diagram' \citep{2019A&A...623A.110G} has been published. On the basis of the available {\it Gaia} observations, the authors searched for (non-)variable stars for which more than 20 observations in the three different bands are available. This transforms to a precision level of approximately 5 to 10\,mmag. However, the dataset they used was not published, so an analysis in respect to the sdA stars is not possible. \section{Conclusions} \label{conclusions} A detailed analysis of the formation and evolution of sdA stars is still in its early stages. One of the insights we have is that the group still consists of many different types of objects, for example metal-poor A/F-type stars in the halo with overestimated surface gravities and extremely low-mass WDs and their precursors (i.e. ELMs and pre-ELMs). Investigating the variable and apparently non-variable objects among this group will help to shed more light on the astrophysical processes from a different point of view. However, the incidence of apparently non-variable stars is also very important because certain atmospheric conditions, such as the degeneracy of different layers, stratification, strong magnetic fields, accretion, and stellar winds, suppress pulsation. We have investigated the accurate time series of the {\it Kepler} K2 satellite mission available for 25 sdA and candidate sdA stars. Among this sample, we have found 13 variable stars of different types. Among these are classical pulsating stars, ELLs, eclipsing binaries, CVs, and rotationally induced variables. This mixture of types also reflects the mentioned variety of sdA subgroups. For the 12 apparently non-variable stars, we deduced the noise level of the amplitude spectra for different frequency domains in order to account for the quality of the datasets. This pilot study is just the beginning and is presented to sound the possibilities of using variable stars for the study of sdA stars. The most recent list includes about 3900 members or candidates for this star group. Upcoming datasets, such as from the {\it TESS} satellite, will only cover the brighter stars with an accuracy equivalent to that of the {\it Kepler} mission. For a further study of the astrophysical parameters of the variable stars, spectroscopic observations, for example radial velocity measurements, are also needed. \begin{acknowledgements} This work has been supported by the DAAD (project No. 57442043) and the Erasmus+ programme of the European Union under grant number 2020-1-CZ01-KA203-078200. IP acknowledges funding by the Deutsche Forschungsgemeinschaft under grant GE2506/12-1. It has also made use of data from the European Space Agency (ESA) mission {\it Gaia} (\url{https://www.cosmos.esa.int/gaia}), processed by the {\it Gaia} Data Processing and Analysis Consortium (DPAC, \url{https://www.cosmos.esa.int/web/gaia/dpac/consortium}). Funding for the DPAC has been provided by national institutions, in particular the institutions participating in the {\it Gaia} Multilateral Agreement. This paper is dedicated to Holger Pikall who died during its preparation. \end{acknowledgements} \bibliographystyle{aa}
\section*{Acknowledgements} Dallas Card was supported in part by the Stanford Data Science Institute. \section{Introduction} Drawing robust conclusions when comparing different methods in natural language processing is central to scientific progress. If two research groups set up the same set of experiments, they should expect to get similar results. One area that has high impact, but is often underreported, is hyperparameter tuning \citep{score_distributions, damour2020underspecification, dodge-etal-2019-show, melis2018}. Hyperparameter search is key to getting strong results; for example, RoBERTa \citep{liu2019roberta} found stronger results than BERT \citep{bert} partly due to an increased budget for hyperparameter tuning. Often researchers only report the performance of the single best-found model during a hyperparameter search \cite{Ethayarajh2020Utility, forde2019scientific, sculley2018}. What if a future researcher has a smaller computational budget for training models? What performance should they expect to find? One way of reporting such results is expected validation performance (EVP). What is EVP? Assume a budget to train $B$ models (e.g., $B$ rounds of hyperparameter search), with resulting evaluation scores (e.g., accuracy) on the validation set $X_1\ldots X_B$. Standard practice would report the maximum result, $X_{max}$, but this effectively hides the experiments which were required to achieve that maximum performance. Using all $B$ results, EVP estimates what the maximum would have been if we had had a \textit{smaller} budget $n$ (where $1\leq n < B$). This is estimating what the maximum of $n$ trials \emph{would be}, in expectation; this is thus a statistical estimation problem. The formulation was introduced by \citet{dodge-etal-2019-show}, who proposed a first estimator (defined as $V_n^B$ in Equation~\ref{eq:v_def}). This estimator was later shown to be biased by \citet{tang-etal-2020-showing}, who introduced an unbiased estimator (defined as $U_n^B$ in Equation~\ref{eq:u_def}) for the same expected maximum. In Section~\ref{sec:estimation} we use tools from combinatorics to derive both previously-introduced estimators, relate them to each other, and show that they make two opposing assumptions; we show that changing only one of these assumptions instead of both leads to a third estimator, $W_n^B$, and prove that this estimator is even more biased than $V_n^B$. Unbiased estimators are generally preferred, all else equal, but only analyzing the bias provides an incomplete picture of the quality of an estimator. In Section~\ref{sec:sim} we also measure the variance and mean squared error of these three estimators in synthetic experiments. We find that while $U_n^B$ is unbiased (as expected) it has the highest variance, and that $W_n^B$ is the most biased but has the lowest variance; $V_n^B$ strikes a balance between the bias and variance, leading to the lowest mean squared error (so, the average squared distance to the true value being estimated is smallest).\footnote{There is a long tradition of preferring biased estimators over unbiased ones \citep{all_of_stats}, such as when estimating the population variance using the sample variance, or the James–Stein estimator \cite{steins_estimator}.} Finally, in Section~\ref{sec:incorrect_conclusions} we explore how these estimators impact a common use case of EVP: comparing the results of hyperparameter searches for two models. Specifically, we examine how frequently the estimators lead to incorrectly concluding that the worse model outperforms the better one (for a given budget), and find that the high-variance (but unbiased) $U_n^B$ more frequently leads to such incorrect conclusions than the other lower variance (but biased) estimators. \section{Estimation of the Expected Maximum}\label{sec:notation} \def{\textrm{Var}}\,{{\textrm{Var}}\,} \def{\mathbb{E}}\,{{\mathbb{E}}\,} \def{\textrm{Bias}}\,{{\textrm{Bias}}\,} \def{\textrm{MSE}}\,{{\textrm{MSE}}\,} \def{Y_n}\,{{Y_n}\,} \def{\theta}{{\theta}} \newcommand{\textmultiset}[2]{\bigl(\!{\binom{#1}{#2}}\!\bigr)} \newcommand{\displaymultiset}[2]{\left(\!{\binom{#1}{#2}}\!\right)} \newcommand\multiset[2]{\mathchoice{\displaymultiset{#1}{#2}} {\textmultiset{#1}{#2}} {\textmultiset{#1}{#2}} {\textmultiset{#1}{#2}}} \paragraph{Notation} We begin by defining some notation. Consider $n$ i.i.d.~random variables, $X_1, \ldots, X_n\sim F$, for some unknown $F$.\footnote{For clarity, we dispense with notation mapping into the use case of interest, as well as the computational details; see \citet{dodge-etal-2019-show} for a full discussion.} \begin{itemize} \item ${Y_n}\,=\max\{X_1,\ldots,X_n\}$, a random variable representing the maximum of $n$ i.i.d. random variables \item ${\theta}_n={\mathbb{E}}\,[{Y_n}\,]$, the true expected value of ${Y_n}\,$. \item $\hat{{\theta}}_n$, an estimator of ${\theta}_n$ (the expected value). \item ${\textrm{Bias}}\,(\hat{{\theta}})={\mathbb{E}}\,[\hat{{\theta}}]-{\theta}$, the bias of $\hat{{\theta}}$. \item ${\textrm{Var}}\,(\hat{{\theta}})$, the estimator's variance due to sampling. \item ${\textrm{MSE}}\,(\hat{{\theta}})={\textrm{Bias}}\,(\hat{{\theta}})^2+{\textrm{Var}}\,(\hat{{\theta}})$, the mean squared error of the estimator. MSE is the average squared difference between the estimator and true value, or the expected value of the squared error loss between the estimator and the true statistic. \end{itemize} \paragraph{Estimation of the Expected Maximum}\label{sec:estimation} We consider the estimation of ${\theta}$, the expected maximum. With a finite sample of $B$ draws from $F$, we can estimate this quantity for $1\leq n\leq B$. We begin with the definition of an expectation over a discrete set: ${\mathbb{E}}\,[{Y_n}\,]=\sum_{i=1}^{B} X_i P({Y_n}\,=X_i)$. This can be rewritten using order statistics. Let $X_{(i)}$ denote the $i$th largest sample (distinct from $X_i$). Then, \begin{align}\label{eq:exp_val} &{\mathbb{E}}\,[{Y_n}\,]=\textstyle\sum_{i=1}^{B} X_{(i)} P({Y_n}\,=X_{(i)})\\ &=\textstyle\sum_{i=1}^{B} X_{(i)} \left( P({Y_n}\,\leq X_{(i)}) - P({Y_n}\,< X_{(i)})\right)\nonumber\\ &=\textstyle\sum_{i=1}^{B} X_{(i)} \left(P({Y_n}\,\leq X_{(i)}) - P({Y_n}\,\leq X_{(i-1)})\right)\nonumber \end{align} This estimation depends on $P({Y_n}\,\leq X_{(k)})$, the probability that a sample of size $n$ has a maximum that is less than or equal to the $k$th order statistic. We can estimate this probability by counting: from our $B$ points how many sets of size $n$ are there which only include order statistics up to $k$, out of the total number of sets of size $n$? We turn to combinatorics, which provides tools for counting such sets. Two key assumptions must be made: whether the sets will contain repetition or not and whether the items in the sets will be ordered or unordered. These assumptions will lead to different estimators. Ordered subsets that allow repetition are known as \textbf{strings}, and there are $B^n$ strings of size $n$ from $B$ points. With these assumptions, we now have a closed form for $P({Y_n}\,\leq X_{(k)})$, and plugging this into Equation~\ref{eq:exp_val} we define our first estimator: \begin{equation}\label{eq:v_def} \begin{split} V_n^B&= \sum_{i=1}^{B} X_{(i)} \left(\frac{i^n}{B^n}-\frac{(i-1)^n}{B^n}\right). \end{split} \end{equation} This is exactly the estimator introduced in \citet{dodge-etal-2019-show}, derived using the plug-in estimator for the CDF (the empirical CDF). Making the opposite two assumptions, unordered subsets without repetition are \textbf{combinations}, for which there are $\binom{B}{n}$ subsets of size $n$ from $B$ points. The corresponding estimator is \begin{equation}\label{eq:u_def} \begin{split} U_n^B&= \sum_{i=1}^{B} X_{(i)} \left(\frac{\binom{i}{n}}{\binom{B}{n}}-\frac{\binom{i-1}{n}}{\binom{B}{n}}\right). \end{split} \end{equation} This is the estimator of \citet{tang-etal-2020-showing}, which they derived as an unbiased estimator. What about changing only one of these assumptions? Ordered subsets without repetition are \textbf{permutations}, for which there are $_{B} P_{n}$ subsets of size $n$ from $B$ points. Though these assumptions are different, the corresponding estimator is equivalent to $U_n^B$, since: \begin{equation} \frac{_{k} P_{n}}{_{B} P_{n}} = \frac{\frac{k!}{(k-n)!}}{\frac{B!}{(B-n)!}} = \frac{\frac{k!}{n!\,(k-n)!}}{\frac{B!}{n!\,(B-n)!}} = \frac{\binom{k}{n}}{\binom{B}{n}} \end{equation} Finally, unordered subsets with repetition are \textbf{multisets}, the number of which is denoted $\multiset{B}{n}= \binom{B+n-1}{n}$. We introduce the corresponding estimator: \begin{equation}\label{eq:w_def} \begin{split} W_n^B&= \sum_{i=1}^{B} X_{(i)} \left(\frac{\multiset{i}{n}}{\multiset{B}{n}}-\frac{\multiset{i-1}{n}}{\multiset{B}{n}}\right). \end{split} \end{equation} \paragraph{Comparing estimators} To compare these estimators we turn to the standard statistical tools of bias, variance, and mean squared error. $U_n^B$ was shown to be unbiased, and ${\textrm{Bias}}\,(V_n^B)\leq 0$ \citep{tang-etal-2020-showing}. We show that ${\textrm{Bias}}\,(W_n^B)\leq {\textrm{Bias}}\,(V_n^B)$, that is $W_n^B$ has a larger negative bias than $V_n^B$. \begin{theorem} Assume $X_1, \ldots, X_B\sim F$ are i.i.d.~from unknown distribution $F$. Let $1\leq k<B$, and $1 \leq n \leq B$. Then, ${\textrm{Bias}}\,(W_n^B)\leq {\textrm{Bias}}\,(V_n^B)$. \end{theorem} Consider $V_n^B$ as defined in Equation~\ref{eq:v_def}. The sum of the coefficients of the $X_{(i)}$ up to $k$ is $\frac{k^n}{B^n}$. It is sufficient to show that, for a given $k$, this term is less than the sum of the coefficients for $W_n^B$, which is $\left.{\multiset{k}{n}}\right/{\multiset{B}{n}}$; this implies that $V_n^B$ places less probability mass on the smaller order statistics than $W_n^B$. \begin{align}\label{eq:first_ineq} \frac{k^n}{B^n}< \frac{\multiset{k}{n}}{\multiset{B}{n}} & \iff \frac{k^n}{B^n} < \frac{\binom{k+n-1}{n}}{\binom{B+n-1}{n}} \\ & \iff \frac{\binom{B+n-1}{n}}{B^n} < \frac{\binom{k+n-1}{n}}{k^n}. \label{eq:first_ineq_b} \end{align} The left side of Eq.~\ref{eq:first_ineq_b} can be rewritten as: \begin{align} \frac{\binom{B+n-1}{n}}{B^n} &= \frac{\frac{(B+n-1)!}{n!\, B!}}{B^n} = \frac{1}{n!}\frac{\prod_{j=0}^{n-1}\left(B+n-1-j\right)}{B^n} \nonumber \\ &=\textstyle \left(\frac{1}{n!}\right)\prod_{j=0}^{n-1}\left(1+\frac{(n-1)-j}{B}\right). \end{align} Rewriting the right side of Eq.~\ref{eq:first_ineq_b} in a similar manner, we have \begin{align*} \textstyle \prod_{j=0}^{n-1}\left(1+\frac{(n-1)-j}{B}\right) < \prod_{j=0}^{n-1}\left(1+\frac{(n-1)-j}{k}\right) \end{align*} since $B>k$. This completes our proof. \section{Simulation Experiment} \label{sec:sim} In the previous section we proved that $W_n^B$ is at least as biased as $V_n^B$, but such a bound tells us little about how these estimators behave in practice. In this section we provide a simulation experiment which allows us to measure the bias and variance of each estimator directly. We assume a distribution for $X_i$, which allows us to draw many samples of size $B$ so we can evaluate how these estimators behave. Recall that the motivating application of our estimators is when $\{X_i\}_{i=1}^{n}$ represent the evaluations from different trials of hyperparameter optimization, so designing a reasonable distribution for $X_i$ allows us to evaluate the estimators with tens of thousands of simulated trials without having to train that many models. \subsection{Synthetic Experiments Setup}\label{subsec:synthetic} To begin, we sample 100,000 random values from a Normal$(0.6, 0.07)$ distribution (truncated to $[0, 1]$). We then sample 10,000 values from this set, resulting in 9536 unique values, with a true maximum of 0.854. Call this bag of values $\mathcal{V}$. We then set $B=30$, and estimate the true EVP as a function of $n$ for $n=1,...,30$, by drawing 50,000 samples of size $n$ from $\mathcal{V}$, for each value of $n$, and reporting the average maximum for each $n$ (``True EVP'' in Figure \ref{fig:synthetic_bias_and_var}, top). To estimate the mean and variance of a given estimator we sample 10,000 $B$ values from $\mathcal{V}$ and compute the value of the estimator for each, then calculate the mean and variance across those 10,000 samples. \subsection{Bias, Variance, MSE} Figure \ref{fig:synthetic_bias_and_var} shows the estimated mean (top), variance (middle), and MSE (bottom) of each estimator. As can be seen in the top figure, ${\textrm{Bias}}\,(W_n^B)\leq {\textrm{Bias}}\,(V_n^B)\leq {\textrm{Bias}}\,(U_n^B)=0$ with a a difference that grows with $n$, confirming the proved bounds for these estimators. In the middle figure we measure the variance of these estimators, and we see that ${\textrm{Var}}\,(W_n^B)\leq {\textrm{Var}}\,(V_n^B)\leq {\textrm{Var}}\,(U_n^B)$, with the difference in variance again growing with $n$. \begin{figure}[t] \centering \includegraphics[scale=0.64]{fig/mean_var_mse.pdf} \caption{Expected value (top) variance (middle) and mean squared error (MSE; bottom) of the three estimators, based on a 10,000 simulations for a large random bag of possible validation scores. As expected, $U_n^B$ is unbiased while $V_n^B$ and $W_n^B$ have negative bias. However, $W_n^B$ has the lowest variance, and $V_n^B$ balances bias and variance, leading to lowest MSE.} \label{fig:synthetic_bias_and_var} \end{figure} In the bottom of Figure~\ref{fig:synthetic_bias_and_var} we plot the mean squared error (MSE); as a reminder, ${\textrm{MSE}}\,(\hat{{\theta}})={\textrm{Bias}}\,(\hat{{\theta}})^2+{\textrm{Var}}\,(\hat{{\theta}})$, so lower is better. Although $U_n^B$ is unbiased, and $W_n^B$ has the lowest variance, $V_n^B$ strikes the balance between bias and variance that leads to the lowest MSE. Thus we see that a higher variance estimator may, on average, be farther from the true value than a biased but lower variance estimator. Again tying this back to our motivating application of hyperparameter tuning, in this scenario $V_n^B$ is more likely to underestimate than overestimate performance for a given budget, but overall will have lower variance between researchers running sets of experiments, and will on average have closer predictions to the true value than the other two estimators. \section{Bias-Variance Tradeoff} These estimators provide a nice illustration of bias-variance tradeoff. While all three estimators are asymptotically unbiased as $B\to \infty$, with finite $B$ ${\textrm{Bias}}\,{V_n^B}\leq0$ and ${\textrm{Bias}}\,{W_n^B}\leq0$. We can see from Equation~\ref{eq:u_def} that when $i<n$, $\binom{i}{n}=0$ so $P({Y_n}\,=X_{(i)})=0$. This means that with the assumptions underlying $U_n^B$, the probability of drawing a sample of $n$ points which has a maximum that is smaller than the $n$th order statistic is 0. \jdcomment{another way of saying this is that when $n=B$ the probability of drawing another $B$ points with a maximum that is higher or lower than $X_{(n)}$ is 0.} $V_n^B$ and $W_n^B$ model the probability that another experimenter might run another $B$ trials and \emph{not} see a value as high as $X_\mathit{max}$, but don't attempt to model the probability that one would find a \emph{higher} value (in general, we can't know whether a higher maximum is even possible). Thus, both are ``shrinkage estimators'' as they are biased towards the sample mean (i.e., downwards). \section{Incorrect Conclusions}\label{sec:incorrect_conclusions} While analyzing how close each estimator is to the true expected maximum for one model is important, in practice these curves are often used to compare two or more different models. For example, NLP practitioners may run hyperparameter searches for two different models, compute the expected validation curves for each, and select the model which presents a higher estimated maximum performance \cite{Zhang2021revisiting, gehman2020realtoxicityprompts}. In this section we examine the three estimators in such a scenario, asking how frequently each estimator leads to drawing \emph{incorrect} conclusions about which model performs best for a specific budget. \subsection{Experimental Setup} We proceed by performing a sensitivity analysis: we run 100 trials of random hyperparameter search (far more than is typically necessary to establish that one model outperforms another in current practice) for a CNN \cite{kim2014convolutional} and a linear bag-of-embedding (LBoE) \cite{Yogatama2015BayesianOO}. These models are trained on the Stanford sentiment treebank 5-way text classification task \cite{Socher2013RecursiveDM}. We include details about the dataset (and a link to download it) in Appendix~\ref{app:data}. For all three estimators, the CNN has higher expected performance than the LBoE, for all $n \le B$.\footnote{See Appendix~\ref{app:real_exp} for details. Figure~\ref{fig:evp_real_data} shows expected validation curves for $B=100$ for all three estimators; with $B$ this large, the three estimators are very similar.} We then simulate a more practical scenario where a practitioner runs $B \in \{15, \ldots, 30\}$ rounds of hyperparameter search for the two models and compares their estimated maximum at $n=B$ (so, the estimated maximum of $B$ points) to conclude which is best (that is, which estimator has lower error). We are interested in the rate at which each estimator would draw an incorrect conclusion about which model performs best. To evaluate this question we do the following: for each value of $B$ we sample 50,000 times from the 100 real experiments and compute the fraction for which the value of each estimator for the CNN is less than for LBoE. For example, to estimate the proportion with which $U_B^B$ draws an incorrect conclusion with $B=15$ we draw 50,000 samples of size 15 from the 100 real experimental results for each of the CNN and LBoE, then compute the fraction of those samples for which $U_B^B$ for the CNN is less than $U_B^B$ for LBoE. A stable estimator will make the same prediction with small and large $B$. \subsection{Results} In Figure~\ref{fig:error} we see the results of this experiment: $U_B^B$ more frequently would lead a practitioner to incorrectly conclude that the LBoE outperforms the CNN for budgets $B\in \{15, \ldots, 30\}$ than $V_B^B$ or $W_B^B$. This scenario models what we expect a practitioner would care about: the frequency with which one draws conclusions that would be consistent with conclusions drawn with a larger budget. Here the high variance of $U_B^B$ likely plays a role the stability of its predictions; while it may be unbiased, the lower variance estimators are more reliable. \begin{figure}[t] \centering \includegraphics[width=0.5\textwidth]{fig/error_predictions_U_V_W.pdf} \caption{For a budget of $B$ trials, what fraction of the time does each estimator \emph{incorrectly} predict that the expected maximum of those $B$ trials (so, $n=B$) is higher for the LBoE than for the CNN? Lower is better. The proportion of errors made by the unbiased estimator $U_n^B$ when $n=B$ is higher than for either of the biased estimators, $V_n^B$ and $W_n^B$. Confidence intervals around this proportion are not shown, as they are small. \label{fig:error}} \end{figure} \section{Estimating Variance} The above discussion has focused on estimating the expected value (mean) of the maximum of a sequence of i.i.d.~observations. We now turn to the variance of that maximum (not to be confused with the variance \emph{of the estimators} $V_n^B$ and $U_n^B$, discussed in the preceding section!). An estimate of the variance helps answer the question, ``if we had a budget to run only $n$ trials, how much variation would expect to see in the maximum observed value $X_{\mathit{max}}$?'' \citet{dodge-etal-2019-show} argued for reporting the variance along the EVP curve (means at different values of $n$). \nascomment{reworked a lot here, please check} The conventional method for estimating variance requires a plug-in estimate of the mean; what are the implications of choosing $V_n^B$ or $U_n^B$ as the mean estimate to plug in? In the finite $B$ case that is relevant here, the differences are stark. At $n=1$, $V_n^B$ and $U_n^B$ return the sample mean of the $B$ observations, and the resulting sample variance estimate will be the variance of the $B$ observations. As $n \rightarrow B$, however, the estimated variance for $U_n^B$ goes to zero. The estimated variance for $V_n^B$ captures the possibility of finding a maximum less than $X_{\mathit{max}}$ (but not a greater one).\footnote{For many distributions this is an underestimate of the true variance \nascomment{this statement is not precise; are we saying this is a biased estimate of variance? isn't that true for the $U$ version as well though? the scope of attachment for this footnote is ambiguous}, so computing confidence intervals would likely not contain the quantity of interest appropriately, as shown by \citet{tang-etal-2020-showing}.} \nascomment{I took out the recommendation here; save that for the end!} The modeling assumptions in $U_n^B$ cause the sample variance to go to 0, which could problematically suggest to a reader that if they were to run another set of $B$ experiments, they would find $U_n^B$ to be perfectly stable as $n\to B$. However, as we will see in the next section, the $U_n^B$ estimator has higher variance (and thus is less stable) than $V_n^B$. \section{Conclusion} Drawing reproducible conclusions from our experimental results is of paramount importance to NLP researchers, practitioners, and users of language technologies. Expected validation performance curves are tools for comparing the results of hyperparameter searches; we showed how two previously-introduced estimators are connected through combinatorial assumptions, and introduced a third estimator by varying such assumptions. In synthetic experiments, we analyzed the bias, variance, and mean squared error, and found a classic example of a bias-variance tradeoff; the unbiased estimator $U_n^B$ had the largest variance, and the most biased estimator $W_n^B$ had the lowest variance, while $V_n^B$ struck a balance leading to the lowest mean squared error. Finally, in realistic experiments we found that the unbiased estimator led to incorrectly identifying the better of two models at a higher rate than the lower variance estimator. Overall, $V_n^B$ had the lowest MSE and the lowest rate of drawing incorrect conclusions, so $V_n^B$ is our recommendation for estimating the expected maximum. \section{Expected Validation Curves for two models, all three estimators} We include expected validation curves of the same data using all three estimators in Figure~\ref{fig:evp_real_data}. They look roughly the same. \begin{figure*} \centering \includegraphics[scale=.65]{fig/evp_real_data.pdf} \caption{$U_n^B$ (left), $V_n^B$ (middle) and $W_n^B$ (right) curves of the same data, a CNN and a Linear Bag of Embeddings (LBoE), evaluated on SST-5, with $B$=100. With such a large $B$ the three estimators are very similar. For all three estimators, the CNN has higher expected performance than the LBoE for all $n$.} \label{fig:evp_real_data} \end{figure*} \section{Training Data}\label{app:data} The CNN and LBoE in Section~\ref{sec:incorrect_conclusions} are trained on the Stanford sentiment treebank 5-way text classification task \cite{Socher2013RecursiveDM}. There are 8544 train examples, 2210 test examples, and 1101 validation examples. It can be downloaded here: \url{http://nlp.stanford.edu/sentiment}. We present label distributions in Table~\ref{app_table:dataset_statistics}. \begin{table} \centering \begin{tabular}{c|ccc} Label & Train & Valid & Test\\ \hline 0 & 1092 & 139 & 279\\ 1 & 2218 & 289 & 633\\ 2 & 1624 & 229 & 389\\ 3 & 2322 & 279 & 510 \\ 4 & 1288 & 165 & 399\\ \end{tabular} \caption{Label distributions for SST-5. 0 is ``very negative'', 2 is ``neutral'', and 4 is ``very positive''.} \label{app_table:dataset_statistics} \end{table} \section{Hyperparameter Ranges}\label{app:real_exp} The hyperparameter bounds for the CNN and LBoE in Section~\ref{sec:incorrect_conclusions}, which were trained on SST-5 as described in Appendix~\ref{app:data}. \begin{table*}[h] \centering \small \begin{tabular}{cc} \toprule \textbf{Computing infrastructure} & GeForce GTX 1080 GPU\\ \midrule \textbf{Number of search trials} & 100 \\ \midrule \textbf{Search strategy} & uniform sampling \\ \midrule \textbf{Best validation accuracy} & 41.3\\ \midrule \textbf{Training duration} & 77 sec\\ \bottomrule \end{tabular} \vspace{3mm}\begin{tabular}{cccccccccccccc} \toprule \textbf{HP} & number of epochs & patience & batch size & embedding & encoder & max filter size \\ \midrule \textbf{Search space} & 50 & 10 & 64 & GloVe (50 dim) & Convnet & \emph{uniform-integer}[1, 9] \\ \midrule \textbf{Best assignment} & 50 & 10 & 64 & GloVe (50 dim) & Convnet & 9 \\ \end{tabular} \vspace{3mm}\begin{tabular}{cccccccccccccc} \toprule \textbf{HP} & number of filters & dropout & LR scheduler & patience & reduction factor \\ \midrule \textbf{Search space} & \emph{uniform-integer}[64, 512] & \emph{uniform-float}[0, 0.5] & reduce on plateau & 2 epochs & 0.5 \\ \midrule \textbf{Best assignment} & 390 & 0.2 & reduce on plateau & 2 epochs & 0.5 \end{tabular} \vspace{3mm}\begin{tabular}{cccccccccccccc} \toprule \textbf{HP} & optimizer & LR \\ \midrule \textbf{Search space} & Adam & \emph{loguniform-float}[1e-6, 1e-1] \\ \midrule \textbf{Best assignment} & Adam & 0.0004 \end{tabular} \caption{SST (fine-grained) CNN classifier search space and best assignments.} \label{tab:my_label} \end{table*} \begin{table*}[h] \centering \small \begin{tabular}{cc} \toprule \textbf{Computing infrastructure} & GeForce GTX 1080 GPU\\ \midrule \textbf{Number of search trials} & 100 \\ \midrule \textbf{Search strategy} & uniform sampling \\ \midrule \textbf{Best validation accuracy} & 42.7\\ \midrule \textbf{Training duration} & 41 sec\\ \bottomrule \end{tabular} \vspace{3mm}\begin{tabular}{ccccccccccc} \toprule \textbf{Hyperparameter} & number of epochs & patience & batch size & embedding & dropout \\ \midrule \textbf{Search space} & 50 & 10 & 64 & GloVe (50 dim) & \emph{uniform-float}[0, 0.5] \\ \midrule \textbf{Best assignment} & 50 & 10 & 64 & GloVe (50 dim) & 0.4 \\ \midrule \end{tabular} \vspace{3mm}\begin{tabular}{ccccccccccc} \toprule \textbf{Hyperparameter} & LR scheduler & patience & reduction factor & optimizer & LR \\ \midrule \textbf{Search space} & reduce on plateau & 2 epochs & 0.5 & Adam & \emph{loguniform-float}[1e-6, 1e-1] \\ \midrule \textbf{Best assignment} & reduce on plateau & 2 epochs & 0.5 & Adam & 0.044\\ \midrule \end{tabular} \caption{SST (fine-grained) BOE classifier search space and best assignments.} \label{tab:my_label} \end{table*}
\section{Introduction} \label{introduction} Since the development of reinforcement learning and neural networks~\cite{sutton,ndp}, leveraging Artificial Intelligence (AI) and Machine Learning (ML) methods in the field of systems and control theory has been an active field of research. Although successful, conventional black-box AI and ML approaches often lack formal robustness and stability guarantees, which are essential in implementing safety-critical control schemes for, \eg{}, robotic and aerospace systems. \subsubsection*{Related Work} Contraction theory is one of the most powerful mathematical tools for providing such guarantees for learning-based control frameworks~\cite{contraction,tutorial}. Generalizing Lyapunov theory, it studies differential dynamics of a nonlinear system using a Riemannian contraction metric and its uniformly positive definite matrix, thereby designing a differential Lyapunov function to characterize a necessary and sufficient condition for exponential convergence of any couple of the system trajectories. Due to the differential nature of contraction theory which allows utilizing LTV system-type approaches~\cite{cvstem,ncm,nscm,ancm,tutorial}, its nonlinear stability analysis reduces to the problem of finding a contraction metric that satisfies a Linear Matrix Inequality (LMI)~\cite{lmi}. Obtaining contraction metrics analytically is challenging for general nonlinear systems, and thus several techniques have been proposed to find them numerically using the LMI property. In particular, it is proposed in~\cite{ccm} that sufficient conditions for incremental exponential stabilizability of nonlinear systems can be expressed as convex constraints, enabling systematic synthesis of a differential feedback control. Such an idea is further extended to develop the method of ConVex optimization-based Steady-state Tracking Error Minimization (CV-STEM)~\cite{cvstem,ncm,nscm,tutorial}, which computes a contraction metric and its associated feedback control and state estimation laws via convex optimization for optimal deterministic/stochastic disturbance attenuation. A critical limitation of these optimization-based schemes is their computational complexity. In essence, a Neural Contraction Metric (NCM) and its extensions~\cite{ncm,chuchu,nscm,ancm,lagros,tutorial} are developed to model the CV-STEM contraction metric using a Deep Neural Network (DNN), achieving real-time implementable control, estimation, and motion planning of nonlinear systems with guaranteed robustness and stability. We again remark that such formal guarantees are difficult to quantify for black-box AI and ML techniques without considering a contracting stability property. \subsubsection*{Contribution} This paper presents rigorous proofs on the aforementioned theoretical guarantees of the NCM methods~\cite{ncm,chuchu,nscm,ancm,lagros,tutorial}, which provide an explicit exponential bound on the distance between a target trajectory and solution trajectories with the NCM learning-based control, even under the presence of learning errors and deterministic/stochastic perturbation. We also derive one explicit way to optimally sample NCM training data by formulating the CV-STEM, to design contracting differential feedback control that minimizes the steady-state of the computed bound for optimal disturbance attenuation. Furthermore, we provide an algorithmic overview on DNN training for simultaneous synthesis of the contraction metric and control, to see how the NCM robustness and stability guarantees corroborate the success of learning-based control. \subsubsection*{Notation} \label{notation} For $x \in \mathbb{R}^n$ and $A \in \mathbb{R}^{n \times m}$, we let $\|x\|$, $\delta x$, $\|A\|$, and $\|A\|_F$ denote the Euclidean norm, infinitesimal displacement at a fixed time, induced 2-norm, and Frobenius norm, respectively. For $A \in \mathbb{R}^{n \times n}$, we use $A \succ 0$, $A \succeq 0$, $A \prec 0$, and $A \preceq 0$ for the positive definite, positive semi-definite, negative definite, negative semi-definite matrices, respectively, and $\sym(A) = (A+A^{\top})/2$. Also, $\mathop{\mathbb{E}}$ denotes the expected value operator. \section{Neural Contraction Metrics for Learning-based Control~\cite{ncm,nscm,ancm,lagros,tutorial}} \label{learning} In this paper, we consider the following smooth non-autonomous (\ie{} time-varying) nonlinear system, perturbed by deterministic disturbances $d(x,t)$ with $\sup_{x,t}\|d(x,t)\|=\bar{d}$ and Gaussian white noise $\mathscr{W}(t)$ with $\|G(x,t)\|_F \leq \bar{g}$: \begin{align}\label{eq:xfx} d{x}=&{h}({x},u,t)dt+d(x,t)dt+G(x,t)d\mathscr{W}(t) \end{align} where $t \in \mathbb{R}_{+}$, ${x}:\mathbb{R}_{+}\mapsto\mathbb{R}^n$ is the system state, $u \in \mathbb{R}^m$ is the system control input, ${h}: \mathbb{R}^n\times\mathbb{R}^m\times\mathbb{R}_{+}\rightarrow\mathbb{R}^n$ is a known smooth function, $d:\mathbb{R}^n\times\mathbb{R}_{+} \mapsto \mathbb{R}^{n}$ and $G:\mathbb{R}^n\times\mathbb{R}_{+} \to \mathbb{R}^{n\times w}$ are unknown bounded functions for external disturbances, $\mathscr{W}:\mathbb{R}_{+} \mapsto \mathbb{R}^{w}$ is a $w$-dimensional Wiener process, and we consider the case where $\bar{d},\bar{g} \in [0,\infty)$ are given. Let us first introduce the following definition of contraction~\cite{contraction}. \begin{definition} \label{def:contracting} The system \eqref{eq:xfx} is said to be contracting if there exist a uniformly positive definite matrix ${M}({x},t)={{\Theta}}({x},t)^{T}{{\Theta}}({x},t) \succ 0,~\forall x,t$ and a feedback control law $u=u^*(x,x_d,u_d,t)$ \st{} the following condition holds $\forall x,t$: \begin{align} {\dot{M}}+2\sym{}\left(M\frac{\partial {h}(x,u^*(x,x_d,u_d,t),t)}{\partial {x}}\right)+\Xi(x,t) \preceq 0 \label{eq_MdotContracting} \end{align} where $\exists \Xi(x,t) \succ 0,~\forall x,t$, $M=M(x,t)$, and $x_d$ is the target trajectory of \eqref{eq:xfx} given as follows: \begin{align} \label{target_dynamics} \text{$\dot{x}_d={h}(x_d,u_d,t)$ \st{} $u_d=u^*(x_d,x_d,u_d,t)$}. \end{align} We call $M$ and $u^*$ satisfying \eqref{eq_MdotContracting} a contraction metric and contracting control law, respectively. \end{definition} It is shown that \eqref{eq_MdotContracting} is a necessary and sufficient condition for incremental exponential stability of the system trajectories with respect to each other~\cite{contraction,tutorial}. \subsection{Problem Formulation} Finding an optimal contraction metric $M$ for general nonlinear systems is challenging and could involve solving optimization problems at each time instant~\cite{cvstem,observer} (see Sec.~\ref{Sec:ncm}), which is not suitable for systems with limited computational capacity. A Neural Contraction Metric (NCM) and its extensions~\cite{ncm,nscm,ancm,lagros,tutorial} have been proposed to approximate a contracting control law $u^*$, \ie{}, a computationally-expensive control law parameterized by the contraction metric given by \eqref{eq_MdotContracting}, utilizing a Deep Neural Network (DNN). \begin{definition} \label{Def:NCM} A Neural Contraction Metric (NCM) is a DNN model of a contraction metric given by Definition~\ref{def:contracting}. \end{definition} We consider the problem of modeling the contracting control law $u^*$ by a learning-based control law $u_L(x,x_d,u_d,t)$ parameterized by the NCM of Definition~\ref{Def:NCM} (see~\cite{cvstem,ccm} and Sec.~\ref{Sec:ncm} for how to obtain $u^*$). Let $x$ be the trajectory of \eqref{eq:xfx} controlled by $u=u_L$, and $x_d$ be the target trajectory of \eqref{target_dynamics}. Since we have ${h}(x,u_L,t) = {h}(x,u^*,t)+({h}(x,u_L,t)-{h}(x,u^*,t))$, a virtual system of $q$, which has $q=x$ and $q=x_d$ as its particular solutions, is given as follows: \begin{align} \label{virtual_system_general} dq = {h}(q,u^*(q,x_d,u_d,t),t)dt+d_q(q,t)dt+G_q(q,t)d\mathscr{W} \end{align} where $d_q$ and $G_q$ are parameterized linearly to verify $d_q(q=x_d,t) = 0$, $d_q(q=x,t) = {h}(x,u_L(x,x_d,u_d,t),t)-{h}(x,u^*(x,x_d,u_d,t),t)+d(x,t)$, $G_q(q=x_d,t)=0$, and $G_q(q=x,t) = G(x,t)$. \begin{assumption} \label{assump_learning} In this section, we assume the following. \setlength{\leftmargini}{5pt} \begin{itemize} \setlength{\itemsep}{1pt} \setlength{\parskip}{0pt} \item For all $(x,x_d,u_d,t)\in{S}$, $u_L$ is learned to satisfy \begin{align} \label{learning_cond} \|u_L(x,x_d,u_d,t)-u^*(x,x_d,u_d,t)\| \leq \epsilon_{\ell0}+\epsilon_{\ell1}\int^x_{x_d}\|\delta q\| \end{align} where ${S}={S}_x\times{S}_x\times{S}_u\times{S}_t$, ${S}_x\subset\mathbb{R}^n$, ${S}_u\subset\mathbb{R}^m$, and ${S}_t\subset\mathbb{R}_+$ are some given compact sets, and $\int^x_{x_d}\|\delta q\|$ is a path integral from $x_d$ to $x$ parameterized by $q$ of \eqref{virtual_system_general}. \item ${h}$ of \eqref{eq:xfx} is Lipschitz with respect to $u$, \ie{}, $\exists L_u \in [0,\infty)$ \st{} \begin{align} \label{Lipschitz_u} \|{h}(x,u,t)-{h}(x,u',t)\| \leq L_u\|u-u'\|,~\forall u,u'\in\mathbb{R}^m \end{align} for all $x\in{S}_x$ and $t\in{S}_t$. \item Let ${S}_{xt}={S}_x\times{S}_t$. When $G \neq 0$ in \eqref{eq:xfx}, $\partial M/\partial {x_i}$ of $M$ in \eqref{eq_MdotContracting} is Lipschitz with respect to $x$, \ie{}, $\exists L_m \in[0,\infty)$ \st{} \begin{align} \label{eq_Mlipschitz} \left\|\frac{\partial M}{\partial {x_i}}(x,t)-\frac{\partial M}{\partial {x_i}}(x',t)\right\|\leq L_m\|x-x'\|,~\forall (x,t),(x',t)\in{S}_{xt}.~~~ \end{align} \end{itemize} \end{assumption} \begin{remark} \eqref{learning_cond} can be empirically guaranteed, \eg{}, by DNNs, which have been shown to generalize well to the set of unseen events that are from almost the same distribution as their training set~\cite{rethinknet,8794351}, and consequently, obtaining a tighter and more general bound for the learning error has been an active field of research~\cite{marginbounds1}. The condition \eqref{learning_cond} has thus become a common assumption in analyzing the performance of learning-based control~\cite{8794351,lagros,ancm,tutorial}. \end{remark} \subsection{Nonlinear Robustness and Stability Analysis} The following theorem rigorously studies robustness and stability of the NCM-parameterized control law $u_L$. \begin{theorem} \label{Thm:learning1} Suppose that Assumption~\ref{assump_learning} holds. Suppose also that the contraction metric $M(x,t)$ of \eqref{eq_MdotContracting} is bounded as \begin{align} \label{Mcon} \underline{m} I \preceq M(x,t) \preceq \overline{m} I,~\forall x,t \end{align} for $\exists \underline{m},\overline{m} \in(0,\infty)$, and $u^*$ of \eqref{eq_MdotContracting} is given with $\Xi$ defined as \begin{align} \label{def:Xi} \Xi(x,t) = 2\alpha M(x,t)+\alpha_s I \end{align} where $\exists\alpha\in (0,\infty)$ is the contraction rate and $\alpha_s = L_m\bar{g}^2(\alpha_G+{1}/{2})$ with an arbitrary constant $\alpha_G \in (0,\infty)$ (see \eqref{bound1}). If the learning error $\epsilon_{\ell1}$ of \eqref{learning_cond} and another arbitrary constant $\alpha_d \in (0,\infty)$ (see \eqref{bound2}) are selected to satisfy \begin{align} \label{epsilon_ell2_condition} \exists \alpha_{\ell} \in(0,\infty)\text{ \st{} }\alpha_{\ell}=\alpha-(\alpha_d/2+L_u\epsilon_{\ell1}\sqrt{\overline{m}/\underline{m}}) > 0 \end{align} then we have the following bound for all $(x,t) \in {S}_x\times{S}_t$: \begin{align} \label{Eq:learning_bound_general} \mathop{\mathbb{E}}\left[\|x(t)-x_d(t)\|^2\right] \leq \frac{C}{2\alpha_{\ell}}\frac{\overline{m}}{\underline{m}}+\frac{\mathop{\mathbb{E}}[V_{s\ell}(0)]e^{-2\alpha_{\ell} t}}{\underline{m}} \end{align} where $V_{s\ell}(t) = \int_{x_d}^x\delta q(t)^{\top}M(q(t),t)\delta q(t)$, $C = \bar{g}^2({2}{\alpha_G}^{-1}+1)+(L_u\epsilon_{\ell0}+\bar{d})^2\alpha_d^{-1}$, $\bar{d}$, $\bar{g}$, and $q$ are given in \eqref{eq:xfx} and \eqref{virtual_system_general}, $x$ is the trajectory of \eqref{eq:xfx} controlled by $u=u_L$, and $x_d$ is the target trajectory given by \eqref{target_dynamics}. \end{theorem} \begin{proof} Since $\partial M/\partial {x_i}$ is Lipschitz as in \eqref{eq_Mlipschitz}, we have $\|\partial^2 M/(\partial {x_i}\partial {x_j})\| \leq L_m$ and $\left\|\partial M/\partial {x_i}\right\| \leq \sqrt{{2L_m}{\overline{m}}}$ using \eqref{Mcon} as derived in~\cite{nscm}. Also, $d_q$ of \eqref{virtual_system_general} is bounded as \begin{align} \label{d_bound} \|d_q(x,t)\| \leq L_u(\epsilon_{\ell0}+\epsilon_{\ell1}\int^x_{x_d}\|\delta q\|) + \bar{d} \end{align} by the Lipschitz condition \eqref{Lipschitz_u} and learning error bound \eqref{learning_cond}. Let $\mathscr{L}$ be the infinitesimal differential generator in~\cite[p. 15]{sto_stability_book}. Since we have $\int^x_{x_d}\|\delta q\|\leq V_{\ell}/\sqrt{\underline{m}}$ and $V_{\ell}^2\leq V_{s\ell}$~\cite{tutorial} for $V_{\ell}=\int_{x_d}^x\|\Theta \delta q\|$ and $M=\Theta^{\top}\Theta$, computing $\mathscr{L}V_{s\ell}$ using these bounds as in \cite{cvstem} yields \begin{align} &\mathscr{L}V_{s\ell} \leq \int_{x_d}^x\delta q^{\top}(\dot{M}+2\sym(M{h}_x))\delta q+2L_u\epsilon_{\ell1}\sqrt{\overline{m}/\underline{m}}V_{s\ell} \nonumber \\ \label{Vsl_LV} &+2\sqrt{\overline{m}}d_{\epsilon}V_{\ell}+\bar{g}^2(\overline{m}+\int_{x_d}^xL_m\|\delta q\|^2/2+2\sqrt{{2L_m}{\overline{m}}}\|\delta q\|) \end{align} where ${h}_x=\partial {h}/\partial x$ and $d_{\epsilon} = L_u\epsilon_{\ell0} + \bar{d}$. Using the relation $2ab \leq c^{-1}a^2+c b^2$ which holds for any $a,b\in\mathbb{R}$ and $c \in (0,\infty)$, we have that \begin{align} \label{bound1} 2\sqrt{\overline{m}}d_{\epsilon}\|\Theta \delta q\| \leq& \alpha_d\|\Theta \delta q\|^2+\overline{m}d_{\epsilon}^2\alpha_d^{-1} \\ \label{bound2} 2\sqrt{{2L_m}{\overline{m}}}\|\delta q\| \leq& L_m\alpha_G\|\delta q\|^2+2{\overline{m}}\alpha_G^{-1} \end{align} for any $\alpha_d,\alpha_G\in(0,\infty)$. Substituting \eqref{bound1} and \eqref{bound2} into \eqref{Vsl_LV} along with the contraction condition \eqref{eq_MdotContracting} for $u^*$ yields \begin{align} \mathscr{L}V_{s\ell} \leq& \int_{x_d}^x\delta q^{\top}(-\Xi+(\alpha_d+2L_u\epsilon_{\ell1}\sqrt{\chi})M+\alpha_sI)\delta q+{\overline{m}}{C} \end{align} where $\chi=\overline{m}/\underline{m}$, $\alpha_s = L_m\bar{g}^2(\alpha_G+{1}/{2})$, and $C = \bar{g}^2({2}{\alpha_G}^{-1}+1)+\bar{d}_{\epsilon}^2\alpha_d^{-1}$. Thus, by definition of $\Xi$ in \eqref{def:Xi}, we have $\mathscr{L}V_{s\ell} \leq -2\alpha_{\ell} V_{s\ell}+{\overline{m}}{C}$ due to the condition \eqref{epsilon_ell2_condition}. This results in the desired relation \eqref{Eq:learning_bound_general} due to Theorem 1 of~\cite{cvstem}. \end{proof} Theorem~\ref{Thm:learning1} states that, as long as we have a contracting controller $u^*$ which satisfies \eqref{eq_MdotContracting} of Definition~\ref{def:contracting}, the NCM controller $u_L$ of \eqref{learning_cond} ensures that the mean-squared distance from any target trajectory $x_d$ controlled by $u_d=u^*(x_d,x_d,u_d,t)$ to the one controlled by $u_L$ with deterministic and stochastic perturbation is exponentially bounded in time, even under the presence of the learning error $\epsilon_{\ell0}$ and $\epsilon_{\ell1}$. Such an explicit exponential bound is difficult to obtain for systems without a contraction property. In particular, when there is no stochastic disturbance in the system \eqref{eq:xfx}, \ie{}, $G=0$, we have the following result. \begin{theorem} \label{Cor:learning_simple} Suppose \eqref{learning_cond} and \eqref{Lipschitz_u} of Assumption~\ref{assump_learning} hold for $u^*$ that satisfies \eqref{eq_MdotContracting} with $\Xi = 2\alpha M(x,t)$, where $\exists \alpha \in (0,\infty)$ is the contraction rate. Now let $x_d$ be the target trajectory of \eqref{target_dynamics}, and $x$ be the trajectory controlled by $u_L$ with $G=0$. If $M$ is bounded as in \eqref{Mcon}, and if the learning error $\epsilon_{\ell1}$ of \eqref{learning_cond} is sufficiently small to satisfy \begin{align} \label{epsilon_ell2_condition_det} \exists \alpha_{\ell} \in(0,\infty)\text{ \st{} }\alpha_{\ell}=\alpha-L_u\epsilon_{\ell1}\sqrt{\overline{m}/\underline{m}} > 0 \end{align} then we have the following bound: \begin{align} \label{bound_no_dist} \|x(t)-x_d(t)\| \leq \frac{\|V_{\ell}(0)\|}{\sqrt{\underline{m}}}e^{-\alpha_{\ell} t}+\frac{L_u\epsilon_{\ell0}+\bar{d}}{\alpha_{\ell}}\sqrt{\frac{\overline{m}}{\underline{m}}}(1-e^{-\alpha_{\ell} t})~~~~ \end{align} where $V_{\ell}(t) = \int_{x_d}^{x}\|\Theta(q(t),t)\delta q(t)\|$ and $q$ is given by \eqref{virtual_system_general} with the same $d_q$ and $G_q=0$ (note that this virtual system indeed has $q=x$ and $q=x_d$ as its particular solutions). \end{theorem} \begin{proof} Let $V = \delta q^{\top}M\delta q$. Using \eqref{Vsl_LV} computed in the proof of Theorem~\ref{Thm:learning1}, along with the bound on $d_q$ \eqref{d_bound} and the contraction condition \eqref{eq_MdotContracting} for $\Xi = 2\alpha M$, we have that \begin{align} \label{Vdot_general} \dot{V} \leq -2\alpha V+2\sqrt{\overline{m}}(L_u(\epsilon_{\ell0}+\epsilon_{\ell1}V_{\ell}/\sqrt{\underline{m}})+\bar{d})\|\Theta \delta q\| \end{align} where the relation $\int^x_{x_d}\|\delta q\|\leq V_{\ell}/\sqrt{\underline{m}}$ is used. Since we have $\dot{V} = \|\Theta \delta q\|(d\|\Theta \delta q\|/dt)$ and $V=\|\Theta \delta q\|^2$, \eqref{Vdot_general} implies that $\dot{V}_{\ell} \leq -(\alpha-L_u\epsilon_{\ell1}\sqrt{\overline{m}/\underline{m}})V_{\ell}+\sqrt{\overline{m}}(L_u\epsilon_{\ell0}+\bar{d})$, which results in \eqref{bound_no_dist} by applying the comparison lemma~\cite[pp.102-103, pp.350-353]{Khalil:1173048} as long as the condition \eqref{epsilon_ell2_condition_det} holds. \end{proof} \section{A Convex Optimization Approach for NCM Robust Control~\cite{ncm,nscm,ancm,cvstem,tutorial}} \label{Sec:ncm} Although Theorems~\ref{Thm:learning1} and~\ref{Cor:learning_simple} are already useful for systems with a known contraction metric and corresponding differential Lyapunov function, finding them for general nonlinear systems is not always straightforward. This section delineates one approach, called ConVex optimization-based Steady-state Tracking Error Minimization (CV-STEM), to optimally design $u^*$ and $M$ of Theorem~\ref{Thm:learning1} for control-affine nonlinear systems, thereby demonstrating how to construct the NCM of Definition~\ref{Def:NCM} in practice for probably stable learning-based robust control. Let us consider the following control-affine nonlinear system: \begin{align} \label{affine_dynamics} d{x}=&({f}({x},t)+B(x,t)u)dt+d(x,t)dt+G(x,t)d\mathscr{W}(t) \end{align} where $t$, $x$, $u$, $d$, $G$, and $\mathscr{W}$ are as defined in \eqref{eq:xfx}, and ${f}: \mathbb{R}^n\times\mathbb{R}_{+}\rightarrow\mathbb{R}^n$ and $B:\mathbb{R}^n\times\mathbb{R}_{+} \to \mathbb{R}^{n\times m}$ are known smooth functions. \begin{remark} If ${h}(x,u,t)-({f}({x},t)+B(x,t)u)$ is bounded in \eqref{eq:xfx} and \eqref{affine_dynamics}, we can still apply the technique to be discussed in this section even for control non-affine systems \eqref{eq:xfx}, by treating this modeling error as external disturbance $d$ in \eqref{affine_dynamics}. For situations where such an assumption is not valid, we could apply (learning-based) adaptive control~\cite{9109296,lopez2021universal,ancm,8794351} to estimate the non-affine part of the dynamics. \end{remark} \subsection{Contraction Theory-based Robust Control (CV-STEM)} \label{sec_cvstem_robust} We design a contracting control law $u=u^*$ for \eqref{affine_dynamics} by the following differential feedback control law~\cite{ccm} (see Remark~\ref{control_form_remark} for more options): \begin{align} \label{differential_u} &u^*(x,x_d,u_d,t) = u_d-\int_{x_d}^xR(q,t)^{-1}B(q,t)^{\top}M(q,t)\delta q \end{align} where $R(x,t) \succ 0$ is a given weight matrix, $M(x,t) \succ 0$ is a contraction metric to be defined in Theorem~\ref{Thm:cvstem_ccm}, $q$ is a smooth path that connects $x$ to $x_d$ as in \eqref{virtual_system_general}, and $x_d$ is a given target trajectory of \eqref{target_dynamics} with ${h}(x,u,t)=f(x,t)+B(x,t)u$. Note that \eqref{differential_u} yields $\delta u^*=-R(x,t)^{-1}B(x,t)^{\top}M(x,t)\delta x$. \begin{remark} \label{control_form_remark} We could utilize other types of control laws in \eqref{differential_u}, \eg{}, $\delta u = k(x,\delta x, u, t)$ (see Sec.~\ref{Sec:cosynthesis})~\cite{ccm} or $u=u_d-K(x,x_d,u_d,t)(x-x_d)$~\cite{cvstem,ncm,nscm,ancm}. See~\cite{tutorial} for their trade-offs. \end{remark} The CV-STEM is for designing $u^*$ and $M$ of Theorem~\ref{Thm:learning1} explicitly by \eqref{differential_u} to minimize the steady-state bound of \eqref{Eq:learning_bound_general}. \begin{theorem} \label{Thm:cvstem_ccm} Suppose that the contraction metric $M(x,t) = W(x,t)^{-1} \succ 0$ of \eqref{differential_u} is designed by the following convex optimization (CV-STEM)~\cite{ncm,cvstem,nscm,tutorial}, which minimizes the steady-state upper bound of \eqref{Eq:learning_bound_general}: \begin{align} \label{convex_opt_ccm} &{J}_{CV}^* = \min_{\nu >0,\chi \in \mathbb{R},\bar{W}\succ 0} \frac{C}{2\alpha_{\ell}}\chi \text{~~\st{} \eqref{deterministic_contraction_tilde}, \eqref{deterministic_contraction_tilde2}, and \eqref{W_tilde}} \end{align} with the convex constraints \eqref{deterministic_contraction_tilde}, \eqref{deterministic_contraction_tilde2}, and \eqref{W_tilde} given as \begin{align} \label{deterministic_contraction_tilde} &\begin{bmatrix}H(\nu,\bar{W})+2\alpha \bar{W} && \bar{W} \\ \bar{W} && \nu\alpha_s^{-1}I \end{bmatrix} \preceq 0,~\forall x,t \\ \label{deterministic_contraction_tilde2} &-\partial_{b_i}\bar{W}+2\sym{}\left(\frac{\partial b_i}{\partial x}\bar{W}\right) = 0,~\forall i=1,\cdots,m,~\forall x,t \\ \label{W_tilde} &I \preceq \bar{W}(x,t) \preceq \chi I,~\forall x,t \end{align} where $\partial_{p} F = \sum_{k=1}^n(\partial F/\partial x_k)p_k$ for $p(x,t)\in\mathbb{R}^n$ and $F(x,t) \in \mathbb{R}^{n\times n}$, $\nu = \overline{m}$, $\chi = \overline{m}/\underline{m}$, $\bar{W} = \nu W$, $f$ and $B$ are given in \eqref{affine_dynamics}, $b_i$ is the $i$th column of $B$, and \begin{align} H(\nu,\bar{W}) = -\frac{\partial \bar{W}}{\partial t}-\partial_f \bar{W}+2\sym{}\left(\frac{\partial f}{\partial x}\bar{W}\right)-\nu BR^{-1}B^{\top}. \end{align} with the other variables defined in Theorem~\ref{Thm:learning1}. If $u^*$ is designed as \eqref{differential_u} for $M$ of \eqref{convex_opt_ccm}, the contraction condition \eqref{eq_MdotContracting} of Definition~\ref{def:contracting} and \eqref{Mcon} of Theorem~\ref{Thm:learning1} hold with $\Xi$ given by \eqref{def:Xi}, ${h}(x,u,t)=f(x,t)+B(x,t)u$, and $u=u^*$. \end{theorem} \begin{proof} Applying Schur's complement lemma~\cite[pp. 7]{lmi} to the constraint \eqref{deterministic_contraction_tilde}, we have that \begin{align} \label{schur_tilde} H(\nu,\bar{W})+2\alpha\bar{W}-\alpha_s\bar{W}^2/\nu \preceq 0. \end{align} It can be easily verified that, by multiplying the constraints \eqref{schur_tilde}, \eqref{deterministic_contraction_tilde2}, and \eqref{W_tilde} by $M=W^{-1}$ from both sides and by $\nu^{-1}$, they can be equivalently rewritten as~\cite{cvstem} \begin{align} \label{ccm1} &\frac{\partial M}{\partial t}+\partial_f M+2\sym{}(M({\partial f}/{\partial x}))-MBR^{-1}B^{\top}M \preceq -\Xi \\ \label{ccm2} &\partial_{b_i}M+2\sym{}(M({\partial b_i}/{\partial x})) = 0 \\ \label{ccm3} &\underline{m}I \preceq M \preceq \overline{m}I \end{align} respectively, for $\Xi$ of \eqref{def:Xi}, where \eqref{ccm3} indicates that \eqref{W_tilde} is indeed equivalent to \eqref{Mcon}. Combining \eqref{ccm1} and \eqref{ccm2}, we get \begin{align} \dot{M}+2\sym{}(M({\partial (f(x,t)+B(x,t)u^*)}/{\partial x})) \preceq -\Xi \end{align} which implies the contraction condition \eqref{eq_MdotContracting} holds for ${h}(x,u,t)=f(x,t)+B(x,t)u$ and $u=u^*$. Furthermore, it can be seen that the problem \eqref{convex_opt_ccm} minimizes the steady-state upper bound of \eqref{Eq:learning_bound_general} due to the relation $\lim_{t\to\infty}\mathop{\mathbb{E}}\left[\|x(t)-x_d(t)\|^2\right] = (C/(2\alpha_{\ell}))(\overline{m}/\underline{m}) = (C/(2\alpha_{\ell}))\chi$. Note that \eqref{convex_opt_ccm} is convex as the objective is affine in $\chi$, and \eqref{deterministic_contraction_tilde}, \eqref{deterministic_contraction_tilde2}, and \eqref{W_tilde} are linear matrix inequalities in terms of $\nu$, $\chi$, and $\bar{W}$~\cite[pp. 7]{lmi}. \end{proof} \subsection{NCM Construction using CV-STEM} Now that we can construct the contracting control law $u^*$ of Theorem~\ref{Thm:learning1} by using Theorem~\ref{Thm:cvstem_ccm}, we are ready to explicitly design the NCM of Definition~\ref{Def:NCM}. Since the NCM only requires one DNN evaluation at each time instant without solving any optimization problems unlike the CV-STEM of Theorem~\ref{Thm:cvstem_ccm}, it enables real-time computation of optimal feedback control using \eqref{differential_u} in most engineering and science applications. We formally derive its robustness and stability guarantees in the following theorems. \begin{theorem} \label{Thm:NCMstability1} Let $u_L$ be a learning-based controller, prameterized by the NCM of Definition~\ref{Def:NCM}, which approximates the contracting control law $u^*$ of \eqref{differential_u}. If Assumption~\ref{assump_learning} holds for such $u_L$, $u^*$, and $M$ of Theorem~\ref{Thm:cvstem_ccm} with ${h}(x,u,t) =f(x,t)+B(x,t)u$ of \eqref{affine_dynamics}, then Theorem~\ref{Thm:learning1} holds, \ie{}, the system trajectory of \eqref{affine_dynamics} controlled by $u_L$ exponentially converges to a ball around the target trajectory $x_d$ of \eqref{target_dynamics} with ${h}(x,u,t) =f(x,t)+B(x,t)u$. \end{theorem} \begin{proof} Since $u^*$ of \eqref{differential_u} with $M$ of \eqref{convex_opt_ccm} guarantees the assumptions of Theorem~\ref{Thm:learning1} due to Theorem~\ref{Thm:cvstem_ccm}, the exponential bound \eqref{Eq:learning_bound_general} holds as long as Assumption~\ref{assump_learning} is satisfied. \end{proof} Although Theorem~\ref{Thm:NCMstability1} considers the modeling error on the learned control law, $\|u_L-u^*\|$, it is also useful to study how the learning error on the contraction metric, $\|M_L-M\|$, affects the NCM stability performance. \begin{figure} \centering \includegraphics[width=85mm]{figures/NCMnew.pdf} \vspace{-0.8em} \caption{Illustration of NCM ($x$: system state; $M$: positive definite matrix that defines optimal contraction metric; $x_i$ and $M_i$: sampled $x$ and $M$; $\hat{x}$: estimated system state; $y$: measurement; and $u$: system control input). Note that the target trajectory $(x_d,u_d)$ is omitted in the figure fore simplicity. (see~\cite{ncm,tutorial} for state estimation).} \label{ncmdrawing} \vspace{-1.5em} \end{figure} \begin{theorem} \label{Thm:NCMstability2} Let $M_L$ be the NCM of Definition~\ref{Def:NCM} that models $M$ of Theorem~\ref{Thm:cvstem_ccm}. Suppose that \eqref{eq_Mlipschitz} holds for such $M$, and that the system \eqref{affine_dynamics} is controlled by \eqref{differential_u} with $M$ replaced by $M_L$. Suppose also that $\exists \bar{b},\bar{\rho}\in[0,\infty)$ \st{} $\|B(x,t)\|\leq\bar{b}$ and $\|R^{-1}(x,t)\|\leq\bar{\rho},~\forall (x,t)\in{S}_x\times{S}_t$, for $B$ in \eqref{affine_dynamics} and $R$ in \eqref{differential_u}, where ${S}_x$ and ${S}_t$ are given compact sets of \eqref{learning_cond}. If the NCM satisfies \begin{align} \label{Merror} \|M_L(x,t)-M(x,t)\| \leq \epsilon_{\ell},~\forall (x,t)\in{S}_x\times{S}_t \end{align} for $\exists \epsilon_{\ell}\in[0,\infty)$, Theorem~\ref{Thm:learning1} holds for $\epsilon_{\ell0}=0$ and $\epsilon_{\ell1}=\bar{\rho}\bar{b}^2\epsilon_{\ell}$. \end{theorem} \begin{proof} This follows from Theorem~\ref{Thm:NCMstability1}, due to the facts that the learning error of \eqref{learning_cond} is given as $\|u_L-u^*\|\leq\bar{\rho}\bar{b}\epsilon_{\ell}\int^{x}_{x_d}\|\delta q\|$ due to \eqref{differential_u}, and the Lipschitz constant of \eqref{Lipschitz_u} is as $L_u=\bar{b}$. \end{proof} Theorems~\ref{Thm:NCMstability1} and~\ref{Thm:NCMstability2} indeed guarantee robustness and incremental stability of the NCM learning-based control law $u_L$, which imitates the contraction theory-based robust control $u^*$ of Theorem~\ref{Thm:cvstem_ccm} for its real-time implementability. \if0 \subsection{Extensions of NCMs} \label{Sec:extensions} Finally, several extensions of the NCM frameworks are proposed in this section \subsubsection{Choice of Contracting Control Laws} We could also utilize more general differential feedback of the form $\delta u = k(x,\delta x, u, t)$ in Theorem~\ref{Thm:cvstem_ccm}, which leads to the conditions~\eqref{eq:c1} and \eqref{eq:c2} to be introduced in Sec.~\ref{Sec:cosynthesis}~\cite{ccm,7989693}. In contrast, the State-Dependent Coefficient (SDC) method~\cite{sddre} provides a simpler formulation which avoids the computation of geodesics distances in these differential frameworks, by rewriting a nonlinear system $\dot{x} = f(x,t)$ as $\dot{x} = A(x,t)x$ with $A$ that exactly satisfies $A(x,t)x = f(x,t)$~\cite{cvstem,ncm,nscm,ancm,tutorial}. Although less general, this still results in exponential boundedness of the tracking error as in Theorem~\ref{Thm:cvstem_ccm} and could capture nonlinearity through multiple non-unique SDC matrices $A$~\cite{observer}. Considering such a trade-off would help determine which form of the control law is the best fit when using Theorem~\ref{Thm:cvstem_ccm}. \subsubsection{CV-STEM State Estimation} Since the virtual dynamics (\ie{} dynamics of $\delta q$ for $q$ in \eqref{virtual_system_general}) can be viewed as a Linear Time-Varying (LTV) system, the duality between control and estimation could be exploited for designing a state estimator using the CV-STEM of Theorem~\ref{Thm:cvstem_ccm}. This problem is first considered in the SDC framework in~\cite{observer} and then extended to incorporate the CV-STEM and NCM-type optimality and robustness guarantees in~\cite{ncm,nscm,tutorial}. Analogously to Theorem~\ref{Thm:cvstem_ccm}, we could also consider a more general formulation based on geodesics distances~\cite{estimation_ccm}. \subsubsection{Other Types of Disturbances} For situations where the disturbance $d$ of \eqref{eq:xfx} is not necessarily bounded, we typically need to adaptively handle the unknown part of the dynamics. It is shown in \cite{ancm} that, due to Theorems~\ref{Thm:NCMstability1}~and~\ref{Thm:NCMstability2}, contraction theory-based adaptive control for asymptotic stabilization~\cite{9109296,lopez2021universal} is still applicable even in the CV-STEM and NCM-based control settings. We could also utilize spectrally-normalized DNNs~\cite{miyato2018spectral} for modeling the unknown part using trajectory data, thereby augmenting the robust control of Theorem~\ref{Thm:cvstem_ccm} with an adaptive stability guarantee~\cite{tutorial}. \subsubsection{Remarks on Design Parameters} As can be seen in \eqref{convex_opt_ccm}, the design parameters $\alpha$, $\alpha_d$, $\alpha_G$, and $L_m$ also affects the objective value of the CV-STEM approach. For $\alpha$, $\alpha_d$, and $\alpha_G$, we could perform a line search to find their optimal values as demonstrated in~\cite{ncm,nscm}. For $L_m$, guessing it by a deterministic CV-STEM would suffice, but note that we can always guarantee the Lipschitz condition \eqref{eq_Mlipschitz} by a spectral normalized DNN~\cite{nscm}. \fi \section{Learning Certified Control using Contraction Metrics~\cite{chuchu}} \label{Sec:cosynthesis} This section delineates one framework to train a DNN for jointly synthesizing a contraction metric and contraction control law with the robustness and stability guarantees of Theorems~\ref{Thm:NCMstability1} and~\ref{Thm:NCMstability2}, treating the contraction constraints \eqref{eq_MdotContracting} and \eqref{Mcon} as the loss functions. Intuitively, this can be viewed as a way to solve \eqref{convex_opt_ccm} of Theorem~\ref{Thm:cvstem_ccm} directly by a DNN, while also avoiding the integral evaluation required in \eqref{differential_u}. \begin{remark} Although here we consider the system \eqref{affine_dynamics} with $G=0$, stochastic perturbation could be incorporated in a similar way using the constraints introduced in \eqref{deterministic_contraction_tilde} and \eqref{deterministic_contraction_tilde2}. \end{remark} For deterministic systems \eqref{affine_dynamics} with $G=0$, it is shown in~\cite{ccm} that the following conditions weaker than \eqref{deterministic_contraction_tilde} and \eqref{deterministic_contraction_tilde2} are sufficient for the existence of a contracting differential feedback controller, which satisfies the contraction condition \eqref{eq_MdotContracting} of Definition~\ref{def:contracting} with $\Xi = 2\alpha M = 2\alpha W^{-1}$: \begin{align} &B_{\bot}^\T \left( -\frac{\partial W}{\partial t}-\partial_f W + 2\sym{}\left({\frac{\partial f}{\partial x} W}\right) + 2 \alpha W \right)B_{\bot} \prec 0\label{eq:c1} \\ &B_{\bot}^\T \left( \partial_{b_i} W - 2\sym{}\left({\frac{\partial b_i}{\partial x} W}\right) \right) B_{\bot} = 0,\forall j,x,t \label{eq:c2} \end{align} where $B_{\bot}(x,t)$ is an annihilator matrix of $B(x,t)$ satisfying $B_{\bot}B$= 0, and the other notations and variables are as defined in Theorem~\ref{Thm:cvstem_ccm}. Thus, in this section, we consider the constraints \eqref{eq:c1} and \eqref{eq:c2}, instead of \eqref{deterministic_contraction_tilde} and \eqref{deterministic_contraction_tilde2}, without specifying the form of the contracting control $u^*$ as in \eqref{differential_u}. \subsection{Cost Functions in Neural Network Training} The purpose of this section is to find a DNN-based controller $u_L(x,x_d,u_d,t; \theta_u)$ that models a contracting control law $u^*$ and dual contraction metric $W_L$ designed as \begin{align} \label{Def:dualWnet} W_L(x,t;\theta_w)=\Theta_L(x,t;\theta_{\vartheta})^{\top}\Theta_L(x,t;\theta_{\vartheta})+\overline{m}_L^{-1}I \end{align} that models $W=M^{-1}$ of Theorem~\ref{Thm:cvstem_ccm}, where $\theta_u$ and $\theta_w = \{\theta_{\vartheta},\overline{m}_L\}$ with $\overline{m}_L>0$ are hyper-parameters. Note that by definition of $W_L$ in \eqref{Def:dualWnet}, it is already a positive definite matrix satisfying $W_L(x,t;\theta_w) \succeq \overline{m}_L^{-1}I$ as in \eqref{Mcon} or \eqref{W_tilde}. Let $C_u(x, x_d, u_d, t; \theta_w, \theta_u)$ be the left-hand side of \eqref{eq_MdotContracting} with $W(= M^{-1}) = W_L$, $u^*=u_L$, ${h}(x,u,t)=f(x,t)+B(x,t)u$, and $\Xi=2\alpha M$, and $\rho({S})$ be the uniform distribution over the compact set of \eqref{learning_cond}. We define the contraction loss as follows: \begin{equation} {\mathcal{L}}_u(\theta_w, \theta_u) = \mathop{\mathbb{E}}_{(x,x_d,u_d,t) \sim \rho({S})}{L_{PD}(-C_u(x, x_d, u_d, t;\theta_w, \theta_u))} \label{eq:loss_controller} \end{equation} where $L_{PD}(\cdot) \geq 0$ is a function for penalizing non-positive definiteness, \ie{}, $L_{PD}(A)=0$ if and only if $A \succeq 0$. Also, since we already have $W_L \succeq \overline{m}_L^{-1}I$ by \eqref{Def:dualWnet}, the condition \eqref{Mcon} on the boundedness of $W_L$ can be considered by the following loss function with another hyper-parameter $\underline{m}_L$ in $\theta_w$: \begin{equation} {\mathcal{L}}_c(\theta_w) = \mathop{\mathbb{E}}_{(x,x_d,u_d,t) \sim \rho({S})}{L_{PD}(\underline{m}_L^{-1}I - W_L(x,t;\theta_w))}. \label{eq:loss_condition_number} \end{equation} Furthermore, we utilize the weaker contraction conditions \eqref{eq:c1} and \eqref{eq:c2} also as the following loss functions to provide more guidance for DNN optimization, as simultaneously learning $u_L$ and $W_L$ by minimizing ${\mathcal{L}}_u$ and $\mathcal{L}_c$ solely is challenging as demonstrated in~\cite{chuchu}: \begin{align}\label{eq:loss_metric} {\mathcal{L}}_{w1}(\theta_w) =& \mathop{\mathbb{E}}\limits_{(x,x_d,u_d,t) \sim \rho({S})} L_{PD}(-C_1(x,t;\theta_w)) \\ {\mathcal{L}}_{w2}(\theta_w) =& \sum_{j=1}^{m} \mathop{\mathbb{E}}\limits_{(x,x_d,u_d,t) \sim \rho({S})} \|C_2^i(x,t;\theta_w)\|_F\label{eq:B_regu} \end{align} where $C_1(x,t; \theta_w)$ and $\{C_2^j(x,t; \theta_w)\}_{j=1}^{m}$ are the left-hand side of \eqref{eq:c1} and \eqref{eq:c2} with $W=W_L$, respectively. Approximating the expectations of \eqref{eq:loss_controller}--\eqref{eq:B_regu} using sampled data, the empirical loss function for the NCM training is defined as follows: \begin{align} \label{loss_func} &{\mathcal{L}}(\theta_u,\theta_w) = \frac{1}{N} \sum_{i=1}^{N} \mathcal{L}_{m,i}(\theta_u,\theta_w)+\mathcal{L}_{w,i}(\theta_w) \\ &{\mathcal{L}}_{m,i} = L_{PD}(-C_u(\xi_i;\theta_w, \theta_u))+L_{PD}(\underline{m}_L^{-1}I - W(x_i,t_i;\theta_w)) \nonumber \\ &{\mathcal{L}}_{w,i} = L_{PD}(-C_1(x_i,t_i;\theta_w)) + \sum_{j=1}^{m} \|C_2^j(x_i,t_i;\theta_w))\|_F \end{align} where the training samples $\{\xi_i=(x_i, x_{d,i}, u_{d,i}, t_i)\}_{i=1}^{N}$ are drawn independently from $\rho({S})$, and $L_{PD}$ is computed as $L_{PD}(A) = \frac{1}{K} \sum_{i=1}^{K} \min\{0, -p_i ^\T A p_i\}$ for a given matrix $A \in \reals^{n \times n}$ and randomly sampled $K$ points in the set $\{p_i \in \reals^n~|~\|p_i\| = 1\}_{i=1}^{K}$. The robustness and stability guarantee of $u_L$ is given in the following theorem. \begin{theorem} \label{Thm:cosyn} Suppose Assumption~\ref{assump_learning} holds for the DNN-based NCM controller $u_L$ learned by minimizing the loss function \eqref{loss_func}. If \eqref{affine_dynamics} with $G=0$ is controlled by $u_L$, \eqref{bound_no_dist} of Theorem~\ref{Cor:learning_simple} holds, \ie{}, the distance between the target trajectory $x_d$ and perturbed trajectories $x$ is exponentially bounded. \end{theorem} \begin{proof} This follows from the proof of Theorem~\ref{Cor:learning_simple} as long as $u_L$ is learned to satisfy \eqref{learning_cond} with the loss function \eqref{loss_func}. \end{proof} \begin{remark} The objective function \eqref{convex_opt_ccm} of the CV-STEM method in Theorem~\ref{Thm:cvstem_ccm} can also be considered in \eqref{loss_func} as a loss function ${\mathcal{L}}_{CV}(\theta_w) = ({C}/{2\alpha_{\ell}})({\overline{m}_L}/{\underline{m}_L})$, where $\overline{m}_L$ and $\underline{m}_L$ are given in \eqref{Def:dualWnet} and \eqref{eq:loss_condition_number}. Using it in \eqref{loss_func} would augment $u_L$ of Theorem~\ref{Thm:cosyn} with some CV-STEM-type optimality property. \end{remark} \subsection{Numerical Simulation} We briefly summarize the simulation results presented in~\cite{chuchu} to see how the theoretical guarantees in Theorems~\ref{Thm:learning1}--\ref{Thm:cosyn} lead to exponential stabilization of nonlinear systems in practice (more simulation results can be found also in~\cite{ncm,nscm,ancm,lagros,tutorial}). The loss function~\eqref{loss_func} is used for DNN training, and we consider \begin{inparaenum}[(a)] \item {PVTOL}: Planar Vertical-Takeoff-Vertical-Landing (PVTOL) system for drones~\cite{7989693, 47710}; \item {Quadrotor}: Physical quadrotor system~\cite{7989693}; \item {Neural lander}: Drone flying close to the ground, where the ground effect is non-negligible~\cite{8794351} (the ground effect is learned from empirical data using a $4$-layer neural network); and \item {SEGWAY}: Real-world Segway robot~\cite{taylor2019learning}. \end{inparaenum} The performance is compared with the Sum of Squares (SoS)-based method~\cite{7989693}, Model Predictive Control (MPC)~\cite{mpcPytorch,tassa2014control}, and proximal policy optimization reinforcement learning (RL) algorithm~\cite{schulman2017proximal}. \subsubsection{DNN Training} For $\Theta_L$ of the dual metric in \eqref{Def:dualWnet}, we use a $2$-layer neural network with $128$ neurons. For $u_L$ of Theorem~\ref{Thm:cosyn}, we use $u_L(x, x_d, u_d, t; \theta_u) = w_2 \cdot \tanh(w_1 \cdot (x-x_d)) + u_d$ where $w_1 = w_1(x, x_d; \theta_{u1})$ and $w_2 = w_2(x, x_d; \theta_{u2})$ are two 2-layer neural networks with 128 neurons with the hyperparameters $\theta_u = \{\theta_{u1},\theta_{u2}\}$. We train the networks for $20$ epochs with a training set with 130K samples. See~\cite{chuchu,ncm,nscm,lagros} for more details on the NCM dataset generation. \subsubsection{Target Trajectory Generation} The target control inputs $u_d(t)$ are generated as the linear combination of the elements in a set of sinusoidal signals with some fixed frequencies and randomly sampled a weight for each frequency component. The initial states of the target trajectories $x_d(0)$ are uniformly randomly sampled from a compact set, and then $x_d$ are obtained by integrating~\eqref{target_dynamics}. The initial errors $\mathtt{e}(0)$ are uniformly randomly sampled from a compact set, and the initial states $x(0)$ are computed as $x(0) = x_d(0) + \mathtt{e}(0)$. \begin{figure} \centering \includegraphics[width=0.2\textwidth,trim=0 0 0 0,clip]{figures/PVTOL_ours-RL-MPC-SOS_error_new_log_new.png} \includegraphics[width=0.2\textwidth,trim=0 0 0 0,clip]{figures/QUAD_ours-RL-MPC-SOS_error_new_log_new.png} \includegraphics[width=0.2\textwidth,trim=0 0 0 0,clip]{figures/NL_ours-RL-MPC_error_new_log_new.png} \includegraphics[width=0.2\textwidth,trim=0 0 0 0,clip]{figures/SEGWAY_wwo_LB-RL_error_new_log_new.png} \vspace{-0.8em} \caption{\footnotesize Normalized tracking error on the benchmarks using different approaches. The $y$ axes are in log-scale. The tubes are tracking errors between mean plus and minus one standard deviation over $100$ trajectories (C3M: Proposed approach in Theorem~\ref{Thm:cosyn}).} \label{fig:results} \vspace{-1.5em} \end{figure} \subsubsection{Simulation Results and Discussions~\cite{chuchu}} Figure~\ref{fig:results} shows the normalized tracking error defined as $x_e(t) = ||x(t) - x_d(t)||/ ||x(0) - x_d(0)||$ for each model and method. For PVTOL and the quadrotor models, both SoS and our learning-based method find a contracting tracking controller that renders $x_e$ decrease rapidly, successfully achieving exponential stabilization. While the SoS of~\cite{7989693} cannot solve for the Neural lander and SEGWAY examples due to their complex and non-polynomial dynamics, and MPC produces large numerical errors for the SEGWAY example due to the sensitivity of the SEGWAY model, the proposed control of Theorem~\ref{Thm:cosyn} yields consistently higher tracking performance for both of these models. The performance of the RL method varies with tasks: it achieves comparable results for PVTOL and the neural lander models but fails to find a contracting tracking controller within a reasonable time for the quadrotor and Segway models, as their state spaces are larger than the previous two cases. Figure~\ref{fig:results} thus implies that our proposed method outperforms both the learning and non-learning-based methods, producing a contracting controller with smaller tracking errors. These errors are guaranteed to be bounded exponentially with time even with the learning error and external disturbances, as rigorously proven in Theorems~\ref{Thm:learning1}--\ref{Thm:cosyn}. Again, more simulation results can be found in~\cite{ncm,nscm,ancm,lagros,tutorial}. \section{Conclusion} \label{Sec:conclusion} In this paper, we presented a theoretical overview of the NCM for provably stable, robust, and optimal learning-based control of non-autonomous nonlinear systems. It is formally shown that, even under the presence of learning errors and deterministic/stochastic disturbances, the NCM control ensures the distance between a target trajectory and learned system trajectories to be bounded exponentially with time, enabling safe and robust use of AL and ML-based automatic control frameworks in real-world scenarios. The numerical simulation results of~\cite{chuchu} are presented to validate the effectiveness of the NCM framework.
\section{Appendix} \subsection{Method Overview} At a high level sketch, the {XR-Transformer}\xspace model consists of three components. First, text vectorizers consists of both learnable transformer based semantic vectorizer and deterministic statistical vectorizer. Second, a recursive fine-tuning curriculum with multi-resolution output signals defined by a preliminary HLT and finally, multi-layer ranking models that gives final prediction together with a refined HLT. Figure~\ref{fig:xrtransformer_arch} gives an illustration on the training and inference pipeline of {XR-Transformer}\xspace. \begin{figure}[h] \centering \includegraphics[width=1.0\textwidth]{figs/architecture.pdf} \caption{{XR-Transformer}\xspace training~(left) and inference~(right) architecture. {XR-Transformer}\xspace is trained with three steps. First, label features $\hat{{\mathbf{Z}}}$ are computed and is used to build preliminary hierarchical label tree~(HLT) via hierarchical k-means. Then the transformer vectorizer $\Phi_{dnn}(\cdot,\Theta)$ is recursively fine-tuned on multi-resolution labels $\{\hat{{\mathbf{Y}}}^{(t)}\}_{t=1}^D$. Finally, a refined HLT is generated with $\Phi_{cat}$ and the linear ranking models $\{{\mathbf{W}}^{(t)}\}_{t=1}^D$ are learned with refined multi-resolution labels $\{{\mathbf{Y}}^{(t)}\}_{t=1}^D$. Only the transformer vectorizer $\Phi_{dnn}$, refined HLT and $\{{\mathbf{W}}^{(t)}\}_{t=1}^D$ are needed during inference.} \label{fig:xrtransformer_arch} \end{figure} \subsection{Evaluation Metrics} In this section, we define the evaluation metrics used in this paper. The most widely used evaluation metric for XMC\xspace is the precision at k~(Prec@k) and recall at k~(Recall@k), which are defined as: \begin{align} \text{Prec@k}&=\frac{1}{k}\sum_{l=1}^k y_{rank(l)}\\ \text{Recall@k}&=\frac{1}{\sum_{i=1}^L y_i}\sum_{l=1}^k y_{rank(l)} \end{align} where $y\in\{0,1\}^L$ is the ground truth label and $rank(l)$ is the index of the $l$-th highest predicted label. For performance comparison on tail labels, we also report propensity scored precision~(PSP@k), which is defined as: \begin{align} \text{PSP@k}= \frac{1}{k}\sum_{l=1}^k \frac{y_{rank(l)}}{p_{rank(l)}} \end{align} where $p_{rank(l)}$ is the propensity score at position $rank(l)$~\cite{jain2016extreme}. The metric involves application specific parameters $A$ and $B$. For consistency, we use the same setting as AttentionXML\xspace~\cite{you2019attentionxml} for all datasets. \subsection{Model Hyperparameters} \label{sec:hypterparameter} For each sub-XMC problem, {XR-Transformer}\xspace fine-tunes the transformer encoder with Adam~\cite{kingma2014adam} with linear learning rate schedule and a batch size of 32 per GPU~(256 total). The dropout probability is set to be 0.1 for all models and bootstrapping~\eqref{eq:obj_bootstrapping} is used for all fine-tuning problems except for the root layer. The detailed hyperparameters are listed in Table~\ref{table:hyperparameters}. \subsubsection{Model Ensemble Setup} For AttentionXML\xspace, LightXML\xspace and {X-Transformer}\xspace, we use the same ensemble setting provided in the paper. In particular, AttentionXML\xspace uses ensemble of 3 models, LightXML\xspace uses ensemble of 3 transformer encoders and {X-Transformer}\xspace uses 9 model ensemble with BERT, RoBerta, XLNet large models with three difference indexers. For our method, we follow the setting of LightXML\xspace and use the ensemble of BERT, RoBerta and XLNet for {\sf Eurlex-4K}\xspace, {\sf Wiki10-31K}\xspace and {\sf AmazonCat-13K}\xspace, and ensemble of three BERT model for {\sf Wiki-500K}\xspace, {\sf Amazon-670K}\xspace and {\sf Amazon-3M}\xspace. \begin{table*}[h] \centering \caption{Hyperparameters for {XR-Transformer}\xspace. $HLT_{prelim}$ and $HLT_{refine}$ define the structures of the preliminary and refined hierarchical label trees. $lr_{max}$ is the maximum learning rate used in fine-tuning. $n_{step}$ is the total number of optimization steps across the multi-resolution fine-tuning. $N_x$ is the number of input tokens after text truncation. $\alpha$ is the hyper-parameter for cost sensitive learning. $\lambda$ is the weight for the regularization term.} \label{table:hyperparameters} \resizebox{1.0\textwidth}{!}{ \begin{tabular}{c|rrrrrrrr} \toprule Dataset & $HLT_{prelim}$ & $HLT_{refine}$ & $lr_{max}$ & $n_{step}$& $N_x$ & $\alpha$ & $\lambda$\\ \midrule {\sf Eurlex-4K}\xspace & 16-256-3956 & 4-32-256-3956 & $5\times 10^{-5}$ & 2400 & 128 & 1.0 & 0.5\\ {\sf Wiki10-31K}\xspace & 128-2048-30938 & 8-128-2048-30938 & $1\times 10^{-4}$ & 4000 & 256 & 0.25 & 0.25\\ {\sf AmazonCat-13K}\xspace & 128-1024-13330 & 128-1024-13330 & $1\times 10^{-4}$ & 45000 & 256 & 2.0 & 2.0\\ {\sf Wiki-500K}\xspace &64-512-4096-32768&8-256-8192-501070 & $1\times 10^{-4}$ & 60000 & 128 & 0.25 & 0.25\\ {\sf Amazon-670K}\xspace & 128-2048-32768&8-256-8192-670091 & $1\times 10^{-4}$ & 20000 & 128 & -- & 1.0\\ {\sf Amazon-3M}\xspace & 128-2048-32768&8-256-8192-2812281& $1\times 10^{-4}$ & 30000 & 128 & 0.125 & 0.125\\ \bottomrule \end{tabular} } \end{table*} \subsection{More Empirical Results} \begin{table*}[h] \centering \caption{Comparing training time (in hours) of DNN-based methods that produce the SOTA results in Table~\ref{table:main-results}. The number following the model indicates the number of ensemble models used. } \resizebox{1.0\textwidth}{!}{ \begin{tabular}{crrrr} \toprule Dataset & AttentionXML\xspace-3 & {X-Transformer}\xspace-9 & LightXML\xspace-3 & {XR-Transformer}\xspace-3\\ \hline {\sf Eurlex-4K}\xspace & 0.9 & 7.5 & 16.9 & \best{0.8}\\ {\sf Wiki10-31K}\xspace & \best{1.5} & 14.1 & 26.9 & \best{1.5}\\ {\sf AmazonCat-13K}\xspace & 24.3 & 147.6 & 310.6 & \best{13.2}\\ {\sf Wiki-500K}\xspace & \best{37.6} & 557.1 & 271.3 & 38.0\\ {\sf Amazon-670K}\xspace & 24.2 & 514.8 & 159.0 & \best{10.5}\\ {\sf Amazon-3M}\xspace & 54.8 & 542.0 & - & \best{29.3}\\ \bottomrule \end{tabular} } \label{table:time-results} \end{table*} \subsubsection{Cost-sensitive Learning} \label{apx:cost-sensitive} In table~\ref{table:cost-sensitive-all}, we show that the cost-sensitive learning via recursive label aggregation is beneficial to both the linear {XR-Linear}\xspace and the Transformer-based {XR-Transformer}\xspace model. On most datasets, cost sensitive learning yields better performance. \begin{table*}[h] \centering \caption{Ablation of cost-sensitive learning on the single {XR-Linear}\xspace and {XR-Transformer}\xspace model with or without Cost Sensitive~(CS). Precision@1,3,5 (P@k) and Recall@1,3,5 (R@k) are reported. } \resizebox{1.0\textwidth}{!}{ \begin{tabular}{ll|rrr|rrr} \toprule Dataset & Method & P@1 & P@3 & P@5 & R@1 & R@3 & R@5 \\ \hline \multirow{4}{*}{{\sf Wiki10-31K}\xspace} & {XR-Linear}\xspace-1(w/o CS) & 84.5 & 73.1 & 64.1 & 5.0 & 12.8 & 18.4 \\ & {XR-Linear}\xspace-1 & 85.7 & 75.0 & 65.2 & 5.1 & 13.1 & 18.7 \\ & {XR-Transformer}\xspace-1(w/o CS) & 86.8 & 77.6 & 68.8 & 5.2 & 13.6 & 19.8 \\ & {XR-Transformer}\xspace-1 & 88.0 & 78.7 & 69.1 & 5.3 & 13.8 & 19.9 \\ \midrule \multirow{4}{*}{{\sf Wiki-500K}\xspace} & {XR-Linear}\xspace-1(w/o CS) & 66.7 & 47.8 & 37.3 & 21.7 & 39.5 & 47.6 \\ & {XR-Linear}\xspace-1 & 67.7 & 48.4 & 37.6 & 22.2 & 40.4 & 48.6 \\ & {XR-Transformer}\xspace-1(w/o CS) & 77.6 & 57.4 & 44.9 & 25.8 & 48.1 & 57.8 \\ & {XR-Transformer}\xspace-1 & 78.1 & 57.6 & 45.0 & 26.1 & 48.5 & 58.1 \\ \midrule \multirow{4}{*}{{\sf Amazon-670K}\xspace} & {XR-Linear}\xspace-1(w/o CS) & 44.0 & 39.2 & 35.4 & 9.2 & 22.7 & 33.2 \\ & {XR-Linear}\xspace-1 & 44.4 & 39.3 & 35.6 & 9.4 & 23.0 & 33.6 \\ & {XR-Transformer}\xspace-1(w/o CS) & 49.1 & 43.8 & 40.0 & 10.3 & 25.6 & 37.7 \\ & {XR-Transformer}\xspace-1 & 49.0 & 43.7 & 39.9 & 10.4 & 25.7 & 37.7 \\ \midrule \multirow{4}{*}{{\sf Amazon-3M}\xspace} & {XR-Linear}\xspace-1(w/o CS) & 46.8 & 44.0 & 41.9 & 2.9 & 7.3 & 10.7 \\ & {XR-Linear}\xspace-1 & 50.1 & 46.6 & 44.0 & 3.4 & 8.4 & 12.2 \\ & {XR-Transformer}\xspace-1(w/o CS) & 50.2 & 47.6 & 45.4 & 3.4 & 8.4 & 12.4 \\ & {XR-Transformer}\xspace-1 & 52.6 & 49.4 & 46.9 & 3.8 & 9.3 & 13.6 \\ \bottomrule \end{tabular} } \label{table:cost-sensitive-all} \end{table*} \subsubsection{Inference Speed} \label{apx:inference} We report the inference time for AttentionXML\xspace, {X-Transformer}\xspace, LightXML\xspace and {XR-Transformer}\xspace on XMC\xspace datasets in table~\ref{table:inference-time}. The inference results (millisecond per sample) are evaluated on single GPU and single CPU for most comparing models except for AttentionXML\xspace, which is evaluated with multi-GPUs on {\sf Wiki-500K}\xspace, {\sf Amazon-670K}\xspace and {\sf Amazon-3M}\xspace. AttentionXML\xspace requires model-parallelism on those largest datasets otherwise it may be out-of-memory on a single-GPU setup. \begin{table*}[h] \centering \caption{Comparison of {XR-Transformer}\xspace with recent XMC\xspace methods on public datasets w.r.t. inference time. Times are recorded with single Nvidia V100 GPU and batch size of 1 except for the numbers with superscript $^*$, where model parallel was used and inference was done with 8 GPUs. The unit is milliseconds per sample. } \resizebox{1.0\textwidth}{!}{ \begin{tabular}{crrrr} \toprule Dataset & AttentionXML\xspace-1 & {X-Transformer}\xspace-1 & LightXML\xspace-1 & {XR-Transformer}\xspace-1\\ \hline {\sf Eurlex-4K}\xspace & 12.7 & 48.2 & 24.7 & 22.3\\ {\sf Wiki10-31K}\xspace & 20.0 & 48.1 & 27.1 & 39.1\\ {\sf AmazonCat-13K}\xspace & 14.4 & 47.6 & 24.1 & 26.1\\ {\sf Wiki-500K}\xspace & 80.1$^*$ & 48.1 & 27.3 & 33.9\\ {\sf Amazon-670K}\xspace & 76.0$^*$ & 48.0 & 23.3 & 30.9\\ {\sf Amazon-3M}\xspace & 130.5$^*$ & 50.2 & - & 35.2\\ \bottomrule \end{tabular} } \label{table:inference-time} \end{table*} \subsubsection{Propensity-score Precision} \label{apx:psp} We report the propensity scored precision~(PSP@k) metric on large scale XMC\xspace datasets for PfastreXML\xspace, Parabel\xspace, AttentionXML\xspace and {XR-Transformer}\xspace in Table~\ref{table:psp-results}. For consistency, we use the same setting as AttentionXML\xspace~\cite{you2019attentionxml} for all datasets. \begin{table*}[h] \centering \caption{Comparison of {XR-Transformer}\xspace with recent XMC\xspace methods on 3 large public datasets w.r.t. PSP@k~(propensity scored precision at $k=1,3,5$). Results with a trailing reference are taken from~\cite[Table 6]{you2019attentionxml}. We obtain the results of $\text{AttentionXML\xspace}^*$ and $\text{{XR-Transformer}\xspace}$ on the same vectorized feature matrix provided in~\cite{you2019attentionxml} and same hyper-parameter for propensity score calculation. } \resizebox{1.0\textwidth}{!}{ \begin{tabular}{cccccccccc} \toprule & \multicolumn{3}{c}{ {\sf Wiki-500K}\xspace } & \multicolumn{3}{c}{ {\sf Amazon-670K}\xspace } & \multicolumn{3}{c}{ {\sf Amazon-3M}\xspace } \\ \hline \hline Methods & PSP@1 & PSP@3 & PSP@5 & PSP@1 & PSP@3 & PSP@5 & PSP@1 & PSP@3 & PSP@5\\ \midrule PfastreXML\xspace~\citep{jain2016extreme} & 32.02 & 29.75 & 30.19 & 20.30 & 30.80 & 32.43 & \best{21.38} & 23.22 & 24.52 \\ Parabel\xspace~\citep{prabhu2018parabel} & 26.88 & 31.96 & 35.26 & 26.36 & 29.95 & 33.17 & 12.80 & 15.50 & 17.55 \\ \midrule $\text{AttentionXML\xspace}^*$ & 30.69 & 38.92 & 44.00 & 30.25 & 33.88 & 37.18 & 15.42 & 18.32 & 20.48 \\ $\text{{XR-Transformer}\xspace}^*$ & \best{35.76} & \best{42.22} & \best{46.36} & \best{36.16} & \best{38.39} & \best{40.99} & 20.52 & \best{23.64} & \best{25.79} \\ \bottomrule \end{tabular} } \label{table:psp-results} \end{table*} \subsection{Potential Negative Societal Impacts} \label{sec:societal_impact} This paper focus on the acceleration of the training algorithms on XMC\xspace. To the best of our knowledge, our work poses no negative societal impacts. \section{Conclusion and Future work} \label{sec:conclusion} In this paper, we have presented {XR-Transformer}\xspace approach, which is an XMC architecture that leverages multi-resolution objectives and cost sensitive learning to accelerate the fine-tuning of pre-trained transformer models. Experiments show that the proposed method establishes new state-of-the-art results on public XMC datasets while taking significantly less training time compared with earlier transformer based methods. Although the proposed architecture is designed for XMC, the ideas can be applied to other areas such as information retrieval or other DNN models such as CNNs/ResNets. Also, more extensive study is required to understand why the coarse-to-fine scheme would lead to not only faster training but better overall quality. A hypothesis is that the problem is being solved at multiple scales hence leading to more robust learning of deep transformer models. \section{Experimental Results}\label{sec:exp} We evaluate {XR-Transformer}\xspace on 6 public XMC benchmarking datasets: {\sf Eurlex-4K}\xspace, {\sf Wiki10-31K}\xspace, {\sf AmazonCat-13K}\xspace, {\sf Wiki-500K}\xspace, {\sf Amazon-670K}\xspace, {\sf Amazon-3M}\xspace. Data statistics are given in Table~\ref{table:data}. For fair comparison, we use the same raw text input, sparse feature representations and same train-test split as AttentionXML\xspace~\citep{you2019attentionxml} and other latest works~\cite{chang2020xmctransformer,jiang2021lightxml}. The evaluation metric is Precision@k (P@k), which is widely-used in XMC\xspace literature ~\citep{tagami2017annexml,babbar2017dismec,prabhu2018parabel,you2019attentionxml,chang2020xmctransformer,jiang2021lightxml}. The results of Propensity-score Precision@k (PSP@k) are defer to Appendix~\ref{apx:psp}, which focus more on tail labels' performance. \begin{table*}[h] \centering \caption{Data statistics. $N_{train}, N_{test}$ refer to the number of instances in the training and test sets, respectively. $L$: the number of labels. $\bar{L}$: the average number of positive labels per instance. $\bar{n}$: average number of instances per label. $d_{tfidf}$: the sparse feature dimension of $\Phi_{tfidf}(\cdot)$. These six publicly available benchmark datasets, including the sparse TF-IDF features are downloaded from \url{https://github.com/yourh/AttentionXML} which are the same as AttentionXML\xspace~\citep{you2019attentionxml} {X-Transformer}\xspace~\cite{chang2020xmctransformer} and LightXML\xspace~\cite{jiang2021lightxml} for fair comparison. } \label{table:data} \resizebox{1.0\textwidth}{!}{ \begin{tabular}{c|rrrrrr} \toprule Dataset & $N_{train}$ & $N_{test}$ & $L$ & $\bar{L}$ & $\bar{n}$ & $d_{tfidf}$ \\ \midrule {\sf Eurlex-4K}\xspace & 15,449 & 3,865 & 3,956 & 5.30 & 20.79 & 186,104\\ {\sf Wiki10-31K}\xspace & 14,146 & 6,616 & 30,938 & 18.64 & 8.52 & 101,938\\ {\sf AmazonCat-13K}\xspace & 1,186,239 & 306,782 & 13,330 & 5.04 & 448.57 & 203,882\\ {\sf Wiki-500K}\xspace & 1,779,881 & 769,421 & 501,070 & 4.75 & 16.86 &2,381,304\\ {\sf Amazon-670K}\xspace & 490,449 & 153,025 & 670,091 & 5.45 & 3.99 & 135,909\\ {\sf Amazon-3M}\xspace & 1,717,899 & 742,507 & 2,812,281 & 36.04 & 22.02 & 337,067\\ \bottomrule \end{tabular} } \end{table*} \paragraph{Baseline Methods.} We compare {XR-Transformer}\xspace with state-of-the-art (SOTA) XMC\xspace methods: AnnexML\xspace~\citep{tagami2017annexml}, DiSMEC\xspace~\citep{babbar2017dismec}, PfastreXML\xspace~\citep{jain2016extreme}, Parabel\xspace~\citep{prabhu2018parabel}, eXtremeText\xspace~\citep{wydmuch2018no}, Bonsai\xspace~\citep{khandagale2019bonsai}, XML-CNN\xspace~\citep{liu2017deep}, {XR-Linear}\xspace~\cite{yu2020pecos}, AttentionXML\xspace~\cite{you2019attentionxml}, {X-Transformer}\xspace~\cite{chang2020xmctransformer} and LightXML\xspace~\cite{jiang2021lightxml}. We obtain most baseline results from~\cite[Table 3]{you2019attentionxml} and~\cite[Table 3]{yu2020pecos} except for the latest deep learning based algorithms~\citep{you2019attentionxml,chang2020xmctransformer,jiang2021lightxml}. To have fair comparison on training time, we use the same hardware (i.e., AWS p3.16xlarge) and the same inputs (i.e., raw text, vectorized features, data split) to obtain the results of AttentionXML\xspace, {X-Transformer}\xspace and LightXML\xspace. The hyper-parameter of {XR-Transformer}\xspace and more empirical results are included in Appendix~\ref{sec:hypterparameter}. \begin{table*}[t] \centering \caption{Comparison of {XR-Transformer}\xspace with recent XMC\xspace methods on six public datasets. Results with a trailing reference are taken from~\cite[Table 3]{you2019attentionxml} and~\cite[Table 3]{yu2020pecos}. We obtain the results of $\text{AttentionXML\xspace}^*$, $\text{LightXML\xspace}^*$, $\text{{X-Transformer}\xspace}^*$ and $\text{{XR-Transformer}\xspace}^*$ on the same vectorized feature matrix provided in~\cite{you2019attentionxml}. Due to GPU memory constraint, LightXML\xspace is not able to run on {\sf Amazon-3M}\xspace. The PSP@k results are available in Appendix~\ref{apx:psp}. } \resizebox{1.0\textwidth}{!}{ \begin{tabular}{c|ccc|ccc|ccc} \toprule Methods & P@1 & P@3 & P@5 & P@1 & P@3 & P@5 & P@1 & P@3 & P@5\\ \hline \hline & \multicolumn{3}{c}{ {\sf Eurlex-4K}\xspace } & \multicolumn{3}{c}{ {\sf Wiki10-31K}\xspace } & \multicolumn{3}{c}{ {\sf AmazonCat-13K}\xspace } \\ \midrule AnnexML\xspace~\citep{tagami2017annexml} & 79.66 & 64.94 & 53.52 & 86.46 & 74.28 & 64.20 & 93.54 & 78.36 & 63.30 \\ DiSMEC\xspace~\citep{babbar2017dismec} & 83.21 & 70.39 & 58.73 & 84.13 & 74.72 & 65.94 & 93.81 & 79.08 & 64.06 \\ PfastreXML\xspace~\citep{jain2016extreme} & 73.14 & 60.16 & 50.54 & 83.57 & 68.61 & 59.10 & 91.75 & 77.97 & 63.68 \\ Parabel\xspace~\citep{prabhu2018parabel} & 82.12 & 68.91 & 57.89 & 84.19 & 72.46 & 63.37 & 93.02 & 79.14 & 64.51 \\ eXtremeText\xspace~\citep{wydmuch2018no} & 79.17 & 66.80 & 56.09 & 83.66 & 73.28 & 64.51 & 92.50 & 78.12 & 63.51 \\ Bonsai\xspace~\citep{khandagale2019bonsai} & 82.30 & 69.55 & 58.35 & 84.52 & 73.76 & 64.69 & 92.98 & 79.13 & 64.46 \\ XML-CNN\xspace~\citep{liu2017deep} & 75.32 & 60.14 & 49.21 & 81.41 & 66.23 & 56.11 & 93.26 & 77.06 & 61.40 \\ {XR-Linear}\xspace~\cite{yu2020pecos} & 84.14 & 72.05 & 60.67 & 85.75 & 75.79 & 66.69 & 94.64 & 79.98 & 64.79 \\ \midrule $\text{AttentionXML\xspace}^*$ & 86.93 & 74.12 & 62.16 & 87.34 & 78.18 & 69.07 & 95.84 & 82.39 & 67.32 \\ $\text{{X-Transformer}\xspace}^*$ & 87.61 & 75.39 & 63.05 & 88.26 & 78.51 & 69.68 & 96.48 & 83.41 & 68.19 \\ $\text{LightXML\xspace}^*$ & 87.15 & 75.95 & \best{63.45} & \best{89.67} & 79.06 & 69.87 & 96.77 & \best{83.98} & \best{68.63} \\ $\text{{XR-Transformer}\xspace}^*$ & \best{88.41} & \best{75.97} & 63.18 & 88.69 & \best{80.17} & \best{70.91} & \best{96.79} & 83.66 & 68.04 \\ \hline \hline & \multicolumn{3}{c}{ {\sf Wiki-500K}\xspace } & \multicolumn{3}{c}{ {\sf Amazon-670K}\xspace } & \multicolumn{3}{c}{ {\sf Amazon-3M}\xspace } \\ \midrule AnnexML\xspace~\citep{tagami2017annexml} & 64.22 & 43.15 & 32.79 & 42.09 & 36.61 & 32.75 & 49.30 & 45.55 & 43.11 \\ DiSMEC\xspace~\citep{babbar2017dismec} & 70.21 & 50.57 & 39.68 & 44.78 & 39.72 & 36.17 & 47.34 & 44.96 & 42.80 \\ PfastreXML\xspace~\citep{jain2016extreme} & 56.25 & 37.32 & 28.16 & 36.84 & 34.23 & 32.09 & 43.83 & 41.81 & 40.09 \\ Parabel\xspace~\citep{prabhu2018parabel} & 68.70 & 49.57 & 38.64 & 44.91 & 39.77 & 35.98 & 47.42 & 44.66 & 42.55 \\ eXtremeText\xspace~\citep{wydmuch2018no} & 65.17 & 46.32 & 36.15 & 42.54 & 37.93 & 34.63 & 42.20 & 39.28 & 37.24 \\ Bonsai\xspace~\citep{khandagale2019bonsai} & 69.26 & 49.80 & 38.83 & 45.58 & 40.39 & 36.60 & 48.45 & 45.65 & 43.49 \\ XML-CNN\xspace~\citep{liu2017deep} & - & - & - & 33.41 & 30.00 & 27.42 & - & - & - \\ {XR-Linear}\xspace~\cite{yu2020pecos} & 65.59 & 46.72 & 36.46 & 43.38 & 38.40 & 34.77 & 47.40 & 44.15 & 41.87 \\ \midrule $\text{AttentionXML\xspace}^*$ & 76.74 & 58.18 & 45.95 & 47.68 & 42.70 & 38.99 & 50.86 & 48.00 & 45.82 \\ $\text{{X-Transformer}\xspace}^*$ & 77.09 & 57.51 & 45.28 & 48.07 & 42.96 & 39.12 & 51.20 & 47.81 & 45.07 \\ $\text{LightXML\xspace}^*$ & 77.89 & 58.98 & 45.71 & 49.32 & 44.17 & 40.25 & - & - & - \\ $\text{{XR-Transformer}\xspace}^*$ & \best{79.40} & \best{59.02} & \best{46.25} & \best{50.11} & \best{44.56} & \best{40.64} & \best{54.20} & \best{50.81} & \best{48.26} \\ \bottomrule \end{tabular} } \label{table:main-results} \end{table*} \begin{table*}[t] \centering \caption{Comparing training time (in hours) of DNN-based methods that produce the SOTA results in Table~\ref{table:main-results}. The number following the model indicates the number of ensemble models used. } \resizebox{1.0\textwidth}{!}{ \begin{tabular}{crrrr} \toprule Dataset & AttentionXML\xspace-3 & {X-Transformer}\xspace-9 & LightXML\xspace-3 & {XR-Transformer}\xspace-3\\ \hline {\sf Eurlex-4K}\xspace & 0.9 & 7.5 & 16.9 & \best{0.8}\\ {\sf Wiki10-31K}\xspace & \best{1.5} & 14.1 & 26.9 & \best{1.5}\\ {\sf AmazonCat-13K}\xspace & 24.3 & 147.6 & 310.6 & \best{13.2}\\ {\sf Wiki-500K}\xspace & \best{37.6} & 557.1 & 271.3 & 38.0\\ {\sf Amazon-670K}\xspace & 24.2 & 514.8 & 159.0 & \best{10.5}\\ {\sf Amazon-3M}\xspace & 54.8 & 542.0 & - & \best{29.3}\\ \bottomrule \end{tabular} } \label{table:time-results} \end{table*} \begin{table*}[h] \centering \caption{Single model comparison of DNN based XMC\xspace models. Training time on p3.16xlarge with 8 Nvidia V100 GPUs $T^8_{train}$ are reported for AttentionXML\xspace, {X-Transformer}\xspace and {XR-Transformer}\xspace, whereas time on single Nvidia V100 GPU $T^1_{train}$ is reported for LightXML\xspace and {XR-Transformer}\xspace. } \resizebox{0.75\textwidth}{!}{ \begin{tabular}{cccrrrr} \toprule Dataset & Method & P@1 & P@3 & P@5 & $T^1_{train}$ & $T^8_{train}$\\ \hline \multirow{4}{*}{{\sf Wiki10-31K}\xspace} & AttentionXML\xspace-1 & 87.1 & 77.8 & 68.8 & - & \best{0.5}\\ & {X-Transformer}\xspace-1 & 87.5 & 77.2 & 67.1 & - & 3.5\\ & LightXML\xspace-1 & 87.8 & 77.3 & 68.0 & 6.7 & -\\ & {XR-Transformer}\xspace-1& \best{88.0} & \best{78.7} & \best{69.1} & \best{1.3} & \best{0.5} \\ \midrule \multirow{4}{*}{{\sf Wiki-500K}\xspace}& AttentionXML\xspace-1 & 75.1 & 56.5 & 44.4 & - & \best{12.5}\\ & {X-Transformer}\xspace-1 & 44.8 & 40.1 & 34.6 & - & 56.0\\ & LightXML\xspace-1 & 76.3 & 57.3 & 44.2 & 89.6 & -\\ & {XR-Transformer}\xspace-1& \best{78.1} & \best{57.6} & \best{45.0} & \best{29.2} & \best{12.5}\\ \midrule \multirow{4}{*}{{\sf Amazon-670K}\xspace}& AttentionXML\xspace-1 & 45.7 & 40.7 & 36.9 & - & 8.1\\ & {X-Transformer}\xspace-1 & 44.8 & 40.1 & 34.6 & - & 56.0\\ & LightXML\xspace-1 & 47.3 & 42.2 & 38.5 & 53.0 & -\\ & {XR-Transformer}\xspace-1& \best{49.1} & \best{43.8} & \best{40.0} & \best{8.1} & \best{3.4}\\ \bottomrule \end{tabular} } \label{table:single-results} \end{table*} \paragraph{Model Performance.} The comparisons of Precision@k (P@k) and training time are shown in Table~\ref{table:main-results} and Table~\ref{table:time-results}, respectively. The proposed {XR-Transformer}\xspace follows AttentionXML\xspace and LightXML\xspace to use \textit{an ensemble of 3} models, while {X-Transformer}\xspace uses \textit{an ensemble of 9} models~\citep{chang2020xmctransformer}. More details about the ensemble setting can be found in Appendix~\ref{sec:hypterparameter}. The proposed {XR-Transformer}\xspace framework achieves new SOTA results in \textbf{14 out of 18} evaluation columns (combination of datasets and P@k), and outperforms competitive methods on the large datasets. Next, we show the training time of {XR-Transformer}\xspace is significantly less than other DNN-based models. \paragraph{Training Cost.} Table~\ref{table:time-results} shows the training time for these DNN-based models. To have fair comparison, all the experiments are conducted with float32 precision on AWS p3.16xlarge instance with 8 Nvidia V100 GPUs except for LightXML\xspace, which was run on single V100 GPU since multi-GPU training is not implemented. {XR-Transformer}\xspace consumes significantly less training time compared with other transformer based models and the shallow BiLSTM model AttentionXML\xspace. On Amazon-3M, {XR-Transformer}\xspace has \textit{20x} speedup over {X-Transformer}\xspace while achieving even better P@k. Finally, in table~\ref{table:single-results}, we compare {XR-Transformer}\xspace with LightXML\xspace under the single model setup (no ensemble), where {XR-Transformer}\xspace still consistently outperforms LightXML\xspace in P@k and training time. \begin{table*}[h] \centering \caption{Comparing {XR-Transformer}\xspace with {Pre-Trained}\xspace and {word2vec}\xspace embeddings concatenated with TF-IDF\xspace features. } \resizebox{0.9\textwidth}{!}{ \begin{tabular}{c|ccc|ccc|ccc} \toprule Methods & P@1 & P@3 & P@5 & P@1 & P@3 & P@5 & P@1 & P@3 & P@5\\ \hline \hline & \multicolumn{3}{c}{ {\sf Eurlex-4K}\xspace } & \multicolumn{3}{c}{ {\sf Wiki10-31K}\xspace } & \multicolumn{3}{c}{ {\sf AmazonCat-13K}\xspace } \\ \midrule $\text{TF-IDF\xspace}$ & 84.14 & 72.05 & 60.97 & 85.75 & 75.79 & 66.69 & 94.64 & 79.98 & 64.79 \\ $\text{{word2vec}\xspace+TF-IDF\xspace}$ & 84.35 & 71.27 & 59.10 & 86.11 & 76.92 & 66.45 & 94.53 & 79.44 & 63.94 \\ $\text{{Pre-Trained}\xspace+TF-IDF\xspace}$ & 84.92 & 71.40 & 59.36 & 85.78 & 78.30 & 68.33 & 95.05 & 80.12 & 64.53 \\ $\text{{XR-Transformer}\xspace}$ & \best{88.41} & \best{75.97} & \best{63.18} & \best{88.69} & \best{80.17} & \best{70.91} & \best{96.79} & \best{83.66} & \best{68.04} \\ \hline \hline & \multicolumn{3}{c}{ {\sf Wiki-500K}\xspace } & \multicolumn{3}{c}{ {\sf Amazon-670K}\xspace } & \multicolumn{3}{c}{ {\sf Amazon-3M}\xspace } \\ \midrule $\text{TF-IDF\xspace}$ & 65.59 & 46.72 & 36.46 & 43.38 & 38.40 & 34.77 & 47.40 & 44.15 & 41.87 \\ $\text{{word2vec}\xspace+TF-IDF\xspace}$ & 68.21 & 48.16 & 37.54 & 44.04 & 39.07 & 35.35 & 47.51 & 44.49 & 42.19 \\ $\text{{Pre-Trained}\xspace+TF-IDF\xspace}$ & 70.18 & 49.82 & 38.75 & 44.55 & 38.91 & 34.77 & 49.66 & 46.41 & 43.96 \\ $\text{{XR-Transformer}\xspace}$ & \best{79.40} & \best{59.02} & \best{46.25} & \best{50.11} & \best{44.56} & \best{40.64} & \best{54.20} & \best{50.81} & \best{48.26} \\ \bottomrule \end{tabular} } \label{table:embedding-compare} \end{table*} \paragraph{Comparison of Different Semantic Embeddings.} To provide more empirical justifications, that the improvement in performance comes from better semantic embedding rather than the introducing of TF-IDF\xspace features, we further tested models using {Pre-Trained}\xspace Transformer and {word2vec}\xspace embeddings concatenated with the same TF-IDF\xspace features. Table~\ref{table:embedding-compare} summarizes the performance of these models on all 6 datasets. In particular, {word2vec}\xspace is using token embedding from \textit{word2vec-google-news-300} and for {Pre-Trained}\xspace we use the same setting as {XR-Transformer}\xspace (3-model ensemble). On large datasets such as {\sf Wiki-500K}\xspace/{\sf Amazon-670K}\xspace/{\sf Amazon-3M}\xspace, {Pre-Trained}\xspace+TF-IDF\xspace has marginal improvement compared to the baseline TF-IDF\xspace features. Nevertheless, our proposed {XR-Transformer}\xspace still enjoy significant gain compared to {Pre-Trained}\xspace+TF-IDF\xspace. This suggests the major improvement is from learning more powerful neural semantic embeddings, rather than the use of TF-IDF\xspace. \paragraph{Effect of Cost-Sensitive Learning.} In Table~\ref{table:cost-sensitive-ablation}, we analyze the effect of cost sensitive learning on four XMC\xspace datasets with the largest output spaces. On most datasets, cost sensitive learning via aggregated labels yields better performance than those without. We also show that cost-sensitive learning is not only beneficial to {XR-Transformer}\xspace, but also useful to its linear counterpart {XR-Linear}\xspace~\citep{yu2020pecos}. See Appendix~\ref{apx:cost-sensitive} for more results. \begin{table*}[h] \centering \caption{Ablation of cost-sensitive learning on the single {XR-Transformer}\xspace model with or without Cost Sensitive~(CS). Precision@1,3,5 P(@k) and Recall@1,3,5 (R@k) are reported. } \resizebox{0.9\textwidth}{!}{ \begin{tabular}{ll|rrr|rrr} \toprule Dataset & Method & P@1 & P@3 & P@5 & R@1 & R@3 & R@5 \\ \hline \multirow{2}{*}{{\sf Wiki10-31K}\xspace} & {XR-Transformer}\xspace-1(w/o CS) & 86.8 & 77.6 & 68.8 & 5.2 & 13.6 & 19.8 \\ & {XR-Transformer}\xspace-1 & 88.0 & 78.7 & 69.1 & 5.3 & 13.8 & 19.9 \\ \midrule \multirow{2}{*}{{\sf Wiki-500K}\xspace} & {XR-Transformer}\xspace-1(w/o CS) & 77.6 & 57.4 & 44.9 & 25.8 & 48.1 & 57.8 \\ & {XR-Transformer}\xspace-1 & 78.1 & 57.6 & 45.0 & 26.1 & 48.5 & 58.1 \\ \midrule \multirow{2}{*}{{\sf Amazon-670K}\xspace} & {XR-Transformer}\xspace-1(w/o CS) & 49.1 & 43.8 & 40.0 & 10.3 & 25.6 & 37.7 \\ & {XR-Transformer}\xspace-1 & 49.0 & 43.7 & 39.9 & 10.4 & 25.7 & 37.7 \\ \midrule \multirow{2}{*}{{\sf Amazon-3M}\xspace} & {XR-Transformer}\xspace-1(w/o CS) & 50.2 & 47.6 & 45.4 & 3.4 & 8.4 & 12.4 \\ & {XR-Transformer}\xspace-1 & 52.6 & 49.4 & 46.9 & 3.8 & 9.3 & 13.6 \\ \bottomrule \end{tabular} } \label{table:cost-sensitive-ablation} \end{table*} \begin{wrapfigure}{r}{0.55\textwidth} \centering \includegraphics[width=0.55\textwidth]{figs/cluster_size.png} \caption{Comparison of BERT model fine-tuned with different label resolution. Larger cluster size means lower label resolution. Note that $\Phi_{cat}$ is the normalized concatenation of $\Phi_{tfidf}$ and $\Phi_{dnn}$.} \label{fig:cluster_size} \end{wrapfigure} \paragraph{Effect of Label Resolution and Text Representation.} Next, we compare the effect of label resolution on the quality of the fine-tuned transformer embeddings. We fine-tune transformer models in a non-recursive manner on a two layer HLT with different leaf cluster size. Then the fine-tuned transformer embeddings are used along or in combination with TF-IDF features to produce the predictions with refined HLT. From Figure~\ref{fig:cluster_size} we can observe that a larger cluster size will result in worse semantic features. Figure~\ref{fig:cluster_size} also shows that combining semantic features $\Phi_{dnn}$ with statistical features $\Phi_{tfidf}$ could in general improve the model performance. \section{Introduction} \vspace{-.5em} Many real-world applications such as open-domain question answering~\cite{chang2020pretraining,lee2019latent}, e-commerce dynamic search advertising~\cite{prabhu2018parabel,prabhu2014fastxml}, and semantic matching~\cite{chang2021semantic}, can be formulated as an extreme multi-label text classification~(XMC\xspace) problem: given a text input, predict relevant labels from an enormous label collection of size $L$. In these applications, $L$ ranges from tens of thousands to millions, which makes it very challenging to design XMC\xspace models that are both accurate and efficient to train. Recent works such as Parabel\xspace~\citep{prabhu2018parabel}, Bonsai\xspace~\citep{khandagale2020bonsai}, {XR-Linear}\xspace~\citep{yu2020pecos} and AttentionXML\xspace~\cite{you2019attentionxml}, exploit the correlations among the labels to generate label partitions or hierarchical label trees~(HLTs) which can be used to shortlist candidate labels to be considered during training and inference. While these methods are scalable in terms of the size of the label collection, most of them rely only on statistical representations (such as bag-of-words) or pooling from pre-generated token embeddings (such as word2vec) to vectorize text inputs. In light of the recent success of deep pretrained transformers models such as BERT~\cite{devlin2018bert}, XLNet~\cite{yang2019xlnet} and RoBerta~\cite{liu2019roberta} in various NLP applications, {X-Transformer}\xspace~\cite{chang2020xmctransformer} and LightXML\xspace~\cite{jiang2021lightxml} propose to fine-tune pre-trained transformer models on XMC\xspace tasks to obtain new state-of-the-art results over the aforementioned approaches. Although transformers are able to better capture semantic meaning of textual inputs than statistical representations, text truncation is often needed in practice to reduce GPU memory footprint and maintain model efficiency. For example, {X-Transformer}\xspace truncates input texts to contain the first 128 tokens before feeding it into transformer models. Efficiency of transformer fine-tuning poses another challenge for XMC\xspace applications. Directly fine-tuning transformer models on the original XMC\xspace task with a very large label collection is infeasible as both the training time and the memory consumption are linear in $L$. In order to alleviate this, both {X-Transformer}\xspace and LightXML\xspace adopt a similar approach to group $L$ labels into $K$ clusters of roughly equal size denoted by $B$ and fine-tune transformers on the task to identify relevant label clusters (instead of labels themselves). If $B\approx\sqrt{L}$ and $K \approx \sqrt{L}$, then both the training time and the memory requirement of the fine-tuning can be reduced to $O(\sqrt{L})$ from $O(L)$. However, as pointed out in~\cite{you2019attentionxml}, the model performance would deteriorate due to the information loss from label aggregation. Thus, both {X-Transformer}\xspace and LightXML\xspace still choose a small constant $B$ ( $\le 100$) as the size of the label clusters. As a result, transformers are still fine-tuned on a task with around $L/100$ clusters, which leads to a much longer training time compared with non-transformer based models. For example, it takes {X-Transformer}\xspace 23 and 25 days respectively to train on {\sf Amazon-3M}\xspace and {\sf Wiki-500K}\xspace even with 8 Nvidia V100 GPUs. To address these issues, we propose {XR-Transformer}\xspace, an XMC\xspace architecture that leverages pre-trained transformer models and has much smaller training cost compared to other transformer-based XMC\xspace methods. Motivated by the multi-resolution learning in image generation~\cite{lai2017deep,karras2017progressive,karras2019style} and curriculum learning~\cite{bengio2009curriculum}, we formulate the XMC\xspace problem as a series of sub-problems with multi-resolution label signals and recursively fine-tune the pre-trained transformer on the coarse-to-fine objectives. In this paper, our contributions are as follows: \begin{itemize} \item We propose {XR-Transformer}\xspace, a transformer based framework for extreme multi-label text classification where the pre-trained transformer is recursively fine-tuned on a series of easy-to-hard training objectives defined by a hierarchical label tree. This allows the transformers to be quickly fine-tuned for a XMC\xspace problem with a very large number label collection progressively. \item To get better text representation and mitigate the information loss in text truncation for transformers, we take into account statistical text features in addition to the transformer text embeddings in our model. Also, a cost sensitive learning scheme by label aggregation is proposed to introduce richer information on the coarsified labels. \item We conduct experiments on 6 public XMC benchmarking datasets and our model takes significantly lower training time compared to other transformer-based XMC models to yield better state-of-the-art results. For example, we improve the state-of-the-art Prec@1 result on Amazon-3M established by {X-Transformer}\xspace from 51.20\% to 54.04\% while reducing the required training time from 23 days to 29 hours using the same hardware. \end{itemize} \section{Related Works} \vspace{-0.5em} \paragraph{Sparse Linear Models with Partitioning Techniques.} Conventional XMC\xspace methods consider fixed input representations such as sparse TF-IDF\xspace features and study different partitioning techniques or surrogate loss functions on the large output spaces to reduce complexity. For example, sparse linear one-versus-all (OVA) methods such as DiSMEC\xspace~\citep{babbar2017dismec}, PPD-Sparse\xspace~\citep{yen2016pd,yen2017ppdsparse}, ProXML\xspace~\citep{babbar2019data} explore parallelism to solve OVA losses and reduce the model size by weight truncations. The inference time complexity of OVA models is linear in the output space, which can be greatly improved by partitioning methods or approximate nearest neighbor (ANN) indexing on the label spaces. Initial works on tree-based methods~\citep{choromanska2015logarithmic, daume2017logarithmic} reduce the OVA problem to one-versus-some (OVS) with logarithmic depth trees. Down that path, recent works on sparse linear models including Parabel\xspace~\citep{prabhu2018parabel}, eXtremeText\xspace~\citep{wydmuch2018no}, Bonsai\xspace~\citep{khandagale2020bonsai}, XReg\xspace~\citep{prabhu2020extreme}, NAPKINXC\xspace~\citep{jasinska2020probabilistic,jasinska2021online} and {XR-Linear}\xspace~\citep{yu2020pecos} partition labels with $B$-array hierarchical label trees (HLT), leading to inference time complexity that is logarithmic in the output space. On the other hand, low-dimensional embedding-based models often leverage ANN methods to speed up the inference procedure. For example, AnnexML\xspace~\citep{tagami2017annexml} and SLICE\xspace~\citep{jain2019slice} consider graph-based methods such as HNSW\xspace~\citep{malkov2020hnsw} while GLaS\xspace~\citep{guo2019breaking} considers product quantization variants such as ScaNN\xspace~\citep{guo2020accelerating}. \paragraph{Shallow Embedding-based Methods.} Neural-based XMC\xspace models employ various network architectures to learn semantic embeddings of the input text. XML-CNN\xspace~\citep{liu2017deep} applies one-dimensional CNN on the input sequence and use the BCE loss without sampling, which is not scalable to XMC\xspace problems. AttentionXML\xspace~\citep{you2019attentionxml} employs BiLSTMs and label-aware attention as scoring functions. For better scalability to large output spaces, only a small number of positive and hard negative labels are used in model GPU training. Shallow embedding-based methods ~\citep{medini2019extreme,dahiya2021deepxml,mittal2021decaf,saini2021galaxc,mittal2021eclare} use word embedding lookup followed by shallow MLP layers to obtain input embeddings. For instance, MACH\xspace~\citep{medini2019extreme} learns MLP layers on several smaller XMC\xspace sub-problems induced by hashing tricks on the large label space. Similarly, DeepXML\xspace~\citep{dahiya2021deepxml} and its variant (i.e., DECAF\xspace~\citep{mittal2021decaf}, GalaXC\xspace~\citep{saini2021galaxc}, ECLARE\xspace~\citep{mittal2021eclare}) pre-train MLP encoders on XMC\xspace sub-problems induced by label clusters. They freeze the pre-trained word embedding and learn another MLP layer followed by a linear ranker with sampled hard negative labels from HNSW\xspace~\citep{malkov2020hnsw}. Importantly, shallow embedding-based methods only show competitive performance on short-text XMC\xspace problems where the number of input tokens is small ~\citep{medini2019extreme,dahiya2021deepxml}. \paragraph{Deep Transformer Models.} Recently, pre-trained Transformer models~\citep{devlin2018bert,liu2019roberta,yang2019xlnet} have been applied to XMC\xspace problems with promising results ~\citep{chang2020xmctransformer,ye2020pretrained,jiang2021lightxml}. {X-Transformer}\xspace~\citep{chang2020xmctransformer} considers a two-stage approach where the first stage transformer-based encoders are learned on XMC\xspace sub-problems induced by balanced label clusters, and the second stage sparse TF-IDF\xspace is combined with the learned neural embeddings as the input to linear OVA models. APLC-XLNet\xspace~\citep{ye2020pretrained} fine-tunes XLNet encoder on adaptive imbalanced label clusters based on label frequency similar to Adaptive Softmax~\citep{joulin2017efficient}. LightXML\xspace~\citep{jiang2021lightxml} fine-tunes Transformer encoders with the OVA loss function end-to-end via dynamic negative sampling from the matching network trained on label cluster signals. Nonetheless, Transformer-based XMC\xspace models have larger model size and require longer training time, which hinders its practical usage on different downstream XMC\xspace problems. \section{Background Material} We assume we are given a training set $\{{\mathbf{x}}_i, {\mathbf{y}}_i\}_{i=1}^N$ where ${\mathbf{x}}_i\in\mathcal{D}$ is the $i$th input document and ${\mathbf{y}}_i\in\{0,1\}^L$ is the one hot label vector with $y_{i,\ell}=1$ indicating that label $\ell$ is relevant to instance $i$. The goal of eXtreme Multi-label Text Classification \xspace (XMC\xspace) is to learn a function $f: \mathcal{D}\times [L]\mapsto \mathbb{R}$, such that $f({\mathbf{x}}, \ell)$ denotes the relevance between the input ${\mathbf{x}}$ and the label $\ell$. In practice, labels with the largest $k$ values are retrieved as the predicted relevant labels for a given input ${\mathbf{x}}$. The most straightforward model is one-versus-all~(OVA) model: \begin{align} f({\mathbf{x}}, \ell) = {\mathbf{w}}_{\ell}^\top \Phi({\mathbf{x}}); \ \ell \in[L], \label{eq:ova} \end{align} where ${\mathbf{W}}=[{\mathbf{w}}_1,\ldots,{\mathbf{w}}_L]\in\mathbb{R}^{d\times L}$ are the weight vectors and $\Phi: \mathcal{D}\mapsto \mathbb{R}^d$ is the text vectorizer that maps ${\mathbf{x}}$ to $d$-dimensional feature vector. $\Phi(\cdot)$ could be a deterministic text vectorizer, such as the bag-of-words~(BOW) model or Term Frequency-Inverse Document Frequency~(TFIDF) model, or a vectorizer with learnable parameters. With the recent development in deep learning, using pre-trained transformer as the text vectorizer has shown promising results in many XMC\xspace applications~\cite{ye2020pretrained,chang2020xmctransformer,jiang2021lightxml}. When $L$ is large, however, training and inference of OVA model without sampling would be prohibitive due to the $O(L)$ time complexity. To handle the extremely large output space, recent approaches partition the label space to shortlist the labels considered during training and inference. In particular, ~\citep{medini2019extreme,chang2020xmctransformer,yu2020pecos,ye2020pretrained,dahiya2021deepxml,jiang2021lightxml} follow a three stage framework: partitioning, shortlisting, and ranking. First, label features are constructed to group labels into $K$ clusters ${\mathbf{C}}\in\{0,1\}^{L\times K}$ where $C_{\ell,k}=1$ denotes that label $\ell$ is included in the $k$-th cluster. Then a shortlisting model is learned to match input ${\mathbf{x}}$ to relevant clusters in an OVA setting: \begin{align} g({\mathbf{x}}, k) = \hat{{\mathbf{w}}}_k^\top \Phi_g({\mathbf{x}});\>k\in[K]. \label{eq:matcher} \end{align} Finally, a classification model with output size $L$ is trained on the shortlisted labels: \begin{align} f({\mathbf{x}}, \ell) = {\mathbf{w}}_{\ell}^\top \Phi({\mathbf{x}}); \ \ell \in S_g({\mathbf{x}}), \label{eq:ranker} \end{align} where $S_g({\mathbf{x}})\subset[L]$ is the label set shortlisted by $g({\mathbf{x}},\cdot)$. In the extreme case where only one label cluster is determined to be relevant to a input ${\mathbf{x}}$, the training and inference cost on ${\mathbf{x}}$ would be $O(K+\frac{L}{K})$, which in the best case scenario is $O(\sqrt{L})$ when $K=\sqrt{L}$. For transformer based methods, the dominant time is the evaluation of $\Phi({\mathbf{x}})$. But $K$ being too big or too small could still be problematic. Empirical results show that the model performance deteriorates when clusters are too big~\cite{you2019attentionxml}. This is because that the signals coming from $B$ labels within the same cluster will be aggregated and not distinguishable, where $B$ is the cluster size. Therefore, $B$ cannot be too big to ensure a reasonable label resolution for fine-tuning. Also, as pointed out in~\cite{chang2020xmctransformer}, fine-tuning transformer models on large output spaces can be prohibitive. As a result, the label clusters need to be constructed in a way to balance the model performance and fine-tuning efficiency. In practice, both the transformer-based XMC models, such as {X-Transformer}\xspace and LightXML\xspace, adopt a small fixed constant as the cluster size $B$ ($\le 100$), which means that training the shortlisting model $g({\mathbf{x}}, k)$ is still very time consuming as the number of clusters $K\approx L/B$. \section{Proposed Method: {XR-Transformer}\xspace} As noted above, the shortlisting problem~\eqref{eq:matcher} is itself an XMC\xspace problem with slightly smaller output size $\frac{L}{B}$ where $B$ is the cluster size. In {XR-Transformer}\xspace, we apply the same three stage framework recursively on the shortlisting problem until a reasonably small output size is reached $\frac{L}{B^D}$. We can therefore follow the curriculum learning scheme and fine-tune the pre-trained transformers progressively on the sub-XMC\xspace problems with increasing output space $\{\frac{L}{B^D},\frac{L}{B^{D-1}},\ldots\}$. At each fine-tuning task, the candidate label set is shortlisted by the final model at the previous task. The recursive shortlisting ensures that for any input, the number of candidate labels to include in training and inference is $O(B)$ and therefore the total number of considered labels is $O(B\log_{B}(L))$. Also, we leverage the multi-step fine-tuning and use the embedding generated at the previous task to bootstrap the non pre-trained part for the current task. We now describe the model design in detail. \begin{figure}[t] \centering \includegraphics[width=1.0\textwidth]{figs/multi-resolution.pdf} \caption{Illustration of fine-tuning on XMC\xspace tasks of different label resolutions. For an XMC\xspace task with a low label resolution, fine-tuning can be fast but model performance might deteriorate due to large deviation from the original XMC\xspace task. In practice, {X-Transformer}\xspace and LightXML\xspace adopt a XMC\xspace task with a relatively higher label resolution to ensure reasonable model performance at the cost of longer training time. The proposed {XR-Transformer}\xspace leverages multi-resolution learning and model bootstrapping that achieves both fast fine-tuning and good model performance. } \label{fig:multi-resolution} \end{figure} \paragraph{Hierarchical Label Tree~(HLT).} Recursively generating label clusters $D$ times is equivalent to building a HLT~\cite{jain2016extreme} of depth $D$. We first construct label features ${\mathbf{Z}}\in\mathbb{R}^{L\times \hat{d}}$. This could be done by applying text vectorizers on label text or from Positive Instance Feature Aggregation~(PIFA): \begin{align} {\mathbf{Z}}_{\ell} &= \frac{{\mathbf{v}}_\ell}{\|{\mathbf{v}}_\ell\|};\text{where } {\mathbf{v}}_\ell=\sum_{i:y_{i,\ell}=1} \Phi({\mathbf{x}}_i), \forall\>\ell\in[L],\label{eq:pifa} \end{align} where $\Phi:\mathcal{D}\mapsto \mathbb{R}^{d}$ it the text vectorizer. Then we follow similar procedures as~\cite{you2019attentionxml} and~\cite{jiang2021lightxml} and use balanced k-means~($k=B$) to recursively partition label sets and generate the HLT in a top-down fashion. The HLT is represented with a series of indexing matrices $\{{\mathbf{C}}^{(t)}\}_{t=1}^D$, such that ${\mathbf{C}}^{(t)}\in\{0,1\}^{K_t\times K_{t-1}}$ where $K_0=1$ and $K_D=L$. Equivalently, once ${\mathbf{C}}^{(D)}$ is constructed, the HLT can be built from bottom up through joining $B$ adjacent clusters together. \paragraph{Multi-resolution Output Space.} Multi-resolution learning has been explored in different contexts such as computer vision~\cite{pedersoli2015coarse,lai2017deep}. For instance, using an output scheme with coarse-to-fine resolutions results in better image quality for generative adversarial networks~\cite{karras2017progressive,karras2019style}. As an another example in meta learning, ~\citep{liu2019self} learns multiclass models via auxiliary meta classes by collapsing existing classes. Nevertheless, multi-resolution learning has not been well-explored in the XMC\xspace literature. In {XR-Transformer}\xspace, we leverage the label hierarchy defined by the HLT and train the transformer model on multi-resolution objectives. The XMC\xspace task can be viewed as generating an 1-D image ${\mathbf{y}}\in\{0,1\}^{L}$ with binary values based on input text ${\mathbf{x}}$. Just like a coarsified image could be obtained by a max or mean pooling of nearby pixels, the coarse label vector can be obtained by max-pooling of labels which are nearby in the label feature space. Once the HLT is constructed using label features, the true labels at layer ${\mathbf{Y}}^{(t)}\in\{0,1\}^{N\times K_t}$ can be determined by the true labels of the child clusters at $t+1$ through a max-pooling like operation: \begin{align} {\mathbf{Y}}^{(t)}=\text{binarize}({\mathbf{Y}}^{(t+1)}{\mathbf{C}}^{(t+1)}),\label{eq:label-tree} \end{align} and $Y^{(D)}_{i,\ell}=y_{i,\ell}$ is the original label matrix. This forms a series of learning signals with coarse-to-fine resolution and can be used to generate learning tasks with easy-to-hard objectives. Direct use of the binarized ${\mathbf{Y}}^{(t)} \in \{0,1\}^{N \times K_t}$ in Eq~\eqref{eq:label-tree} results in information loss when merging several positive labels into one cluster. Ideally, a cluster containing several positive children is more relevant than a cluster with only one positive child. To add this lower level information to higher level learning objectives, we introduce the relevance matrix ${\mathbf{R}}^{(t)} \in \mathbb{R}_{+}^{N \times K_t}$ for layer $t$ of the XMC\xspace sub-problem where $R_{i,\ell}$ defines the non-negative important weight for $i$th instance to $\ell$th cluster. Different from cost-sensitive learning~\citep{elkan2001foundations} for MLC (CSMLC) setting~\citep{li2014condensed,huang2017cost,lin2019advances} where there is only one cost matrix explicitly derived by evaluation metrics such as F1 score, in {XR-Transformer}\xspace, we consider the usage of cost-sensitive learning where the relevance matrices are recursively induced by the HLT structure. Specifically, given an HLT, we recursively construct relevance matrices for $t=1,\ldots,D$: \begin{align} {\mathbf{R}}^{(t)} = {\mathbf{R}}^{(t+1)}{\mathbf{C}}^{(t+1)}, \end{align} and ${\mathbf{R}}^{(D)}={\mathbf{Y}}^{(D)}$. Motivated by~\citep{menon2019multilabel}, we adopts the row-wise $\ell_1$ normalized relevance matrix: \[ \hat{R}^{(t)}_{i,j}=\left\{ \begin{array}{ll} \frac{R^{(t)}_{i,j}}{\|{\mathbf{R}}^{(t)}_{i}\|_1} &\text{ if }Y^{(t)}_{i,j}=1,\\ \alpha &\text{otherwise,} \end{array} \right. \] where $\alpha$ is the hyper parameter to balance positive and negative weights. \paragraph{Label Shortlisting.} During training, {XR-Transformer}\xspace only focuses on discriminating the labels or clusters that have high chance of being positive. A necessary condition for a label at layer $t$ to be positive is that its parent label at level $t-1$ is positive. Therefore, an intuitive approach would be to only train on the output space shortlisted by positive clusters of the parent layer. However, in practice we found this approach sometimes leads to sub-optimal result during inference with beam search. As an effort to balance explore and exploit, we further include the top-$k$ relevant clusters determined by the model learned on the parent layer to mimic the beam search during inference. Thus at layer $t$, the labels considered during training are shortlisted by the parent layer $t-1$: \begin{align} {\mathbf{P}}^{(t-1)} &= \text{Top}({\mathbf{W}}^{(t-1)\top}\Phi({\mathbf{X}},\Theta^{(t-1)}), k),\label{eq:topk_pred}\\ {\mathbf{M}}^{(t)} &= \text{binarize}({\mathbf{P}}^{(t-1)}{\mathbf{C}}^{(t)\top}) + \text{binarize}({\mathbf{Y}}^{(t-1)}{\mathbf{C}}^{(t)\top}),\label{eq:shortlist} \end{align} where the $\text{Top}(\cdot, k)$ operator zeros out elements in a matrix except the top-$k$ largest values in each row. For each instance ${\mathbf{x}}_i$, only non-zero indices of ${\mathbf{M}}_i$ will be included into the training objective. We can therefore define a series of learning objectives for level $t\in\{1,2,\ldots,D\}$ as: \begin{align} \min_{{\mathbf{W}}^{(t)}, \Theta} \sum_{i=1}^N \sum_{\ell:{\mathbf{M}}^{(t)}_{i,\ell}\neq 0} \hat{R}^{(t)}_{i,\ell}\mathcal{L}(Y^{(t)}_{i,\ell}, {\mathbf{W}}^{(t)\top}_\ell \Phi({\mathbf{x}}_i, \Theta)) + \lambda \|{\mathbf{W}}^{(t)}\|^2,\label{eq:obj} \end{align} where $\mathcal{L}$ is a point-wise loss such as hinge loss, squared hinge loss or BCE loss, ${\mathbf{W}}^{(t)}$, $\Theta$ are the model weights to be learned. \paragraph{Text Representation.} Most previous works on XMC construct text feature representation in one of two ways: statistical feature representations and semantic feature representations. Although the latter, in particular transformer models, have shown promising results on various NLP benchmarks, the self-attention mechanism makes transformers unscalable w.r.t. sequence length. To ensure efficiency, input texts are usually truncated~\cite{chang2020xmctransformer,jiang2021lightxml} which result in loss of information. On the other hand, the statistical features, such as TFIDF, are fast to construct with the whole input taken into consideration. In {XR-Transformer}\xspace, we use a combination of these two feature representations and each component is a complement of lost information for the other one: \begin{align} \Phi_{cat}({\mathbf{x}},\Theta) := \Big[ \frac{\Phi_{tfidf}({\mathbf{x}})}{\|\Phi_{tfidf}({\mathbf{x}})\|}, \frac{\Phi_{dnn}({\mathbf{x}}, \Theta)}{\|\Phi_{dnn}({\mathbf{x}}, \Theta)\|} \Big], \label{eq:vectorizer} \end{align} where $\Phi_{dnn}(\cdot,\Theta)$ is the transformer parametrized by $\Theta$. Once the text representation is constructed, predictions can be made by simply applying a linear projection on top of the text representation through~\eqref{eq:ova}. \begin{algorithm}[t]\label{alg:iterative_learn} \SetKwInOut{Input}{Input} \SetKwInOut{Return}{Return} \textbf{Input}{${\mathbf{X}}$, ${\mathbf{Y}}$, ${\mathbf{C}}$, ${\boldsymbol{\theta}}$, ${\mathbf{P}}$} $m,n\leftarrow {\mathbf{C}}.shape$ \eIf{$n=1$}{ ${\mathbf{M}}\leftarrow ones(N, m)$ \eIf{${\boldsymbol{\theta}}$ is not fixed}{ ${\boldsymbol{\theta}}^*\leftarrow$ Optimize~\eqref{eq:obj} with $\Phi=\Phi_{dnn}$, initialize $\Theta={\boldsymbol{\theta}}$ }{ ${\boldsymbol{\theta}}^*\leftarrow \theta$ } ${\mathbf{W}}^* \leftarrow \operatornamewithlimits{argmin}_{{\mathbf{W}}} \sum_{i=1}^N \sum_{\ell=1}^m \hat{R}^{(t)}_{i,\ell}\mathcal{L}(Y_{i,\ell}, {\mathbf{W}}^\top_\ell \Phi_{cat}({\mathbf{x}}_i, \Theta)) + \lambda \|{\mathbf{W}}\|^2 $ }{ ${\mathbf{Y}}_{prev}\leftarrow \text{binarize}({\mathbf{Y}}{\mathbf{C}})$ ${\mathbf{M}}\leftarrow \text{binarize}({\mathbf{P}}{\mathbf{C}}^\top) + \text{binarize}({\mathbf{Y}}_{prev}{\mathbf{C}}^\top)$ \eIf{${\boldsymbol{\theta}}$ is not fixed}{ ${\boldsymbol{\theta}}^*\leftarrow$ Optimize~\eqref{eq:obj} with $\Phi=\Phi_{dnn}$ initialize $\Theta={\boldsymbol{\theta}}$ }{ ${\boldsymbol{\theta}}^*\leftarrow {\boldsymbol{\theta}}$ } ${\mathbf{W}}^* \leftarrow \operatornamewithlimits{argmin}_{{\mathbf{W}}} \sum_{i=1}^N \sum_{\ell:{\mathbf{M}}_{i,\ell}\neq 0} \hat{R}^{(t)}_{i,\ell}\mathcal{L}(Y_{i,\ell}, {\mathbf{W}}^\top_\ell \Phi_{cat}({\mathbf{x}}_i, \theta^*)) + \lambda \|{\mathbf{W}}\|^2 $ } \textbf{Return}{${\mathbf{W}}^*$, ${\boldsymbol{\theta}}^*$} \caption{$\text{Iterative\_Learn}({\mathbf{X}}, {\mathbf{Y}}, {\mathbf{C}}, {\boldsymbol{\theta}}, {\mathbf{P}})$} \end{algorithm} \begin{algorithm}[t]\label{alg:xrtransformer_train_iter} \SetKwInOut{Input}{Input} \SetKwInOut{Return}{Return} \textbf{Input}{${\mathbf{X}}$, ${\mathbf{Y}}$, pre-trained transformer $\Phi_{dnn}(\cdot,{\boldsymbol{\theta}}_0)$} $\hat{{\mathbf{Z}}}_\ell = {\mathbf{v}}_\ell / \|{\mathbf{v}}_\ell\|; \text{where } {\mathbf{v}}_{\ell}=\sum_{i:y_{i,\ell}=1} \Phi_{tfidf}({\mathbf{x}}_i), \forall\>\ell\in[L]$ $\{\hat{{\mathbf{C}}}^{(t)}\}_{t=1}^{\hat{D}} \leftarrow \text{k-means-clustering}(\hat{{\mathbf{Z}}})$ Generate label hierarchy $\{\hat{{\mathbf{Y}}}^{(t)}\}_{t=1}^{\hat{D}}$ using~\ref{eq:label-tree} ${\boldsymbol{\theta}}^*={\boldsymbol{\theta}}_0$, ${\mathbf{P}}=None$ \For{$t$ in $1,2,3,\cdots,\hat{D}$}{ $\hat{{\mathbf{W}}}, {\boldsymbol{\theta}}^* \leftarrow \text{Iterative\_Learn}({\mathbf{X}}, \hat{{\mathbf{Y}}}^{(t)}, \hat{{\mathbf{C}}}^{(t)}, {\boldsymbol{\theta}}^*, {\mathbf{P}})$ ${\mathbf{P}} \leftarrow \text{Top}(\hat{{\mathbf{W}}}^{\top}\Phi_{cat}({\mathbf{X}},{\boldsymbol{\theta}}^*), k)$ } ${\mathbf{Z}}_\ell = {\mathbf{v}}_\ell / \|{\mathbf{v}}_\ell\|; \text{where } {\mathbf{v}}_\ell=\sum_{i:y_{i,\ell}=1} \Phi_{cat}({\mathbf{x}}_i), \forall\>\ell\in[L]$ $\{{\mathbf{C}}^{(t)}\}_{t=1}^D \leftarrow \text{k-means-clustering}({\mathbf{Z}})$ Generate label hierarchy $\{{\mathbf{Y}}^{(t)}\}_{t=1}^{\hat{D}}$ using~\ref{eq:label-tree} Fix ${\boldsymbol{\theta}}^*$, ${\mathbf{P}}=None$ \For{$t$ in $1,2,3,\cdots,D$}{ ${\mathbf{W}}^{(t)}, \_ \leftarrow \text{Iterative\_Learn}({\mathbf{X}}, {\mathbf{Y}}^{(t)}, {\mathbf{C}}^{(t)}, {\boldsymbol{\theta}}^*, {\mathbf{P}})$ ${\mathbf{P}} \leftarrow \text{Top}({\mathbf{W}}^{(t)\top}\Phi_{cat}({\mathbf{X}},{\boldsymbol{\theta}}^*), k)$ } \textbf{Return}{$\Phi_{cat}(\cdot, {\boldsymbol{\theta}}^*)$, $\{{\mathbf{C}}^{(t)}\}_{t=1}^D$, $\{{\mathbf{W}}^{(t)}\}_{t=1}^D$} \caption{{XR-Transformer}\xspace training} \end{algorithm} \paragraph{Training with bootstrapping.} The training of {XR-Transformer}\xspace consists of three steps. At first, a preliminary HLT is constructed using raw statistical features. Then a pre-trained transformer model is fine-tuned recursively from low resolution output to high resolution. At each layer $t$, fine-tuning objective~\eqref{eq:obj} is optimized with initialization $\Theta={\boldsymbol{\theta}}^{(t-1)*}$ the best transformer weights of layer $t-1$. ${\boldsymbol{\theta}}^{(0)*}$ denotes the pre-trained transformer weights. Unlike the transformer warmed-up with pre-trained weights, the projection weights ${\mathbf{W}}^{(t)}$ is trained from scratch without good initialization. At the beginning of fine-tuning, gradient flow through these cold-start~(usually randomly initialized) weights will usually worsen the pre-trained components. We leverage the recursive learning structure to tackle this issue by model bootstrapping. Concretely, ${\mathbf{W}}^{(t)}$ is initialized as: \begin{align} {\mathbf{W}}^{(t)}_{init}:=\operatornamewithlimits{argmin}_{{\mathbf{W}}^{(t)}} \sum_{i=1}^N \sum_{\ell:{\mathbf{M}}^{(t)}_{i,\ell}\neq 0} \hat{R}^{(t)}_{i,\ell}\mathcal{L}(Y^{(t)}_{i,\ell}, {\mathbf{W}}^{(t)\top}_\ell \Phi_{dnn}({\mathbf{x}}_i, {\boldsymbol{\theta}}^{(t-1)*}))+ \lambda \|{\mathbf{W}}^{(t)}\|^2,\label{eq:obj_bootstrapping} \end{align} In practice, \eqref{eq:obj_bootstrapping} is fast to compute since the semantic text feature for the previous layer $\Phi_{cat}({\mathbf{X}}, {\boldsymbol{\theta}}^{(t-1)*})$ is already computed and thus~\eqref{eq:obj_bootstrapping} can be solved very quickly on CPUs with a variety of parallel linear solvers, such as LIBLINEAR\xspace~\cite{fan2008liblinear}. Once the fine-tuning is complete, the refined HLT is constructed with the text representation that combines statistical text feature and fine-tuned semantic text embeddings. Then the ranking models are trained on top of the combined text features for the final prediction. The detailed training procedure is described in Algorithm~\ref{alg:iterative_learn} and \ref{alg:xrtransformer_train_iter}. \paragraph{Inference.} The inference cost of {XR-Transformer}\xspace consists mainly of two parts: cost to compute transformer embedding and to retrieve relevant labels through beam search. Therefore, the inference time complexity is $O(T_{dnn} + kd\log(L))$, where $k$ is the beam size, $d$ is the concatenated feature dimension and $T_{dnn}$ is the time to compute $\Phi_{dnn}({\mathbf{x}})$ for a given input. Note that even the inference is done with beam search through the refined HLT, the transformer text embedding only need to be computed once per instance. \paragraph{Connections with other tree based methods.} Although methods such as AttentionXML\xspace~\cite{you2019attentionxml} also train on supervisions induced by label trees, the final model is a chain of sub-models which each on is learned on single-resolution. In particular, given a hierarchical label tree with depth $D$, AttentionXML\xspace will train $D$ different text encoders on each layer of the tree where as {XR-Transformer}\xspace trains the same transformer encoder progressively on all layers of the tree. This difference leads to a longer inference time for AttentionXML\xspace than {XR-Transformer}\xspace since multiple text encoders need to be queried during inference, as shown in the comparison in the inference time in Appendix~\ref{apx:inference}.
\section{Upper Bounds} \label{sec:algorithms} We first discuss the problem of computing generalized arbdefective colorings as defined in \Cref{def:generalarbdefect}. We start with a simple lemma, which states that if we are given a proper vertex $C$ coloring of a graph, as long as a given arbdefective coloring instance is $1$-relaxed, we can compute a valid solution by iterating over the $C$ color classes. \begin{lemma}\label{lemma:simpletightarbcoloring} Let $G=(V,E)$ be a properly $m$-colored graph. Any $1$-relaxed generalized arbdefective coloring problem on $G$ can be solved in $O(m)$ rounds deterministically. \end{lemma} \begin{proof} Let $C$ be the number of colors of the given generalized arbdefective coloring instance and let $\vec{d}=(d_1,\dots,d_C)$ be the arbdefect vector. The coloring of the nodes $V$ and the orientation of the edges $E$ is computed greedily in $m$ phases by iterating over the $m$ colors of the given proper $m$-coloring of $G$. Assume that the proper initial coloring assigns color $\gamma(v)\in [m]$ to some node $v\in V$. The edge orientation is defined as follows. For every edge $\set{u,v}\in E$, the edge is oriented from $u$ to $v$ if $\gamma(u)>\gamma(v)$ and it is oriented from $v$ to $u$ otherwise. In phase $p\in\set{1,\dots,m}$, the nodes $v$ of initial color $\gamma(v)=p$ are colored. Note that the given edge orientation implies that when coloring a node $v$, all its outneighbors have already been colored in earlier phases and because the initial $m$-coloring is proper, we also never color two adjacent nodes in the same phase. Each node $v\in V$ that picks a color can now just pick a color $x\in [C]$ for which the number of outneighbors of color $x$ is at most $d_x$. Note that such a color must exist because $v$ has at most $\Delta$ outneighbors and because the arbdefect vector $\vec{d}$ is $1$-relaxed and therefore $\sum_{i=1}^C(d_i+1)>\Delta$. \end{proof} \Cref{thm:ubarbdef} now follows directly from the above lemma. \begin{theorem}\label{thm:ubarbdef} Let $G=(V,E)$ be an $n$-node graph. Any $1$-relaxed generalized arbdefective coloring problem on $G$ can be solved in $O(\Delta+\log^* n)$ rounds deterministically. \end{theorem} \begin{proof} We can first compute a proper $(\Delta+1)$-coloring of $G$ in time $O(\Delta+\log^* n)$ (e.g., by using the algorithm of \cite{barenboim14distributed}) and then apply \Cref{lemma:simpletightarbcoloring}. \end{proof} The following lemma provides a simple generalization the $O(\Delta/d + \log^* n)$-round $d$-arbdefective $O(\Delta/d)$-coloring algorithm of \cite{BEG18}. \begin{lemma}\label{lemma:relaxedarbcoloring} For every $\alpha\geq 0$ and every $\eta\geq 1$, an $\alpha$-arbdefective $O(\eta\Delta/\alpha)$-coloring of an $n$-node graph $G$ with maximum degree $\Delta$ can be computed deterministically in $O\big(\frac{\Delta}{\eta\alpha}+\log^* n\big)$ rounds. \end{lemma} \begin{proof} We first compute $\Delta/\eta$-defective $O(\eta^2)$-coloring of $G$ in time $O(\log^* n)$ by using the distributed defective coloring algorithm of \cite{Kuhn2009}. Each of the $O(\eta^2)$ color classes now has a maximum degree of $\leq \Delta/\eta$ and we can therefore compute an $\alpha$-arbdefective $O(\Delta/(\eta\alpha))$-coloring in time $O(\Delta/(\eta\alpha)+\log^* n)$. In combination with the $O(\eta^2)$ colors of the initial $\Delta/\eta$-defective coloring, we obtain the desired $\alpha$-arbdefective coloring of $G$ with $O(\eta\Delta/\alpha)$ colors. \end{proof} \subsection{Algorithms for Arbdefective Colored Ruling Sets} We first show that if we are already given an appropriate arbdefective coloring, an $\alpha$-arbdefective $c$-colored $\beta$-ruling set can be computed in time matching the lower bound given in \Cref{thm:lbarbcolrs}. \ubcoldom* \begin{proof} We partition the $C$ colors of the given $\alpha$-arbdefective $C$-coloring into $K:=\lceil C/c\rceil$ groups of size at most $c$. Within each of the $K$ groups, we rename the at most $c$ colors from $1$ to $c$. For every $i\in [K]$ let $V_i$ be the set of nodes in color group $i$. Note that the given coloring proviced an $\alpha$-arbdefective $c$-coloring for each of the induced subgraphs graphs $G[V_i]$. Let $E'\subseteq E$ be the set of edges between two nodes of the same color group $i\in [K]$ and consider the subgraph $H=(V,E\setminus E')$ of $G$. Note that each set $V_i$, $i\in [K]$ is an independent set of $H$ and therefore the partitioning into $K$ color groups provides a proper $K$-coloring of $H$. We now compute a $(2,\beta)$-ruling set $S\subseteq V$ of $H$. By using the algorithm of \cite{balliurules} (Lemma 15 in the full version of \cite{balliurules}), a $(2,\beta)$-ruling set $S$ of a $K$-colored graph can be computed in the minimum time $t$ such that ${t+\beta \choose \beta}\geq K$. The set $S$ is an independent set of $H$ and therefore the only edges of the subgraph $G[S]$ of $G$ induced by the nodes in $S$ are edges between two nodes $u,v\in V_i$ for some $i$ (i.e., between nodes of the same color group). We therefore know that the initial $\alpha$-arbdefective coloring provides an $\alpha$-arbdefective $c$-coloring of $G[S]$ and $S$ therefore is an $\alpha$-arbdefective $c$-colored $\beta$-ruling set of $G$. \end{proof} By using the fact that ${a\choose b}\geq (a/b)^b$, we directly obtain the following corollary. \begin{corollary}\label{cor:basicarbruling} Let $G=(V,E)$ be a graph and let $\alpha\geq 0$, $c\geq 1$, $\beta\geq 1$, and $C\geq c$. If one is given an $\alpha$-arbdefective $C$-coloring of $G$, then an $\alpha$-arbdefective $c$-colored $\beta$-ruling set of $G$ can deterministically be computed $O\big(\beta\cdot(C/c)^{1/\beta}\big)$ rounds in the \ensuremath{\mathsf{LOCAL}}\xspace model. \end{corollary} In order to compute the initial arbdefective coloring that is required to apply \Cref{cor:basicarbruling}, we can use \Cref{lemma:relaxedarbcoloring}. This gives the following complexity for computing an $\alpha$-arbdefective $c$-colored $\beta$-ruling set. \begin{corollary}\label{cor:basicarbruling2} Let $G=(V,E)$ be a graph and let $\alpha\geq 0$, $c\geq 1$, $\beta\geq 1$, and $C\geq c$. If one is given an $\alpha$-arbdefective $C$-coloring of $G$, then an $\alpha$-arbdefective $c$-colored $\beta$-ruling set of $G$ can deterministically be computed $O\big(\beta\big(\frac{\Delta}{(\alpha+1)\sqrt{c}}\big)^{2/(\beta+1)}\big)$ rounds in the \ensuremath{\mathsf{LOCAL}}\xspace model. \end{corollary} \begin{proof} We first compute an $\alpha$-arbdefective $C:=O(\eta\Delta/\alpha)$-coloring. By \Cref{lemma:relaxedarbcoloring}, this can be done in $O(\Delta/(\eta\alpha)+\log^* n)$ rounds. We choose $\eta$ such that $\Delta/(\eta\alpha)=(C/c)^{1/\beta}=(\eta\Delta/(\alpha c))^{1/\beta}$. We obtain $\eta=(\Delta/\alpha)^{\frac{\beta-1}{\beta+1}}\cdot c^{\frac{1}{\beta+1}}$, which together with \Cref{cor:basicarbruling} gives the required round complexity. \end{proof} \subsection{Our Results} \begin{table*}[p] \centering \makebox[\textwidth]{% \begin{tabular}{lll@{ }llr} \toprule Problem & Condition & Complexity & & Graph & Ref. \\ \midrule MIS & & $O\big(\frac{\log n}{\log\log n}\big)$ & det. & trees & \cite{BarenboimE10} \\[8pt] & & $\Omega\big(\frac{\log n}{\log\log n}\big)$ & det. & trees & \emph{\textbf{new}} \\ [8pt] & & $O(\sqrt{\log n})$ & rand.\ & trees & \cite{ghaffari16improved} \\[8pt] & & $\Omega\big(\frac{\log\log n}{\log\log\log n}\big)$ & rand.\ & trees & \emph{\textbf{new}} \\ \midrule MIS & & $O(\Delta + \log^* n)$ & det. & general & \cite{barenboim14distributed} \\[8pt] & & $\Omega(\min\{\Delta,\log_\Delta n\})$ & det. & trees & \emph{\textbf{new}} \\ [8pt] & & $O\big(\log\Delta + \frac{\log\log n}{\log \log\log n} \big)$ & rand.\ & trees & \cite{Barenboim2016,ghaffari16improved} \\[8pt] & & $\Omega(\min\{\Delta, \log_\Delta\log n\})$ & rand.\ & trees & \emph{\textbf{new}} \\ \midrule $(2,\beta)$-ruling set & $\beta\le (\log n)^{\frac{1}{2}-\varepsilon}$ & $O\big(\frac{\log n}{\beta \log\log n}\big)$ & det. & trees & \cite{BarenboimE10} \\ [8pt] & $\beta \le \varepsilon_0\sqrt{\frac{\log n}{\log \log n}}$ & $\Omega\big(\frac{\log n}{\beta \log\log n}\big)$ & det. & trees & \emph{\textbf{new}} \\ [8pt] & & $O\big(\beta\log^{\frac{1}{\beta+1}} n\big)$ & rand.\ & trees & \cite{Barenboim2016,ghaffari16improved} \\ [8pt] & $\beta \le \varepsilon_0\sqrt{\frac{\log\log n}{\log \log\log n}}$ & $\Omega\big(\frac{\log\log n}{\beta \log\log\log n}\big)$ & rand.\ & trees & \emph{\textbf{new}} \\ \midrule $(2,\beta)$-ruling set & & $O(\beta\Delta^{2/(\beta + 2)} + \log^*n)$ & det. & general & \cite{Maus21} \\ [8pt] & $O(\Delta)$-col given & $O(\beta\Delta^{1/\beta})$ & det. & general & \cite{SEW13} \\ [8pt] & $\beta\leq \varepsilon_0\log\Delta$ & $\Omega(\min\{\beta\Delta^{1/\beta},\log_\Delta n\})$ & det. & trees & \emph{\textbf{new}} \\ [8pt] & & $O(\beta\log\Delta^{1/\beta} +(\log\log n)^c)$ & rand.\ & general & \cite{ghaffari16improved,Rozhon2020} \\ [8pt] & $\beta\le \varepsilon_0\log\Delta$ & $\Omega(\min\{\beta\Delta^{1/\beta},\log_\Delta\log n\})$ & rand.\ & trees & \emph{\textbf{new}} \\ \midrule $\alpha$-arb $c$-coloring & $(\alpha + 1)c \le \Delta$ & $\Omega(\log_\Delta n)$ & det. & trees & \emph{\textbf{new}} \\[8pt] & $(\alpha + 1)c \le \Delta$ & $\Omega(\log_\Delta\log n)$ & rand.\ & trees & \emph{\textbf{new}} \\[8pt] & $(\alpha + 1)c > \Delta$ & $O(\Delta + \log^* n)$ & det. & general & \emph{\textbf{new}} \\ \midrule $\alpha$-arb $c$-col $\beta$-rul & $\beta\le \varepsilon_0\log\frac{\Delta}{(\alpha+1) c}$ & $\Omega\Big(\!\min\!\big\{\beta\big(\frac{\Delta}{(\alpha+1) c}\big)^{1/\beta},\log_\Delta n\big\}\!\Big)$ & det. & trees & \emph{\textbf{new}}\\ [8pt] & $\alpha$-arb $O\big(\frac{\Delta}{\alpha+1}\big)$-col given & $O\Big(\beta\big(\frac{\Delta}{(\alpha+1)c}\big)^{1/\beta}\Big)$ & det. & general & \emph{\textbf{new}}\\ [8pt] & & $O\Big(\beta\big(\frac{\Delta}{(\alpha+1)\sqrt{c}}\big)^{\frac{2}{\beta+1}}+\log^* n\Big)$ & det. & general & \emph{\textbf{new}}\\ \bottomrule \end{tabular} } \caption{Some of our results and how they compare with the state of the art. If a condition contains $\varepsilon$, then $\varepsilon$ can be chosen as an arbitrarily small positive constant. Whenever a condition contains $\varepsilon_0$, then $\varepsilon_0$ has to be chosen as a sufficiently small positive constant.}\label{tab:results} \end{table*} Our main lower bound result applies to an entire family of problems for which we gave a highlevel before \Cref{sec:problems} and that is defined formally in \Cref{sec:family}. We now present the most important results that we obtain as corollaries for the most natural variants of our general problem family (see \Cref{tab:results} for a partial summary of our results and a comparison with the state of the art). We first consider arbdefective colorings. We prove that we can exactly characterize which variants of arbdefective coloring can be solved in $O(f(\Delta) + O(\log^* n))$ for some function $f$, and which of them require $\Omega(\log_\Delta n)$ for deterministic algorithms and $\Omega(\log_\Delta \log n)$ for randomized ones. In particular, we show the following (follows from \Cref{thm:ubarbdef,}) \begin{theorem} The $\vec{d}$-arbdefective $c$-coloring problem can be solved in $O(\Delta + \log^* n)$ in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model if $\vec{d}$ is $1$-relaxed, while otherwise it requires $\Omega(\log_\Delta n)$ rounds for deterministic algorithms and $\Omega(\log_\Delta \log n)$ rounds for randomized algorithms. \end{theorem} By allowing the same arbdefect on each color, we obtain the following corollary. \begin{corollary} The $d$-arbdefective $c$-coloring problem can be solved in $O(\Delta + \log^* n)$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model if $(d+1)c > \Delta$, while if $(d+1)c \le \Delta$ then it requires $\Omega(\log_\Delta n)$ rounds for deterministic algorithms and $\Omega(\log_\Delta \log n)$ rounds for randomized algorithms. \end{corollary} We then focus on ruling sets and some of their variants. Consider a variant of ruling sets where nodes are required to prove that there is a node in the set at distance at most $\beta$. For this variant, it was shown in \cite{balliurules} that, given a proper $c$-coloring, one can solve the problem in $t$ rounds where $t$ is the minimum value such that ${t + \beta \choose \beta} \ge c$. We prove that this upper bound is tight, assuming that a proper $(\Delta + 1)$-coloring is given as input to the nodes. In particular, we show that this problem requires at least $t+1$ rounds, where $t$ is the maximum value such that ${t + \beta \choose \beta} < \Delta$. For the standard variants of ruling sets, which do not require to prove that there is a node in the set at distance at most $\beta$, we lose an additive $\beta$ term in the lower bound, but we still obtain tight results for $\beta \leq \varepsilon_0\log \Delta$ for some constant $\varepsilon_0>0$. In particular, these results exponentially improve the lower bounds in \cite{balliurules}, and are asymptotically tight in the case in which an $O(\Delta)$-coloring is provided to the nodes. Notice that a stronger lower bound for the case where we are not given an $O(\Delta)$-coloring, would directly imply an $\omega(\log^* n)$ lower bound for $O(\Delta)$-vertex coloring (and thus also for $(\Delta+1)$-vertex coloring), which is a long standing open question. Our lower bound does not only hold for ruling sets, but for the more general $\alpha$-arbdefective $c$-colored $\beta$-ruling sets that we defined in \Cref{sec:problems}. For such sets, we obtain the following: \begin{restatable}{theorem}{lbcoldom}\label{thm:lbarbcolrs} Let $t$ be the maximum value such that ${t + \beta \choose \beta} < \frac{\Delta}{c(\alpha+1)}$. The $\alpha$-arbdefective $c$-colored $\beta$-ruling set problem requires $\Omega(\min\{t, \log_\Delta n\} - \beta)$ in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\min\{t, \log_\Delta \log n\} - \beta)$ in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. \end{restatable} \noindent As proven in \Cref{cor:arbdefrsdelta} (see also \Cref{tab:results}), \Cref{thm:lbarbcolrs} implies that for sufficiently small $\beta$, computing an $\alpha$-arbdefective $c$-coloring $\beta$-ruling set requires $\Omega\big(\min\big\{\beta (\frac{\Delta}{c(1+\alpha)})^{1/\beta}, \log_\Delta n\big\}\big)$ rounds deterministically and $\Omega\big(\min\big\{\beta (\frac{\Delta}{c(1+\alpha)})^{1/\beta}, \log_\Delta \log n\big\}\big)$ rounds with randomization. For details and additional implications of the above theorem, we refer to \Cref{sec:corollaries}. The theorem in particular also implies that computing an MIS requires $\Omega\big(\frac{\log n}{\log\log n}\big)$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model, even in trees. Notice that this result is tight, as in \cite{BarenboimE10} it has been shown that MIS on trees can be solved in $O\big(\frac{\log n}{\log\log n}\big)$ deterministic rounds. The following theorem shows that our general lower bound for arbdefective colored ruling sets is tight if we are initially given an appropriate coloring as input. \begin{restatable}{theorem}{ubcoldom}\label{thm:ubarbcolrs} Let $G=(V,E)$ be a graph and let $\alpha\geq 0$, $c\geq 1$, $\beta\geq 1$, and $C\geq c$. If one is given an $\alpha$-arbdefective $C$-coloring of $G$, then an $\alpha$-arbdefective $c$-colored $\beta$-ruling set of $G$ can deterministically be computed in the minimum time $t$ such that ${t + \beta \choose \beta}\geq \lceil\frac{C}{c}\rceil$ in the \ensuremath{\mathsf{LOCAL}}\xspace model. \end{restatable} \noindent \Cref{thm:ubarbcolrs} implies that if an $\alpha$-arbdefective $C$-coloring of $G$ is given as input, then an $\alpha$-arbdefective $c$-colored $\beta$-ruling set of $G$ can be computed deterministically in $O\big(\beta\big(\frac{C}{c}\big)^{1/\beta}\big)$ rounds (cf.\ \Cref{cor:basicarbruling}. By combining with the arbdefective coloring algorithm given by \Cref{lemma:relaxedarbcoloring}, this implies that an $\alpha$-arbdefective $c$-colored $\beta$-ruling set can be computed in $O\big(\beta\big(\frac{C}{(\alpha+1)\sqrt{c}}\big)^{2/(\beta+1)}\big)$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model (cf.\ \Cref{cor:basicarbruling2}). We refer the reader to \Cref{sec:corollaries,sec:algorithms} for a full list of results that we obtain. \subsection{Our Approach} In order to prove our lower bounds, we use the round elimination technique, which works as follows. We try to define a sequence of problems $\Pi_0 \rightarrow \Pi_2 \rightarrow \ldots \rightarrow \Pi_T$, such that $\Pi_0$ is some problem for which we want to prove a lower bound, and each problem $\Pi_{i+1}$ is at least one round easier than $\Pi$. If we manage to find such a sequence in which problem $\Pi_T$ is still not solvable without communication, then we obtain a lower bound of $T+1$ rounds for $\Pi_0$. In 2019, Brandt showed an automatic way to obtain $\Pi_{i+1}$ as a function of $\Pi_i$~\cite{Brandt2019}. Unfortunately, the drawback of this automatic technique is that it often gives a problem with a description that is exponentially larger than the one of the previous problem. For this reason, it is practically infeasible to apply this technique many times. The usual way to overcome this issue is to perform some \emph{simplifications}, that is, we try to simplify the problem to make its description size smaller. By doing this, we may either make the problem potentially harder or potentially easier. Since our goal is to show lower bounds, we must avoid simplifications that harden the problem. On the other hand, we do not want to make the problem too easy, since this would prevent us from obtaining a long sequence of problems, and thus a strong lower bound. In other words, we want to make each problem \emph{much smaller}, without making it \emph{much easier}. In \cite{balliurules}, Balliu, Brandt, and Olivetti proved lower bounds for ruling sets, as a function of $\Delta$, by using the round elimination technique. They noticed that, by applying this technique on $(2,\beta)$-ruling sets for $k$ times, the obtained problem is composed of two parts: \begin{itemize} \item A \emph{natural} part, that can be described by using $f(\beta,k)$ colors (for some function $f$) and $\beta$ pointers; they use this part to show a new algorithm for $(2,\beta)$-ruling sets that is genuinely different from the ones already present in the literature, but it matches their asymptotic complexity; \item An \emph{unnatural} part of unknown nature, that they got rid of by performing some simplifications. \end{itemize} Getting rid of the unnatural part is what made the lower bound in \cite{balliurules} exponentially worse than the best upper bound and as we show in this paper as the right bound. In this work, we manage to exactly characterize the structure of this unnatural part obtained by applying the round elimination technique on ruling sets. Perhaps surprisingly, it is the same structure that one also obtains when applying the round elimination technique for the $\Delta$-coloring problem. This means that, in order to find the right simplifications that can be used to prove a strong lower bound for ruling sets, we need to first better understand how $\Delta$-coloring problem behaves in the round elimination framework. For this purpose, we start by proving an alternative $\Omega(\log_\Delta n)$ lower bound for $\Delta$-coloring by using the round elimination technique. A standard way to prove $\Omega(\log_\Delta n)$ lower bounds through this technique is to find a relaxation that gives a \emph{non-trivial fixed point}. A non-trivial fixed point is a problem $\Pi$ that is not $0$ rounds solvable, and for which, by applying the automatic round elimination technique, we get the problem $\Pi$ itself. We give a natural relaxation of $\Delta$-coloring that is a non-trivial fixed point (also cf.\ the explanations in \Cref{sec:intro}). Incidentally, we obtain that this fixed point is also a relaxation of many variants of arbdefective coloring, and we also show that all variants that are not captured by this fixed point can be solved much faster, e.g., in $O(\log^* n)$ rounds in bounded-degree graphs. We then use the same relaxations that give a fixed point for $\Delta$-coloring to prove lower bounds for ruling sets and for a class of more general problems, which in particular also contains arbdefective colored ruling sets. The detailed technical description of the problem family to which we apply the round elimination technique appears in \Cref{sec:family}. We show that the problems that we obtain from our problem family after doing a round elimination step can be relaxed in the same way as we do it in the $\Delta$-coloring fixed point. Like this, we do not obtain any unnatural parts, but we only obtain problems that have an actual intuitive description, and this allows us to prove a tight lower bound for ruling sets, and for the more general $\alpha$-arbdefective $c$-colored $\beta$-ruling sets. Note that we use the hardness of a hard problem ($\Delta$-coloring requires $\Omega(\log n)$ rounds even in bounded-degree graphs) to prove lower bounds, as a function of $\Delta$, for much easier problems that are solvable in time $O(f(\Delta) + \log^* n)$, for some function $f$, by showing that some parts of problems given by round elimination do not contribute to making a problem easier. \subsection{Additional Related Work} In the following, we list additional relevant previous work. In light of the vast amount of related work on the techniques and problems that we study in this paper, we restrict the discussion to the results that are most relevant in the context of the present paper. \paragraph{Round Elimination.} Round elimination has proven to be an extremely useful tool for showing lower bounds in the distributed setting, \cite{Brandt2016,chang16exponential,chang18complexity,Brandt2019,BalliuHOS19,Olivetti2019,Balliu2019,trulytight,balliurules,BBKOmis,binary,FraigniaudPaz20}. Although we started to widely understand the technique only recently, already Linial's classic $\Omega(\log^* n)$ lower bound for $3$-coloring a cycle \cite{Linial1992} can be seen as a round elimination proof. Yet, the clean concept of round elimination, as we use it nowadays, has been introduced in 2016 by \citet{Brandt2016}, who prove a randomized lower bound of $\Omega(\log_\Delta \log n)$ rounds for computing a sinkless orientation or a $\Delta$-coloring. Shortly after, \citet{chang16exponential} lifted the lower bound to an $\Omega(\log_\Delta n)$ round lower bound for deterministic algorithms. Later, the lower bound was also extended to the $(2\Delta-2)$-edge coloring problem in \cite{chang18complexity}. In \cite{Brandt2019}, Brandt further refined the technique by giving an \emph{automatic} way to perform round elimination. That is, given a problem $\Pi$, he showed how to mechanically construct a problem $\Pi'$ that is exactly one round easier than $\Pi$. The new automatic round elimination technique, together with a tool by \citet{Olivetti2019} that implements it, gave rise to a better understanding of several important problems in distributed computing. As a highlight, \citet{Balliu2019} used the technique to prove asymptotically tight-in-$\Delta$ lower bounds for computing a maximal matching (MM) and as an immediate corollary also for computing an MIS. \citet{trulytight} further improved these results by showing that MM on bipartite $2$-colored graphs requires exactly $2\Delta-1$ rounds. While the lower bounds for MM hold on trees, the MIS lower bounds only hold on more general graphs. Moreover, the above lower bounds cannot be directly extended to ruling sets, since it is known that ruling sets on the line graph are much easier than MIS~\cite{KuhnMW18}. Balliu, Brandt, and Olivetti~\cite{balliurules} made progress on this question and they used the automatic round elimination technique to show the first $\omega(\log^* n)$ lower bound for ruling sets and the first such lower bound for MIS on trees. Unfortunately, their lower bounds are exponentially worse than the best known upper bounds: they for example show that, on trees, MIS requires $\Omega(\log \Delta / \log \log \Delta)$ rounds. Subsequently, \citet{BBKOmis} showed that by making use of an input edge coloring, one can apply the round elimination technique to improve and simplify the lower bound for MIS on trees, obtaining a lower bound of $\Omega(\log\Delta)$ rounds. Unfortunately, this simpler proof does not extend to ruling sets, but the authors show that it can be used to prove lower bounds for a class of problems called bounded outdegree dominating sets (that are the same as arbdefective $1$-colored $1$-ruling sets). \paragraph{Maximal Independent Set.} The problem of computing an MIS is one of the most fundamental symmetry breaking problems and it has been extensively studied in the \ensuremath{\mathsf{LOCAL}}\xspace model (for example, see \cite{Awerbuch89, KarpW85, Luby1986, Alon1986, Linial1992, Naor1991, panconesi96decomposition, Kuhn2004, BarenboimE10, SchneiderW10, LenzenW11, Barenboim2016, Barenboim2013, barenboim14distributed, ghaffari16improved, Rozhon2020,GGR2020, DISC17_MIS,Ghaffari19congest,ghaffariPortman19}). Already in the 80s, the works of \citet{Luby1986} and \citet{Alon1986} showed that with randomization, an MIS can be computed in $O(\log n)$ rounds. The first non-trivial deterministic upper bounds for MIS were also designed in the late '80s, by \citet{Awerbuch89}, who introduced a $2^{O(\sqrt{\log n\log\log n})}$-rounds \ensuremath{\mathsf{LOCAL}}\xspace algorithm for a more general tool, called network decomposition. Later, \citet{panconesi96decomposition} improved this runtime to $2^{O(\sqrt{\log n})}$ and very recently, the deterministic complexity of computing a network decomposition (and an MIS) has been improved to polylogarithmic in $n$ by \citet{Rozhon2020}. An improved variant of this algorithm by \citet{GGR2020} leads to the best current distributed deterministic MIS algorithm with a round complexity of $O(\log^5\log n)$. In addition to analyzing the complexity of computing an MIS solely as a function of $n$, there is also a large body of work that studies times expressed as $f(\Delta) + g(n)$. In 2008, \citet{barenboim14distributed} showed that MIS can be computed deterministically in $O(\Delta+\log^* n)$ deterministic rounds in the \ensuremath{\mathsf{LOCAL}}\xspace model. Further, there are randomized algorithms by \citet{barenboim14distributed} with a round complexity of $O(\log^2\Delta) + 2^{O(\sqrt{\log\log n})}$ and by \citet{ghaffari16improved} with a round complexity of $O(\log\Delta)+2^{O(\sqrt{\log\log n})}$. As a result of the network decomposition algorithm of \cite{Rozhon2020,GGR2020}, the complexity of this algorithm has been improved to $O(\log\Delta + \log^5\log n)$. On the lower bound side, we have known since the late 80s and early 90s that MIS requires $\Omega(\log^*n)$ rounds, even for randomized algorithms, and this is due to the works of \citet{Linial1992} and \citet{Naor1991}. The first $\omega(\log^* n)$ lower bound for MIS was shown in 2004 by \citet{Kuhn2004}, who proved a lower bound of $\Omega\Bigl(\min\Bigl\{\frac{\log\Delta}{\log\log\Delta},\sqrt{\frac{\log n}{\log\log n}}\Bigr\}\Bigr)$ rounds, even for randomized algorithms. Recently, this lower bound has been improved and complemented by the round elimination-based maximal matching lower bound of \cite{Balliu2019}, which implies that computing an MIS requires $\Omega\Bigl(\min\Bigl\{\Delta, \frac{\log n}{\log \log n}\Bigr\}\Bigr)$ rounds for deterministic algorithms and $\Omega\Bigl(\min\Bigl\{\Delta, \frac{\log \log n}{\log \log \log n}\Bigr\}\Bigr)$ rounds for randomized algorithms. As discussed, these results do not hold in trees and the first lower bounds for MIS in trees were recently proven in \cite{balliurules,BBKOmis}. In this paper, we prove that the same MIS lower bounds that were proven in \cite{Balliu2019} for general graphs also hold for computing MIS in trees. The MIS problem has also been studied in specific class of graphs and in particular for trees (e.g., \cite{BarenboimE10, LenzenW11, Barenboim2016, ghaffari16improved}). For example, on trees, \citet{BarenboimE10} showed that MIS can be solved in $O(\log n / \log\log n)$ deterministic rounds, and \citet{ghaffari16improved} showed that it can be solved in $O(\sqrt{\log n})$ randomized rounds. As a function of $\Delta$ and $n$, MIS on trees can be solved in $O(\log\Delta + \log\log n/\log\log\log n)$ randomized rounds~\cite{Barenboim2016,ghaffari16improved}. \paragraph{Ruling Sets.} Ruling sets were introduced in the late 80s by \citet{Awerbuch89}, who used them as a subroutine in their network decomposition algorithm. Since then, there have been several works that studied the complexity of ruling sets (see, e.g., \cite{Awerbuch89, SchneiderW10symmetry, Gfeller07, SEW13, BishtKP13, Barenboim2016, ghaffari16improved, KuhnMW18, KP12,PPPR017,HKN16}), and that used ruling sets as a subroutine for solving problems of interest (see, e.g., \cite{Barenboim2016, ghaffari16improved, GhaffariHKM18, ChangLP18}). \citet{Awerbuch89} in particular showed that a $(2,O(\log n))$-ruling set can be computed in time $O(\log n)$. However a straightforward adaptation of the algorithm of \cite{Awerbuch89} shows that for general $\beta\geq 1$, a $(2,\beta)$-ruling set can be computed deterministically in time $O(\beta \Delta^{2/\beta} + \log^* n)$ (or in time $O(\beta C^{1/\beta})$ if an initial $C$-coloring is given). This generalization was later formalized by \citet{SEW13}. On the randomized side, we know that $(2,\log \log n)$-ruling sets can be computed in $O(\log \log n)$ randomized rounds, and this follows by combining the works of \citet{Gfeller07} and \citet{SEW13}. Further improvements were obtained by \citet{KP12}, \citet{BishtKP13}, \citet{Barenboim2016}, and \citet{ghaffari16improved}. In combination with the network decomposition result of \cite{Rozhon2020,GGR2020}, the algorithm of \citet{ghaffari16improved} implies that a $(2,\beta)$-ruling set can be computed in $O(\beta\log^{1/\beta} \Delta) + \poly(\log\log n)$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. On trees, a $(2,\beta)$-ruling set can be computed deterministically in time $O\big(\frac{\log n}{\beta \log\log n}\big)$ by combining a coloring algorithm of \citet{BarenboimE10} with the $O(\beta C^{1/\beta})$-round algorithm for a given $C$-coloring. With randomization, in trees, it is possible to compute a $(2,\beta)$-ruling set in time $O\big(\beta\log^{\frac{1}{\beta+1}}n\big)$ by combining techniques of \cite{Barenboim2016} with techniques of \cite{ghaffari16improved}. On the lower bound side, it was known since the late 80s and early 90s that computing a $(2, \beta)$-ruling set requires $\Omega(\log^* n)$ rounds up to some $\beta \in \Theta(\log^* n)$, even for randomized algorithms, and this directly follows from the MIS lower bounds of \citet{Linial1992} and \citet{Naor1991} for paths and rings and it therefore also holds on trees. The only previous $\omega(\log^* n)$ lower bounds for ruling sets were obtained by \citet{balliurules}. They showed that for sufficiently small $\beta$, any deterministic algorithm that computes a $(2,\beta)$-ruling set requires $\Omega\left(\min \left\{ \frac{\log \Delta}{\beta \log \log \Delta} , \log_\Delta n \right\} \right)$ rounds, while any randomized algorithm requires $\Omega\left(\min \left\{ \frac{\log \Delta}{\beta \log \log \Delta} , \log_\Delta \log n \right\} \right)$ rounds. \paragraph{Arbdefective Colorings.} The arbdefective coloring problem was introduced by \citet{BarenboimE11}, and it has been proven to be a very useful tool that is used in several state-of-the-art distributed algorithm for computing a proper coloring of a graph~\cite{BarenboimE11,barenboim16sublinear,fraigniaud16local,MausTonoyan20,GhaffariKuhn20,Kuhn20}. The aforementioned paper shows that in graphs of arboricity $a$, an $b$-arbdefective $O(a/b)$-coloring can be deterministically computed in $O()$ rounds. The paper uses this to recursively decompose a graph into sparser subgraphs, which can then be colored more efficiently. Subsequently, \citet{barenboim16sublinear} gave an algorithm that computes a $O(\alpha)$-arbdefective $O(\Delta\log\Delta/\alpha)$-coloring in $O(\Delta\log^2\Delta/\alpha + \log^* n)$ rounds. \citet{barenboim16sublinear} and \citet{fraigniaud16local} use this algorithm to obtain deterministic $(\Delta+1)$-list-coloring algorithms with a round complexity that is sublinear in $\Delta$. \citet{BEG18} improve the arbdefective coloring of \cite{barenboim16sublinear} and they achieve an $\alpha$-arbdefective coloring with $O(\Delta/\alpha)$-coloring in time $O(\Delta/\alpha + \log^* n)$ (the same result was later also proven in different ways in \cite{GhaffariKuhn20} and \cite{Maus21}). Arbdefective colorings and generalizations of the classic arbdefective coloring problem are also crucial in the recent deterministic coloring algorithms of \citet{Kuhn20} and \citet{GhaffariKuhn20}. \section{Road Map} \paragraph{Preliminaries.} We start, in \Cref{sec:preliminaries}, by providing some preliminaries. In particular, we define the model of computing, we define the class of \emph{locally checkable} problems, and we formally define the round elimination framework. \paragraph{\boldmath A Fixed Point for $\Delta$-coloring.} In \Cref{sec:deltacoloring}, we prove an $\Omega(\log_\Delta n)$-round deterministic lower bound for the $\Delta$-coloring problem in the \ensuremath{\mathsf{LOCAL}}\xspace model. This result is already known from \cite{Brandt2016}. The novelty of our proof lies on the fact that we apply the round elimination technique directly to a more natural generalization of $\Delta$-coloring. The previous proof in \cite{Brandt2016} is also based on round elimination, however the relaxation of $\Delta$-coloring (which is called sinkless coloring) in the proof of \cite{Brandt2016} is more related to the sinkless orientation problem than to $\Delta$-coloring. Note that the primary goal of \cite{Brandt2016} is to prove a lower bound for the sinkless orientation problem. While the proof of \cite{Brandt2016} also implies that $\Delta$-coloring requires $\Omega(\log_\Delta n)$ deterministic rounds, the proof does not reveal enough of the structure of $\Delta$-coloring to be used to prove the lower bounds for MIS or ruling sets. As already described in \Cref{sec:intro}, we define a relaxation of $\Delta$-coloring, which we prove to be a non-trivial fixed point under the round elimination framework. This proof can be seen as a special case of the more general proof that we will show afterwards. We also explain why a fixed point proof for the $\Delta$-coloring problem is helpful in proving lower bounds for problems that are \emph{much easier} than the $\Delta$-coloring problem. In particular, we show that, one reason of why it is hard to prove lower bounds for, e.g., ruling sets, is because the $c$-coloring problem, for $c \le \Delta$, appears as a subproblem of ruling sets when applying the round elimination technique. The $c$-coloring problem does not behave nicely under the round elimination framework, and this makes also ruling sets to not behave nicely under this framework. Relaxing $c$-coloring to a non-trivial fixed point makes it behave much better, and the same then helps for ruling sets as well. \paragraph{A Problem Family.} In \Cref{sec:family} we formally define the family of problems for which we prove lower bounds. We also show that this family of problems is rich enough to contain relaxations of many interesting natural problems: $\Delta$-coloring, arbdefective colorings, maximal independent set, ruling sets, and arbdefective colored ruling sets. We also show that this family of problems contains even more problems: in general, it gives a way to interpolate between colorings and ruling sets. \paragraph{Lower Bound in the Port Numbering Model.} In \Cref{sec:sequence}, we are going to use the round elimination technique to prove lower bounds for the problems of the family in the port numbering model (a model that is strictly weaker than \ensuremath{\mathsf{LOCAL}}\xspace). In particular, we are going to show that some problems in this family are strictly easier than others. Then, by showing that there exists a sequence of $T$ problems, all non-zero round solvable, such that each problem in the sequence is strictly harder than the next problem in the sequence, we directly get that the first problem of the sequence requires at least $T$ rounds. This would give us a lower bound for the port numbering model, but what we really want is a lower bound for the \ensuremath{\mathsf{LOCAL}}\xspace model. An important technical detail that we will need in order to be able to lift such a result from the port numbering model to the \ensuremath{\mathsf{LOCAL}}\xspace model is the following: we need to be able to describe each problem of the sequence with a small number of labels. Hence, in this section we also show that the number of labels of each problem is small enough. \paragraph{\boldmath Lifting Port Numbering Lower Bounds to the \ensuremath{\mathsf{LOCAL}}\xspace model.} In \Cref{sec:lifting}, we show that a long sequence of problems satisfying the previously described requirements directly gives a lower bound for the \ensuremath{\mathsf{LOCAL}}\xspace model. Here we use known results, but we strengthen them a bit in order to support a larger number of labels, compared to the one used in previous works. \paragraph{Lower Bound Results.} In \Cref{sec:corollaries}, we formalize the connection between the problems in the family and some natural problems. We show that the generic lower bound obtained by combining the results of \Cref{sec:sequence} and \Cref{sec:lifting} implies lower bounds for many natural problems. For example, in this section we show that the $(2,\beta)$-ruling set problem requires $\Omega(\beta \Delta^{1/\beta})$ rounds, unless $\Delta$ (as a function of $n$) is very large. \paragraph{Upper Bounds.} While the fixed point that we provide in \Cref{sec:deltacoloring} is a relaxation of the $\Delta$-coloring problem, we prove in \Cref{sec:corollaries} that it is also a relaxation of some variants of arbdefective coloring. We show that this fixed point exactly characterizes which variants of arbdefective coloring require $\Omega(\log_\Delta n)$ rounds. In particular, in \Cref{sec:algorithms} we show that all the variants of arbdefective coloring for which we do not obtain a lower bound in \Cref{sec:corollaries} can be solved in $O(\Delta + \log^* n)$. In \Cref{sec:algorithms} we also provide tight upper bounds for $\alpha$-arbdefective $c$-colored $\beta$-ruling sets. \paragraph{Open Questions.} We conclude, in \Cref{sec:open}, with some open questions. As we have seen, fixed point based proofs for hard problems may help for proving lower bounds even for much easier problems, so one natural question is whether it always exists a fixed point based proof for all problems that require $\Omega(\log_\Delta n)$ deterministic rounds in the \ensuremath{\mathsf{LOCAL}}\xspace model. \section{Preliminaries}\label{sec:preliminaries} \subsection{\boldmath \ensuremath{\mathsf{LOCAL}}\xspace model} The model of distributed computing considered in this paper is the well-known \ensuremath{\mathsf{LOCAL}}\xspace model. In this model, the computation proceeds in synchronous rounds, where, at each round, nodes exchange messages with neighbors and perform some local computation. The size of the messages and the computational power of each node are not bounded. Each node in an $n$-node graph has a unique identifier (ID) in $\{1,\dotsc,\poly n\}$. Initially, each node knows its own ID, its own degree, the maximum degree $\Delta$ in the graph, and the total number of nodes in the graph. Nodes execute the same distributed algorithm, and upon termination, each node outputs its local output (e.g., a color). Nodes correctly solve a distributed problem if and only if their local outputs form a correct global solution (e.g., a proper coloring of the graph). The complexity of an algorithm that solves a problem in the \ensuremath{\mathsf{LOCAL}}\xspace model is measured as the number of rounds it takes such that all nodes give their local output and terminate. Since the size of the messages is not bounded, each node can share with its neighbors all what it knows so far, and hence a $T$ round algorithm in this model can be seen as a mapping of $T$-hop neighborhoods into local outputs. In the randomized version of the \ensuremath{\mathsf{LOCAL}}\xspace model, in addition, each node has access to a stream of random bits. The randomized algorithms that we consider are Monte Carlo ones, that is, a randomized algorithm of complexity $T$ must always terminate within $T$ rounds and the result it produces must be correct with high probability, i.e., with probability at least $1 - 1/n$. The \ensuremath{\mathsf{LOCAL}}\xspace model is quite a strong model of computation, hence lower bounds in this model widely apply on other weaker models as well (such as, on the well-studied \ensuremath{\mathsf{CONGEST}}\xspace model of distributed computation, where the size of the messages is bounded by $O(\log n)$ bits). \paragraph{Port Numbering Model.} For technical reasons, in order to show our lower bounds for the \ensuremath{\mathsf{LOCAL}}\xspace model, we first show lower bounds for the weaker \emph{port numbering} (PN) model, and then we lift these results to the \ensuremath{\mathsf{LOCAL}}\xspace model. As in the \ensuremath{\mathsf{LOCAL}}\xspace model, in the PN model the size of the messages and the computational power of a node are unbounded. Differently from the \ensuremath{\mathsf{LOCAL}}\xspace model, in the PN model nodes do not have IDs. Instead, nodes are equipped with a port numbering, that is, each node has assigned a port numbering to all its incident edges. If we denote with $\deg(v)$ the degree of a node $v$, then each incident edge of node $v$ has a number, or a \emph{port}, in $\{1,\dotsc,\deg(v)\}$ assigned in an arbitrary way, such that for any two incident edges it holds that their port number is not the same. For technical reasons, we will also assume that edges are equipped with a port numbering in $\{1, 2\}$, that is, for each edge, we have an arbitrary assignment of port numbers to each of its endpoints, such that, endpoints of the same edge have different port numbers. This essentially results in an arbitrary consistent orientation of the edges. Notice that this technical detail makes the PN model only stronger, hence our lower bounds directly apply on the classical PN model as well. \paragraph{Special Port Numbering.} There have been some cases in previous works where, in order to show lower bounds, authors have made use of a specific input given to the graph (note that this would only make the task of finding lower bounds potentially harder). For example, \citet{BBKOmis} showed lower bounds for MIS and out-degree dominating sets on trees in the case where we are given a $\Delta$-edge coloring in input. Hence, for the sake of being as general as possible, it is convenient to show that some of our main statements (such as \Cref{thm:lifting}) hold also when the ports satisfy some constraints. More precisely, consider a hypergraph where nodes have degree $\Delta$ and hyperedges have rank $\delta$. Let $C^n$ and $C^h$ be two sets, where $C^n \subseteq \{1,\ldots,\delta\}^\Delta$ and $C^h \subseteq \{1,\ldots,\Delta\}^\delta$. The set $C^n$ is the \emph{node port numbering} constraint, and restricts the possible ports that hyperedges incident to the nodes are allowed to have. The set $C^h$ is the \emph{hyperedge port numbering} constraint, and restricts the possible ports that nodes incident to the hyperedges are allowed to have. The node port constraint and the hyperedge port constraint are defined as follows. \begin{itemize} \item Node port constraint $C^n$: Consider a node $v$, and let $h_i$ be the hyperedge connected to port $i$ of node $v$, for $1 \le i \le \Delta$. Let $p(h_i,v)$ be the hyperedge port that connects $h_i$ to $v$, then $(p(h_1,v),\dotsc,p(h_\Delta,v))$ must be contained in $C^n$. \item Hyperedge port constraint $C^h$: Consider a hyperedge $h$ and let $v_i$ be the node connected to port $i$ of hyperedge $h$, for $1 \le i \le \delta$. Let $p(v_i,h)$ be the node port that connects $v_i$ to $h$, then $(p(v_1,h),\dotsc,p(v_\delta,h))$ must be contained in $C^h$. \end{itemize} If $C^n$ and $C^h$ contain all possible tuples, we say that the port numbering is \emph{unconstrained}. As already mentioned, some specific constrained port assignments can encode inputs, and an example is $\Delta$-edge coloring. Consider a graph $G$. We can define $C^n$ and $C^h$ in such a way that they imply a $\Delta$-edge coloring of $G$. Let $C^n$ be unconstrained, and let $C^h = \{(i,i) ~|~ 1 \le i \le \Delta\}$. In this case, if port $i$ of node $v$ is connected to an edge $e = \{u,v\}$, then the port of $v$ connected to $e$ is also $i$. Hence, we can interpret this port assignment as a coloring, where edge $e$ has color $i$. We may assume that also in the \ensuremath{\mathsf{LOCAL}}\xspace model we have a port numbering assignment, and this assignment may satisfy some constraints $C^{\mathrm{port}}$. Lower bounds obtained in this setting are even stronger. \subsection{Black-White Formalism} In this work, we prove lower bounds on graphs, and we provide a general theorem that is useful for lifting lower bounds from the port numbering model to the \ensuremath{\mathsf{LOCAL}}\xspace model. In order to make such a theorem as general as possible, we let it support also problems defined on \emph{hypergraphs}. In particular, we consider problems defined in the black-white formalism, that has already been used in the literature to formally define so-called \emph{locally checkable problems} on these kinds of graphs. In this formalism, a problem $\Pi = \Pi_{\Delta,\delta}$ is described by a triple $(\Sigma_{\Pi},\ensuremath{\mathcal{N}}_{\Pi},\ensuremath{\mathcal{E}}_{\Pi})$, where $\Sigma_{\Pi}$ is a set of labels, and $\ensuremath{\mathcal{N}}_{\Pi}$ and $\ensuremath{\mathcal{E}}_{\Pi}$ are sets of tuples of size $\Delta$ and $\delta$, respectively, where each element of the tuples is a label from $\Sigma_{\Pi}$. That is, $\ensuremath{\mathcal{N}}_{\Pi} \subseteq (\Sigma_{\Pi})^\Delta$, and $\ensuremath{\mathcal{E}}_{\Pi} \subseteq (\Sigma_{\Pi})^\delta$. $\ensuremath{\mathcal{N}}_{\Pi}$ and $\ensuremath{\mathcal{E}}_{\Pi}$ are called \emph{node constraint} and \emph{hyperedge constraint}, respectively. In some cases, we may also refer to them as \emph{white constraint} and \emph{black constraint}, respectively. Given a hypergraph $G = (V,E)$, and the set of node-hyperedge pairs $P = \{(v,e) \in V \times E ~|~ v \in e \}$, solving $\Pi$ means assigning to each element of $P$ an element from $\Sigma_{\Pi}$ such that: \begin{itemize} \item Let $v$ be any node of degree exactly $\Delta$. Let $L = (\ell_1,\ldots,\ell_\Delta)$ be the labels assigned to the node-hyperedge pairs incident to $v$. A permutation of $L$ must be in $\ensuremath{\mathcal{N}}_\Pi$. \item Let $e$ be any hyperedge of rank exactly $\delta$. Let $L = (\ell_1,\ldots,\ell_\delta)$ be the labels assigned to the node-hyperedge pairs incident to $e$. A permutation of $L$ must be in $\ensuremath{\mathcal{E}}_\Pi$. \end{itemize} The complexity of $\Pi$ is the minimum number of rounds required for nodes to produce a correct output. A special case of the black-white formalism is called node-edge formalism, and is given by considering $\delta=2$. Note that, in this case, there must be two labels assigned to each edge, one for each endpoint. Since any hypergraph can be seen as a $2$-colored bypartite graph, and vice versa, then the black-white formalism allows us to define problems on $2$-colored bypartite graphs as well. In this case, we need to assign a label to each edge, and we have constraints on the labeling of the edges incident on white nodes of degree $\Delta$, and on edges incident on black nodes of degree $\delta$. We use regular expressions to shortly describe the allowed configurations of a problem. For example, we can write $(\mathsf{W} \mspace{1mu} [\mathsf{X} \mathsf{Y}] \mspace{1mu} \mathsf{Z}) ~|~ \mathsf{Z}^3$ to denote the following constraint: $\{(\mathsf{W},\mathsf{X},\mathsf{Z}), (\mathsf{W},\mathsf{Y},\mathsf{Z}), (\mathsf{Z}, \mathsf{Z}, \mathsf{Z})\}$. As a shorthand, we may also write this constraint as follows: $\{\mathsf{W} \mspace{1mu} \mathsf{X} \mspace{1mu} \mathsf{Z}, \mathsf{W} \mspace{1mu} \mathsf{Y} \mspace{1mu} \mathsf{Z}, \mathsf{Z} \mspace{1mu} \mathsf{Z} \mspace{1mu} \mathsf{Z}\}$. Recall that the order does not matter, and hence this constraint also allows the configuration $\mathsf{W} \mspace{1mu} \mathsf{Z} \mspace{1mu} \mathsf{X}$. We call parts of regular expressions of the form $[\mathsf{X} \mathsf{Y}]$ \emph{disjunctions}, and while expressions of the form $\mathsf{W} \mspace{1mu} [\mathsf{X} \mathsf{Y}] \mspace{1mu} \mathsf{Z}$ denote sets of configurations, we may refer to them as \emph{condensed configurations}. If a specific configuration can be obtained by choosing a label in each disjunction, then we say that the configuration is \emph{contained} in the condensed configuration. For example, the configuration $\mathsf{W} \mspace{1mu} \mathsf{X} \mspace{1mu} \mathsf{Z}$ is contained in the condensed configuration $\mathsf{W} \mspace{1mu} [\mathsf{X} \mathsf{Y}] \mspace{1mu} \mathsf{Z}$. The black-white formalism is powerful enough to be able to encode many problems for which the solution can be checked locally, i.e., in $O(1)$ rounds. In this formalism, only nodes of degree $\Delta$ and hyperedges of degree $\delta$ are constrained, while other nodes and hyperedges are not required to satisfy the constraints, but note that proving lower bounds in this restricted setting only makes the lower bounds stronger. We may refer to all problems that can be expressed in this formalism as \emph{locally checkable} problems. We now provide some examples of locally checkable problems. \paragraph{\boldmath Example: Sinkless Orientation in $2$-Colored Graphs.} Assume we have a $2$-colored graph. We require nodes of degree $\Delta$ to solve the sinkless orientation problem: nodes must orient their edges, and every node of degree $\Delta$ must have at least one outgoing edge. Nodes of smaller degree are unconstrained. We can define $\Sigma_{\Pi} = \{\mathsf{B},\mathsf{W}\}$. Since the graph is $2$-colored, then every edge has a black and a white endpoint. An edge labeled $\mathsf{B}$ denotes that the edge is oriented towards the black node, while an edge labeled $\mathsf{W}$ denotes that the edge is oriented towards the white node. Hence, we can express the requirement of having at least one outgoing edge as follows. The white constraint $\ensuremath{\mathcal{N}}_{\Pi}$ is defined as $\mathsf{B} \mspace{1mu} [\mathsf{B}\mathsf{W}]^{\Delta-1}$, while the black constraint $\ensuremath{\mathcal{E}}_{\Pi}$ is defined as $\mathsf{W} \mspace{1mu} [\mathsf{B}\mathsf{W}]^{\Delta-1}$. In other words, white nodes must have at least one edge labeled $\mathsf{B}$, meaning that it is oriented towards a black neighbor, and then all other edges are unconstrained. Similarly, black nodes must have at least one edge labeled $\mathsf{W}$. \paragraph{Example: Maximal Independent Set.} Assume we have a graph, where we require nodes of degree $\Delta$ to solve the maximal independent set problem. In order to encode this problem, one may try to use two labels, one for nodes in the set, and the other for nodes not in the set. Unfortunately, this is not possible, as with only two labels it is not possible to encode the maximality requirement~\cite{binary}. Hence, we use three labels, and we define $\Sigma_{\Pi} = \{\mathsf{M}, \P, \mathsf{U}\}$. We define the node constraint $\ensuremath{\mathcal{N}}_{\Pi}$ as $\mathsf{M}^\Delta ~|~ \P \mspace{1mu} \mathsf{U}^{\Delta-1}$, and the edge constraint $\ensuremath{\mathcal{E}}_{\Pi}$ as $\mathsf{M} \mspace{1mu} [\mathsf{U} \P] ~|~ \mathsf{U} \mspace{1mu} \mathsf{U}$. In other words, nodes can be part of the independent set and output $\mathsf{M}^\Delta$, or can be outside of the independent set, and in this case they have to prove that they have at least one neighbor in the independent set, by outputting $\P \mspace{1mu} \mathsf{U}^{\Delta-1}$. The edge constraint only allows $\P$ to be paired with an $\mathsf{M}$, and hence nodes outputting $\P \mspace{1mu} \mathsf{U}^{\Delta-1}$ must have at least one neighbor outputting $\mathsf{M}^\Delta$. Also, nodes of the independent set cannot be neighbors, because $\mathsf{M} \mspace{1mu} \mathsf{M}$ is not allowed. Then, every other configuration is allowed by $\ensuremath{\mathcal{E}}_{\Pi}$. \subsection{Round Elimination} The round elimination technique works as follows. Assume we are given a problem $\Pi_1$, for which we want to prove a lower bound. We show that, given $\Pi_i$, we can construct a problem $\Pi_{i+1}$ that is at least one round easier than $\Pi_i$, unless $\Pi_i$ is already $0$ rounds solvable. If we are able to perform this operation for $T$ times, and prove that for all $i \le T$, the problem $\Pi_i$ is not $0$-rounds solvable, then this implies that $\Pi_1$ is at least $T-1$ rounds harder than $\Pi_T$. Since $\Pi_T$ is not $0$-rounds solvable, this implies that $\Pi_1$ requires at least $T$ rounds. In order to define this sequence of problems, we exploit \cite[Theorem 4.3]{Brandt2019}, that gives a mechanical way to define $\Pi_{i+1}$ as a function of $\Pi_i$, such that if $\Pi_i$ requires exactly $T$ rounds, then $\Pi_{i+1}$ requires exactly $\max\{T-1,0\}$ rounds. In its general form, this theorem works for any locally checkable problem defined in the black-white formalism, and given a problem $\Pi$ with complexity $T$, it first constructs an intermediate problem $\Pi'$, and then it constructs a problem $\Pi''$ that can be proved to have complexity $T-1$. We denote by $\re(\cdot)$ the procedure that can be applied on a problem $\Pi$ to obtain the intermediate problem $\Pi'$, and by $\rere(\cdot)$ the procedure that can be applied on $\Pi'$ to obtain the problem $\Pi''$. Note that $\Pi'' = \rere(\re(\Pi))$. In \cite{Brandt2019}, $\re(\Pi = (\Sigma_\Pi, \ensuremath{\mathcal{N}}_\Pi, \ensuremath{\mathcal{N}}_\Pi)) = \Pi' = (\Sigma_{\Pi'}, \ensuremath{\mathcal{N}}_{\Pi'}, \ensuremath{\mathcal{E}}_{\Pi'})$ is defined as follows. \begin{itemize} \item $\ensuremath{\mathcal{E}}_{\Pi'}$ is defined as follows. Let $C$ be the maximal set such that for all $(L_1, \ldots, L_\delta) \in C$ it holds that, for all $i$, $L_i \in 2^{\Sigma_{\Pi}} \setminus \{\emptyset\}$, and for all $(\ell_1, \ldots, \ell_\delta) \in L_1 \times \ldots \times L_\delta$, it holds that a permutation of $(\ell_1, \ldots, \ell_\delta)$ is in $\ensuremath{\mathcal{E}}_\Pi$. In this case, we say that $(L_1, \ldots, L_\delta)$ \emph{satisfies the universal quantifier}. The set $\ensuremath{\mathcal{E}}_{\Pi'}$ is obtained by removing all \emph{non-maximal} configurations from $C$, that is, all configurations $(L_1, \ldots, L_\delta) \in C$ such that there exists another configuration $(L'_1, \ldots, L'_\delta) \in C$ and a permutation $\phi$, such that $L_i \subseteq L'_{\phi(i)}$ for all $i$, and there exists at least one $i$ such that the inclusion is strict. \item $\Sigma_{\Pi'} \subseteq 2^{\Sigma_{\Pi}}$ contains all the sets that appear at least once in $\ensuremath{\mathcal{E}}_{\Pi'}$. \item $\ensuremath{\mathcal{N}}_{\Pi'}$ is defined as follows. It contains all configurations $(L_1, \ldots, L_\Delta)$ such that, for all $i$, $L_i \in \Sigma_{\Pi'}$, and there exists $(\ell_1, \ldots, \ell_\Delta) \in L_1 \times \ldots \times L_\Delta$, such that that a permutation of $(\ell_1, \ldots, \ell_\Delta)$ is in $\ensuremath{\mathcal{N}}_\Pi$. In this case, we say that $(L_1, \ldots, L_\Delta)$ \emph{satisfies the existential quantifier}. \end{itemize} We may refer to the computation of $\ensuremath{\mathcal{E}}_{\Pi'}$ as \emph{applying the universal quantifier}, and to the computation of $\ensuremath{\mathcal{N}}_{\Pi'}$ as \emph{applying the existential quantifier}. When applying the universal quantifier, we may use the term \emph{by maximality} to argue that, in order for a configuration to be maximal, some label must appear in a set of labels. The hard part in computing $\Pi'$ is applying the universal quantifier. In fact, there is an easy way to compute $\ensuremath{\mathcal{N}}_{\Pi'}$, that is the following. Start from all the configurations allowed by $\ensuremath{\mathcal{N}}_{\Pi}$, and for each configuration add to $\ensuremath{\mathcal{N}}_{\Pi'}$ the condensed configuration obtained by replacing each label $\mathsf{y}$ by the disjunction of all label sets in $\Sigma_{\Pi'}$ that contain $\mathsf{y}$. The operator $\rere(\cdot)$ is defined in the same way, but the roles of $\ensuremath{\mathcal{N}}$ and $\ensuremath{\mathcal{E}}$ are reversed, that is, the universal quantifier is applied on $\ensuremath{\mathcal{N}}_{\Pi'}$, and the existential quantifier is applied on $\ensuremath{\mathcal{E}}_{\Pi'}$. In \cite[Theorem 4.3]{Brandt2019}, the following is proved. \begin{theorem}[\cite{Brandt2019}, rephrased]\label{thm:rethm} Let $T > 0$. Consider a class $\mathcal{G}$ of hypergraphs with girth at least $2T+2$, and some locally checkable problem $\Pi$. Then, there exists an algorithm that solves problem $\Pi$ in $\mathcal{G}$ in $T$ rounds if and only if there exists an algorithm that solves $\rere(\re(\Pi))$ in $\max\{0,T-1\}$ rounds. \end{theorem} Note that, in order to prove lower bounds, when computing $\ensuremath{\mathcal{E}}_{\Pi'}$, it is not necessary to show that any possible choice over the sets allowed by $\ensuremath{\mathcal{E}}_{\Pi'}$ is a configuration allowed by $\ensuremath{\mathcal{E}}_{\Pi}$, but it is sufficient to show that there are no maximal configurations that satisfy the universal quantifier that are not in $\ensuremath{\mathcal{E}}_{\Pi'}$. In other words, when proving lower bounds, we can add allowed configurations to $\ensuremath{\mathcal{E}}_{\Pi'}$, as this is only making $\Pi'$ easier. Hence, we introduce the notion of a relaxation of a configuration (already introduced in~\cite{balliurules}). \begin{definition}\label{def:noderelax} Consider two node configurations $\mathcal{A} = \mathsf{A}_1 \mspace{1mu} \dots \mspace{1mu} \mathsf{A}_\Delta$ and $\mathcal{B} = \mathsf{B}_1 \mspace{1mu} \dots \mspace{1mu} \mathsf{B}_\Delta$, where the $\mathsf{A}_i$ and $\mathsf{B}_i$ are sets of labels from some label space. We say that \emph{$\mathcal{A}$ can be relaxed to $\mathcal{B}$} if there exists a permutation $\rho \colon \{ 1, \dots, \Delta \} \to \{ 1, \dots, \Delta \}$ such that $\mathsf{A}_i \subseteq \mathsf{B}_{\rho(i)}$ for all $1 \leq i \leq \Delta$. For simplicity, if not indicated otherwise, we will assume that the sets in the two configurations are ordered such that $\rho$ is the identity function. We define relaxations of edge configurations analogously. \end{definition} Given two constraints $C$ and $C'$, if all the configurations allowed by $C$ can be relaxed to configurations in $C'$, we say that $C'$ is a \emph{relaxation} of $C$. Also, given two problems $\Pi_1 = (\Sigma_1,\ensuremath{\mathcal{N}}_1,\ensuremath{\mathcal{E}}_1)$ and $\Pi_2 = (\Sigma_2,\ensuremath{\mathcal{N}}_2,\ensuremath{\mathcal{E}}_2)$, if $\ensuremath{\mathcal{N}}_2$ is a relaxation of $\ensuremath{\mathcal{N}}_1$ and $\ensuremath{\mathcal{E}}_2$ is a relaxation of $\ensuremath{\mathcal{E}}_1$, then we say that $\Pi_2$ is a relaxation of $\Pi_1$. \paragraph{\boldmath Example: Sinkless Orientation in $2$-Colored Graphs.} Recall that this problem can be expressed as follows. \begin{align*} \ensuremath{\mathcal{N}}_{\Pi} &= \mathsf{B} \mspace{1mu} [\mathsf{B}\mathsf{W}]^{\Delta-1}\\ \ensuremath{\mathcal{E}}_{\Pi} &=\mathsf{W} \mspace{1mu} [\mathsf{B}\mathsf{W}]^{\Delta-1} \end{align*} We start by computing $\ensuremath{\mathcal{E}}_{\Pi'}$. We need to satisfy the universal quantifier, and this implies that it must not be possible to pick $\mathsf{B}$ from $\Delta$ different sets, since we would obtain $\mathsf{B}^\Delta$, that is not allowed by $\ensuremath{\mathcal{E}}_{\Pi}$. But we can also notice that, as long as we are forced to pick $\mathsf{W}$ from at least one set, then everything else is allowed. Hence, the universal quantifier is satisfied for all configurations of the form $\{\mathsf{W}\} \mspace{1mu} [\{\mathsf{W}\} \{\mathsf{B}\} \{\mathsf{W},\mathsf{B}\}]^{\Delta-1}$. If we discard non-maximal configurations, we obtain $\{\mathsf{W}\} \mspace{1mu} \{\mathsf{W},\mathsf{B}\}^{\Delta-1}$. We can now rename the sets to make it easier to read the constraint, by using the following mapping: \begin{align*} \{\mathsf{W}\} &\rightarrow \mathsf{W}\\ \{\mathsf{W},\mathsf{B}\} &\rightarrow \mathsf{B} \end{align*} We obtain $\ensuremath{\mathcal{E}}_{\Pi'} = \mathsf{W} \mspace{1mu} \mathsf{B}^{\Delta-1}$. In order to apply the existential quantifier on $\ensuremath{\mathcal{N}}_{\Pi}$, it is enough to replace each label with the disjunction of all the sets that contain that label. Note that $\mathsf{B}$ is only contained in the new label $\{\mathsf{W},\mathsf{B}\}$, that is renamed to $\mathsf{B}$, while $\mathsf{W}$ is contained in both $\{\mathsf{W}\}$ and $\{\mathsf{W},\mathsf{B}\}$, that are renamed to $\mathsf{W}$ and $\mathsf{B}$, respectively. Hence, $\ensuremath{\mathcal{N}}_{\Pi'} = \{\mathsf{W},\mathsf{B}\} \mspace{1mu} [\{\mathsf{W}\} \{\mathsf{W},\mathsf{B}\}]]^{\Delta-1} = \mathsf{B} \mspace{1mu} [\mathsf{B} \mathsf{W}]^{\Delta-1}$. Summarizing, we obtain the following: \begin{align*} \Sigma_{\Pi'} &= \{\mathsf{B},\mathsf{W}\} \\ \ensuremath{\mathcal{E}}_{\Pi'} &= \mathsf{W} \mspace{1mu} \mathsf{B}^{\Delta-1}\\ \ensuremath{\mathcal{N}}_{\Pi'} &= \mathsf{B} \mspace{1mu} [\mathsf{B} \mathsf{W}]^{\Delta-1} \end{align*} \paragraph{Relation Between Labels.} Consider a problem $\Pi$ and let $C$ be one of its constraints (either node or hyperedge) containing tuples of size $d$. It can be useful to relate the labels of $\Pi$, according to how easier it is to use a label instead of another, according to $C$. Consider two arbitrary labels $\mathsf{X}$, $\mathsf{Y}$ of $\Pi$. We say that $\mathsf{X}$ is \emph{at least as strong as} $\mathsf{Y}$ according to $C$, if the following holds. For all configurations $(\ell_1,\ldots,\ell_i,\ldots,\ell_d) \in C$ such that there exists an $i$ such that $\ell_i = \mathsf{Y}$, a permutation of the configuration $(\ell_1,\ldots,\mathsf{X},\ldots,\ell_d)$ is in $C$. That is, for all configurations in $C$ containing $\mathsf{Y}$, if we replace an arbitrary amount of $\mathsf{Y}$ with $\mathsf{X}$, then we obtain a configuration that is still in $C$. If the constraint is clear from the context, we may omit it and just say that $\mathsf{X}$ is at least as strong as $\mathsf{Y}$. If $\mathsf{X}$ is at least as strong as $\mathsf{Y}$, we also say that $\mathsf{Y}$ is \emph{at least as weak as} $\mathsf{X}$, or $\mathsf{Y} \le \mathsf{X}$. If $\mathsf{X}$ is at least as strong as $\mathsf{Y}$, but $\mathsf{Y}$ is not at least as strong as $\mathsf{X}$, then $\mathsf{X}$ is \emph{stronger} than $\mathsf{Y}$, and $\mathsf{Y}$ is \emph{weaker} than $\mathsf{X}$, that we may also denote as $\mathsf{Y} < \mathsf{X}$. Intuitively, stronger labels are easier to use, if we only consider the requirements of $C$, because we can always replace a weaker label by a stronger one. It can be useful to illustrate the strength of the labels by using a directed graph. The \emph{diagram} of $\Pi$ according to $C$ is a directed graph where nodes are labels of $\Pi$, and there is an edge $(\mathsf{Y},\mathsf{X})$ if and only if: \begin{itemize} \item $\mathsf{X} \neq \mathsf{Y}$; \item $\mathsf{X}$ is at least as strong as $\mathsf{Y}$; \item there is no label $\mathsf{Z}$ different from $\mathsf{X}$ and $\mathsf{Y}$ that is stronger than $\mathsf{Y}$ and weaker than $\mathsf{X}$. \end{itemize} In other words, we put edges connecting weaker labels to stronger labels, but we omit relations that can be obtained by transitivity. Note that the obtained graph is not necessarily connected, but it is directed acyclic, unless $\Pi$ contains two labels of equal strength. We may refer to the diagram according to $\ensuremath{\mathcal{N}}$ as the \emph{node diagram}, and to the diagram according to $\ensuremath{\mathcal{E}}$ as the \emph{hyperedge diagram} (or \emph{edge diagram}, in the case of graphs). The \emph{successors} of some label $\ell$ w.r.t.\ some constraint $C$ are defined to be all labels that are at least as strong as $\ell$ according to $C$, or in other words all labels reachable from $\ell$ in the diagram according to $C$. When applying the round elimination technique, and in particular when performing the universal quantifier, it will be useful to consider the diagram of the constraint on which the universal quantifier is applied to. As we will see later, this diagram limits the possible labels appearing in the new constraint. As an example, \Cref{fig:mis} depicts the edge diagram of the MIS problem, that is, the diagram according to $\ensuremath{\mathcal{E}}_{\Pi} = \mathsf{M} \mspace{1mu} [\mathsf{U} \P] ~|~ \mathsf{U} \mspace{1mu} \mathsf{U}$. There is an edge from $\P$ to $\mathsf{U}$ because the only edge configuration containing $\P$ is $\mathsf{M} \mspace{1mu} \P$, and if we replace $\P$ with $\mathsf{U}$, we obtain $\mathsf{M} \mspace{1mu} \mathsf{U}$, which is also allowed by $\ensuremath{\mathcal{E}}_{\Pi}$. Conversely, there is no edge from $\mathsf{U}$ to $\P$, because $\mathsf{U} \mspace{1mu} \mathsf{U}$ is allowed, but by replacing an arbitrary amount of $\mathsf{U}$ with $\P$ we obtain configurations not in $\ensuremath{\mathcal{E}}_{\Pi}$. \begin{figure}[h] \centering \includegraphics[width=0.14\textwidth]{figs/mis} \caption{The edge diagram of the MIS problem: $\mathsf{U}$ is stronger than $\P$, and there is no relation between labels $\mathsf{M}$ and $\P$, and between $\mathsf{M}$ and $\mathsf{U}$.} \label{fig:mis} \end{figure} \paragraph{Additional Notation.} We now introduce some additional notation that can be useful to concisely describe a set of labels. Given a set $\{ \ell_1, \dots, \ell_p \} \subseteq \Sigma_\Pi$, we denote by $\gen{\ell_1, \dots, \ell_p}$ the set that contains all labels $\ell$ in $\Sigma_\Pi$ satisfying that there exists an $i$ such that $\ell$ is at least as strong as $\ell_i$. In other words, $\gen{\ell_1, \dots, \ell_p}$ contains the labels $\ell_1, \ldots, \ell_p$, plus all labels that are reachable from at least one of them in the diagram of $\Pi$ (i.e., all the successors of $\ell_1, \ldots, \ell_p$). In order to properly define $\gen{}$, we need to specify to which constraint the strength relation refers to. If the argument of $\gen{}$ contains labels of some problem $\Pi$ on which we are applying the operator $\re(\cdot)$, then $\gen{}$ refers to its hyperedge constraint, while if the argument of $\gen{}$ contains labels of an intermediate problem $\Pi'$, that is, a problem on which we are applying the operator $\rere(\cdot)$, then $\gen{}$ refers to its node constraint. In other words, we always consider the constraint on which we apply the universal quantifier. That is, if we start from $\Pi$ and compute $\Pi' = \re(\Pi)$, then $\gen{}$ refers to $\ensuremath{\mathcal{E}}_{\Pi}$, while when computing $\Pi'' = \rere(\Pi')$, then $\gen{}$ refers to $\ensuremath{\mathcal{N}}_{\Pi'}$. When computing $\rere(\re(\Pi))$ it will be useful to use expressions such as $\gen{\gen{\ell}}$, where $\ell$ is a label of $\Pi$. This expression represents a set of sets of labels from $\Sigma_\Pi$, where $\gen{\ell}$ is computed according to $\ensuremath{\mathcal{E}}_{\Pi}$, and $\gen{\gen{\ell}}$ is then taken according to $\ensuremath{\mathcal{N}}_{\Pi'}$. A set $S = \{ \ell_1, \dots, \ell_p \} \subseteq \Sigma_\Pi$ is called \emph{right-closed} if $S = \gen{\ell_1, \dots, \ell_p}$. That is, $S$ is right-closed if and only if for each label $\ell_i$ contained in $S$ also all successors of $\ell_i$ in the diagram (taken w.r.t.\ the constraint on which the universal quantifier is applied to) are contained in $S$. In \cite{balliurules}, the following statements have been proved. \begin{observation}[\cite{balliurules}]\label{obs:rcs} Consider an arbitrary collection of labels $\mathsf{A}_1, \dots, \mathsf{A}_p \in \Sigma_\Pi$. If $\{ \mathsf{A}_1, \dots, \mathsf{A}_p \} \in \Sigma_{\re(\Pi)}$, then the set $\{ \mathsf{A}_1, \dots, \mathsf{A}_p \}$ is right-closed (w.r.t.\ $\ensuremath{\mathcal{E}}_{\Pi}$). If $\{ \mathsf{A}_1, \dots, \mathsf{A}_p \} \in \Sigma_{\rere(\Pi')}$, then the set $\{ \mathsf{A}_1, \dots, \mathsf{A}_p \}$ is right-closed (w.r.t.\ $\ensuremath{\mathcal{N}}_{\Pi'}$). \end{observation} \begin{observation}[\cite{balliurules}]\label{obs:subsetarrow} Let $\mathsf{U}, \mathsf{W} \in \Sigma_{\re(\Pi)}$ be two sets satisfying $\mathsf{U} \subseteq \mathsf{W}$. Then $\mathsf{W}$ is at least as strong as $\mathsf{U}$ according to $\ensuremath{\mathcal{N}}_{\re(\Pi)}$. In particular, for any label $\mathsf{A} \in \Sigma_\Pi$ such that $\gen{\mathsf{A}} \in \Sigma_{\re(\Pi)}$, every set $\mathsf{X} \in \Sigma_{\re(\Pi)}$ containing $\mathsf{A}$ is contained in $\gen{\gen{\mathsf{A}}}$. Analogous statements hold for $\rere(\cdot)$ instead of $\re(\cdot)$, by considering the label strength according to $\ensuremath{\mathcal{E}}_{\rere(\cdot)}$. \end{observation} For a set $S = \{ \ell_1, \dots, \ell_p \} \subseteq \Sigma_\Pi$ of labels, we denote by $\ensuremath{\operatorname{disj}}(S)$ the disjunction $[\ell_1 \dots \ell_p]$. For instance, $\ensuremath{\operatorname{disj}}(\gen{\ell})$ is the disjunction of all labels that are at least as strong as $\ell$. \section{\boldmath $\Delta$-Coloring Fixed Point and Its Applications}\label{sec:deltacoloring} In this section, we define a problem $\Pi_\Delta$ that is at least as easy as the $\Delta$-coloring problem, and show that $\Pi_\Delta$ is a non-trivial fixed point under the round elimination framework. It is known that a non-trivial fixed point directly implies an $\Omega(\log_\Delta n)$ lower bound for deterministic algorithms, and an $\Omega(\log_\Delta \log n)$ lower bound for randomized algorithms, in the \ensuremath{\mathsf{LOCAL}}\xspace model, but we show this formally in \Cref{sec:lifting}. Then, we also describe the relation of $\Pi_\Delta$ with the maximal independent set problem. The problem $\Pi_\Delta$ is defined as follows. Consider the set of colors $\mathfrak{C} = \{1, \ldots, \Delta\}$. The label set $\Sigma_{\Pi_{\Delta}}$ of $\Pi_\Delta$ is defined as $\Sigma_{\Pi_{\Delta}} = \{ \ell(\mathcal{C}) ~|~ \mathcal{C} \in 2^\mathfrak{C} \}$. The node constraint $\ensuremath{\mathcal{N}}_{\Pi_{\Delta}}$ of $\Pi_\Delta$ contains the following allowed configurations: \[ \ell(\mathcal{C})^{\Delta - x} \mspace{1mu} \ell(\emptyset)^x, \text{ for all $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$, where $x = |\mathcal{C}|-1$. } \] The edge constraint $\ensuremath{\mathcal{E}}_{\Pi_{\Delta}}$ of $\Pi_\Delta$ contains the following allowed configurations: \[ \ell(\mathcal{C}_1) \mspace{1mu} \ell(\mathcal{C}_2), \text{for all $\mathcal{C}_1,\mathcal{C}_2 \in 2^\mathfrak{C}$ such that $\mathcal{C}_1 \cap \mathcal{C}_2 = \emptyset$.} \] In \Cref{ssec:fixpoint}, we will prove that $\Pi_\Delta$ is a fixed point. Note that $\Pi_\Delta$ is not $0$-round solvable, since all configurations allowed by the node constraint contain at least one label $\L=\ell(\mathcal{C})\neq \ell(\emptyset)$, and $\L\mspace{1mu}\L\notin\ensuremath{\mathcal{E}}_{\Pi_{\Delta}}$. We now provide an explicit example of $\Pi_\Delta$ where $\Delta=3$, and we give some intuition behind its definition. \paragraph{\boldmath Example: $\Pi_3$.} Consider the case where $\Delta=3$, and let us use letters to denote colors, that is, $\mathfrak{C} = \{\mathsf{A},\mathsf{B},\mathsf{C}\}$. To simplify the notation, we rename each label $\ell(\{x_1, \ldots, x_k\})$ corresponding to a non-empty set of colors as $\mybox{x_1 \ldots x_k}$. Also, we rename $\ell(\emptyset)$ as $\mathsf{X}$. For example, the label $\ell(\{\mathsf{A},\mathsf{B}\})$ becomes $\mybox{\mathsf{A}\mathsf{B}}$. The problem $\Pi_3$ is defined as follows: \begin{equation*} \begin{aligned} \begin{split} \ensuremath{\mathcal{N}}_{\Pi_{3}}\text{:}\\ &\mybox{\mathsf{A}} &\mspace{1mu}& \mybox{\mathsf{A}} &\mspace{1mu}& \mybox{\mathsf{A}} \\ &\mybox{\mathsf{B}} &\mspace{1mu}& \mybox{\mathsf{B}} &\mspace{1mu}& \mybox{\mathsf{B}} \\ &\mybox{\mathsf{C}} &\mspace{1mu}& \mybox{\mathsf{C}} &\mspace{1mu}& \mybox{\mathsf{C}} \\ &\mybox{\mathsf{A}\mathsf{B}} &\mspace{1mu}& \mybox{\mathsf{A}\mathsf{B}} &\mspace{1mu}& \mathsf{X} \\ &\mybox{\mathsf{A}\mathsf{C}} &\mspace{1mu}& \mybox{\mathsf{A}\mathsf{C}} &\mspace{1mu}& \mathsf{X} \\ &\mybox{\mathsf{B}\mathsf{C}} &\mspace{1mu}& \mybox{\mathsf{B}\mathsf{C}} &\mspace{1mu}& \mathsf{X} \\ &\mybox{\mathsf{A}\mathsf{B}\mathsf{C}} &\mspace{1mu}& \mathsf{X} &\mspace{1mu}& \mathsf{X} \\\\ \end{split} \qquad \begin{split} \ensuremath{\mathcal{E}}_{\Pi_{3}}\text{:}\\ &\mathsf{X} &\mspace{1mu}& [\mathsf{X}\mybox{\mathsf{A}}\mybox{\mathsf{B}}\mybox{\mathsf{C}}\mybox{\mathsf{A}\mathsf{B}}\mybox{\mathsf{B}\mathsf{C}}\mybox{\mathsf{A}\mathsf{C}}\mybox{\mathsf{A}\mathsf{B}\mathsf{C}}] \\ &\mybox{\mathsf{A}} &\mspace{1mu}& [\mathsf{X}\mybox{\mathsf{B}}\mybox{\mathsf{C}}\mybox{\mathsf{B}\mathsf{C}}]\\ &\mybox{\mathsf{B}} &\mspace{1mu}& [\mathsf{X}\mybox{\mathsf{A}}\mybox{\mathsf{C}}\mybox{\mathsf{A}\mathsf{C}}]\\ &\mybox{\mathsf{C}} &\mspace{1mu}& [\mathsf{X}\mybox{\mathsf{A}}\mybox{\mathsf{B}}\mybox{\mathsf{A}\mathsf{B}}]\\ &\mybox{\mathsf{A}\mathsf{B}} &\mspace{1mu}& [\mathsf{X}\mybox{\mathsf{C}}]\\ &\mybox{\mathsf{A}\mathsf{C}} &\mspace{1mu}& [\mathsf{X}\mybox{\mathsf{B}}]\\ &\mybox{\mathsf{B}\mathsf{C}} &\mspace{1mu}& [\mathsf{X}\mybox{\mathsf{A}}]\\ &\mybox{\mathsf{A}\mathsf{B}\mathsf{C}} &\mspace{1mu}& \mathsf{X}\\ \end{split} \end{aligned} \end{equation*} The intuition behind this problem is the following. We start from the standard definition of $3$-coloring, and we add allowed configurations that ``reward'' nodes that have many neighbors of the same color. For example, if a node $v$ outputs the configuration $\mybox{\mathsf{A}\mathsf{B}} \mspace{1mu} \mybox{\mathsf{A}\mathsf{B}} \mspace{1mu} \mathsf{X}$, it means that $v$ has at least $2$ neighbors that do not output neither $\mathsf{A} \mspace{1mu} \mathsf{A} \mspace{1mu} \mathsf{A}$ nor $\mathsf{B} \mspace{1mu} \mathsf{B} \mspace{1mu} \mathsf{B}$. We can think of $v$ as being colored \emph{both $\mathsf{A}$ and $\mathsf{B}$}. Node $v$ is rewarded for this, and it is allowed to output $\mathsf{X}$ on one of its ports. Label $\mathsf{X}$ can be seen as a wildcard: a label that is compatible with everything. In particular, this means that $\Pi_3$ can be seen as a variant of arbdefective coloring, where nodes that control many colors are allowed to have a larger arbdefect. \paragraph{Relation with MIS.} It is known that, if a problem can be relaxed to a problem that is a fixed point under the round elimination framework, then it requires $\Omega(\log_\Delta n)$ rounds in the \ensuremath{\mathsf{LOCAL}}\xspace model for deterministic algorithms, and $\Omega(\log_\Delta \log n)$ rounds for randomized algorithms. Hence, it is perhaps surprising that a fixed point can be helpful to prove lower bounds for problems that can be solved in $O(f(\Delta) + \log^*n)$ for some function $f$, that is, problems that are much easier. We now provide the intuition behind this phenomenon. Already in \cite{balliurules}, it has been shown that, when applying the round elimination technique on the MIS problem for many times, we get a problem that looks like the following: \begin{itemize} \item There is a part of the problem that can be naturally described, that is, after doing $k$ steps of round elimination, the problem becomes a relaxation of the $k$-coloring problem. \item There is a part of the problem that cannot be naturally described, that seems to be just an artifact of the round elimination technique. In particular, after $k$ steps, the obtained problem also contains what one would obtain by applying the round elimination technique on the $(k-1)$-coloring problem. \end{itemize} Unfortunately, by applying the round elimination technique on coloring problems, we usually obtain problems whose description grows exponentially \emph{at each step} of round elimination. This makes it unfeasible to apply the technique for more than just a few steps. Hence, we need to find a way to avoid this exponential growth, that is, find a relaxation of $k$-coloring such that if we apply the technique, we don't get a problem that is much larger. This is exactly what a fixed point for $k$-coloring (for $k \le \Delta$) gives us, since, by applying round elimination on this problem, we obtain the problem itself. Hence, the idea that we use to prove a lower bound for MIS (and other problems) is the following: \begin{itemize} \item By applying the round elimination technique on MIS, at each step, the number of colors grows by $1$, and intuitively this means that the MIS problem requires $\Omega(\Delta)$, since $k$-coloring is a hard problem, for $k\le\Delta$. To prove this, we need to show that the ``unnatural'' part of the problem does not help to solve the problem faster. \item The unnatural part would grow exponentially at each step, but we relax it in the same way as we do in the $k$-coloring fixed point. In this way, at step $k+1$, we obtain a $(k+1)$-coloring, plus something that can be relaxed to the configurations allowed in the fixed point of the $(k+1)$-coloring problem. This allows us to \emph{concisely} describe the problem obtained at each step. \end{itemize} Hence, the problem obtained by applying the round elimination technique on MIS for $k$ times can be described as follows: there is a $k$-coloring component, plus something that makes the colors grow by $1$ at each new step, plus something related to applying the round elimination technique on $k'$-coloring for $k' < k$. In order to obtain our linear-in-$\Delta$ lower bound for MIS, we essentially embed, into the description of the intermediate problems, a proof that $k$-coloring is hard. \subsection{\boldmath A Fixed Point For $\Delta$-Coloring}\label{ssec:fixpoint} In order to simplify the proofs, instead of showing that $\Pi_\Delta$ is a non-trivial fixed point, we do the following. We define a problem $\Pi$, that is essentially equivalent to $\Pi_\Delta$, where the only difference is that the node constraint of $\Pi$ is defined in a slightly different way. Then, we show that $\Pi$ is a non-trivial fixed point. Hence, problem $\Pi$ is not $0$-round solvable, and it is a relaxation of the $\Delta$-coloring problem, i.e., a solution for $\Delta$-coloring is also a solution for $\Pi$, but the reverse does not necessarily hold. Then, we show that, by applying two round elimination steps on $\Pi$, we obtain the same problem $\Pi$, implying that $\Pi$ is a non-trivial fixed point. \paragraph{\boldmath Problem $\Pi$.} As in the case of $\Pi_\Delta$, the label set is defined as $\Sigma_{\Pi}=\{\ell(\mathcal{C})~|~\mathcal{C}\in 2^\mathfrak{C}\}$, where $\mathfrak{C}=\{1,\dotsc,\Delta\}$. The edge constraint $\ensuremath{\mathcal{E}}_{\Pi}$ is also defined in the same way. It contains all the configurations of the following form: \[ \ell(\mathcal{C}_1) \mspace{1mu} \ell(\mathcal{C}_2), \text{for all $\mathcal{C}_1,\mathcal{C}_2 \in 2^\mathfrak{C}$ such that $\mathcal{C}_1 \cap \mathcal{C}_2 = \emptyset$.} \] The node constraint $\ensuremath{\mathcal{N}}_{\Pi}$ is defined slightly differently. It contains all the configurations of the following form: \begin{align*} \ell(\mathcal{C}_1) \mspace{1mu} \ell(\mathcal{C}_2)\mspace{1mu} \ldots \mspace{1mu} \ell(\mathcal{C}_\Delta),& \text{ such that }\\ \exists k \in \{1,\dotsc,\Delta\} \text{ and } 1\le i_1< i_2 < \dotsc <i_k\le \Delta,& \text{ such that }\\ |\mathcal{C}_{i_1}\cap \mathcal{C}_{i_2}\cap\dotsc\cap \mathcal{C}_{i_k}|\ge \Delta -k+1.& \end{align*} On the one hand, notice that $\ensuremath{\mathcal{N}}_{\Pi}$ allows strictly more configurations than the node constraint of $\Pi_\Delta$. On the other hand, given a solution of $\Pi_\Delta$, nodes can solve $\Pi$ in $0$ rounds by outputting the intersection of the $k$ sets on $k$ ports, and the empty set on the remaining ones. Hence, $\Pi$ and $\Pi_\Delta$ are equivalent. We start by observing some properties of the configurations of $\Pi$. \begin{observation}\label{obs:supersets} If $\ell(\mathcal{C}_1) \mspace{1mu} \ell(\mathcal{C}_2)\mspace{1mu} \ldots \mspace{1mu} \ell(\mathcal{C}_\Delta)$ is a configuration in $\ensuremath{\mathcal{N}}_{\Pi}$, then also $\ell(\mathcal{C}'_1) \mspace{1mu} \ell(\mathcal{C}'_2)\mspace{1mu} \ldots \mspace{1mu} \ell(\mathcal{C}'_\Delta)$, where, for all $1\le j\le\Delta$, $\mathcal{C}_j\subseteq \mathcal{C}'_j$, is a configuration in $\ensuremath{\mathcal{N}}_{\Pi}$. \end{observation} \begin{observation}\label{obs:subsets} If $\ell(\mathcal{C}_1) \mspace{1mu} \ell(\mathcal{C}_2)$ is a configuration in $\ensuremath{\mathcal{E}}_{\Pi}$, then also $\ell(\mathcal{C}'_1) \mspace{1mu} \ell(\mathcal{C}'_2)$, where, for all $1\le j\le2$, $\mathcal{C}'_j\subseteq \mathcal{C}_j$, is a configuration in $\ensuremath{\mathcal{E}}_{\Pi}$. \end{observation} \paragraph{\boldmath Labels of $\Pi'$.} Let $\Pi'=\re(\Pi)$. By definition, $\Sigma_{\Pi'} \subseteq 2^{\Sigma_{\Pi}}$, that is, $\Sigma_{\Pi'}$ consists of a set of sets of labels in $\Sigma_{\Pi}$. Before characterizing the node and edge constraints of $\Pi'$, we perform a renaming of the labels of problem $\Pi'$, in the following way. Each label set $\{\ell(\mathcal{C}_1),\ldots,\ell(\mathcal{C}_h)\}$ is renamed to label $\ell(\mathcal{C})=\ell(\bigcup_{1\le j\le h}\mathcal{C}_j)$, that is, a label that consists of sets of colors is mapped to a label that consists of the union of the sets of colors. This renaming gives a label-set that contains labels of the form $\ell(\mathcal{C})$, where $\mathcal{C}\in 2^\mathfrak{C}$ and $\mathfrak{C}=\{1,\dotsc,\Delta\}$. Hence, after this renaming, $\Sigma_{\Pi'}=\Sigma_{\Pi}$. Note that different original labels, such that the union of their sets gives the same set, are mapped to the same label. \paragraph{\boldmath Edge Constraint of $\Pi'$.} We now characterize the edge constraint $\ensuremath{\mathcal{E}}_{\Pi'}$ of $\Pi'$. First of all, by definition of the round elimination framework, $\ensuremath{\mathcal{E}}_{\Pi'}$ contains all configurations $\L_1 \mspace{1mu} \L_2$ such that, for any choice in $\L_1$, and for any choice in $\L_2$, we get a configuration that is in $\ensuremath{\mathcal{E}}_{\Pi}$. Hence, under the renaming that we performed, $\ensuremath{\mathcal{E}}_{\Pi'}$ must contain at least all the configurations in $\ensuremath{\mathcal{E}}_{\Pi}$. We claim that $\ensuremath{\mathcal{E}}_{\Pi'}$ does not contain any additional allowed configuration. Suppose, for a contradiction, that there exists a configuration $\ell(\mathcal{C}_1)\mspace{1mu} \ell(\mathcal{C}_2)$ in $\ensuremath{\mathcal{E}}_{\Pi'}$ such that $\mathcal{C}_1\cap \mathcal{C}_2 \neq \emptyset$. This means that, before the renaming, there exists a configuration $\L_1\mspace{1mu}\L_2$ in $\ensuremath{\mathcal{E}}_{\Pi'}$ such that $\L_1$ contains a set $S_1$ containing $\ell(\mathcal{C}'_1)$, and $\L_2$ contains a set $S_2$ containing $\ell(\mathcal{C}'_2)$, such that $\mathcal{C}'_1\cap\mathcal{C}'_2\neq \emptyset$. Hence, we get that there exists a choice resulting in the configuration $\ell(\mathcal{C}'_1)\mspace{1mu} \ell(\mathcal{C}'_2)$, where $\mathcal{C}'_1\cap \mathcal{C}'_2 \neq \emptyset$, which does not satisfy any configuration in $\ensuremath{\mathcal{E}}_{\Pi}$, which is a contradiction. Hence, $\ensuremath{\mathcal{E}}_{\Pi'}=\ensuremath{\mathcal{E}}_{\Pi}$. \paragraph{\boldmath Node Constraint of $\Pi'$.} We now characterize the node constraint $\ensuremath{\mathcal{N}}_{\Pi'}$ of $\Pi'$. As shown in \Cref{sec:preliminaries}, the node constraint $\ensuremath{\mathcal{N}}_{\Pi'}$ can be constructed in the following way: take all the configurations allowed by the node constraint $\ensuremath{\mathcal{N}}_{\Pi}$, and replace each label $\ell(\mathcal{C})$ with the disjunction of all the labels of $\Pi'$ that, before the renaming, contain $\ell(\mathcal{C})$. Note that, after the renaming, the labels that contain $\ell(\mathcal{C})$ are exactly all the labels $\ell(\mathcal{C}')$ such that $\mathcal{C} \subseteq \mathcal{C}'$. Hence, from each configuration $\ell(\mathcal{C}_1) \mspace{1mu} \ldots \mspace{1mu} \ell(\mathcal{C}_\Delta)$ in $\ensuremath{\mathcal{N}}_{\Pi}$, we obtain the configuration itself, plus all the configurations $\ell(\mathcal{C}'_1) \mspace{1mu} \ldots \mspace{1mu} \ell(\mathcal{C}'_\Delta)$ such that for all $1\le j\le\Delta$, $\mathcal{C}_j \subseteq \mathcal{C}'_j$. By Observation \ref{obs:supersets}, these configurations are also in $\ensuremath{\mathcal{N}}_{\Pi}$. Hence $\ensuremath{\mathcal{N}}_{\Pi'}=\ensuremath{\mathcal{N}}_{\Pi}$. \paragraph{\boldmath Labels of $\Pi''$.} In order to prove that $\Pi$ is a fixed point, we show that problem $\Pi''$, defined as $\Pi''=\re(\Pi')=\rere(\re(\Pi))$, after a specific renaming, is the same as problem $\Pi$. By definition, $\Sigma_{\Pi''} \subseteq 2^{\Sigma_{\Pi'}}$. We rename the labels in $\Sigma_{\Pi''}$ as follows. Each label set $\{\ell(\mathcal{C}_1),\ldots,\ell(\mathcal{C}_h)\}$ is renamed to label $\ell(\mathcal{C})=\ell(\bigcap_{1\le j\le h}\mathcal{C}_j)$, that is, a label that consists of sets of colors is mapped to a label that consists of the intersection of the sets of colors. This renaming gives a label-set that contains labels of the form $\ell(\mathcal{C})$, where $\mathcal{C}\in 2^\mathfrak{C}$ and $\mathfrak{C}=\{1,\dotsc,\Delta\}$. Hence, after this renaming, $\Sigma_{\Pi''}=\Sigma_{\Pi}$. Note that different original labels, such that the intersection of their sets gives the same set, are mapped to the same label. We prove that, under this renaming, $\Pi'' = \Pi$. \paragraph{\boldmath Node Constraint of $\Pi''$} We now characterize the node constraint $\ensuremath{\mathcal{N}}_{\Pi''}$ of $\Pi''$, and show that it is equal to $\ensuremath{\mathcal{N}}_{\Pi}$. First of all, by definition of the round elimination framework, before renaming, $\ensuremath{\mathcal{N}}_{\Pi''}$ contains all and only configurations $\L_1 \mspace{1mu} \ldots \mspace{1mu} \L_\Delta$, such that, for any choice $(\ell(\mathcal{C}_1),\dotsc,\ell(\mathcal{C}_\Delta)) \in \L_1\times\ldots\times\L_\Delta$, we get a configuration that is in $\ensuremath{\mathcal{N}}_{\Pi'}=\ensuremath{\mathcal{N}}_{\Pi}$. We claim that, after the proposed renaming, $\ensuremath{\mathcal{N}}_{\Pi''} = \ensuremath{\mathcal{N}}_{\Pi}$. We prove our claim by performing multiple partial renamings. Let $\L_1 \mspace{1mu} \ldots \mspace{1mu} \L_\Delta$ be an arbitrary configuration in $\ensuremath{\mathcal{N}}_{\Pi''}$. Consider an arbitrary label $\L_i = \{\ell(\mathcal{C}_1), \ldots, \ell(\mathcal{C}_k)\}$ in the configuration. Create the label $\L'_i = \{\ell(\mathcal{C}_1 \cap \mathcal{C}_2), \ell(\mathcal{C}_3), \ldots, \ell(\mathcal{C}_k)\}$, that is, replace $\ell(\mathcal{C}_{1}), \ell(\mathcal{C}_{2})$ by their intersection. In the following lemma, we prove that also the configuration obtained by replacing $\L_i$ with $\L'_i$ satisfies that, for any choice over this configuration, we get a configuration that is in $\ensuremath{\mathcal{N}}_{\Pi'}=\ensuremath{\mathcal{N}}_{\Pi}$. If we repeat this process many times, until every set $\L_i$ contains a single label, then we get the exact same result that we would have obtained by directly replacing each set of labels by their intersection. But this implies that, under the proposed renaming, we get exactly the same configurations that appear in $\ensuremath{\mathcal{N}}_{\Pi'}$, and hence our claim follows. \begin{lemma}\label{lem:intersection} Let $\L_1\mspace{1mu}\L_2\mspace{1mu}\dotsc\mspace{1mu}\L_\Delta$ be a configuration in $\ensuremath{\mathcal{N}}_{\Pi''}$. Let $\L_t = \{\ell(\mathcal{C}_t^1), \ldots, \ell(\mathcal{C}_t^h)\}$ be an arbitrary label in the configuration, and let $\ell(\mathcal{C}')=\ell(\mathcal{C}_t^{1} \cap \mathcal{C}_t^{2})$. If we replace the label set $\L_t$ with $\L'_t = \{\ell(\mathcal{C}'), \ell(\mathcal{C}_t^3), \ldots, \ell(\mathcal{C}_t^h)\}$, we get a configuration that is in $\ensuremath{\mathcal{N}}_{\Pi''}$. \end{lemma} \begin{proof} W.l.o.g., suppose $t=\Delta$. Let $\L_{\Delta}^{1\cap 2} = \{ \ell(\mathcal{C}')\}$, and let $\L_{\Delta}^{3+} = \{\ell(\mathcal{C}_\Delta^3), \ldots, \ell(\mathcal{C}_\Delta^h)\}$. Since by assumption $\L_1\mspace{1mu}\dotsc\mspace{1mu} \L_{\Delta-1} \mspace{1mu} \L_{\Delta}^{3+}$ already satisfies the universal quantifier of the round elimination framework, we only need to prove that $\L_1\mspace{1mu}\dotsc\mspace{1mu} \L_{\Delta-1}\mspace{1mu} \L_{\Delta}^{1\cap 2}$ is a configuration in $\ensuremath{\mathcal{N}}_{\Pi''}$, that is, for any choice $(\ell(\mathcal{C}_1),\dotsc,\ell(\mathcal{C}_{\Delta-1}))\in\L_1\times\dotsc\times\L_{\Delta-1}$, we get that $\ell(\mathcal{C}_1)\mspace{1mu}\dotsc\mspace{1mu}\ell(\mathcal{C}_{\Delta -1})\mspace{1mu}\ell(\mathcal{C}')$ is a configuration in $\ensuremath{\mathcal{N}}_{\Pi}$. We prove our claim by contradiction. Hence, assume that there exists a choice $C' = \ell(\mathcal{C}_1)\mspace{1mu}\dotsc\mspace{1mu}\ell(\mathcal{C}_{\Delta -1})\mspace{1mu}\ell(\mathcal{C}')$ that is not a configuration in $\ensuremath{\mathcal{N}}_{\Pi}$. Let $\mathcal{C}_\Delta = \mathcal{C}^1_\Delta$. By assumption, for any choice in $\L_1\mspace{1mu}\L_2\mspace{1mu}\dotsc\mspace{1mu}\L_\Delta$, we get a configuration in $\ensuremath{\mathcal{N}}_{\Pi}$. Hence, by the definition of $\ensuremath{\mathcal{N}}_{\Pi}$, we get the following: \begin{align*} \exists k \in \{1,\dotsc,\Delta\} \text{ and } 1\le i_1< \dotsc <i_k\le \Delta,& \text{ such that }\\ |S_1 = \mathcal{C}_{i_1}\cap \dotsc\cap \mathcal{C}_{i_k}|\ge \Delta -k+1.& \end{align*} Similarly, if we set $\mathcal{C}_\Delta = \mathcal{C}^2_\Delta$, we get the following: \begin{align*} \exists k' \in \{1,\dotsc,\Delta\} \text{ and } 1\le i'_1 < \dotsc <i'_k\le \Delta,& \text{ such that }\\ |S_2 = \mathcal{C}_{i'_1}\cap \dotsc\cap \mathcal{C}_{i'_{k'}}|\ge \Delta -k'+1.& \end{align*} Let $s_1$ be the number of sets $\mathcal{C}_i$, $i\in\{1,\dotsc,\Delta-1\}$, such that $S_1 \subseteq \mathcal{C}_i$ and $S_2 \not\subseteq \mathcal{C}_i$. Similarly, let $s_2$ be the number of sets $\mathcal{C}_{i'}$, $i'\in\{1,\dotsc,\Delta-1\}$, such that $S_2 \subseteq \mathcal{C}_{i'}$ and $S_1 \not\subseteq \mathcal{C}_{i'}$. Also, let $s$ be the number of labels $\mathcal{C}_j$, $j\in\{1,\dotsc,\Delta-1\}$, such that $S_1\cup S_2 \subseteq \mathcal{C}_j$. Consider the configuration $C = \ell(\mathcal{C}_1)\mspace{1mu}\dotsc\mspace{1mu}\ell(\mathcal{C}_{\Delta -1})\mspace{1mu}\ell(\mathcal{C}^1_\Delta)$. Depending on $\mathcal{C}^1_\Delta$, the number of sets that are supersets of $S_1$ is either $s+s_1$, or $s+s_1+1$. Hence, $s+s_1+1$ is an upper bound on the number of sets that are supersets of $S_1$. Since, by assumption, $C$ is a valid configuration of $\ensuremath{\mathcal{N}}_\Pi$, then $|S_1| \ge \Delta - (s+s_1+1) +1$. By applying the same reasoning on $S_2$, we obtain the following: \begin{align} |S_1| &\ge \Delta - (s+ s_1), \text{ and }\label{eq:s1}\\ |S_2| &\ge \Delta - (s+ s_2).\label{eq:s2} \end{align} Also, consider the configuration $C'$. If $|S_1 \cup S_2|\ge \Delta - s + 1$, then, since we can pick $s$ sets that are supersets of $S_1 \cup S_2$, we get that $C'$ satisfies the requirements for being a configuration in $\ensuremath{\mathcal{N}}_\Pi$, reaching a contradiction. Hence, we obtain the following: \begin{align} |S_1 \cup S_2 | &\le \Delta - s.\label{eq:union} \end{align} By combining \Cref{eq:s1}, \Cref{eq:s2}, and \Cref{eq:union}, we get that: \begin{align}\label{eq:intersection1} |S_1\cap S_2| &=|S_1| + |S_2| - |S_1\cup S_2|\\ &\ge (\Delta -s -s_1) + (\Delta -s -s_2) - (\Delta -s)\nonumber\\ &= \Delta -s -s_1 - s_2\nonumber. \end{align} If $S_1 \nsubseteq \mathcal{C}^1_\Delta$, then all the sets of $C$ that are supersets of $S_1$ are part of $\mathcal{C}_1,\ldots,\mathcal{C}_{\Delta-1}$, but this implies that also in $C'$ there are still $k$ sets that are supersets of $S_1$, and hence that $C'$ satisfies the requirements for being a configuration in $\ensuremath{\mathcal{N}}_\Pi$, reaching a contradiction. Hence, $S_1 \subseteq \mathcal{C}^1_\Delta$. For the same reason, $S_2 \subseteq \mathcal{C}^2_\Delta$. We thus get that $S_1 \cap S_2 \subseteq \mathcal{C}'$. If $|S_1 \cap S_2|\ge \Delta - (s + s_1 + s_2 + 1 )+ 1$, then, since from $C'$ we can pick $s+s_1+s_2+1$ sets that are supersets of $S_1 \cap S_2$, we get that that $C'$ satisfies the requirements for being a configuration in $\ensuremath{\mathcal{N}}_\Pi$, reaching a contradiction. Hence, we obtain the following: \begin{align} |S_1 \cap S_2| < \Delta - s - s_1 - s_2.\label{eq:intersection2} \end{align} But \Cref{eq:intersection1} is in contradiction with \Cref{eq:intersection2}. Hence, $C'$ is a valid configuration. \end{proof} \paragraph{\boldmath Edge Constraint of $\Pi''$.} We now characterize the edge constraint $\ensuremath{\mathcal{E}}_{\Pi''}$ of $\Pi''$. As shown in \Cref{sec:preliminaries}, the edge constraint $\ensuremath{\mathcal{E}}_{\Pi''}$ can be constructed in the following way: take all the configurations allowed by the edge constraint $\ensuremath{\mathcal{E}}_{\Pi'} = \ensuremath{\mathcal{E}}_{\Pi}$, and replace each label $\ell(\mathcal{C})$ with the disjunction of all the labels of $\Pi''$ that, before the renaming, contain $\ell(\mathcal{C})$. Note that, after the renaming, the labels that contain $\ell(\mathcal{C})$ are exactly all the labels $\ell(\mathcal{C}')$ such that $\mathcal{C}' \subseteq \mathcal{C}$. Hence, from each configuration $\ell(\mathcal{C}_1) \mspace{1mu} \ell(\mathcal{C}_2)$ in $\ensuremath{\mathcal{E}}_{\Pi}$, we obtain the configuration itself, plus all the configurations $\ell(\mathcal{C}'_1) \mspace{1mu} \ell(\mathcal{C}'_2)$ such that for all $1\le j\le 2$, $\mathcal{C}'_j \subseteq \mathcal{C}_j$. By Observation \ref{obs:subsets}, these configurations are also in $\ensuremath{\mathcal{E}}_{\Pi}$. Hence $\ensuremath{\mathcal{E}}_{\Pi''}=\ensuremath{\mathcal{E}}_{\Pi}$. \section{The Problem Family}\label{sec:family} In this section, we describe the family of problems that we use to prove our lower bounds. We first start from the formal definition, and then we provide some intuition behind its definition. Finally, we explain the relation between these problems and some other natural problems. \subsection{Problem Definition} Consider a vector $z$ of $\beta+1$ non-negative integers $z_0,\ldots, z_\beta$ and let $\mathrm{len}(z) = \beta$. We define $|z| = z_0 + \dots + z_\beta = |\mathfrak{C}|$, where $\mathfrak{C} = \{ C_{i,j} ~|~ 0 \le i \le \beta, 1 \le j \le z_i \}$ is a set of colors. Given a color $C_{i,j} \in \mathfrak{C}$, we define $\mathrm{level}(C_{i,j}) = i$, and given a set of colors $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$, we define $\mathrm{level}(\mathcal{C}) = \max\{ i ~|~ C_{i,j} \in \mathcal{C} \}$, where $\mathrm{level}(\emptyset) = -1$. Finally, let $\mathrm{prefix}(z)$ be the inclusive prefix sum of $z$, that is, $\mathrm{prefix}(z)_i = \sum_{j\le i} z_j$. Assume that $|z|\le\Delta$, then problem $\Pi_{\Delta}(z)$ is defined as follows. \paragraph{Labels.} The label set of problem $\Pi_{\Delta}(z)$ is defined as $\Sigma_{\Delta}(z) = \mathcal{P} \cup \mathcal{S}\cup \{\mathsf{X}\}$, where: \begin{itemize} \item $\mathcal{P}=\{ \P_i, \mathsf{U}_i ~|~ 1 \le i \le \beta \}$; \item $\mathcal{S}=\{ \ell(\mathcal{C}) ~|~ \mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}\}$. \end{itemize} \paragraph{Node Constraint.} The node constraint $\ensuremath{\mathcal{N}}_{\Delta}(z)$ of problem $\Pi_{\Delta}(z)$ contains the following allowed configurations for the nodes: \begin{itemize} \item $\ell(\mathcal{C})^{\Delta-x} \mspace{1mu} \mathsf{X}^x$, for each $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$, where $x = |\mathcal{C}|-1$; \item $\P_i \mspace{1mu} \mathsf{U}^{\Delta-1}_i$, for each $1 \le i \le \beta$. \end{itemize} \paragraph{Edge Constraint.} The edge constraint $\ensuremath{\mathcal{E}}_{\Delta}(z)$ of problem $\Pi_{\Delta}(z)$ contains the following allowed configurations for the edges: \begin{itemize} \item $\ell(\mathcal{C}_1) \mspace{1mu} \ell(\mathcal{C}_2)$, for all $\mathcal{C}_1, \mathcal{C}_2 \in 2^\mathfrak{C} \setminus \{\emptyset\}$ such that $\mathcal{C}_1 \cap\mathcal{C}_2 = \emptyset$; \item $\mathsf{U}_i \mspace{1mu} \mathsf{U}_j$, for each $1 \le i,j \le \beta$; \item $\mathsf{U}_i \mspace{1mu} \P_j$, for each $1 \le i < j \le \beta$; \item $\mathsf{U}_i \mspace{1mu} \ell(\mathcal{C})$, for each $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$ and $1 \le i \le \beta$; \item $\P_i \mspace{1mu} \ell(\mathcal{C})$, for all $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$ such that $\mathrm{level}(\mathcal{C}) < i$; \item $\mathsf{X} \mspace{1mu} \L$, for each $\L \in \Sigma_{\Delta}(z)$. \end{itemize} \paragraph{Edge Diagram.} In order to compute $\re(\Pi_\Delta(z))$, it will be helpful to know the relation between the labels of $\Pi_\Delta(z)$ according to the edge constraint $\ensuremath{\mathcal{E}}_{\Delta}(z)$. The following relation derives directly from the definition of $\ensuremath{\mathcal{E}}_{\Delta}(z)$. \Cref{fig:diagram} shows an example, for $\Pi_\Delta([1,2,1])$. \begin{observation}\label{lem:edgediagpi} The labels of $\Pi_\Delta(z)$ satisfy all and only the following strength relations w.r.t.\ $\ensuremath{\mathcal{E}}_{\Delta}(z)$. \begin{itemize} \item $\mathsf{U}_i < \mathsf{U}_j$, if $j < i$. \item $\P_i < \P_j$, if $i < j$. \item $\P_i < \mathsf{U}_j$, for all $i,j$. \item $\P_i < \ell(\mathcal{C})$, if, for all $C \in \mathcal{C}$, $\mathrm{level}(C) \ge i$. \item $\ell(\mathcal{C}) < \ell(\mathcal{C}')$, if $\mathcal{C}' \subseteq \mathcal{C}$. \item $\ell(\mathcal{C}) < \mathsf{U}_i$, if $\mathrm{level}(\mathcal{C}) \ge i$. \item $\L < \mathsf{X}$, for all $\L \in \Sigma_\Delta(z)$. \end{itemize} \end{observation} \begin{figure}[h] \centering \includegraphics[width=0.5\textwidth]{figs/diagram} \caption{The edge diagram of $\Pi_\Delta([1,2,1])$. Color $0$ is in level $0$, colors $1$ and $1'$ are in level $1$, and color $2$ is in level $2$. For the sake of readability, we omit $\ell(\cdot)$.} \label{fig:diagram} \end{figure} \subsection{Intuition Behind These Problems} The problem definition contains two main components, a part related to coloring, and a part related to pointers. We start by describing how to interpret the coloring part. Then, we will discuss how pointers can interact between themselves, and with the colors. \paragraph{Coloring Part.} Let $\mathfrak{C}$ be a color space and assume that it is split into $\beta+1$ levels. We can think of color $C_{i,j}$ to be the $j$-th color of level $i$. Nodes can either be colored (nodes outputting a configuration containing $\ell(\mathcal{C})$, for some $\mathcal{C}$), or uncolored (nodes outputting a configuration containing $\P_i$, for some $i$). Colored nodes may even have multiple colors assigned ($\mathcal{C}$ is a non-empty \emph{set} of colors). Colored nodes do not need to satisfy the requirements of a proper coloring, but it is enough to satisfy the requirements of an arbdefective coloring, that is, they can mark $x$ edges as outgoing (using label $\mathsf{X}$), and the nodes reachable through those edges are allowed to have the same color as them. If a node is colored with multiple colors, then, ignoring edges that are marked with $\mathsf{X}$ by at least one endpoint, the coloring constraints must be satisfied for \emph{all} colors assigned to that node: if a node is red \emph{and} blue, then no neighbor must be red, and no neighbor must be blue (in fact, the edge constraint requires that if two nodes output $\ell(\mathcal{C}_1) \mspace{1mu} \ell(\mathcal{C}_2)$, then $\mathcal{C}_1$ and $\mathcal{C}_2$ must be disjoint). The arbdefect $x$ allowed for a node depends on the number of colors assigned to that node: if a node has a single color assigned, then $x=0$, while if a node has two colors assigned, then $x=1$, and so on. In general, the node constraint allows $x = |\mathcal{C}|-1$. The idea here is that if a node manages to get more than $1$ colored assigned, then it is rewarded by being allowed to have a larger arbdefect. Note that the node constraint requires to have \emph{exactly} $x$ ports marked $\mathsf{X}$, but this is just a technicality: if a node wants to output $\mathsf{X}$ on \emph{at most} $x$ ports, then it can always change the output on some arbitrary ports to $\mathsf{X}$ and obtain \emph{exactly} $x$ ports marked $\mathsf{X}$, since $\mathsf{X}$ is compatible with any other label. \paragraph{Pointers Part.} Uncolored nodes must output pointers, and there are $\beta$ types of pointers ($\P_1, \ldots, \P_\beta$). We can think of pointer $\P_i$ to be of level $i$. The edge constraint allows pointers to point to either: \begin{itemize} \item nodes outputting a pointer of strictly lower level ($\P_j$ is compatible with $\mathsf{U}_i$ only if $i<j$), or \item nodes outputting a color set $\mathcal{C}$ such that all the colors of $\mathcal{C}$ are of lower levels ($\P_i \mspace{1mu} \mathcal{C}$ is allowed only if $\mathrm{level}(\mathcal{C}) < i$, that is, the maximum level of the colors in $\mathcal{C}$ is strictly less than $i$). \end{itemize} Except for these constraints, all the other ports of nodes outputting pointers are unconstrained: $\mathsf{U}_i$ can be neighbor with all other $\mathsf{U}$ labels, with all color sets, and with $\mathsf{X}$. Hence, pointers can be interpreted as follows. Pointers must form chains of length at most $\beta$, and these chains must reach colored nodes. Not all types of chains are allowed: if the chain terminates by pointing to a color of level $i$, then the chain must have length at most $\beta - i$. \subsection{Relation with Natural Problems.} We now provide some informal examples of what problems our family can capture. We make this more formal in \Cref{sec:corollaries}. \paragraph{$\Delta$-coloring.} Consider the case where $\beta=0$ (that is, we do not have pointers at all), and $\mathfrak{C} = \{1, \ldots, \Delta\}$. We can see that the obtained problem is a relaxation of the $\Delta$-coloring problem. \paragraph{Arbdefective Colorings.} When $\beta=0$, some variants of arbdefective coloring are captured as well. For example, if the color space contains $\Delta$ colors, then there exist $\lfloor \Delta/2 \rfloor$ disjoint sets of colors of size $2$. If nodes output sets of size $2$, then they are allowed to have arbdefect $1$. Hence, by letting each node of color $0 \le i < \lfloor \Delta/2 \rfloor$ output the configuration $\ell(\{C_{0,2i+1}, C_{0,2i+2}\})^{\Delta-1} \mspace{1mu} \mathsf{X}$, we get a problem that is a relaxation of the $1$-arbdefective $\lfloor \Delta/2 \rfloor$-coloring problem. \paragraph{Ruling Sets.} Consider the problem $\Pi$ in the family where the color space contains a single color, in level $0$, and there are $\beta$ possible pointers. In a solution for the $(2,\beta)$-ruling set problem, nodes in the set form an independent set, and nodes not in the set are at distance at most $\beta$ from nodes in the set. Hence, nodes can spend $\beta$ rounds to solve $\Pi$: nodes in the set output the single color of level $0$, and node not in the set output pointer chains based on their distance from the nodes in the set. \paragraph{\boldmath $\alpha$-Arbdefective $c$-Colored $\beta$-Ruling Sets.} This problem is a variant of ruling sets, where the nodes in the set do not need to satisfy the independence requirement, but they are only required to be $c$-colored with arbdefect at most $\alpha$. Note that, if we set $\alpha = 0$ and $c=1$, we get the $(2,\beta)$-ruling set problem. Hence, we can consider a problem of the family where the color space contains $c(1+\alpha)$ colors, all in level $0$, that allows us to have $c$ sets of colors with arbdefect $\alpha$, and a solution for $\alpha$-arbdefective $c$-colored $\beta$-ruling sets can be converted in $\beta$ rounds into a solution for the problem in the family. \paragraph{Other Problems.} In all the examples made until now, all colors of the color space were in level $0$, but our family of problems is more general. For example, our family contains a relaxation of the following problem. Nodes can either be colored or uncolored. There are two groups of colors. One of the two groups is allowed to have some arbdefect, while the other group is allowed some different arbdefect. Uncolored nodes must have either at least one node colored with a color of the first group at distance at most $3$, or a one node with a color from the second group at distance at most $2$. \section{Lower Bounds}\label{sec:sequence} In this section, we prove some properties about the problems in our family. In particular, we show that there exists a long sequence of problems, all contained in the family, such that the first problem of the sequence is a relaxation of a problem for which we want to prove a lower bound, and then for each problem in the sequence it holds that: \begin{itemize} \item It is not $0$-round solvable; \item It is at least $1$ round harder than the next problem in the sequence; \item It can be described with a small amount of labels. \end{itemize} By combining the first two properties, we obtain that a sequence of $T$ problems implies a lower bound of $T$ rounds for the first problem in the port numbering model. As we will see later, in order to lift this lower bound to the \ensuremath{\mathsf{LOCAL}}\xspace model, we also need the third property: the number of labels used to describe the problems in the family should stay small. In order to construct this sequence, we start in \Cref{ssec:relation} by computing $\Pi' = \re(\Pi_{\Delta}(z))$, and prove some properties about it. While it is easy to check that $\Pi_\Delta(z)$ contains at most $2^\Delta + 2 \mathrm{len}(z) \le 2^\Delta(1 + \mathrm{len}(z))$ labels if $|z| \le \Delta$, we also make sure that the intermediate problem $\Pi'$ can also be described with that amount of labels. We continue, in \Cref{sec:keytec}, where we show the core part of our proof, that is, we apply the universal quantifier on $\re(\Pi_\Delta(z))$. Then, in \Cref{sec:relaxrerere}, we show that $\rere(\re(\Pi_\Delta(z)))$ can be relaxed to $\Pi_\Delta(\mathrm{prefix}(z)))$, implying that if $\Pi_{\Delta}(z)$ can be solved in $T$ rounds, then $\Pi_{\Delta}(\mathrm{prefix}(z))$ can be solved in at most $T-1$ rounds. By combining \Cref{ssec:relation},\Cref{sec:keytec}, and \Cref{sec:relaxrerere}, we obtain the following lemma. \begin{lemma}\label{lem:pn1step} Let $z' = \mathrm{prefix}(z)$, and assume that $|z'| \le \Delta$ if $\mathrm{len}(z') = 0$, and $|z'| \le \Delta-1$ otherwise. Let $\Pi'=\re(\Pi_{\Delta}(z))$. Then, $\Pi_{\Delta}(z')$ is a relaxation of $\rere(\Pi')$. The number of labels of $\Pi_{\Delta}(z)$, $\Pi'$, and $\Pi_{\Delta}(z')$ is upper bounded by $2^\Delta(1 + \mathrm{len}(z))$. \end{lemma} We continue, in \Cref{ssec:zero}, by showing that, unless $|z|$ is too large, $\Pi_{\Delta}(z)$ cannot be solved in $0$ rounds in the port numbering model. In this way, we obtain all the requirements mentioned before. We conclude, in \Cref{ssec:sequence}, by combining all the ingredients and give a lower bound on the length of the problem sequence. \subsection{\boldmath Computing $\re(\Pi_\Delta(z))$}\label{ssec:relation} Recall the definition of $\Pi_\Delta(z)$, and define $\mathsf{U}_0 := \ell(\emptyset) := \mathsf{X}$. The following lemma computes $\re(\Pi_{\Delta}(z))$. \begin{lemma}\label{lem:repi} The label set of problem $\re(\Pi_{\Delta}(z))$ is \begin{align*} \Sigma_{\re} := \{ \gen{\P_i, \ell(\mathcal{C})} \mid 1 \leq i \leq \beta, \mathcal{C} \in 2^{\mathfrak{C}}, \mathrm{level}(\mathfrak{C} \setminus \mathcal{C}) \leq i - 1 \} \cup \{ \gen{\mathsf{U}_i, \ell(\mathcal{C})} \mid \mathcal{C} \in 2^{\mathfrak{C}}, \mathrm{level}(\mathcal{C}) \leq i \leq \beta \}. \end{align*} Its edge constraint $\ensuremath{\mathcal{E}}_{\re}$ consists of the following configurations: \begin{align*} &\gen{\P_i, \ell(\mathcal{C})} \mspace{1mu} \gen{\mathsf{U}_{i-1}, \ell(\mathfrak{C} \setminus \mathcal{C})} &\textrm{ for all $1 \leq i \leq \beta$ and $\mathcal{C} \in 2^{\mathfrak{C}}$ satisfying } \mathrm{level}(\mathfrak{C} \setminus \mathcal{C}) \leq i - 1,& \textrm{ and}\\ &\gen{\mathsf{U}_{\beta}, \ell(\mathcal{C})} \mspace{1mu} \gen{\mathsf{U}_{\beta}, \ell(\mathfrak{C} \setminus \mathcal{C})} &\textrm{ for all $\mathcal{C} \in 2^{\mathfrak{C}}$}.& \end{align*} Its node constraint $\ensuremath{\mathcal{N}}_{\re}$ consists of all configurations $\mathsf{B}_1 \mspace{1mu} \dots \mspace{1mu} \mathsf{B}_{\Delta}$ with labels $\mathsf{B}_i \in \Sigma_{\re}$ such that there exists some configuration $ \mathsf{A}_1 \dots \mathsf{A}_{\Delta} \in \ensuremath{\mathcal{N}}_{\Delta}(z)$ with $\mathsf{A}_i \in \mathsf{B}_i$ for all $1 \leq i \leq \Delta$. \end{lemma} \begin{proof} Consider an arbitrary configuration $\mathsf{B}_1 \mspace{1mu} \mathsf{B}_2$ in the edge constraint $\ensuremath{\mathcal{E}}_{\re}$ of $\re(\Pi_{\Delta}(z))$. We will show that $\mathsf{B}_1 \mspace{1mu} \mathsf{B}_2$ is of the form stated in the lemma. We consider two cases. Consider first the case that at least one of $\mathsf{B}_1$ and $\mathsf{B}_2$ (which, by the definition of $\re(\cdot)$ are sets of labels from $\Sigma_{\Delta}(z)$) contains a label from $\{ \P_1, \dots, \P_\Delta\}$. Let $i$ be the smallest index for which $\P_i$ is contained in $\mathsf{B}_1$ or $\mathsf{B}_2$, and assume w.l.o.g.\ that $\P_i \in \mathsf{B}_1$. Let $\mathcal{C} \in 2^\mathfrak{C}$ be the set of all colors $C \in \mathfrak{C}$ such that there exists a set $\mathcal{C}'$ containing $C$ for which $\ell(\mathcal{C}') \in \mathsf{B}_1$ (possibly $\mathcal{C} = \emptyset$). Observe that $\mathsf{B}_2$ cannot contain any label $\ell(\mathcal{C}'')$ such that $\mathcal{C}'' \cap \mathcal{C} \neq \emptyset$ since otherwise there exist $\mathcal{C}', \mathcal{C}'' \in 2^\mathfrak{C}$ such that $\ell(\mathcal{C}') \in \mathsf{B}_1$, $\ell(\mathcal{C}'') \in \mathsf{B}_2$, and $\mathcal{C}' \cap \mathcal{C}'' \neq \emptyset$, which is a contradiction to the definition of $\re(\Pi_{\Delta}(z))$ (as $\mathcal{C}' \cap \mathcal{C}'' \neq \emptyset$ implies that $\ell(\mathcal{C}') \mspace{1mu} \ell(\mathcal{C}'') \notin \ensuremath{\mathcal{E}}_\Delta(z)$). Similarly, for any $1 \leq j \leq \beta$, set $\mathsf{B}_2$ does not contain $\P_j$ since $\mathsf{B}_1$ contains $\P_i$, and $\P_i \mspace{1mu} \P_j \notin \ensuremath{\mathcal{E}}_\Delta(z)$. Since, for any $\mathsf{A} \in \Sigma_{\Delta}(z) \setminus \left( \{ \ell(\mathcal{C}'') \mid \mathcal{C}'' \cap \mathcal{C} \neq \emptyset \} \cup \{ \P_1, \dots, \P_\Delta \} \right)$, we have $\ell(\mathcal{C}) \mspace{1mu} \mathsf{A} \in \ensuremath{\mathcal{E}}_\Delta(z)$, it follows that $\ell(\mathcal{C}) \in \mathsf{B}_1$, by maximality. Hence, $\mathsf{B}_1$ contains $\ell(\mathcal{C})$ and $\P_i$, but not any $\P_j$ with $j < i$ (by the definition of $i$) and not any $\ell(\mathcal{C}'')$ with $\mathcal{C}'' \nsubseteq \mathcal{C}$ (by the definition of $\mathcal{C}$). By \Cref{lem:edgediagpi} and the fact that by \Cref{obs:rcs} $\mathsf{B}_1$ is right-closed w.r.t.\ $\ensuremath{\mathcal{E}}_{\Delta}(z)$, it follows that the labels in $\mathsf{B}_1$ are exactly the labels from $\Sigma_\Delta(z)$ that are successors of $\ell(\mathcal{C})$ (w.r.t.\ $\ensuremath{\mathcal{E}}_{\Delta}(z)$) or $\P_i$, i.e., we have $\mathsf{B}_1 = \gen{\P_i, \ell(\mathcal{C})}$. Note further that the right-closedness of $\mathsf{B}_1$, together with \Cref{lem:edgediagpi} and the fact that $\P_i \in \mathsf{B}_1$, implies that $\mathsf{B}_1$ contains $\ell(\{C\})$ for all $C \in \mathfrak{C}$ satisfying $\mathrm{level}(C) \geq i$. Hence, $\mathrm{level}(\mathfrak{C} \setminus \mathcal{C}) \leq i - 1$, by the definition of $\mathcal{C}$. By the definition of $\re(\cdot)$ (in particular by maximality), the set $\mathsf{B}_2$ consists of precisely those labels $\mathsf{A} \in \Sigma_{\Delta}(z)$ that satisfy $\mathsf{A} \mspace{1mu} \mathsf{A}' \in \ensuremath{\mathcal{E}}_{\re}$ for all $\mathsf{A}' \in \mathsf{B}_1$. By going through the labels in $\Sigma_{\Delta}(z)$ and checking whether this property holds (by going through the list of edge configurations of $\Pi_\Delta(z)$), we see that $\mathsf{B}_2 = \{ \ell(\mathcal{C}') \mid \mathcal{C}' \in 2^\mathfrak{C}\setminus\{\emptyset\}, \mathcal{C}' \subseteq \mathfrak{C} \setminus \mathcal{C} \} \cup \{ \mathsf{U}_1, \dots, \mathsf{U}_{i-1} \} \cup \{ \mathsf{X} \}$. Note that, for any nonempty $\mathcal{C}' \subseteq \mathfrak{C} \setminus \mathcal{C}$ and any $i \leq j \leq \beta$, we have $\ell(\mathcal{C}') \mspace{1mu} \P_j \in \ensuremath{\mathcal{E}}_{\re}$ since $\mathrm{level}(\mathfrak{C} \setminus \mathcal{C}) \leq i - 1$, as observed above. Now, by \Cref{lem:edgediagpi}, the fact that by \Cref{obs:rcs} $\mathsf{B}_2$ is right-closed w.r.t.\ $\ensuremath{\mathcal{E}}_{\Delta}(z)$, and the fact that $\mathrm{level}(\mathfrak{C} \setminus \mathcal{C}) \leq i - 1$, we obtain that $B_2 = \gen{\mathsf{U}_{i-1}, \ell(\mathfrak{C} \setminus \mathcal{C})}$. It follows that $B_1 \mspace{1mu} B_2 = \gen{\P_i, \ell(\mathcal{C})} \mspace{1mu} \gen{\mathsf{U}_{i-1}, \ell(\mathfrak{C} \setminus \mathcal{C})}$, where $\mathrm{level}(\mathfrak{C} \setminus \mathcal{C}) \leq i - 1$, as desired. Consider now the second case, namely that both $\mathsf{B}_1$ and $\mathsf{B}_2$ do not contain any label from $\{ \P_1, \dots, \P_\Delta\}$. Again, let $\mathcal{C} \in 2^\mathfrak{C}$ be the set of all colors $C \in \mathfrak{C}$ such that there exists a set $\mathcal{C}'$ containing $C$ for which $\ell(\mathcal{C}') \in \mathsf{B}_1$. Similarly to above, we obtain that $\mathsf{B}_2$ does not contain any label $\ell(\mathcal{C}'')$ such that $\mathcal{C}'' \cap \mathcal{C} \neq \emptyset$, and that $\ell(\mathcal{C}) \in \mathsf{B}_1$. Also, observe that, by maximality, both $\mathsf{B}_1$ and $\mathsf{B}_2$ contain $\mathsf{U}_\beta$ since $\mathsf{U}_\beta \mspace{1mu} \mathsf{A} \in \ensuremath{\mathcal{E}}_{\re}$ for any $\mathsf{A} \in \Sigma_\Delta(z) \setminus \{\P_1, \dots, \P_\Delta\}$, and $\mathsf{B}_1$ and $\mathsf{B}_2$ do not contain any label from $\{ \P_1, \dots, \P_\Delta\}$. Since $\mathsf{B}_1$ contains $\ell(\mathcal{C})$ and $\mathsf{U}_\beta$, but not any $\P_j$ and not any $\ell(\mathcal{C}'')$ with $\mathcal{C}'' \nsubseteq \mathcal{C}$, we obtain $B_1 = \gen{\mathsf{U}_{\beta}, \ell(\mathcal{C})}$, by \Cref{lem:edgediagpi} and the fact that by \Cref{obs:rcs} $\mathsf{B}_1$ is right-closed w.r.t.\ $\ensuremath{\mathcal{E}}_{\Delta}(z)$. Moreover, with an analogous argumentation for computing $\mathsf{B}_2$ as in the first case, we obtain $\mathsf{B}_2 = \gen{\mathsf{U}_{\beta}, \ell(\mathfrak{C} \setminus \mathcal{C})}$. Hence, also in this second case $\mathsf{B}_1 \mspace{1mu} \mathsf{B}_2$ is of a form given in the lemma statement. It is straightforward to verify that the edge configurations given in the lemma statement are indeed contained in $\ensuremath{\mathcal{E}}_{\re}$, by checking that any two labels picked from the two sets in the considered configuration indeed form an edge configuration of $\Pi_\Delta(z)$, and that for both sets it holds that any label that is not in the set cannot be added to the set without violating this property. Hence, the edge constraint $\ensuremath{\mathcal{E}}_{\re}$ is precisely as given in the lemma. Moreover, by collecting all labels (i.e., sets of labels from $\Pi_{\Delta}(z)$) that appear in $\ensuremath{\mathcal{E}}_{\re}$, we obtain precisely the label set $\Sigma_{\re}$ given in the lemma. Finally, the statement about the node constraint $\ensuremath{\mathcal{N}}_{\re}$ follows from the definition of $\re(\cdot)$. \end{proof} We now prove a property about the labels of $\re(\Pi_{\Delta}(z))$. \begin{lemma}\label{lem:abc123} Assume $|z| \le \Delta$ if $\mathrm{len}(z) = 0$, and $|z| \le \Delta-1$ otherwise. For all $\mathsf{A}, \mathsf{B} \in \Sigma_{\re}$ it holds that, if $\mathsf{A} \le \mathsf{B}$ according to $\ensuremath{\mathcal{N}}_{\re}$, then $\mathsf{A} \subseteq \mathsf{B}$. \end{lemma} \begin{proof} Assume that $\mathsf{A} \not\subseteq \mathsf{B}$, and let $a \in \Sigma_\Delta(z)$ be a label contained in $\mathsf{A} \setminus \mathsf{B}$. We prove that $\mathsf{A} \not\le \mathsf{B}$. For a contradiction, assume that $\mathsf{A} \le \mathsf{B}$. Consider some configuration $a \mspace{1mu} \ell_2 \mspace{1mu} \ldots \mspace{1mu} \ell_\Delta \in \ensuremath{\mathcal{N}}_\Delta(z)$. Note that, by \Cref{lem:repi} and by \Cref{lem:edgediagpi}, for each label $\ell \in \Sigma_{\Delta}(z)$, there is the label $\gen{\ell}$ in $\Sigma_{\re}$. Hence, by \Cref{lem:repi}, the configuration $\mathsf{A} \mspace{1mu} \gen{\ell_2} \mspace{1mu} \ldots \mspace{1mu} \gen{\ell_\Delta}$ is in $\ensuremath{\mathcal{N}}_{\re}$. Since $\mathsf{A} \le \mathsf{B}$, then the configuration $\mathsf{B} \mspace{1mu} \gen{\ell_2} \mspace{1mu} \ldots \mspace{1mu} \gen{\ell_\Delta}$ must also be in $\ensuremath{\mathcal{N}}_{\re}$. By the definition of $\ensuremath{\mathcal{N}}_{\re}$, there must exists a configuration $b \mspace{1mu} \ell'_2 \mspace{1mu} \ldots \ell'_\Delta \in \ensuremath{\mathcal{N}}_\Delta(z)$ that is in $\mathsf{B} \times \gen{\ell_2} \times \ldots \times \gen{\ell_\Delta}$. Since, by \Cref{obs:rcs}, $B$ is right-closed, then the fact that $a \notin \mathsf{B}$ implies that also all labels that are at least as weak as $a$ (according to $\ensuremath{\mathcal{E}}_{\Delta}(z)$) are not in $\mathsf{B}$. This implies that $b$ is not as least as weak as $a$ according to $\ensuremath{\mathcal{E}}_{\Delta}(z)$, since otherwise $a$ would be a successor of $b$, and $b$ being in $B$ would imply $a$ being in $B$. Also, since $\ell'_i \in \gen{\ell_i}$ for all $2 \le i \le \Delta$, then we also have that $\ell_i \le \ell'_i$. Summarizing, there must be two configurations, $a \mspace{1mu} \ell_2 \mspace{1mu} \ldots \mspace{1mu} \ell_\Delta$ and $b \mspace{1mu} \ell'_2 \mspace{1mu} \ldots \ell'_\Delta$, that are both contained in $\ensuremath{\mathcal{N}}_\Delta(z)$, satisfying that, according to $\ensuremath{\mathcal{E}}_{\Delta}(z)$, $b \not\le a$ (implying that either $a < b$, or that $a$ and $b$ are uncomparable), and $\ell_i \le \ell'_i$ for all $2 \le i \le \Delta$. We show that all configurations of $\ensuremath{\mathcal{N}}_\Delta(z)$ do not satisfy these requirements, reaching a contradiction. In $\ensuremath{\mathcal{N}}_\Delta(z)$ there are two types of configurations: $\ell(\mathcal{C})^{\Delta-x} \mspace{1mu} \mathsf{X}^x$ (color configurations), and $\P_i \mspace{1mu} \mathsf{U}^{\Delta-1}_i$ (pointer configurations). We consider three cases separately. \begin{itemize} \item Both configurations are color configurations, $C_1 = \ell(\mathcal{C}_1)^{\Delta-x_1} \mspace{1mu} \mathsf{X}^{x_1}$ and $C_2 = \ell(\mathcal{C}_2)^{\Delta-x_2} \mspace{1mu} \mathsf{X}^{x_2}$. Assume w.l.o.g.\ that $x_1 \le x_2$. By assumption on $z$, $x_2 \le \Delta - 1$. Also by the definition of $\ensuremath{\mathcal{N}}_\Delta(z)$, $|\mathcal{C}_1| \le |\mathcal{C}_2|$. Hence $\mathcal{C}_1$ cannot be the set of all colors, implying that $x_2 \le \Delta - 2$. In this case, $a$ cannot be $\mathsf{X}$ (since $b$ must be a label strictly stronger than $a$ or uncomparable with $a$, but $\mathsf{X}$ is at least as strong as any other label). Hence, $a$ must be either $\ell(\mathcal{C}_1)$ or $\ell(\mathcal{C}_2)$. If $a = \ell(\mathcal{C}_1)$ and $b = \ell(\mathcal{C}_2)$, then by \Cref{lem:edgediagpi}, since $b \not \le a$, then $\mathcal{C}_1 \not\subseteq \mathcal{C}_2$, that, together with the fact that $|\mathcal{C}_1| \le |\mathcal{C}_2|$ implies that both $\mathcal{C}_1$ and $\mathcal{C}_2$ are not the set containing all colors. Hence, $x_1 \le x_2 \le \Delta-2$, implying that there exists some $i$ such that $\ell'_i = \ell(\mathcal{C}_2)$. Then, $\ell_i$ must be either $\mathsf{X}$ or $\ell(\mathcal{C}_1)$, but both of them are not as weak as $\ell(\mathcal{C}_2)$ because of \Cref{lem:edgediagpi} and the fact that $|\mathcal{C}_1| \le |\mathcal{C}_2|$. If $a = \ell(\mathcal{C}_1)$ and $b = \mathsf{X}$, then there must exist some index $2 \le i \le \Delta$ such that $\ell'_i = \ell(\mathcal{C}_2)$, but $\ell(\mathcal{C}_2)$ is not a successor of either $\ell(\mathcal{C}_1)$ or $\mathsf{X}$, by \Cref{lem:edgediagpi} and the fact that $|\mathcal{C}_1| \le |\mathcal{C}_2|$. If $a = \ell(\mathcal{C}_2)$ and $b = \mathsf{X}$, then since $x_2 \ge x_1$, then there must exist some index $2 \le i \le \Delta$ such that $\ell_i = \mathsf{X}$ and $\ell'_i = \ell(\mathcal{C}_1)$, that is now allowed. If $a = \ell(\mathcal{C}_2)$ and $b = \ell(\mathcal{C}_1)$, then, if $a < b$, then by \Cref{lem:edgediagpi}, we obtain that $x_1 < x_2$. This implies that there exists some $2 \le i \le \Delta$ such that $\ell_i = \mathsf{X}$, and $\ell'_i = \ell(\mathcal{C}_1)$, which is not allowed. If $a$ and $b$ are uncomparable, then then there must exist some $2 \le i \le \Delta$ such that $\ell_i = \ell(\mathcal{C}_2)$ or $\ell_i = \mathsf{X}$, and $\ell'_i = \ell(\mathcal{C}_1)$. In both cases, we have $\ell_i \not\le \ell'_i$. \item Both configurations are pointer configurations, $C_1 = \P_i \mspace{1mu} \mathsf{U}^{\Delta-1}_i$ and $C_2 = \P_j \mspace{1mu} \mathsf{U}^{\Delta-1}_j$. Assume w.l.o.g.\ that $i < j$. Note that, according to \Cref{lem:edgediagpi}, $\P_i < \P_j < \mathsf{U}_j < \mathsf{U}_i$. If $b = \P_i$, and $a = \P_j$ or $a = \mathsf{U}_j$, then we obtain that $b < a$, which is not allowed. If $b = \mathsf{U}_i$, then there exists some $2 \le i \le \Delta$ such that $\ell'_i = \P_i$. Then, $\ell_i$ is either $\P_j$ or $\mathsf{U}_j$, implying that $\ell'_i < \ell_i$, which is not allowed. If $b = \P_j$, then $a$ cannot be $\mathsf{U}_i$, since $\P_j < \mathsf{U}_i$. Hence, $a = \P_i$. In this case, $\ell'_2 = \mathsf{U}_j$ and $\ell_2 = \mathsf{U}_i$, and we obtain $\ell'_2 < \ell_2$, which is not allowed. If $b = \mathsf{U}_j$, then $a$ cannot be $\mathsf{U}_i$, since $\mathsf{U}_j < \mathsf{U}_i$. Hence, $a = \P_i$. Also, there must exist some $2 \le i \le \Delta$ such that $\ell'_i = \P_j$. Then, $\ell_i$ is $\mathsf{U}_i$, implying that $\ell'_i < \ell_i$, which is not allowed. \item One configuration is a color configuration $C_1 = \ell(\mathcal{C})^{\Delta-x} \mspace{1mu} \mathsf{X}^{x}$, and the other is a pointer configuration $C_2 = \P_i \mspace{1mu} \mathsf{U}^{\Delta-1}_i$. It is not possible that $a = \mathsf{X}$, since we need that $b \not\le a$, but $\mathsf{X}$ is at least as strong as any other label. If $a = \ell(\mathcal{C})$ and $x \ge 1$, then there must be some $i$ such that $\ell_i = \mathsf{X}$, and since $\ell_i \le \ell'_i$, then $\ell'_i = \mathsf{X}$, which is a contradiction. If $a = \ell(\mathcal{C})$ and $x = 0$, then for all $2 \le i \le \Delta$, $\ell_i = \ell(\mathcal{C})$. In order to have $\ell_i \le \ell'_i$, by \Cref{lem:edgediagpi} it must hold that $\mathrm{level}(\mathcal{C}) \ge i$, since for some $i$, it holds that $\ell'_i = \mathsf{U}_i$. For the same reason, it must hold that for all $2 \le i \le \Delta$, $\ell'_i \neq \P_i$. Hence, $b = \P_i$. Since $x=0$, then $|\mathcal{C}| = 1$, implying that for all $C \in \mathcal{C}$, $\mathrm{level}(C) \ge i$, and hence that $\P_i < \ell(\mathcal{C})$, and hence that $b < a$, which is not allowed. If $a = \P_i$, then, for all $2 \le i \le \Delta$, $\ell_i = \mathsf{U}_i$. By \Cref{lem:edgediagpi}, for all $\mathcal{C}$ it holds that $\mathsf{U}_i \not \le \ell(\mathcal{C})$. Hence, for all $2 \le i \le \Delta$, $\ell'_i$ must be $\mathsf{X}$, but this is not possible, since the existence of the configuration $C_2$ implies that $\mathrm{len}(z) > 0$, and hence that $|z| \le \Delta-1$, and thus that $x \le \Delta-2$. If $a = \mathsf{U}_i$, by \Cref{lem:edgediagpi} we either have that $b = \mathsf{X}$, or that $b = \ell(\mathcal{C})$ and $\mathrm{level}(\mathcal{C}) < i$. If $b = \mathsf{X}$ then there must exist some $i$ such that $\ell'_i = \ell(\mathcal{C})$ such that $\ell_i = \mathsf{U}_i$ (since it must hold that $x \le \Delta-2$), but this is not allowed. If $b = \ell(\mathcal{C})$ and $\mathrm{level}(\mathcal{C}) < i$, then there must be some $i$ such that $\ell'_i = \ell(\mathcal{C})$ and $\ell_i$ is either $\P_i$ or $\mathsf{U}_i$. Since $\mathrm{level}(\mathcal{C}) < i$, then both are not as weak as $\ell(\mathcal{C})$. \end{itemize} \end{proof} Recall the definition of a relaxation of a node configuration in~\Cref{def:noderelax}. The second and much more complicated step we have to perform is to show that $\rere(\re(\Pi_\Delta(z)))$ can be relaxed to $\Pi_\Delta(z')$, where $z' = \mathrm{prefix}(z)$. Our key technical lemma is given in the following. Recall that we set $\mathsf{U}_0 := \mathsf{X}$. \begin{lemma}\label{lem:keytec} Assume $|z| \le \Delta$ if $\mathrm{len}(z) = 0$, and $|z| \le \Delta-1$ otherwise. Then each node configuration of $\rere(\re(\Pi_\Delta(z)))$ can be relaxed to \begin{align*} &\gen{\gen{\P_i}} \mspace{1mu} \gen{\gen{\mathsf{U}_i}}^{\Delta - 1} &\textrm{ for some }1 \leq i \leq \beta&, \textrm{ or}\\ &\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}^{\Delta - |\mathcal{C}| - i + j + 1} \mspace{1mu} \gen{\gen{X}}^{|C| + i - j - 1} &\textrm{ for some }\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}, 0 \leq i, j \leq \beta&\\ &&\textrm{satisfying }\mathrm{level}(\mathcal{C}) \leq j\textrm{ and }i \in \{ j, j+1 \}&, \end{align*} where we set $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}} := \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}}$ if $j = 0$. \end{lemma} \subsection{Proof of Lemma~\ref{lem:keytec}}\label{sec:keytec} Throughout this section, assume $|z| \le \Delta$ if $\mathrm{len}(z) = 0$, and $|z| \le \Delta-1$ otherwise. Let $\ensuremath{\mathcal{N}}'$ denote the set of configurations given in Lemma~\ref{lem:keytec}, and $\ensuremath{\mathcal{N}}_{\rere}$ the node constraint of $\rere(\re(\Pi_\Delta(z)))$. We prove Lemma~\ref{lem:keytec} by showing that any configuration with labels from $2^{\Sigma_{\re}} \setminus \{\emptyset\}$ that cannot be relaxed to any configuration from $\ensuremath{\mathcal{N}}'$ is not contained in $\ensuremath{\mathcal{N}}_{\rere}$. Let $\mathcal{S} = \S_1 \mspace{1mu} \dots \mspace{1mu} \S_\Delta$ be an arbitrary configuration with labels from $2^{\Sigma_{\re}} \setminus \{\emptyset\}$ that cannot be relaxed to any configuration from $\ensuremath{\mathcal{N}}'$. If at least one of the $\S_k$ is not right-closed (w.r.t.\ $\ensuremath{\mathcal{N}}_{\re}$), then, by Observation~\ref{obs:rcs}, $\mathcal{S}$ is not contained in $\ensuremath{\mathcal{N}}_{\rere}$, and we are done. Hence, assume throughout the remainder of the section that all $S_k$ are right-closed. In the following, we collect some properties that $\mathcal{S}$ satisfies due to the fact that it cannot be relaxed to any configuration from $\ensuremath{\mathcal{N}}'$. Observe that, by definition, the $\S_k$ are sets of sets of labels from $\Sigma_{\Delta}(\Pi)$. \begin{lemma}\label{lem:confprop} The configuration $\mathcal{S}$ satisfies the following two properties. \begin{enumerate} \item\label{item:color} For any $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$, $0 \leq i, j \leq \beta$ satisfying $\mathrm{level}(\mathcal{C}) \leq j$ and $i \in \{ j, j+1 \}$, there exist at least $|\mathcal{C}| + i - j$ indices $k \in \{1, \dots, \Delta\}$ such that there exists some set $\mathsf{Q}_k \in \S_k$ satisfying \begin{enumerate} \item\label{item:colorone} $\mathsf{U}_i \notin \mathsf{Q}_k$ or $\ell(\mathcal{C}) \notin \mathsf{Q}_k$, \textbf{and} \item\label{item:colortwo} $\P_j \notin \mathsf{Q}_k$ if $j > 0$. \end{enumerate} \item\label{item:pointer} For any $1 \leq i \leq \beta$, \begin{enumerate} \item there exist sets $\mathsf{Q}_1 \in \S_1, \dots, \mathsf{Q}_\Delta \in \S_\Delta$ such that $\P_i \notin \mathsf{Q}_k$ for all $1 \leq k \leq \Delta$, \textbf{or} \item there exists some index $1 \leq k \leq \Delta$ and a set $\mathsf{Q}_k \in \S_k$ such that $\mathsf{U}_i \notin \mathsf{Q}_k$. \end{enumerate} \end{enumerate} \end{lemma} \begin{proof} Suppose for a contradiction that the lemma does not hold. Then $\mathcal{S}$ violates property~\ref{item:color} or property~\ref{item:pointer}. Consider first the case that $\mathcal{S}$ violates property~\ref{item:color}, and let $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$, $0 \leq i, j \leq \beta$ be a choice for which property~\ref{item:color} is violated, i.e., we have $\mathrm{level}(\mathcal{C}) \leq j$ and $i \in \{ j, j+1 \}$, and there exist at most $|\mathcal{C}| + i - j - 1$ indices $k \in \{1, \dots, \Delta\}$ such that there is some set $\mathsf{Q}_k \in \S_k$ satisfying properties~\ref{item:colorone} and~\ref{item:colortwo}. W.l.o.g., let these indices be $\Delta - |\mathcal{C}| - i + j + 2, \dots, \Delta$. Then, for any $1 \leq k \leq \Delta - |\mathcal{C}| - i + j + 1$, and any set $\mathsf{Q}_k \in \S_k$, property~\ref{item:colorone} is violated or property~\ref{item:colortwo} is violated, i.e., 1) $\mathsf{U}_i \in \mathsf{Q}_k$ and $\ell(\mathcal{C}) \in \mathsf{Q}_k$, or 2) $\P_j \in \mathsf{Q}_k$ and $j > 0$. If the former holds, then, since by \Cref{obs:rcs} $\mathsf{Q}_k$ is right-closed w.r.t.\ $\ensuremath{\mathcal{E}}_{\Delta}(z)$, we have $\gen{\mathsf{U}_i, \ell(\mathcal{C})} \subseteq \mathsf{Q}_k$, and we obtain, by Observation~\ref{obs:subsetarrow}, that $\mathsf{Q}_k$ is at least as strong as $\gen{\mathsf{U}_i, \ell(\mathcal{C})}$ according to $\ensuremath{\mathcal{N}}_{\re}$, which implies $\mathsf{Q}_k \in \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}}$. If the latter holds, then $\gen{\P_j} \subseteq \mathsf{Q}_k$ and $j > 0$, and we analogously obtain that $\mathsf{Q}_k \in \gen{\gen{\P_j}}$ (and $j > 0$). Since, for any $1 \leq j \leq \beta$, we have $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}} \subseteq \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}$ and $\gen{\gen{\P_j}} \subseteq \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}$ (by the definition of $\gen{\cdot}$), it follows that $\mathsf{Q}_k \in \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}$ (where we set $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}} := \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}}$ if $j = 0$). Note that this property holds for any $\mathsf{Q}_k \in \S_k$. Hence, for any $1 \leq k \leq \Delta - |\mathcal{C}| - i + j + 1$, we have $\S_k \subseteq \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}$, which implies that $\mathcal{S}$ can be relaxed to the configuration $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}^{\Delta - |\mathcal{C}| - i + j + 1} \mspace{1mu} \gen{\gen{X}}^{|C| + i - j - 1}$, yielding a contradiction to the fact that $\mathcal{S}$ cannot be relaxed to any configuration from $\ensuremath{\mathcal{N}}'$. Here we used that any set of labels from $\Sigma_{\re}$ is a subset of $\gen{\gen{\mathsf{X}}}$, which follows from Observation~\ref{obs:subsetarrow}, the fact that by \Cref{obs:rcs} the sets in $\Sigma_{\re}$ are right-closed w.r.t\ $\ensuremath{\mathcal{E}}_{\Delta}(z)$, and the fact that $\mathsf{X}$ is at least as strong as any label in $\Sigma_{\Delta}(z)$ (which in turn follows from \Cref{lem:edgediagpi}). Now consider the second case, namely that $\mathcal{S}$ violates property~\ref{item:pointer}, and let $1 \leq i \leq \beta$ be a choice for which property~\ref{item:pointer} is violated, i.e., we have that 1) there exists an index $1 \leq k' \leq \Delta$ such that any set $\mathsf{Q}_{k'} \in \S_{k'}$ satisfies $\P_i \in \mathsf{Q}_{k'}$, and 2) for any $1 \leq k \leq \Delta$ and any $\mathsf{Q}_k \in \S_k$, we have $\mathsf{U}_i \in \mathsf{Q}_k$. W.l.o.g., assume that $k' = 1$. By an analogous argumentation to the one from the first case, we obtain $\mathsf{Q}_1 \in \gen{\gen{\P_i}}$ for any $\mathsf{Q}_1 \in \S_1$, and $\mathsf{Q}_k \in \gen{\gen{\mathsf{U}_i}}$ for any $k \in \{2, \dots, \Delta\}$ and any $\mathsf{Q}_k \in \S_k$. Hence, $\S_1 \subseteq \gen{\gen{\P_i}}$, and $\S_k \subseteq \gen{\gen{\mathsf{U}_i}}$ for any $2 \leq k \leq \Delta$. It follows that $\mathcal{S}$ can be relaxed to the configuration $\gen{\gen{\P_i}} \mspace{1mu} \gen{\gen{\mathsf{U}_i}}^{\Delta - 1}$, again obtaining a contradiction to the fact that $\mathcal{S}$ cannot be relaxed to any configuration from $\ensuremath{\mathcal{N}}'$. \end{proof} Recall that in order to prove Lemma~\ref{lem:keytec}, we want to show that certain configurations with labels from $2^{\Sigma_{\re}} \setminus \{\emptyset\}$ are not contained in $\ensuremath{\mathcal{N}}_{\rere}$. To this end, the following lemma gives a useful sufficient condition for the property that a configuration is not contained in $\ensuremath{\mathcal{N}}_{\rere}$. \begin{lemma}\label{lem:notsteptwo} Let $\mathsf{D}_1 \mspace{1mu} \dots \mspace{1mu} \mathsf{D}_\Delta$ be a configuration with labels from $2^{\Sigma_{\re}} \setminus \{\emptyset\}$. Assume that there exists some $(\mathsf{B}_1, \dots, \mathsf{B}_\Delta) \in \mathsf{D}_1 \times \dots \times \mathsf{D}_\Delta$ satisfying that \begin{enumerate} \item\label{item:intercolor} for each $\mathcal{C} \in 2^{\mathfrak{C}} \setminus \{\emptyset\}$, there are at least $|\mathcal{C}|$ indices $k \in \{ 1, \dots, \Delta \}$ such that $\ell(\mathcal{C}) \notin \mathsf{B}_k$, \textbf{and} \item\label{item:interpointer} there exists some $0 \leq i \leq \beta$ such that \begin{enumerate} \item\label{item:interpointerone} if $i \geq 1$, then $\P_i \notin \mathsf{B}_k$ for all $1\leq k \leq \Delta$, \textbf{and} \item\label{item:interpointertwo} if $i \leq \beta - 1$, then there exists some index $1 \leq k \leq \Delta$ such that $\mathsf{U}_{i+1} \notin \mathsf{B}_k$. \end{enumerate} \end{enumerate} Then $\mathsf{D}_1 \mspace{1mu} \dots \mspace{1mu} \mathsf{D}_\Delta \notin \ensuremath{\mathcal{N}}_{\rere}$. \end{lemma} \begin{proof} Let $\mathcal{B} = \mathsf{B}_1 \mspace{1mu} \dots \mspace{1mu} \mathsf{B}_\Delta$ be a configuration with labels from $\Sigma_{\re}$ satisfying properties~\ref{item:intercolor} and~\ref{item:interpointer}. By the definition of $\rere(\cdot)$, in order to prove the lemma, it suffices to show that $\mathsf{B} \notin \ensuremath{\mathcal{N}}_{\re}$. Assume for a contradiction that $\mathsf{B} \in \ensuremath{\mathcal{N}}_{\re}$, and recall that the labels in $\mathsf{B}$ are sets of labels from $\Sigma_{\Delta}(z)$. By the definition of $\re(\cdot)$, it follows that there exists some $(\mathsf{A}_1, \dots, \mathsf{A}_\Delta) \in \mathsf{B}_1 \times \dots \times \mathsf{B}_\Delta$ such that $\mathcal{A} := \mathsf{A}_1 \mspace{1mu} \dots \mspace{1mu} \mathsf{A}_\Delta \in \ensuremath{\mathcal{N}}_\Delta(z)$. If $\mathcal{A} = \ell(\mathcal{C})^{\Delta - |\mathcal{C}| + 1} \mspace{1mu} \mathsf{X}^{|\mathcal{C}| - 1}$ for some $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$, then $\mathcal{B}$ violates property~\ref{item:intercolor}. Hence, $\mathcal{A}$ is not of this form, which implies that $\mathcal{A} = \P_j \mspace{1mu} \mathsf{U}_j^{\Delta-1}$ for some $1 \le j \le \beta$. W.l.o.g., assume that $\mathsf{A}_1 = \P_j$ and $\mathsf{A}_k = \mathsf{U}_j$ for any $2 \leq k \leq \Delta$. By Observation~\ref{obs:rcs} and \Cref{lem:edgediagpi}, it follows that $\P_i \in \mathsf{B}_1$ for all $j \leq i \leq \beta$, and $\mathsf{U}_i \in \mathsf{B}_k$ for all $1 \leq i \leq j$ and $1 \leq k \leq \Delta$. Thus, for each $0 \leq i \leq j-1$, configuration $\mathcal{B}$ violates property~\ref{item:interpointertwo}, and, for each $j \leq i \leq \beta$, configuration $\mathcal{B}$ violates property~\ref{item:interpointerone}. Hence, $\mathcal{B}$ violates property~\ref{item:interpointer}, which yields the desired contradiction. \end{proof} For a set $V'$ of nodes of a graph $G$, let $N_G(V')$ denote the set of all nodes of $G$ that are adjacent to at least one vertex from $V'$. In order to prove Lemma~\ref{lem:keytec}, we will make use of Hall's marriage theorem~\cite[Theorem 1]{hall} that can be stated as follows. \begin{theorem}[Hall]\label{thm:hall} Let $G = (V \cup W, E)$ be a bipartite graph such that, for each subset $V' \subseteq V$, we have $|N_G(V')| \geq |V'|$. Then there exists a matching in $G$ that matches all vertices from $V$. \end{theorem} In the following, we will combine \Cref{lem:confprop,lem:notsteptwo} and \Cref{thm:hall} to prove \Cref{lem:keytec}. Recall that to prove \Cref{lem:keytec} it suffices to show that $\mathcal{S} = \S_1 \mspace{1mu} \dots \mspace{1mu} \S_\Delta \notin \ensuremath{\mathcal{N}}_{\rere}$. To this end, we will show that there exists some $(\mathsf{B}_1, \dots, \mathsf{B}_\Delta) \in \S_1 \times \dots \times \S_\Delta$ satisfying properties~\ref{item:intercolor} and~\ref{item:interpointer} from \Cref{lem:notsteptwo}, and then apply \Cref{lem:notsteptwo}. Let $1 \leq i^* \leq \beta$ denote the largest index such that, for each $\S_k$ and each $\mathsf{Q}_k \in \S_k$, we have $\mathsf{U}_{i^*} \in \mathsf{Q}_k$. If no such index exists, i.e., if, for each $1 \leq i \leq \beta$, there exists some $1 \leq k \leq \Delta$ and some $\mathsf{Q}_k \in \S_k$ such that $\mathsf{U}_i \notin \mathsf{Q}_k$, then set $i^* := 0$. Consider the bipartite graph $G = (V \cup W, E)$ where $V = \mathfrak{C}$, $W = \{\S_1, \dots, \S_\Delta\}$, and there is an edge between some color $C \in V$ and some set $\S_k \in W$ if and only if there exists some $\mathsf{Q}_k \in \S_k$ satisfying 1) $\ell(\{ C \}) \notin \mathsf{Q}_k$ and 2) $\P_{i^*} \notin \mathsf{Q}_k$ if $i^* > 0$. Consider some arbitrary set $\mathcal{C} \in 2^\mathfrak{C} \setminus \{ \emptyset \}$, and set $i_{\max} := \max(i^*, \mathrm{level}(\mathcal{C}))$. By applying (property~\ref{item:color} of) \Cref{lem:confprop} with parameters $\mathcal{C}$ and $i = j = i_{\max}$, we obtain that there exist at least $|\mathcal{C}|$ indices $k \in \{1, \dots, \Delta\}$ such that there exists some set $\mathsf{Q}_k \in \S_k$ satisfying \begin{enumerate} \item\label{item:newcolorone} $\mathsf{U}_{i_{\max}} \notin \mathsf{Q}_k$ or $\ell(\mathcal{C}) \notin \mathsf{Q}_k$, and \item\label{item:newcolortwo} $\P_{i_{\max}} \notin \mathsf{Q}_k$ if $i_{\max} > 0$. \end{enumerate} Consider an arbitrary such $\mathsf{Q}_k$. If $i_{\max} = i^*$, then, by the definition of $i^*$, we have $\mathsf{U}_{i_{\max}} \in \mathsf{Q}_k$, and hence $\ell(\mathcal{C}) \notin \mathsf{Q}_k$ (by property~\ref{item:newcolorone}). If $i_{\max} \neq i^*$, then, by the definition of $i_{\max}$, we have $i_{\max} =\mathrm{level}(\mathcal{C})$, which implies that $\ell(\mathcal{C})$ is at least as weak as $\mathsf{U}_{i_{\max}}$ according to $\ensuremath{\mathcal{E}}_\Delta(z)$, by \Cref{lem:edgediagpi}. Since, by \Cref{obs:rcs}, $\mathsf{Q}_k$ is right-closed (w.r.t.\ $\ensuremath{\mathcal{E}}_\Delta(z)$), it follows that $\ell(\mathcal{C}) \in \mathsf{Q}_k$ would imply $\mathsf{U}_{i_{\max}} \in \mathsf{Q}_k$. Thus, by property~\ref{item:newcolorone}, we again obtain $\ell(\mathcal{C}) \notin \mathsf{Q}_k$. Hence, irrespective of whether $i_{\max} = i^*$ or $i_{\max} \neq i^*$, we have $\ell(\mathcal{C}) \notin \mathsf{Q}_k$. Moreover, observe that the characterization of $\Sigma_{\re}$ given in \Cref{lem:repi} implies, by \Cref{lem:edgediagpi}, that for every $\mathsf{B} \in \Sigma_{\re}$ there is a set $\mathcal{C}' \in 2^\mathfrak{C}$ such that, for every $\mathcal{C}'' \in 2^\mathfrak{C} \setminus \{ \emptyset \}$, we have $\ell(\mathcal{C}'') \in \mathsf{B}$ if and only if $\mathcal{C}'' \subseteq \mathcal{C}'$: if $\mathsf{B}$ is of the form $\gen{\P_{i'}, \ell(\mathcal{C}''')}$, then $\mathcal{C}' = \mathcal{C}'''$, and if $\mathsf{B}$ is of the form $\gen{\mathsf{U}_{i'}, \ell(\mathcal{C}''')}$, then also $\mathcal{C}' = \mathcal{C}'''$. We claim that there exists some $C \in \mathcal{C}$ such that $\ell(\{C\}) \notin \mathsf{Q}_k$. Assume for a contradiction that, for all $C \in \mathcal{C}$, we have $\ell(\{C\}) \in \mathsf{Q}_k$. Then, since $\mathsf{Q}_k \in \Sigma_{\re}$, the aforementioned characterization implies that there exists some $\mathcal{C}' \supseteq \bigcup_{C \in \mathcal{C}} \{ C \}$ such that $\ell(\mathcal{C}'') \in \mathsf{Q}_k$ for any $\mathcal{C}'' \subseteq \mathcal{C}'$. Since $\mathcal{C} \subseteq \mathcal{C}'$, we obtain $\ell(\mathcal{C}) \in \mathsf{Q}_k$, yielding the desired contradiction. Hence, there exists some $C \in \mathcal{C}$ such that $\ell(\{C\}) \notin \mathsf{Q}_k$. Furthermore, if $i^* > 0$, then, by \Cref{lem:edgediagpi}, $\P_{i^*} \leq \P_{i_{\max}}$, which implies $\P_{i^*} \notin \mathsf{Q}_k$, by property~\ref{item:newcolortwo} and the right-closedness of $\mathsf{Q}_k$ (which is due to \Cref{obs:rcs}). Combining the above insights, we obtain that there exist at least $|\mathcal{C}|$ indices $k \in \{1, \dots, \Delta\}$ such that there exists some set $\mathsf{Q}_k \in \S_k$ satisfying that \begin{enumerate} \item\label{item:obtainedone} there exists some color $C \in \mathcal{C}$ with $\ell(\{ C \}) \notin \mathsf{Q}_k$, and \item\label{item:obtainedtwo} $\P_{i^*} \notin \mathsf{Q}_k$ if $i^* > 0$. \end{enumerate} As this statement holds for any $\mathcal{C} \in 2^\mathfrak{C} \setminus \{ \emptyset \}$, we obtain, by the definition of $G$, that, for any subset $\mathcal{C} \subseteq V$, we have $N_G(\mathcal{C}) \geq |\mathcal{C}|$. By applying \Cref{thm:hall}, i.e., Hall's marriage theorem, we obtain that there exists some matching $M$ such that each $C \in \mathfrak{C} = V$ is matched. W.l.o.g., assume that the $\S_k$ that are matched are $\S_1, \dots, \S_{|\mathfrak{C}|}$. For each $C \in \mathfrak{C}$, denote the $\S_k$ color $C$ is matched to by $M(C)$. Similarly, for each $\S_k$ with $1 \leq k \leq |\mathfrak{C}|$, denote the color $C$ set $\S_k$ is matched to by $M(\S_k)$. Now, let $\mathcal{C}_{\leq i^*} \in 2^\mathfrak{C}$ denote the set of colors of level at most $i^*$. W.l.o.g., assume that the colors in $\mathcal{C}_{\leq i^*}$ are matched with the sets from $\{ \S_1, \dots, S_{|\mathcal{C}_{\leq i^*}|}\}$. Furthermore, observe that, if $i^* > 0$, then property~\ref{item:pointer} of \Cref{lem:confprop}, together with the definition of $i^*$, implies that for any $1 \leq k \leq \Delta$ there exists some set $\mathsf{Q}_k \in \S_k$ satisfying $\P_{i^*} \notin \mathsf{Q}_k$. Also, note that it follows from the definition of $i^*$ that $i^* = \beta$ or there exist some $1 \leq k \leq \Delta$ and some $\mathsf{Q}_k \in \S_k$ such that $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}_k$. If $i^* < \beta$, denote the largest index $k$ such that there exists some $\mathsf{Q}_k \in \S_k$ satisfying $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}_k$ by $k_{\max}$. We consider two cases. \newline \noindent{\textbf{\boldmath Case I: $i^* = \beta$, or $i^* < \beta$ and $k_{\max} > |\mathcal{C}_{\leq i^*}|$}} \noindent For each $1 \leq k \leq |\mathfrak{C}|$, set $\mathsf{B}_k$ to be some $\mathsf{Q}_k \in \S_k$ such that $\ell(\{M(\S_k)\}) \notin \mathsf{Q}_k$ and $\P_{i^*} \notin \mathsf{Q}_k$ if $i^* > 0$. Such a choice exists by the definition of $G$. If $i^* < \beta$, set $\mathsf{B}_{k_{\max}}$ to be some $\mathsf{Q}_{k_{\max}} \in \S_{k_{\max}}$ such that $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}_{k_{\max}}$ (overwriting the previous choice for $\mathsf{B}_{k_{\max}}$ if $k_{\max} \leq |\mathfrak{C}|$). If $i^* > 0$, then, for each $1 \leq k \leq \Delta$ for which $\mathsf{B}_k$ has not been set yet, set $\mathsf{B}_k$ to be some $\mathsf{Q}_k \in \S_k$ satisfying $\P_{i^*} \notin \mathsf{Q}_k$. Such a choice exists as shown above. If $i^* = 0$, then, for each $1 \leq k \leq \Delta$ for which $\mathsf{B}_k$ has not been set yet, set $\mathsf{B}_k$ to be some arbitrary $\mathsf{Q}_k \in \S_k$. We claim that the obtained tuple $(\mathsf{B}_1, \dots, \mathsf{B}_{\Delta}) \in \S_1 \times \dots \times \S_\Delta$ satisfies properties~\ref{item:intercolor} and~\ref{item:interpointer} of \Cref{lem:notsteptwo}. Consider first property~\ref{item:intercolor}, and consider some arbitrary $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$. Let $K$ denote the set of indices $1 \leq k \leq |\mathfrak{C}|$ such that $M(\S_k) \in \mathcal{C}$. As $M$ is a matching, we have $|K| = |\mathcal{C}|$. Consider some arbitrary $k \in K$. Since $1 \leq k \leq |\mathfrak{C}|$, we know, by the definition of $\mathsf{B}_k$, that 1) $\ell(\{M(\S_k)\}) \notin \mathsf{B}_k$, or 2) $i^* < \beta$, $k = k_{\max} \leq |\mathfrak{C}|$, and $\mathsf{U}_{i^* + 1} \notin \mathsf{B}_{k}$. In the latter case, recall that $k_{\max} > |\mathcal{C}_{\leq i^*}|$, which implies that $\mathrm{level}(M(\S_k)) \geq i^* + 1$. By \Cref{lem:edgediagpi}, it follows that $\ell(M(\S_k)) \leq \mathsf{U}_{i^* + 1}$, and, by the right-closedness of $\mathsf{B}_k$ (due to \Cref{obs:rcs}), we obtain $\ell(\{M(\S_k)\}) \notin \mathsf{B}_k$. Hence, in either case, we have $\ell(\{M(\S_k)\}) \notin \mathsf{B}_k$. Now, by \Cref{lem:edgediagpi} and the fact that $M(\S_k) \in \mathcal{C}$, we obtain $\ell(\mathcal{C}) \leq \ell(\{M(\S_k)\})$, which, by the right-closedness of $\mathsf{B}_k$, implies $\ell(\mathcal{C}) \notin \mathsf{B}_k$. Hence, for each $k \in K$, we have $\ell(\mathcal{C}) \notin \mathsf{B}_k$. Since $|K| = |\mathcal{C}|$, it follows that there are at least $|\mathcal{C}|$ indices $k \in \{1, \dots, \Delta\}$ such that $\ell(\mathcal{C}) \notin \mathsf{B}_k$, which shows that $(\mathsf{B}_1, \dots, \mathsf{B}_{\Delta})$ satisfies property~\ref{item:intercolor} of \Cref{lem:notsteptwo}. Now consider property~\ref{item:interpointer} of \Cref{lem:notsteptwo}. We show that this property holds for $(\mathsf{B}_1, \dots, \mathsf{B}_{\Delta})$ by showing that properties~\ref{item:interpointerone} and~\ref{item:interpointertwo} of \Cref{lem:notsteptwo} are satisfied when setting $i = i^*$. Consider first property~\ref{item:interpointerone}. If $i^* = 0$, then property~\ref{item:interpointerone} is trivially satisfied, hence assume $i^* > 0$. By the definition of the $\mathsf{B}_k$, we obtain, for each $1 \leq k \leq \Delta$ that $\P_{i^*} \notin \mathsf{B}_k$ or that $\mathsf{U}_{i^* + 1} \notin \mathsf{B}_{k}$, which also implies $\P_{i^*} \notin \mathsf{B}_k$, due to the right-closedness of $\mathsf{B}_k$ and the fact that $\P_{i^*} \leq \mathsf{U}_{i^* + 1}$ (which follows from \Cref{lem:edgediagpi}). Therefore, property~\ref{item:interpointerone} is satisfied. Now consider property~\ref{item:interpointertwo} of \Cref{lem:notsteptwo}. If $i^* = \beta$, then property~\ref{item:interpointertwo} is trivially satisfied, hence assume $i^* < \beta$. By the definition of the $\mathsf{B}_k$, we obtain $\mathsf{U}_{i^* + 1} \notin \mathsf{B}_k$ for $k = k_{\max}$, proving that also property~\ref{item:interpointertwo} is satisfied. Hence, $(\mathsf{B}_1, \dots, \mathsf{B}_{\Delta})$ satisfies also property~\ref{item:interpointer} of \Cref{lem:notsteptwo}. We conclude that $(\mathsf{B}_1, \dots, \mathsf{B}_{\Delta})$ satisfies the conditions given in \Cref{lem:notsteptwo}, and by applying \Cref{lem:notsteptwo}, we obtain $\S_1 \mspace{1mu} \dots \mspace{1mu} \S_\Delta \notin \ensuremath{\mathcal{N}}_{\rere}$, as desired. \newline \noindent{\textbf{\boldmath Case II: $i^* < \beta$ and $k_{\max} \leq |\mathcal{C}_{\leq i^*}|$}} \noindent The challenge that we have to overcome in Case II is that we cannot simply choose $\mathsf{B}_{k_{\max}}$ to be some $\mathsf{Q}_{k_{\max}} \in \S_{k_{\max}}$ such that $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}_{k_{\max}}$. Such a choice would make sure that property~\ref{item:interpointertwo} of \Cref{lem:notsteptwo} is satisfied, but it would not guarantee that the color $C$ that is matched to $\S_{k_{\max}}$ (or more precisely, the set $\{C\}$) satisfies the condition given in property~\ref{item:intercolor} of \Cref{lem:notsteptwo}. Our solution is to change the matching $M$ to another matching with the property that there is some $\S_k$ that is not matched to any color from $\mathcal{C}_{\leq i^*}$ but contains a set $\mathsf{Q}_k$ satisfying $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}_{k}$ (which allows us to choose $\mathsf{B}_k = \mathsf{Q}_k$ and thereby satisfy property~\ref{item:interpointertwo} without violating property~\ref{item:intercolor}). To this end, we essentially construct a suitable augmenting path along which we change the matching (while we will not use this exact terminology in the proof). Let $\mathcal{E} \subseteq \mathfrak{C}$ denote the set of colors $C$ such that there exists some set $\mathsf{Q} \in M(C)$ satisfying $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}$. By the definition of $k_{\max}$ and the fact that $k_{\max} \leq |\mathcal{C}_{\leq i^*}|$, we obtain that $\emptyset \neq \mathcal{E} \subseteq \mathcal{C}_{\leq i^*}$. Moreover, recall that $E$ denotes the set of edges of $G$, and recursively define sets $\mathcal{F}_1, \mathcal{F}_2, \dots$ (which are subsets of $\mathcal{C}_{\leq i^*}$) as follows. \begin{align*} \mathcal{F}_1 := &\ \{ C \in \mathcal{C}_{\leq i^*} \mid \text{there exists some $|\mathcal{C}_{\leq i^*}| + 1 \leq k \leq \Delta$ such that $\{C, \S_k\} \in E$} \},\\ \mathcal{F}_y := &\ \{ C \in \mathcal{C}_{\leq i^*} \setminus (\mathcal{F}_1 \cup \dots \cup \mathcal{F}_{y-1}) \mid \text{there exists some $C' \in \mathcal{F}_{y-1}$ such that $\{C, M(C')\} \in E$} \},\\ &\ \text{for all $y \geq 2$}. \end{align*} The following lemma shows that in this recursive definition, the $\mathcal{F}_y$ do not become empty before some $\mathcal{F}_y$ is reached that has a nonempty intersection with $\mathcal{E}$. \begin{lemma}\label{lem:eandf} Let $y$ be some positive integer. If $\mathcal{E} \cap (\mathcal{F}_1 \cup \dots \cup \mathcal{F}_{y-1}) = \emptyset$, then $\mathcal{F}_y \neq \emptyset$. \end{lemma} \begin{proof} Set $\mathcal{C} := \mathcal{C}_{\leq i^*} \setminus (\mathcal{F}_1 \cup \dots \cup \mathcal{F}_{y-1})$ and observe that $\mathrm{level}(\mathcal{C}) \leq \mathrm{level}(\mathcal{C}_{\leq i^*}) \leq i^*$ since $\mathcal{C} \subseteq \mathcal{C}_{\leq i^*}$. Observe further that $\mathcal{E} \cap (\mathcal{F}_1 \cup \dots \cup \mathcal{F}_{y-1}) = \emptyset$ implies $\mathcal{C} \neq \emptyset$ since $\emptyset \neq \mathcal{E} \subseteq \mathcal{C}_{\leq i^*}$ as observed above. Hence, by property~\ref{item:color} of \Cref{lem:confprop} (applied with parameters $\mathcal{C}$, $j = i^*$, and $i = i^* + 1$), we know that there exist at least $|\mathcal{C}| + 1$ indices $k \in \{1, \dots, \Delta\}$ such that there exists some set $\mathsf{Q}_k \in \S_k$ satisfying 1) $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}_k$ or $\ell(\mathcal{C}) \notin \mathsf{Q}_k$, and 2) $\P_{i^*} \notin \mathsf{Q}_k$ if $i^* > 0$. By the pigeonhole principle, it follows that there also exists such a $k$ additionally satisfying that $\S_k$ is not matched or $M(\S_k) \notin \mathcal{C}$; consider such a $k$. Since $\mathcal{E} \subseteq \mathcal{C}$, we obtain that $\S_k$ is not matched or $M(\S_k) \notin \mathcal{E}$. Observe that each $\S_{k'}$ such that there exists some $\mathsf{Q}_{k'} \in \S_{k'}$ with $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}_{k'}$ is matched (as, by the definition of $k_{\max}$, we have $k' \le k_{\max} \le |\mathcal{C}_{\leq i^*}|$, and, for each $k'' \leq \mathcal{C}_{\leq i^*}$, all $\S_{k''}$ are matched (with colors from $\mathcal{C}_{\leq i^*}$)) and satisfies $M(\S_{k'}) \in \mathcal{E}$ (by the definition of $\mathcal{E}$). Hence, for all $\mathsf{Q}_k \in \S_k$, we have $\mathsf{U}_{i^* + 1} \in \mathsf{Q}_k$. By the definition of $k$, it follows that there exists some set $\mathsf{Q}_k \in \S_k$ satisfying 1) $\ell(\mathcal{C}) \notin \mathsf{Q}_k$, and 2) $\P_{i^*} \notin \mathsf{Q}_k$ if $i^* > 0$. Recall that, as observed before, $\ell(\mathcal{C}) \notin \mathsf{Q}_k$ implies that there exists some $C \in \mathcal{C}$ such that $\ell(\{ C \}) \notin \mathsf{Q}_k$ (due to the characterization of $\Sigma_{\re}$ given in \Cref{lem:repi}). Consider such a $C$. By the definition of $G$, there is an edge between $C$ and $\S_k$. Recall that $C \in \mathcal{C}$ and that $\S_k$ is not matched or $M(\S_k) \notin \mathcal{C}$. If $y = 1$, then $\mathcal{C} = \mathcal{C}_{\leq i^*}$, and we obtain $|\mathcal{C}_{\leq i^*}| + 1 \leq k \leq \Delta$, which implies $C \in \mathcal{F}_1$. Thus, $\mathcal{F}_y \neq \emptyset$, as desired. Hence, assume that $y \geq 2$. Observe that we have $1 \leq k \leq |\mathcal{C}_{\leq i^*}|$ as otherwise $C \in \mathcal{F}_1$, which would contradict $C \in \mathcal{C} \subseteq \mathcal{C}_{\leq i^*} \setminus \mathcal{F}_1$. In particular, $\S_k$ is matched, and $M(\S_k) \in \mathcal{C}_{\leq i^*}$. Since $M(\S_k) \notin \mathcal{C}$, we have $M(\S_k) \in \mathcal{C}_{\leq i^*} \setminus \mathcal{C} = \mathcal{F}_1 \cup \dots \cup \mathcal{F}_{y-1}$. Since, by the definition of $\mathcal{F}_1, \mathcal{F}_2, \dots$, we have $\mathcal{F}_1 \cap \dots \cap \mathcal{F}_{y-1} = \emptyset$, it follows that there is precisely one $1 \leq y' \leq y-1$ such that $M(\S_k) \in \mathcal{F}_{y'}$. Again by the definition of $\mathcal{F}_1, \mathcal{F}_2, \dots$, we obtain that $C \in \mathcal{F}_{y' + 1}$. Since $C \in \mathcal{C} = \mathcal{C}_{\leq i^*} \setminus (\mathcal{F}_1 \cup \dots \cup \mathcal{F}_{y-1})$, we see that $y' = y - 1$. Hence, $C \in \mathcal{F}_y$, and we obtain $\mathcal{F}_y \neq \emptyset$, as desired. \end{proof} Since the $\mathcal{F}_y$ are subsets of (the finite set) $\mathcal{C}_{\leq i^*}$ and pairwise disjoint, there is some positive integer $y'$ with $\mathcal{F}_{y'} = \emptyset$. By \Cref{lem:eandf}, it follows that $\mathcal{E} \cap (\mathcal{F}_1 \cup \dots \cup \mathcal{F}_{y'-1}) \neq \emptyset$ (which also implies that $y' \geq 2$). Hence, there is some positive integer $y^*$ with $\mathcal{E} \cap \mathcal{F}_{y^*} \neq \emptyset$. Let $C'$ be some color contained in $\mathcal{E} \cap \mathcal{F}_{y^*}$. Let $C^{(1)}, \dots C^{(y^*)}$ be colors from $\mathcal{F}_1, \dots, \mathcal{F}_{y^*}$, respectively, such that $C^{(y^*)} = C'$ and, for any $1 \leq y \leq y^* - 1$, we have $\{ C^{(y+1)}, M(C^{(y)}) \} \in E$. Such $C^{(y)}$ exist due to the definition of the $\mathcal{F}_y$. Moreover, let $|\mathcal{C}_{\leq i^*}| + 1 \leq k' \leq \Delta$ be some index such that $\{C^{(1)}, \S_{k'}\} \in E$. If $\S_{k'}$ is matched in $M$, then $M(\S_{k'}) \in \mathfrak{C} \setminus \mathcal{C}_{\leq i^*}$, which implies that $\mathrm{level}(M(\S_{k'})) \geq i^* + 1$. Hence, in this case, $\ell(\{M(\S_{k'})\}) \leq \mathsf{U}_{i^* + 1}$, by \Cref{lem:edgediagpi}, and the fact that $M(C^{(y^*)})$ contains some set $\mathsf{Q}$ with $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}$ (which follows from $C^{(y^*)} \in \mathcal{E}$) implies that there is some $\mathsf{Q} \in M(C^{(y^*)})$ such that $\ell(\{M(\S_{k'})\}) \notin \mathsf{Q}$, by the right-closedness of $\mathsf{Q}$. If $i^* > 0$, then for any such $\mathsf{Q}$, the fact that $\P_{i^*} \leq \mathsf{U}_{i^* + 1}$ analogously implies $\P_{i^*} \notin \mathsf{Q}$, and it follows that in $G$ there is an edge between $M(\S_{k'})$ and $M(C^{(y^*)})$. Let $M'$ be the matching obtained from $M$ by \begin{enumerate} \item removing the edges in $M$ that are incident to some vertex from $\{ C^{1}, \dots, C^{(y^*)} \}$, \item\label{item:step2} if $\S_{k'}$ is matched in $M$, removing the corresponding matching edge, \item if $\S_{k'}$ was matched in $M$, adding edge $\{M(\S_{k'}), M(C^{(y^*)})\}$ \item adding edge $\{C^{(1)}, \S_{k'}\}$, and \item adding edge $\{ C^{(y+1)}, M(C^{(y)}) \}$, for each $1 \leq y \leq y^* - 1$. \end{enumerate} Note that all edges added to $M'$ are indeed edges in $G$, by the above discussion. Note further that for each added edge $e$, the two endpoints of $e$ were unmatched after step~\ref{item:step2}; hence, $M'$ is indeed a matching. Finally, observe that the construction of $M'$ ensures that each color $C \in \mathfrak{C}$ is matched in $M'$. For each vertex $v$ of $G$ that is matched in $M'$, denote the vertex that $v$ is matched to by $M'(v)$. Moreover, permute the indexing of the $\S_1, \dots, \S_\Delta$ such that the colors in $\mathfrak{C}$ are matched (in $M'$) to the sets in $\{\S_1, \dots, \S_{|\mathfrak{C}|}\}$, and the colors in $\mathcal{C}_{\leq i^*}$ are matched to the sets in $\{\S_1, \dots, \S_{|\mathcal{C}_{\leq i^*}|}\}$. Whenever we refer to some $\S_k$ in the remainder of the section, it is w.r.t.\ this new indexing (unless indicated otherwise). Let $k^*$ denote the new index of set $M(C^{(y^*)})$. By the construction of $M'$ and the above discussion, we know that $\S_{k^*}$ is unmatched in $M'$ or matched to some color from $\mathfrak{C} \setminus \mathcal{C}_{\leq i^*}$, implying that $k^* \geq |\mathcal{C}_{\leq i^*}| + 1$. Note that, due to $\S_{k^*} = M(C^{(y^*)})$, $C^{(y^*)} \in \mathcal{E}$, and the definition of $\mathcal{E}$, there is some set $\mathsf{Q}_{^*} \in \S_{k^*}$ such that $\mathsf{U}_{i^* + 1} \notin \mathsf{Q}_{k^*}$. Hence, according to the new indexing, $k_{\max} \ge k^* \ge |\mathcal{C}_{\leq i^*}| + 1$. Hence, we have essentially transformed the setting of Case II to the setting of Case I: by simply setting the $\mathsf{B}_k$ as in Case I (where we use matching $M'$ (instead of matching $M$), the new indexing, and the new definition of $k_{\max}$) and using the same proof as in Case I, we obtain $\S_1 \mspace{1mu} \dots \mspace{1mu} \S_\Delta \notin \ensuremath{\mathcal{N}}_{\rere}$, as before. (The only difference is that we do not have to deal with the case $i^* = \beta$ (as we cannot have $i^* = \beta$ in Case II), which only works in our favor.) We conclude that in either case we have $\S_1 \mspace{1mu} \dots \mspace{1mu} \S_\Delta \notin \ensuremath{\mathcal{N}}_{\rere}$, which shows that any configuration with labels from $2^{\Sigma_{\re}} \setminus \{\emptyset\}$ that cannot be relaxed to any configuration from $\ensuremath{\mathcal{N}}'$ is not contained in $\ensuremath{\mathcal{N}}_{\rere}$, and proves \Cref{lem:keytec}. \subsection{Relaxing $\rere(\re(\Pi_{\Delta}(z)))$}\label{sec:relaxrerere} Recall that we want to show that, if $\Pi_{\Delta}(z)$ can be solved in some number $T$ of rounds, then $\Pi_{\Delta}(z')$, where $z' = \mathrm{prefix}(z)$, can be solved in $T - 1$ rounds. To this end, we show that $\rere(\re(\Pi_{\Delta}(z)))$ can be relaxed to $\Pi_{\Delta}(z')$, using \Cref{lem:keytec}, and then make use of the fact that $\rere(\re(\Pi_{\Delta}(z)))$ can be solved one round faster than $\Pi_{\Delta}(z)$. Throughout this section, we assume that $|z| \le \Delta$ if $\mathrm{len}(z) = 0$, and $|z| \le \Delta-1$ otherwise (which is a requirement for applying \Cref{lem:keytec}). Recall that $\ensuremath{\mathcal{N}}'$ denotes the set of configurations given in Lemma~\ref{lem:keytec}, and $\ensuremath{\mathcal{E}}_{\re}$ the edge constraint of $\re(\Pi_{\Delta}(z))$. We start by defining a useful ``intermediate'' problem $\Pi^*$. We define the label set $\Sigma^*$ of $\Pi^*$ as the set containing all labels that appear in at least one of the node configurations in $\ensuremath{\mathcal{N}}'$, and we set the node constraint of $\Pi^*$ to be $\ensuremath{\mathcal{N}}^* := \ensuremath{\mathcal{N}}'$. Moreover, we define the edge constraint $\ensuremath{\mathcal{E}}^*$ to be the set of all cardinality-$2$ multisets $\mathsf{D}_1 \mspace{1mu} \mathsf{D}_2$ with $\mathsf{D}_1, \mathsf{D}_2 \in \Sigma^*$ such that there exist labels $\mathsf{B}_1 \in \mathsf{D}_1$ and $\mathsf{B}_2 \in \mathsf{D}_2$ satisfying $\mathsf{B}_1 \mspace{1mu} \mathsf{B}_2 \in \ensuremath{\mathcal{E}}_{\re}$. Note that, by definition, the labels in $\Sigma^*$ are sets of sets of labels from $\Sigma_\Delta(z)$. We prove that $\Pi^*$ is at least $1$ round easier than $\Pi_\Delta(z)$, unless $\Pi_\Delta(z)$ is already $0$-round solvable. \begin{lemma}\label{lem:relaxingworks} Assume that $|z| \le \Delta$ if $\mathrm{len}(z) = 0$, and $|z| \le \Delta-1$ otherwise, and let $T$ be some positive integer. If $\Pi_\Delta(z)$ can be solved in $T$ rounds in the deterministic port numbering model, then $\Pi^*$ can be solved in $\max\{T - 1,0\}$ rounds. \end{lemma} \begin{proof} Assume that $\Pi_\Delta(z)$ can be solved in $T$ rounds. Then, by \Cref{thm:rethm}, there is some $(T-1)$-round algorithm $\mathcal{A}$ solving $\Pi_{\Delta}(z)$. For each node $v$, denote the cardinality-$\Delta$ multiset of labels that $\mathcal{A}$ outputs at the half-edges incident to $v$ by $\mathcal{A}(v) = \{\mathsf{D}_1(v), \dots, \mathsf{D}_{\Delta}(v)\}$. We define a new $(T-1)$-round algorithm $\mathcal{A}'$ solving $\Pi^*$ as follows. Each node $v$ first executes $\mathcal{A}$ (in $T - 1$ rounds), and then (without any further communication) chooses a node configuration $\mathsf{D}'_1 \mspace{1mu} \dots \mspace{1mu} \mathsf{D}'_{\Delta} \in \ensuremath{\mathcal{N}}^*$ satisfying $\mathsf{D}_k \subseteq \mathsf{D}'_k$ for each $1 \leq k \leq \Delta$, and replaces $\mathsf{D}_k$ by $\mathsf{D}'_k$, for each $1 \leq k \leq \Delta$. Such choices exist due to \Cref{lem:keytec} and the fact that $\ensuremath{\mathcal{N}}^* = \ensuremath{\mathcal{N}}'$. Observe that, for each half-edge $h$, the label (i.e., set) $\mathcal{A}$ outputs at $h$ is a subset of the label $\mathcal{A}'$ outputs at $h$. It follows, by the correctness of $\mathcal{A}$ and the definitions of both $\ensuremath{\mathcal{E}}^*$ and the edge constraint of $\rere(\re(\Pi_{\Delta}(z)))$, that, for each edge $e$, the cardinality-$2$ multiset of labels that $\mathcal{A}'$ outputs at the half-edges belonging to $e$ is contained in $\ensuremath{\mathcal{E}}^*$. Hence, $\mathcal{A}'$ produces a correct output, which concludes the proof. \end{proof} We now explicitly characterize the configurations allowed by the edge constraint of $\Pi^*$. \begin{lemma}\label{lem:newedgestuff} The edge constraint $\ensuremath{\mathcal{E}}^*$ of $\Pi^*$ contains precisely the configurations \begin{itemize} \item $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}} \mspace{1mu} \gen{\gen{\mathsf{U}_{i'}, \ell(\mathcal{C}')}, \gen{\P_{j'}}}$ for all $\mathcal{C}, \mathcal{C}' \in 2^{\mathfrak{C}} \setminus \{ \emptyset \}, 0 \leq i, i', j, j' \leq \beta$ satisfying $\mathrm{level}(\mathcal{C}) \leq j, \mathrm{level}(\mathcal{C}') \leq j', i \in \{j, j+1\}, i' \in \{j', j'+1\}$, and \begin{enumerate} \item $\mathcal{C} \cap \mathcal{C}' = \emptyset$, or \item $i < j'$, or \item $i' < j$, \end{enumerate} \item $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}} \mspace{1mu} \gen{\gen{\mathsf{U}_{i'}}}$ for all $\mathcal{C} \in 2^{\mathfrak{C}} \setminus \{ \emptyset \}, 0 \leq i, j \leq \beta, 1 \leq i' \leq \beta$ satisfying $\mathrm{level}(\mathcal{C}) \leq j, i \in \{j, j+1\}$ \item $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}} \mspace{1mu} \gen{\gen{\P_{j'}}}$ for all $\mathcal{C} \in 2^{\mathfrak{C}} \setminus \{ \emptyset \}, 0 \leq i, j \leq \beta, 1 \leq j' \leq \beta$ satisfying $\mathrm{level}(\mathcal{C}) \leq j, i \in \{j, j+1\}$, and $i < j'$, \item $\gen{\gen{U_i}} \mspace{1mu} \gen{\gen{U_{i'}}}$ for all $1\leq i, i' \leq \beta$ \item $\gen{\gen{U_i}} \mspace{1mu} \gen{\gen{P_{j}}}$ for all $1\leq i < j \leq \beta$ \item $\gen{\gen{\mathsf{X}}} \mspace{1mu} \L$, for each $\L \in \Sigma^*$, \end{itemize} where, as before, we set $\mathsf{U}_0 := \mathsf{X}$ and $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_0}} := \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}}$. \end{lemma} \begin{proof} Consider some arbitrary sets $\mathsf{B}_1, \mathsf{B}_2, \mathsf{B}'_1, \mathsf{B}'_2 \in \Sigma_{\re}$ satisfying $\gen{\mathsf{B}_1, \mathsf{B}_2}, \gen{\mathsf{B}'_1, \mathsf{B}'_2} \in \Sigma^*$. We claim that $\gen{\mathsf{B}_1, \mathsf{B}_2} \mspace{1mu} \gen{\mathsf{B}'_1, \mathsf{B}'_2} \in \ensuremath{\mathcal{E}}^*$ if and only if at least one of the configurations $\mathsf{B}_1 \mspace{1mu} \mathsf{B}'_1$, $\mathsf{B}_1 \mspace{1mu} \mathsf{B}'_2$, $\mathsf{B}_2 \mspace{1mu} \mathsf{B}'_1$, $\mathsf{B}_2 \mspace{1mu} \mathsf{B}'_2$ is contained in $\ensuremath{\mathcal{E}}_{\re}$. The ``if'' part follows from the definitions of $\gen{\cdot}$ and $\ensuremath{\mathcal{E}}^*$. Now, assume that $\gen{\mathsf{B}_1, \mathsf{B}_2} \mspace{1mu} \gen{\mathsf{B}'_1, \mathsf{B}'_2} \in \ensuremath{\mathcal{E}}^*$. Then, by the definition of $\ensuremath{\mathcal{E}}^*$, there is some $(\mathsf{B}_3, \mathsf{B}'_3) \in \gen{\mathsf{B}_1, \mathsf{B}_2} \times \gen{\mathsf{B}'_1, \mathsf{B}'_2}$ satisfying $\mathsf{B}_3 \mspace{1mu} \mathsf{B}'_3 \in \ensuremath{\mathcal{E}}_{\re}$. By the definition of $\gen{\cdot}$, there exist some $q,r \in \{1, 2\}$ such that $\mathsf{B}_q \leq \mathsf{B}_3$ and $\mathsf{B}'_r \leq \mathsf{B}'_3$. By \Cref{lem:abc123}, it follows that $\mathsf{B}_q \subseteq \mathsf{B}_3$ and $\mathsf{B}'_r \subseteq \mathsf{B}'_3$. Since $\mathsf{B}_3 \mspace{1mu} \mathsf{B}'_3 \in \ensuremath{\mathcal{E}}_{\re}$, we obtain $\mathsf{B}_q \mspace{1mu} \mathsf{B}_r \in \ensuremath{\mathcal{E}}_{\re}$, by the definition of $\ensuremath{\mathcal{E}}_{\re}$. This proves the claim. Now, consider arbitrary labels $\mathsf{A}_1, \mathsf{A}_2, \mathsf{A}'_1, \mathsf{A}'_2 \in \Sigma_\Delta(z)$ satisfying $\gen{\mathsf{A}_1, \mathsf{A}_2}, \gen{\mathsf{A}'_1, \mathsf{A}'_2} \in \Sigma^{\re}$. By the definitions of $\gen{\cdot}$ and $\ensuremath{\mathcal{E}}_{\re}$, we obtain that $\gen{\mathsf{A}_1, \mathsf{A}_2} \mspace{1mu} \gen{\mathsf{A}'_1, \mathsf{A}'_2} \in \ensuremath{\mathcal{E}}^{\re}$ if and only if all of the configurations $\mathsf{A}_1 \mspace{1mu} \mathsf{A}'_1$, $\mathsf{A}_1 \mspace{1mu} \mathsf{A}'_2$, $\mathsf{A}_2 \mspace{1mu} \mathsf{A}'_1$, $\mathsf{A}_2 \mspace{1mu} \mathsf{A}'_2$ are contained in $\ensuremath{\mathcal{E}}_{\Delta}(z)$. Note that all of the above consideration also hold if the two arguments in $\gen{\cdot, \cdot}$ are identical. The above insights provide a simple method for checking whether a given configuration $\mathsf{D}_1 \mspace{1mu} \mathsf{D}_2$ with labels from $\Sigma^*$ is contained in $\ensuremath{\mathcal{E}}^*$: first (essentially) transform the given configuration into a Boolean formula where each literal corresponds to a configuration with labels from $\Sigma_{\Delta}(z)$ (or, more precisely, to whether said configuration is contained in $\ensuremath{\mathcal{E}}_\Delta(z)$), and second check for each ``appearing'' configuration whether it is contained in $\ensuremath{\mathcal{E}}_\Delta(z)$ by applying \Cref{lem:edgediagpi}. We illustrate this method for the arguably most complicated situation, namely that $\mathsf{D}_1$ and $\mathsf{D}_2$ are of the form $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}$. More precisely, consider the configuration $\mathsf{D}_1 \mspace{1mu} \mathsf{D}_2 = \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}} \mspace{1mu} \gen{\gen{\mathsf{U}_{i'}, \ell(\mathcal{C}')}, \gen{\P_{j'}}}$ where $\mathcal{C}, \mathcal{C}' \in 2^{\mathfrak{C}} \setminus \{ \emptyset \}, 0 \leq i, i', j, j' \leq \beta$ and $\mathrm{level}(\mathcal{C}) \leq j, \mathrm{level}(\mathcal{C}') \leq j', i \in \{j, j+1\}, i' \in \{j', j'+1\}$. By the above discussion, we obtain that $\mathsf{D}_1 \mspace{1mu} \mathsf{D}_2 \in \ensuremath{\mathcal{E}}^*$ if and only if at least one of $\gen{\mathsf{U}_i, \ell(\mathcal{C})}\mspace{1mu} \gen{\mathsf{U}_{i'}, \ell(\mathcal{C}')}$, $\gen{\mathsf{U}_i, \ell(\mathcal{C})} \mspace{1mu} \gen{\P_{j'}}$, $\gen{\P_j} \mspace{1mu} \gen{\mathsf{U}_{i'}, \ell(\mathcal{C}')}$, $\gen{\P_j} \mspace{1mu} \gen{\P_{j'}}$ is contained in $\ensuremath{\mathcal{E}}_{\re}$, which in turn happens if we have \begin{enumerate} \item $\mathsf{U}_i \mspace{1mu} \mathsf{U}_{i'} \in \ensuremath{\mathcal{E}}_\Delta(z)$ and $\mathsf{U}_i \mspace{1mu} \ell(\mathcal{C}') \in \ensuremath{\mathcal{E}}_\Delta(z)$ and $\ell(\mathcal{C}) \mspace{1mu} \mathsf{U}_{i'} \in \ensuremath{\mathcal{E}}_\Delta(z)$ and $\ell(\mathcal{C}) \mspace{1mu} \ell(\mathcal{C}') \in \ensuremath{\mathcal{E}}_\Delta(z)$, or \item $\mathsf{U}_i \mspace{1mu} \P_{j'} \in \ensuremath{\mathcal{E}}_\Delta(z)$ and $\ell(\mathcal{C}) \mspace{1mu} \P_{j'} \in \ensuremath{\mathcal{E}}_\Delta(z)$, or \item $\P_j \mspace{1mu} \mathsf{U}_{i'} \in \ensuremath{\mathcal{E}}_\Delta(z)$ and $\P_j \mspace{1mu} \ell(\mathcal{C}') \in \ensuremath{\mathcal{E}}_\Delta(z)$, or \item $\P_j \mspace{1mu} \P_{j'} \in \ensuremath{\mathcal{E}}_\Delta(z)$. \end{enumerate} If $j = 0$, resp.\ $j' = 0$, then the statements about the configurations containing $\P_j$, resp.\ $\P_{j'}$, do not appear. Now, by applying \Cref{lem:edgediagpi} to each of the $9$ substatements, we obtain that $\mathsf{D}_1 \mspace{1mu} \mathsf{D}_2 \in \ensuremath{\mathcal{E}}^*$ if and only if \begin{enumerate} \item $\mathcal{C} \cap \mathcal{C}' = \emptyset$, or \item $i < j'$, or \item $i' < j$, \end{enumerate} Note that we used here that $\mathrm{level}(\mathcal{C}) \leq i$ and $\mathrm{level}(\mathcal{C}') \leq i'$. In general, since each label in $\mathsf{D}_1 \mspace{1mu} \mathsf{D}_2$ is of one of the four forms $\gen{\gen{\P_i}}$, $\gen{\gen{\mathsf{U}_i}}$, $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}$, $\gen{\gen{X}}$, we obtain the lemma by applying an analogous argumentation to each pair of forms (which will yield the restrictions for $\mathcal{C}, \mathcal{C}', i, i', j, j'$ such that $\mathsf{D}_1 \mspace{1mu} \mathsf{D}_2 \in \ensuremath{\mathcal{E}}^*$ where $\mathsf{D}_1$ and $\mathsf{D}_2$ are of the chosen forms). \end{proof} We now prove that $\Pi_\Delta(\mathrm{prefix}(z))$ is a relaxation of $\rere(\re(\Pi_\Delta(z)))$. \begin{lemma}\label{lem:finallemma} Assume that $|z| \le \Delta$ if $\mathrm{len}(z) = 0$, and $|z| \le \Delta-1$ otherwise, and let $T$ be some positive integer. If $\Pi_\Delta(z)$ can be solved in $T$ rounds in the deterministic port numbering model, then $\Pi(z')$ can be solved in $T - 1$ rounds, where $z' = \mathrm{prefix}(z)$. \end{lemma} \begin{proof} Let $\mathfrak{C}$ denote the set of colors in $\Pi_\Delta(z)$. We identify the set $\mathfrak{C}'$ of colors in $\Pi_\Delta(z')$ with the set of pairs $(C,i)$ satisfying $C \in \mathfrak{C}$ and $\mathrm{level}(C) \leq i \leq \beta$. For some color $(C,i) \in \mathfrak{C}'$, set $\mathrm{level}((C,i)) = i$. This definition ensures that, for each $0 \leq j \leq \beta$, there are precisely $z'_j = z_0 + \dots + z_j$ many colors of level $j$ in $\Pi_\Delta(z')$, as required. Assume that $\Pi_\Delta(z)$ can be solved in $T$ rounds. Then, by \Cref{lem:relaxingworks}, there is some $(T-1)$-round algorithm $\mathcal{A}$ solving $\Pi^*$. We define a new $(T-1)$-round algorithm $\mathcal{A}'$ as follows. Each node $v$ first executes algorithm $\mathcal{A}$ (in $T-1$ rounds). Then (without any further communication) $v$ replaces, for each incident half-edge $h$, the label $\ell$ that $\mathcal{A}$ produced on $h$ by a new label $\ell'$ according to the following rules. If $\ell = \gen{\gen{\mathsf{X}}}$, then $\ell' := \mathsf{X}$. If $\ell = \gen{\gen{\mathsf{U}_i}}$ for some $1 \leq i \leq \beta$, then $\ell' := \mathsf{U}_i$. If $\ell = \gen{\gen{\P_i}}$ for some $1 \leq i \leq \beta$, then $\ell' := \P_i$. If $\ell = \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}$ for some $\mathcal{C} \in 2^\mathcal{C} \setminus \{\emptyset\}, 0 \leq i,j \leq \beta$ satisfying $\mathrm{level}(\mathcal{C}) \leq j$ and $i \in \{ j, j+1 \}$, then $\ell' := \ell(\mathcal{C}^{\ensuremath{\operatorname{new}}})$ where $\mathcal{C}^{\ensuremath{\operatorname{new}}} := \{ (C,j) \mid C \in \mathcal{C} \} \cup \{ (C,i) \mid C \in \mathcal{C} \}$. (Here, as before, we set $\mathsf{U}_0 := \mathsf{X}$ and $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_0}} := \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}}$.) Finally, consider only those nodes $v$ such that there is a half-edge incident to $v$ on which $\ell' = \ell(\mathcal{C}^{\ensuremath{\operatorname{new}}})$ for some $\mathcal{C}^{\ensuremath{\operatorname{new}}} \in 2^{\mathfrak{C}'} \setminus \{\emptyset\}$. (We remark that, by the design of the replacement rules and the definition of $\ensuremath{\mathcal{N}}^*$, for any such node $v$, each incident half-edge is labeled with either $\ell(\mathcal{C}^{\ensuremath{\operatorname{new}}})$ or $\mathsf{X}$ at this point.) Each such node $v$ selects $|\mathcal{C}^{\ensuremath{\operatorname{new}}}| - 1 - x$ half-edges currently labeled with $\ell(\mathcal{C}^{\ensuremath{\operatorname{new}}})$ and replaces the labels on those half-edges with the label $\mathsf{X}$. Here $x$ denotes the number of half-edges incident to $v$ that were already labeled with $\mathsf{X}$. (We will see a bit later that $|\mathcal{C}^{\ensuremath{\operatorname{new}}}| - 1 - x$ is always nonnegative.) This concludes the description of $\mathcal{A}'$. We claim that $\mathcal{A}'$ solves $\Pi_\Delta(z')$. We first consider the produced node configurations. Consider some node $v$, and let $N = \ell_1 \mspace{1mu} \dots \mspace{1mu} \ell_\Delta$ denote the node configuration on the half-edges incident to $v$ produced by $\mathcal{A}'$. The replacement rules, together with the definition of $\ensuremath{\mathcal{N}}^*$ and the correctness of $\mathcal{A}$, imply that $N \in \ensuremath{\mathcal{N}}_\Delta(z')$, provided that $\mathcal{A}'$ is well-defined. Hence, the only thing that we have to show is that ``$|\mathcal{C}^{\ensuremath{\operatorname{new}}}| - 1 - x$ is always nonnegative'' as claimed in the algorithm description. Thus, assume that there is a half-edge $h$ incident to $v$ that, before the final step of the algorithm, was labeled with $\ell' = \ell(\mathcal{C}^{\ensuremath{\operatorname{new}}})$ for some $\mathcal{C}^{\ensuremath{\operatorname{new}}} \in 2^{\mathfrak{C}'} \setminus \{\emptyset\}$. Moreover, let $x$ be as defined above. By the design of the replacement rules, we see that there are some $\mathcal{C} \in 2^\mathcal{C} \setminus \{\emptyset\}, 0 \leq i,j \leq \beta$ such that the output of $\mathcal{A}$ on $h$ was $\ell = \gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}$. Furthermore, by the definition of $\ensuremath{\mathcal{N}}^*$, we have $x = |\mathcal{C}| + i - j - 1$, i.e., $x = |\mathcal{C}| - 1$ if $i = j$, and $x = |\mathcal{C}|$ if $i = j + 1$. Observe that the definition of $\mathcal{C}^{\ensuremath{\operatorname{new}}}$ (in the replacement rule) ensures that $|\mathcal{C}^{\ensuremath{\operatorname{new}}}| \geq |\mathcal{C}|$ if $i = j$, and $|\mathcal{C}^{\ensuremath{\operatorname{new}}}| \geq |\mathcal{C}| + 1$ if $i = j + 1$. Hence, in either case $|\mathcal{C}^{\ensuremath{\operatorname{new}}}| - 1 - x \geq 0$, and we obtain that each node configuration produced by $\mathcal{A}'$ is contained in $\ensuremath{\mathcal{N}}_\Delta(z')$, as desired. Now consider the edge configurations produced by $\mathcal{A}'$. Consider an arbitrary edge $e$ and let $D = \mathsf{D}_1 \mspace{1mu} \mathsf{D}_2$ denote the edge configuration produced by $\mathcal{A}'$ on the two half-edges $h_1, h_2$ belonging to $e$ (where output $\mathsf{D}_1$ is given on half-edge $h_1$). The replacement rules, together with \Cref{lem:newedgestuff} clearly imply that, if $\mathsf{D}_1, \mathsf{D}_2 \in \{ \mathsf{U}_1, \dots, \mathsf{U}_\Delta \} \cup \{ \P_1, \dots, \P_\Delta\}$, $\mathsf{D}_1 = \mathsf{X}$, or $\mathsf{D}_2 = \mathsf{X}$, then $D \in \ensuremath{\mathcal{E}}_\Delta(z')$. Hence, assume w.l.o.g., that $\mathsf{D}_1 = \mathcal{C}^{\ensuremath{\operatorname{new}}}$ for some $\mathcal{C}^{\ensuremath{\operatorname{new}}} \in 2^{\mathfrak{C}'} \setminus \{\emptyset\}$, and that $\mathsf{D}_2$ is some color set from $2^{\mathfrak{C}'} \setminus \{\emptyset\}$, some $\mathsf{U}_{i'}$ or some $\P_{j'}$. Let $\gen{\gen{\mathsf{U}_i, \ell(\mathcal{C})}, \gen{\P_j}}$ be the output of $\mathcal{A}$ on $h_1$, which implies that $\mathrm{level}(\mathcal{C}^{\ensuremath{\operatorname{new}}}) = i$. If $\mathsf{D}_2 = \mathsf{U}_{i'}$ for some $1 \leq i' \leq \beta$, then $D \in \ensuremath{\mathcal{E}}_\Delta(z')$, simply by the definition of $\ensuremath{\mathcal{E}}_\Delta(z')$. If $\mathsf{D}_2 = \P_{j'}$ for some $1 \leq j' \leq \beta$, then we know that the output label of $\mathcal{A}$ on $h_2$ is $\gen{\gen{\P_{j'}}}$. By \Cref{lem:newedgestuff}, we obtain $i < j'$, which together with the aforementioned $\mathrm{level}(\mathcal{C}^{\ensuremath{\operatorname{new}}}) = i$ (and the definition of $\ensuremath{\mathcal{E}}_\Delta(z')$) implies $D \in \ensuremath{\mathcal{E}}_\Delta(z')$. Finally, assume that $\mathsf{D}_2 = \mathcal{C}^{\ensuremath{\operatorname{new}}}_2$, and let $\gen{\gen{\mathsf{U}_{i'}, \ell(\mathcal{C}')}, \gen{\P_{j'}}}$ be the output of $\mathcal{A}$ on $h_2$. By \Cref{lem:newedgestuff}, we have $\mathcal{C} \cap \mathcal{C}' = \emptyset$, or $i < j'$, or $i' < j$. By the definitions of $\mathcal{C}^{\ensuremath{\operatorname{new}}}$ and $\mathcal{C}^{\ensuremath{\operatorname{new}}}_2$, we have that, if $\mathcal{C} \cap \mathcal{C}' = \emptyset$, or $i < j'$, or $i' < j$, then $\mathcal{C}^{\ensuremath{\operatorname{new}}} \cap \mathcal{C}^{\ensuremath{\operatorname{new}}}_2 = \emptyset$. Hence, $D \in \ensuremath{\mathcal{E}}_\Delta(z')$, and we conclude that the output produced by $\mathcal{A}'$ is indeed a correct solution for $\Pi_\Delta(z)$. \end{proof} \subsection{Zero Round Solvability}\label{ssec:zero} We now characterize for which parameters the problems in our family cannot be solved in $0$ rounds. \begin{lemma}\label{lem:pnno0} Assume that $|z| \le \Delta$. The problem $\Pi_{\Delta}(z)$ is not $0$-round solvable in the deterministic port numbering model if the port numbering is unconstrained. \end{lemma} \begin{proof} Since for a $0$-round algorithm the view of each node is the same, then all nodes must output the same configuration. We show that, for all the allowed configurations of the node constraints it holds that they are not ``self compatible'', meaning that they contain two labels $\ell_1$, $\ell_2$, that are not edge-compatible, that is, $\ell_1 \mspace{1mu} \ell_2 \notin \ensuremath{\mathcal{E}}_\Delta(z)$, implying that for some port numbering assignment the $0$ round algorithm must fail. The allowed node configurations are the following: \begin{itemize} \item $\ell(\mathcal{C})^{\Delta-x} \mspace{1mu} \mathsf{X}^x$, for each $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$, where $x = |\mathcal{C}|-1$. \item $\P_i \mspace{1mu} \mathsf{U}_i^{\Delta-1}$, for each $1 \le i \le \beta$. \end{itemize} Consider the configurations of the first type. Since $|z| \le \Delta$, then $|\mathfrak{C}| \le \Delta$, implying that $x = |\mathcal{C}|-1 \le \Delta-1$, and hence that $\ell(\mathcal{C})$ appears at least once in the configuration. Since, for all $\mathcal{C} \in 2^\mathfrak{C} \setminus \{\emptyset\}$ it holds that $\mathcal{C} \cap \mathcal{C} \neq \emptyset$, then $\ell(\mathcal{C})$ is not edge-compatible with itself. Consider the configurations of the second type. For all $i$, $\P_i$ is not edge-compatible with itself. \end{proof} \subsection{A Problem Sequence}\label{ssec:sequence} We now combine \Cref{lem:pn1step} and \Cref{lem:pnno0} to show that there exists a problem sequence that satisfies some desirable properties. Intuitively, if a problem in the sequence is $\Pi_\Delta(z)$, then the next problem is obtained by taking the prefix sum of $z$. If we apply this procedure many times, and we start from a ``small'' vector it will take some steps before obtaining a ``large'' vector. The number of steps required to reach a vector $z'$ such that $|z'| \ge \Delta$ (or $> \Delta$ if $\mathrm{len}(z') = 0$) is a lower bound on the length of the sequence. \begin{lemma}\label{lem:pnlowerbound} There exists a problem sequence $\Pi_0 \rightarrow \Pi_1 \rightarrow \ldots \rightarrow \Pi_t$, where $\Pi_1 = \Pi_{\Delta}(z)$, such that, for all $0 \le i < t$, the following holds: \begin{itemize} \item There exists a problem $\Pi'_i$ that is a relaxation of $\re(\Pi_i)$; \item $\Pi_{i+1}$ is a relaxation of $\rere(\Pi'_i)$; \item The number of labels of $\Pi_i$, and the ones of $\Pi'_i$, are upper bounded by $2^\Delta(1 + \mathrm{len}(z))$. \end{itemize} Also, $\Pi_t$ has at most $2^\Delta(1 + \mathrm{len}(z))$ labels and is not $0$-round solvable in the deterministic port numbering model if the port numbering assignment is unconstrained. Let $\beta = \mathrm{len}(z)$. The value of $t$ is at least the maximum $i$ such that $|\mathrm{prefix}^i(z)| < \Delta$ if $\mathrm{len}(z) > 0$ and such that $|\mathrm{prefix}^i(z)| \le \Delta$ if $\mathrm{len}(z) = 0$. If there is no maximum, then $t$ can be made arbitrarily large. \end{lemma} \begin{proof} We set $\Pi_i = \Pi_{\Delta}(\mathrm{prefix}^i(z))$, where $\mathrm{prefix}^i(z)$ is the result obtained by recursively applying the function $\mathrm{prefix}$ for $i$ times, and $\mathrm{prefix}^0(z)=z$. By \Cref{lem:pn1step} the problem sequence satisfies the requirements. We need to prove for which values of $t$, $\Pi_t$ is not $0$-rounds solvable. By \Cref{lem:pnno0} it is sufficient to satisfy $|\mathrm{prefix}^t(z)| \le \Delta$, which is a condition required by the statement. \end{proof} \section{Lifting Results to the \textsf{LOCAL} Model}\label{sec:lifting} In this section we show how to lift the results that we obtained for the deterministic port numbering model to the \ensuremath{\mathsf{LOCAL}}\xspace model. For this purpose, we heavily rely on ideas already used in the literature~\cite{Balliu2019, balliurules, trulytight, binary}, by slightly improving some parts to support our use case. While in this work we only consider graphs, we show a general statement that works on hypergraphs as well. In the following, we assume w.l.o.g.\ that $\delta$, the rank of the hyperedges, is at most $\Delta$, the degree of the nodes. If not, we can just switch the roles of nodes and hyperedges, and the same claim still holds (up to an additive constant factor). \begin{theorem}\label{thm:lifting} Let $\Pi_0 \rightarrow \Pi_1 \rightarrow \ldots \rightarrow \Pi_t$ be a sequence of problems. Assume that, for all $0 \le i < t$, and for some function $f$, the following holds: \begin{itemize} \item There exists a problem $\Pi'_i$ that is a relaxation of $\re(\Pi_i)$; \item $\Pi_{i+1}$ is a relaxation of $\rere(\Pi'_i)$; \item The number of labels of $\Pi_i$, and the ones of $\Pi'_i$, are upper bounded by $f(\Delta)$. \end{itemize} Also, assume that $\Pi_t$ has at most $f(\Delta)$ labels and is not $0$-round solvable in the deterministic port numbering model, even if the port numbering assignment satisfies some local constraints $C^{\mathrm{port}}$. Then, $\Pi_0$ requires $\Omega(\min\{t, \log_\Delta n - \log_\Delta \log f(\Delta)\})$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\min\{t, \log_\Delta \log n - \log_\Delta \log f(\Delta)\})$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model, even if the port numbering satisfies some local constraints $C^{\mathrm{port}}$. \end{theorem} Since all the techniques required to prove \Cref{thm:lifting} are already present in the literature, and we only need to improve the analysis to support an arbitrary large number of labels, we defer the proof of \Cref{thm:lifting} to \Cref{apx:lifting}. Note that, by proving that a problem can be relaxed to a fixed point, then we obtain an arbitrary long sequence of problems that satisfy the requirements. Hence, if the number of labels used in the fixed point problem is not too large, then we get that this problem requires $\Omega(\log_\Delta n)$ rounds for deterministic algorithms, and $\Omega(\log_\Delta \log n)$ rounds for randomized ones. \section{Lower Bound Results}\label{sec:corollaries} All the results that we present in this section hold already on $\Delta$-regular trees. We start by showing a general result, and then we instantiate it to obtain results for a number of \emph{natural} problems. By combining \Cref{lem:pnlowerbound} with \Cref{thm:lifting}, we obtain the following theorem. \begin{restatable}{theorem}{lbgeneral}\label{thm:general} Let $z$ be a vector $[z_0, \ldots, z_\beta]$ such that $\beta \le 2^\Delta$. Let $t$ be the maximum value such that $|\mathrm{prefix}^t(z)| \le \Delta$ if $\mathrm{len}(z) = 0$, and such that $|\mathrm{prefix}^t(z)| < \Delta$ if $\mathrm{len}(z) > 0$. If there is no maximum, let $t = \infty$. Then, $\Pi_{\Delta}(z)$ requires $\Omega(\min\{t, \log_\Delta n\})$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\min\{t, \log_\Delta \log n\})$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. \end{restatable} Notice that the assumption on $\beta$ is only required in order to make the total number of labels small enough so that $\log_\Delta\log f(\Delta)=O(1)$, where $f(\Delta)$ is an upper bound on the number of labels of the problems in the sequence. \paragraph{Arbdefective Colorings.} We start by proving that $\Pi_{\Delta}([\Delta])$ is a relaxation of some variants of arbdefective coloring, including the $\Delta$-coloring problem itself. \begin{restatable}{theorem}{lbgeneralizedarbdef}\label{cor:generalizedarbdef} Let $\vec{d} = (d_1, \ldots, d_c)$ be an arbdefect vector that is not $1$-relaxed. Then, the $\vec{d}$-arbdefective $c$-coloring problem requires $\Omega(\log_\Delta n)$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\log_\Delta \log n)$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. \end{restatable} \begin{proof} First of all, notice that $\mathrm{prefix}([\Delta]) = [\Delta]$, implying that for $\Pi_{\Delta}([\Delta])$ we can apply \Cref{thm:general} with $t= \infty$. We show that, if $\vec{d}$ is not $1$-relaxed, then the $\vec{d}$-arbdefective $c$-coloring problem can be relaxed to $\Pi_{\Delta}([\Delta])$. Since by assumption $\vec{d}$ is not $1$-relaxed, by definition we have that: \[ \ensuremath{\mathsf{cap}}(\vec{d})=\sum_{i=1}^c (d_i+1) \le \Delta. \] Consider a color space $S$ of size $\sum_{i=1}^c (d_i+1)$. We partition the colors of $S$ into $c$ sets, where each set $\mathcal{C}_i$ contains $d_i+1$ colors. For each set $\mathcal{C}_i$, the problem $\Pi_{\Delta}([\Delta])$ contains the configuration $\ell(\mathcal{C}_i)^{\Delta-x} \mspace{1mu} \mathsf{X}^x$, where $x = |\mathcal{C}_i|-1 = d_i$. Also, since all sets $\mathcal{C}_i$ are pairwise disjoint, then $\ell(\mathcal{C}_i) \mspace{1mu} \ell(\mathcal{C}_j)$ is contained in the edge constraint, for all $i \neq j$. Moreover, $\mathsf{X}$ is compatible with every other label. Hence, given a solution for arbdefective coloring, nodes of color $i$ can label $\ell(\mathcal{C}_i)$ their edges, and then mark their arbdefective edges with $\mathsf{X}$. The number of arbdefective edges is at most $d_i$. Nodes can then mark other arbitrary edges to make the number of $\mathsf{X}$ exactly $d_i$. In this way, they obtain a solution for $\Pi_{\Delta}([\Delta])$. \end{proof} By allowing the same arbdefect to each color, we obtain the following corollary. \begin{corollary}\label{cor:arbdef} The $d$-arbdefective $c$-coloring problem requires $\Omega(\log_\Delta n)$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\log_\Delta \log n)$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model, if $(d+1)c \le \Delta$. \end{corollary} Also, by setting $c=\Delta$ and $d=0$, we obtain the following. \begin{corollary}\label{cor:lbdeltacol} The $\Delta$-coloring problem requires $\Omega(\log_\Delta n)$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\log_\Delta \log n)$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. \end{corollary} \paragraph{Arbdefective Colored Ruling Sets.} We now consider $\alpha$-arbdefective $c$-colored $\beta$-ruling sets. Before showing our results, we prove some useful lemmas. We start by showing a lemma proved in~\cite{balliurules}. \begin{lemma}[Lemma 16 of \cite{balliurules}, arXiv version]\label{lem:prefix} Assume $z = [1,0,\ldots,0]$ and $k \le \beta = \mathrm{len}(z)$. For all $j \ge 1$, $\mathrm{prefix}^j(v)_k = {j+k-1 \choose k}$. \end{lemma} We now show a lower bound for $\Pi_\Delta(z)$ for the case in which only the first element of $z$ is non-zero. \begin{lemma}\label{lem:firstnonzero} Assume $z = [k,0,\ldots,0]$, where $k\ge 1$, and $\beta = \mathrm{len}(z)\le 2^\Delta$. Let $t$ be the maximum value such that ${t + \beta \choose \beta} < \Delta / k$. The problem $\Pi_{\Delta}(z)$ requires $\Omega(\min\{t, \log_\Delta n\})$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\min\{t, \log_\Delta \log n\})$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. \end{lemma} \begin{proof} Note that $|\mathrm{prefix}^t(z)| = \mathrm{prefix}^{t+1}(z)_\beta$, and $\mathrm{prefix}^{t+1}([k,0,\ldots,0]) = k \cdot \mathrm{prefix}^{t+1}([1,0,\ldots,0])$. Hence, $\mathrm{prefix}^{t+1}(z)_\beta = \mathrm{prefix}^{t+1}([k,0,\ldots,0])_\beta = k \cdot \mathrm{prefix}^{t+1}([1,0,\ldots,0])_\beta = k {t + \beta \choose \beta}$, where the last equality holds by \Cref{lem:prefix}. Hence, since by assumption $t$ is the maximum value such that $k {t + \beta \choose \beta} < \Delta$, then, by \Cref{thm:general}, the claim follows. \end{proof} Note that $\Pi_\Delta([1,0,\ldots,0])$ is a relaxation of a variant of $(2,\beta)$-ruling sets where nodes also need to know an upper bound on the distance, and the direction, towards a ruling set node. For this variant of ruling sets, in \cite[Lemma 15 (arXiv version)]{balliurules} it has been shown that it can be solved in $t$ rounds, where $t$ is the minimum value such that ${t + \beta \choose \beta} \ge c$, if nodes are provided a $c$-coloring in input. \Cref{lem:firstnonzero} implies that this result is tight, at least in the case in which a $(\Delta + 1)$-coloring is given in input to the nodes: it is not possible to solve this variant of ruling sets in $t$ rounds, if ${t + \beta \choose \beta} < \Delta$. In fact, from \Cref{lem:pnlowerbound} we actually get a lower bound of $t+1$ rounds, where $t$ is the maximum value such that ${t + \beta \choose \beta} < \Delta$. Hence, our result is tight in the case in which a $(\Delta+1)$-coloring is given to the nodes. Note that, improving this result for the case in which a larger coloring is given in input would imply that a $(\Delta+1)$-vertex coloring cannot be computed fast, but knowing whether $(\Delta+1)$-vertex coloring requires $\omega(\log^* n)$ is a long standing open question. We now use the result of \Cref{lem:firstnonzero} to show lower bounds for arbdefective colored ruling sets. In particular, we show that, a lower bound of $t$ rounds for $\Pi([c(1+\alpha),0,\ldots,0])$ implies a lower bound of $t-\beta$ rounds for $\alpha$-arbdefective $c$-colored $\beta$-ruling sets. \lbcoldom* \begin{proof} Assume $z = [c(1+\alpha),0,\ldots,0]$ and $\mathrm{len}(z)=\beta$. By \Cref{lem:firstnonzero}, the problem $\Pi_\Delta(z)$ requires $\Omega(\min\{t, \log_\Delta n\})$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\min\{t, \log_\Delta \log n\})$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model, where $t$ is the maximum value such that $c(1+\alpha) {t + \beta \choose \beta} < \Delta$. We show that, given a solution for the $\alpha$-arbdefective $c$-colored $\beta$-ruling set problem, nodes can spend $\beta$ rounds to solve $\Pi_{\Delta}(z)$. Hence, a lower bound of $t$ rounds for $\Pi_{\Delta}(z)$ implies a lower bound of $t-\beta$ for the $\alpha$-arbdefective $c$-colored $\beta$-ruling set problem. In $\beta$ rounds, uncolored nodes can find the nearest colored node $v$, and nodes at distance $i$ from $v$ can output $\P_i$ on their port towards $v$ and $\mathsf{U}_i$ on all the other ports. Then, since the color space contains $c(1+\alpha)$ colors, then there must exist $c$ disjoint sets $\mathcal{C}_i$ of colors of size $1+\alpha$. For each set $\mathcal{C}_i$, there must exist an allowed configuration of the form $\ell(\mathcal{C}_i^{\Delta-x}) \mspace{1mu} \mathsf{X}^x$, for $x = \alpha$. Nodes of color $i$ can label their edges $\ell(\mathcal{C}_i)$, and then mark their edges oriented towards other nodes of the same color with $\mathsf{X}$. The number of edges marked $\mathsf{X}$ is at most $\alpha$. Nodes can then mark other arbitrary edges to make the number of $\mathsf{X}$ exactly $\alpha$. It is easy to check that this labeling satisfies the constraints of $\Pi_{\Delta}(z)$. \end{proof} We now provide some more human-friendly versions of \Cref{thm:lbarbcolrs}. We start by making an observation. \begin{observation}\label{obs:larget} For all $t \le \frac{\beta}{2e} x^{1/\beta}$ and $\beta \le \frac{1}{2e} \log x$, it holds that ${t + \beta \choose \beta} \le x$. \end{observation} \begin{proof} \[{t + \beta \choose \beta} \le \left(\frac{e(t + \beta)}{\beta}\right)^\beta \le \left(\frac{e(\frac{\beta}{2e} x^{1/\beta} + \frac{1}{2e} \log x)}{\beta}\right)^\beta \le \left(\frac{e(\frac{\beta}{e} x^{1/\beta} )}{\beta}\right)^\beta = x \] \end{proof} We are now ready to provide an explicit lower bound for $\alpha$-arbdefective $c$-colored $\beta$-ruling sets as a function of $\Delta$ and $n$. \begin{corollary}\label{cor:arbdefrsdelta} There exists a constant $\varepsilon_0>0$ such that the $\alpha$-arbdefective $c$-colored $\beta$-ruling set problem requires $\Omega\big(\min\big\{\beta (\frac{\Delta}{c(1+\alpha)})^{1/\beta}, \log_\Delta n\big\}\big)$ rounds, for $\beta \le \varepsilon_0 \min\big\{\log \frac{\Delta}{c(1+\alpha)}, \log_\Delta n\big\}$, in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model, and it requires $\Omega\big(\min\big\{\beta (\frac{\Delta}{c(1+\alpha)})^{1/\beta}, \log_\Delta \log n\big\}\big)$ rounds, for $\beta \le \varepsilon_0 \min\big\{\log \frac{\Delta}{c(1+\alpha)}, \log_\Delta \log n\big\}$, in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. \end{corollary} \begin{proof} Let $t$ be the maximum value such that ${t + \beta \choose \beta} < \frac{\Delta}{c(1+\alpha)}$. By \Cref{obs:larget} and the assumption on $\beta$, $t = \Omega(\beta (\frac{\Delta}{c(1+\alpha)})^{1/\beta})$. By the assumption on $\beta$, $t-\beta = \Omega(t)$. Also, by the assumption on $\beta$ in the case of deterministic algorithms, $\log_\Delta n - \beta = \Omega(\log_\Delta n)$, and in the case of randomized algorithms, $\log_\Delta \log n - \beta = \Omega(\log_\Delta \log n)$. By \Cref{thm:lbarbcolrs}, the claim follows. \end{proof} \begin{corollary}\label{cor:arbdefrsn} There exists some constant $\epsilon>0$ such that the $\alpha$-arbdefective $c$-colored $\beta$-ruling set problem requires $\Omega(\frac{\log n}{\log (1+\alpha) + \log c + \beta \log \log n})$ rounds for $\beta \le \epsilon \sqrt{\frac{\log n}{\log (1+\alpha) + \log c + \log \log n}}$ in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model, and $\Omega(\frac{\log \log n}{\log (1+\alpha) + \log c +\beta \log \log \log n})$ rounds for $\beta \le \epsilon \sqrt{\frac{\log \log n}{\log (1+\alpha) + \log c +\log \log \log n}}$ in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. \end{corollary} \begin{proof} Apply \Cref{cor:arbdefrsdelta} by picking $\Delta \approx c(1+\alpha)(\frac{\log n}{\log \log n})^\beta$ in the deterministic case, and $\Delta \approx c(1+\alpha)(\frac{\log \log n}{\log \log \log n})^\beta$ in the randomized one. \end{proof} By setting $\alpha = 0$ and $c=1$, from \Cref{thm:lbarbcolrs} and \Cref{cor:arbdefrsdelta,cor:arbdefrsn} we obtain lower bounds for $(2,\beta)$-ruling sets. \begin{corollary}\label{cor:rulingsets} Let $t$ be the maximum value such that ${t + \beta \choose \beta} < \Delta$, where $\beta\le2^\Delta$. The $(2,\beta)$-ruling set problem requires $\Omega(\min\{t, \log_\Delta n\} - \beta)$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\min\{t, \log_\Delta \log n\} - \beta)$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. In particular, there exists some constant $\epsilon>0$ such that the $(2,\beta)$-ruling set problem requires $\Omega(\min\{\beta \Delta^{1/\beta}, \log_\Delta n\})$ rounds for $\beta \le \epsilon \min\{\log \Delta, \log_\Delta n\}$ in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model, and $\Omega(\min\{\beta \Delta^{1/\beta}, \log_\Delta \log n\})$ rounds for $\beta \le \epsilon \min\{\log \Delta, \log_\Delta \log n\}$ in the randomized one. If we express the complexity of the problem solely as a function of $n$, then it requires $\Omega(\frac{\log n}{\beta \log \log n})$ rounds for $\beta \le \epsilon \sqrt{\frac{\log n}{\log \log n}}$ for deterministic algorithms, and $\Omega(\frac{\log \log n}{\beta \log \log \log n})$ rounds for $\beta \le \epsilon \sqrt{\frac{\log \log n}{\log \log \log n}}$ for randomized ones. \end{corollary} Then, by setting $\beta=1$, we obtain a lower bound for MIS. \begin{restatable}{theorem}{lbmis} The maximal independent set problem requires $\Omega(\min\{\Delta, \log_\Delta n\})$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\min\{\Delta, \log_\Delta \log n\})$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. If we express the complexity of the problem solely as a function of $n$, then it requires $\Omega(\frac{\log n}{\log \log n})$ rounds for deterministic algorithms and $\Omega(\frac{\log \log n}{\log \log \log n})$ rounds for randomized ones. \end{restatable} In particular, we get that the maximal independent set problem requires $\Omega(\log n / \log \log n)$ deterministic rounds \emph{on trees}, which is tight, as in \cite{BarenboimE10} it has been shown that MIS on trees can be solved in $O(\log n / \log\log n)$ deterministic rounds. \paragraph{More Results.} Until now, we only considered cases where the vector $z$ has non-zero values only in the first position. We conclude the section by showing that \Cref{thm:general} can be used to prove lower bounds for even more variants of ruling sets and arbdefective colorings. Consider the following problem. We have two disjoint color spaces $\mathfrak{C}^1$ and $\mathfrak{C}^2$, one containing $4$ colors and the other containing $5$ colors. Nodes can either be colored, or uncolored. Uncolored nodes must have either at least one node colored from the space $\mathfrak{C}^1$ at distance at most $3$, or at least one node colored from the space $\mathfrak{C}^2$ at distance at most $2$, or both. Nodes colored from the space $\mathfrak{C}^1$ must have arbdefect at most $1$, while nodes colored from the space $\mathfrak{C}^2$ must have arbdefect at most $2$. We show how to use \Cref{thm:general} to prove that this problem requires $\Omega(\Delta^{1/3})$ rounds. \begin{corollary} The example problem requires $\Omega(\min\{\Delta^{1/3}, \log_\Delta n\})$ rounds in the deterministic \ensuremath{\mathsf{LOCAL}}\xspace model and $\Omega(\min\{\Delta^{1/3}, \log_\Delta \log n\})$ rounds in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. \end{corollary} \begin{proof} Consider the problem $\Pi_{\Delta}(z)$ where $z = [8,15,0,0]$. We show that, given a solution for the example problem, nodes can solve in $O(1)$ rounds the problem $\Pi_{\Delta}(z)$. Uncolored nodes can spend $3$ rounds to see the color of the nearest colored node. Nodes at distance $i$, can output $\P_i$ on the port towards the colored node if the colored node has a color from $\mathfrak{C}^1$, or $\P_{i+1}$ if the colored node has a color from $\mathfrak{C}^2$, and if both cases apply, nodes from $\mathfrak{C}^1$ are prioritized. Note that the assumptions guarantee that only labels from $\{\P_1,\P_2,\P_3\}$ are required. Uncolored nodes that output $\P_i$ on one port, then output $\mathsf{U}_i$ on all the other ports. Colored nodes proceed as follows. There are $8$ colors in level $0$, and $15$ colors in level $1$. We partition the $8$ colors in $4$ groups of $2$ colors, $\{\mathcal{C}^1_{i} ~|~ 1 \le i \le 4\}$, and we partition the $15$ colors in $5$ groups of $3$ colors, $\{\mathcal{C}^2_{i} ~|~ 1 \le i \le 5\}$. In $\Pi_{\Delta}(z)$ there must exist the following configurations: $\ell(\mathcal{C}^1_i)^{\Delta-1} \mspace{1mu} \mathsf{X}$ such that $\mathrm{level}(\mathcal{C}^1_i) = 0$ for $i \in \{1,2,3,4\}$, and $\ell(\mathcal{C}^2_i)^{\Delta-2} \mspace{1mu} \mathsf{X}^2$ such that $\mathrm{level}(\mathcal{C}^2_i) = 1$ for $i \in \{1,2,3,4,5\}$, such that the intersection between each distinct pair of color sets is disjoint. As in the arbdefective colored ruling set case, nodes can map their colors and put $\mathsf{X}$ on the right edges, such that the problem is solved correctly. For the time lower bound, note that: \[ \mathrm{prefix}^t([8,15,0,0]) \le \mathrm{prefix}^t([15,15,15,15]) \le 15 \cdot \mathrm{prefix}^t([1,1,1,1]) \le 15 \cdot \mathrm{prefix}^{t+1}([1,0,0,0]). \] Hence, by \Cref{lem:prefix}, \Cref{obs:larget}, and \Cref{thm:general}, the claim follows. \end{proof} \input{algorithms} \section{Open Problems}\label{sec:open} There is a natural distinction between locally checkable problems: those who are solvable in $O(f(\Delta) + \log^* n)$, that is, \emph{easy} problems, and those who require $\Omega(\log_\Delta n)$ for deterministic algorithms an $\Omega(\log_\Delta \log n)$ for randomized ones, that is, \emph{hard} problems. We also know from prior work that, for bounded-degree graphs, there cannot be problems in between \cite{chang16exponential,ChangP19}. We proved lower bounds for many easy natural problems, by exploiting the hardness of hard problems, namely, $c$-coloring for $c \le \Delta$. For this purpose, we exploited the fact that there exists a fixed point proof for the hardness of $\Delta$-coloring. But what if there were not such a proof? It would have been much harder, if possible at all, to prove a tight lower bound for ruling sets and other problems. Hence, a first question that we ask is whether all hard problems admit a proof based on fixed points. \begin{restatable}{oq}{oqfixedpoint} Prove or disprove that, for all locally checkable problems with deterministic complexity $\Omega(\log_\Delta n)$ in the \ensuremath{\mathsf{LOCAL}}\xspace model, there exists a relaxation that is a non-trivial fixed point and that can be described with a small enough amount of labels. \end{restatable} Another question that we ask is how broadly our technique can be applied. By applying the round elimination technique on $O(f(\Delta)+\log^*n)$-solvable problems it often happens that we obtain a problem sequence where the size of the problems grows really fast. Often, it seems that \emph{most} of the allowed configurations contained in the problems of the sequence do not actually make the problem easier, and they just make the description of the problem more complicated, similarly as what happens with ruling sets, where these configurations are related to $c$-coloring. Hence, it would be nice to find other cases where we can get rid of these annoying allowed configurations by recognizing some fixed point problem that we can embed into the description of the problem to make these configurations disappear. \begin{oq} Can we find other interesting problems that can be solved in $O(f(\Delta) + \log^* n)$ for which we can prove lower bounds by exploiting the hardness of problems that require $\Omega(\log_\Delta n)$? \end{oq} Also, we now have three different lower bound proofs based on round elimination for the maximal independent set problem on trees. The first one appeared in \cite{balliurules}, and in that proof the number of labels of the problems in the lower bound sequence grows linearly and is always upper bounded by $O(\Delta)$, and with similar techniques authors also obtain lower bounds for ruling sets. Then, the second one appeared in \cite{BBKOmis}, and in that case the number of labels is always $O(1)$, but the proof does not extend to ruling sets. In both cases, the obtained lower bounds are exponentially worse than the lower bounds presented in this work, but here we needed to use a number of labels that is exponential in $\Delta$. We would like to understand this phenomenon, and better understand the relation between the number of labels and the achievable lower bounds. For example, can we prove the same lower bound presented in our work by using a subexponential number of labels? \begin{oq} Understand the relation between the number of labels and the maximum length of a lower bound sequence of problems. \end{oq} In our work we characterized exactly which variants of arbdefective coloring are easy, and which variants of arbdefective coloring are hard. The same question for defective coloring is still open, and we think that even understanding this problem in specific cases may help in the long term. \begin{oq} Characterize which variants of the defective coloring problem can be solved in $O(f(\Delta) + \log^* n)$ rounds, for some function $f$, and which of them require $\Omega(\log_\Delta n)$ rounds. \end{oq} In order to apply the round elimination technique, we need to encode problems in the node-edge formalism. Some natural problems, for example $(2,\beta)$-ruling sets, cannot be encoded directly, and we need to require nodes to produce a node-edge checkable proof that they solved the problem. We call this variant of ruling sets an \emph{encoded} version of the problem. In the encoded variant of $(2,\beta)$-ruling sets, we require nodes to output pointer chains that point towards a ruling set node, such that these chains are of length at most $\beta$. Unfortunately, this means that if we obtain a lower bound of $T$ rounds for the encoded problem, then we only obtain a $T-\beta$ rounds lower bound for the natural problem. Is the encoded version really $\beta$ rounds harder than the natural one? If nodes are solving the ruling set problem, they somehow need to know that there is a node in the set at distance at most $\beta$ from them. For the encoded variants of $(2,\beta)$-ruling sets we obtained tight bounds, and while we think that these problems are interesting per se, we would also like to know the right complexity of the non-encoded variants. In particular, for the non-encoded variants, our lower bounds only hold for $\beta \le \epsilon \log \Delta$ and some small enough $\epsilon$. We conjecture that the encoded and non-encoded variants have the same asymptotic complexity, and that $(2,O(\log \Delta))$-ruling sets require $\Omega(\log \Delta)$ rounds. \begin{oq} Understand the difference between the complexity of encoded problems and natural problems. \end{oq} A current limit of the round elimination technique is that the best achievable lower bound, when $\Delta \ge 3$, is $\Omega(\log n)$ rounds for deterministic algorithms and $\Omega(\log \log n)$ rounds for randomized ones, and we would like to understand if this is really a limit of the technique. In particular, we do not have any example of problem that is known to be solvable in $O(\poly \log \log n)$ rounds with randomized algorithms, but that it is known to require $\omega(\log n)$ rounds with deterministic ones. \begin{oq}\label{oq:morethanlogn} Prove or disprove that there exists a locally checkable problem, that, in bounded degree graphs, is solvable in $O(\poly \log \log n)$ rounds with randomized algorithms in the \ensuremath{\mathsf{LOCAL}}\xspace model, but that requires $\omega(\log n)$ rounds for deterministic algorithms. \end{oq} We would like to mention that a related question has been asked in 2017 by \citet{ChangP19}. There, authors asked whether the distributed constructive Lova\'{a}sz Local Lemma problem can be solved in $O(\log \log n)$ rounds on bounded degree graphs. It is known that answering affirmatively to this question would imply that there are no locally checkable problems in bounded degree graphs with randomized complexity between $\omega(\log \log n)$ and $o(\log n)$ \cite{ChangP19}, and it is also known that, for locally checkable problems on bounded degree graphs, an $O(\log \log n)$ randomized algorithm implies an $O(\log n)$ deterministic one \cite{chang16exponential}. One of the few natural problems that is currently a candidate for answering \Cref{oq:morethanlogn} is $\Delta$-coloring. This is a problem for which randomness helps, and it can in fact be solved in $O(\log^2 \log n)$ rounds with randomized algorithms in bounded degree graphs~\cite{GhaffariHKM18}. For deterministic algorithms, a lower bound of $\Omega(\log n)$ rounds is known, but the best known upper bound is of $O(\log^2 n)$ rounds~\cite{GhaffariHKM18,panconesi95delta}. The currently best known algorithm uses ruling sets as a subroutine, and $O(\log^2 n)$ is in fact the time required to compute a $(2,\log n)$-ruling set in $G^{O(\log n)}$, the $O(\log n)$-th power of $G$. We would like to understand if computing a ruling set for solving $\Delta$-coloring is really necessary, or if some other (easier) symmetry breaking primitive is sufficient. Also, it may be the case that computing $(2,\log n)$-ruling sets in $G^{O(\log n)}$ is much easier than computing ruling sets in general, because it may be possible to exploit special properties of power graphs. \begin{oq} The best algorithm for $\Delta$-coloring requires $O(\log^2 n)$ in constant degree graphs, and it uses ruling sets as a subroutine. Can we find a genuinely different algorithm for $\Delta$-coloring? \end{oq} \urlstyle{same} \bibliographystyle{plainnat} \section{Introduction} \label{sec:intro} In the area of distributed graph algorithms, we usually assume that the graph $G=(V,E)$ on which we want to solve some graph problem also represents a communication network. The nodes of $G$ are autonomous agents that communicate over the edges of $G$. Each node $v\in V$ is equipped with a unique $O(\log n)$-bit identifier (where $n=|V|$). More precisely, the nodes typically interact in synchronous rounds and in each round, every node $v\in V$ can send a message to each of its neighbors in $G$. In the standard \ensuremath{\mathsf{LOCAL}}\xspace model~\cite{Linial1987,Peleg2000}, those messages can be of arbitrary size. Except for information that we assume to be publicly known (such as, e.g., the family of graphs from which $G$ is chosen), at the beginning, nodes do not know anything about the graph $G$. At the end of an algorithm, every node $v\in V$ has to output its local part of the solution of the considered graph problem. The time or round complexity of such a distributed algorithm is defined as the number of rounds that are necessary until all nodes terminate and output their part of the solution. Since the early works on distributed and parallel graph algorithms~\cite{Alon1986,Linial1987,Luby1986}, two problems that have been at the very core of the attention are the problems of computing a vertex coloring of $G$ and of computing a maximal independent set (MIS) of $G$. Both problems, as well as their many variants, have been studied intensively throughout the last more than 30 years. It is also known since the early days that the two problems are closely related. Given an MIS algorithm, one can compute a $(\Delta+1)$-coloring (where $\Delta$ is the largest degree of $G$) by a simple reduction~\cite{Linial1987,Luby1986} and a $C$-coloring of $G$ can be turned into an MIS of $G$ in $C-1$ rounds by iterating over the $C$ colors and simulating the sequential greedy algorithm. In fact, recent work on lower bounds for the MIS problem in tree networks suggests that distributed MIS and graph coloring are indeed intimately connected~\cite{balliurules,BBKOmis}. \paragraph{Round Elimination.} As many recent lower bounds for local distributed graph problems, the lower bounds of \cite{balliurules,BBKOmis} are based on the \emph{round elimination} technique~\cite{Brandt2016,Brandt2019}. The high-level idea of the round elimination technique is as follows. Assume that the time needed to solve some desired problem, such as computing an MIS, is $T$ rounds. Then, every algorithm that solves the problem in $T$ rounds must already have computed something non-trivial after $T-1$ rounds. And it turns out that one can exactly characterize the weakest problem that needs to be solved after $T-1$ rounds if the desired problem has to be computed after $T$ rounds. Starting from our target problem, we can then construct a sequence of problems where each problem in the sequence is exactly one round easier than the previous one. And if we can construct a sequence of length $R$ such that the last problem of the sequence still cannot be solved in $0$ rounds, then we know that our target problem cannot be solved in $R$ rounds. In the last few years, round elimination has been used to prove an impressive number of strong new distributed lower bounds~\cite{Brandt2016,chang16exponential,chang18complexity,Brandt2019,Balliu2019,BalliuHOS19,trulytight,binary,balliurules,BBKOmis}. A highlight of this line of work certainly are the lower bounds proven in \cite{Balliu2019}, where it is shown that the number of rounds required to compute a maximal matching is at least $\Omega(\min\set{\Delta, \log n/\log\log n})$ deterministically and $\Omega(\min\set{\Delta, \log\log n/\log\log\log n})$ in the randomized \ensuremath{\mathsf{LOCAL}}\xspace model. Because a maximal matching of a graph $G$ is an MIS of the line graph of $G$, the same bounds also hold for computing an MIS. Since an MIS can be computed deterministically in $O(\Delta+\log^* n)$ rounds~\cite{barenboim14distributed}, both bounds are tight as a function of $\Delta$. In this paper we prove new tight lower bounds for a large family of distributed graph problems. As one special case of our general lower bound result, we obtain that the same lower bounds that were proven in \cite{Balliu2019} for MIS in general graphs also hold for computing an MIS in regular trees, which is an exponential improvement over the existing lower bounds~\cite{balliurules,BBKOmis}. \paragraph{MIS in Trees.} In an MIS, the MIS nodes form an independent set and every node is either an MIS-node or it is a neighbor of an MIS-node. If one applies round elimination to the MIS problem in tree networks, then after one step, one essentially arrives at a problem where, in addition to MIS-nodes and neighbors of MIS-nodes, we can have an additional independent set of nodes. And after $k$ steps, one at the core gets a set of independent MIS-nodes, neighbors of MIS-nodes, and an additional set of nodes that is properly $k$-colored. The problem that is $k$ rounds easier than the MIS problem therefore essentially is the combination of MIS with a $k$-coloring. This suggests that the simple greedy algorithm for turning a $C$-coloring into an MIS in $C-1$ rounds is optimal. And because we know that computing a $\Delta$-coloring requires $\Omega(\log_\Delta n)$ rounds deterministically and $\Omega(\log_\Delta\log n)$ rounds with randomization~\cite{Brandt2016,chang16exponential}, it also suggests that for reasonably small $\Delta$ (as a function of $n$), the time for computing an MIS is linear in $\Delta$ even in trees. The problem with this approach is that in addition to an MIS and a $k$-coloring, one obtains many additional possible labels (i.e., node states) and configurations and without taking care of those, the problem size grows exponentially with each round elimination step. In the existing lower bounds of \cite{balliurules,BBKOmis}, the additional labels and configurations were relaxed by weakening the properties of the coloring. Each colored node is allowed to mark some of its edges as \emph{``don't care''} edges that are allowed to be monochromatic. This makes the problem tractable, however, since in \cite{balliurules,BBKOmis} the number of \emph{``don't care''} edges per node grows exponentially with the number of round elimination steps, they could only prove a lower bound that is logarithmic in $\Delta$ rather than the desired linear-in-$\Delta$ lower bound. In the present paper, we show that if the $k$-coloring constraints are relaxed in the right way, then we get exactly what we need. After $k$ round elimination steps, we arrive at a problem which is a combination of an MIS and a part of the graph that solves this relaxed variant of $k$-coloring. \paragraph{New \boldmath$\Delta$-Coloring Fixed Point.} At the core of our argument is a new relaxation of $k$-coloring, which we prove to be a fixed point in the round elimination framework in $\Delta$-regular trees as long as $k\leq \Delta$. That is, if we perform a round elimination step for this relaxed $k$-coloring problem, then we arrive at the same relaxed $k$-coloring problem. In the relaxed $k$-coloring problem, every node $v$ is allowed to be colored with a subset $A_v$ of the $k$ colors. Nodes that choose more than one color can mark some of their edges as \emph{``don't care''} edges. Specifically, a node $v$ that chooses $|A_v|=a_v$ different colors is allowed to mark $a_v-1$ of its edges as \emph{``don't care''} edges. For every edge $\set{u,v}$ of the graph, if $u$ or $v$ mark $\set{u,v}$ as \emph{``don't care''} edge, then there are no constraints for this edge. Otherwise, the color sets $A_u$ and $A_v$ of $u$ and $v$ must be disjoint. Since this problem is a round elimination fixed point for $k=\Delta$, we directly get an alternative proof of the result of \cite{Brandt2016,chang16exponential} that $\Delta$-coloring $\Delta$-regular trees requires $\Omega(\log_\Delta n)$ rounds for deterministic and $\Omega(\log_\Delta\log n)$ rounds for randomized distributed algorithms. Further, apart from proper $\Delta$-coloring, the described relaxed $\Delta$-coloring also contains many arbdefective coloring variants. Arbdefective colorings were introduced in \cite{BarenboimE11} and they have since then become an indispensable tool in the development of efficient distributed coloring algorithms, e.g., \cite{BarenboimE11,barenboim16sublinear,fraigniaud16local,Kuhn20,MausTonoyan20,GhaffariKuhn20}. An arbdefective $c$-coloring of a graph $G=(V,E)$ is a coloring of the nodes $V$ with $c$ colors together with an orientation of the edges $E$. The arbdefect of a node $v$ of color $x$ is the number of outneighbors of $v$ of color $x$. Consider the set of nodes that are colored with some set $A$ of colors in the above relaxed $k$-coloring problem. The specification for the nodes with color set $A$ corresponds exactly to the specification of a color class with arbdefect at most $|A|-1$. If we want to compute a $c$-coloring of a $\Delta$-regular tree such that for each of the colors $x\in\set{1,\dots,c}$, we have a bound $d_x\geq 0$ on the arbdefect of the nodes with color $x$, then our lower bound on the relaxed $\Delta$ coloring problem directly shows that as long as $\sum_{x=1}^c(d_x+1)\leq \Delta$, this arbdefective coloring problem requires $\Omega(\log_\Delta n)$ rounds deterministically and $\Omega(\log_\Delta\log n)$ rounds with randomization. We also show that as soon as $\sum_{x=1}^c(d_x+1)\geq \Delta+1$, the problem can be solved in $O(\Delta+\log^* n)$ rounds by a simple distributed greedy algorithm. \paragraph{A General Problem Family.} Based on our new round elimination fixed point for the $\Delta$-coloring problem, we develop a general problem family that contains a rich set of natural relaxations of MIS and coloring problems and for which we can prove tight lower bounds as a function of $\Delta$ (modulo assuming an appropriate initial coloring of the nodes). We next describe a simplified variant of the problem family, a full and formal definition of the problem family appears in \Cref{sec:family}. In the simplified variant, the problem has two integer parameters $c\geq 1$ and $\beta\geq 0$. For a graph $G=(V,E)$, the objective is to compute a set $S\subseteq V$ of nodes together with a relaxed $c$-coloring of the induced subgraph $G[S]$ (according to the above characterization of relaxed colorings). Moreover, all nodes $v\in V\setminus S$ must be within distance at most $\beta$ from a node in $S$. We show that after performing $k$ round elimination steps for this problem on $\Delta$-regular trees, we can essentially relax the resulting problem to a problem from our family with the same parameter $\beta$, but with $c'=c\cdot O(k/\beta)^\beta$ colors (if $\beta>0$).\footnote{This is not quite true. In the full formal problem family, the set of colors is partitioned into $\beta+1$ classes $0,\dots,\beta$ and each uncolored node needs to be within distance at most $\beta - i$ from a node in class $i$ for some $i\leq\beta-1$. And even if at the start all colors are in class $0$, after $k$ steps of round elimination, the resulting set of $c\cdot O(k/\beta)^\beta$ colors appears in different classes. In fact, class $0$ always only contains exactly $c$ colors. For details, we refer to \Cref{sec:family}.} As long as the number of colors is at most $\Delta$ our described problem is not $0$-round solvable. For $\beta\geq 1$, as a function of $\Delta$, we therefore get a lower bound of $\Omega(\beta(\Delta/c)^{1/\beta})$ for solving a problem of our general problem family. We note that our general problem family contains several natural graph problems. For $\beta=0$ and $c=\Delta$, we obtain the relaxed $\Delta$-coloring problem described above and we therefore get the discussed lower bounds. For $c=1$ and $\beta=1$, the problem is equivalent to the MIS problem and we therefore get an $\Omega(\Delta)$ lower bound for MIS on trees. For $c=1$ and $\beta\geq 1$, a solution to the problem provides what is known as a \emph{$(2,\beta)$-ruling set}~\cite{Awerbuch89}. We obtain an $\Omega(\beta\Delta^{1/\beta})$-lower bound for computing ruling sets. If we assume an initial $O(\Delta)$-coloring of the nodes of $G$, this is known to be tight and it also is an exponential improvement over the best existing previous lower bounds for computing $(2,\beta)$-ruling sets for $\beta\geq 2$~\cite{balliurules}. If we set $c>1$ and $\beta\geq 1$, the general problem in particular models the task of finding a properly $c$-colored set $S$ such that every node not in $S$ is within distance $\leq \beta$ from $S$. However, because the problem family contains our relaxed $c$-coloring problem, it also contains the same problem where the set $S$ has to be colored by some arbdefective coloring. For example for $c=\alpha+1$, the relaxed $c$-coloring problem contains one color of arbdefect $\alpha$ and for $c=\alpha+1$ and $\beta=1$, we can therefore get a tight $\Omega(\Delta/(\alpha+1))$-round lower bound for finding an $\alpha$-outdegree dominating set as defined and discussed in \cite{BBKOmis}. Note that in our proof, it is crucial that we define our problem family such that the set $S$ is colored by using the \emph{relaxed $c$-coloring} problem that we get from our new $\Delta$-coloring fixed point. We find it fascinating that we can use the hardness of a hard problem (the relaxed $\Delta$-coloring problem) that requires $\Omega(\log n)$ rounds on bounded-degree graphs and use it to prove lower bounds as a function of $\Delta$ for problems that can all be solved in time $O(f(\Delta)+\log^* n)$ for some function $f$, i.e., with a much better $n$-dependency. \subsection{Problem Definitions} \label{sec:problems} We next formally define some natural problems for which we prove upper and lower bounds. As discussed above, the full general (and somewhat technical) family problems for which we prove our lower bounds is formally defined in \Cref{sec:family}. In the following, for a positive integer $k$, we use $[k]$ to denote the set $[k]:=\set{1,\dots,k}$. \paragraph{Generalized Arbdefective Colorings.} We define a generalized notion of arbdefective colorings. We first define the notion of an \emph{arbdefect vector}, which specifies the requirements that a node has to satisfy if it is given a certain color. If there are $C$ colors available (for some integer $C\geq 1$), an arbdefect vector is a vector of length $C$, where the $i^{\mathit{th}}$ coordinate indicates the allowed arbdefect of a node having color $i$. Concretely, an arbdefect vector $\vec{d}$ of length $C$ has the following form $\vec{d}=(d_1,\dots,d_C)\in\ensuremath{\mathbb{N}_0}^C$. A \emph{generalized arbdefective coloring} of a graph is now defined as follows. \begin{definition}[Generalized Arbdefective Coloring]\label{def:generalarbdefect} Let $G=(V,E)$ be a graph, $C\geq 1$ an integer, and $\vec{d}=(d_1,\dots,d_C)\in \ensuremath{\mathbb{N}_0}^C$ an arbdefect vector of length $C$. An assignment $\varphi:V\to[C]$ of colors in $[C]$ to the nodes $V$ is called a $\vec{d}$-arbdefective $C$-coloring w.r.t.\ a given orientation of the edges $E$ of $G$ if for every node $v\in V$, if $v$ has color $\varphi(v)=x$, then $v$ has at most $d_x$ outneighbors of color $x$. \end{definition} If we have an arbdefect vector $\vec{d}=(d_1,\dots,d_C)$ with $d_i=\alpha$ for all $i\in [C]$, we call the corresponding coloring an \emph{$\alpha$-arbdefective $C$-coloring}. Note that this is the standard notion of arbdefective coloring as defined in \cite{BarenboimE11}. When writing that an algorithm computes an arbdefective coloring of a graph $G$, we always implcitly mean that the algorithm computes a coloring of the nodes of $G$ \emph{and} a corresponding orientation of the edges of $G$. We define the \emph{capacity} $\ensuremath{\mathsf{cap}}(\vec{d})$ of an arbdefect vector $\vec{d}$ as $\ensuremath{\mathsf{cap}}(\vec{d}):=\sum_{i=1}^C(d_i+1)$. As discussed above, computing a $\vec{d}$-arbdefective coloring in a $\Delta$-regular tree is as hard as computing a $\Delta$-coloring as long as $\ensuremath{\mathsf{cap}}(\vec{d})\leq \Delta$ and it can be computed by a simple greedy algorithm if $\ensuremath{\mathsf{cap}}(\vec{d})>\Delta$. For a value $\sigma>0$ and graphs of maximum degree $\Delta$, we say that an arbdefect vector $\vec{d}$ is \emph{$\sigma$-relaxed} iff $\ensuremath{\mathsf{cap}}(\vec{d})>\sigma\cdot\Delta$. Hence, a given generalized arbdefective coloring instance can be solved by a greedy algorithm iff the given arbdefect vector is $1$-relaxed. \begin{figure}[t] \centering \includegraphics[width=0.6\textwidth]{figs/2-2-2} \caption{An example of $2$-arbdefective $2$-colored $2$-ruling set. Nodes in blue and orange are in the set, and they all have arbdefect at most $2$. White nodes are not in the set, and there is at least one node in their radius-$2$ neighborhood that is in the set.} \label{fig:2-2-2} \end{figure} \paragraph{Arbdefective Colored Ruling Sets.} We next define a family of problems that can be seen both as variants of arbdefective colorings and of ruling sets, and they provide a way to interpolate between them. \Cref{fig:2-2-2} provides an illustration of the following definition. \begin{definition}[$\alpha$-Arbdefective $c$-Colored $\beta$-Ruling Set] Let $G = (V,E)$ be a graph, and $\alpha \ge 0$, $c \ge 1$, $\beta \ge 0$ be integers. A set $S \subseteq V$ together with an orientation of the edges between nodes in $S$ is an $\alpha$-arbdefective $c$-colored $\beta$-ruling set if it satisfies the following: \begin{itemize} \item The induced subgraph $G[S]$ is colored with an $\alpha$-arbdefective $c$-coloring. \item For all $v\in V\setminus S$, there is a node $u\in S$ at distance $\leq \beta$. Note that if $\beta=0$, then $S=V$. \end{itemize} \end{definition} Note that $\alpha$-arbdefective $c$-colored $\beta$-ruling sets generalize several natural graph structures. An $\alpha$-arbdefective $c$-colored $0$-ruling set of a graph $G$ is an $\alpha$-arbdefective $c$-coloring of $G$ (as defiined in \cite{BarenboimE11}). If $\beta=0$ and $\alpha=0$, then we simply get a proper $c$-vertex coloring of $G$. Further, a $0$-arbdefective $1$-colored $\beta$-ruling set $S$ is what is known as a \emph{$(2,\beta)$-ruling set}~\cite{Awerbuch89}, i.e., an independent set $S$ such that any node not in $S$ is within distance $\leq \beta$ from a node in $S$. For $\beta=1$, a $(2,\beta)$-ruling set is a \emph{maximal indepenent set (MIS)}. Further, an $\alpha$-arbdefective $1$-colored $1$-ruling set is an $\alpha$-outdegree dominating set as defined in \cite{BBKOmis}. Note also that for all $\alpha\geq 0$, $c\geq 1$, and $\beta\geq 1$, $\alpha$-arbdefective $c$-colored $\beta$-ruling sets generalize the notion of an MIS (i.e., outputting an MIS is always a valid solution when computing an $\alpha$-arbdefective $c$-colored $\beta$-ruling set).
\section{Introduction} \label{sec:intro} Rain fade refers to the radio signal fade issues caused by rain. The effects of rain fade are more widely seen in satellite systems, unmanned aerial vehicles (UAVs), high-altitude platforms (HAPs), and microwave links that use higher frequency bands, such as Ka-band, Q-band, or V-band. A typical communication process in these systems is composed of four different links: 1) radio frequency (RF) GW (GW) to aerial station (satellite, UAV, or HAP) link, 2) aerial station to remote link, 3) Remote to aerial station link, and 4) aerial station to RF GW link and for each of these links a different mechanism can be implemented to overcome the rain fade. For GW to aerial station link, the trasnmitter in the aerial station is often implemented with automatic power level control that mitigates rain fades to some level. Moreover, in case of heavy rain fade, automatic uplink power control can be activated to maintain the predefined received power at the the aerial station\cite{Pan2008}. To mitigate the rain fade effect on aerial to remote and remote to aerial links adaptive coding and modulation and adaptive inroute selection algorithms can be used. The aerial to GW link is also susceptible to the effects of rain fade but this is mitigated using the large size and gain of the GW antenna. For ground GW locations which experience extremely high rain fade, an RF GW can connect to a second geographically-separated antenna providing RF terminal (RFT) diversity. The system can automatically switch between the antennas based on the link conditions. However, if the system can predict the occurrence of rain fades, then it can proactively switch between the primary and diversity GWs to maintain the quality of service. Hence, rain fade forecasting is a crucial step in RFT GW diversity switchover and switch back design\cite{samad2021survey}. The works in \cite{Emilio2008,Lu2018,Mello2009,Xiang2014} have proposed emprical models for predicting the rain fade attenuation based on rain fall rate. In \cite{Emilio2008}, a synthentic storm technique is used that converts a rain rate time series recorded at a give location into a signal attenuation time series. The authors in \cite{Lu2018} have proposed a conversion of rain fall to rain attenuation method which uses the genetic and anealling algorithms to find the parameters for conversion. The work in \cite{Mello2009} has proposed to use an ensemble of several non-linear regression models from different rain fall datasets. Moreover, a path length adjustment is proposed in \cite{Xiang2014} that maps rain fall to rain fade attenuation by taking into account the path length and the frequency of operation. In addition, several statistical models have been proposed in \cite{Gong2013,series2015propagation,Dahman2018} which are based on long-term data of rain attenuation, rainfall rate, and statistical analysis of related atmospheric parameters. Furthermore, the works in \cite{ITU-R2005,Das2014,Dao2013} have invesitgated the so-called fade slope models. The fade slope model calculates a change in rain attenuation based on fluctuations in measured experimental rain attenuation over time. Following that, the results can be utilized to forecast rain attenuation. Recently, machine learning (ML)-based rain attenuation prediction is proposed in several works \cite{Roy2012,Livieratos2019,Ahuna2019}. Long-term rain attenuation and massive datasets of related parameters such as path length, frequency, rain fall rate, rain drop temperature, humidity, pressure, wind velocity, and etc. are used to train an ML model (i.e., artificial neural network), and this trained model (e.g., optimized weights) can later be used to predict rain attenuation. However, the atmospheric processes that cause rainfall and subsequently rain fade are complex, and emperical or statistical models in \cite{Emilio2008,Lu2018,Mello2009,Xiang2014,ITU-R2005,Das2014,Dao2013} cannot accurately predict them. These models require field knowledge and sheer data about rain parameters, which can vary dramatically between locations on Earth, thus, making the models difficult to generalize. Although previous works in \cite{Roy2012,Livieratos2019,Ahuna2019} have attempted to address these challenges by using ML models that require the least amount of field knowledge about rain models, they still rely on temporal data on rain parameters and cannot generalize to large scale systems. With the advancement of deep learning (DL) in image processing, recently, many works have proposed deep neural network architectures for precipitation forecasting using satellite and radar images of Earth \cite{Nielsen2021,sonderby2020metnet,prudden2020review}. Therefore, we use both spatial (radar and satellite images) and temporal (power beacon measurements) to predict chances of rain fade. The main contribution of this paper is to propose a novel DL architecture that uses spatio-temporal data from several RF GWs in the Echostar-19 system to classify the satellite-to-GW link status into fade or non-fade classes \cite{echostar-19}. In particular, we have proposed a 3-D convolutional neural network (CNN) that receives the Geostationary Operational Environmental Satellite 16 (GOES-16) satellite images, Meteorologix radar data, Echostar-19 system link power data as input and extract necessary features to forecast rainfade. We have explained all the preprocessing steps to prepare the data to train the model. To the best of our knowledge, this is the first work that uses weather imagery data to forecast the satellite-to-earth rainfade. Our expereminetal results have shown that the proposed DL architecture can outperform current state of the art works in terms of accuracy, precision, recall, and f1-score in a satellite communication scenario. The proposed DL arhictecture can also be used as a building block of rain fade forecasting for any aerial communication system such as UAVs or HAPs that uses Ka-band or higher frequencies. \section{Problem Definition}\label{sec:Problem} GOES-16 provides continuous weather imagery and monitoring of meteorological and space environment data across North America. The satellite provides advanced imaging with high spatial resolution, 16 spectral channels, and with 5 minutes scan frequency for accurate forecasts and timely warnings. The real-time feed and full historical archive of Advanced Baseline Imager (ABI) radiance data (Level 1b) are freely available on Amazon Web Services (AWS) for anyone to use. In addition, every five minutes the Meterologix generates and distributes a file containing a 1 km $\times$ 1 km resolution mosaic of National Weather Service (NWS) radar reflectivity activity. The GOES-16 and Meterologix images cover contiguous United States and the upcoming Echostar-24 GWs are all located within the Western US. Our goal is to design a DL architecture that processes GOES-16 satellite images and Meterologix radar images and the information about rain fade at GWs such as received power from the satellite on its beacon signal received at GWs and forecasts rain fade events in the future. {It should be noted that the target forecasting time can be as short as the period of beacon records, which is in the order of milli seconds, but in our case, we aim for a 5 minute window due to the model's application in GW switchovers. } \subsection{Data Preprocessing} \subsubsection{Downsampling for resolution} The GOES-16 bucket on AWS contains images of 16 spectral channels (0.47 $\mu m$ - 13.3 $\mu m$) with a 5-minute sampling rate. However, there are some problems with this raw data that need to be addressed. First, the channels have different spatial resolutions varying from 0.000014 to 0.000056 radians in Geostationary coordinate system reference (CSR). Therefore, the channels with a higher resolution need to be downsampled to match with the minimum resolution of the channels or the lower resolution channels need to be upsampled to match with the maximum resolution. The latter case will be less preferable for our problem since upsampling will result in increasing the sizes of the files (and consequently the processing requirements). Thus, the first step in the preprocessing of the AWS files is to downsample the channels with higher resolution from 0.000014 radians to a 0.000056-radian resolution. With 0.000056-radian resolution, every pixel of the image will cover approximately a 2 Km $ \times $ 2 Km area on the US map. \subsubsection{CRS} GOES-16 uses Geostationary CRS. Therefore, we will need to transform the GOES-16 coordinates from Geostationary to Geodetic which is the commonly used CRS that describes the location of each GW in latitude and longitude. This conversion is not required for the Meterologix radar data as it is already in Geodetic CRS. \subsubsection{Extracting the area of interest} Since we are interested in forecasting the rain fade at the location of GWs, we need to extract the images of areas of interest (AoI) from the raw GOES-16 and radar images. Thus, we crop square areas from the original raw images such that the GWs are located in the center of each square. The number of pixels in these cropped images depends on the size of the area within which we will want to forecast the rain fade event for. For example, a 32 pixels $\times$ 32 pixels image will cover an area of approximately 64 Km $\times$ 64 Km. In fact, our experiments have shown that a 64 Km $\times$ 64 Km AoI results in the highest performance in terms of forecasting the rain fade events. \subsubsection{Decomposing Weather Condition Channels} The values of each pixel in a Meterologix file can take a value between 0 to 48 such that 0 to 16 indicates the intensity of rain, 17 to 32 indicates the intensity of a mix of snow and rain, and 33 to 48 indicates the intensity of snow. Thus we decompes each Meterologix file into three channels of rain, snow, and mix. \begin{figure*}[t!] \centering \includegraphics[width=0.75\textwidth]{Figures/Preprocessing.png} \vspace{-3mm} \caption{An illustration of data preprocessing steps.} \label{fig:preprocessing} \vspace{-5mm} \end{figure*} \subsubsection{Standardizing the images} To stabilize our deep learning training, it is recommended to standardize the input data. To this end, the mean value of each channel must be subtracted from the pixels of each channel and then divided by the standard deviation of the channel. This will lead us to have the mean and the standard deviation of the input channels equal to zero and one respectively. Formally, if we let be $p_{ij}^c$ to be the pixel of an image from channel c located at the $i$-th row and $j$-th column, then the standardized pixel will be $\bar{p}_{ij}^c = \frac{p_{ij}^c - m^c}{s^c}$, where $m^c$ and $s^c$ are the sample mean and the sample standard deviation values of channel $c$. Note that to derive $m^c$ and $s^c$ from the images, we will need to have access to all the images. However, due to the size and number of the image samples, we will use a running approach, particularly Welford's online algorithm \cite{welford1962note}, to calculate and update the mean and standard deviation values. \subsubsection{Ground truth label extraction} For ground truth, we use the beacon measurements and compare them with a rain fade threshold determined by link budget analysis. For training purpose, we sample the beacon data with a 1-minute sampling. For each time sample we derive three values, the minimum beacon value within the past five minutes, the label for the past five minutes, and the label for the future five minutes. For the past or future labels, we consider it to be 1 if the minimum beacon value of past or future 5 minutes goes below the rain fade threshold. For instance, if three consecutive sampling time instances are $t_1$, $t_2$, and $t_3$, then the minimum beacon value between $t_1$ and $t_2$ is used to define the past label at time instance $t_2$ and the minimum beacon value between $t_2$ and $t_3$ is used to define the future label at this time instance. We call the resulting sample and ground truth from the past 5 minute the "current beacon value'' and "current rainfade status'' and the resulting label for the future 5 minutes the "target label''. The current beacon value and current rainfade status will be used in the model as extra information besides the GOES-16 and radar data to improve the accuracy of the model. Note that, although we collect instantaneous beacon samples, the sampling rate for GOES-16 and radar data is 5 minutes, thus, we will not have any image data for 5 minutes after receiving a new GOES-16 or radar data. Hence, we can use the most recent GOES-16 or radar image in case we are to call the model in between two sampling time steps. Therefore, in order to make the model semi-on demand, meaning that instead of waiting for 5 minutes to call the model to predict for the future 5 minutes, in the training phase, we use 1-minute sampling rate which will provide us with more granularity. \subsubsection{Imbalanaced data} The rain fade labels are extremely imbalanced meaning that less than 1\% of the samples can be labeled as rain fade due to the weather condition at these locations. Therefore, using all of the samples will introduce a bias to the model and will increase the number of false negatives (FN) predictions. To address this problem, we will under-sample the clear weather (no rain fade) samples and oversample the rain fade samples to balance the number of samples for true (rain fade) and false (clear) cases. To under sample, we will periodically drop some of the clear sky instances, while for oversampling we use multiple copies of the rain fade instances for the training of the DL architecture. Therefore, by oversampling the rain fade images, and under-sampling the clear sky images we will balance the ratio between the number of true and false samples. Fig. \ref{fig:preprocessing} summarizes the preprocessing steps of the design. Next, we will propose a DL architecture that can forecast rain fade events based on the preprocessed data. \section{Deep learning architecture} To capture the Spatio-temporal interdependencies of the GOES-16 and radar images we choose a 3D CNN as the main building block for our baseline architecture. A long short term memory (LSTM)-2D CNN may also be evaluated as an alternative in the future. While a 2D CNN can extract spatial features from an input image, a 3D CNN (or an LSTM-CNN) block can learn the temporal relationship between the input images from different time steps. As shown in Fig. \ref{fig:architecture}, we consider multiple layers of 3D CNN such that conceptually the first layer extracts the interdependencies between the channels and the second or later layers find the features of the images that can be used for rainy weather forecasting. After every CNN layer, we have implemented a pooling layer to reduce the size of the input. CNN utilizes non-linear rectifier (RELU) activation. And finally, after a flattening layer, we have a dense layer that learns the relationship between the input images and the probability of the rain fades. The activation function of the last layer is chosen to be a softmax to map the output of the dense layer to a rain fade probability value between 0 and 1. In the following, we explain how we prepare the input data for the DL model. \begin{figure*}[t!] \centering \includegraphics[width=0.8\textwidth]{Figures/Architecture.png} \vspace{-3mm} \caption{The proposed deep learning architecture.} \label{fig:architecture} \vspace{-6mm} \end{figure*} \subsubsection{Preparing the input data for the DL model} Although GEOS-16 and radar images are the main sources of input for training the DL model, we will attach some extra information to them regarding the location of GWs, the current rainfade state of the GW for each input sample interval, and the current beacon measurement. To this end, based on our experiments, the most efficient way to integrate such information is to add extra channels to the image data in the following way. For the location, we use one-hot encoding meaning that for $n_g$ number of GWs, we consider $n_g$ extra channels. All the pixels of these channels will have a zero value except the i-th channel which will be all ones if the GOES-16 image is for the i-th GW. This input allows multiple GWs to share the same prediction model allowing them generalize better. Moreover, we add one extra channel such that its pixels will be all +1s if the current state of the GW is rain fade and it will be all -1s, otherwise. This input allows the model to see the ground truth about the rainfade of the GW in the recent past for the given GEOs image at the given time. Finally, based on the historical beacon data for each GW, we bucketize the beacon measurements into $n_b$ buckets such that each bucket will have approximately equal number of samples. Thus, for each bucket we will have two values that define the two ends of the bucket. Then we consider $n_b$ extra channel such that if the current beacon value falls into the i-th bucket we will define the i-th channel to be all 1s and the other channels to be all -1 (one hot encoding). Thus, considering $n_{\textrm{GOES}}$ and $n_{\textrm{radar}}$ to be the number of channels from GOES-16 and radar sources, at every time step will have $n_{\textrm{GOES}}+n_{\textrm{radar}}+n_g+n_b+1$ channels. Note that if only GOES-16 or radar data is fed to the model, the number channels are chosen to be $n_{\textrm{GOES}}+n_g+n_b+1$ or $n_{\textrm{radar}}+n_g+n_b+1$. Next, the input data for each time step will have a $32 \times 32 \times (n_{\textrm{GOES}}+n_{\textrm{radar}}+n_g+n_b+1 )$ size where 32 is the number of pixels in each direction of the GOES-16 and radar images. In addition, as mentioned, we will also feed the images of the multiple steps in the past to the 3D CNN to capture the temporal behavior of the input images. Thus, letting $n_p$ be the number of samples from past, then input sample to the CNN will have a $n_p \times 32 \times 32 \times (n_{\textrm{GOES}}+n_{\textrm{radar}}+n_g+n_b+1 )$ shape. To train the model we split the data into two sets: training and test sets. For the training set, we use the first 80\% of the preprocessed data and keep the remaining 20\% for testing the model. Note that the under-sampling and over sampling steps of the preprocessing are done only on the training set. {Furthermore, we avoid using a validation set; instead, the test set is used to validate the model's performance at each epoch of training.} \begin{figure}[t!] \centering \includegraphics[width=0.75\columnwidth]{Figures/Beacon_BIS.png} \caption{The beacon measurements for a sample GW.} \label{fig:beacon} \vspace{-5mm} \end{figure} \begin{figure*} \centering \includegraphics[width=0.75\textwidth]{Figures/Example.png} \caption{An example of true rain fade prediction for 60 minutes into the future using the imagery data from past 30 minutes.} \label{fig:example} \vspace{-5mm} \end{figure*} \section{Experimental results} \subsection{Evaluation metrics} To evaluate the performance of the model let us define four terminologies: True-positive (TP): A rain fade event correctly classified as rain fade. False-positive (FP): A clear sky event incorrectly classified as rain fade. True-negative (TN): A clear sky event correctly classified as clear sky. False-negative (FN): A rain fade event incorrectly classified as clear sky. Now, we can define the evaluation metrics: Accuracy: The closeness of the predictions to their actual labels which is defined as: \begin{align} \textrm{accuracy}= \frac{(\textrm{TP}+\textrm{TN})}{(\textrm{TP}+\textrm{TN}+\textrm{FN}+\textrm{FP})} \end{align} Precision: The fraction of TP instances among the positive instances predicted by the model and defined as: \begin{align} \textrm{precision}=\frac{\textrm{TP}}{(\textrm{TP}+\textrm{FP})} \end{align} Recall: The fraction of TP instances among the actual (ground truth) positive instances and defined as: \begin{align} \textrm{recall}=\frac{\textrm{TP}}{(\textrm{TP}+\textrm{FN})} \end{align} F1-score: A harmonic mean of precision and recall which allows us to combine these two metrics and it is defined as: \begin{align} \textrm{F1-score}=2 \frac{(\textrm{precision} \times \textrm{recall})}{(\textrm{precision}+\textrm{recall})} \end{align} F1-score allows us to evaluate the model during the training phase to find a model that has both good precision and recall rates. \subsection{Dataset} We choose seven collocated locations for Echostar 19 and Echostar 24 as described in \cite{gateways1} and \cite{gateways2} and use the data from fourth quarter of 2018 till first quarter of 2021. To evaluate the model first we label the data by aggregating the beacon measurements of each GW and using a weighted avergaing we derive the clear sky threshold for each time step and we compare the beacon measurements of each day by this threshold. Fig. \ref{fig:beacon} shows the beacon measurements, clear sky threshold, and rain fade cases for a single GW. \begin{figure*}[t!] \centering \includegraphics[width=0.8\textwidth]{Figures/Comparison.png} \caption{The comparison of our proposed DL architecture with state-of-the-art ML models.} \label{fig:comparison} \vspace{-5mm} \end{figure*} \subsection{Experiments} Fig. \ref{fig:example} shows an example of the input imagery from past 30 minutes to the model and its correct prediction of rain fade in 60 minutes into the future. In Fig. \ref{fig:example}, {we show an example of the model's data inputs and how the model can predict a long-term rain fade event in 60 minutes by processing data from the previous 30 minutes.} This is a result that other state-of-the-art models fail to achieve. To showcase this performance gain, next, we train our model for different target future time from 5 minutes to 65 minutes into the future. First, we train our proposed model on three imagery input scenarios: a) GOES-16 only, b) radar only, and c) GOES-16 and radar together. In addition to the imagery data, as previously discussed, we use the beacon data as additional information. Fig. \ref{fig:comparison} shows the output of the model on the test data of one RF GW. We can see from Fig. \ref{fig:comparison} that the case with only radar inputs outperforms the other two scenarios for short term forecasting in terms of f1-score while the model trained only on GOES-16 outperforms the other two in long term forecasting. This is due to the fact that GOES-16 images track the movements of the clouds while the radar images have the weather condition records. Thus, for a short term prediction radar data is more effective while for a long term prediction a data fusion of radar and GOES-16 can be used. Next, we compare our model's performance to that of two other cutting-edge ML-based rain fade prediction models that only use time series data. In \cite{Ahuna2019} a multi-layer perceptron (MLP) was used while in \cite{Livieratos2019} a support vector machine (SVM)-based model was proposed for rain fade prediction. In our experiments, we use the beacon data as the time series input for these models. We can see from Fig. \ref{fig:comparison} that the proposed DL architecture can outperfom the other state-of-the art ML models especially for long term predictions. \begin{figure}[t!] \centering \includegraphics[width=0.78\columnwidth]{Figures/ROC.png} \caption{ROC curve of the proposed DL architecture vs state-of-the-art ML models.} \label{fig:ROC} \end{figure} Fig. \ref{fig:ROC} shows the receiver operating characteristic (ROC) curve of a long term prediction scenario for our proposed DL model vs the two ML-based models. The ROC curve depicts a trade-off between the TP rate (TPR) and the FP rate (FPR) by plotting TPR versus FPR at various thresholds. Lowering the classification threshold causes more observations to be classified as positive, increasing the TP rate. We can see from Fig. \ref{fig:ROC}, because the ROC curve in our proposed model is closer to the top left of the graph, we can achieve a high TPR while maintaining a low FPR. The other two classifiers, particularly the MLP classifier, will be unable to distinguish between the two classes well, and thus its ROC curve will be closer to the diagonal, implying lower TPR and higher FPR. The area under the ROC Curve (AUC) measures a model's performance across all possible classification thresholds. From Fig. \ref{fig:ROC} we can see that our proposed DL architecture has a higher AUC thus it is better at predicting the probability of rain fade higher than the probability of clear sky. In addition, Fig. \ref{fig:CM} depicts the proposed DL's confusion matrix when predicting rain fade 60 minutes in the future. According to Fig. \ref{fig:CM}, with a classification threshold of 0.5, the proposed architecture accurately predicts rain fade and clear sky events almost 12 times more than the false labels ($\frac{(\textrm{TP}+\textrm{TN})}{(\textrm{FN}+\textrm{FP})} \approx 12$) which shows how effective the architecture is working in terms of forecasting the rain fade. \begin{figure}[t!] \centering \includegraphics[width=0.83\columnwidth]{Figures/Confusion_matrix.png} \caption{The confusion matrix for the proposed DL when predicting 60 minutes into the future.} \label{fig:CM} \vspace{-3mm} \end{figure} \section{Conclusion} In this paper, we have proposed a DL-based architecture for forecasting rain fade in aerial communication systems that operate at Ka-band or higher frequencies (Q-band and V-band), such as satellite systems, UAVs, or HAPs. To that end, we have described all of the steps for preprocessing and preparing the data, as well as the architectural design. We have conducted several experiments for long-term and short-term rain fade forecasting and compared our results to cutting-edge ML-based approaches. The results demonstrate that the proposed DL-based architecture outperforms state-of-the-art models in terms of accuracy, recall, precision, and f1-score, particularly in long-term forecasting. In addition, the experiments show that radar data containing radar weather condition information is more effective for short-term prediction, whereas satellite weather data containing cloud movement information is more effective for long-term prediction. \bibliographystyle{IEEEtran}
\section{Introduction} \label{sec:intro} Classical optimization plays an important role in the study and development of quantum computing software--hardware stacks. Various layers of compilers must be used to transform a quantum algorithm written in a quantum programming language \cite{larose2019overview} to form an executable algorithm on a quantum processor. Ideally, this process can be fully automated so that a quantum software developer can abstract her attention away from considerations of optimal commutations of quantum gates~\cite{itoko2019quantum, itoko2020optimization}, mitigating various sources of noise and errors on the executed instruction sets~\cite{murali2019noise}, and the specific architectures of backend quantum devices~\cite{leymann2020bitter}. An optimization problem related to compiling for a specific architecture requires the construction of an efficient transformation of the quantum program into one executable on specific systems of physical or logical qubits with geometric locality constraints such as 2D or 3D nearest-neighbour connectivity or other limited sets of multi-qubit entangling gates. This compilation step is of interest for the near-term compilation of small- to moderate-sized quantum algorithms on noisy, intermediate-scale quantum (NISQ) systems that have between tens and thousands of qubits~\cite{preskill2018quantum}. Moreover, similar compilation procedures are of interest for fault-tolerant quantum computation (FTQC) on the large-scale architectures anticipated for quantum computers, such as modular architectures comprising arrays of superconducting qubits~\cite{lao2018mapping} or quantum dots and donors~\cite{vandersypen2017interfacing}, and modular trapped-ion architectures dependent on shuttling ions between different trapping zones~\cite{brown2016co}. The goal of the aforementioned optimization task is to compile an input quantum circuit, written as an abstract sequence of quantum gates, into another circuit comprising quantum gates physically available on the target quantum processor while incurring the least possible overhead. A compiler that performs this translation may instead be called a \emph{transpiler}, especially when the circuit transformation is happening at the same level of software abstraction (e.g., when both the input quantum circuit and the compiled circuit are written in terms of the \mbox{Clifford + $T$} gates), as opposed to when the compilation is from a higher level of abstraction to a lower one. The transpiler may aim to reduce the total number of additional gates it introduces in order to minimize the number of erroneous operations performed. Alternatively, the transpiler may reduce the depth, or \emph{makespan}, of the compiled circuit in order to reduce the overall runtime of the algorithm, assuming that simultaneous gates can be performed with a negligible amount of cross-talk. In this paper, we focus on the former optimization objective of reducing the total number of additional gates the transpiler introduces. This optimization problem is often modelled as a \emph{placement and routing} problem of finding a mapping of the abstract qubits to the physical qubits (placement), followed by iterations of performing entangling gates between qubits that are far apart by moving them closer to each other (routing), for example, via {\sc Swap}\ gates. The placement and routing problem has been extensively studied in the context of NISQ \mbox{algorithms~\cite{shafaei2014qubit, wille2014optimal, farghadan2017quantum, siraichi2018qubit, lao2018mapping, herbert2018using, zulehner2018efficient, booth2018comparing, cowtan2019qubit,murali2019noise, childs2019circuit, venturelli2019quantum, li2019tackling, niu2020hardware, itoko2020optimization, paler2021nisq, sinha2021qubit},} as well as in the fault-tolerant compilation of quantum algorithms using concatenated error-correcting codes~\cite{lin2014paqcs}, lattice surgery--based fault-tolerant quantum \mbox{computing (FTQC)~\cite{paler2017online, lao2018mapping},} and defect-based FTQC~\cite{javadi2017optimized}. The problem and several of its variants are known to be NP-hard~\cite{siraichi2018qubit, cowtan2019qubit}. Therefore, several of the mentioned references rely on heuristic methods for finding a \mbox{(sub-)optimal} placement and routing policy. Some of the solutions relevant to our approach are those based on the observation that the placement and routing problem is an inherently temporal problem over the span of multiple decision epochs. This includes an exact, but exponentially expensive, dynamic programming solution introduced in~\cite{siraichi2018qubit}, temporal planning and constraint programming~\cite{booth2018comparing, venturelli2019quantum}, and methods that use reinforcement learning~\cite{herbert2018using, sinha2021qubit}. On one hand, these approaches are superior to the greedy techniques that neglect the future impact of decisions made at earlier decision epochs. On the other hand, the global nature of the optimization problem solved hinders the scalability of the algorithm, especially in instances where the compilation procedure is expected to include computationally intensive subroutines such as the training of neural networks. In this paper, we propose a middle-ground solution to the problem that captures both the efficiency of heuristic and greedy approaches, and the effectiveness of dynamic programming in temporal decision making problems. \subsection{An Overview of Our Algorithm} Although our algorithm is a heuristic search method, it is inspired by techniques in approximate dynamic programming~\cite{powell2009you}, as will be apparent from the terminology we use. We introduce two \emph{reward functions}, the placement score~\cref{eq:placement} and edge score~\cref{eq:edge-score}, that resemble the (possibly discounted) cummulative reward structures in dynamic programming and reinforcement learning. However, instead of performing costly exact or approximate dynamic programming recursions on them, we restrict their definitions to a finite \emph{decision horizon} in which only a finite number of subsequent two-qubit gates are taken into account. We then use heuristic search to decide on the immediate actions to take, that is, the placement and routing of a subsequent \emph{layer} of gates. The full placement and routing \emph{policy} is formed by iterating over this process. The above procedure frequently encounters scenarios in which the finite-horizon reward functions result in a tie across multiple routing options. This behaviour is more prominent for more-structured quantum circuits which constitute most of the practical input circuits for the transpiler. Our algorithm is highly adaptive to the specific nature of the input quantum circuits by means of two hyperparameters: the \emph{discount factor} in the finite-horizon reward functions, which determines the significance of future gates in the decision horizon; and the \emph{lookahead depth}, which determines how many decisions, that is, the number of inserted {\sc Swap}\ gates, we intend to commit to in order to refine the valuation of our immediate actions when a tie occurs between the reward function values. Consequently, our tranpiler is able to adapt to the classical computing budget available to it in order to provide a suitable (sub-)optimal placement and routing policy. Our transpiler is agnostic to any specific hardware architectures and receives the connectivity of the target architecture as an input. In~\cref{sec:results}, we discuss the behaviour of the above-mentioned hyperparameters and demonstrate the superior performance of our transpiler against other algorithms proposed in the recent literature that, to our knowledge, are representative of the state of the art. \section{The Placement and Routing Problem} \label{sec:device} \begin{figure}[b] \centering \includegraphics[trim=3cm 17cm 2cm 5cm, clip, width=\linewidth]{utils/graph_and_circuit.pdf} \vspace{-1cm} \caption{(a) Example circuit with seven gates and six qubits. \\ (b) Undirected coupling graph of the IBM Q20 Tokyo chip.} \label{fig:graph_and_circuit} \end{figure} The problem of interest in this paper is as follows. Given an input quantum circuit, or \emph{input circuit}, we wish to find a second circuit, or \emph{compiled circuit}, that executes the quantum algorithm but uses the quantum gates available on a physical device, called the \emph{target architecture}, or architecture for short. We assume that the input circuit is determined by a sequence \begin{equation} \sigma= (g_1, \ldots, g_N) \end{equation} of $N$ single-qubit rotations and {\sc CNot}\ gates afflicting a set \begin{equation} Q= \{q_1, \ldots, q_M\} \end{equation} of $M$ (logical) qubits. The target architecture of the physical device also allows it to perform similar gates, but {\sc CNot}\ gates are not available between all pairs of physical qubits. The goal of our algorithm is to generate a compiled circuit that can be executed on the target architecture by inserting a plurality of {\sc Swap}\ gates in the sequence. We note that every {\sc Swap}\ gate can be performed using three {\sc CNot}\ gates. As the addition of gates creates a deeper circuit, the compiled circuit is more prone to errors and takes a longer time to execute. Therefore, our compiler has to minimize the number of inserted {\sc Swap}\ gates, from here on called the \emph{{\sc Swap}\ count}, $N_\text{S}$. Figure~\ref{fig:graph_and_circuit}(a) shows a representation of an input circuit. The target architecture to which we intend to compile our quantum algorithm is represented using an undirected graph called a \emph{coupling graph}, $G= (V, E)$, with vertices $V$ and edges $E$. Each physical qubit is represented as a vertex $v \in V$ and the two-qubit gates available between physical qubits are represented by edges $(u, v) \in E$ between vertices $u$ and $v$. We do not consider direction for the edges in this paper; however, our algorithm can be adapted to the case of devices with a particular direction for two-qubit gates as in the case of~\cite{dueck2018optimization}. Figure~\ref{fig:graph_and_circuit}(b) shows the coupling graph of the IBM Q20 Tokyo chip as an example target architecture~\cite{hillmich2021exploiting}. \begin{figure}[t] \centering \includegraphics[trim=3.5cm 18.5cm 4cm 4.5cm, clip, width=\linewidth]{utils/layer_example.pdf} \vspace{-0.5cm} \caption{Example circuit after gates are grouped into layers using (a) fine layering and (b) coarse layering. Each highlighted box represents a layer. Gates in a given highlighted box belong to the same layer.} \label{fig:layer_example} \end{figure} \begin{figure}[b] \centering \includegraphics[trim=4.5cm 19.5cm 4cm 4.5cm, clip, width=\linewidth]{utils/comm_rules.pdf} \vspace{-0.5cm} \caption{(a) $R_\text{Z}$--control, (b) Control--control, (c) $R_\text{X}$--target, and (d) Target--target.} \label{fig:comm_rules} \end{figure} We construct a \emph{layering} for the input circuit, which is a partition \begin{equation} L= \bigsqcup_{i=1}^{N_L} L_i \end{equation} of the set of all gates in the input circuit $\sigma$ into a number of layers $L_i$. Each layer comprises a subset of the gates in $\sigma$. The layering is alternatively given by a function \begin{equation} \ell: \{g_1, \ldots, g_N\} \to \mathbb N, \end{equation} where $\ell(g_i)$ is the index of the layer to which gate $g_i$ belongs. We perform this decomposition in two ways. In both cases, we assure the minimal number of layers are constructed. The construction also guarantees that the gates in the same layer can be executed in any order. In the first decomposition, called \emph{fine layering}, gates that share qubits are grouped into distinct layers. Figure~\ref{fig:layer_example}(a) shows an example of fine layering. The single-qubit gates are moved to the earliest layer to which they can be moved. The single-qubit gates do not affect the placement and routing procedure explained in this paper. In the second decomposition, called \emph{coarse layering}, gates that mutually commute are allowed to be in the same layer. The commuting relations we use are the same ones used in~\cite{itoko2020optimization}, and are shown in~\cref{fig:comm_rules}. An example of coarse layering can be seen in \cref{fig:layer_example}(b). The motivation for using coarse layering is that all commuting gates within the same layer can be executed in any order, thus reducing the potential {\sc Swap}\ count, $N_\text{S}$. \section{Description of our algorithm} Our algorithm consists of two main subroutines: placement and routing. We describe our method for finding a good placement in~\cref{sec:placement}, and then present our routing subroutine in~\cref{sec:routing}. \subsection{Placement} \label{sec:placement} The first step of our algorithm is to assign each qubit in the circuit to a vertex. An injective mapping $$p: Q \to V$$ of qubits involved in the input circuit $\sigma$ to vertices of the coupling graph is called a \emph{placement}. To a placement $p$ we associate a \emph{placement score} \begin{equation} \label{eq:placement} \Sigma_{p, \ell}(\lambda, \delta)= \sum_{i=1}^\lambda \delta^{\ell(g_i) - 1} d_G\left(p(q_i^{(1)}), p(q_i^{(2)})\right), \end{equation} where $\lambda$ is a positive integer called the \emph{decision horizon}, or \emph{horizon} for short. The horizon represents the number of future gates in the circuit taken into account in order to evaluate the utility of a placement. The index $i$ runs over the subsequent $\lambda$ two-qubit gates in $\sigma$. The $i$-th two-qubit gate $g_i$ involves qubits $q_i^{(1)}$ and $q_i^{(2)}$. Here, $d_G$ denotes the distance between vertices in the coupling graph $G$. The value $\delta \in [0, 1]$ is called the \emph{discount factor}, and represents the significance of the contribution of later gates to the placement score. Discount factors closer to $0$ aggressively suppress the contribution of gates in future layers, sorting them in chronological order, roughly speaking, whereas discount factors closer to $1$ assign larger, yet exponentially decaying, weights on the distances between qubits involved in gates in future layers, allowing the future gates to make greater contributions. The best choice of discount factors depends on the structure of the input circuit. We study the choice of this hyperparameter (see ~\cref{sec:results}). The hyperparameters \emph{decision horizon} and \emph{discount factor} appear also in the definition of edge scores in~\cref{sec:routing}. A good placement is one that can lead to a significant reduction in the final {\sc Swap}\ gate count. We present two heuristics for generating placements:~\emph{matching-based} and~\emph{linear} placement. We generate a number of placements using the two heuristics. We then compare the placements with each other using the placement score \cref{eq:placement}. Afterwards, we use the placement with the lowest placement score to route the circuits. \subsubsection{Matching-based placement} This method involves finding a maximal matching on the coupling graph, and constructing a placement that maps the gates of the first layer onto the edges of the matching. The idea of using a matching in the coupling graph was first introduced in~\cite{childs2019circuit}. We employ two methods for finding a matching. The first is a greedy approach, in which edges are added to the matching until no additional edges can be added. The second approach is to use Edmonds’ blossom algorithm~\cite{edmonds1965paths} to construct a maximum matching. In general, a maximum matching covers a larger number of target qubits. However, the blossom algorithm takes more computation time than the greedy matching and its effect is not significant for highly structured coupling graphs such as regular lattices. We refer the reader to~\cref{tab:initial_placement_comparison} for a comparison of the performance of the greedy and blossom matching methods. Using a matching in the coupling graph might not result in a complete placement. The remaining qubits without an assigned placement can be mapped to the remaining vertices at random. However, this may cause the qubits to be assigned to vertices that are far apart, especially when the number of vertices is much larger than the number of qubits. This would require us to introduce unnecessary {\sc Swap}\ gates in the compiled circuit in order to move the qubits closer to each other. To prevent this behaviour, we introduce another heuristic to keep the placed qubits closer to the more-connected regions in the architecture. \subsubsection{Linear placement} We construct maximal paths in the coupling graph using a greedy algorithm. This is done in two ways: we greedily favour either the high-degree or low-degree vertices. The latter method is used to account for architectures that have star-like subgraphs, for which starting from the highest-degree vertices might result in very short paths (see~\cref{fig:chain} for an example). For more-complex architectures, this greedy approach can be performed continually until a maximal linear forest has been found. After the paths are constructed, the placement algorithm iterates through the vertices of any given longest path and moves the qubits to the earliest free vertices on the path. \begin{figure}[h] \centering \includegraphics[trim=3cm 20cm 3cm 4cm, clip, width=\linewidth]{utils/chain_structure.pdf} \caption{Example architecture containing a star-like subgraph. Starting path construction from $v_5$ might result in a short path, whereas starting from $v_1$ will result in a longer path.} \label{fig:chain} \end{figure} As demonstrated in~\cref{sec:placement_comparison}, the two heuristics introduced above can be used as stand-alone methods or in combination. Optionally, a plurality of placements can be generated and compared according to their placement scores. \subsection{Routing} \label{sec:routing} \RestyleAlgo{ruled} \LinesNumbered \let\oldnl\nl \newcommand{\nonl}{\renewcommand{\nl}{\let\nl\oldnl}}% \begin{algorithm}[] \SetKwInput{KwData}{Input} \SetKwInput{KwResult}{Output} \KwData{Input circuit $\sigma$, target architecture $G$, a layering $L= \sqcup L_i$, and a placement $p$} \KwResult{Compiled circuit $\tau$} Initialize the compiled circuit $\tau$ as an empty sequence\; \While{$\sigma$ \textup{is not empty}} { Construct a sequence $\rho$ of gates in $L_1$ already executable on $G$\; Update $\tau$ by appending $\rho$ to it\; Update $\sigma$ by removing $\rho$ from it\; Recompute the layering for $\sigma$\; \For{\textup{every free qubit} $q$ \textup{in the input circuit}}{ Change the placement of $q$ if a different placement improves the placement score\; } \If{\textup{there are no executable gates in} $L_1$} { Calculate the edge scores for edges incident to vertices involved in $L_1$; \\ \uIf{\textup{the optimal edge score is degenerate}} { Use subroutine presented in \cref{sec:tiebreak} to break the tie\; } \Else { \textup{Append a {\sc Swap}\ gate along the optimal edge to $\tau$}\; } } } \caption{\,Routing Algorithm} \label{routing_code} \end{algorithm} \begin{figure}[b] \centering \includegraphics[trim=3cm 18cm 2cm 4cm, clip, width=\linewidth]{utils/edge_score_eg.pdf} \caption{(a) Example circuit with gates in $\tau$ already routed, gate $g_1$ in layer $L_1$, and gate $g_2$ in layer $L_2$. (b) Mapping of the circuit on a $2\times3$ grid. We first need to identify the gate(s) in $L_1$, which is $g_1$ in this example. To perform an edge score calculation, we inspect edges $(v_1,v_2)$ and $(v_1,v_4)$, which are incident to the vertex of $q_3$, and edges $(v_4,v_5)$, $(v_2,v_5)$, and $(v_5,v_6)$, which are incident to the vertex of $q_1$. Here, we show how to calculate the edge score for edge $(v_2,v_5)$, shown in red. We denote the edge by $e_{25}=(v_2,v_5)$. For qubit $q_1$, the next not-yet-routed gate is gate $g_1$, which is in layer $L_1$, and the other qubit in $g_1$ is $q_3$, which is mapped to vertex $v_1$. Using \cref{eq:edge-score}, the immediate edge score is then calculated to be \mbox{$\Omega_{p, \ell}(e_{25})= d_G(v_1,v_5) - d_G(v_1,v_2)= 1$.} Similarly, for the discounted score, the next not-yet-routed gate after $g_1$ is $g_2$, which is in layer $L_2$, and the other qubit in the gate is $q_5$, which is mapped to vertex $v_3$. The edge score that includes gates in both $L_1$ and $L_2$ is then calculated to be $\Omega_{p, \ell}(\lambda= |L_1|+|L_2|, \delta=0.1, e_{25}) = \left(d_G(v_1,v_5)-d_G(v_1,v_2)\right) +0.1 \left(d_G(v_3,v_5)-d_G(v_2,v_3)\right) = 1.1$. As for the other vertex $v_2$ of $e_{25}$, given that it does not contain a qubit which corresponds to the gate in $L_1$, no calculation is needed.} \label{fig:edge_score_eg} \end{figure} The placement provided in~\cref{sec:placement} is used as input for our routing subroutine. Its pseudocode is shown in~\cref{routing_code}. The goal of the algorithm is to identify a set of edges in the coupling graph along which {\sc Swap}\ gates will be inseted. The routing algorithm receives an input circuit $\sigma$ and iteratively constructs a compiled circuit $\tau$. The algorithm begins by finding \emph{executable} gates in the first layer, $L_1$. Here, a gate in $L_1$ is called executable if the qubits involved in the layer are mapped by the placement function to adjacent vertices on the coupling graph. If we find executable gates, they are removed from $L_1$ and added to $\tau$ in the order they appear in $\sigma$. We then revise the layering, which updates $L_1$. At this point, if there are more vertices than qubits, some of the vertices will not be in the image of the placement function. We note that, if a qubit has not yet been used in any gate in $\tau$, the qubit is free to be reassigned to an unoccupied vertex or exchange places with another unused qubit. We call such qubits~\emph{free qubits}. After updating $L_1$, for every free qubit found in the input circuit, we ascertain whether a different placement for the free qubit improves its placement score, in which case we update the placement of the qubit. If all qubits in $\sigma$ have already been included in $\tau$, as there are no free qubits, this heuristic step will not be executed. If no executable gates are found, the algorithm finds a number of edges to insert {\sc Swap}\ gates along such that the qubits involved in non-executable gates are swapped to adjacent vertices, rendering them executable. Since {\sc Swap}\ gates can be inserted on any edge in the coupling graph, we need to determine which edge would be the best next choice. An edge $e= (u, v) \in E$ in the coupling graph is a good choice if it results in fewer future {\sc Swap}\ gates according to our routing algorithm. We determine such an edge using its \emph{edge score}, which we define as follows. \begin{equation} \label{eq:edge-score} \begin{aligned} \Omega_{p, \ell}(\lambda, \delta, e)&\\ \hspace{0.3em}= \hspace{-0.2em} \sum_{i=1}^\lambda \delta^{\ell(g_i) - 1} & \hspace{-0.35em} \left[d_G \hspace{-0.2em}\left(p(q_i^{(1)}), p(q_i^{(2)}) \hspace{-0.2em} \right) \hspace{-0.2em} - \hspace{-0.2em} d_G \hspace{-0.2em}\left(p_\text{e}(q_i^{(1)}), p_\text{e}(q_i^{(2)})\right) \hspace{-0.1em} \right] \end{aligned} \end{equation} Here $p$ is the current placement and $p_\text{e}$ is the new placement associated with the edge $e$ by switching the placement of the qubits mapped to $u$ and $v$, if any exist. That is, $p_\text{e} (p^{-1}(v))= u$ if $v$ is in the image of $p$, and $p_\text{e} (p^{-1}(u))= v$ if $u$ is in the image of $p$. Figure~\ref{fig:edge_score_eg} provides an example of the edge score calculation. Here, $\lambda$ represents the decision horizon and $\delta$ represents the discount factor. The extreme case of $\delta= 0$ is of particular interest, as it corresponds to the ``myopic'' decision horizon in which only the gates in the first layer are taken into account. The edge scores \[\Omega_{p, \ell} (e):= \Omega_{p, \ell} (\lambda \geq |L_1|, \delta= 0, e)\] are called \emph{immediate} edge scores. We use the immediate edge scores to heuristically find a convenient edge along which to insert a {\sc Swap}\ gate. It is sufficient to calculate the edge scores only for the edges that are incident to the vertices corresponding to the gates in $L_1$. This is because inserting {\sc Swap}\ gates along edges that are not incident to qubits in $L_1$ has no impact on $L_1$. We insert a {\sc Swap}\ gate along the edge with the maximum immediate edge score. If multiple edges are found to have the maximum edge score, we invoke a tie-breaking heuristic, which we explain in~\cref{sec:tiebreak}. The routing algorithm iterates over the above procedure until there are no gates left in $L_1$, at which point all gates have been routed and the algorithm terminates. \subsubsection{Tie-breaking subroutine} \label{sec:tiebreak} In many cases, multiple edges are found to have the maximum edge score. We call such edges \emph{degenerate}. To break a tie between degenerate edges, the algorithm temporarily inserts a {\sc Swap}\ gate for each such edge. It then continues the routing procedure, using an edge score with a decision horizon $\lambda > |L_1|$, until it generates a given number $D>0$ of additional {\sc Swap}\ gates, or it terminates when the entire input circuit is compiled. The hyperparameter $D$ is called the \emph{lookahead depth}. For each degenerate edge, the goal of this multi-step lookahead is to inspect the future state of the placement score after the insertion of $D$ {\sc Swap}\ gates within the decision horizon. We note that, compared to $\lambda$, $D$ has to be sufficiently small for this $D$-step lookahead to remain within the decision horizon. If, after the addition of $D$ {\sc Swap}\ gates, the entire input circuit has not been routed, the placement score of the resulting placement is stored as a \emph{tie-breaking score} for the degenerate edges. However, if the entire input circuit has been routed with $D'\leq D$ additional {\sc Swap}\ gates, then the tie-breaking score of the degenerate edge is defined as \mbox{$D'- D$.} The tie-breaking procedure then selects the edge with the smallest tie-breaking score. If a degenerate case still occurs for the tie-breaking scores, then one of the degenerate edges is selected at random. \section{Numerical results} \label{sec:results} In this section, we present our results and compare them with those of other placement and routing algorithms. To the best of our knowledge, SABRE~\cite {li2019tackling} is a commonly used benchmark, \texttt{arct}~\cite {childs2019circuit} scales well and runs fast for large circuits, and \texttt {tket}~\cite{Sivarajah_2020} is the most performant library found in the literature. We perform a hyperparameter study, and present its results in \cref{sec:param_selection}. In \cref{sec:placement_comparison}, we discuss the effects of different combinations of the placement schemes, introduced in~\cref{sec:placement}, on the {\sc Swap}\ count. As part of an ablation study, we benchmark the performance of our algorithm both with and without the application of the commutation rules presented in~\cref{fig:comm_rules}. Then, in \cref{sec:main-results}, we use the best hyperparameters and best placement scheme found to compare our algorithm against the above-mentioned alternatives. \subsection{Hyperparameter Selection} \label{sec:param_selection} \begin{figure*}[t] \centering \includegraphics[trim=-0.5cm 0cm -4cm 1cm, clip, width=\linewidth] {utils/param_tunning_qspja_random_normalized_1_4.pdf} \caption{Varying discount factor $\delta$ with different values for lookahead depth $D$ and decision horizon $\lambda$. We use the median and interquartile range for each data point. The {\sc Swap}\ count is normalized by the number of gates in the circuits.} \label{varying_discount} \end{figure*} We have introduced several hyperparameters in the placement and routing algorithm, and have studied their effects on the performance of our transpiler. The hyperparameters we have used are as follows: \begin{itemize} \item Discount factor $\delta$: This discount factor is used in the definitions of the edge scores $\Omega$ and placement scores $\Sigma$. The closer the discount factor is to 1, the more significant is the contribution of future gates in calculating the scores. \item Decision horizon $\lambda$: This hyperparameter determines the number of gates that are to be included in the calculations of the edge scores $\Omega$ and the placement scores $\Sigma$. A higher value of $\lambda$ indicates that a greater number of gates will be included in the score calculations. \item Lookahead depth $D$: This hyperparameter determines how many future actions (i.e.,, {\sc Swap}\ gate insertions) the tie-breaking subroutine looks ahead from, within the decision horizon. \end{itemize} We use the random circuits from~\cite{childs2019circuit, childscircuits}, with the number of qubits ranging between five and 50, to investigate the effects of the hyperparameters on the {\sc Swap}\ count $N_\text{S}$. The results are shown in~\cref{varying_discount}. We observe a general trend that, while the performance of our algorithm is not very sensitive to the choice of discount factors, the value of $0.9$ for it is slightly more effective for randomly generated input quantum circuits. \subsection{Placement Heuristics} \label{sec:placement_comparison} In our experiments, we benchmark three placement heuristics: (1) linear placement as a stand-alone placement heuristic; (2) the combination of matching-based placement and linear placement; and (3) a random mixture of the two methods to generate a plurality of placements, followed by performing a number of random {\sc Swap}\ gates before calculating the score of each placement. \mbox{Methods (1) and (2)} each generate a single placement, but method (3) generates multiple placements that are then compared to each other according to their placement scores, with the placement that has the best score being selected. We choose the hyperparmaters $\delta = 0.1$, $D = 7$, and $\lambda = 40$ in our benchmarking, performing benchmarks on the test set of circuits provided in~\cite {li2019tackling}. We report our results in~\cref {tab:initial_placement_comparison}. \begin{table*}[!htbp] \centering \renewcommand{\arraystretch}{1.1} \begin{tabular}{r||c|c||c|c|c|c||c|c|c|c} \hline \multirow{2}{*}{Circuit} &No. of & No. of & \multicolumn{4}{c||}{Avg. {\sc Swap}\ Count -- Without Commutation} & \multicolumn{4}{c}{Avg. {\sc Swap}\ Count -- With Commutation}\\ \cline{4-11} & Qubits & Gates & (1) & (2A) & (2B) & (3) & (1) & (2A) & (2B) & (3)\\ \hline \textbf{4mod5-v1\_22} & 5 & 21 & 3 & 3.33 & 2.33 & 2.33 & \textbf{2} & 3 & 2.33 & \textbf{2}\\ \textbf{mod5mils\_65} & 5 & 35 & 4 & 4 & 4.67 & \textbf{2.33} & 2.67 & 3 & 4.33 & \textbf{2.33}\\ \textbf{alu-v0\_27} & 5 & 36 & 3.33 & 5.67 & 6 & 3.33 & \textbf{2} & 3.33 & 5.33 & 3.33\\ \textbf{decod24-v2\_43} & 4 & 52 & 5.67 & 5.67 & 5.67 & \textbf{3.33} & 9.33 & 7.33 & 6 & \textbf{3.33}\\ \textbf{4gt13\_92} & 5 & 66 & 8.67 & 7 & 7.67 & 5.67 & 9.67 & 4.67 & 4.67 & \textbf{4}\\ \textbf{ising\_model\_10} & 10 & 480 & \textbf{0} & 7.33 & 9.67 & 5 & \textbf{0} & 5.67 & 8 & 5\\ \textbf{ising\_model\_13} & 13 & 633 & \textbf{0} & 12 & 11 & 6.33 & \textbf{0} & 10.67 & 11.67 & 6.67\\ \textbf{ising\_model\_16} & 16 & 786 & 1 & 10.33 & 14 & 7.33 & \textbf{0} & 14.67 & 14.33 & 6.33\\ \textbf{rd84\_142} & 15 & 343 & 49.33 & 59.67 & 52.67 & 43.33 & \textbf{39.67} & 47 & 47.67 & 44.33\\ \textbf{adr4\_197} & 13 & 3439 & 325.67 & 302 & 277.33 & 318 & 293.67 & 263.67 & \textbf{248.33} & 248.67\\ \textbf{radd\_250} & 13 & 3213 & 294.33 & 307 & 311 & 288.33 & \textbf{227.33} & 257.33 & 245 & 258\\ \textbf{z4\_268} & 11 & 3073 & 277.67 & 260.67 & 253.33 & 270 & \textbf{210.33} & 243.67 & 237.33 & 225.33\\ \textbf{sym6\_145} & 7 & 3888 & 324.67 & 314 & 220 & 282.67 & 231 & 264.67 & \textbf{201} & 205.67\\ \textbf{misex1\_241} & 15 & 4813 & 345.33 & 339.67 & 351.33 & 311.33 & 282 & 275.33 & 326.33 & \textbf{268.67}\\ \textbf{rd73\_252} & 10 & 5321 & 430.67 & 480.33 & 486.33 & 412 & \textbf{375.33} & 416 & 402 & 396.67\\ \textbf{cycle10\_2\_110} & 12 & 6050 & 567.67 & 539.33 & 479.33 & 559 & 489.67 & \textbf{421.67} & 468.67 & 456.33\\ \textbf{square\_root\_7} & 15 & 7630 & 558 & \textbf{416} & 563.33 & 523 & 431 & 519 & 501 & 420.33\\ \textbf{sqn\_258} & 10 & 10223 & 937.67 & 838 & 919 & 776 & 697.67 & \textbf{690.67} & 747 & 693.33\\ \textbf{rd84\_253} & 12 & 13658 & 1332.67 & 1202.33 & 1272 & 1170.33 & 1043.33 & 1011.67 & 1067.67 & \textbf{1010}\\ \textbf{co14\_215} & 15 & 17936 & 1861.67 & 1682.33 & 1841 & 1850.67 & 1665.33 & 1630.67 & \textbf{1438} & 1639.67\\ \textbf{sym9\_193} & 10 & 34881 & 3305 & 3272 & 3089.33 & 3249.33 & 2878.67 & 2782.67 & \textbf{2453} & 2696.67\\ \textbf{9symml\_195} & 11 & 34881 & 3113.33 & 2945 & 3153 & 3034 & 2459 & 2674 & \textbf{2147.33} & 2817\\ \hline No. of Lowest & \multirow{2}{*}{n/a} & \multirow{2}{*}{n/a} & \multirow{2}{*}{2} & \multirow{2}{*}{1} & \multirow{2}{*}{0} & \multirow{2}{*}{2} & \multirow{2}{*}{9} & \multirow{2}{*}{2} & \multirow{2}{*}{5} & \multirow{2}{*}{6}\\ {\sc Swap}\ Counts & & & & & & & & & &\\ \hline \end{tabular} \caption{{\sc Swap}\ counts with different placement methods performed on the test quantum circuits in~\cite{li2019tackling}. Method (1): linear placement, method (2A): matching-based placement with greedy matching, method (2B): matching-based placement with blossom matching, and method (3): multiple placements. The lowest {\sc Swap}\ count for each circuit is shown in bold text.} \label{tab:initial_placement_comparison} \end{table*} As shown in Table~\ref{tab:initial_placement_comparison}, method (1) performs best for Ising model circuits, independent of whether we apply commutation rules. This is expected, as the two-qubit gates in the circuits representing one-dimensional Ising models are {\sc CNot}\ gates that are applied to successive qubits. Given the linear structure of Ising model circuits, they are not representative of general benchmarking circuits; therefore, we exclude them from our discussion and the results in~\cref{tab:initial_placement_percentage}. We observe from~\cref {tab:initial_placement_comparison} that \mbox{method (3)} produces the greatest number of best results for smaller circuits (i.e., circuits with fewer than 100 gates) among the benchmark tests we run, both with and without the application of commutation rules. However, for larger circuits (i.e., those having more than 400 gates), method (2B) produces the greatest number of best results, both with and without applying commutation, by taking advantage of the matching algorithms and randomness involved in producing the rest of the placements. \begin{table}[!htbp] \small \renewcommand{\arraystretch}{1.1} \begin{tabular}{r||c|c|c|c} \hline & (1) & (2A) & (2B) & (3)\\ \hline Without Commutation & 44.4\% & 45.5\% & 45.2\% & 24.9\%\\ With Commutation & 23.5\% & 24.1\% & 25.3\% & 9.1\%\\ \hline \end{tabular} \caption{Average relative increase in the {\sc Swap}\ counts for each placement method shown in~\cref{tab:initial_placement_comparison}. The relative increase percentages are with respect to the baseline, defined as the lowest {\sc Swap}\ count observed between all four methods. \mbox{Method (1):} linear placement, method (2A): matching-based placement with greedy matching, method (2B): matching-based placement with blossom matching, and method (3): multiple placements.} \label{tab:initial_placement_percentage} \end{table} In~\cref {tab:initial_placement_percentage}, we use the best results as a baseline. We calculate the average percentage increase in the {\sc Swap}\ count for each method, as compared to the baseline. On average, method (3) outperforms the other methods, and the use of commutation rules improves the performance of the transpiler. As a result, we use \mbox{method (3)} and apply commutation rules for the following benchmark, in which we compare our algorithm's performance against that of other algorithms. \subsection{Comparison with Other Algorithms} \label{sec:main-results} We first compare the results obtained from our transpiler, called Nuwa, with those produced by \texttt{arct} in~\cite{childs2019circuit} and~\texttt{tket} in~\cite{Sivarajah_2020}. Several families of practically important quantum circuits have been contributed by~\cite{childs2019circuit, childscircuits} for benchmarking purposes. We benchmark the three algorithms on these families, namely, quantum circuits pertaining to quantum signal processing (QSP)~\cite{low2017optimal}, quantum Fourier \mbox{transformation (QFT),} and the product formula expansion of exponentials of local Hamiltonians, which is of interest in Hamiltonian simulation applications~\cite {childs2021theory}. We also benchmark the three algorithms on randomly generated circuits. The results of our comparison are shown in~\cref {compare_childs_pytket_nuwa}. On average, Nuwa uses 9.0\% fewer {\sc Swap}\ gates than \texttt{tket} and 51.8\% fewer {\sc Swap}\ gates than \texttt{arct} for QSP circuits. For QFT circuits, the average improvement is 22.4\% and 52.6\%, respectively. For product formula circuits, Nuwa uses 13.1\% more {\sc Swap}\ gates than \texttt{tket} but 83.1\% fewer than \texttt{arct}. For random circuits, the average improvement is 15.7\% and 45.1\%, respectively. \begin{figure*}[!htbp] \centering \includegraphics[trim=-0.2cm 0cm -2cm 0cm, clip, width=\linewidth] {utils/compare_childs_pytket_nuwa.pdf} \caption{(a) {\sc Swap}\ counts of the QSP circuits. (b) Average {\sc Swap}\ counts of randomly generated circuits. (c) {\sc Swap}\ counts of QFT circuits. (d) Average {\sc Swap}\ counts of the product formula circuits. For (b) and (d), we use the median and interquartile range for each average data point.} \label{compare_childs_pytket_nuwa} \end{figure*} We next compare Nuwa's results with those of Qiskit implementation~\cite{Qiskit} of SABRE. We use the same circuits as used in~\cite{li2019tackling}. Results produced by~\texttt{tket} are also included, and are shown in \mbox{\cref{tab:other_algo_comparison}.} We note that we were not able to include SABRE in the study whose results are shown in~\cref{compare_childs_pytket_nuwa} on test instances of~\cite {childscircuits}, as the Qiskit implementation of SABRE requires the number of vertices of the coupling graph to be the same as the number of qubits in the input quantum circuit. \begin{table*}[!htbp] \renewcommand{\arraystretch}{1.1} \begin{tabular}{r||c|c||c|c|c|c|c} \hline \multirow{2}{*}{Circuit} & No. of & No. of & \multirow{2}{*}{\texttt{tket}} & \multirow{2}{*}{SABRE} & \multirow{2}{*}{\texttt{arct}} & \multicolumn{2}{c}{Nuwa}\\ \cline{7-8} & Qubits & Gates & & & & Without Commutation & With Commutation\\ \hline \textbf{4mod5-v1\_22} & 5 & 21 & 4 & 7 & 6 & 2.33 & \textbf{2} \\ \textbf{mod5mils\_65} & 5 & 35 & 3 & 17 & 7 & 2.33 & \textbf{2.33} \\ \textbf{alu-v0\_27} & 5 & 36 & 3 & 12 & 11 & 3.33 & \textbf{3.33} \\ \textbf{decod24-v2\_43} & 4 & 52 & 9 & 20 & 13 & 3.33 & \textbf{3.33} \\ \textbf{4gt13\_92} & 5 & 66 & 9 & 19 & 19 & 5.67 & \textbf{4} \\ \textbf{ising\_model\_10} & 10 & 480 & 9 & 65 & 15 & 5 & \textbf{5} \\ \textbf{ising\_model\_13} & 13 & 633 & 9 & 86 & 29 & \textbf{6.33} & 6.67 \\ \textbf{ising\_model\_16} & 16 & 786 & 16 & 107 & 36 & 7.33 & \textbf{6.33} \\ \textbf{rd84\_142} & 15 & 343 & \textbf{37} & 78 & 84 & 43.33 & 44.33 \\ \textbf{adr4\_197} & 13 & 3439 & 440 & 670 & 837 & 318 & \textbf{248.67} \\ \textbf{radd\_250} & 13 & 3213 & 468 & 684 & 828 & 288.33 & \textbf{258} \\ \textbf{z4\_268} & 11 & 3073 & 369 & 713 & 743 & 270 & \textbf{225.33} \\ \textbf{sym6\_145} & 7 & 3888 & 332 & 897 & 792 & 282.67 & \textbf{205.67} \\ \textbf{misex1\_241} & 15 & 4813 & 662 & 1046 & 1132 & 311.33 & \textbf{268.67} \\ \textbf{rd73\_252} & 10 & 5321 & 716 & 1125 & 1208 & 412 & \textbf{396.67} \\ \textbf{cycle10\_2\_110} & 12 & 6050 & 915 & 1178 & 1485 & 559 & \textbf{456.33} \\ \textbf{square\_root\_7} & 15 & 7630 & 1007 & 1240 & 1526 & 523 & \textbf{420.33} \\ \textbf{sqn\_258} & 10 & 10223 & 1100 & 2435 & 2300 & 776 & \textbf{693.33} \\ \textbf{rd84\_253} & 12 & 13658 & 2013 & 2784 & 3060 & 1170.33 & \textbf{1010} \\ \textbf{co14\_215} & 15 & 17936 & 2727 & 3235 & 4860 & 1850.67 & \textbf{1639.67} \\ \textbf{sym9\_193} & 10 & 34881 & 5232 & 6211 & 7838 & 3249.33 & \textbf{2696.67} \\ \textbf{9symml\_195} & 11 & 34881 & 5232 & 6234 & 7838 & 3034 & \textbf{2817} \\ \hline \end{tabular} \caption{Comparison of {\sc Swap}\ count for the four routing algorithms. The lowest {\sc Swap}\ count for each circuit is shown in bold text. All tests have been performed on the IBM Q20 Tokyo coupling graph shown in \cref{fig:graph_and_circuit}(b).} \label{tab:other_algo_comparison} \end{table*} Nuwa outperforms other algorithms by a significant margin, both with and without applying commutation rules, except for the circuit~\texttt{rd84\_142}. Without applying commutation rules, Nuwa uses approximately 34\% fewer {\sc Swap}\ gates than \texttt{tket} on average, and 66\% fewer than SABRE. With commutation rules applied, the average improvement percentages are 40\% and 71\%, respectively. \section{Conclusion} The development of quantum circuit compilers and transpilers requires exploration and incorporation of classical optimization and operations research techniques. Not only are these compilers and transpilers expected to fulfill critical roles in future quantum computing software stacks, but to serve as important research tools for the production of architecture-aware resource estimations for quantum algorithms. Transpilers could, in turn, be used to find improved architectures for quantum devices, and to provide more-accurate estimates of the number and fidelity of gates required for practical applications~\mbox{~\cite{sankar2021benchmark, Babbush_2021, Gidney_2021}}. In this paper, we have introduced a novel transpiler for the placement and routing of qubits on a target architecture. Our transpiler uses a finite decision horizon to evaluate two (possibly discounted) rewards: the placement and edge score functions. It also incorporates a finite lookahead tie-breaking subroutine. We have benchmarked our transpiler against multiple alternative solutions and on various test sets. Quantum resources are much more scarce than classical computing resources, which justifies transpilers spending substantial classical computing resources in the optimization of placement and routing policies. It is, however, important to have scalable solutions that can be employed on larger quantum circuits or adapted to fault-tolerant circuit compilation for much larger quantum algorithms. In addition, it is important for the transpiler to be flexible with respect to target architectures. This flexibility allows us to use transpilers as research tools for quantitative analysis of the overhead of compiling quantum algorithms on various target architectures. Our transpiler provides these critical advantages while improving the state of the art. \begin{acknowledgements} This project was funded by 1QBit. P.~R. additionally acknowledges the financial support of Mike and Ophelia Lazaridis, and Innovation, Science and Economic Development Canada. All authors thank our editor, Marko Bucyk, for his careful review and editing of the manuscript. \end{acknowledgements} \newpage \clearpage
\section{Introduction} Many power systems across the world are experiencing a gradual decline in synchronous inertia levels as synchronous generators are increasingly being displaced by generation interfaced to the grid via power-electronic converters \cite{hartmann_2019}. As inertia levels decrease, the average frequency in the power system is subject to more severe and rapid fluctuations in response to active power disturbances, e.g. from generation or load contingencies. It is therefore becoming more crucial that estimates of system inertia are reliable and accurate. Most system inertia estimation techniques, whether offline estimates such as \cite{Inoue_1997}, \cite{ENTSOE_2018}, \cite{chassin_2005} and \cite{ashton_2015} or online estimates such as \cite{Wall_2014}, \cite{Cai_2019} and \cite{Wilson_2019}, rely on a linearised representation of the swing equation evaluated at the onset of a disturbance ($t=0$): \begin{equation} \label{eqn:inertia_estimate} \overline{KE} = -\frac{f_{n}}{2} \times \frac{P_{cont}}{ \frac{\overline{d \Delta f}}{dt}\bigg|_{t=0}} \end{equation} \noindent where $\overline{KE}$ is the system inertia estimate (MW.s), $f_n$ is the nominal frequency (e.g. $50$ Hz), $P_{cont}$ is the disturbance size (MW) and $\frac{d\overline{\Delta f}}{dt} \big|_{t=0}$ is an estimate of the rate of change of frequency (RoCoF) evaluated at the onset of the disturbance (Hz/s). For this linearised representation to be valid, it is assumed that i) there are no frequency deviations at the onset of the disturbance, i.e. $\Delta f(t=0) = 0$, ii) primary frequency response has yet to begin acting, and ii) load relief is negligible in the early stages after a disturbance. To satisfy these assumptions, inertia estimates of the form described in (\ref{eqn:inertia_estimate}) are often performed using historical generator contingency events, filtered to only select for single instantaneous disturbances (e.g. protection trip) as opposed to ramp downs (e.g. due to a generating unit boiler malfunction / failure) or contingencies involving multiple generating units. With such sudden single unit trips, the contingency size $P_{cont}$ can normally be estimated quite accurately \cite{ashton_2015}. Alternatively, known active power perturbations by normal operational events such as the reversal of power in an HVDC interconnector \cite{best_2021} or an intentionally injected signal \cite{hosaka_2019} can also be used. However, the RoCoF is arguably the most sensitive parameter in (\ref{eqn:inertia_estimate}). Ideally, the RoCoF would be calculated based on the sample-by-sample time derivative of a high-resolution frequency trace at the onset of the disturbance. However, high-resolution frequency measurements from Phasor Measurement Units (PMUs) or fault recorders contain white noise introduced by transducer, quantisation and signal processing errors \cite{Brown_2016}. Moreover, as depicted in Fig. \ref{fig:freq_meas_error}, the frequency trace can contain transient \cite{ashton_2015} and/or oscillatory components \cite{Inoue_1997}. Therefore, calculating the time derivative using consecutive frequency samples would likely lead to significant errors \cite{ENTSOE_2018}. \begin{figure}[htp] \centering \includegraphics[width=\linewidth]{./Figures/freq_meas_error.png} \caption{Transients and oscillations in frequency measurements} \label{fig:freq_meas_error} \end{figure} To mitigate these issues, moving average windows or low-pass smoothing filters have been proposed in the literature, as well as in practical applications. For example, a sliding window has been adopted as a standard in Europe (e.g. \cite{ENTSOE_2018} and \cite{ashton_2015}), where the RoCoF estimate is calculated by applying a 500-ms sliding window over the frequency trace and then finding the maximum value of the sample-by-sample time derivative (since the maximum RoCoF theoretically occurs at the onset of the contingency). Alternative techniques include fitting a polynomial function to the raw frequency measurements \cite{Inoue_1997} or simply applying a 0.5 Hz low-pass filter to the frequency trace \cite{chassin_2005}. The common thread is that the raw frequency measurements are smoothed out in some way to prevent spurious RoCoF measurements. It was observed in \cite{susanto_2019} that system inertia estimates based on this approach are only accurate for events with relatively high RoCoFs, in which the assumption that the initial frequency decline is retarded by system inertia alone remains valid. For smaller disturbances or high inertia conditions where the RoCoF is low, the influence of primary frequency response becomes more prominent and may invalidate this assumption. Furthermore, the choice of sliding window length (or cut-off frequency for the smoothing filter) will also affect the quality of the estimate, with higher levels of smoothing leading to larger estimation errors. It was also shown that inertia can be materially overestimated when wind farms provide virtual inertia emulation or fast frequency response \cite{fernandez_2019}. Another factor that may confound system inertia estimates is the presence of load relief (or damping), which is the natural sensitivity of loads in a network to changes in system frequency. As frequency declines after a generation contingency, so does power consumption from frequency-sensitive loads such as induction motors \cite{masood_2018}. Load relief acts to correct the active power imbalance after a contingency and thus helps to arrest the decline in frequency. As a result, system inertia estimates based on the linearised swing equation after a disturbance may mistake the effects of load relief as additional inertia. In the literature, the system-level load relief factor (LRF), which is also referred to as the load damping coefficient or load-frequency characteristic, is typically estimated separately from system inertia. Earlier studies attempted to directly measure load relief by conducting live tests such as the intentional tripping of generators and transmission lines, e.g. in Great Britain \cite{davies_1959}, Norway \cite{berg_1972} and Ireland \cite{osullivan_1996}. A less invasive approach is to estimate the system-level LRF after a contingency event using measurements of total system load from the Energy Management System (EMS). However, EMS sampling resolution may not be high enough to accurately assess system load changes after a contingency \cite{pearmine_2006}. To mitigate EMS resolution issues, high-speed fault recorder data can be used to estimate the system load change after a contingency \cite{susanto_2019}. Finally, estimating LRF has also been investigated using a bottom-up approach, e.g. using high-speed fault recorder data at substation level \cite{masood_2018} or at the level of individual consumer devices \cite{Omara_2012}. However, it is remains unclear how to aggregate the individual LRF estimates into a meaningful system-level LRF. This paper takes a different approach to system inertia and load relief estimation. Rather than using the linearised swing equation, the system inertia and load relief factor are treated as unknown parameters in a low-order system frequency response (SFR) model and the model is then fitted to post-disturbance frequency and generator output measurements. This approach exploits the SFR model's ability to accurately predict the system frequency trajectory after a disturbance, and thus use more measurement data as inputs to the estimation model. The main contribution of this paper is the introduction of a novel model fitting approach to inertia estimation that uses a system frequency response model to simultaneously estimate both system inertia and system-level load relief. The proposed method is shown to be credible when compared with other inertia estimation methods, while requiring less discretion in the choice of parameters, e.g. sliding window length or polynomial order. The remainder of this paper is organised as follows: In Section II, the system inertia estimation method based on model-fitting is proposed, with the added benefit that the method concurrently estimates the system-level load relief factor. This is followed in Section III by several computer simulation case studies comparing the performance of the proposed approach with other methods. In Section IV, case studies are performed using data from a real power system to illustrate some of the advantages of the proposed method over other approaches. A discussion of the results in this paper is then presented in Section V, and finally concluding remarks and avenues for future work are described in Section VI. \section{Proposed Methodology} Rather than using the linearised swing equation in (\ref{eqn:inertia_estimate}) to estimate system inertia, we propose to jointly estimate system inertia and load relief / damping by fitting a low-order SFR model to measured frequency data. At a high level, the proposed model-fitting estimation method has two steps as follows: \begin{enumerate} \item Compile generator active power measurement traces to form an aggregate system primary frequency response (PFR) trace and contingency trace \item Estimate system inertia and load relief factor by fitting an SFR model to the measured frequency trace \end{enumerate} \subsection{Step 1: Measured system PFR and contingency traces} The measured system PFR trace is formed by aggregating the active power measurement traces from individual generators and interruptible loads. In order for the measured system PFR to be accurate (i.e. representative of the actual system PFR), the following conditions should be met: \begin{itemize} \item Active power measurements are high resolution and time-synchronised, e.g. from fault recorders or PMUs with time synchronisation via GPS or IEEE Std 1588 Precision Time Protocol \cite{IEEE_1588}. \item There are measurements at each major generating facility and interruptible load in the system. Where this is not practical, there should be at least measurements at each of the main PFR providers. \end{itemize} Note that with this approach, the influence of any PFR not explicitly included in the measured system PFR trace will be considered as load relief. This could include the influence of behind-the-meter embedded generation or small distribution-connected generation that may not be visible by fault recorders or PMUs. Similarly, the contingency trace is formed by extracting the active power measurement trace of the contingency (e.g. power flow from a generator or radial network element). \subsection{Step 2: Estimation of system inertia and LRF via model fitting} The linear ordinary differential equation (ODE) for a generic low-order SFR model after a contingency can be formulated from the swing equation as follows: \begin{equation} \label{eqn:SMM_ode} \frac{d\Delta f(t)}{dt} = \frac{f_n}{2 KE} \left[ p(t) - P_{cont}(t) - D P_{load} \Delta f(t) \right] \end{equation} \noindent where $\Delta f(t)$ is the frequency deviation at time $t$ (Hz), $f_n$ is the nominal frequency (e.g. $50$ Hz), $KE$ is the post-contingent system inertia (in MW.s), $P_{cont}(t)$ is the contingency at time $t$ (MW), $p(t)$ is the aggregate system PFR at time $t$ (MW), $D$ is the load relief factor (\% MW/Hz) and $P_{load}$ is the system load at the onset of the contingency (MW). Equation (\ref{eqn:SMM_ode}) can be rewritten in discrete form with a fixed time step $\Delta t$ as follows: \begin{equation} \label{eqn:SMM_ode_discrete} \Delta f_{k} = \Delta f_{k-1} + \frac{f_n}{2 KE} \left[ p_{k-1} - P_{cont, k-1} - D P_{load} \Delta f_{k-1} \right] \Delta t \end{equation} In (\ref{eqn:SMM_ode_discrete}), the measured system PFR trace $p_{k}$ and contingency trace $P_{cont,k}$ were compiled in Step 1 and are known values, as is the system load pre-contingency $P_{load}$. This leaves the system inertia $KE$ and load relief factor $D$ as the unknown parameters to be estimated. There are many ways to solve this parameter estimation problem, for example using non-linear least squares \cite{burth_1999}, Newton-Raphson algorithms \cite{karrari_2004} or with Kalman filters \cite{ariff_2015}. In this paper, a recursive non-linear least squares approach similar to the method described in \cite{pourbeik_2009} is used to minimise an error function based on the Root Mean Squared Error (RMSE): \begin{equation} \min \left\{ \sqrt{\frac{1}{N} \sum_{k=0}^{N} (\Delta f_{k} - \Delta \hat{f_{k}})^{2} } \right\} \end{equation} \noindent where $f$ is the measured frequency, $\hat{f}$ is the frequency calculated from the SFR model and $N$ is the total number of samples. \section{Computer Simulations} Computer simulations were performed on the IEEE 9-bus and New England IEEE 39-bus systems to compare the performance of the proposed model fitting approach with two commonly used inertia estimation methods: \begin{enumerate} \item Sliding window method \cite{ENTSOE_2018} \item Inoue polynomial fit method \cite{Inoue_1997} \end{enumerate} The time-domain RMS simulations were conducted in DIgSILENT PowerFactory v2020 software and in each case, loads were modelled to be frequency-dependent with a load relief factor of $D = 4 \%$. \subsection{Case 1: IEEE 9-Bus System} In Case 1, the IEEE 9-bus system depicts a small islanded system with three generators and 315 MW of load. The default IEEE 9-bus system was modified to include a standard turbine-governor model (TGOV) for each generator. To simulate a frequency disturbance, generator G3 was tripped from 85 MW. A summary of the best and worst inertia and load relief estimates for each of the different methods is shown in Table \ref{tab:case1_summary}. It should be noted that only a single estimate is shown for the model fitting approach as there are no adjustable parameters (such as window length or polynomial order). \begin{table}[htp] \centering \caption{Case 1: Summary of results} \begin{tabular}{cccl} \textbf{Method} & \textbf{KE (MW.s)} & \textbf{D (\%)} & \textbf{Remarks} \\ \hline Actual & 1,522 & 4.00 \% & \\ Sliding window (best) & 1,524 & - & 60-ms window \\ Sliding window (worst) & 2,810 & - & 1,000-ms window \\ Inoue (best) & 1,547 & - & 20\textsuperscript{th} order \\ Inoue (worst) & 1,730 & - & 14\textsuperscript{th} order \\ Model fitting & 1,589 & 3.45 \% & \\ \hline \end{tabular} \label{tab:case1_summary} \end{table} System inertia estimates using the sliding window and Inoue polynomial fit methods with varying window lengths and polynomial order are shown in Fig. \ref{fig:case1a} and Fig. \ref{fig:case1b} respectively. The figures indicate that the accuracy of the inertia estimate is sensitive to the choice of window length or polynomial order. Fig. \ref{fig:case1c} shows the simulated (measured) frequency trace vs the fitted frequency trace after applying the model fitting method. \begin{figure}[!thp] \centering \subfloat[Sliding window method (variable window length)\label{fig:case1a}]{% \includegraphics[width=\linewidth]{./Figures/sliding_window_PF1.png}} \hfill \subfloat[Inoue method (variable polynomial order)\label{fig:case1b}]{% \includegraphics[width=\linewidth]{./Figures/inoue_PF1.png}} \\ \subfloat[Model fitting method frequency fit\label{fig:case1c}]{% \includegraphics[width=\linewidth]{./Figures/actual_PFR_freq_fit_PF1.png}} \hfill \caption{Case 1: IEEE 9-bus system} \label{fig:case1} \end{figure} \subsection{Case 2: New England IEEE 39-Bus System} Relative to Case 1, the New England IEEE 39-bus system depicts a larger interconnected power system comprising nine generators and 6,097 MW of load. To simulate a frequency disturbance, generator G10 was tripped from 200 MW. Like in Case 1, a summary of the best and worst inertia and load relief estimates from each of the different methods is shown in Table \ref{tab:case2_summary}. The inertia estimates with varying window length and polynomial order are shown in Fig. \ref{fig:case2a} and Fig. \ref{fig:case2b} respectively, and the measured vs fitted frequency trace after applying the model fitting method is shown in Fig. \ref{fig:case2c}. \begin{table}[!htp] \centering \caption{Case 2: Summary of results} \begin{tabular}{cccl} \textbf{Method} & \textbf{KE (MW.s)} & \textbf{D (\%)} & \textbf{Remarks} \\ \hline Actual & 78,270 & 4.00 \% & \\ Sliding window (best) & 78,161 & - & 510-ms window \\ Sliding window (worst) & 12,270 & - & 20-ms window \\ Inoue (best) & 66,443 & - & 12\textsuperscript{th} order \\ Inoue (worst) & 266,772 & - & 10\textsuperscript{th} order \\ Model fitting & 75,499 & 3.44 \% & \\ \hline \end{tabular} \label{tab:case2_summary} \end{table} An interesting feature of the simulation results in Case 2 is the presence of oscillations in the frequency trace as generators in the system swing against each other (see Fig. \ref{fig:case2c}). The oscillations cause the sliding window and polynomial fit methods to overestimate the RoCoF at shorter window lengths (as observed in \cite{ENTSOE_2018}) and high polynomial orders (i.e. because of overfitting). \begin{figure}[!thp] \centering \subfloat[Sliding window method (variable window length)\label{fig:case2a}]{% \includegraphics[width=\linewidth]{./Figures/sliding_window_PF2.png}} \hfill \subfloat[Inoue method (variable polynomial order)\label{fig:case2b}]{% \includegraphics[width=\linewidth]{./Figures/inoue_PF2.png}} \\ \subfloat[Model fitting method frequency fit\label{fig:case2c}]{% \includegraphics[width=\linewidth]{./Figures/actual_PFR_freq_fit_PF2.png}} \hfill \caption{Case 2: New England IEEE 39-bus system} \label{fig:case2} \end{figure} \subsection{Case 3: IEEE 9-Bus System with Fast Frequency Response} In Case 3, the IEEE 9-bus system in Case 1 is augmented with a 30 MW BESS providing FFR. This case is included to examine the effects of FFR on inertia estimates and validate the findings in \cite{fernandez_2019}, i.e. material errors in inertia estimates can arise when the sliding window method is applied to systems with FFR. As in the previous cases, a summary of the best and worst inertia and load relief estimates from each of the different methods is shown in Table \ref{tab:case3_summary}. The inertia estimates with varying window length and polynomial order are shown in Fig. \ref{fig:case3a} and Fig. \ref{fig:case3b} respectively, and the measured vs fitted frequency trace after applying the model fitting method is shown in Fig. \ref{fig:case3c}. \begin{figure}[!thp] \centering \subfloat[Sliding window method (variable window length)\label{fig:case3a}]{% \includegraphics[width=\linewidth]{./Figures/sliding_window_PF3.png}} \hfill \subfloat[Inoue method (variable polynomial order)\label{fig:case3b}]{% \includegraphics[width=\linewidth]{./Figures/inoue_PF3.png}} \\ \subfloat[Model fitting method frequency fit\label{fig:case3c}]{% \includegraphics[width=\linewidth]{./Figures/actual_PFR_freq_fit_PF3.png}} \hfill \caption{Case 3: IEEE 9-bus system with FFR} \label{fig:case3} \end{figure} The results indicate a deterioration in estimation accuracy from the sliding window method from Case 1, particularly with increasing window length. The Inoue polynomial fit method performs better, with a narrower range of estimates, but the accuracy is sensitive to the choice of polynomial order and it may be difficult to ascertain a priori whether the order selected is the appropriate one. \begin{table}[htp] \centering \caption{Case 3: Summary of results} \begin{tabular}{cccl} \textbf{Method} & \textbf{KE (MW.s)} & \textbf{D (\%)} & \textbf{Remarks} \\ \hline Actual & 1,522 & 4.00 \% & \\ Sliding window (best) & 1,785 & - & 30-ms window \\ Sliding window (worst) & 4,209 & - & 1,000-ms window \\ Inoue (best) & 1,522 & - & 20\textsuperscript{th} order \\ Inoue (worst) & 1,812 & - & 13\textsuperscript{th} order \\ Model fitting & 1,662 & 3.76 \% & \\ \hline \end{tabular} \label{tab:case3_summary} \end{table} \section{Application to a Real Power System} \label{sec:applications} The following case studies are based on actual generator contingency events from the South West Interconnected System (SWIS) in Australia. The SWIS is a medium-sized islanded power system serving approximately 1.2 million customers in the southwest region of Western Australia. The SWIS covers a vast geographic area of 261,000 square kilometres (larger than the land area of the United Kingdom), but with a historical record peak demand of just 4.3 GW. \begin{table}[htp] \centering \caption{Actual contingency case descriptions} \begin{tabular}{cl} \textbf{Case} & \textbf{Description} \\ \hline Case 4 & Generator prime-mover trip \\ Case 5 & Network fault causing a generator trip \\ \hline \end{tabular} \label{tab:cases} \end{table} \subsection{Case 4: Generator turbine trip} On 17 March 2020 at 18:06pm, an open-cycle gas turbine generator tripped from 161 MW causing frequency to drop to 49.55 Hz (at the nadir). At the onset of the contingency, the system load was 2,441 MW and the total post-contingent generator inertia was 15,009 MW.s (calculated by summing the known generator inertia values for all online machines). The inertia estimates with varying window length and polynomial order are shown in Fig. \ref{fig:case4a} and Fig. \ref{fig:case4b} respectively, and the measured vs fitted frequency trace after applying the model fitting method is shown in Fig. \ref{fig:case4c}. Unlike in the computer simulations, the actual system inertia is not known. The post-contingent generator inertia is known, but this does not include load inertia so is more representative of the floor for the system inertia estimate. The summary of the results in Table \ref{tab:case4_summary} show the range (minimum and maximum) of estimates from the sliding window and Inoue methods, as well as the single point estimate from the model fitting method. \begin{table}[htp] \centering \caption{Case 4: Summary of results} \begin{tabular}{cccl} \textbf{Method} & \textbf{KE (MW.s)} & \textbf{D (\%)} & \textbf{Remarks} \\ \hline Generator inertia & 15,009 & - & \\ Sliding window (min) & 20,735 & - & 170-ms window \\ Sliding window (max) & 26,833 & - & 20-ms window \\ Inoue (min) & 18,482 & - & 4\textsuperscript{th} order \\ Inoue (max) & 56,750 & - & 15\textsuperscript{th} order \\ Model fitting & 19,610 & 2.85 \% & \\ \hline \end{tabular} \label{tab:case4_summary} \end{table} The sliding window method in Fig. \ref{fig:case4a} exhibits a similar shape to that in Cases 1 and 3, where beyond a threshold window length (in this case 170-ms), the inertia estimate continues to rise steadily without settling. In Cases 1 and 3, the actual system inertia was close to the estimate at the threshold window length, which in this case would be 20,735 MW.s. At high polynomial orders, the Inoue method in Fig. \ref{fig:case4b} appears to settle at around 26,000 MW.s. However, such an estimate would suggest a load inertia of roughly 42\% of system inertia, which is inconsistent with previous inertia estimates in the SWIS, as well as estimates reported in the literature (such as \cite{tavakoli_2012} and \cite{bian_2018}), where load inertia is typically estimated to be 10 - 25\% of system inertia. The model fitting results in Fig. \ref{fig:case4c} show good alignment between the simulated and measured frequency traces ($RMSE=0.0095$) and the inertia estimate of 19,610 MW.s is on the lower end of the sliding window and and Inoue estimate range. This suggests that the actual system inertia is likely in the 19,000 - 21,000 MW.s range. \begin{figure}[!thp] \centering \subfloat[Sliding window method (variable window length)\label{fig:case4a}]{% \includegraphics[width=\linewidth]{./Figures/sliding_window_case_20200317.png}} \hfill \subfloat[Inoue method (variable polynomial order)\label{fig:case4b}]{% \includegraphics[width=\linewidth]{./Figures/inoue_case_20200317.png}} \\ \subfloat[Model fitting method frequency fit\label{fig:case4c}]{% \includegraphics[width=\linewidth]{./Figures/freq_fit_actual_PFR_20200317.png}} \hfill \caption{Case 4: Generator turbine trip} \label{fig:case4} \end{figure} \subsection{Case 5: Network fault causing a generator trip} On 22 October 2020 at 16:25pm, a 330 kV network fault caused the trip of a combined-cycle gas power plant, resulting in an instantaneous loss of 231 MW and frequency to fall to 49.46 Hz (at the nadir). At the onset of the contingency, the system load was 1,991 MW and the total post-contingent generator inertia was 11,612 MW.s. The summary of the results in Table \ref{tab:case5_summary} show the range (minimum and maximum) of estimates from the sliding window and Inoue methods, as well as the single point estimate from the model fitting method. \begin{table}[htp] \centering \caption{Case 5: Summary of results} \begin{tabular}{cccl} \textbf{Method} & \textbf{KE (MW.s)} & \textbf{D (\%)} & \textbf{Remarks} \\ \hline Generator inertia & 11,612 & - & \\ Sliding window (min) & 3,609 & - & 40-ms window \\ Sliding window (max) & 18,392 & - & 1,000-ms window \\ Inoue (min) & 6,567 & - & 30\textsuperscript{th} order \\ Inoue (max) & 22,309 & - & 3\textsuperscript{rd} order \\ Model fitting & 15,534 & 2.01 \% & \\ \hline \end{tabular} \label{tab:case5_summary} \end{table} The network fault causes a transient component in the frequency trace, which results in overestimates of system inertia with the sliding window method when the window length is small, as shown Fig. \ref{fig:case5a} for window lengths $<$200-ms. This is broadly similar to how the sliding window method performs with the oscillatory frequency trace observed in Case 2. In that previous case, the sliding window method is more accurate beyond a "knee" point window length, where the effects of the oscillations are filtered out. In this case, the knee point occurs at a window length of 210-ms and a system inertia estimate of 14,000 MW.s. Similarly, the Inoue method will tend to over-fit the frequency trace (and particularly the transient component) at high polynomial order. This can be seen in Fig. \ref{fig:case5b}, where the system inertia estimate is below the known generator inertia at polynomial orders $>$15. The Inoue method does not credibly provide any useful information regarding the correct range for system inertia. The model fitting results in Fig. \ref{fig:case5c} show reasonably good alignment between the simulated and measured frequency traces ($RMSE=0.0146$) and yields an inertia estimate of 15,534 MW.s. This estimate is broadly consistent with the sliding window method using a window length near the knee point. \begin{figure}[!thp] \centering \subfloat[Sliding window method (variable window length)\label{fig:case5a}]{% \includegraphics[width=\linewidth]{./Figures/sliding_window_case_20201022.png}} \hfill \subfloat[Inoue method (variable polynomial order)\label{fig:case5b}]{% \includegraphics[width=\linewidth]{./Figures/inoue_case_20201022.png}} \\ \subfloat[Model fitting method frequency fit\label{fig:case5c}]{% \includegraphics[width=\linewidth]{./Figures/freq_fit_actual_PFR_20201022.png}} \hfill \caption{Case 5: Network fault causing a generator trip} \label{fig:case5} \end{figure} \section{Discussion} The results from the case studies indicate that system inertia estimation using the proposed model-fitting approach is a credible alternative to conventional approaches based on the linearised swing equation. Good alignment between the measured frequency and the simulated frequency implied by the fitted SFR model suggests that the parameters in the SFR model are able to endogenously explain the frequency trajectory. The proposed approach also has the practical advantage of providing a single point estimate without needing to select parameters such as the sliding window length or polynomial order. Interestingly, the case studies highlight that system inertia estimates using the sliding window and Inoue polynomial fit methods are very sensitive to the choice of these parameters. The computer simulations show that depending on the scenario and choice of window length or polynomial order, system inertia estimates can be either very accurate or have large errors, e.g. $\pm$20\% to 50\%. While there are broad patterns that are observed in the case studies, for example, systematic under-estimates when using the Inoue method with high polynomial orders in frequency traces containing transient or oscillatory components, there are no specific rules or heuristics to guide parameter selection. As the case studies in Section \ref{sec:applications} show, it is difficult to select the most appropriate parameter in practice, particularly as measurement noise present in frequency traces can also affect the inertia estimate. The proposed model-fitting approach does not suffer from these issues and in the computer simulations, the method yields system inertia estimates within 3\% to 9\% of the true value. \section{Conclusion} This paper proposed a novel approach for simultaneously estimating system inertia and the load relief factor. The proposed approach is based on fitting an SFR model to measured contingency / disturbance data. Case studies demonstrated the applicability and validity of applying the new approach on computer simulations with the IEEE 9-bus and 39-bus systems, and on real events in the SWIS in Western Australia. Furthermore, the proposed method is not sensitive to the selection of algorithm parameters such as the sliding window length or polynomial order. An avenue for future work is to investigate heuristics for the appropriate selection of sliding window length and polynomial order, potentially using the proposed model-fitting approach to calibrate the range of estimates. \appendices \section{Removal of inertial components from generator output traces} High-speed active power measurements of synchronous generators contain both the inertial response and PFR from the generators. Since inertia is endogenous to models based on the swing equation, the system PFR trace can only be used if the inertial components are removed first (otherwise the effects of inertia are double counted). A simple washout filter is proposed to isolate inertial components from the PFR using the measured frequency as an input and the known inertia constants of the generators contributing to the system PFR as a parameter (see Fig. \ref{fig:inertia_removal}). The inertial components are then removed from the measured system PFR trace. \begin{figure}[htp] \centering \includegraphics[width=0.7\linewidth]{./Figures/inertia_removal_block.png} \caption{Estimating inertial components of PFR with a washout filter} \label{fig:inertia_removal} \end{figure} The selection of the washout time constant $T_{w}$ is a trade-off between accuracy and noise. Ideally, a very small time constant is applied so that the washout filter more closely approximates a true differentiator. However, small time constants are more sensitive to noise in the frequency measurement (refer to $T_w = 25$-ms in Fig. \ref{fig:inertia_removal_compare}). On the other hand, a large time constant will reduce the accuracy of the estimate despite appearing less noisy (refer to $T_w = 200$-ms in Fig. \ref{fig:inertia_removal_compare}). It was empirically found that a washout time constant of 60 ms to 80 ms yielded an acceptable balance between accuracy and noise (refer to $T_w = 60$-ms in Fig. \ref{fig:inertia_removal_compare}). \begin{figure}[htp] \centering \includegraphics[width=1.0\linewidth]{./Figures/inertia_removal.png} \caption{Inertia removal with different washout time constants} \label{fig:inertia_removal_compare} \end{figure} \bibliographystyle{IEEEtran}
\section{Introduction} \IEEEPARstart{I}{n} the analysis of time series, entropy is a common tool used to describe the probability distribution of the states of a system. Based on this concept, the seminal paper~\cite{Bandt2002} introduced the so-called permutation entropy ($\PE$) as a measure to quantify irregularity (or complexity) in time series, a fundamental challenge in data analysis. This entropy involves calculating permutation patterns, i.e., permutations defined by comparing neighbouring values of the time series. In the last years, $\PE$ has been applied in different field as biomedicine~\cite{Cao2004, Olofsen2008}, physical systems~\cite{Yan2012} and economics~\cite{Zunino2009}. Some variants, modifications and extensions of $\PE$ have been introduced, including: a multiscale step~\cite{Azami2016}; changes targeting signals with noise~\cite{Chen2019}; a variation for detecting heartbeat dynamic~\cite{Bian2012}; the inclusion of a nonlinear mapping to consider the differences between the amplitude values~\cite{Azami2018,Rostaghi2016}; considering time reversibility conditions \cite{Martinez2018,Zanin2018}; and extensions to higher dimensions~\cite{Morel2021}. A time series can be considered as a one-dimensional data vector (1D), while an image can be regarded as a two-dimensional regular data set (2D). In the field of image processing, several entropy algorithms have been proposed to quantify the irregularity of images as generalisations of their one-dimensional analogous. Examples include: 2D permutation entropy ~\cite{Morel2021}, 2D sample entropy \cite{Silva2016}, 2D dispersion entropy~\cite{azami2019two}, and 2D distribution entropy~\cite{Azami2017a}. Most of the methods are straightforwardly generalised to higher-dimensional periodic structures. The generalisation comes from the fact that the underlying structure (the lattice graph or grid graph, for example for an image) is a periodic structure. Then, the algorithms \cite{Morel2021,Silva2016,azami2019two,Azami2017a} use the symmetry from the structure to compare the values of the signal. However, thus far, it is unclear how to generalise the two-dimensional methods to a general irregular domain (or graph). The study of data defined on irregular graphs domains is the main interest of graph signal processing (GSP), an active research area in recent years~\cite{Ortega2018,Stankovic2019}. This is motivated by the fact that, new technological advances have enabled the recording of data from complex systems \cite{Shuman2013}. GSP is immediately useful in applications where measures are distributed on irregular domains. Examples include a network of weather stations, vehicular networks or power grids, among others~\cite{Ortega2018,Stankovic2019,Shuman2013}. In some cases, the signal domain is not a set of equidistant time points (time series) or a regular grid (image), and in some cases, the data is not related with the space or time. Graphs can model such data and complex interactions, and these new relations may be included in the data processing techniques. Then, some conventional signal-processing operations can be extended to graphs, such as filtering in the spectral and vertex domain, interpolation, subsampling the data with regarding to the graph~\cite{Stankovic2019,Shuman2013,Shuman2016} and generating surrogate graph signals~\cite{Pirondi2016}. For a time series, the classical $\PE$ is computed based on the successive values of the time series or neighbouring values. These concepts are equivalents on 1D. However, for a signal on a graph, the concept of successive values is unclear, but we have the notion of neighbouring vertices. This concept is fundamental to generalise the permutation entropy for graphs signals ($\PEG$). In particular, we will consider time series as a signal function on a 1D-graph (an undirected path) and an image as a signal function on a 2D-graph (a grid). Of note, the concept of graph entropy has been defined in previous literature \cite{Han2012,Passerini2011}. However, this definition involves the computation of the Laplacian eigenvalues, its probability distribution and the Shannon entropy. Therefore, it measures the complexity/irregularity of the geometric structure and topology of the graph, but not of the signals on the graph itself. Thus, here we introduce a measure of the regularity of a signal over a graph, combining the signal values with the topology of the graph, thus extending entropy algorithms for time series and images to graphs. \subsection*{Contributions} The main contributions of this article are: \begin{itemize} \item For the first time, the concept of a nonlinear entropy metric -permutation entropy- is extended, from unidimensional time series and two-dimensional images to data residing on the vertices of (irregular) undirected graphs. \item We explore how the permutation entropy of graph signals depends on both the signal and the graph. We also give conditions to change the graph while maintaining the entropy of a signal. \item We show that our algorithm can also be applied to signals on directed graphs and/or weighted graphs. \item We illustrate the application of the permutation entropy on graphs algorithm on well-established benchmark synthetic datasets and on real-world data, showing that it generalises well the behaviour of the unidimensional $\PE$ and the recently introduced two-dimensional permutation entropy. \end{itemize} \subsection*{Structure of the article} The outline of the paper is as follows: \Sec{background} introduces the classical permutation entropy and the notation on graph theory used in the article (including the basic definition of the normalised Laplacian). \Sec{method} presents the main contribution: the permutation entropy for graphs signals, including a version for weighted and directed graphs. In addition, the section presents some examples and study how geometric modification on the graph preserves the entropy values of the signal. \Sec{exp} shows how $\PEG$ applies to real and synthetic signals residing on 1D, 2D and irregular graphs. The conclusions and future lines of research are presented in \Sec{conc} and it concludes the paper. \section{Background and notation} \label{sec:background} In this section, we introduce general background information, including the original permutation entropy (Section~\ref{sub:originalPE}), the definition of a graph and the notion of the normalised Laplacian (Section~\ref{graphtheory}). These definitions will be fundamental to generalise the permutation entropy from a time series to a general graph signal case. \subsection{Original permutation entropy}\label{sub:originalPE} Permutation entropy ($\PE$) measures the irregularity of a time series. The algorithm is based on the comparison of neighbouring values within patterns in the time series~\cite{Bandt2002}. It is a simple, robust method and computationally very fast (as it depends linearly on the number of samples of the signal: $O(N)$). For a time series $\textbf{X}=\left\{x_i\right\}_{i=1}^{N}$, the algorithm to compute $\PE$ is the following \cite{Cao2004}: \begin{enumerate} \item For $2\leq m\in\N$ the \emph{embedding dimension} and $L\in\N$ the \emph{delay time}, the \emph{embedding vector} $\textbf{x}_i^m(L)\in\R^m$ is given by \begin{equation}\label{eq:embPE} \textbf{x}_i^m(L)=\left( x_{i+jL}\right)_{j=0}^{m-1}=\left(x_i,x_{i+L},\dots, x_{i+(m-1)L}\right) \end{equation} for all $1\leq i \leq N-(m-1)L$. For practical purposes, the authors~\cite{Bandt2002} suggest to work with $3\leq m \leq 7$. We consider $L=1$ (unless explicitly stated otherwise). \item The $m$ real numbers of the embedding vector $\textbf{x}_i^m(L)$ are associated with natural numbers from $1$ to $m$, and then arranged in increasing order. Then, each embedding vector $\textbf{x}_i^m(L)$ is assigned to one of the $m!$ permutation (also called possible patterns) denoted by $\pi$. Formally, the embedding vector \[\textbf{x}_i^m(L)=\left( x_i,x_{i+L},\dots, x_{i+(m-1)L}\right) \] is arranged in the increasing order vector: \[\left( x_{i+(k_1-1)L}\leq x_{i+(k_2-1)L} \leq \dots \leq x_{i+(k_m-1)L}\right). \] Following the convention in~\cite{Cao2004}, if some values are equal, the order is given by the corresponding $k's$. For example, if $ x_{i+(k_{l1}-1)L}= x_{i+(k_{l2}-1)L}$ and $k_{l1}<k_{l1}$, we write $ x_{i+(k_{l1}-1)L}\leq x_{i+(k_{l2}-1)L}$. This convention does not affect the results~\cite{Cuesta2018}. In particular, the constant vector $\left( 1,1,\dots, 1\right) $ is mapped onto $\left(1,2,\dots,m \right)$. Therefore, any embedding vector $\textbf{x}_i^m(L)$ is uniquely mapped onto the vector $(k_1,k_2,\dots,k_m)\in \N^m$. \item The relative frequency for the distinct permutation $\pi_1,\pi_2,\dots,\pi_k$ where $k\leq m!$ is denoted by $p(\pi_1),p(\pi_2),\dots,p(\pi_k)$. The permutation entropy $\PE$ for the time series $\textbf{X}$ is computed as the Shannon entropy for the $k$ distinct permutations as follows \[ \PE (m, L)=-\sum_{i=1}^{k} p(\pi_i) \ln p(\pi_i)\; . \] \end{enumerate} It is clear that $0\leq \PE (m, L)\leq \ln(m !)$, then, for convenience, it is normalised by $\ln(m !)$, then \[0\leq \frac{\PE (m, L)}{\ln(m !)}\leq 1\; .\] The simple case is for $m=2$ and $L=1$. Given a time series $\textbf{X}$, the idea of $\PE(m,L)$ is organise the $N-1$ pair of neighbours according to their relative values. Let $p_1$ be the number of pair of neighbours such that $x_t<x_{t+1}$, represented by the permutation $(1,2)$; and $p_2$ be the number of pair of neighbours such that $x_t>x_{t+1}$, represented by the permutation $(2,1)$. Then, using Shannon's entropy: \begin{equation*} \PE(m,L)=-\dfrac{p_1}{N-1}\log \dfrac{p_1}{N-1}-\dfrac{p_2}{N-1}\log \dfrac{p_2}{N-1}\; . \end{equation*} In permutation entropy, the ordering of the values is taken into account, but no the magnitude of changes. An extension of Permutation Entropy to two-dimensional patterns (images) has very recently been published~\cite{Morel2021}. This two-dimensional algorithm takes rectangular windows across the image and, for each window, vectorises its contents. Then, the steps 2 and 3 are applied. \subsection{Graphs, graph signals and the normalised Laplacian}\label{graphtheory} An \emph{undirected graph} $G$ is defined as the triple $G = (\V,\E,\A)$ which consists of a finite set of vertices or nodes $\V=\{1,2,3,\dots, N\}$, an edge set $\E \subset \{(i,j): i,j\in\V\}$ and $\A$ is the corresponding $N \times N$ symmetric adjacency matrix on edges with entries $1 = \A_{i j}= \A_{j i}$ if $(i,j)\in \E$ and $0$ otherwise. Along this article, we consider graphs containing no multiple edges, loops or isolated vertices, i.e. \emph{simple} graphs. A \emph{graph signal} is a real function defined on the vertices, i.e., $\map{\X}{\V}{\R}$. The graph signal $\X$ can be represented as a $N$-dimensional column vector, $\X=\left[x_1;x_2;\dots; x_N \right] \in \R^N$ (with the same indexing of the vertices). It is well-know that the power of the adjacency matrix counts the number of $k$-walks between two vertices, i.e., the entry $(\A^k)_{i,j}$ is equal to the number of walks of length equal to $k$ having the vertex $i$ as start and vertex $j$ as end. Given a graph $G = (\V,\E,\A)$, we define a function on the vertices $\map{\deg^k}{\V}{\R}$ given by \begin{equation}\label{eq:weightver} \deg^k(i):=\sum_{j\in \V}(\A^k) _{ij}=\sum_{j\in \V} (\A^k)_{ji}\; ; \end{equation} for $k=1$, we write $\deg^1(i)=\deg(i)$, i.e., the degree of a vertex $i$ is the number of edges that are incident to it. Given a vertex $i$, we define $\Nb_k(i)$ as the set of all vertices connected to the vertex $i$ with a walk on $k$ edges, i.e., \begin{equation}\label{eq:nb} \Nb_k(i):=\set{j\in \V}{\scalebox{.9}[1.0]{ it exists a walk on $k$ edges joining $i$ and $j$} }\;, \end{equation} with the convention $\Nb_0(i)=\{i\}$ and $\Nb_1(i)=\Nb(i)$. The normalised Laplacian is defined using the adjacency matrix as follows: \[ \Delta:=I-\D^{-{\frac {1}{2}}}\A \D^{-{\frac {1}{2}}}\; , \] where $\D$ is the \emph{degree matrix}, i.e., a diagonal matrix given by $\D_{i i}=\deg(i)$. \section{Permutation Entropy for Graph Signals} \label{sec:method} This section introduces the permutation entropy for graph signals (denoted as $\PEG$). In original $\PE$ for time series, the construction of the embedding vectors given by \Eq{eq:embPE} is made between values on consecutive steps ($t$ and $t+1$) (with the assumption $L=1$). Consecutive values cannot be defined straightforwardly in irregular graphs. As a motivation for the general definition, we show (with an example) how compare between values on a fixed vertex and its neighbourhoods (Section~\ref{sub:motivation}). For the general formulation, we will consider the topology of the graph encoded in the adjacency matrix to define the algorithm and construct the embedding vectors (Section~\ref{subsec:permutation-entropy}). Finally, we extend the algorithm for directed (Section~\ref{subsec:directedgraph}) and weighted graphs (Section~\ref{subsec:weightedgraph}). \subsection{Motivation and example}\label{sub:motivation} Consider the graph $G = (\V,\E,\A)$ and $\textbf{X}$ be any signal on the graph. Similarly to $\PE$ for time series of order $m=2$ and $L=1$, we compare the signal value at the vertex $i$ with respect the average of its neighbours, i.e., we will compare: \[x_i \quadtext{and} \frac 1 {\deg(i)} \sum_{j \in \Nb(i)} x_j\; .\] Observe the relation with the normalised Laplacian, i.e., \[ \frac 1 {\deg(i)}\sum_{j \in \Nb(i)} x_j=x_i-\Delta x_i=(I-\Delta)x_i=\D^{-{\frac {1}{2}}}\A \D^{-{\frac {1}{2}}}x_i \;.\] For each $i\in\V$, we define the pair where its first component is the value of the signal $\X$ on the node $i$ and the second component is the average of the signal $\X$ on the neighbours of $i$, i.e., \begin{equation}\label{eq:embPEG} \textbf{y}_i:=\left( x_i ,\left( I-\Delta\right) x_i\right) =\left( x_i, \D^{-{\frac {1}{2}}}\A \D^{-{\frac {1}{2}}}x_i\right)\;. \end{equation} The pair is analogous for the embedding vector defined by \Eq{eq:embPE} in $\PE$. We organize the $N$ pairs according to their relative values. Let $p_1$ be the number of pairs for which $x_i<\D^{-{\frac {1}{2}}}\A \D^{-{\frac {1}{2}}}x_i$, or equivalently $\Delta x_i<0$ (represented by the permutation $12$) and let $p_2$ be the number of the pairs for which $x_i > \D^{-{\frac {1}{2}}}\A \D^{-{\frac {1}{2}}}x_i$ or equivalently $\Delta x_i>0$ (represented by the permutation $21$). We define the permutation entropy of the graph signal $\textbf{X}$ for embedding $m=2$ and $L=1$ as a measure of the probability of the permutation $(1,2)$ and $(2,1)$, so: \[\PEG=-\dfrac{p_1}{N}\log \dfrac{p_1}{N}-\dfrac{p_2}{N}\log \dfrac{p_2}{N}\; .\] Intuitively, we are dividing the vertices of $G$ according to the signal $\X$ into two subsets. One set corresponds to the vertices such that $\Delta x_i>0$, i.e., it contains the \emph{local maximums} of the signal on the graph domain. Similarly, the other set contains vertices such $\Delta x_i<0$, i.e., the \emph{local minimums}. The interpretation is analogous to the permutation entropy for time series (for the case $m=2$ and $L=1$), where the patterns are defined by the points where the function is increasing or decreasing. \begin{example}\label{ex:permutationgraph} Consider the graph $G = (\V,\E,\A)$ and signal $\X$ shown in~\Fig{examplepeg}. \begin{figure}[h] \centering \subcaptionbox{\label{sub:exp1}}[.5\linewidth] { \begin{tikzpicture}[baseline, vertex/.style={circle,draw,fill, inner sep=0pt,minimum size=1mm},scale=.3] \node (0) at (-1,1) [vertex,label=left:$2$] {}; \node (1) at (-1,5) [vertex,label=left:$1$] {}; \node (2) at (2,3) [vertex,label=below:$3$] {}; \node (4) at (4,5) [vertex,label=above:$4$] {}; \node (3) at (4,1) [vertex,label=below:$5$] {}; \node (5) at (6,3) [vertex,label=below:$6$] {}; \node (6) at (9,5) [vertex,label=above:$7$] {}; \node (7) at (9,1) [vertex,label=below:$8$] {}; \draw[](0) edge node[below] {} (2); \draw[](1) edge node[below] {} (2); \draw[](2) edge node[left] {} (3); \draw[](2) edge node[below] {} (4); \draw[](4) edge node[right] {} (5); \draw[](0) edge node[right] {} (1); \draw[](3) edge node[below] {} (5); \draw[](5) edge node[below] {} (6); \draw[](6) edge node[below] {} (7); \end{tikzpicture} } \\ \subcaptionbox{\label{sub:exp2}}[.75\linewidth]{\[\A = \begin{pmatrix} 0 & 1 & 1 & 0 & 0 & 0 & 0& 0\\ 1 & 0 & 1 & 0 & 0 & 0 & 0& 0\\ 1 & 1 & 0 & 1 & 1 & 0 & 0& 0\\ 0 & 0 & 1 & 0 & 0 & 1 & 0& 0\\ 0 & 0 & 1 & 0 & 0 & 1 & 0& 0\\ 0 & 0 & 0 & 1 & 1 & 0 & 1 & 0\\ 0 & 0 & 0 & 0 & 0 & 1 & 0& 1\\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0\\ \end{pmatrix}\] } \subcaptionbox{\label{sub:exp3}}[.2\linewidth] {\[\X = \begin{pmatrix} -1 \\ -2.3 \\ 0 \\ -3 \\ 1 \\ 5 \\ 1 \\ -1.1 \end{pmatrix}\] } \caption{An example of a graph $G$ (\ref{sub:exp1}), its adjacency matrix $\A$ (\ref{sub:exp2}) and a graph signal $\X$ (\ref{sub:exp3}). } \label{fig:examplepeg} \end{figure} We construct the embedding vectors given by \Eq{eq:embPEG}. We obtain one pair for each vertex, i.e., $\textbf{y}_1=\left(-1,-1.15 \right) $, $\textbf{y}_2=\left(-2.3,-0.5 \right) $, $\textbf{y}_3=\left(0.-1.325 \right) $, $\textbf{y}_4=\left(-3,2.5 \right) $, $\textbf{y}_5=\left(1,2.5 \right) $, $\textbf{y}_6=\left(5,-0.333 \right), \textbf{y}_7=\left( 1,1.95\right)$ and $\textbf{y}_8=\left( -1.1,1\right)$. We have two patterns for the case $m=2$. The pairs $\textbf{y}_2, \textbf{y}_4, \textbf{y}_5, \textbf{y}_7$ and $\textbf{y}_8$ belong to the same pattern (where $x_i < \D^{-{\frac {1}{2}}}\A \D^{-{\frac {1}{2}}}x_i$) and $\textbf{y}_1, \textbf{y}_3$ and $\textbf{y}_6$ belong to the second pattern (where $x_i > \D^{-{\frac {1}{2}}}\A \D^{-{\frac {1}{2}}}x_i$). The relative frequency of each permutation pattern is $\frac{5}{8}$ and $\frac{3}{8}$ respectively. Finally using Shannon's entropy, the $\PEG$ value of the signal $\X$ is equal to $-\frac{5}{8}\ln\left( -\frac{5}{8}\right) -\frac{3}{8}\ln\left( -\frac{3}{8}\right)=0.6616$. The normalised $\PEG$ is $\frac{0.6616}{\ln(2)}=0.9544$. \end{example} \subsection{Permutation entropy for graphs signals}\label{subsec:permutation-entropy} Let $G = (\V,\E,\A)$ be a graph and $\textbf{X}=\left\{x_i\right\}_{i=1}^{N}$ be a signal on the graph, the permutation entropy for the graph signals $\PEG$ is defined as follow: \begin{enumerate} \item For $2\leq m\in\N$ the \emph{embedding dimension} and $L\in\N$ the \emph{delay time}, we construct the embedding vector $\textbf{y}_i^{m,L}\in\R^m$ given by \begin{equation*} \textbf{y}_i^{m,L}=\left( y_{i}^{kL}\right)_{k=0}^{m-1}=\left(y_i^0,y_{i}^{L},\dots y_{i}^{(m-1)L}\right)\; , \end{equation*} for all $i=1,2,\dots,N$ and where \begin{align} y_{i}^{kL}&= \frac 1 {\card{\Nb_{kL}(i)}} \sum_{j \in \Nb_{kL}(i)} x_j\label{eq:average}\\ & =\frac{1}{\card{\Nb_{kL}(i)}}(\A^{kL}\X)_i\;.\label{eq:averagem} \end{align} Recalling $\Nb_{kL}$ is defined by \Eq{eq:nb}, it follows that $y_i^0=x_i$ and $y_i^1=(I-\Delta)x_i$. \item The $m$ real numbers of the embedding vector $\textbf{y}_i^{m,L}$ are associated with integer numbers from $1$ to $m$ and then arranged in an increasing order. There are $m!$ permutation (also called possible patterns) $\pi$ for an $m$-embedding vector. \item The relative frequency for the distinct permutation $\pi_1,\pi_2,\dots,\pi_k$ where $k\leq m!$ is denoted by $p(\pi_1),p(\pi_2),\dots,p(\pi_k)$. The permutation entropy $\PEG$ for the time series $\textbf{X}$ is computed as the Shannon entropy for the $k$ distinct permutations $$ \PEG (m, L)=-\sum_{i=1}^{k} p(\pi_i) \ln p(\pi_i)\;. $$ \end{enumerate} In the next sections, without specification $L=1$ is chosen. If all possible dispersion pattern have equal probability value, the $\PEG$ reaches its highest value which is equal to $\ln(m!)$. Note that we use the normalised $\PEG$ as $\dfrac{\PEG}{\ln(m!)}$. We use \Eq{eq:average} to prove some properties of $\PEG$, while \Eq{eq:averagem} is more useful for a numerical implementation. Along this article, we will also assume that $G$ has no isolated vertices to avoid $\card{\Nb_{kL}(i)}=0$ in both equations. Some of the similarities and differences between the original $\PE$ and the permutation entropy for graph signals $\PEG$ are the following: \begin{enumerate} \item The main difference is the construction of the embedding vectors in the step $1$. With \Eq{eq:embPE}, $\PE$ constructs $N-(m-1)L$ embedding vectors using $m$ consecutive values of the signal. $\PEG$ uses the adjacency matrix and \Eq{eq:embPEG} to obtain $N$ embedding vectors (independent of $m$ and $L$), each embedding vector corresponds to one vertex. \item The step $2$ (arrange the embedding vectors in increasing order) and $3$ (computing the Shannon's entropy) for both algorithms $\PE$ and $\PEG$ are exactly the same. Therefore, the computational cost is almost the same for both algorithms. \item A time series $\X$ can be considered as a graph signal over the graph $G$ given by the undirected path. The value given by $\PE$ for the time series $\X$ and the value given by the $\PEG$ when $\X$ is considered as a graph signal are (in general) different. However, the dynamics detected by the $\PE$ is preserved with $\PEG$, see \Sec{exp}. The \emph{arrow of time} information is lost when we consider the undirected path. One way to preserve the information is consider $\X$ as a graph signal on the directed path and define $\PEG$ for directed graphs (see Section~\ref{subsec:directedgraph}). \item The adjacency matrix $\A$ is a particular case of the weight matrix $\W$, where all non-zero weight values are equal to one. The general algorithm for weighted graphs is presented in Section~\ref{subsec:weightedgraph}. \end{enumerate} The entropy of the graph signal $\textbf{X}$ depends on its numerical values and the graph topology. It is interesting to study these quantities (that depend on the geometric structure of the graph) under some geometric perturbation (delete edges, vertices and contractions \cite{Fabila-Carrasco2020}). We will show that under some conditions, adding or deleting edges on the graph will preserve the permutation entropy of the signal $\X$. \begin{proposition}\label{prp:adding} Let $\textbf{X}$ be a graph signal over the graph $G=(\V,\E,\A)$ with entropy value $\PEG$ for $m=2$ and $L=1$. Let $i,j\in \V$ be two vertices such that $\Delta x_i<0<\Delta x_j$. \begin{enumerate} \item If $\{i,j\}\notin\E$ and $x_i<x_j$, then $PE_G=PE_{G'}$ where $G'=G+\{i,j\}$. \item If $\{i,j\}\in\E$ and $x_j<x_i$, then $PE_G=PE_{G'}$ where $G'=G-\{i,j\}$. \end{enumerate} \end{proposition} \begin{proof} We will prove $1$ and the proof for $2$ is similar. \begin{enumerate} \item First, we will prove that $\Delta x_i<0$ together with $x_i<x_j$ implies $\Delta_{G'} x_i<0$ where $G'=G+\{i,j\}$. It follows by: \begin{align*} \Delta x_i&<0 \\ deg_G(i) x_i&< \sum_{k \in \Nb_G(i)}x_k\\ x_i \left( deg_G(i)+1\right)&< \sum_{k \in \Nb_G(i)}x_k+x_j \\ x_i&<\dfrac{1}{deg_{G'}(i)}\sum_{k \in \Nb_{G'}(i)}x_k\\ \Delta_{G'} x_i&<0\;. \end{align*} In an analogous way, it can be shown that $0<\Delta x_j$ and $x_i<x_j$ imply that $0<\Delta_{G'} x_j$. Therefore, for each vertex $k\in \V$ the pairs $\left(x_k, (I-\Delta)x_k \right) $ preserve the same order on both graphs ($G$ and $G+\{i,j\}$). The relatives frequencies are equals, hence, their entropy are equal. \end{enumerate} \end{proof} In the previous result, we prove a condition that preserves not only the entropy value but their relative frequencies. Hence, we can apply in an iterative way to generalise the result with the following corollary. \begin{corollary}\label{cor:edges} Let $\textbf{X}$ be a graph signal over the graph $G=(\V,\E,\A)$ with entropy value $\PEG$ for $m=2$ and $L=1$. Define the sets with the following property \begin{align} E_0=\set{(i,j)}{i\in A, j\in B \text{ and } x_i<x_j}\label{eq:condition1}\\ E_1=\set{(i,j)}{i\in A, j\in B \text{ and } x_j<x_i}\label{eq:condition2} \end{align} where $A=\set{i\in \V}{\Delta x_i<0}$ and $B=\set{i\in \V}{0<\Delta x_i}$. \begin{itemize} \item If $E'\subset E_0$ and $E'\cap \E=\emptyset$, then $PE_G=PE_{G'}$ where $G'=G+E'$. \item If $E'\subset E_1$ and $E'\subset \E$, then $PE_G=PE_{G'}$ where $G'=G-E'$. \end{itemize} \end{corollary} \begin{example} Consider the graph ${G}$ and signal $\X$ given in \Ex{permutationgraph}. Define the sets $A=\set{i\in \V}{\Delta x_i<0}=\{2,4,5,7,8\}$ and $B=\set{i\in \V}{0<\Delta x_i}=\{1,3,6\}$. The edge set given by $E_0=\{(1,4),(1,8),(3,8),(6,2),(6,8)\}$ fulfil the condition in \Eq{eq:condition1}. Define $G'=G+E'$ for any $E'\subset E_0$, then by \Cor{edges} follows the entropy is the same, i.e., $PE_G=PE_{G'}$. The case $E'=E_0$ is shown in Fig.~\ref{sub:G1}. Similarly, $E_1=\{(3,5)\}$ (fulfil the condition in \Eq{eq:condition2}), then $G$ and $G-E_1$ have the same entropy. The graph $G-E_1$ is shown in Fig.~\ref{sub:G2}. \begin{figure}[h] \subcaptionbox{Graph ${G}_1$\label{sub:G1}}[.4\linewidth] {\begin{tikzpicture}[baseline, vertex/.style={circle,draw,fill, inner sep=0pt,minimum size=1mm},scale=.3] \node (0) at (-1,1) [vertex,label=left:$2$] {}; \node (1) at (-1,5) [vertex,label=left:$1$] {}; \node (2) at (2,3) [vertex,label=below:$3$] {}; \node (4) at (4,5) [vertex,label=above:$4$] {}; \node (3) at (4,1) [vertex,label=below:$5$] {}; \node (5) at (6,3) [vertex,label=below:$6$] {}; \node (6) at (9,5) [vertex,label=above:$7$] {}; \node (7) at (9,1) [vertex,label=below:$8$] {}; \draw[](0) edge node[below] {} (2); \draw[](1) edge node[below] {} (2); \draw[](2) edge node[below] {} (4); \draw[](4) edge node[right] {} (5); \draw[](0) edge node[right] {} (1); \draw[](3) edge node[below] {} (5); \draw[](5) edge node[below] {} (6); \draw[](6) edge node[below] {} (7); \end{tikzpicture} } \subcaptionbox{Graph ${G}_2$\label{sub:G2}}[.6\linewidth] {\begin{tikzpicture}[baseline, vertex/.style={circle,draw,fill, inner sep=0pt,minimum size=1mm},scale=.3] \node (0) at (-1,1) [vertex,label=left:$2$] {}; \node (1) at (-1,5) [vertex,label=left:$1$] {}; \node (2) at (2,3) [vertex,label=below:$3$] {}; \node (4) at (4,5) [vertex,label=above:$4$] {}; \node (3) at (4,1) [vertex,label=below:$5$] {}; \node (5) at (6,3) [vertex,label=below:$6$] {}; \node (6) at (9,5) [vertex,label=above:$7$] {}; \node (7) at (9,1) [vertex,label=below:$8$] {}; \draw[](0) edge node[below] {} (2); \draw[](1) edge node[below] {} (2); \draw[](2) edge node[left] {} (3); \draw[](2) edge node[below] {} (4); \draw[](4) edge node[right] {} (5); \draw[](0) edge node[right] {} (1); \draw[](3) edge node[below] {} (5); \draw[](5) edge node[below] {} (6); \draw[](6) edge node[below] {} (7); \draw[](1) edge node[right] {} (4); \draw[](1) edge node[right] {} (7); \draw[](2) edge node[below] {} (7); \draw[](5) edge node[below] {} (0); \draw[](5) edge node[below] {} (7); \end{tikzpicture} } \caption{ Examples of two graphs: ${G}_1$ and ${G}_2$. ${G}_1$ is a subgraph of ${G}$ and ${G}$ is a subgraph of ${G}_2$. Both graphs ${G}_1$ and ${G}_2$ preserve the entropy of the original graph $G$. } \label{fig:examplepeg2} \end{figure} \end{example} In this sense, given a signal over a graph, with \Prp{adding} we can find structures that preserve not only the same numeric entropy value but the \textit{maximal} and \textit{minimal} values of the signal on the same vertices. The \textit{invariance property} with respect to monotonic transformation of the time signal is an important property of the $\PE$, i.e., if $\X$ is a time series, and $f$ is an arbitrary strictly decreasing (or increasing) real function, then the classical $\PE$ of the time series $\X$ and $f(\X)$ are equal \cite{Bandt2002}. This function occurs, for example, when the data is measured with different equipment. In a similar scenario, the following proposition shows that some modification on the signal does not change the permutation entropy. \begin{proposition}\label{prp:cX} Let $\textbf{X}$ be a graph signal over the graph $G$ and $c$ a real (non zero) constant function defined on the vertices. The entropy of the signals: $\X$, $c\X$ and $c+\X$ are equal. \end{proposition} \begin{proof} For any $2\leq m\in\N$ and $L\in\N$, the embedding vector for the graph signal $\X$ are defined as $\textbf{y}_i^{m,L}=\left( y_{i}^{kL}\right)$ (see \Eq{eq:average}). It is easy to show that the embedding vectors for $c\X$ are $c\textbf{y}_i^{m,L}$ and the embedding vectors for $c+\X$ are $c+\textbf{y}_i^{m,L}$. Therefore, the proportion of the patterns in the original signal $\X$ are preserved in the signals $c\X$ and $c+\X$. Therefore, its entropy values are equal. \end{proof} The previous proposition shows a difference with respect to the definition of \textit{smoothness} on graph signals. Formally, for a graph signal $\X$ on the ${G}$, the smoothness is measured in terms of the quadratic form of the normalised Laplacian \begin{equation}\label{eq:smooth} \X^T\Delta\X:=\dfrac{1}{2}\sum_{i\sim j}(x_i-x_j)^2\;. \end{equation} Therefore, the smoothness of the signal $c\X$ is different (in general) from the smoothness of the signal $\X$. The algorithm $\PEG$ is interested in the change of the patterns rather than the changes of values of the signal as in the smoothness definition. \subsection{Permutation entropy for signals on directed graph}\label{subsec:directedgraph} In the Section~\ref{subsec:permutation-entropy} we introduced the permutation entropy for undirected graphs. As a particular case, in this section, we introduce a permutation entropy algorithm for directed graphs, denoted as $\PE_{\DG}$. A \emph{directed graph} or \emph{digraph} is a graph where each edge has an orientation or direction. The directed edge (called also an \emph{arc}) is an order pair $(i,j)$ and it is drawn as an arrow from the vertex $i$ to the vertex $j$. A \emph{directed path} on $k$ vertices is a directed graph which joins a sequence of different vertices with all the edges in the same direction and is denoted as $\overrightarrow{P}$, i.e. its vertices are $\{1,2,\dots,k\}$ and its arcs $(i,i+1)$ for all $1\leq i \leq k-1$. The permutation entropy for signals on directed graphs will be almost identical to the presented in Section~\ref{subsec:permutation-entropy} except for a small change in the construction of the embedding vector. \begin{enumerate} \item For $2\leq m\in\N$ the \emph{embedding dimension} and $L\in\N$ the \emph{delay time}, define the set \begin{equation}\label{eq:directedset} V^*=\set{i\in \V }{ \overrightarrow{\Nb}_{(m-1)L}(i)\neq \emptyset }\:, \end{equation} where \begin{equation}\label{eq:set} \overrightarrow{\Nb}_k(i)=\set{j\in\V}{\scalebox{.8}[1.0]{it exists a directed path on $k$ edges from $i$ to $j$}}. \end{equation} We construct the embedding vector $\textbf{y}_i^{m,L}\in\R^m$ given by \begin{equation}\label{eq:embdir} \textbf{y}_i^{m,L}=\left( y_{i}^{kL}\right)_{k=0}^{m-1}=\left(y_i^0,y_{i}^{L},\dots y_{i}^{(m-1)L}\right)\; , \end{equation} for all $i\in V^*$ where \begin{align} y_{i}^{kL}&= \frac 1 {\card{\overrightarrow{\Nb}_{kL}(i)}} \sum_{j \in \overrightarrow{\Nb}_{kL}(i)} x_j\;. \label{eq:average2} \end{align} \end{enumerate} The step $2$ and $3$ are the same as in Section~\ref{subsec:permutation-entropy}. The next proposition shows that the classical permutation entropy is the same if we consider the time series as a signal over a directed path. Therefore, we generalise the $\PE$ for all directed graphs with the same values that the original one. \begin{proposition}\label{prp:equal} Let $\textbf{X}=\left\{x_i\right\}_{i=1}^{N}$ be a time series and consider $G=\overrightarrow{P}$ the directed path on $N$ vertices, then for all $m$ and $L$ the equality holds: \[\PE(m,L)=\PE_{G}(m,L)\;.\] \end{proposition} \begin{proof} For the embedding dimension $m$, delay time $L$ and ${G}$ the directed path with $N$ vertices, then $\overrightarrow{\Nb}_k(i)=\{i+k\}$ for all $1\leq k\leq N-i$ and $\emptyset$ otherwise (see~\Eq{eq:set}). The set defined in \Eq{eq:directedset} is $V^*=\{1,2,3,\dots,N-(m-1)L \}$. Then, for all $i\in V^*$, by \Eq{eq:average2}: \begin{align*} y_{i}^{kL}&= \frac 1 {\card{ \overrightarrow{\Nb}_{kL}(i)}} \sum_{j \in \overrightarrow{\Nb}_{kL}(i)} x_j=x_{i+kL}\;. \end{align*} Therefore, the embedding vector $\textbf{y}_i^{m,L}\in\R^m$ defined by \Eq{eq:embdir} is \begin{equation*} \textbf{y}_i^{m,L}=\left( y_{i}^{kL}\right)_{k=0}^{m-1}=\left(x_i,x_{i+L},\dots x_{i+(m-1)L}\right)\; , \end{equation*} for all $i\in V^*=\{1,2,3,\dots,N-(m-1)L \}$, hence the are exactly the same embedding vectors defined in the original $\PE$ in \Eq{eq:embPE}, i.e. $\textbf{y}_i^{m,L}=\textbf{x}_i^m(L)$. Because the step 2) and 3) in both algorithms are the same, we conclude $\PE=\PEG$. \end{proof} \subsection{Permutation entropy for signals on weighted graph.}\label{subsec:weightedgraph} In most of the examples, the adjacency matrix usually it is enough. Nevertheless, the previous results and algorithms can be generalised for weighted graphs. A \emph{weighted undirected graph} $G$ is defined as the triple $G = (\V,\E,\W)$ which consist of a finite set of vertices or nodes $\V=\{1,2,3,\dots, N\}$, an edge set $\E = \{(i,j): i,j\in\V\}$ and $\W$ is the corresponding $n\times n$ symmetric adjacency matrix weighted on edges with entries $0\leq w_{i j}=w_{j i}$ the weight of edge $(i,j)$. Observe that $(\W^k) _{ij}$ is the sum of the product of all the weights of all the walks from the vertex $i$ to the vertex $j$ of length exactly $k$. We define a function on the vertices $\map{\deg^k}{\V}{\R}$ given by \begin{equation}\label{eq:weightver} \deg^k(i):=\sum_{j\in \V}(\W^k) _{ij}=\sum_{j\in \V} (\W^k)_{ji}\; . \end{equation} Let $\textbf{X}=\left\{x_i\right\}_{i=1}^{N}$ be a signal on the graph $G = (\V,\E,\W)$, the permutation entropy of the signal $\textbf{X}$ on the weighted graph ${G}$ is the same that the presented in Section~\ref{subsec:permutation-entropy}, but replace the \Eq{eq:average} by the following: \begin{equation*} y_{i}^{kL} =\frac{1}{\deg^k(i)}(\W^{kL}\X)_i\;. \end{equation*} Similarly to Section~\ref{subsec:directedgraph}, we can extend the algorithm for weighted directed graphs. \section{Experiments and discussion} \label{sec:exp} In this section, we apply our algorithm to synthetic and real data, including signals on 1D (time series), 2D (image) and irregular domains (graph). We show that $\PEG$ is a suitable generalisation of the original $\PE$ for time series, but with the advantage that the input could be any graph signal. In 1D, the equality $\PEG=\PE$ holds if the underlying graph $G$ is the directed path (\Prp{equal}). The values differ slightly when $G$ is an undirected graph. However, $\PEG$ can detect different dynamics for synthetic signals (logistic map, autoregressive models) and for real signals (fantasy data set). In case the input is 2D, our algorithm gives similar results to the recently introduced two-dimensional permutation entropy~\cite{Morel2021}. Finally, we apply the algorithm for signals defined in general graphs. Fixing the underlying graph ${G}$ and consider a signal $\X$, we show the $\PEG$ value depends on the irregularity of the signal. We also consider the reverse case, fixing the signal $\X$ (for example, a set of $n$ random values). We consider several underlying graphs ${G}$ with $\X$ as a graph signal, we study the impact on the graph structure has on the entropy measure. \subsection{Examples on 1D and the classical permutation entropy}\label{subsec:1D} Let $\textbf{X}=\left\{x_i\right\}_{i=1}^{N}$ be a time series. In this section we consider three underlying graphs: ${G}_1$ a directed path, ${G}_2$ an undirected path, and ${G}_3$ a directed path with the reverse orientation respect ${G}_1$. For any $m$ and $L$, recall that the classical $\PE$ gives equal results as $\PE_{G_1}$ (\Prp{equal}), hence the permutation for graph signals has the same properties as the classic one in 1D. Moreover, we verified computationally that the values of $\PE_{G_1}$ are almost exactly the same as $\PE_{G_3}$, and for $N>30$, its difference is always in the order of $10^{-16}$ (computational accuracy of Matlab). \subsubsection{The logistic map}\label{subsubsec:logisticmap} $\PE$ has been used to detect dynamical changes in time series \cite{Bandt2002, Cao2004}. A commonly used example to show the performance of $\PE$ is the logistic map, given by \[x_{n+1}=r x_n(1-x_n)\;.\] The analysis is relevant for the parameter $r$. Thus, we vary the parameter $r$ from $3.55$ to $4.0$ with increments $r$ in steps of $10^{-5}$ at each iteration, we define the sequence given by $\X(r)=\{x_i\}_{i=1}^N$. The initial value is $x_0=0.65$ and we consider $N=2^{14}$ points. Fig.~\ref{sub:logisticA} shows the time series, where each point of the discrete time is plotted for each value of $r$, i.e., the bifurcation diagram for the logistic map for $r\in[3.55, 4.0]$. We created $4501$ time series, each consisting with $2^{14}$ points. For each sequence, we consider two underlying graph: ${G}_1$ a directed path and $G_2$ an undirected path, both on $N$ vertices. Finally, we compute its permutation entropy for $m=3$ and $L=1$ (see Fig.~\ref{sub:logisticB}). \begin{figure} \begin{subfigure}[h]{0.5\textwidth} \hspace*{-.425cm}\includegraphics[scale=.29]{LogisticMap.eps} \caption{The logistic map with parameter $r$ changing from $3.5$ to $4$.} \label{sub:logisticA} \end{subfigure}\hfill \begin{subfigure}[b]{0.5\textwidth} \includegraphics[scale=.29]{LogisticMap4.eps} \caption{Entropy values computed with underlying graph ${G}_1$ (directed path) and ${G}_2$ (undirected path). Both algorithms use $m=3$ and $L=1$.} \label{sub:logisticB} \end{subfigure} \caption{ } \label{fig:logistic} \end{figure} It is known that chaotic behaviour starts for $3.5699\leq r \leq 4$. The entropy algorithm is able to detect \emph{island of stability}, i.e., values of $r$ such the data sequence shows non-chaotic behaviour. The largest window is $1+\sqrt{8}\approx3.8284<r<3.8415$, this range of $r$ shows oscillation among three values \cite{Zhang2010}. The algorithm (with both underlying graphs ${G}_1$ and ${G}_2$) detects the window (for any embedding dimension $m$). However, the wider gap between the values for ${G}_2$ indicates a large sensitivity of the algorithm to detects the changes of the dynamic on the data. A similar effect in other islands of stability occurs. This fact is in agreement with other previous studies \cite{Bandt2002, Cao2004}. \subsubsection{Heart beat time series} The Fantasia database has been analysed widely to validate the performance of some entropies algorithms~\cite{Chen2019,Bian2012}. We use $10$ heart beat time series: $5$ correspond to young subjects (aged between 21 and 34 years) and 5 recordings from elderly subjects (aged between 68 and 85 years). Each time series is divided into samples of $800$ points with an overlap of $200$ points. The classical $\PE$ is computed (or equivalently, its permutation graph entropy for the directed path) for each sample. We also consider each time series as a graph signal on the undirected path, and $\PEG$ is computed for each case. We consider the embedding dimensions $2\leq m\leq 8$ for the computation. The averaged entropy values with their standard error bars are shown in \Fig{fheart}. The analysis shows that the elderly and young subjects are not indistinguishable by the classical $\PE$ for $3\leq m \leq 6$. Considering $\X$ as a graph signal on the undirected path, the algorithm $\PEG$ can difference the subjects for all embedding dimensions (except $m=2$). Changing the size of the samples and/or intersection does not change this behaviour. In addition, we observe that the entropy values of the elderly subjects are consistently higher than the young subjects for all embedding dimensions with $\PEG$. In contrast, the order in $\PE$ values depends on the parameter $m$, that is, the ranking of elderly and young people is not consistent. \begin{center} \begin{figure} \centering \includegraphics[scale=.29]{heart.eps} \caption{Averaged entropy values and standard error bars for embedding dimensions $2\leq m\leq 8$.} \label{fig:fheart} \end{figure} \end{center} \subsection{Permutation entropy for images (2D)}\label{subsec:1D} One of the main advantages of our algorithm is the fact that it can be applied on any graph, including the directed graph shown in Fig. \ref{sub:directed-graph} (or its undirected version), where any signal can be regarded as an image. Therefore the permutation entropy (described in Section~\ref{subsec:directedgraph}) gives us a metric of the regularity/complexity of images. For the analysis, we choose the directed graph $\overrightarrow{G}$ because: 1) the directed adjacency matrix has more entries equal to zero than the undirected version and hence the algorithm is faster, 2) the algorithm $\PE_{2D}$ presented in~\cite{Morel2021} (and almost every 2D algorithm) implicitly uses this orientation in the vectorisation, 3) the orientation preserves more information of the \textit{geometry} of the graphs and hence gives us better results, 4) if $\overrightarrow{G}$ is a 2D graph with size $N\times1$ or $1\times N$, then $\PE_{\overrightarrow{G}}$ is equal to the classical $\PE$, hence, our algorithm is a natural generalisation and 5) choosing vertex $1$ or any other vertex as an origin of the orientation gives almost identical results, because of its symmetry. To assess the ability of $\PEG$ and similarly to \cite{Silva2016,Azami2017a}, we use the two-dimensional processing $\MIX_{2D}$ \subsubsection{$\MIX_{2D}$ processing} Let $X_{i,j}=\sin\left( \frac{2 \pi i}{12}\right)+\sin\left( \frac{2 \pi j}{12}\right)$ and let $Z_{i,j}$ be a random variable where $Z_{i,j}=0$ with probability $1-p$ and $Z_{i,j}=1$ with probability $p$. In addition, consider $Y_{i,j}$ a matrix of random values ranged in $[-\sqrt 3,\sqrt 3]$. The $\MIX_{2D}$ process is defined by the equation: \begin{equation}\label{eq:mix} MIX_{2D}(p)_{i,j}=\left( 1-Z_{i,j}\right) X_{i,j}+Z_{i,j} Y_{i,j}\;. \end{equation} \Fig{mixwithp} shows samples for different values of $p$, and the underlying graph consider. \begin{figure} \centering \subfloat[Illustration of digraph $\overrightarrow{G}$]{\begin{tikzpicture}[scale=.8,baseline=1mm] \node[label={\small 1}] (a) at (0,2) {}; \fill[color=black] (0,2) circle (0.04); \foreach \x in {0,1,...,2} { \foreach \y in {0,1,...,2} { \fill[color=black] (\x,\y) circle (0.04); } } \foreach \x in {0,1,...,2} { \foreach \y in {0,1} { \path [>=latex,<-] (\x,\y) edge (\x,\y+1); } } \foreach \x in {0,1} { \foreach \y in {0,1,2} { \path [>=latex,->] (\x,\y) edge (\x+1,\y); } } \foreach \x in {0,1} { \foreach \y in {1,2} { \path [>=latex,<-] (\x+1,\y-1) edge (\x,\y); \path [>=latex,->] (\x+1,\y) edge (\x,\y-1); } } \end{tikzpicture} \label{sub:directed-graph}}\quad\quad \subfloat[$p=0$]{\includegraphics[scale=.5]{p00.png}% \label{fig_first_case}}\quad\quad \subfloat[$p=0.1$]{\includegraphics[scale=.5]{p01.png}% \label{fig_second_case}}\quad\quad\\ \subfloat[$p=0.25$]{\includegraphics[scale=.5]{p25.png}% \label{fig_first_case}}\quad\quad \subfloat[$p=0.5$]{\includegraphics[scale=.5]{p05.png}% \label{fig_first_case}}\quad\quad \subfloat[$p=0.9$]{\includegraphics[scale=.5]{p09.png}% \label{fig_first_case}} \caption{Examples of images generated by the MIX process in \Eq{eq:mix}. The size of each image is $100\times 100$ pixels.} \label{fig:mixwithp} \end{figure} To understand the effect of size of image, we create 10 different realization of $\MIX_{2D}(p)$ for each $p=0.1,0.25,0.5,0.9$ whose size changed from $10\times 10$ to $100\times 100$ (for larger size, the results are similar). For each realisation, we compute its $\PE_{\DG}$ (Fig.~\ref{sub:directed-graph}) with embedding dimension $m=6$. In \Fig{allp} is shown the mean and standard deviation values of $\PE_{\DG}$. We also compute the $\PE_{2D}$ with embedding dimension $d_x=3$ and $d_y=2$ (see~\cite{Morel2021}). In both methods, $6!$ permutation patterns are possible and the results are similar. \begin{figure}[h] \centering \includegraphics[scale=.29]{ImagenSize.eps} \caption{Mean value and standard deviation of results obtained by $\PEG$ computed from $20$ realisations from MIX processing.} \label{fig:allp} \end{figure} As $p$ goes to $1$, the image gets closer to random noise (more irregular) and then the $\PE_{\DG}$ gets close to $1$. In particular, if $r<s$, then the entropy value of $\MIX_{2D}(r)$ is smaller than $\MIX_{2D}(s)$. These results are in agreement with the bidimensional entropy algorithms as the distribution \cite{Azami2017a} and sample entropy \cite{Silva2016}. \subsubsection{Artificial periodic and synthesized textures} We use the same six periodic textures and their corresponding synthesized textures (as in~\cite{Morel2021}) to show how $\PEG$ changes when a periodic turns into a synthesized texture. The images dataset are downloaded from \cite{web1}. The original textures and their corresponding texture (sized $256\times 256$) are depicted in the same order in \Fig{texture}. \begin{figure}[h] \centering \subfloat[]{\includegraphics[width=1cm]{P1.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{P2.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{P3.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{P4.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{P5.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{P6.eps}}\\ \subfloat[]{\includegraphics[width=1cm]{S1.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{S2.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{S3.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{S4.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{S5.eps}}\quad \subfloat[]{\includegraphics[width=1cm]{S6.eps}} \caption{Examples of periodic textures (a) to (f) and their corresponding synthetic texture (g) to (l).} \label{fig:texture} \end{figure} \begin{table}[!t] \caption{Numerical values of $\PEG$ for periodic textures and synthetic textures in \Fig{texture}.} \label{table_1} \centering \begin{tabular}{|c|c|c|c|c|c|c|} \hline Periodic texture & (a) & (b) & (c) & (d) & (e) & (f) \\ \hline Entropy value & 0.568&0.623&0.328&0.484&0.823&0.842\\ \hline Synthetic texture & (g) & (h) & (i) & (j) & (k) & (l) \\ \hline Entropy value & 0.7922& 0.829&0.817&0.852&0.865&0.875\\ \hline \end{tabular} \end{table} Considering the directed graph depicted in Fig.~\ref{sub:directed-graph} and for $m=4$, we compute the $\PEG$. Results in Table~\ref{table_1} shown that the permutation entropy of a synthesized texture are higher than of its corresponding periodic texture. Hence, the algorithm discriminate synthetic periodic from periodic textures in agreement with \cite{Morel2021,Azami2017a}. \subsection{Permutation entropy for signals on graphs} Here, the signal $\X=\{x_i\}_{i=1}^N$ will be white Gaussian noise. The entropy has different values depending on the graph underlying, even if $\X$ remains the same. \subsubsection{Random signals on different graph structures}\label{sub1} We show that the algorithm is able to distinguish different values of regularity degree of the graph. We considerer several graph structures ${G}$ on $N$ vertices with $\X$ as a graph signal: $G_1$ the cycle graph, $G_2$ the complete bipartite graph with bipartition $V_1$ and $V_2$ where $\card{V_1}=\card{V_2}=N/2$, and $G_3$ the complete graph. Consider $N=500$, we generate 20 realisations of signal $\X$ and we compute $\PEG$ for $G=G_1, G_2$ and $G_3$ for different embedding values $m$. In \Fig{regular}, we show the mean and standard deviation for dimensions $2\leq m\leq 8$. \begin{figure}[h] \centering \includegraphics[scale=.29]{regular.eps} \caption{Permutation entropy measures of the random signal $\X$ on several underlying graphs $G$ on $500$ vertices.} \label{fig:regular} \end{figure} Observe that $G_1$, $G_2$ and $G_3$ are $2, N/2$ and $N-1$ regular graph, respectively. The analysis shows the random signal $\X$ on the cycle graph cycle ${G}_1$ has larger entropy values than the same signal on the complete graph ${G}_3$. In general, the entropy value for the signal decreases as the degree of regularity of the graph increases. Formally, denote by $G(k,N)$ a $k$-regular graph on $N$ vertices, then: $\lim_{m\to N}\PE_{G(k,N)}(m) = 0$ and larger value of $k$ increases the convergence ratio. Hence $\PE_{G(k_1,N)}(m)<\PE_{G(k_2,N)}(m)$ for all $m$ and $k_2\ll k_1$. Then, for the same signal, the algorithm is able to detect different degree regularity on the graph structure. \subsubsection{Erd\H{o}s–Rényi graphs} The random graph model introduced by Erd\H{o}s–Rényi (ER graphs) is parametrised by the number of vertices $N$, the probability $p$, and it is denoted by $G_{N,p}$. Therefore, ER graphs are models with random connections and they are used to represent common real world data. For a fixed $N=2000$, we consider the ER graph $G_{N,p}$ for several values of $p=0.1, 0.3, 0.6, 0.9$. For $20$ realisations of the signal $\X$ we compute its $\PE_{G_{N,p}}$ for $2\leq m \leq 7$. In \Fig{random}, we show the mean and standard deviations. \begin{figure}[h] \centering \includegraphics[scale=.29]{random.eps} \caption{ Erd\H{o}s–Rényi model for values $p$ equal to $0.1, 0.3, 0.6$ and $0.9$ and $N=2000$. Mean value of its $\PEG$ and standard deviation for $20$ simulations.} \label{fig:random} \end{figure} In all the cases (except for $m=2$) there is not overlapping on the intervals. Then, for a fixed $m>2$ a smaller value of $p$ implies a smaller number of edges (less connectivity) and therefore larger entropy value. Then $\PE_{G_{N,p1}}<\PE_{G_{N,p2}}(m)$ for all $m>2$ and $p2\ll p1$, and the algorithm is able to detects different connectivity degree on the graph structure. \subsubsection{Controlling the entropy value by changing the graph topology} Any graph signal can be more regular/irregular depending on the topology graph. Let $\X$ be any signal with $N$ points and consider the embedding dimension $m=2$, for any $\alpha\in[0,1]$ we will are able to construct a graph ${G}$ such its entropy of the signal $\X$ is equal (or close enough depending on $N$) to $\alpha$. Let $1\leq k\leq N-1$, and without loss of generality, suppose that $x_1,x_2,\dots,x_k$ are the $k$ largest values from the signal $\X$. Consider $G_{k}$ the complete bipartite graph with partition $A=\{1,2,\dots,k\}$ and $B=\{k+1,k+2,\dots,N\}$. In this case, $PE_{G_k}=- \frac{N-k}{N} \ln ( \frac{N-k}{N})-\frac{k}{N} \ln ( \frac{k}{N})$. In particular, if $k=1$ then $G_1$ is the star graph with centre on the vertex $1$. The entropy $\PE_{G_1}=- \frac{N-1}{N} \ln ( \frac{N-1}{N})-\frac{1}{N} \ln ( \frac{1}{N})\rightarrow 0$ as $N\rightarrow\infty$. Then, we have constructed a graph structure with small entropy for the signal $\X$. Similarly, for $N$ even, we consider $k=N/2$, the entropy of the signal $\X$ on the graph $G_{\frac{N}{2}}$ is $-\ln ( \frac{1}{2})$ and its normalised entropy is equal to $1$. In \Fig{randomalpha}, we show for $N=2000$ the entropy of a signal random signal $\X$ with underlying graph the bipartite graph $G_k$ for $1\leq k\leq 1000$. Observe that permutation entropy for the graph $G_k$ and $G_{N-k}$ are equal because for the graph symmetry. Then, for $m=2$ and any value $\alpha\in[0,1]$ we construct a graph $G_k$ with entropy equal to $\alpha$ (or close enough). Observe that this construction is optimised for $m=2$, and the range of the entropy for larger dimension is narrower. Similar constructions can be done to maximise or minimise the entropy for a fixed embedding dimension $m$. \begin{figure}[h] \centering \includegraphics[scale=.29]{minimum.eps} \caption{Permutation entropy values of the random signal $\X$ on the complete bipartite graph $G$ on $k$ and $2000-k$ vertices.} \label{fig:randomalpha} \end{figure} \subsection{A real-world data example: temperature data} We use the temperature readings of ground stations observed in Brittany for January 2014~\cite{Signal2015}. The graph is defined as follows: each vertex represents the ground station, and the weighted edges between vertices are given by a Gaussian kernel of the Euclidean distance between vertices~\cite{Shuman2016}: \[ W_{ij} = \begin{cases} \exp\left(\frac{-d(i,j)^2}{2\sigma_1^2} \right) &\quad\text{if } d(i,j)\leq \sigma_2\\ \text{0} &\quad\text{otherwise.} \\ \end{cases} \] Similarly to \cite{Signal2015}, we use $\sigma_1^2=5.1^8$ and $\sigma_2=10^5$. Let $\X_1$ be the signal corresponding to the temperature observation at 14:00 (January 27, 2014) shown in Figure~\ref{sub:mapA} and $\X_2$ the signal at 04:00 (January 23, 2014) shown in Fig.~\ref{sub:mapB}. The signal $\X_1$ is more \emph{irregular} than $\X_2$ in the following sense: In $\X_1$, the maximum/minimum values are more dispersed along the map. In contrast, the extreme values are more grouped in $\X_2$. In Figure \ref{sub:mapB}, we see that the lowest temperatures are localised in the North-East, the highest in the South-West and the transition between ground stations are smother. While in Fig.~\ref{sub:mapA}, the distribution of the temperatures is more random. This fact is captured by the patterns computed for the entropy. Formally, the irregularity is measured using $\PEG$ in both signals. For example, consider $m=4$, $L=1$ for compute the entropy, that requires up to $24$ permutation pattern. For each vertex, one pattern is generated (\Eq{eq:average}). In the signal $\X_1$, $13$ patterns appear with distribution $\{1,1,1,2,2,2,3,3,3,3,4,4,8\}$ (see Figure \ref{sub:mapA2}) and for the signal $\X_2$, $5$ patterns are formed with distribution $\{1,1,2,13,20\}$ (see Figure \ref{sub:mapB2}). The $\PEG$ of the signal $\X_1$ is $0.7529$, while for $\X_2$ is $0.3313$. In general, the entropy values for the signal $\X_1$ are $0.9995, 0.8729, 0.7529, 0.5438$ for $m=2,3,4,5$ and for $\X_2$ are $0.9740, 0.5667, 0.3313, 0.2739$ for $m=2,3,4,5$. In all the cases, the entropy for $\X_2$ is smaller than $\X_1$. In fact, the difference (and relations) of entropy values for 04:00 and 14:00 are preserved for all embedding dimensions $m$. We compute the entropy for all temperature measures (one per hour for 31 days). Table~\ref{table_2} shows the average of the entropy values for the temperature signals at 04:00 and at 14:00. The entropy value of the temperature measurement is higher at 14:00 than at 04:00. We speculate this reflects a more irregular distribution of temperatures over the ground at 14:00 (during the early afternoon when temperatures could reach higher values depending on the geographical situation of each station) than at 4:00 in the middle of the night. \begin{table}[!h] \caption{Average of $\PEG$ values for the temperature measure at 04:00 and 14:00 .} \label{table_2} \centering \begin{tabular}{|c|c|c|c|c|c|c|} \hline & $m=2$ & $m=3$ & $m=4$ & $m=5$ \\ \hline Temperature at 04:00 & 0.969&0.830&0.572&0.421\\ \hline Temperature at 14:00 & 0.973 & 0.849 & 0.618 & 0.443 \\ \hline \end{tabular} \end{table} \begin{figure} \centering \begin{subfigure}[t]{0.5\textwidth} \includegraphics[scale=.29]{map1.eps} \caption{A temperature observation at 14:00 (January 27, 2014), denoted as signal $\X_1$.} \label{sub:mapA} \end{subfigure}% \\ \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[scale=.29]{map2.eps} \caption{A temperature observation at 04:00 (January 23, 2014), denoted as signal $\X_2$.} \label{sub:mapB} \end{subfigure} \caption{ Two different readings of temperatures in Brittany during January 2014.} \label{fig:mapas} \end{figure} \begin{figure} \centering \begin{subfigure}[t]{0.5\textwidth} \includegraphics[scale=.29]{map3.eps} \caption{Patterns of the signal $\X_1$ for $m=4$.} \label{sub:mapA2} \end{subfigure \\ \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[scale=.29]{map4.eps} \caption{Patterns of the signal $\X_2$ for $m=4$.} \label{sub:mapB2} \end{subfigure} \caption{ Each vertex correspond to one pattern of the signal. Equal colours are equal patterns.} \label{fig:mapas2} \end{figure} In this example, we see how the performance of $\PEG$ is different from the smoothness signal definition in \Eq{eq:smooth}. While the smoothness of the $\X_1$ is $221.9$ and for $\X_2$ is $138.2$, i.e. is smoother $\X_1$ than $\X_2$, but visually it seems more \emph{regular} $\X_2$ than $\X_1$. Recall that we are interested in the change of the pattern and the smoothness in the change of values (\Prp{cX} and \Eq{eq:smooth}). \section{Conclusions and future work} \label{sec:conc} In this paper, we generalised the permutation entropy for graph signals. Some modifications and extensions of the classical $\PE$ have been developed in the literature~\cite{Chen2019,Morel2021,azami2019two}. However, we introduce for the first time an entropy measure for signals on general irregular domains defined by graphs. In particular, we observe that by considering the underlying graph ${G}$ as a path (1D), the results of $\PEG$ coincide with the results for standard algorithms on time series (as the original $\PE$~\cite{Bandt2002}). Moreover, our graph algorithm also enables applying $\PE$-related analysis to images (2D). We also observe that the results depend on how much information we have about the underlying graph. Weights or directions on the edges give different kinds of relations between the signals at neighbouring vertices captured by the algorithm. We explore how the same signal changes its entropy depending on the topology of the graph and how the same underlying graph with signals with different dynamics has different $\PEG$. It demonstrates the importance of the signal and graph for computing the entropy values. Some future lines of research are the following: \begin{itemize} \item Extend other one-dimensional entropy metrics to irregular domains (e.g., dispersion entropy). \item Generate surrogate graph signals and test the nonlinearlity of the signals defined on the graph. \item Study the relationship between properties of the graph (for example, the spectrum of the graph Laplacian), and the regularity of the signal. This would also be useful to help determine how to define the graph for a given graph signal that would be subject to entropy analysis. \end{itemize} We expect the algorithm presented in this paper to enable the extension of similar techniques that inspect nonlinear dynamics from data acquired over irregular graphs. The MATLAB code used in this paper are freely available at \url{https://github.com/JohnFabila/PEG}. \ifCLASSOPTIONcaptionsoff \newpage \fi
\section{Introduction} All-atom dynamics simulations enable the quantitative study of atomistic systems and their interactions in physics, chemistry, materials science, pharmaceutical sciences, and related areas. Their capabilities and limits depend on the potential used to calculate the forces acting on the atoms, with an inherent correlation between the accuracy of the underlying physical model and the required computational effort: On the one hand, electronic structure methods tend to be accurate, slow, applicable to many systems, and require little human parametrization effort. On the other hand, traditional empirical potentials are fast but limited in accuracy and applicability, with often high parametrization effort. Machine-learning potentials (MLPs)~\cite{Deringer2019, Langer2021, Miksch2021, Friederich2021} are flexible functions fitted to reference energy and force data from, e.g., electronic structure methods. Their computational advantage does not arise from simplified physical models but from avoiding redundant calculations through interpolation. Hence, they can stay close to the accuracy of the reference method while being orders of magnitude faster (see \cref{fig:pareto}), with little human parametrization effort, but are often hard to interpret. However, current accurate MLPs are still orders of magnitude slower than traditional empirical potentials, limiting their use for dynamics simulations of large atomistic systems over long time scales. In this work, we develop an interpretable linear MLP based on effective two- and three-body potentials using a flexible cubic B-spline basis. \Cref{fig:pareto} demonstrates how this ultra-fast potential (UF) is close in error to comparable state-of-the-art MLPs while being as fast as the fastest traditional empirical potentials, such as the Morse and Stillinger-Weber potentials. \begin{figure}[H] \centering \includegraphics[width=\columnwidth]{fig_1_pareto.pdf} \caption{% \emph{Trade-off between prediction error and computational cost} of evaluating the potentials, where prediction errors are relative to the underlying electronic-structure reference method (disk). Ultra-fast potentials (this work, stars) with two-body (UF$_2$) and three-body terms (UF$_{2,3}$) are as fast as traditional empirical potentials (squares) but close in error to state-of-the-art machine-learning potentials (triangles). All potentials except EAM4 were refitted to the same tungsten data set and evaluated on the same hardware. Trade-offs between accuracy and cost also arise from the choices of hyperparameters for each potential. See Sections~\ref{sec:background} and \ref{sec:methods} for abbreviations and details. } \label{fig:pareto} \end{figure} \section{Background} \label{sec:background} \emph{The many-body expansion} \cite{Drautz2004} of an atomistic system's potential energy, \begin{multline} \label{eq:manybodyexpansion} E = E_0 + \frac{1}{1!} \sum_{i} V_1({\bf R}_i,\sigma_i) + \frac{1}{2!} \sum_{i,j} V_2({\bf R}_i, \sigma_i, {\bf R}_j, \sigma_j) \\ + \frac{1}{3!} \sum_{i,j,k} V_3({\bf R}_i,\sigma_i,{\bf R}_j,\sigma_j,{\bf R}_k,\sigma_k) + \dots, \end{multline} is a sum of $N$-body potentials, $V_N$, that depend on atom positions~${\bf R}_i$ and element species~$\sigma_i$, and the prefactors account for double-counting. Assuming transferability of the $V_N$ across configurations provides the basis for empirical and machine-learning potentials. In this study, we omit the species dependency as well as the reference energies $E_0$ and $\frac{1}{1!} \sum_i V_1({\bf R}_i,\sigma_i)$ in the equations, and subsume the factorial prefactors into the potentials $V$ for simplicity. The extension to multi-component systems is straightforward and implemented in the accompanying program code. \emph{Traditional empirical potentials} often have rigid functional forms with a small number of tunable parameters, optimized to reproduce experimental quantities such as lattice parameters and elastic coefficients, as well as calculated quantities from first principles, such as energies of crystal structures, defects, and surfaces~\cite{rapaport2004,Martinez2013, Ragasa2019}. Typically this requires global optimization, e.g., via simulated annealing and substantial human effort. \emph{Pair potentials} truncate \cref{eq:manybodyexpansion} after two-body terms, \begin{equation} \label{eq:pairpotential} E = \frac{1}{2} \sum_{i,j} V_2(r_{ij}), \end{equation} where~$r_{ij}$ is the distance between atoms~$i$ and~$j$. These potentials are limited to systems where higher-order terms such as angular and dihedral interactions are negligible. The functional forms of the Lennard-Jones (LJ)~\cite{Jones1924} potential \begin{equation} \label{eq:lj} V^{\text{LJ}}(r_{ij}) = 4 \epsilon \left [ \left ( \frac{\sigma}{r_{ij}} \right )^{12} - \left ( \frac{\sigma}{r_{ij}} \right )^6 \right ] \end{equation} and the Morse potential~\cite{Morse1929} \begin{equation} \label{eq:morse} V^{\text{Morse}}(r_{ij}) = D_0 \left (e^{-2 a(r_{ij}-r_c)} - 2 e^{-a(r_{ij}-r_c)} \right ) \end{equation} were originally developed for their numerical efficiency, where $\epsilon, \sigma$, and $D_0, a, r_c$ are model parameters. \emph{Many-body potentials} extend the pair formalism by including additional many-body interactions either in the form of many-body functions following \cref{eq:manybodyexpansion} or by environment-dependent functionals, such as in the embedded atom method (EAM)~\cite{Daw1984}, \begin{equation} \label{eq:eam} E^{\text{EAM}} = \frac{1}{2} \sum_{i, j} V(r_{ij}) + \sum_i F \Bigl( \sum_{j\ne i}\rho(r_{ij}) \Bigr). \end{equation} Here, the embedding energy $F$ is a non-linear function of the electron density $\rho$, which is approximated by a pairwise sum. While traditional empirical potentials have seen success in applications across decades of research, their rigid functional forms limit their accuracy. More recently, MLPs with flexible functional forms and built-in physics domain knowledge in the form of engineered features or deep neural network architectures have emerged as an alternative~\cite{Langer2021, Zuo2020, Parsaeifard2020}. State-of-the-art MLPs can simulate the dynamics of large (``high-dimensional'') atomistic systems with an accuracy close to the underlying electronic-structure reference method but orders of magnitude faster. However, they are still orders of magnitude slower than fast empirical potentials, limiting their application in system size and simulation length. Recent efforts to improve speed and accuracy in MLPs include the use of linear regression models, which can be faster to train and evaluate than non-linear models~\cite{Lysogorskiy2021, Kovacs2021}. The spectral neighbor analysis potential (SNAP)~\cite{Thompson2015} and its quadratic variant (qSNAP)~\cite{Wood2018} are linear models based on the bispectrum representation~\cite{Bartok2009}. Moment tensor potentials (MTP)~\cite{Shapeev2016}, atomic cluster expansion potentials~\cite{Drautz2019}, and atomic permutationally-invariant polynomials (aPIP) potentials~\cite{VanderOord2019} are linear models based on polynomial basis sets. A complementary approach to improve speed is to use basis functions that are fast to evaluate. In the context of MLPs, non-linear kernel-based MLPs have been trained and subsequently projected onto a spline basis, yielding a linear model~\cite{Glielmo2017, Vandermause2020}. Similar to UF, the general two- and three-body potential (GTTP) approach employs a quadratic spline basis set, exceeding MTPs in speed when trained on the same data~\cite{pozdnyakov2020}. Polynomial symmetry functions (PSF) improve over Behler-Parrinello symmetry functions \cite{Behler2007} in speed and accuracy by introducing compact support~\cite{Bircher2021}. Recently, new methods for fitting spline-based modified EAM potentials were benchmarked against MLPs, demonstrating comparable accuracy despite the lower complexity of their functional forms~\cite{Vita2021}. Motivated by these observations, we developed an ultra-fast (UF) MLP that combines the speed of the fastest traditional empirical potentials with an accuracy close to state-of-the-art MLPs by employing regularized linear regression with spline basis functions of compact support to learn effective two and three-body interactions. \Cref{fig:pareto} showcases the relation between prediction errors and computational costs for three traditional empirical potentials (LJ, Morse, EAM) and several MLPs benchmarked on a dataset of elemental tungsten~\cite{Szlachta2014}. While the traditional empirical potentials are fast but limited by accuracy, the MLPs are accurate but limited by speed. The method is available in an open-source Python implementation (UF$^3$, Ultra-Fast Force Fields)~\cite{xie2021uf} with interfaces to the VASP~\cite{kresse1996} electronic-structure code and the LAMMPS~\cite{Plimpton1995} molecular dynamics code. \section{Results and Discussion} \begin{figure}[tb \includegraphics[width=\columnwidth]{fig_2_bspline.pdf} \caption{ \emph{B-Spline basis set for pair potentials.} A) Ten weighted B-splines after fitting ($B^*_n=c_n B_{n}(r)$, solid curves) and their ranges of support. Their sum is the fitted pair potential ($V^{\text{UF}_2}(r)$, blue curve). In this example, knots $t_n$ are selected with uniform spacing and illustrated as vertical lines. B) Using cubic B-spline basis functions, the pair potential $V(r)$ has a smooth and continuous first derivative $V^\prime(r)$ (dotted line), which is essential for reproducing accurate forces. Its second derivative $V^{\prime\prime}(r)$ (dashed line) is continuous, which is essential for reproducing stresses and phonon frequencies. C) The optimized UF$_2$ potential exhibits more inflection points than the optimized LJ (dotted line)and Morse (dashed line) potentials, highlighting its increased flexibility. } \label{fig:workflo} \end{figure} The central idea of UF MLPs is to learn an effective low-order many-body expansion of the potential energy surface, using basis functions that are efficient to evaluate. For this, we truncate the many-body expansion of \cref{eq:manybodyexpansion} at two- or three-body terms and express each term as a function of pairwise distances (one distance for the two-body and three distances for the three-body term). This approach is general and can be extended to higher-order terms. To minimize the computational cost of predictions, we represent $N$-body terms in a minimal set of basis functions with compact support and sufficiently many derivatives to describe energies, forces, and vibrational modes, i.e., cubic splines. \subsection{Expansion in B-splines} \emph{Splines} are piecewise polynomial functions with locally simple forms, joined together at knot positions~\cite{boor2001}. They are globally flexible and smooth but do not suffer from some of the oscillatory problems of polynomial interpolators (e.g., Runge's phenomenon \cite{Runge1901}). Spline interpolation is well-established in empirical potential development \cite{Wolff1999,Wen2015}. The LAMMPS package \cite{Plimpton1995}, a leading framework for molecular dynamics simulations, implements cubic spline interpolation for pair potentials and selected many-body potentials, including EAM. The primary motivation for splines is the desire for speed and the opportunity to improve accuracy systematically~\cite{Hennig2008}. Their compact support and simple form make spline-based potentials the fastest choice to evaluate, and adding more knots increases their resolution. \emph{B-splines} constitute a basis for splines of arbitrary order. They are recursively defined as \cite{boor2001} \begin{align} B_{n, 1}(r) & = \begin{cases} 1, & t_n \leq r < t_{n+1} \nonumber \\ 0, & \text{otherwise} \end{cases} \\ \label{eq:b-splines} B_{n,d+1}(r) & = \frac{r-t_n}{t_{n+d}-t_n}B_{n,d}(r) \nonumber \\ & \quad + \frac{t_{n+d+1} - r}{t_{n+d+1} - t_{n+1}}B_{n+1, d}(r), \end{align} where $t_n$ is the $n$-th knot position, and $d$ is the degree of the polynomial. The position and number of knots, a non-decreasing sequence of support points that uniquely determine the basis set, may be fixed or treated as free parameters. B-Splines are well suited for interpolation due to their intrinsic smoothness and differentiability. Their derivatives are also defined recursively: \begin{equation} B^\prime_{n,d+1}(r) = d \bigg(\frac{B_{n,d}(r)}{t_{n+d}-t_n} - \frac{B_{n+1, d}(r)}{t_{n+d+1} - t_{n+1}}\bigg) \end{equation} The UF potential describes the energy~$E$ of an atomistic system via two- and three-body interactions: \begin{equation} \label{eq:potential} E = \sum_{i,j} V_2( r_{ij}) + \sum_{i,j,k} V_3(r_{ij},r_{ik},r_{jk}) . \end{equation} For finite systems such as molecules or clusters, indices $i,j,k$ run over all atoms. For infinite systems modeled via periodic boundary conditions, $i$ runs over the atoms in the simulation cell, and $j,k$ run over all neighboring atoms, including those in adjacent copies of the simulation cell. While these are infinitely many, the sums are truncated in practice by assuming locality, that is, finite support of $V_2$ and $V_3$. Modeling $n$-body interactions requires $n \choose 2$-dimensional tensor product splines. The UF potential therefore expresses $V_2$ and $V_3$ as linear combinations of cubic B-splines, $B_{n} = B_{n,3+1}$, and tensor product splines: \begin{align} V_2(r_{ij}) = & \sum ^{K}_{n=0} c_n B_{n}(r_{ij}) \nonumber \\ V_3(r_{ij}, r_{ik}, r_{jk}) = & \nonumber \\ \sum ^{K_l}_{l=0} \sum ^{K_m}_{m=0} \sum ^{K_n}_{n=0} & c_{lmn} B_{l}(r_{ij}) B_{m}(r_{ik}) B_{n}(r_{jk}), \end{align} where $K$, $K_l$, $K_m$, and $K_n$ denote the number of basis functions per spline or tensor spline dimension, and $c_n$ and $c_{lmn}$ are corresponding coefficients. The B-spline basis set spans a finite domain and is bounded by the end knots $[t_0, t_{K}]$. At the upper limit $t_{K}$, the potential smoothly goes to zero, and near the lower limit $t_0$, it monotonically increases with shorter distances to prevent atoms from getting unphysically close. \Cref{fig:workflo}A illustrates the compact support of the cubic B-spline basis functions. By construction, each basis function is nonzero across four adjacent intervals. Therefore, evaluating the two and three-body potentials involves evaluating at most 4 and $4^3=64$ basis functions for any pair or triplet of distances, respectively, giving rise to the aforementioned speed. The force ${\bf F}_a=-\nabla_{{\bf R}_a} E$ acting on atom $a$ is defined as the negative gradient of the energy with respect to the atom’s Cartesian coordinate ${\bf R}_{a}$ and obtained analytically from the derivatives of the two and three-body potentials, \begin{align} \frac{\partial V_2(r_{ij}) }{\partial R_{a,\ell}} & = \sum ^{K_n}_{n=0} c_{n} B^\prime_{n}(r_{ij})\frac{\partial r_{ij}}{\partial R_{a,\ell}} \nonumber \\ \frac{\partial V_3(r_{ij}, r_{ik}, r_{jk}) }{\partial R_{a,\ell}} & = \sum ^{K_l}_{l=0} \sum ^{K_m}_{m=0} \sum ^{K_n}_{n=0} c_{lmn} \bigg( \nonumber \\ B^\prime_{l}(r_{ij})& B_{m}(r_{ik}) B_{n}(r_{jk})\frac{\partial r_{ij}}{\partial R_{a,\ell}} + \nonumber \\ B_{l}(r_{ij})& B^\prime_{m}(r_{ik}) B_{n}(r_{jk})\frac{\partial r_{ik}}{\partial R_{a,\ell}} + \nonumber \\ B_{l}(r_{ij})& B_{m}(r_{ik}) B^\prime_{n}(r_{jk})\frac{\partial r_{jk}}{\partial R_{a,\ell}} \bigg) \label{eq:atomic_force} \end{align} with \begin{equation} \frac{\partial r_{ij}}{\partial R_{a,\ell}} =\frac{( \delta _{aj} -\delta _{ai})( R_{j,\ell} -R_{i,\ell})}{r_{ij}}. \label{eq:direction_cosine} \end{equation} \Cref{fig:workflo}B illustrates, for the two-body potential, that the choice of the cubic B-spline basis results in a smooth, continuous first derivative comprised of quadratic B-splines and a continuous second derivative of linear B-splines. \subsection{Regularized least-squares optimization with energies and forces} During the fitting procedure, we optimize all spline coefficients $c$ simultaneously with the regularized linear least-squares method. Given atomic configurations $\mathcal{S}$, energy observations $\mathcal{E}$, and force observations $\mathcal{F}$, we fit the potential energy function~$E$ of \cref{eq:potential} by minimizing the loss function \begin{align} \label{eq:loss_function} L = & \frac{\kappa}{\sigma_\mathcal{E}^2 |\mathcal{E}|} \sum_{s \in \mathcal{S}}(E(s)-\mathcal{E}_s)^2 \nonumber \\ & + \frac{1-\kappa}{\sigma_\mathcal{F}^2|\mathcal{F}|} \sum_{s \in \mathcal{S}}({-\nabla E(s)}-\mathcal{F}_s)^2 \nonumber \\ & + \lambda \sum_{n}^K (c_{n-1} - 2 c_n + c_{n+1})^2, \end{align} where $\kappa \in [0, 1]$ is a weighting parameter that controls the relative contributions between energy and force-component residuals, and $\sigma_\mathcal{E}$ and $\sigma_\mathcal{F}$ are the sample standard deviations of energies and force components across the training set. This normalization yields dimensionless residuals, allowing $\kappa$ to balance the relative contributions from energies and forces, independently of the size and variance of the training data. The minimization of $L$ with respect to the spline coefficients $c$ is a linear least-squares problem with Tikhonov regularization and solution \begin{equation} {\bf c}=({\bf X}^T{\bf X}+ \lambda {\bf D}_2)^{-1} {\bf X}^T {\bf y}, \end{equation} where ${\bf I}$ is the identity matrix, ${\bf y}$ contains energies and forces, and each element of $X$ is the sum over all pair distances in each configuration (rows) for each basis function (columns). When forces are included in $y$, the corresponding rows of $X$ are generated according to~\cref{eq:atomic_force,eq:direction_cosine}. This optimization problem is strongly convex, allowing for an efficient and deterministic solution with LU decomposition. The Tikhonov regularization controls the curvature and local smoothness across adjacent spline coefficients through $\lambda$ via the difference penalty \cite{Whittaker1922, Eilers1996}. For the two-body case, $D_2$ is given by \begin{equation} {\bf D}_2 = \begin{pmatrix} 1 & -1 & 0 & \ldots & \ldots & 0 \\ -1 & 2 & -1 & \ddots & \ddots & \vdots \\ 0 & -1 & 2 & \ddots & \ddots & \vdots\\ \vdots & \ddots & \ddots & \ddots & \ddots & 0 \\ \vdots &\ddots& \ddots & \ddots & 2 & -1 \\ 0 & \ldots& \ldots& 0 & -1 & 1 \label{eq:difference_penalty} \end{pmatrix}. \end{equation} For higher-order potential terms, the difference penalty affects the spline coefficients that are adjacent in multiple dimensions of the tensor product splines. This difference penalty is related to a penalty on the integral of the squared second derivative of the potential~\cite{Schoenberg1964, Reinsch1967}, used in the aPIP potentials \cite{VanderOord2019}. However, the difference penalty is less complex because the dimensionality of the corresponding regularization problem is simply the number of basis functions $K$~\cite{Eilers1996}. In practice, we fit $\lambda$ using cross-validation and local optimization. Typical values of $\lambda$ are between $10^{-8}$ and $10^{-4}$. The smoothness penalty is sufficient to mitigate the problem of multicollinearity as well as to avoid large oscillations, removing the need for ridge regularization. \Cref{fig:workflo}C compares the optimized $\text{UF}_2$ potential and the fitted LJ and Morse potentials for tungsten. Although the three curves have similar minima and behavior for greater pair distances $r$, the $\text{UF}_2$ potential exhibits additional inflection points. The ability of the $\text{UF}_2$ potential to reproduce the properties of a bcc metal, a traditionally difficult task for pair potentials, is attributed to its flexible functional form. Moreover, the UF construction retains the interpretability of empirical potentials, yielding at a glance two-body characteristics such as the hardness of the core and the potential well's depth and location. \begin{figure}[tb] \includegraphics[width=\columnwidth]{fig_3_learning_curves.pdf} \caption{ \emph{Energy and force learning curves for UF and SNAP potentials fit to elemental tungsten.} Shown are out-of-sample prediction errors (dots) for energies (top) and forces (bottom) for training sets of increasing size, with 5 repetitions per size. Fitted curves (solid lines) are soft-plus functions that capture both the initial linear slope in log-log space and the observed saturation. Simpler potentials saturate earlier, but with higher error than more complex potentials (UF$_2$\ vs.\ SNAP; UF$_2$\ vs.\ UF$_3$; SNAP\ vs.\ QSNAP), outperforming them when training data is limited. } \label{fig:learning} \end{figure} \subsection{Convergence of error in energy and force predictions} UF potentials should exactly reproduce any two- and three-body reference potential by construction, given sufficiently many basis functions and training data. To establish baseline functionality, we fit the $\text{UF}_2$ potential to energies and forces from the LJ potential for elemental tungsten, and the $\text{UF}_{2,3}$ potential to energies and forces from the Stillinger-Weber potential on elemental silicon, which they both reproduce with negligible error (see the Supplemental Information for learning curves and details). To assess the accuracy of UF potentials, we measure their ability to reproduce DFT energies and forces in tungsten as a function of the amount of training data. \Cref{fig:learning} compares energy and force learning curves for the two-body $\text{UF}_2$, two- and three-body $\text{UF}_{2,3}$, SNAP, and qSNAP potentials. We use the root-mean-squared error (RMSE) to measure the capacity of a potential to reproduce the energies and forces from the DFT reference. We ensured that each testing set, selected otherwise randomly from the available data, contained all available configuration types (see \cref{sec:data}). We additionally stratified by minimum observed pair distances to ensure that training included distances in the repulsive region of the potential. Each learning curve is fit with a softplus function $\ln(1 + e^n)$, where $n$ is the number of training data. This function captures both the initial linear slope in $\log$-$\log$ space and the observed saturation due to the models' finite complexity. Of the four models, the $\text{UF}_2$ potential, using 28 basis functions, converges earliest. The SNAP potential, using 56 basis functions based on hyperspherical harmonics, converges slightly later with lower errors. The qSNAP potential, using 496 basis functions including quadratic terms, converges last, with modest improvements in error over SNAP. Finally, the $\text{UF}_{2,3}$ potential, using 915 basis functions, is comparable to SNAP in convergence speed with lower errors in energies and similar errors in forces. The convergence speed is related to both the number of basis functions and the complexity of the many-body interactions. This indicates that the simpler $\text{UF}_2$ potential may be more suitable than other MLPs when data is scarce. Active learning methods might benefit from a composite model that relies on simple potentials such as the UF$_2$ potential during early stages and then transitions to more complex potentials such as the UF$_{2,3}$ potential as more data becomes available. \begin{figure*}[!tb] \includegraphics[width=\textwidth]{fig_4_spider.pdf} \caption{ \emph{Performance for derived quantities} of seven potentials relative to the DFT reference. The solid black line in each spider plot indicates zero error. Energy, force, and phonon spectra error are percent RMSE normalized by the sample standard deviation of the reference values. Other errors are percentage errors. The $\text{UF}_2$ potential achieves an accuracy approaching that of SNAP and qSNAP, while the $\text{UF}_{2,3}$ potential achieves an accuracy comparable to GAP. } \label{fig:spider} \end{figure*} \subsection{Validation with derived quantities} \begin{figure}[htb] \includegraphics[width=\columnwidth]{fig_5_phonon.pdf} \caption{\emph{Phonon dispersion curves.} A) The $\text{UF}_2$ potential outperforms empirical potentials (Morse, EAM4) in reproducing the reference phonon frequencies (pink squares). The LJ curve, omitted, exhibits large oscillations and negative phonon frequencies. B) SNAP and qSNAP have similar phonon frequency errors to the $\text{UF}_2$ and EAM4 potentials. C) The addition of three-body interactions allows the $\text{UF}_{2,3}$ potential to approach the performance of the GAP potential. } \label{fig:phonons} \end{figure} To benchmark the performance for applications, we computed several derived quantities that were not included in the fit, such as the phonon spectrum, and melting temperature using each potential. \Cref{fig:spider} shows the relative errors in 12 quantities: energy, forces, phonon frequencies, lattice constant $a_0$, elastic constants $C_{11}$, $C_{12}$, and $C_{14}$, bulk modulus $B$, surface energies $E_{100}$, $E_{110}$, $E_{111}$, and vacancy formation energy $E_V$. Energy, force, and phonon predictions are displayed as percent RMSE, normalized by the sample standard deviation of the reference values. The remaining scalar quantities are displayed as percentage errors and tabulated in the Supplemental Information. Surface, vacancy, and strained bcc configurations were included in the training set. Hence $C_{11}$, $C_{12}$, $C_{14}$, $E_{100}$, $E_{110}$, $E_{111}$, and $E_V$ are not measures of extrapolation. The $\text{UF}_2$ pair potential exhibits errors comparable to those of more complex potentials despite its low computational cost. In contrast, the LJ and Morse potentials severely overpredict and underpredict most properties, respectively. One source of error in pair potentials, including the UF$_2$ potential, arises due to the deviation from the Cauchy relations, e.g., for cubic crystals $C_{12}=C_{44}$~\cite{stakgold1950cauchy}. This deviation is nearly zero for noble gases but nonzero in most solids. However, the Cauchy relation is fulfilled for any pair potential when each atom is a center of symmetry, such as in bcc tungsten. Hence, the errors in $C_{12}$ and $C_{44}$ must be larger for pair potentials, where they are constrained to be equal, than for models with many-body terms. This limitation in modeling the elastic response may hinder the prediction of mechanical properties and defect-related quantities~\cite{Ziegenhain2009}. As an example of an empirical potential used in practice, we selected the EAM4 potential~\cite{Marinica2013} for all benchmarks. The EAM4 model, one of four tungsten models developed by Marinica et al., accurately reproduces the Peierls energy barrier and dislocation core energy~\cite{Marinica2013}. The EAM4 potential was fit to the derived quantities in \Cref{fig:spider} and, hence, exhibits reasonably low error. All potentials in \cref{fig:pareto,fig:spider}, except EAM4, were fit using the same training set of 1\,939 configurations. While this training set size is realistic in both size and diversity, based on the relative model complexities the SNAP, qSNAP, and GAP models may achieve even lower errors with a more extensive training set and larger basis set. In this work, the cut-off radius for inter-atomic interactions was set to 5.5\;\AA{} for all potentials except for EAM4. Additional hyperparameters for the $\text{UF}_{2}$, $\text{UF}_{2,3}$, SNAP, qSNAP, and GAP basis sets are tabulated in the Supplemental Information. For $\text{UF}_{2,3}$, a separate smaller cut-off radius of 4.25\;\AA{} was used for three-body interactions. This choice was motivated in part by precedence in other two- and three-body potentials such as the modified embedded-atom potentials \cite{Hennig2008} and in part by speed: The smaller cut-off radius results in ten times fewer three-body interactions and corresponding speed-up. For the bcc tungsten system, using the selected training set, the $\text{UF}_{2,3}$ potential approaches the accuracy of the GAP potential. Adding the three-body interactions eliminates the error associated with the Cauchy discrepancy, improving the elastic constant predictions. The $\text{UF}_{2,3}$ potential also achieves lower errors for the surface and vacancy formation energies than the $\text{UF}_{2}$ pair potential, underscoring the value of including three-body interactions. \begin{table}[tb] \begin{tabular}{@{}lcccccc@{}} \toprule & \multicolumn{1}{p{1.2cm}}{\centering Relative\\Comp.\\Cost} & \multicolumn{1}{p{1.2cm}}{\centering Melting\\Temp.\\(K)} & \multicolumn{1}{p{1.5cm}}{\centering Energy\\RMSE\\(eV/atom)} & \multicolumn{1}{p{1.3cm}}{\centering Force\\RMSE\\(eV/\AA)} & \multicolumn{1}{p{1.2cm}}{\centering Phonon\\RMSE (THz)} \\ \midrule Expt.~\cite{lide2005crc} & & 3695 & & & \\ LJ & 1 & 5818 & 0.110 & 1.400 & 3.914\\ Morse & 1.64 & 2684 & 0.040 & 0.480 & 1.140\\ $\text{UF}_2$ & 1.66 & 3873 & 0.028 & 0.313 & 0.230\\ EAM4 & 3.53 & 4583 & 0.088 & 0.803 & 0.301\\ $\text{UF}_{2,3}$& 7.7-20.7 & - & 0.005 & 0.125 & 0.182\\ qSNAP & 164 & - & 0.020 & 0.266 & 0.395\\ SNAP & 302 & 2652 & 0.020 & 0.239 & 0.277\\ GAP & 5368 & 3171 & 0.006 & 0.169 & 0.291\\ \bottomrule \end{tabular} \caption{ \emph{Melting temperature predictions alongside energy, force, and phonon frequency benchmarks.} The melting temperatures were calculated as described in \cref{sec:methods}. We omit the $\text{UF}_{2,3}$ potential because it is not yet implemented in LAMMPS. Compared to LJ, Morse, and EAM4, the $\text{UF}_2$ potential achieves a fortuitously low error in the melting temperature for a similar cost. On the other hand, SNAP, qSNAP, and GAP require two to three orders of magnitude more computational resources for the same large-scale simulation. } \label{table:comparison} \end{table} \Cref{fig:phonons} compares the calculated phonon spectra of the various MLPs with the DFT reference values~\cite{Szlachta2014}. Perhaps surprisingly, the $\text{UF}_2$ pair potential is comparable in error to the potentials with many-body terms. In contrast, the Morse pair potential is rather inaccurate and the LJ pair potential, not shown, yields a phonon spectrum with imaginary frequency and large frequency oscillations. \Cref{table:comparison} summarizes the RMSE of the phonon frequencies computed across the 26 DFT reference values. As in other calculated properties, the addition of three-body interactions in the $\text{UF}_{2,3}$ potential significantly improves the agreement with the DFT reference compared to the $\text{UF}_2$ pair potential and even surpasses the other computationally more expensive MLPs. As an example for a practical, large-scale calculation, we predict the melting temperature of tungsten (see \cref{sec:methods:calcs} for computational details). Since the training set of the MLPs does not include liquid configurations, the melting point predictions measure the model's extrapolative capacity. \Cref{table:comparison} compares the predicted melting temperatures of the MLPs with the experimental value of 3695\;K~\cite{lide2005crc}. We observe that the other pair potentials are limited in their predictive capabilities while the $\text{UF}_2$ potential is comparable in accuracy to the more complex potentials, which yield reasonable predictions. The qSNAP melting calculation failed due to numerical instability at higher temperatures, which is known to occur in potentials with many-body terms. Bonds break at higher temperatures, leading to many local atomic configurations that are underrepresented in the training set. We expect that training the qSNAP potential on a suitable, more extensive dataset would remove this instability. The extrapolative capacity of the $\text{UF}_2$ potential for the melting point illustrates that the UF potentials can provide an accurate description with only a moderately sized training dataset, indicating their usefulness for materials simulations with limited reference data. \section{Summary} We developed and implemented an approach for machine learning of the energy landscape of materials that is fast to train and evaluate, provides an interpretable form, is extendable to higher-order interactions, and accurately describes materials even for comparably sparse training sets. The approach is based on a many-body expansion and utilizes a flexible B-spline basis. The resulting regularized linear least-squares optimization problem is strongly convex, significantly reducing the computational requirements. In the example of elemental tungsten, the $\text{UF}_2$ pair potential produces energy, force, and property predictions rivaling those of SNAP and qSNAP while matching the cost of the Morse potential, corresponding to a reduction in computational cost by two orders of magnitude. Despite the intrinsic limitations of the pair potential in capturing physics, we find that the $\text{UF}_2$ pair potential yields reasonable predictions in property benchmarks, such as elastic constants, phonons, surface energies, and melting temperature. The $\text{UF}_{2,3}$ potential, which accounts for three-body interactions, approaches the accuracy of GAP while reducing computational cost by two to three orders of magnitude. The software for fitting UF potentials and exporting LAMMPS-compatible tables is freely available in our Github repository~\cite{xie2021uf}. \section{Methods} \label{sec:methods} \subsection{Data}\label{sec:data} To compare the UF potential against existing potentials we use a dataset by Szlachta et al. \cite{Szlachta2014} which has been used before to benchmark the GAP \cite{Szlachta2014}, SNAP \cite{Wood2017}, and aPIP \cite{VanderOord2019} potentials. This dataset of 9\,693 tungsten configurations includes body-centered cubic (bcc) primitive cells, bulk snapshots from molecular dynamics, surfaces, vacancies, gamma surfaces, gamma surface vacancies, and dislocation quadrupoles. Energies, forces, and stresses in the dataset were computed using density functional theory (DFT) with the Perdew-Burke-Ernzerhof (PBE) \cite{Perdew1996} functional. \subsection{B-spline basis} The UF potential uses natural cubic B-splines: Their first derivative is continuous and smooth, while their second derivative is continuous. They are natural, rather than clamped, in that their second derivative is zero at the boundary conditions. These properties, which are critical for accurately reproducing forces and stresses, motivated our choice of basis set. Other B-spline schemes have been explored for the purpose of interpolating in empirical potential development. Wen et al.{}~\cite{Wen2015} discuss clamped and Hermite splines as well as quartic and quintic splines. The natural cubic spline is sufficient except when computing properties that rely on the third and fourth derivative of the potential, such as thermal expansion and finite-temperature elastic constants. The conventional spline form requires repeated end-knots to allow for interpolation of derivatives at the endpoints. While uniform spacing is a reasonable choice in many cases, the user may adjust the density of knots to control resolution in regions of interest. Due to compact support in this basis, each pair-distance energy requires the evaluation of exactly four B-splines. Hence, the potential's speed scales with neither the number of knots nor the number of basis functions. On the other hand, the minimum distance between knots limits the maximum curvature of the function. The optimum density of knots thus depends on the quality of the training set available. Underfitting or overfitting may arise from insufficient or excessive knot density, respectively. Based on convergence tests (supplemental information), we fit UF potentials in this work using 25 knots. By construction, each spline coefficient influences the overall function across five adjacent knots. As a result, the user can tune the shape of the potential further according to additional constraints. For instance, soft-core and smooth-cutoff requirements may be satisfied by adjusting spline coefficients at the ends. In this work, we ensure that the potential and its first derivatives follow a smooth cutoff at $r_{ij} = t_K$ by setting the last three coefficients to 0. \subsection{Models} In this work, we partitioned the data using a random split of 20\% training and 80\% testing data. The testing set was used to evaluate the root-mean-square error (RMSE) in energies and forces, as reported in \cref{table:comparison} and \cref{fig:pareto}. The LJ and Morse potentials were optimized using the BFGS algorithm as implemented in the SciPy library \cite{Virtanen2020}. The SNAP and qSNAP potentials were retrained using the MAterials Machine Learning (MAML) package \cite{PingOng2019}. The GAP potential was retrained using the QUantum mechanics and Interatomic Potentials (QUIP) package \cite{Bartok2013, Bartok2015}. We used the EAM4 potential, obtained from the NIST Interatomic Potential Repository \cite{Becker2013, Hale2018}, without modification. The ratio of training to testing data was chosen, in part, due to memory and speed constraints in training and evaluating the GAP potential. The size of the kernel used by GAP scales quadratically with the size of the training set. With a larger training set, the SNAP, qSNAP, and GAP models would most likely produce better predictions. We respectfully refer the reader to the original works and existing benchmark \cite{Zuo2020} for details regarding convergence with training examples. \subsection{Calculations}\label{sec:methods:calcs} All potentials in \cref{fig:pareto} were fitted and evaluated on a single-core Intel Xeon E5-2683 v3 (2.00GHz) CPU. Computational cost measurements for each potential are reported as the average over ten simulations. We use two methods to estimate the computational cost of the $\text{UF}_{2,3}$ potential and present both values in \cref{fig:pareto} and \cref{table:comparison}. The lower estimate, 3.58 $\mu$s/atom/step, is computed by multiplying the computational cost of $\text{UF}_2$ by the ratio of floating point operations used by $\text{UF}_{2,3}$ and $\text{UF}_2$. The higher estimate, 11.4 $\mu$s/atom/step, is computed using the ratio of speeds, in the Python implementation, multiplied by the reported cost of $\text{UF}_2$. Elastic constants were evaluated using the Elastic python package \cite{Jochym2018}. Phonon spectra were evaluated using the Phonopy python package \cite{Togo2015}. Melting temperatures were calculated in LAMMPS using the two-phase method and a timestep of 1 fs. The initial system, a $16 \times 8 \times 8$ bcc supercell (2\,048 atoms), was equilibrated at a selected temperature for 40\,000 timesteps. Next, the solid-phase atoms were fixed while the liquid-phase atoms were heated to 5\,000\;K and cooled back to the initial temperature over 80\,000 timesteps. Finally, the system was equilibrated over 200\,000 steps using the isoenthalpic-isobaric (NPH) ensemble. If the final configuration did not contain both phases, the procedure was repeated with a different initial temperature. Reported melting temperatures were computed by taking the average over the final 100\,000 steps. \section*{Code availability} Code for fitting UF$_2$ and UF$_3$ potentials, as well as exporting LAMMPS-compatible tables is freely available in our open-source ``Ultra-Fast Force Fields'' GitHub repository~\cite{xie2021uf}. The $\text{UF}_2$ potential is natively supported by LAMMPS, GROMACS, and other molecular dynamics suites that can construct potentials from interpolation tables. In LAMMPS, the pair style ``table" is available for execution on both CPU and GPUs, enabling the $\text{UF}_2$ potential to benefit from various computer architectures. \section*{Acknowledgments} SX and RGH were supported by the United States Department of Energy, under contract number DE-SC0020385. Part of the research was performed while the authors visited the Institute for Pure and Applied Mathematics (IPAM), which is supported by the National Science Foundation (Grant No. DMS-1440415). Computational resources were provided by the University of Florida Research Computing Center. \section*{Author Contributions} All authors contributed extensively to the work presented in this paper. SRX, MR, and RGH jointly develped the methodology. SRX implemented the algorithm and performed the model training and analysis. SRX, MR, and RGH wrote the manuscript. \section*{Competing Interests statement} The Authors declare no Competing Financial or Non- Financial Interests.
\subsection*{Organization} In Section~\ref{sec:griddiagrams} we recall the definition and some properties of twisted toroidal grid diagrams. In Section~\ref{sec:gridhomology}, we recall the definition of grid homology introduced in \cite{Baker_2008} for links in lens spaces. We then take a detour in Section~\ref{sec:gradings} to introduce the gradings on grid homology, and provide some combinatorial proofs of their properties. In Section~\ref{sec:invariance} we prove directly that the grid homology of a lens space link is well-defined, using some results about the combinatorics of twisted toroidal grid diagrams. Section~\ref{sec:signassignments} introduces the definition of sign assignments of \cite{celoria2015note}, which is used in Section~\ref{sec:integralinvariance} to define the grid homology of links in lens spaces with integral coefficients, and prove that the quasi-isomorphism type of this is well-defined. \subsection*{Acknowledgements} The author thanks Ina Petkova for suggesting the project, and both Ina Petkova and C.-M. Michael Wong for comments on the draft of this paper. \subsection{Commutations}\label{sec:commutation} \input{Sections/Invariance/commutation} \subsection{Switches}\label{sec:switches} \input{Sections/Invariance/switches} \subsection{Stabilizations and destabilizations}\label{sec:stabilization} \input{Sections/Invariance/stabilization} \subsection{Proof of invariance} We now have the ingredients we need to prove Theorem~\ref{thm:maintheoremz2}. \begin{proof}[Proof of Theorem~\ref{thm:maintheoremz2}] By Theorem~\ref{thm:cromwell}, if $\mathbb{G}$ and $\mathbb{G}'$ represent the same link, they are connected by a sequence of commutations and (de)stabilizations. Therefore the result follows directly from Propositions~\ref{prop:commutation} and ~\ref{prop:stabilization}. \end{proof} \subsection{Homotopy} The homotopy between $\Phi_{\gamma\beta}\circ\Phi_{\beta\gamma}$ and the identity will be provided by a map counting hexagons. Define $\HH_{\beta\gamma\beta}:C^-(\mathbb{G})\to C^-(\mathbb{G})$ by \[\HH_{\beta\gamma\beta}(\gen{x})=\sum_{\gen{y}\in\mathcal{G}}\sum_{\substack{h\in\Hex^{\circ}_{\beta\gamma\beta}(\gen{x},\gen{y})\\\Int(h)\cap\mathbb X=\emptyset}}V_0^{n_{O_0}(h)}\cdots V_{n-1}^{n_{O_{n-1}}(h)}\gen{y}.\] \begin{lem}\label{lem:hbgb} The map $\HH_{\beta\gamma\beta}$ is a homotopy between $(\Phi_{\gamma\beta}\circ\Phi_{\beta\gamma})$ and the identity $\mathbb{I}$. \end{lem} \begin{proof} We again must look at decompositions of domains. Repurposing the notation of Proposition \ref{prop:d2=0}, let $\Poly^{\circ}(\gen{x},\gen{z})$ denote the set of empty domains from $\gen{x}\in\mathcal{G}$ to $\gen{z}\in\mathcal{G}$ which can be written as a juxtaposition of a parallelogram and a hexagon, a hexagon and a parallelogram, or two pentagons. For $\phi\in\Poly^{\circ}(\gen{x},\gen{z})$, let $N(\phi)$ denote the number of decompositions of $\phi$ in one of the above three ways. In this notation, we have \begin{equation}\label{eq:hexhomotopy} (\Phi_{\gamma\beta}\circ\Phi_{\beta\gamma}+\partial_{\XX}^-\circ \HH_{\beta\gamma\beta}+\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-)(\gen{x})=\sum_{\gen{z}\in\mathcal{G}}\sum_{\substack{\phi\in\Poly^{\circ}(\gen{x},\gen{z})\\\Int(\phi)\cap\mathbb X=\emptyset}}N(\phi)V_0^{n_{O_0}(\phi)}\cdots V_{n-1}^{n_{O_{n-1}}(\phi)}\gen{z}. \end{equation} Our goal is to show that the left hand side of (\ref{eq:hexhomotopy}) equals the identity on $C^-(\mathbb{G})$. We will do this by proving for most domains $\phi\in\Poly^{\circ}(\gen{x},\gen{z})$, we have $N(\phi)=2$, so they are not counted in characteristic two. The only domains for which this is not true are those in $\Poly^{\circ}(\gen{x},\gen{x})$, which have $N(\phi)=1$. Again, let $m$ be the number of components where $\gen{x}$ and $\gen{z}$ disagree, and observe $m\le 4$. Suppose $m=4$. Note that $\phi$ does not have a decomposition as the juxtaposition of two pentagons. Supposing it did, the intermediate generator would occupy $\gamma$. For the terminal generator to be in $\mathcal{G}$, the second pentagon would need to share a corner with a first at this component on $\gamma$, so the pentagons would share at least one corner and some portion of an edge, precluding the case $m=4$. This means that, in analogy to the proofs of Lemma~\ref{lem:phibetagamma} and of Proposition~\ref{prop:d2=0}, $\phi$ has exactly two decompositions: one as the juxtaposition of a parallelogram and a hexagon, and one as the juxtaposition of a hexagon and a parallelogram. The parallelograms have the same support as each other, as do the hexagons. The common supports of the parallelograms and the hexagons are either disjoint, or have overlapping interiors but share no corners or edges (except for transverse edge intersections). See Figure~\ref{fig:dsquared4} or Figure~\ref{fig:pentagon4} for the analogous cases. Suppose $m=3$. These cases are very similar to those analyzed in Lemma~\ref{lem:phibetagamma}, and also to those in the classical case analyzed in \cite{gridhomology} Lemma 5.1.6. For most of these domains, there is a unique corner around which the domain $\phi$ has multiplicity one in three regions and zero in the fourth. Cutting into $\phi$ along each of the two curves this corner occupies yields components of each of the intermediate generators on $\partial(\phi)$. These domains can be seen in Figures~\ref{fig:hex3pentagonscomponent}, \ref{fig:hex3alternate}, and \ref{fig:hex3same}, organized by which terms in (\ref{eq:hexhomotopy}) they contribute to. \begin{figure}[h] \centering \includegraphics[height=2.5cm]{EPSFigures/Commutation/Hexagons/hexagon3pentagonandothercomponent.eps} \caption{Certain domains counted in the proof of Lemma~\ref{lem:hbgb} when $m=3$. Each domain has one decomposition which contributes to $\Phi_{\gamma\beta}\circ\Phi_{\beta\gamma}$. The alternate decomposition for the first and third domain contributes to $\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-$, and the alternate decomposition for the second and fourth domain contributes to $\partial_{\XX}^-\circ\HH_{\beta\gamma\beta}$.} \label{fig:hex3pentagonscomponent} \end{figure} \begin{figure}[h] \centering \includegraphics[height=2.5cm]{EPSFigures/Commutation/Hexagons/hexagon3differenthexagon.eps} \caption{Certain domains counted in the proof of Lemma~\ref{lem:hbgb} when $m=3$. Each domain has one decomposition which contributes to $\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-$ and one decomposition which contributes to $\partial_{\XX}^-\circ\HH_{\beta\gamma\beta}$.} \label{fig:hex3alternate} \end{figure} \begin{figure}[h] \centering \includegraphics[height=2.5cm]{EPSFigures/Commutation/Hexagons/hexagon3same.eps} \caption{Certain domains counted in the proof of Lemma~\ref{lem:hbgb} when $m=3$. Both decompositions of the first domain contribute to $\partial_{\XX}^-\circ\HH_{\beta\gamma\beta}$; both decompositions of the second domain contribute to $\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-$.} \label{fig:hex3same} \end{figure} For two domains, there are three such corners: the two intersection points of $\beta$ and $\gamma$, as well as a component of $\gen{x}$ or $\gen{z}$. From the intersection point of $\beta$ and $\gamma$ which is in every pentagon counted by $\Phi_{\beta\gamma}$, cutting along each of $\beta$ and $\gamma$ yields a component of each of the intermediate generators. These domains can be seen in Figure~\ref{fig:hex3pentagonsbetagamma}. \begin{figure}[h] \centering \includegraphics[height=2.5cm]{EPSFigures/Commutation/Hexagons/hexagon3pentagonandotherbetagamma.eps} \caption{Certain domains counted in the proof of Lemma~\ref{lem:hbgb} when $m=3$. Each domain has one decomposition which contributes to $\Phi_{\gamma\beta}\circ\Phi_{\beta\gamma}$. The alternate decomposition for the first domain contributes to $\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-$, and the alternate decomposition for the second domain contributes to $\partial_{\XX}^-\circ\HH_{\beta\gamma\beta}$.} \label{fig:hex3pentagonsbetagamma} \end{figure} Suppose $m=2$. These cases are very similar to those analyzed in Lemma~\ref{lem:phibetagamma}. Each domain has two points around which the domain has multiplicity one in three of the four regions, and multiplicity zero in the fourth. From these two points cutting into $\phi$ along each of the two curves each of these two corners occupy yield components of each of the intermediate generators on $\partial(\phi)$. These domains can be seen with their alternate decompositions in Figures~\ref{fig:hex2pp},~\ref{fig:hex2alternating}, and ~\ref{fig:hex2same}, organized by which terms in (\ref{eqn:phibetagammachainmap}) they contribute to. \begin{figure}[h] \centering \includegraphics[height=2.5cm]{EPSFigures/Commutation/Hexagons/hexagon2pentagonandother.eps} \caption{Certain domains counted in the proof of Lemma~\ref{lem:hbgb} when $m=2$. Each domain has one decomposition which contributes to $\Phi_{\gamma\beta}\circ\Phi_{\beta\gamma}$. The alternate decomposition for the first two domains contributes to $\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-$, and the alternate decomposition for the second domain contributes to $\partial_{\XX}^-\circ\HH_{\beta\gamma\beta}$.} \label{fig:hex2pp} \end{figure} \begin{figure}[h] \centering \includegraphics[height=2.5cm]{EPSFigures/Commutation/Hexagons/hexagon2differenthexagon.eps} \caption{Certain domains counted in the proof of Lemma~\ref{lem:hbgb} when $m=2$. Each domain has one decomposition which contributes $\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-$ and one decomposition which contributes to $\partial_{\XX}^-\circ\HH_{\beta\gamma\beta}$.} \label{fig:hex2alternating} \end{figure} \begin{figure}[h] \centering \includegraphics[height=2.5cm]{EPSFigures/Commutation/Hexagons/hexagon2same.eps} \caption{Certain domains counted in the proof of Lemma~\ref{lem:hbgb} when $m=2$. The two decompositions of the first two domains each contribute to $\partial_{\XX}^-\circ\HH_{\beta\gamma\beta}$, and the two decompositions of the third and fourth domains each contribute to $\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-$.} \label{fig:hex2same} \end{figure} As is the case for Proposition~\ref{prop:d2=0}, there are no domains with $m=1$. This is true by Remarks \ref{rem:parallelogramtransposition} and \ref{rem:pentagontransposition}, and the analogue for hexagons. Suppose $\gen{x}=\gen{z}$. There is exactly one domain in $\Poly^{\circ}(\gen{x},\gen{x})$, and the type of its decomposition is given by the relative location of $\gen{x}$, $\beta$, and $\gamma$. The support of each such domain is one of the annuli of $T^2-\alphas-\betas-\betas'$ which borders both $\beta$ and $\gamma$. It cannot also contain any other annulus, as then it would contain a marking $X\in\mathbb X$ and a component of $\gen{x}$. Therefore this domain is counted with coefficient one in (\ref{eq:hexhomotopy}). \begin{figure}[h] \centering \includegraphics[height=3cm]{EPSFigures/Commutation/Hexagons/hexagon0.eps} \caption{Domains counted in the proof of Lemma~\ref{lem:hbgb} when $m=0$. The first and second domains each contribute to $\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-$. The third and fourth domains each contribute to $\partial_{\XX}^-\circ\HH_{\beta\gamma\beta}$. The fifth and sixth domains each contribute to $\Phi_{\gamma\beta}\circ\Phi_{\beta\gamma}$. } \label{fig:hex0} \end{figure} As a result, any domain connecting $\gen{x}$ to $\gen{z}$ for $2\le m\le 4$ has exactly two decompositions, so cancels in Equation~\ref{eq:hexhomotopy}. Furthermore, there are no domains connecting $\gen{x}$ to $\gen{z}$ for $m=1$, and there is a unique domain connecting $\gen{x}$ to $\gen{x}$, counted with coefficient 1, so we have $\Phi_{\gamma\beta}\circ\Phi_{\beta\gamma}+\partial_{\XX}^-\circ \HH_{\beta\gamma\beta}+\HH_{\beta\gamma\beta}\circ\partial_{\XX}^-$ is the identity map. \end{proof} \begin{proof}[Proof of Proposition~\ref{prop:commutation}] Suppose $\mathbb{G}$ and $\mathbb{G}'$ differ by a commutation of columns. Then Lemma~\ref{lem:phibetagamma} says $\Phi_{\beta\gamma}$ as defined above is a chain map. Lemma~\ref{lem:hbgb} says that $\Phi_{\beta\gamma}$ has as homotopy inverse $\Phi_{\gamma\beta}$, via the homotopy $\HH_{\beta\gamma\beta}$. That $\Phi_{\beta\gamma}$ is trigraded is the content of Lemma~\ref{lem:pentagongrading}. Therefore $C^-(\mathbb{G})$ and $C^-(\mathbb{G}')$ are homotopy equivalent as chain complexes over $\Z/2\Z[V_0,\ldots,V_{n-1}]$, and so by Lemma~\ref{lem:componentvariablesarehomotopic}, as chain complexes over $\Z/2\Z[U_1,\ldots,U_\ell]$. If instead, $\mathbb{G}$ and $\mathbb{G}'$ differ by a commutation of rows, analogous proofs to the above with the diagrams rotated $90^{\circ}$ provide the homotopy equivalence. \end{proof} \subsection{Preliminaries} Let $L$ be a link with $\ell$ components in $L(p,q)$, and let $\mathbb{G}$ be a grid diagram of size $n$ for $L$. Define $\mathcal{G}$ to be the set of unordered $n$-tuples of intersection points in $\alphas\cap\betas$ with exactly one point on each curve in $\alphas$ and exactly one point on each curve in $\betas$. Let $\gen{x}\in\mathcal{G}$. Given a fundamental domain for $T^2$, and thus an ordering of $\alphas$ and $\betas$, $\gen{x}$ corresponds to a bijection between $\alphas$ and $\betas$, which can be thought of as an element $\sigma_{\gen{x}}\in S_n$; namely, each component of $\gen{x}$ is in $\alpha_i\cap \beta_{\sigma_{\gen{x}}(i)}$ for some $0\le i<n$. Denote by $x_i$ the component of $\gen{x}$ in the intersection of $\alpha_i$ and $\beta_{\sigma_{\gen{x}}(i)}$. The choice of a fundamental domain also gives an ordering of the $p$ points of $\alpha_i\cap\beta_{\sigma_{\gen{x}}(i)}$ from left-to-right for each $0\le i <n$. To each component $x_i$ of $\gen{x}$ we can assign an element of $\Z/p\Z$ recording on which intersection point of $\alpha_i$ and $\beta_{\sigma_{\gen{x}}(i)}$ the component lies. Thus, a choice of a fundamental domain for $T^2$ gives us a bijection between $\mathcal{G}$ and $S_n\times(\Z/p\Z)^n$. For a generator $\gen{x}\in\mathcal{G}$ and a choice of a fundamental domain, we can then write $\gen{x}$ as a pair $(\sigma_{\gen{x}},(a^{\gen{x}}_0,\ldots,a^{\gen{x}}_{n-1}))$. We call the first component the \emph{permutation associated to $\gen{x}$}, and the second component the \emph{$p$-coordinates of $\gen{x}$}. As an example, the generator given by darkened circles in Figure~\ref{fig:fundomain} has permutation $\sigma_{\gen{x}}= \bigl(\begin{smallmatrix} 0 & 1 & 2 \\ 1 & 2 & 0 \end{smallmatrix}\bigr)$, and $p$-coordinates $(4,0,3)$. \begin{defn} Fix $\gen{x},\gen{y}\in\mathcal{G}$. A \emph{parallelogram $r$ from $\gen{x}$ to $\gen{y}$} is a disk embedded in $T^2$ along with the data of the generators $\gen{x}$ and $\gen{y}$ such that \begin{itemize} \item the boundary of $r$ (which is oriented) lies on $\alphas\cup\betas$, \item $\mid\gen{x}\setminus\gen{y}\mid=2=\mid\gen{y}\setminus\gen{x}\mid$, and \item $\partial(\partial_{\alpha} (r))=\gen{y}-\gen{x}$ and $\partial(\partial_{\beta}(r))=\gen{x}-\gen{y}$, where $\partial_{\alpha}(r)=\partial(r)\cap\alphas$ and $\partial_{\beta}(r)=\partial(r)\cap\betas$. \end{itemize} \end{defn} There is also the more general idea of a domain, a generalization of the above concept. \begin{defn}[{\cite[Definition 4.6.4]{gridhomology}}]\label{def:domain1} Fix $\gen{x},\gen{y}\in\mathcal{G}$. A \emph{domain $\phi$ from $\gen{x}$ to $\gen{y}$} is a formal linear combination of the closure of regions in $\mathbb{G}\setminus(\alphas\cup\betas)$ such that $\partial(\partial_{\alpha}\phi)=\gen{y}-\gen{x}$ and $\partial(\partial_{\beta}\phi)=\gen{x}-\gen{y}$, along with the data of the generators $\gen{x}$ and $\gen{y}$. We will call $\gen{x}$ the \emph{initial generator} for the domain, and $\gen{y}$ the \emph{terminal generator}. The \emph{support} of a domain $\phi$ from $\gen{x}$ to $\gen{y}$ is the underlying linear combination. Thus, two domains can have the same support without being equal. \end{defn} Given a domain $\phi_1$ from $\gen{x}$ to $\gen{y}$ and a domain $\phi_2$ from $\gen{y}$ to $\gen{z}$, we can form the \emph{juxtaposition} $\phi_1*\phi_2$, which is a domain as follows. The underlying formal linear combination of $\phi_1*\phi_2$ is the sum of those underlying $\phi_1$ and $\phi_2$, and it has as initial generator $\gen{x}$ and terminal generator $\gen{z}$. In general, the domains we consider will be juxtapositions of two specified types of domains, such as parallelograms or other polygons we will define later. Let $\PG(\gen{x},\gen{y})$ be the space of parallelograms from $\gen{x}$ to $\gen{y}$. Note that $\PG(\gen{x},\gen{y})$ is the empty set unless $\gen{x}$ and $\gen{y}$ agree at $n-2$ points. Call a parallelogram \emph{empty} if $\Int(r)\cap \gen{x}=\emptyset=\Int(r)\cap\gen{y}$. Let $\PG^{\circ}(\gen{x},\gen{y})$ be the space of empty parallelograms from $\gen{x}$ to $\gen{y}$. Further, let $\Int(\phi)$ denote the interior of the support of $\phi$. Finally, let $\PG(\mathbb{G}):=\bigcup_{\gen{x},\gen{y}\in\mathcal{G}}\PG(\gen{x},\gen{y})$, and $\PG^{\circ}(\mathbb{G}):=\bigcup_{\gen{x},\gen{y}\in\mathcal{G}}\PG^{\circ}(\gen{x},\gen{y})$. \begin{remark} \label{rem:parallelogramtransposition} Note that if an embedded parallelogram $r$ connects $\gen{x}$ to $\gen{y}$, then $\sigma_{\gen{y}}=\tau_{i,j}\sigma_{\gen{x}}$, where $\tau_{i,j}$ is the transposition $(i\; j)\in S_n$. Furthermore, we have that $a^{\gen{x}}_s=a^{\gen{y}}_s$ for all $s\in\{0,\ldots,n-1\}\setminus\{i, j\}$, and $a^{\gen{x}}_i-a^{\gen{y}}_i=a^{\gen{y}}_j-a^{\gen{x}}_j=k$ for some $|k|<n$. \end{remark} For an embedded parallelogram $r\in\PG^{\circ}(\gen{x},\gen{y})$, denote the above transposition by $\tau_r$. An example of a parallelogram $r$ can be seen in Figure~\ref{fig:fundomain}, connecting the generator given by darkened circles to the generator given by empty circles. In this case, we see $\tau_r=(0\;1)$. \subsection{Aside on twisting}\label{sec:twisting} Before we provide the definition of grid homology, we take a minute to discuss the impact of the twisting of the grid diagrams on the domains we will be discussing. In the case of grid diagrams for $S^3$, it is not possible for an empty rectangle to intersect a curve $\alpha\in\alphas$ multiple times; the rectangle either intersects $\alpha$ in a single segment or not at all. As a result, we can always choose a fundamental domain such that any rectangle embedded in $T^2$ can be embedded in the fundamental domain considered as a subset of $\numset{R}^2$. This is no longer true for twisted toroidal grid diagrams for links in lens spaces: there are parallelograms which intersect a given curve $\alpha\in\alphas$ in multiple segments. There is no choice of fundamental domain in which they will be an embedded disk, considered as a subset of $\numset{R}^2$. We refer to such parallelograms as \emph{wrapping} around the domain, in reference to the fact that their support on any fundamental domain, considered as a subset of $\numset{R}^2$, is disconnected. Figure~\ref{fig:wrappingexplained} provides some examples of parallelograms on the twisted toroidal grid diagrams. We see that there are many options for the parallelogram extending vertically: it can wrap any number of times around the diagram (less than $p$). Later on, when analyzing the combinatorics of decompositions of domains, we will often not display this potential complexity. We will draw domains as embedded, wrapped, or with dashed lines to acknowledge potential wrapping. Regardless of how the domain is drawn, it will stand in for all domains with the same combinatorics governing its decompositions, which will be independent of the number of times the domain wraps around the diagram. \begin{figure}[ht] \centering \includegraphics[height=4cm]{EPSFigures/Miscellaneous/possibletwisting.eps} \caption{Examples of parallelograms on fundamental domains. The first and second examples wrap around the diagram one and two times respectively. The third example does not wrap around the diagram, as there are many examples of fundamental domains on which the parallelogram would be embedded (as a subset of $\numset{R}^2$). } \label{fig:wrappingexplained} \end{figure} \subsection{Definition of grid homology} Let $C^-(\mathbb{G})$ be the free $\numset{F}[V_0,\ldots,V_{n-1}]$ module generated by $\mathcal{G}$. Define an endomorphism of $C^-(\mathbb{G})$ on generators $\gen{x}\in\mathcal{G}$ by:$$ \partial_{\XX}^-(\gen{x})=\sum_{y\in\mathcal{G}}\sum_{\substack{r\in\PG^{\circ}(\gen{x},\gen{y})\\r\cap\mathbb X=\emptyset}}(\prod_{i=0}^{n-1}V_i^{n_{O_i}(r)})\gen{y}, $$ where $n_{O_i}(r)=\#(O_i\cap\Int(r))$. Extend this map to $C^-(\mathbb{G})$ linearly; note then that $\partial_{\XX}^-(V_i\gen{x})=V_i\partial_{\XX}^-(\gen{x})$. \begin{prop}[{\cite[Proposition 2.2]{Baker_2008}}]\label{prop:cminusiscfk} $(C^-(\mathbb{G}),\partial_{\XX}^-)$ is isomorphic to a chain complex which computes the knot Floer homology $(CF^-(L(p,q),K),\partial_{\XX}^-)$. \end{prop} \begin{cor} The endomorphism $\partial_{\XX}^-$ is a differential on $C^-(\mathbb{G})$. \end{cor} The above corollary was proved combinatorially in \cite{celoria2015note}. We recreate that proof here in detail to lay out cases and notation which will be useful in later sections. \begin{prop}[{\cite[Proposition 2.13]{celoria2015note}}]\label{prop:d2=0} The map $\partial_{\XX}^-$ is a differential on $C^-(\mathbb{G})$, i.e.\ $(\partial_{\XX}^-)^2=0$. \end{prop} \begin{remark}\label{rem:omultiplicity} Note that if a domain $\phi$ from $\gen{x}$ to $\gen{z}$ has a decomposition as $\phi=r_1*r_2$, for $r_1\in\PG(\gen{x},\gen{y})$ and $r_2\in\PG(\gen{y},\gen{z})$, we have that $n_{O_i}(\phi)=n_{O_i}(r_1)+n_{O_i}(r_2)$ for any $0\le i <n$. \end{remark} \begin{proof}[Proof of Proposition~\ref{prop:d2=0}] This is the first of a number of proofs where we analyze the composition of two maps by analyzing domains which can be written as the juxtaposition of two specified polygons. Let $\Poly^{\circ}(\gen{x},\gen{z})$ denote the set of domains from $\gen{x}$ to $\gen{z}$ which can be written as the juxtaposition of two empty parallelograms. For $\phi\in\Poly^{\circ}(\gen{x},\gen{z})$, let $N(\phi)$ denote the number of decompositions of $\phi$ as the juxtaposition of two empty parallelograms. We see that $$(\partial_{\XX}^-\circ\partial_{\XX}^-)(\gen{x})=\sum_{z\in\mathcal{G}}\sum_{\phi\in\Poly^{\circ}(\gen{x},\gen{z})}N(\phi)(\prod_{i=0}^{n-1}V_i^{n_{O_i}(\phi)})\gen{y}. $$ Let $\gen{x},\gen{z}\in\mathcal{G}$ and let $\phi\in\Poly^{\circ}(\gen{x},\gen{z})$, so $\phi=r_1*r_2$ for some $r_1\in\PG^{\circ}(\gen{x},\mathbf{t})$, $r_2\in\PG^{\circ}(\mathbf{t},\gen{z})$, $\mathbf{t}\in\mathcal{G}$. Let $m$ be the number of components where $\gen{x}$ and $\gen{z}$ differ, and observe that $m\le 4$. For $2\le m\le 4$ we will produce the unique alternate decomposition of $\phi$ as the juxtaposition of two empty parallelograms, proving $N(\phi)=2$. Suppose $m=4$. There are two possible cases: either the supports of $r_1$ and $r_2$ are disjoint, or have overlapping interiors but share no corners or edges (except for transverse edge intersections). These two cases are shown in Figure~\ref{fig:dsquared4} (portrayed in schematic in the straight model). In either case, we produce an alternate decomposition of $\phi$ as follows. Let $r_1'$ have the same support as $r_2$, with initial generator $\gen{x}$. Let the terminal generator of $r_1'$, denoted $\mathbf{w}$, agree with $\gen{x}$ away from the support of $r_1'$ but occupy the complementary two corners of the support of $r_1'$ as $\gen{x}$; so $r_1'\in\PG^{\circ}(\gen{x},\mathbf{w})$. Let $r_2'$ have the same support as $r_1$, but with initial generator $\mathbf{w}$ and terminal generator $\gen{z}$. Thus, $\phi=r_1'*r_2'$ is the unique alternate decomposition of $\phi$, implying $N(\phi)=2$. \begin{figure}[ht] \centering \includegraphics[height=2.5cm]{EPSFigures/DSquared/dsquared4.eps} \caption{Domains counted in the proof of Proposition~\ref{prop:d2=0} when the initial and terminal generators disagree at four components. Throughout this paper, we use the convention that the initial generator of the domain $\phi$ is given by darkened circles, the terminal generator by empty circles, and the \emph{intermediate generators}, which are the initial or terminal generators of any domain included in a decomposition of $\phi$ (except for the initial and terminal generators of $\phi$ itself), are given by pink squares or green triangles.} \label{fig:dsquared4} \end{figure} Suppose $m=3$. We will construct the unique alternate decomposition of $\phi$, but this will require introducing some notation. Figure~\ref{fig:dsquared3detail} shows the below notation, which details one of the four combinatorially distinct cases of Figure~\ref{fig:dsquared3}. The intermediate generator $\mathbf{t}$ must have one component on $\partial(\phi)$ which does not coincide with $\gen{x}$ or $\gen{z}$. Suppose this component is on an arc in $\partial_{\alpha}(\phi)$, and denote the component by $d_{\alpha}$. The arc of $\partial_{\alpha}(\phi)$ which $d_{\alpha}$ occupies terminates in one component of $\gen{x}$ and one component of $\gen{z}$; denote these by $x_a$ and $z_b$. Denote the curve in $\betas$ on which $d_{\alpha}$ lies on by $\beta_j$. Traveling from $d_{\alpha}$ along $\beta_j$ into $\phi$, we reach a corner of $\phi$ which we will denote $d$. Denote the curve in $\alphas$ on which $d$ lies by $\alpha_i$. The point $d$ is characterized by the domain $\phi$ having multiplicity one in three of the four regions surrounding it, and multiplicity zero in the fourth. If we continue following $\beta_j$ along $\partial_{\beta}(\phi)$ we reach another corner of $\phi$, a component of $\gen{x}$ or $\gen{z}$. Call this component $w_1$. If instead at $d$ we travel along $\alpha_i$ into $\phi$, we reach a point we will denote $d_{\beta}$ on $\partial_{\beta}(\phi)$. This point is on the same arc of $\partial_{\beta}(\phi)$ as either $x_a$ or $z_b$; let $w_2$ be whichever of those two points does not lie on the same arc of $\partial_{\beta}(\phi)$ as $d_{\beta}$. We now let $\mathbf{w}$ agree with $\mathbf{t}$ away from $\phi$, and contain the components $w_1$, $w_2$, and $d_{\beta}$. Then one summand of the support of $\phi$ is the support of an embedded parallelogram $r_3\in\PG^{\circ}(\gen{x},\mathbf{w})$, and the complement of that summand is the support of an embedded parallelogram $r_4\in\PG^{\circ}(\mathbf{w},\gen{z})$, providing the unique alternate decomposition of $\phi$ as $\phi=r_3*r_4$. If, instead, the component of $\mathbf{t}$ which is distinct from $\gen{x}$ and $\gen{z}$ lies on $\partial_{\beta}(\phi)$, then interchanging the role of $\alpha$ and $\beta$ in the above proof will generate the unique alternate decomposition. Either way, $N(\phi)=2$. \begin{figure}[ht] \centering \includegraphics[height=2.5cm]{EPSFigures/DSquared/dsquared3.eps} \caption{Domains counted in the proof of Proposition~\ref{prop:d2=0} when the initial and terminal generators disagree at three components. See Remark~\ref{rem:wrappingdiagrams} for a discussion of the schematics used here with respect to wrapping. } \label{fig:dsquared3} \end{figure} \begin{figure}[ht] \begin{center} \begin{tikzpicture} \node at (0,0) {\includegraphics[height=2.5cm]{EPSFigures/DSquared/dsquared3detail.eps}}; \node at (.8,1.45) {$d_{\alpha}$}; \node at (1.53,1.4) {$x_a$}; \node at (-1.5,1.42) {$z_b=w_2$}; \node at (.58,.78) {$\beta_j$}; \node at (.58,.18) {$d$}; \node at (1.17,.55) {$\alpha_i$}; \node at (.8,-1.45) {$w_1$}; \node at (1.9,.37) {$d_{\beta}$}; \end{tikzpicture} \end{center} \caption{An example of the notation in constructing an alternate decomposition for a domain where the initial and terminal generators disagree in three components} \label{fig:dsquared3detail} \end{figure} \begin{remark}\label{rem:wrappingdiagrams} In light of Section~\ref{sec:twisting}, let us clarify what the schematics in the figures throughout this paper mean. Each domain, regardless of whether it is displayed as embedded, wrapping, or with dashed lines, stands in for all such domains with the same combinatorics of alternate decompositions. The wrapping does not impact the combinatorics, so this is a reasonable simplification. This wrapping can be disjoint from the rest of the domain, or overlap on the interior with transverse edge intersections. For example, in Figure~\ref{fig:dsquared3}, we display the first domain as embedded, the second domain as wrapping once, and the third and fourth with dashed lines. In practice, any of those domains could wrap any number of times (fewer than $p$) without impacting the combinatorics of the decompositions. \end{remark} Suppose $m=2$. Recall that in grid diagrams for $S^3$, there are no such domains which admit a decomposition as the juxtaposition of two empty rectangles. Remark~\ref{rem:parallelogramtransposition} makes clear, however, that for twisted toroidal grid diagrams, this is possible, as generators are not identified with elements of $S_n$, but with elements of $S_n\times(\Z/p\Z)^n$. In either setting, we have that $\sigma_{\gen{x}}=\tau_{r_1}\tau_{r_2}\sigma_{\gen{z}}$. The only way for $\sigma_{\gen{x}}$ and $\sigma_{\gen{z}}$ to differ by one or fewer transpositions, then, is for $\tau_{r_1}=\tau_{r_2}$, so $\sigma_{\gen{x}}=\sigma_{\gen{z}}$. The parallelograms, however, can shift the $p$-coordinates by different amounts, so in the end, $\sigma_{\gen{x}}=\sigma_{\gen{z}}$, but they differ in two $p$-coordinates. See Figure \ref{fig:dsquared2} for the possible domains. Again we will construct the unique alternate decomposition of $\phi$. The intermediate generator $\mathbf{t}$ must have two components on $\partial(\phi)$ which do not coincide with $\gen{x}$ or $\gen{z}$; suppose they are on arcs in $\partial_{\alpha}(\phi)$, and denote these components by $d_{\alpha}$ and $d_{\alpha}'$. Following the curves in $\betas$ on which these components lie into $\phi$ we reach two corners of $\phi$ which we denote $d$ and $d'$. These points are the two points around which the domain has multiplicity one in three regions and multiplicity zero in the fourth. From such points, traveling into $\phi$ on the curves in $\alphas$ which $d$ and $d'$ occupy, we reach two points on $\partial_{\beta}(\phi)$ which we denote $d_{\beta}$ and $d_{\beta}'$. Let $\mathbf{w}$ agree with $\mathbf{t}$ away from $\phi$, and include $d_{\beta}$ and $d_{\beta}'$. Then one summand of the support of $\phi$ is the support of an embedded parallelogram $r_3\in\PG^{\circ}(\gen{x},\mathbf{w})$ and the complement of that summand is the support of an embedded parallelogram $r_4\in\PG^{\circ}(\mathbf{w},\gen{z})$, providing the unique alternate decomposition of $\phi$ as $\phi=r_3*r_4$. If, instead, the components of $\mathbf{t}$ which are distinct from $\gen{x}$ and $\gen{z}$ lie on $\partial_{\beta}(\phi)$, then interchanging the role of $\alpha$ and $\beta$ in the above proof will generate the unique alternate decomposition. Either way, $N(\phi)=2$. \begin{figure}[ht] \centering \includegraphics[width=12cm]{EPSFigures/DSquared/dsquared2.eps} \caption{Domains counted in the proof of Proposition~\ref{prop:d2=0} when the initial and terminal generators disagree at two components.} \label{fig:dsquared2} \end{figure} By virtue of Remark \ref{rem:parallelogramtransposition}, there are no domains with $m=1$. Finally, suppose $\gen{x}=\gen{z}$. The support of $\phi$ must be an annulus. It must be width or height one, by virtue of $\phi$ being empty. The conditions on a grid diagram, however, ensure there is at least one $X\in\mathbb X$ in each row and column, so there are no such annuli counted. Thus in each case, we have $N(\phi)\equiv 0\pmod{2}$, so $(\partial_{\XX}^-)^2=0$. \end{proof} While $C^-(\mathbb{G})$ is a chain complex over $\Z/2\Z[V_0,\ldots,V_{n-1}]$, the link invariant is the quasi-isomorphism type of $C^-(\mathbb{G})$ as a chain complex over $\Z/2\Z[U_1,\ldots,U_\ell]$, where each variable corresponds to the action of a distinct component of the link. To see this is well-defined, we need the following lemma. \begin{lem}[cf. {\cite[Lemma 2.11]{Manolescu_2007}}] \label{lem:componentvariablesarehomotopic} Suppose $O_i$ and $O_j$ are markings corresponding to the same component of $L$. Then multiplication by $V_i$ is chain homotopic to multiplication by $V_j$. \end{lem} \begin{proof} Without loss of generality, suppose $O_i$ is in the same row as $X_a$, which is in the same column as $O_j$. Define $\Phi_{X_a}:C^-(\mathbb{G})\to C^-(\mathbb{G})$ on a generator $\gen{x}\in\mathcal{G}$ by \[ \Phi_{X_a}(\gen{x})=\sum_{\gen{y}\in\mathcal{G}}\sum_{\substack{r\in\PG^{\circ}(\gen{x},\gen{y})\\\Int(r)\cap\mathbb X=X_a}}V_o^{n_{O_0}(r)}\cdots V_{n-1}^{n_{O_{n-1}}(r)}\gen{y}. \] Extend this linearly to $C^-(\mathbb{G})$. We will show that this is the homotopy between $V_i$ and $V_j$. Our goal is to show that $\partial_{\XX}^-\circ\Phi_{X_a}+\Phi_{X_a}\circ\partial_{\XX}^- = V_i-V_j$. The left hand side counts domains which are the juxtapositions of two embedded parallelograms, one of which contains $X_a$. Any such domain has an alternate decomposition given in the proof of Proposition~\ref{prop:d2=0}, regardless of the placement of $X_a$. In that proof we do not need to consider the domains which connect $\gen{x}\in\mathcal{G}$ to $\gen{z}=\gen{x}\in\mathcal{G}$, because they consist of a single row or a single column, either of which contains some marking $X\in\mathbb X$. Here, however, domains are allowed to cover $X_a\in\mathbb X$, so the left hand side above counts the annulus of width one covering $X_a$ and the annulus of height one covering $X_a$. Each of these connects $\gen{x}$ to $\gen{x}$; the row contributes a coefficient of $V_i$ and the column contributes a coefficient of $V_j$, proving the above equality. If $O_i$ and $O_j$ are not connected by a single marking $X_a$, then a sequence of the above homotopies, which can be found since $O_i$ and $O_j$ correspond to the same component, proves the actions of $V_i$ and $V_j$ are homotopic. \end{proof} \subsection{\texorpdfstring{$\spin^{c}$ grading}{spinc grading}} \input{Sections/Gradings/spinc} \subsection{Maslov grading} \input{Sections/Gradings/maslov} \begin{figure}[ht] \centering \includegraphics[height=6cm]{EPSFigures/Miscellaneous/gradingparallelograms.eps} \caption{An example of an embedded parallelogram $r$ connecting a generator $\gen{x}\in\mathcal{G}$ (represented by solid dots) to a generator $\gen{y}\in\mathcal{G}$ (represented by empty dots) in the straight model on the left. On the right, the lift of the left to the universal cover. } \label{fig:differentialgradings} \end{figure} \subsection{Alexander grading} \input{Sections/Gradings/alexander} \subsection{Embedded parallelograms} The above gradings behave well with respect to embedded parallelograms. This was proved in \cite{celoria2015note}, but we recreate the proof here slightly more generally, as we will adapt it to study embedded pentagons later. \begin{prop}[cf.~{\cite[Proposition 2.13]{celoria2015note}}]\label{prop:parallelogramgradings} Suppose $\gen{x},\gen{y}\in\mathcal{G}$ are connected by an embedded parallelogram $r\in \PG^{\circ}(\gen{x},\gen{y})$. Then:\begin{enumerate} \item\label{prop:parallelogramgradingsspinc} $\mathbf{S}(\gen{x})=\mathbf{S}(\gen{y})$ \item\label{prop:parallelogramgradingsmaslov} $\mathbf{M}(\gen{x})=\mathbf{M}(\gen{y})+1-2\sum_{i=0}^{n-1}n_{O_i}(r)$ \item\label{prop:parallelogramgradingsalexander} $\mathbf{A}(\gen{x})=\mathbf{A}(\gen{y})+\sum_{i=0}^{n-1}n_{X_i}(r)-\sum_{i=0}^{n-1}n_{O_i}(r)$. \end{enumerate} \end{prop} \begin{proof} To prove (\ref{prop:parallelogramgradingsspinc}), recall that Remark~\ref{rem:parallelogramtransposition} tells us if $\gen{x}$ and $\gen{y}$ are connected by an empty parallelogram $r$, then $a^{\gen{x}}_k=a^{\gen{y}}_k$ for all but at most two $p$-coordinates $0\le k<n$. Further, if $\tau_r=(i\; j)$, then $a^{\gen{x}}_i-a^{\gen{y}}_i=a^{\gen{y}}_j-a^{\gen{x}}_j$. Plugging these values in to the definition of $\mathbf{S}$ tells us that $\mathbf{S}(\gen{x})=\mathbf{S}(\gen{y})$. To simplify notation in the proof of (\ref{prop:parallelogramgradingsmaslov}), let $s=\sum_{i=0}^{n-1}n_{O_i}(r)$. One could hope that the Maslov grading behaves on each of the $p$ strips as it does on a grid diagram for $S^3$, so we would get\begin{align*} \mathcal{I}(\tilde{\x},\tilde{\x})&=\mathcal{I}(\tilde{\y},\tilde{\y})+p\\ \mathcal{I}(\tilde{\x},\mathbb O)&=\mathcal{I}(\tilde{\y},\mathbb O)+ps\\ \mathcal{I}(\mathbb O,\tilde{\x})&=\mathcal{I}(\mathbb O,\tilde{\x})+ps. \end{align*} Sadly it does not, as Figure~\ref{fig:differentialgradings} demonstrates. Instead of trying to relate the Maslov gradings of $\gen{x}$ and $\gen{y}$ one strip at a time, we will do it one empty parallelogram at a time, in the following sense. Fix a fundamental domain for $T^2$, and consider $\tilde{\x}$ and $\tilde{\y}$, which are connected by $p$ parallelograms, denoted $\tilde{r}=\{r_1,\ldots,r_p\}$ as in Figure~\ref{fig:differentialgradings}. Let $\tilde{\x}^i$ denote the result of applying $\{r_1,\ldots,r_i\}$ to $\tilde{\x}$, so $\tilde{\x}^0=\tilde{\x}$, and $\tilde{\x}^p=\gen{y}$. Note that the $\mathbb O$ and $\mathbb X$ markings are fixed. Finally, we will abuse notation to write $\tilde{\mathbf{M}}(\tilde{\x}^i)=\mathcal{I}(\tilde{\x}^i,\tilde{\x}^i)-\mathcal{I}(\tilde{\x}^i,\tilde{\OO})-\mathcal{I}(\tilde{\OO},\tilde{\x}^i)+\mathcal{I}(\tilde{\OO},\tilde{\OO})$. We will tackle three cases, depending on how $r_i$ sits on the fundamental domain. Suppose $r_i$ does not wrap around the diagram, i.e. it is an embedded disk in the fundamental domain as a subset of $\numset{R}^2$. Then $\mathcal{I}(\tilde{\x}^{i-1},\tilde{\x}^{i-1})=\mathcal{I}(\tilde{\x}^i,\tilde{\x}^i)+1$. Furthermore, we have $\mathcal{I}(\tilde{\x}^{i-1},\tilde{\OO})=\mathcal{I}(\tilde{\x}^i,\tilde{\OO})+s$, and similarly $\mathcal{I}(\tilde{\OO},\tilde{\x}^{i-1})=\mathcal{I}(\tilde{\OO},\tilde{\x}^{i})+s$. As a result, $\tilde{\mathbf{M}}(\gen{x}^{i-1})=\tilde{\mathbf{M}}(\gen{x}^i)+1-2s$. Suppose on the fundamental domain $r_i$ wraps horizontally around the diagram, i.e. is the disjoint union of two embedded disks which border the curves in $\betas$ which have coordinates $0$ and $pn$. Each of these embedded disks covers the same number of rows (consider on the fundamental domain as a subset of $\numset{R}^2$), which we will denote $l$. Each row must have a component of $\tilde{\x}^{i-1}$ on it, and since the rectangle is empty, there must be $l-1$ components in the complement of $r_i$ in the horizontal annulus containing those $l$ rows. Each such component counts twice towards $\mathcal{I}(\tilde{\x}^i,\tilde{\x}^i)$ but not at all towards $\mathcal{I}(\tilde{\x}^{i-1},\tilde{\x}^{i-1})$. Furthermore, the corners of $r_i$ contribute once to $\mathcal{I}(\tilde{\x}^i,\tilde{\x}^i)$ but not to $\mathcal{I}(\tilde{\x}^{i-1},\tilde{\x}^{i-1})$. Therefore, we get $\mathcal{I}(\tilde{\x}^{i-1},\tilde{\x}^{i-1})=\mathcal{I}(\tilde{\x}^i,\tilde{\x}^i)-1-2(l-1)$. Similarly, there is one marking per row, so there are $l$ markings contained in the horizontal annulus containing those $l$ rows. If a marking is contained in $r_i$, it contributes equally to $\mathcal{I}(\tilde{\x}^i,\tilde{\x}^i)$ and $\mathcal{I}(\tilde{\x}^{i-1},\tilde{\x}^{i-1})$. There are $l-s$ markings contained in the annulus but not in $r_i$; each contributes to $\mathcal{I}(\tilde{\x}^i,\tilde{\OO})$ and $\mathcal{I}(\tilde{\OO},\tilde{\x}^i)$ but not to $\mathcal{I}(\tilde{\x}^{i-1},\tilde{\OO})$ or $\mathcal{I}(\tilde{\OO},\tilde{\x}^{i-1})$, so we get \begin{align*}\tilde{\mathbf{M}}(\tilde{\x}^{i-1})&=(\mathcal{I}(\tilde{\x}^i,\tilde{\x}^i)-1-2(l-1))-(\mathcal{I}(\tilde{\x}^i,\tilde{\OO})-(l-s))-(\mathcal{I}(\tilde{\OO},\tilde{\x}^i)-(l-s))+\mathcal{I}(\tilde{\OO},\tilde{\OO})\\ &=\tilde{\mathbf{M}}(\tilde{\x}^i)+1-2s .\end{align*} Suppose on the fundamental domain $r_i$ wraps vertically around the diagram, i.e. is the disjoint union of two embedded disks which border the curves in $\alphas$ which have coordinates $0$ and $n$. Then the analogous argument gives us that again $\tilde{\mathbf{M}}(\tilde{\x}^{i-1})=\tilde{\mathbf{M}}(\tilde{\x}^i)+1-2s$. If we choose a fundamental domain such that some rectangle has lower left corner at $(0,0)$, we ensure that no rectangle wraps both horizontally and vertically. Thus we have that $\tilde{\mathbf{M}}(\gen{x})=\tilde{\mathbf{M}}(\tilde{\x}^0)=\tilde{\mathbf{M}}(\tilde{\x}^p)+p-2ps=\tilde{\mathbf{M}}(\gen{y})+p-2ps$, so $\mathbf{M}(\gen{x})=\mathbf{M}(\gen{y})+1-2s$, as desired. We can conclude (\ref{prop:parallelogramgradingsalexander}) similarly. We see \[\mathbf{M}_{\mathbb X}(\gen{x})=\mathbf{M}_{\mathbb X}(\gen{y})+1-2\sum_{i=0}^{n-1}n_{X_i}(r)\] by a similar argument, and combining this with Definition~\ref{eqn:alexdefn} gives us that \begin{equation*}\mathbf{A}(\gen{x})=\mathbf{A}(\gen{y})+\sum_{i=0}^{n-1}n_{X_i}(r)-\sum_{i=0}^{n-1}n_{O_i}(r).\qedhere\end{equation*} \end{proof} \subsection{Commutations}\label{sec:integralcommutation} \input{Sections/IntegralInvariance/commutation} \subsection{Switches}\label{sec:integralswitches} \input{Sections/IntegralInvariance/switches} \subsection{Stabilizations and destabilizations} \input{Sections/IntegralInvariance/stabilization} \subsection{Integral invariance} With the above in hand, the main theorem follows. \begin{proof}[Proof of Theorem~\ref{thm:mainresultz}] Suppose $\mathbb{G}$ and $\mathbb{G}'$ are two grid diagrams associated to the same link. By Theorem~\ref{thm:cromwell}, $\mathbb{G}$ and $\mathbb{G}'$ are connected by a sequence of commutations and (de)stabilizations. From Proposition~\ref{prop:signedcommutationinvariance} and Proposition~\ref{prop:signedstabilizationinvariance}, it follows that $(C^-(\mathbb{G}),\partial_{\XX}^-;\numset{Z})$ and $(C^-(\mathbb{G}'),\partial_{\XX}^-;\numset{Z})$ are quasi-isomorphic. \end{proof} Corollary~\ref{cor:invariant} follows immediately. The quasi-isomorphism type $\opminus{\CFK}(L,L(p,q);\numset{Z})$ is a link invariant by Theorem~\ref{thm:mainresultz}, and so the isomorphism type of $\opminus{\HFK}(L,L(p,q);\numset{Z}):=H_*(\opminus{\CFK}(L,L(p,q);\numset{Z}))$ is also. \section{Introduction} \input{Sections/intro} \section{Twisted toroidal grid diagrams}\label{sec:griddiagrams} \input{Sections/griddiagrams} \section{Grid homology}\label{sec:gridhomology} \input{Sections/gridhomology} \section{Gradings}\label{sec:gradings} \input{Sections/gradings} \section{Invariance}\label{sec:invariance} \input{Sections/invariance} \section{Sign assignments}\label{sec:signassignments} \input{Sections/signassignments} \section{Integral knot Floer homology}\label{sec:integralinvariance} \input{Sections/integralinvariance} \bibliographystyle{plain}
\section{Introduction} \label{intro} Despite the impressive success in multiple tasks, e.g. image classification~\cite{Krizhevsky2012,He2016}, object detection~\cite{Girshick2014}, semantic segmentation~\cite{Long2015}, deep neural networks (DNNs) are vulnerable to adversarial examples. In other words, carefully constructed small perturbations of the input can change the prediction of the model drastically~\cite{Szegedy2013,Goodfellow2014}. Furthermore, these adversarial examples have been shown high transferability, which greatly threat the security of DNN models~\cite{xie2019improving,huang2021direction}. This vulnerability of DNNs prohibits their adoption in applications with high risk such as autonomous driving, face recognition, medical image diagnosis. In response to the vulnerability of DNNs, various defense methods have been proposed. These methods can be roughly separated into two categories: 1) certified defense, and 2) empirical defense. Certified defense tries to learn provable robustness against $\epsilon$-ball bounded perturbations~\cite{cohen2019certified,wong2018provable}. Empirical defense refers to heuristic methods, including augmenting training data~\cite{Madry2017} (e.g. adversarial training), regularization~\cite{Moosavi-Dezfooli2018,jakubovitz2018improving}, and inspirations from biology~\cite{tadros2019biologically}. Among all these defense methods, adversarial training has been the most commonly used defense against adversarial perturbations because of its simplicity and effectiveness~\cite{Madry2017,athalye2018obfuscated}. Standard adversarial training takes model training as a \emph{minmax} optimization problem (Section~\ref{sat})~\cite{Madry2017}. It trains a model based on on-the-fly generated adversarial examples $X'$ bounded by uniformly $\epsilon$-ball of input X (i.e.\ $\norm{X'-X} \leq \epsilon$). Although adversarial training is effective in achieving robustness, it suffers from two problems. Firstly, it achieves robustness with a severe sacrifice on natural accuracy, i.e.\ accuracy on natural images. Furthermore, the sacrifice will be enlarged rapidly when training with larger $\epsilon$. Secondly, there is an underlying assumption that the on-the-fly generated adversarial examples within $\epsilon$-ball are semantic unchanged. However, recently,~\cite{guo2018low} and~\cite{sharma2019effectiveness} show that adversarial examples bounded by $\epsilon$-ball could be perceptible in some instances.~\cite{tramer2020fundamental} and ~\cite{jacobsen2018excessive} find that there are ``invariance adversarial examples'' for some instances, where ``invariance adversarial examples'' refer to those adversarial examples that model's prediction does not change while the true label changes. All these findings indicate that this assumption does not consistently hold, which hurts the performance of the model. In this paper, we first analyze the limitation for adversarial training and point out that some on-the-fly generated adversarial examples may be harmful for training models. For instance, in Figure~\ref{fig:1}, the adversarial examples for $x_{1}$ may be harmful since it crosses the oracle classifier's decision boundary. To address the limitation, we propose a calibrated adversarial training, which is derived on the upper bound of a new definition of robust error (Calibrated robust error). Calibrated adversarial training is composed of weighted cross-entropy loss for natural input and $\mathbf{KL}$ divergence for calibrated adversarial examples where calibrated adversarial examples are pixel-level adapted adversarial examples in order to reduce the adverse effect of adversarial examples with underlying semantic changes. Specifically, our contributions are summarized as follows: \begin{itemize} \item Theoretically, we analyze the limitation for adversarial training, and propose a new definition of robust error: Calibrated robust error. Furthermore, we derive an upper bound for the calibrated robust error. \item We propose the calibrated adversarial training based on the upper bound of calibrated robust error, which can reduce the adverse effect of adversarial examples. \item Extensive experiments demonstrate that our method achieves the best performance on both natural and robust accuracy among baselines and provides a good trade-off between natural accuracy and robust accuracy. Furthermore, it enables training with larger perturbations, which yields higher adversarial robustness. \end{itemize} \begin{figure}[htb] \centering \vspace{-0.2in} \includegraphics[width=0.6\textwidth]{Figure/2.pdf} \caption{Illustration for neighborhoods of inputs and the decision boundaries.} \label{fig:1} \end{figure} \section{Related Work} Many papers have proposed their variants of adversarial training for achieving either more effective adversarial robustness or a better trade-off between adversarial robustness and natural accuracy. Generally, they can be categorized into two groups. The first group is to adapt a loss function for outer minimization or inner maximization. For instance,~\cite{kannan2018adversarial} introduces a regularization term to enclose the distance between adversarial example and corresponding natural example.~\cite{pmlr-v97-zhang19p} proposes a theoretically principled trade-off method (Trades).~\cite{ding2019mma} proposes Max-Margin adversarial (MMA) training by maximizing the margin of a classifier.~\cite{wang2019improving} proposes MART by introducing an explicit regularization for misclassified examples.~\cite{wu2020adversarial} proposes Adversarial Weight Perturbation (AWP) for regularizing the weight loss landscape of adversarial training. ~\cite{andriushchenko2020understanding,huang2020bridging} propose FGSM adversarial training + gradient-based regularization for achieving more effective adversarial robustness. The other group is to generate adversarial examples with adapted perturbation strength. Our work belongs to this group. Several recent works including Customized adversarial training~\cite{cheng2020cat}, Currium adversarial training~\cite{cai2018curriculum}, Dynamic adversarial training~\cite{wang2019convergence}, Instance adapted adversarial training~\cite{balaji2019instance}, Adversarial training with early stopping (ATES)~\cite{sitawarin2020improving}, Friendly adversarial training (FAT)~\cite{pmlr-v119-zhang20z}, heuristically propose to adapt $\epsilon$ in instance-level for adversarial examples. \section{Preliminary} \label{preliminary} \subsection{Notations} We denote capital letters such as $X$ and $Y$ to represent random variables and lower-case letters such as $x$ and $y$ to represent realization of random variables. We denote by $x \in \mathcal{X}$ the sample instance, and by $y \in \mathcal{Y}$ the label, where $\mathcal{X}\in \mathbb{R}^{m\times n}$ indicates the instance space. We use $\mathcal{B}(x,\epsilon)$ to represent the neighborhood of instance $x$: $\{x':\norm{x' -x}_p \leq \epsilon \}$. We denote a neural network classifier as $f_{\theta}(x)$, the cross-entropy loss as $L(\cdot)$ and Kullback-Leibler divergence as $\mathbf{KL}(\cdot||\cdot)$. We denote $P(Y|X)$ as probability output after softmax and $P(Y=y|X)$ as the probability of $Y=y$. $sgn(\cdot)$ denotes the sign function and $f_{oracle}$ denotes the oracle classifier that maps any inputs to correct labels. \subsection{Standard Adversarial Training} \label{sat} Given a set of instance $x \in \mathcal{X}$ and $y \in \mathcal{Y}$. We assume the data are sampled from an unknown distribution $(X,Y) \sim \mathcal{D}$. The standard adversarial training can be formally expressed as follows~\cite{Madry2017}: \begin{align} \small \min_{\theta}\rho(\theta), \rho(\theta)=\mathbbm{E}_{(X,Y)\sim D}[\max_{X' \in \mathcal{B}(X,\epsilon)} L(f_{\theta}(X'),Y)]. \label{eq:at} \end{align} \subsection{Projected Gradient Descent (PGD)} \cite{Madry2017} utilizes projected gradient to generate perturbations. Formally, with the initialization $x^{0}=x$, the perturbed data in $t$-th step $x^{t}$ can be expressed as follows: \begin{equation} x^{t}=\Pi_{\mathcal{B}(x,\epsilon)}(x^{t-1}+\alpha\cdot sgn(\nabla_x L(f_{\theta}(x^{t-1}),y))) , \label{pgd} \end{equation} where $\Pi_{\mathcal{B}(x,\epsilon)}$ denotes projecting perturbations into the set $\mathcal{B}(x,\epsilon)$, $\alpha$ is the step size and $t \in \{1,2,...,T\}$. We denote PGD attack with $T=20$ as PGD-20 and $T=100$ as PGD-100. \subsection{C\&W attack} Given $x$, C\&W attack~\cite{carlini2017towards} searches adversarial examples $\Tilde{x}$ by optimizing the following objective function: \begin{align} \norm{\Tilde{x}-x}_{p}+c \cdot h(\Tilde{x}), \end{align} with \begin{align} h(\Tilde{x})= \max(\max_{i\ne t}f_{\theta}(\Tilde{x})_{i}-f_{\theta}(\Tilde{x})_{t},-k), \notag \end{align} where $c>0$ balances the two loss terms and $k$ encourages adversarial examples to be classified as target $t$ with larger confidence. This paper adopts C\&W$_{\infty}$ attack and follows the implementation in \cite{pmlr-v97-zhang19p,cai2018curriculum} where they replace cross-entropy loss with $h(\Tilde{x})$ in PGD attack. \subsection{Robust Error} \label{robusterr} We introduce the definition of robust error given by ~\cite{pmlr-v97-zhang19p,schmidt2018adversarially}. \begin{restatable}[Robust Error~\cite{pmlr-v97-zhang19p,schmidt2018adversarially}]{definition}{defre} Given a set of instance $x_1,...,x_n \in \mathcal{X}$ and labels $y_1,...,y_n \in \{-1,+1\}$. We assume that the data are sampled from an unknown distribution $(X,Y) \sim D$. The robust error of a classifer $f_{\theta}:\mathcal{X} \xrightarrow{} \mathbf{R}$ is defined as: $\mathcal{R}_{rob}(f):=\mathbf{E}_{(X,Y) \sim D} \bm{1} \{\exists X' \in \mathcal{B}(X,\epsilon)\;s.t. \; f_{\theta}(X')Y \leq 0 \} $. \end{restatable} \section{Method}\label{methods} \subsection{Analysis For Adversarial Training}\label{AAT} \iffalse \textbf{Standard Adversarial Training} As showed in Section~\ref{sat}, standard adversarial training trains a model on adversarial examples, which is different from standard training that trains a model on clean inputs. Furthermore, we can decompose Eq.~\ref{eq:at} into two terms: \begin{align} \small &\min_{\theta}\rho(\theta), \rho(\theta) = \mathbbm{E}_{(X,Y)\sim D}[ \notag &\overbrace{\max_{\delta \in \mathcal{B}(X,\epsilon)} L(f_{\theta}(X+\delta),Y) \mathbf{1}\{f_{oracle}(X+\delta)=Y\}}^{(a)} \notag \\ &+\overbrace{\max_{\delta \in \mathcal{B}(X,\epsilon)} L(f_{\theta}(X+\delta),Y) \mathbf{1}\{f_{oracle}(X+\delta) \ne Y\}}^{(b)}]. \label{eq:at_deco} \end{align} From the decomposition, it is evident that the term (b) contributes to negative effects since the cross-entropy loss takes $Y$ as the label of adversarial examples $X+\delta$ while the true label of $X+\delta$ is not $Y$. This term is equivalent to bringing noisy labels in training data, which also explains why a large perturbation magnitude in adversarial training setting will lead to a severe drop in natural accuracy of model. \textbf{Robust Error} From the definition (Section~\ref{robusterr}), we can see that an instance is taken as a robust error as long as there is an adversarial example $X'$ across the model's decision boundary. A limitation of this definition is: It is possible that there are adversarial examples that the true labels are not $Y$ but they are taken as robust under $\epsilon$-ball where these adversarial examples are named as ``invariance adversarial examples'' in~\cite{tramer2020fundamental}. For examples, in Figure~\ref{fig:1}, input $x_2$ is $\epsilon'$-robust under this definition while there is the area where samples are classified incorrectly within $\epsilon'$-ball, i.e.\ the area within blue circle and with filling brown dashed lines. \fi Current adversarial training including its variants trains a model by minimizing robust error directly, which may hurt the performance of the model. Taking standard adversarial training as an example, it firstly approximates robust error by the inner maximization and then minimizes the approximated robust error. However, the on-the-fly adversarial examples generated by the inner maximization could be semantically damaged for some instances, e.g., in Figure~\ref{fig:1}, the semantical content of the adversarial examples for $x_{1}$ could be damaged since it crosses the decision boundary of $f_{\theta}$. Therefore, the objective function (Eq.~\ref{eq:at}) can be decomposed into two terms according to the oracle classifier's decision boundary: \begin{align} \small &\min_{\theta}\rho(\theta),\ \rho(\theta) = \mathbbm{E}_{(X,Y)\sim D}[ \overbrace{\max_{\delta \in \mathcal{B}(X,\epsilon)} L(f_{\theta}(X+\delta),Y) \mathbf{1}\{f_{oracle}(X+\delta)=Y\}}^{(a)} \notag \\ &+\overbrace{\max_{\delta \in \mathcal{B}(X,\epsilon)} L(f_{\theta}(X+\delta),Y) \mathbf{1}\{f_{oracle}(X+\delta) \ne Y\}}^{(b)}]. \label{eq:at_deco} \end{align} The term (b) contributes to negative effects since the cross-entropy loss takes $Y$ as the label of adversarial examples $X+\delta$ while the true label of $X+\delta$ is not $Y$. This term is equivalent to bringing noisy labels in training data, which also explains why a large perturbation magnitude in adversarial training setting will lead to a severe drop in natural accuracy of model. To address this drawback, we propose calibrated robust error and build our defense method based on it. \subsection{Calibrated Robust Error}\label{CaliRE} \begin{restatable}[Calibrated Robust Error (Ours)]{definition}{defcre} Given a set of instances $x_1,...,x_n \in \mathcal{X}$ and labels $y_1,...,y_n \in \{-1,+1\}$. We assume that the data are sampled from an unknown distribution $(X,Y) \sim D$. Assume there is an oracle classifier $f_{oracle}$ that maps any input $x \in \mathbf{R}^d $ into its true label. The calibrated robust error of a classifier $f_{\theta}:\mathcal{X} \xrightarrow{} \mathbf{R}$ is defined as: $\mathcal{R}_{cali}(f):=\mathbf{E}_{(X,Y) \sim D} \bm{1} \{\exists X' \in \mathcal{B}(X,\epsilon)\; s.t. \; f_{\theta}(X')f_{oracle}(X') \leq 0 \} $. \end{restatable} \begin{restatable}[]{thm}{theorencaliRE}\label{theo_calire} Given a set of instance $x_1,...,x_n \in \mathcal{X}$, a classifier $f_{\theta}:\mathcal{X} \xrightarrow{} \mathbf{R}$ and an oracle classifier $f_{oracle}$ that maps any input $x \in \mathbf{R}^d$ into its true label and assumed the decision boundaries of $f_{\theta}$ and $f_{oracle}$ are not overlapped~\footnote{Not overlapped denotes $f_{\theta}$ and $f_{oracle}$ are not exactly the same.}, we have: \begin{align} \mathcal{R}_{rob}(f) \leq \mathcal{R}_{cali}(f). \end{align} \end{restatable} The proof can be found in Appendix~\ref{proofR}. From Theorem~\ref{theo_calire}, it can be observed that minimizing robust error can be obtained by minimizing calibrated robust error. \subsection{Upper Bound on Calibrated Robust Error} In this section, we derive an upper bound on calibrated robust error. \begin{restatable}[Upper Bound]{thm}{upperbound} Let $\psi$ be a nondecreasing, continuous and convex function:$[0,1] \xrightarrow{} [0,\infty]$. Let $\mathcal{R}_{\phi}(f):=\mathbf{E}{\phi}(f_{\theta}(X)Y)$ and $\mathcal{R}_{\phi}^{*}:=\min_{f}\mathcal{R}_{\phi}(f)$, $\mathcal{R}(f):=\mathbf{E}(f_{\theta}(X)Y)$ and $\mathcal{R}^{*}=\min_{f}\mathcal{R}(f)$. For any non-negative loss function $\phi$ such that $\phi(0)\geq 1$, any measurable $f_{\theta}: \mathcal{X} \xrightarrow{}\mathbf{R}$ and any probability distribution on $\mathcal{X} \times \{+1,-1\}$, we have: \begin{align} & \mathcal{R}_{cali}(f) -\mathcal{R}^{*} \leq \psi^{-1} (\mathcal{R}_{\phi}(f)-\mathcal{R}_{\phi}^{*})+\mathbf{E} \biggl[\max_{\substack{X'\in \mathbf{B}(X,\epsilon)\\ f_{oracle}(X')=Y}} \phi(f_{\theta}(X')Y)\biggr]. \end{align} \end{restatable} The proof can be found in Appendix~\ref{proofTheo}. From the upper bound, it can be observed: \begin{itemize} \item If the oracle classifier's decision boundary crosses $\epsilon$-ball, the upper bound is decided by the adversarial examples that close to the oracle classifier's decision boundary. If the oracle classifier's decision boundary does not cross $\epsilon$-ball, the upper bound is decided by the adversarial examples that close to the boundary of $\epsilon$-ball. \item Minimizing $ \mathcal{R}_{\phi}(f) + \mathbf{E} \biggl[\max_{\substack{X'\in \mathbf{B}(X,\epsilon)\\ f_{oracle}(X')=Y}} \phi(f(X')Y)\biggr]$ can reduce the calibrated robust error. From Theorem~\ref{theo_calire}, we can know that calibrated robust error is the upper bound of robust error. Therefore, it also reduces the robust error of the model. \end{itemize} \subsection{Method for Defense} \label{method} From the upper bound, we define the general objective function as follows: \begin{align} \min_{\theta} \mathbf{E} \biggl[\phi(f_{\theta}(X)Y)+\max_{\substack{X'\in \mathbf{B}(X,\epsilon)\\ f_{oracle}(X')=Y}} \phi(f_{\theta}(X')Y)\biggr]. \label{primalobj} \end{align} The analysis for the difference between Eq.~\ref{primalobj} and the general objective function~\cite{pmlr-v97-zhang19p} derived on the upper bound of robust error can be found in Appendix~\ref{anlgeneralobj}. The first term in Eq.~\ref{primalobj} is the surrogate loss of misclassification on natural data, and we design it as cross-entropy weighted by $(1-predicted\; probability)$. Formally, it is expressed as: \begin{align} \phi(f_{\theta}(X)Y)= L(f_{\theta}(X),Y)\cdot(1-P(Y=y|X)). \label{natual loss} \end{align} The second term in Eq.~\ref{primalobj} is the surrogate loss on adversarial examples. However, it can not be solved directly since $f_{oracle}$ is unknown. Therefore, we propose a approximate solution with two steps. Firstly, we generate adversarial examples based on $\max_{X'\in \mathbf{B}(X,\epsilon)} \phi(f_{\theta}(X')Y)$. Secondly, we adapt the adversarial examples in pixel-level such that it approximately satisfies the constraint $f_{oracle}(X')=Y$ and we name the pixel-level adapted adversarial examples as \textbf{calibrated adversarial examples}. We rewrite $\max_{\substack{X'\in \mathbf{B}(X,\epsilon)\\ f_{oracle}(X')=Y}} \phi(f_{\theta}(X'),Y)$ as follows: \begin{align} & X'=X+\delta=argmax_{X'\in \mathbf{B}(X,\epsilon)} \phi(f_{\theta}(X')Y) \label{eq.6} \\ & X_{cali}'=X+M\odot \delta,\; M \in \mathbb{R}^{m \times n}, M[i,j] \in (0,1), \label{eq.7} \end{align} where the $\odot$ denotes Hadamard product. From Eq.~\ref{eq.6} and Eq.~\ref{eq.7}, we can see that calibrated adversarial examples $X_{cali}'$ are obtained by adapting adversarial perturbations with soft mask $M$. Please refer to Section~\ref{visualizationM} and Appendix~\ref{difference} for better understanding how does the mask $M$ adapt the adversarial perturbations. $\delta$ can be solved by various adversarial attacks, e.g., PGD attack. Therefore, the problem of the inner maximization in Eq.~\ref{primalobj} is transformed to find a proper soft mask $M$. Considering that soft mask $M$ relies on input $X$ and perturbation $\delta$, we propose to learn it by a neural network $g_{\varphi}$, which is defined as follows: \begin{align} M=g_{\varphi}(X,\delta). \end{align} Therefore, by replacing $\phi(f_{\theta}(X)Y)$ with Eq.~\ref{natual loss} and $X'$ with $X_{cali}'$, the objective function (Eq.~\ref{primalobj}) is transformed to follows: \begin{align} \min_{\theta} \mathbf{E}_{(X,Y) \sim D} [L(f_{\theta}(X),Y)\cdot(1-P(Y=y|X)) + \beta \cdot \phi(f_{\theta}(X_{cali}')Y)] \label{f_obj0}, \end{align} where $X_{cali}'$ is solved by Eq.~\ref{eq.7}, and $\beta$ is a hyper-parameter for balancing two terms. In practice, we follow~\cite{pmlr-v97-zhang19p,wang2019improving} to use $\mathbf{KL}$ divergence for the surrogate loss $\phi(\cdot)$ in the outer minimization step. Thus, Eq.~\ref{f_obj0} can be reformulated as follows: \begin{align} \min_{\theta} \mathbf{E}_{(X,Y) \sim D} [L(f_{\theta}(X),Y)\cdot(1-P(Y=y|X)) + \beta \cdot \mathbf{KL}(P(Y|X_{cali}')||P(Y|X))]. \label{f_objective} \end{align} From Eq.~\ref{f_objective}, it can be observed that there are two main differences with other variants of adversarial training, e.g., AT, Trades, MART, etc. (See Appendix~\ref{loss_variants} for the detailed descriptions of their loss functions.): \begin{itemize} \item We use weighted cross-entropy loss instead of cross-entropy loss in order to make the loss function pay more attention to misclassified samples. \item The $\mathbf{KL}$ divergence is based on calibrated adversarial examples that reduce the adverse of some adversarial examples because calibrated adversarial examples are expected to be satisfied with $f_{oracle}(X_{cali}')=Y$. \end{itemize} Finally we design the objective function for $g_{\varphi}(X,\delta)$ based on the two constraints: (1) $X_{cali}'$ should be close to $X'$ as far as possible in order to keep the inner maximization constraint in Eq.~\ref{primalobj}. (2) $X_{cali}'$ is expected to be satisfied with $f_{oracle}(X_{cali}')=Y$. \iffalse \begin{enumerate} \item $X_{cali}'$ shall be close to $X'$ as far as possible in order to keep the maximum constraint in Eq.~\ref{primalobj}. \item $X_{cali}'$ is expected to be satisfied with $f_{oracle}(X_{cali}')=Y$. \end{enumerate} \fi Therefore, the objective function for $g_{\varphi}(X,\delta) $ is designed as follows: \begin{align} \small \min_{\varphi} \mathbf{E}_{(X,Y) \sim D}[ \mathbf{KL}(P(Y|X_{cali}') || P(Y|X')) +\beta_{1} \cdot L(f_{\theta}(X_{cali}'),Y)], \label{g_objective} \end{align} where $\mathbf{KL}$ divergence term corresponds to the constraint (1) and cross-entropy loss $L(\cdot)$ corresponds to the constrain (2). $\beta_{1}$ is the hyper-parameter that controls the strength of the constraint (2). We denote our method as calibrated adversarial training with PGD attack (CAT$_{cent}$) if $X'$ is solved by PGD attack, calibrated adversarial training with C\&W$_{\infty}$ attack (CAT$_{cw}$) if $X'$ is solved by C\&W$_{\infty}$ attack. \section{Experiments} In this section, we first conduct extensive experiments to assess the effectiveness of our approach in achieving natural accuracy and adversarial robustness, then we conduct experiments for understanding the proposed method. \subsection{Evaluation on Robustness and Natural Accuracy} \subsubsection{Experimental settings} Two datasets are used in our experiments: MNIST~\cite{lecun1998mnist}, and CIFAR-10~\cite{krizhevsky2010cifar}. For MNIST, all defense models are built on four convolution layers and two linear layers. For CIFAR-10, we use PreAct ResNet-18~\cite{He2016} and WideResNet-34-10~\cite{zagoruyko2016wide} models. The architectures of auxiliary neural network $g_{\varphi}$ for MNIST and CIFAR-10 can be found in Appendix~\ref{imple}. Following previous researches~\cite{pmlr-v97-zhang19p,wu2020adversarial}, Robustness is measured by robust accuracy against white-box and black-box attacks. For white-box attack, we adopt PGD-20/100 attack~\cite{Madry2017}, FGSM attack~\cite{Goodfellow2014} and C\&W$_{\infty}$~\cite{carlini2017towards}. For black-box attack, we adopt a query-based attack: Square attack~\cite{andriushchenko2020square}. \textbf{Baselines} Standard adversarial training and the three latest defense methods are considered: 1)TRADES~\cite{pmlr-v97-zhang19p}, 2)MART~\cite{wang2019improving}, 3)FAT~\cite{pmlr-v119-zhang20z}. The detailed descriptions of baseline methods can be found in Appendix~\ref{imple}. \iffalse \begin{itemize} \item Standard adversarial training (AT)~\cite{Madry2017}, which is described in Section~\ref{sat}. We adopt the implementation in ~\cite{rice2020overfitting} with early stop, which can achieve better performance. \item TRADES~\cite{pmlr-v97-zhang19p}. It separates loss function into cross-entropy loss for natural accuracy and a regularization terms for robust accuracy. \item MART~\cite{wang2019improving}. It incorporates an explicit regularization into the loss function for misclassified examples. \item FAT~\cite{pmlr-v119-zhang20z}. It constructs the objective function based on adversarial examples that close to the model's decision boundary. We adopt \emph{FAT for TRADES} as a baseline since it achieves better performance. \end{itemize} \fi \textbf{Hyper-parameter settings}\label{Hyperps} During training phase, for MNIST, we set $T =20$, $\epsilon=0.3$, $\alpha = \epsilon/T$ for the training attack, and set $\beta = 1$, $ \beta_{1}=0.3$ by default. For CIFAR-10, we set $T=10$, $\alpha=2/255$, $\epsilon=8/255$ for the training attack and set $\beta = 5$ by default. We train models with $\beta_{1}=0.05,0.1,0.3$ respectively. For all baselines, they are trained using the official code that their authors provided and the hyper-parameters for them are set as per their original papers. More training details are introduced in Appendix~\ref{imple}. During test phase, for MNIST, we set $\epsilon = 0.3$ and $\alpha = 0.015$ for PGD attack. For CIFAR-10, we set $\epsilon = 8/255$ and $\alpha = 0.003$ for PGD attack. And we follow the implementation in \cite{pmlr-v119-zhang20z} for C\&W$_{\infty}$ attack where $\epsilon=0.031$, $\alpha=0.003$, $T=30$ and $k=50$. Note that during the training process, we use the PGD attack with random start, i.e.\ adding random perturbation of $[-\epsilon,\epsilon]$ to the input before PGD perturbation. But for the test in our experiments, we use PGD attack without random start by default~\footnote{We find that PGD attack (restart=1) without random start is stronger than that with random start.}. \subsubsection{Evaluation on White-box Robustness} This section shows the evaluation on white-box attacks. All attacks have full access to model parameters. We first conduct an evaluation on a simple benchmark dataset: MNIST and then conduct an evaluation on a complex dataset: CIFAR-10. \textbf{MNIST} Table~\ref{tab:mnist} reports natural accuracy and robust accuracy under PGD-20 and PGD-100 respectively. For baselines, we do not include results from FAT and MART since they do not provide training code for MNIST. From Table~\ref{tab:mnist}, we can see that the proposed method can achieve higher natural accuracy and robust accuracy compared with standard adversarial training. Besides, we notice that with larger $\epsilon=0.4$, adversarial robustness can be boosted further by our defense method. \textbf{CIFAR-10} We evaluate the performance based on two benchmark architectures, i.e., PreAct ResNet-18 and WideResNet-34-10. All defense models are tested under the same attack settings as described in Section~\ref{Hyperps} except for \emph{FAT} on WideResNet-34-10 since this evaluation is copied from their paper directly where it is evaluated with $\epsilon=0.031$ for PGD attack. Table~\ref{tab:RN_CIFAR} and Table~\ref{tab:WRN_CIFAR} report natural accuracy and robust accuracy on the test set. ``Avg'' denotes the average of natural accuracy and all robust accuracy, and it indicates the overall performance on both natural accuracy and robust accuracy. For our method, we report mean + standard deviation with 5 repeated runs. From Table~\ref{tab:RN_CIFAR} and Table~\ref{tab:WRN_CIFAR}, it can be seen that our method achieves the best performance on both natural accuracy and robust accuracy under all attacks except for FGSM among baselines. Moreover, with $\beta_{1}=0.3$, our method improves natural accuracy with a large margin while keeps comparable performance with baselines on robust accuracy. Besides, our method achieves high ``Avg'' value, which indicates our method has a good trade-off between natural accuracy and robust accuracy. Finally, we observe that the robustness achieved by our method has smaller accuracy under stronger attacks, i.e.\ PGD-100 and CW$_{\infty}$, than weaker attacks, i.e.\ FGSM and PGD-20. It indicates that the robustness achieved by our method is not caused by ``gradient masking''~\cite{athalye2018obfuscated}. Experiments on CIFAR-100 can be found in Appendix~\ref{exp100}. \begin{table}[t] \caption{Evaluation on MNIST. The value besides model name denotes the max perturbation magnitude used in the training phase. -: denotes the training loss fails in decrease. We report mean with 5 repeated runs and skip the standard deviations since they are small ($<0.4$\%), which hardly affects the results.} \vspace{-0.2 in} \begin{center} \begin{small} \begin{sc} \begin{threeparttable} \begin{tabular}{l|ccc} \toprule Models & Natural & PGD-20 & PGD-100 \\ \midrule AT($0.3$) & 99.2& 93.4&92.3 \\ AT($0.4$) & -& -& -\\ TRADES($0.3$)\tnote{*}&99.3&94.9&92.9\\ TRADES($0.4$)\tnote{*}&99.1&95.3&91.6\\ CAT$_{cent}$($0.3$)&\textbf{99.3}&95.4 &93.2 \\ CAT$_{cent}$($0.4$) & 99.2& 96.8& 95.8 \\ CAT$_{cw}$($0.3$)&99.1 &96.2 &95.0 \\ CAT$_{cw}$($0.4$) & 99.1& \textbf{97.1}& \textbf{96.2}\\ \bottomrule \end{tabular} \begin{tablenotes}\footnotesize \small \item[*] Model is trained with $\beta=1.0$. \end{tablenotes} \end{threeparttable} \end{sc} \end{small} \end{center} \label{tab:mnist} \vskip -0.1in \end{table} \begin{table*}[t] \caption{Evaluation on CIFAR-10 for PreAct ResNet-18 under white-box setting.} \vspace{-0.2 in} \begin{center} \begin{small} \begin{sc} \begin{tabular}{l|cccccc} \toprule Models & Natural &FGSM & PGD-20 & PGD-100&CW$_{\infty}$&Avg \\ \midrule AT & 83.0& 57.3& 52.9&51.9 &50.9 &59.2\\ TRADES($\beta:6$) &82.8 & 57.6& 52.8& 51.7&50.9&59.2\\ MART ($\lambda:5$) & 83.0& \textbf{60.2}&53.9 &52.3&49.9 &59.9\\ FAT($\beta$:6) & 85.1& 58.3& 52.1&50.5 &50.4 &59.3\\ CAT$_{cent}$($\beta_{1}:0.05$)& 84.1 $\pm$ 0.3&59.5 $\pm$ 0.2 & \textbf{55.6 $\pm$ 0.3}&\textbf{54.9$\pm$0.3}&50.8$\pm$0.2&\textbf{61.0} \\ CAT$_{cent}$($\beta_{1}:0.1$) & 85.9 $\pm$0.2&58.5$\pm$0.3 &54.1 $\pm$0.1& 53.4 $\pm$0.06&50.44$\pm$0.3 &60.4\\ CAT$_{cw}$($\beta_{1}:0.05$) & 84.2 $\pm$0.3&58.9$\pm$0.2 &55.3 $\pm$0.4& 54.5 $\pm$0.5&\textbf{51.3$\pm$0.3} &60.9\\ CAT$_{cw}$($\beta_{1}:0.1$) & 85.1 $\pm$0.5&58.9$\pm$0.3 &54.9 $\pm$0.5& 54.1 $\pm$0.4&51.2$\pm$0.1 &60.8\\ \toprule CAT$_{cent}$($\beta_{1}:0.3$) & 88.0 $\pm0.2$&57.0$\pm$0.4 &51.1 $\pm0.5$& 49.9 $\pm0.4$&47.8$\pm$0.2 &58.8\\ CAT$_{cw}$($\beta_{1}:0.3$) & \textbf{88.1 $\pm0.1$}&57.4$\pm0.5$ &51.5 $\pm0.1$& 50.1 $\pm0.2$&48.8$\pm$0.2 &59.2\\ \bottomrule \end{tabular} \end{sc} \end{small} \end{center} \label{tab:RN_CIFAR} \vskip -0.1in \end{table*} \begin{table*}[t] \caption{Evaluation on CIFAR-10 for WideResNet-34-10 under white-box setting.} \vspace{-0.2 in} \begin{center} \begin{small} \begin{sc} \begin{tabular}{l|cccccc} \toprule Models & Natural&FGSM & PGD-20 & PGD-100&CW$_{\infty}$&Avg \\ \midrule AT & 86.1& 61.8& 56.1&55.8 &54.2 &62.8\\ TRADES($\beta:6$) & 84.9& 60.9& 56.2& 55.1&54.5& 62.3\\ MART ($\lambda:5$) & 83.6& 61.6&57.2&56.1&53.7&62.5\\ FAT($\beta$:6) & 86.6$\pm$0.6& 61.9$\pm$0.6& 55.9$\pm$0.2&55.4$\pm$0.3 &54.3$\pm$0.2&62.8\\ CAT$_{cent}$($\beta_{1}:0.05$)& 86.6$\pm$0.1 & 60.9 $\pm$ 0.1& 57.7 $\pm$ 0.1& 57.2 $\pm$0.2&53.9 $\pm$0.6& 63.3\\ CAT$_{cent}$($\beta_{1}:0.1$)&87.5$\pm$0.51 & 61.5 $\pm$0.5&57.2 $\pm$0.3& 56.6 $\pm$0.4&54.0$\pm$0.4 &63.4\\ CAT$_{cw}$($\beta_{1}:0.05$)&86.4$\pm$0.1 & \textbf{62.7 $\pm$0.2}&\textbf{59.7 $\pm$0.1}& \textbf{58.7 $\pm$0.3}&\textbf{56.0$\pm$0.1} &\textbf{64.7}\\ CAT$_{cw}$($\beta_{1}:0.1$)&87.4$\pm$0.1 & 62.3 $\pm$0.1&58.6 $\pm$0.2& 57.3 $\pm$0.19&55.6$\pm$0.07 &64.2\\ \toprule CAT$_{cent}$($\beta_{1}:0.3$)&$88.9\pm0.4$ &59.8 $\pm$0.6&54.8 $\pm$0.7&53.9 $\pm$0.6&51.6$\pm0.2$ &61.8\\ CAT$_{cw}$($\beta_{1}:0.3$)&\textbf{89.3$\pm$0.1} & 60.8$\pm$0.27&55.1$\pm$0.3&53.2$\pm$0.5&52.6$\pm$0.4 &62.2\\ \bottomrule \end{tabular} \end{sc} \end{small} \end{center} \label{tab:WRN_CIFAR} \vskip -0.1in \end{table*} \subsubsection{Evaluation on Black-box Robustness} We conduct evaluation on black-box settings. We choose to use Square attack~\cite{andriushchenko2020square} in our experiments. Square attack is a query-efficient black-box attack, which has been shown that it achieves white-box comparable performance and resists ``gradient masking''~\cite{andriushchenko2020square}. In our experiments, we set hyper-parameters $n_{queries}=5000$ and $eps=8/255$ for Square attack. The experiments are carried out on CIFAR-10 test set based on PreAct ResNet-18 and WideResNet-34-10 architectures. Results are showed in Table~\ref{tab:black}. It can be seen that our method achieves the best accuracy among all baselines under square attack. Besides, by comparing Table~\ref{tab:black} with Table~\ref{tab:RN_CIFAR} and Table~\ref{tab:WRN_CIFAR}, we can find that accuracy under black-box attack is lower than under white-box attack like PGD and CW$_{\infty}$ attacks. It demonstrates that adversarial robustness achieved by our method is not due to ``gradient masking ''~\cite{athalye2018obfuscated}. \subsection{Understanding the Proposed Defense Method} \subsubsection{Visualization of Soft Mask $M$}\label{visualizationM} We visualize the learned soft mask $M$ for further understanding calibrated adversarial examples. As showed in Figure~\ref{Fig:visMask}, natural images are randomly selected from MNIST, and adversarial examples are generated by PGD-20 attack with $\epsilon=0.4$. Soft masks and calibrated adversarial examples are generated accordingly. It can be observed that soft masks have high values on the background but have low values on the digit, which indicates that they try to reduce perturbations on the digit. Furthermore, by comparing calibrated adversarial examples with adversarial examples, we find that pixel values on digits for calibrated adversarial examples tend to be homogeneous, which is more consist with them on natural images. In other words, soft masks try to prevent adversarial examples from breaking semantic information that could impact the performance of the model. \begin{figure}[htb] \begin{minipage}[b]{0.49\textwidth} \captionof{table}{Evaluation on CIFAR-10 for PreAct ResNet-18 and WideResNet-34-10 under black-box setting. -: Not Available.} \label{tab:black} \begin{small} \begin{sc} \begin{tabular}{l|cc} \toprule Models &ResNet &WRN \\ \midrule AT & 55.12& 59.19\\ TRADES& 54.85&59.0 \\ MART & 54.98& 57.7 \\ FAT & 55.35& - \\ CAT$_{cent}$($\beta_{1}:0.05$) &56.4$\pm$0.1&59.1$\pm$0.5\\ CAT$_{cent}$($\beta_{1}:0.1$) &56.4$\pm$0.1 &59.6$\pm$0.8\\ CAT$_{cw}$($\beta_{1}:0.05$) &56.3 $\pm$0.2&60.9$\pm$0.1 \\ CAT$_{cw}$($\beta_{1}:0.1$) &\textbf{56.5 $\pm$0.1}& \textbf{60.9$\pm$0.2}\\ \bottomrule \end{tabular} \end{sc} \end{small} \end{minipage} \begin{minipage}[b]{0.49\textwidth} \begin{flushright} \setlength\tabcolsep{1pt} \settowidth\rotheadsize{Radcliffe Cam} \begin{tabular}{l ccccc} \rothead{\centering{Natural}} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/0_clean.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/1_clean.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/7_clean.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/9_clean.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/15_clean.png}\\[-3.2em] \rothead{\centering{Adv}} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/0_adv.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/1_adv.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/7_adv.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/9_adv.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/15_adv.png}\\[-3.2em] \rothead{\centering{Mask}} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/0_mask.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/1_mask.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/7_mask.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/9_mask.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/15_mask.png}\\[-3.2em] \rothead{\centering{Cali Adv}} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/0_mask_adv.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/1_mask_adv.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/7_mask_adv.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/9_mask_adv.png} & \includegraphics[width=0.17\textwidth,valign=m]{Figure/imgs/15_mask_adv.png}\\[-2.5em] \end{tabular} \captionof{figure}{Visualization of soft mask $M$. } \label{Fig:visMask} \end{flushright} \end{minipage} \end{figure} \iffalse \begin{figure}[h!] \centering \setlength\tabcolsep{1pt} \settowidth\rotheadsize{Radcliffe Cam} \begin{tabular}{l ccccc} \rothead{\centering{Natural}} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/0_clean.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/1_clean.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/7_clean.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/9_clean.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/15_clean.png}\\[-3.2em] \rothead{\centering{Adv}} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/0_adv.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/1_adv.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/7_adv.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/9_adv.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/15_adv.png}\\[-3.2em] \rothead{\centering{Mask}} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/0_mask.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/1_mask.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/7_mask.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/9_mask.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/15_mask.png}\\[-3.2em] \rothead{\centering{Cali Adv}} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/0_mask_adv.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/1_mask_adv.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/7_mask_adv.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/9_mask_adv.png} & \includegraphics[width=0.09\textwidth,valign=m]{Figure/imgs/15_mask_adv.png}\\[-2.5em] \end{tabular} \caption{Visualization of soft mask $M$. } \label{Fig:visMask} \end{figure} \fi \subsubsection{Training with Larger Perturbation Bound}\label{large perturbations} Our method adapts adversarial examples for mitigating the adverse effect, which enables a model trained with larger perturbations. To verify the performance, we conduct experiments on PreAct ResNet-18 models trained with $\epsilon=8,9,10,11,12$ respectively and test them on CIFAR-10 test set. Baselines are trained with their official codes. Results are showed in Figure~\ref{fig:epsilons}. From Figure~\ref{fig:eps:a}, it can be observed that our method has a clearly increasing trend on robust accuracy with the increase of $\epsilon$. From Figure~\ref{fig:eps:b}, we can see that the sum of robust accuracy and natural accuracy has a slightly decreasing trend for our method, indicating a trade-off between robust accuracy and natural accuracy. However, our method's descending grade is lower than Trades and AT, which also verifies that our method has a good trade-off between robust accuracy and natural accuracy. \begin{figure}[htb] \centering \vspace*{-0.1in} \subfigure[Robust]{\includegraphics[width=0.4\textwidth]{Figure/epsilon_lines_Robust.pdf} \label{fig:eps:a} } \subfigure[Robust+Natural]{\includegraphics[width=0.4\textwidth]{Figure/epsilon_lines_sum.pdf} \label{fig:eps:b} } \caption{Evaluation on models trained with larger $\epsilon$. Robust accuracy is calculated by PGD-100 attack without random start.$\beta_{1}$ is fixed to 0.1 for $CAT_{cw}$ and $CAT_{cent}$.} \vspace*{-0.2in} \label{fig:epsilons} \end{figure} \subsubsection{Ablation Study} We empirically verify the effect of weighted cross-entropy loss and soft mask $M$. Besides, we compare the effect of different loss functions selected in Eq.~\ref{eq.6} for generating adversarial examples. \textbf{Effect of the weighted cross-entropy loss and mask $M$} We remove $M$ by replacing $X_{cali}'$ with $X'$ and remove $L(f_{\theta}(X),Y)\cdot(1-P(Y=y|X))$ by replacing it with $L(f_{\theta}(X),Y)$. We train PreAct ResNet-18 models based on CAT$_{cent}$ with removing both weighted cross-entropy loss and $M$ (marked as A1 model), and with removing $M$ only (marked as A2 model). We plot natural accuracy and robust accuracy on CIFAR-10 test set. Robust accuracy is computed by PGD-10 with random start ($\alpha=2/255,\epsilon=8/255$). Results are reported in Figure~\ref{fig:ablation_componments}. It can be observed that after removing soft mask $M$, there is a clearly decrease in natural accuracy and overall performance (natural+robust accuracy). Furthermore, after removing weighted cross-entropy loss, there is a slight decrease in natural accuracy. \textbf{Comparison of different loss functions} There are many choices for the surrogate loss in Eq.~\ref{eq.6} used to generate adversarial examples, e.g., cross-entropy loss, KL divergence used in Trades~\cite{pmlr-v97-zhang19p}, CW$_\infty$ loss. Here we evaluate the effect of these three losses in our method. We plot robust accuracy on CIFAR-10 test set for $\beta_{1}=0.1$ and $\beta_{1}=0.05$ respectively, and robust accuracy is calculated by PGD-10 attack with random start ($\alpha=2/255,\epsilon=8/255$). The experiments are based on PreAct ResNet-18 model. Results are showed in Figure~\ref{fig:ablation_losses} and it can be seen that $\mathbf{KL}$ divergence is less effective in achieving robustness than cross-entropy loss and CW$_\infty$ loss for both $\beta_{1}=0.1$ and $\beta_{1}=0.05$ settings. \begin{figure}[htb] \centering \vspace{-0.1in} \subfigure[Natural]{\includegraphics[width=0.4\textwidth]{Figure/train_epochs_natural.pdf} } \subfigure[Natural+Robust]{\includegraphics[width=0.4\textwidth]{Figure/train_epochs_natural_Robust.pdf}} \caption{The ablation Experiments. A1: Model trained by CAT$_{cent}$ with removing both soft mask $M$ and $(1-P(Y=y|X))$. A2: Model trained by CAT$_{cent}$ with removing soft mask $M$ only. $\beta_{1}:0.1,0.05$ denote models trained by CAT$_{cent}$ with setting $\beta_{1}=0.1,0.05$ respectively.} \label{fig:ablation_componments} \end{figure} \begin{figure}[htb] \centering \vspace{-0.1in} \subfigure[$\beta_{1}=0.05$]{\includegraphics[width=0.4\textwidth]{Figure/train_epochs_robustness_3_losses_b05.pdf} } \subfigure[$\beta_{1}=0.1$]{\includegraphics[width=0.4\textwidth]{Figure/train_epochs_robustness_3_losses_b1.pdf}} \caption{Comparison of different loss functions on achieving adversarial robustness.} \label{fig:ablation_losses} \end{figure} \subsubsection{Analysis for Hyper-parameter $\beta_{1}$} There are two hyper-parameters, $\beta$ and $\beta_{1}$, in our method. $\beta$ has the same effect as $\lambda$ in MART~\cite{wang2019improving} and Trades~\cite{pmlr-v97-zhang19p}. It controls the strength of the regularization for robustness. The analysis for $\beta$ can be found in Appendix~\ref{aly_beta}. $\beta_{1}$ controls the strength that pushes calibrated adversarial examples to be the same class of the input X. In this section, we mainly show the effect of $\beta_{1}$ on robust accuracy and natural accuracy. We train models with $\beta_{1}$ varying from 0.001 to 0.3 based on PreAct ResNet-18 architecture. The robust accuracy is calculated on CIFAR-10 test set by PGD-20 attack without random start. The trends are showed in Figure~\ref{fig:hyperAnalaysis}. The concrete values can be found in Table~\ref{tab:beta} (Appendix~\ref{aly_beta}). From Figure~\ref{fig:hyperAnalaysis}, it can be observed that when increasing the value of $\beta_{1}$, natural accuracy has remarkable growth. Meanwhile, PGD+Natural accuracy increases when $\beta_{1}$ is from $0.01$ to $0.1$, which implies that calibrated adversarial examples release the negative effect of adversarial examples to some degree. With continuously increase $\beta_{1}$, there is a large drop in robust accuracy. It is because a large $\beta_{1}$ will reduce adversarial perturbation strength. However, it can be observed that there is a good trade-off for large $\beta_{1}$ between natural accuracy and robust accuracy. For example, with $\beta_{1}=0.3$, CAT$_{cw}$ achieves $88.08 \pm 0.07$ for natural accuracy while keeps $51.46 \pm 0.11$ for robust accuracy, which is much better than the trade-off achieved by Trades~\cite{pmlr-v97-zhang19p} where natural accuracy is 87.91 and robust accuracy is 41.50~\footnote{Results are copied from~\cite{pmlr-v97-zhang19p}}. \begin{figure}[htb] \centering \vspace{-0.1in} \subfigure[CAT$_{cent}$]{\includegraphics[width=0.4\textwidth]{Figure/beta1_lines_cent2.pdf} } \subfigure[CAT$_{cw}$]{\includegraphics[width=0.4\textwidth]{Figure/beta1_lines_cw2.pdf} } \caption{Impact of hyper-parameter $\beta_{1}$ on the performance of natural accuracy and robust accuracy. Note: The natural accuracy showed in the figure is $(natural\; accuracy -80)$ and the robust accuracy showed in the figure is $(robust\; accuracy-50)$.} \label{fig:hyperAnalaysis} \end{figure} \section{Conclusion} In this paper we proposed a new definition of robust error, i.e.\ calibrated robust error for adversarial training. We derived an upper bound for it, and enabled a more effective way of adversarial training that we call calibrated adversarial training. Our extensive experiments demonstrate that the new method improves natural accuracy with a large margin, and achieves the best performance under both white-box and black-box attacks among all considered state-of-the-art approaches. Our method also has a good trade-off between natural accuracy and robust accuracy.
\section{Introduction} Transporting rigid and deformable particles suspended in a viscous fluid with precise control is a challenging but crucial task in microfluidics \cite{kirby2010micro}. A classical engineering approach---one that is commonly found in biological systems (e.g., see \cite{jaffrin1971peristaltic, fauci2006biofluidmechanics, bornhorst2017gastric})---is the use of periodic contraction waves of the enclosing tube to drive the particulate flows. This mechanism is known as peristalsis. Computationally, the forward problem of simulating the particle transport for a given peristaltic wave shape has been considered in a number of works; a few recent ones that consider various physical scenarios include \cite{takagi2011peristaltic, chrispell2011peristaltic, aranda2015model, marconati2017transient, poursharifi2018peristaltic}. However, the inverse problem of finding the optimal wave shapes (e.g., that minimize the pump’s power loss) received little attention, primarily owing to the computational challenges associated with its solution---every shape iteration requires time-dependent solution of a rigid (or deformable) particle motion through constrained geometries in Stokes flow. In this work, we formulate an adjoint-based optimization approach that overcomes several of the associated computational bottlenecks.\enlargethispage*{2ex} In \cite{bonnet2020shape}, we considered the shape optimization of peristaltic pumps transporting a simple Newtonian fluid at low Reynolds numbers, which in turn was inspired by the work of Walker and Shelley \cite{walk:shel:10}. In contrast, the present work considers the case of pumps transporting large solid particles suspended in the viscous fluid (schematic in Figure \ref{geom:2D}). This extension, however, is non-trivial, since a dynamic fluid-structure interaction problem needs to be solved to simulate the transport for a given peristaltic wave shape. The main contributions of this work are two-fold. First, to evaluate the shape sensitivities efficiently, we systematically derive adjoint formulations for all the required shape functionals. The new shape derivative formulas require evaluating physical and adjoint variables on the domain boundaries only, consistently with the general structure of shape derivative formulas~\cite{henrot:pierre:18}. Adjoint formulations are very widely used for the evaluation of shape or material sensitivities in PDE-constrained optimization~\cite{hinze:08}, even in situations involving time-dependent forward problems, as here. They have recently been applied to droplet shape control in~\cite{fikl:21} and are also commonplace in applications such as geophysical full waveform inverse problems~\cite{epanomeritakis:08,metivier:12}. Our proposed shape sensitivity formulas allow, for each shape functional involved in the present optimization problem, to evaluate its derivatives with respect to any chosen set of shape parameters by using a single time-backwards adjoint solution. While this characteristic is relatively classical nowadays, we faced and solved a significant and less-common additional difficulty, namely that the fluid carries particles whose motion depends on the shape being optimized in an \emph{a priori} unknown way and gives rise to design-dependent time-evolving shape parameters. Our adjoint problems are designed so that the contribution of the latter is accounted for, circumventing the need of evaluating explicitly the shape sensitivity of the motion of carried particles. Second, as in \cite{bonnet2020shape}, we employ boundary integral equation (BIE) techniques to solve the governing equations. Their usual advantages over classical domain discretization methods---reduction in dimensionality, high-order accuracy and availability of fast solvers---are particularly significant for the shape optimization considered here as they avoid the need for volume re-meshing between optimization iterations and across the time steps. Specifically, we adapt the BIE method developed in \cite{marple:16} to solve our forward and the associated adjoint problems. In contrast to classical BIE techniques that employ periodic Green’s functions, it uses free-space Green's functions together with a set of auxiliary sources and enforces the periodic boundary conditions algebraically. The forward and adjoint problems require enforcing a variety of boundary conditions on the channel and particle boundaries as well as jump conditions across the channel---all of which can be accomodated in a straightforward manner using this BIE formulation. This paper is organized as follows. In Section \ref{sc:formulation}, we introduce the PDE formulation of the peristaltic pumping problem and formally define the shape optimization problem. The shape sensitivities of the objective function and the constraints are derived in Section \ref{sc:sensitivities}. The boundary integral method for solving the forward and adjoint problems and the numerical optimization procedure are discussed in Section \ref{sc:numerical}. Validation tests and the optimal shapes under various constraints are presented in Section \ref{sc:results}, followed by conclusions in Section \ref{sc:conclusions}. \section{Problem formulation} \label{sc:formulation} \subsection{Formulation of the wall motion} \label{geometry} Pumping is achieved by the channel wall shape moving along the positive direction $\bfe_1$ at a constant velocity $c$, as a traveling wave of wavelength $L$ (the wave period therefore being $T_{\text{\scriptsize per}}\hspace*{-0.1em}:=\hspace*{-0.1em} L/c$). The quantities $L,c$ are considered as fixed in the wall shape optimization process. This apparent shape motion is achieved by a suitable material motion of the wall, whose material is assumed to be flexible but inextensible. Like in~\cite{walk:shel:10}, it is convenient to introduce a \emph{wave frame} that moves along with the traveling wave, i.e., with velocity $c\bfe_1$ relative to the (fixed) lab frame. \begin{figure}[t] \centering \includegraphics[width=0.9\textwidth]{./figures/geom_2D_rigid} \caption{2D periodic channel with particle-carrying flow in wave frame: geometry and notation}\label{geom:2D} \end{figure} Here we consider fluid flows carrying rigid particles, treating in detail the case of one such particle. The particle motion makes the flow, and the fluid domain, time-dependent, and we denote by $t\hspace*{-0.1em}\in\hspace*{-0.1em}[0,T]$ the time interval of interest, the duration $T$ being arbitrary. Let $\Omega(t)$ denote, in the wave frame, the fluid region enclosed in one wavelength of the channel (see Fig.~\ref{geom:2D}), and let $\omega(t)$ and $\gamma(t)$ be the domain occupied at time $t$ in the wave frame by the particle and its closed contour. The fluid domain boundary is $\partial\Omega(t)=\Gamma\hspace*{-0.1em}\cup\hspace*{-0.1em}\Gamma_p\hspace*{-0.1em}\cup\hspace*{-0.1em}\gamma(t)$. The wall $\Gamma\hspace*{-0.1em}:=\hspace*{-0.1em}\Gamma^{+}\hspace*{-0.1em}\cup\hspace*{-0.1em}\Gamma^{-}$, which is fixed in this frame, has disconnected components $\Gamma^{\pm}$ which are not required to achieve symmetry with respect to the $x_1$ axis and have respective lengths $\ell^{\pm}$. The remaining channel contour $\Gamma_p\hspace*{-0.1em}:=\hspace*{-0.1em}\Gamma_0\hspace*{-0.1em}\cup\hspace*{-0.1em}\Gamma_L$ consists of the periodic planar end-sections $\Gamma_0$ and $\Gamma_L$, respectively situated at $x_1=0$ and $x_1=L$; the endpoints of $\Gamma_L$ are denoted by $\bfz^{\pm}$ (Fig.~\ref{geom:2D}). The orientation conventions of Fig.~\ref{geom:2D} are used throughout. The fluid flow at any given time is assumed to be spatially periodic in the channel axis direction. This implies a periodic arrangement of the carried particle(s); for instance, the single particle considered in what follows is implicitly replicated in each periodic segment of the channel. \subsubsection*{Wall geometry and motion} Both channel walls are described as arcs $s\mapsto \bfx^{\pm}(s)$ with the arclength coordinate $s$ directed ``leftwards'' as depicted in~Fig.~\ref{geom:2D}, whereas the unit normal $\bfn$ to $\partial\Omega$ is everywhere taken as outwards to $\Omega$. The position vector $\bfx(s)$, unit tangent $\boldsymbol{\tau}(s)$, unit normal $\bfn(s)$ and curvature $\kappa(s)$ obey the Frenet formulas \begin{equation} \del{s}\bfx = \boldsymbol{\tau}, \qquad \del{s}\boldsymbol{\tau} = \kappa\bfn, \qquad \del{s}\bfn = -\kappa\boldsymbol{\tau} \qquad \text{on $\Gamma^+$ and $\Gamma^-$}. \label{frenet} \end{equation} For consistency with our choice of orientation convention (and with the above formulas), the curvature is everywhere on $\Gamma$ taken as $\kappa\hspace*{-0.1em}=\hspace*{-0.1em}\bfn\sip\del{s}\boldsymbol{\tau}$.\enlargethispage*{1ex} In the wall frame, the wall particle velocity must be tangent to $\Gamma$ (wall material points being constrained to remain on the surface $\Gamma$); moreover the wall material is assumed to be inextensible. In the wave frame, the wall particle velocities $\bfU$ satisfying both requirements must have, on each wall, the form \begin{equation} \bfU(s) = U\boldsymbol{\tau}(s), \end{equation} where $U$ is constant. Moreover, in the wave frame, all wall material points travel over an entire spatial period during the time interval $T_{\text{\scriptsize per}}=1$, which implies $U=\ell$ ($\ell$ being the ratio between wall and channel lengths due to scaling). Finally, the viscous fluid must obey a no-slip condition on the wall, so that the velocity of fluid particles adjacent to $\bfx(s)$ is $\bfU(s)$. Concluding, the pumping motion of the wall constrains on each wall the fluid motion through \begin{equation} \bfu(\bfx) = \bfuD(\bfx) := \ell^{\pm}\boldsymbol{\tau}^{\pm}(\bfx) ,\quad \bfx\in\Gamma^{\pm}. \label{noslip:2D} \end{equation} In the sequel, we will drop plus, minus and $\pm$ symbols referring to upper and lower channel walls, with the understanding that quantities attached to $\Gamma$ (e.g. $\ell$) may take distinct values on either wall. \subsubsection*{Rigid particle motion} The motion of material points $\bfx$ of a rigid particle $\omega$, or its contour $\gamma$, has the Lagrangian representation \begin{equation} \omega(t) = \big\{\hspace*{0.1em} \bfxr(\bfx_0,t), \quad \bfx_0\hspace*{-0.1em}\in\hspace*{-0.1em}\omega_0 \hspace*{0.1em}\big\}, \qquad \text{with}\quad \bfxr(\bfx_0,t) := \bfc(t) + \bfR(t)\sip\bfx_0 \label{rigid:motion} \end{equation} where $\bfx_0$ is the position of the material point at initial time $t\sheq0$ and $\omega_0\hspace*{-0.1em}:=\hspace*{-0.1em}\omega(0)$ the initial configuration of the particle, while the time-dependent vector $\bfc(t)$ (with $\bfc(0)\hspace*{-0.1em}=\hspace*{-0.1em}\mathbf{0}$) and the time-dependent unitary matrix $\bfR(t)\hspace*{-0.1em}\in\hspace*{-0.1em}\text{SO}(2)$ (with $\bfR(0)\hspace*{-0.1em}=\hspace*{-0.1em}\bfI$) respectively describe the particle translation and rotation relative to the initial particle configuration $\omega_0$. The corresponding particle velocity $\bdot{\bfx}$ is, in Eulerian form: \begin{equation} \bdot{\bfx}(t) = \bfw(t) + \varrho(t)\,\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx = \bfw(t) + \varrho(t)\,\boldsymbol{r}\sip\bfx, \qquad \bfx\hspace*{-0.1em}\in\hspace*{-0.1em}\omega(t), \label{rigid:velocity} \end{equation} with the constant skew-symmetric tensor $\boldsymbol{r}$ defined by $\boldsymbol{r}\hspace*{-0.1em}:=\hspace*{-0.1em}\bfe_2\hspace*{-1pt}\otimes\hspace*{-1pt}\bfe_1-\bfe_1\hspace*{-1pt}\otimes\hspace*{-1pt}\bfe_2$ and the angular velocity $\varrho$ and translational velocity $\bfw$ linked at any time $t$ to $\bfR,\bfc$ through $\varrho \boldsymbol{r} = \bdot{\bfR}\sip\bfR^{\text{\scriptsize T}}$ and $\bfw = \bdot{\bfc}-\varrho\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfc$. \subsection{Forward problem: PDE formulation}\label{forward:pde} The fluid is assumed to be viscous (with dynamic viscosity $\mu$) and incompressible, so that the stress tensor is given by \begin{equation} \boldsymbol{\sigma}[\bfu,p] = -p\bfI + 2\mu\bfD[\bfu] \label{constitutive} \end{equation} where $\bfD[\bfu]:=\tdemi(\boldsymbol{\nabla}\bfu\hspace*{-0.1em}+\hspace*{-0.1em}\boldsymbol{\nabla}^{\text{\scriptsize T}}\bfu)$ is the strain rate tensor and $p$ is the pressure. We henceforth use the parameters $L,c,\mu$ to define non-dimensional of all relevant variables: coordinates and lengths are scaled by $L$, velocities by $c$, angular velocities by $c/L$, time by $L/c$, and stresses (including traction vectors and pressures) by $\mu c/L$. All geometrical or physical variables appearing thereafter are implicitly non-dimensional, after scaling according to the foregoing conventions. The particle-carrying flow in the wave frame~\cite{walk:shel:10} during a time interval $t\hspace*{-0.1em}\in\hspace*{-0.1em}[0,T]$ is described at any time instant by the incompressible Stokes equations with periodicity conditions \begin{subequations} \begin{equation} -\Delta\bfu + \boldsymbol{\nabla} p = \mathbf{0}, \quad \mbox{div}\,\bfu= 0 \quad \text{in $\Omega(t)$}, \qquad \bfu|_{\Gamma_L} = \bfu|_{\Gamma_0}. \label{forward:PDE} \end{equation} The fluid motion results from the prescribed wall velocity \begin{equation} \bfu = \bfuD := \ell\boldsymbol{\tau} \qquad \text{on $\Gamma$}. \label{forward:PDE:wall} \end{equation} The rigid particle in turn undergoes a rigid-body motion of the form~\eqref{rigid:motion} due to being carried by the fluid through the no-slip condition at any time: \begin{equation} \bfu = \bdot{\bfx}, \quad \qquad \text{on $\gamma(t)$} \label{forward:PDE:particle} \end{equation} The fluid region $\Omega(t)$ and the flow solution are time-dependent due to the particle motion $t\mapsto \omega(t)$. Equations~(\ref{forward:PDE}-c) define a well-posed problem for $(\bfu,p)$ at any time $t$ if the particle motion (and hence $\bdot{\bfx}$ on $\gamma(t)$) is known, $p$ being determined up to an arbitrary (and irrelevant) additive constant.\enlargethispage*{7ex} The particle motion being, in fact, unknown, it is determined from the condition that the hydrodynamic forces exerted on $\gamma(t)$ have a zero net force and net torque, i.e.: \begin{equation} \int_{\!\gamma(t)} \boldsymbol{\sigma}[\bfu,p]\sip\bfn \,\text{d}s = \mathbf{0}, \qquad \int_{\!\gamma(t)} \big(\hspace*{0.1em}\boldsymbol{\sigma}[\bfu,p]\sip\bfn\hspace*{0.1em}\big)\sip(\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx) \,\text{d}s = 0 \qquad t\in[0,T]. \label{equilibrium} \end{equation} Conditions~\eqref{equilibrium} allow to determine the three DOFs $\bfw(t)$ and $\varrho(t)$ of the particle velocity $\bdot{\bfx}$, see~\eqref{rigid:velocity}. The particle motion is then found by integrating $\bdot{\bfx}$ in time from a given initial condition \begin{equation} \omega(0) = \omega_0. \label{gamma0} \end{equation} \end{subequations} The solution of the forward evolution problem~\eqref{forward:PDE}--\eqref{gamma0}, and in particular the particle motion, is entirely determined by the shape of the wall $\Gamma$, since the data $\bfuD$ given by~\eqref{noslip:2D} is. In a time-discrete explicit setting with time step $\Delta t\hspace*{-0.1em}=\hspace*{-0.1em} T/N$ and time instants $t_0\sheq0, t_1\hspace*{-0.1em}=\hspace*{-0.1em}\Delta t,\ldots,t_N\hspace*{-0.1em}=\hspace*{-0.1em} T$, equations~(\ref{forward:PDE}-d) are solved at each $t\hspace*{-0.1em}=\hspace*{-0.1em} t_n$ and the particle configuration $\gamma_n\hspace*{-0.1em}:=\hspace*{-0.1em}\gamma(t_n)$ is updated in explicit fashion through \begin{equation} \gamma_{n+1} = \gamma_n + \bdot{\bfx}(\gamma_n,t_n)\Delta t \label{gamma:update} \end{equation} \subsection{Forward problem: weak formulation}\label{sec:forward:weak} In this work, flow computations rely on a boundary integral equation (BIE) formulation of equations~(\ref{forward:PDE}-d), see Sec.~\ref{sec:forwardsolver}. It is however convenient, for the derivation of shape derivative identities and adjoint problems, to recast equations~\eqref{forward:PDE}--\eqref{equilibrium} of the forward evolution problem in the following mixed weak form (e.g. \cite{brez:fort:91}, Chap. 6): \begin{equation} \label{forward:weak} \begin{multlined} \text{For each $t\hspace*{-0.1em}\in\hspace*{-0.1em}[0,T]$, find }(\bfu,p,\bff,\bfh,\bdot{\bfx}) \in \text{\boldmath $\mathcal{U}$}\hspace*{-0.1em}\times\hspace*{-0.1em}\mathcal{P}\hspace*{-0.1em}\times\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{F}$}}\hspace*{-0.1em}\times\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{H}$}}\hspace*{-0.1em}\times\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}, \\ \left\{ \begin{aligned} \text{(a) }&& a(\bfu,\bfv) - b(\bfu,q) - b(\bfv,p) - \big\langle\hspace*{0.1em}\bff,\bfv\hspace*{0.1em}\big\rangle_{\Gamma} - \big\langle\hspace*{0.1em}\bfh,\bfv\hspace*{0.1em}\big\rangle_{\!\gamma(t)} &= 0 &\quad& \forall(\bfv,q)\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{U}$}\hspace*{-0.1em}\times\hspace*{-0.1em}\mathcal{P}\hspace*{-1em} \\ \text{(b) }&& \big\langle\hspace*{0.1em}\bfg,\bfuD\hspace*{0.1em}\big\rangle_{\Gamma} - \big\langle\hspace*{0.1em}\bfg,\bfu\hspace*{0.1em}\big\rangle_{\Gamma} &= 0 && \forall\bfg\hspace*{-0.1em}\in\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{F}$}} \\ \text{(c) }&& \big\langle\hspace*{0.1em}\bfk,\bdot{\bfx}\hspace*{0.1em}\big\rangle_{\!\gamma(t)} - \big\langle\hspace*{0.1em}\bfk,\bfu\hspace*{0.1em}\big\rangle_{\!\gamma(t)} &= 0 && \forall\bfk\hspace*{-0.1em}\in\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{H}$}} \\ \text{(d) }&& \big\langle\hspace*{0.1em} \bfh, \boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\!\gamma(t)} &= 0 && \forall\boldsymbol{\rho}\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$} \end{aligned} \right.\hspace*{-0.5em} \end{multlined} \end{equation} where $\big\langle\hspace*{0.1em}\cdot,\cdot\hspace*{0.1em}\big\rangle_{X}$ stands for the $L^2(X)$ duality product, and the bilinear forms $a$ and $b$ are defined by \begin{equation} a(\bfu,\bfv) = \int_{\Omega} 2\bfD[\bfu]\dip\bfD[\bfv] \;\text{d}V, \qquad b(\bfv,q) = \int_{\Omega} q\,\mbox{div}\,\bfv \;\text{d}V \end{equation} The function spaces in equations~\eqref{forward:weak} are as follows: $\text{\boldmath $\mathcal{U}$}$ is the space of all periodic vector fields contained in $H^1(\Omega;\Rbb^2)$, $\mathcal{P}$ is the space of all $L^2(\Omega)$ functions with zero mean (i.e. obeying the constraint $\big\langle\hspace*{0.1em} p,1 \hspace*{0.1em}\big\rangle_{\Omega}\sheq0$), $\ensuremath{\mbox{\boldmath $\mathcal{F}$}}\hspace*{-0.1em}=\hspace*{-0.1em} H^{-1/2}(\Gamma;\Rbb^2)$ and $\ensuremath{\mbox{\boldmath $\mathcal{H}$}}\hspace*{-0.1em}=\hspace*{-0.1em} H^{-1/2}(\gamma;\Rbb^2)$. The dependence on time of $\text{\boldmath $\mathcal{U}$},\mathcal{P},\ensuremath{\mbox{\boldmath $\mathcal{F}$}}$ (through the time-dependent regions $\Omega(t)$ and $\omega(t)$) is implicitly understood. The chosen definition of $\mathcal{P}$ caters for the fact that $p$ would otherwise be defined only up to an arbitrary additive constant. The Dirichlet boundary conditions~\eqref{forward:PDE:wall} and~\eqref{forward:PDE:particle} are (weakly) enforced through~(\ref{forward:weak}b,c), rather than being embedded in the velocity space $\text{\boldmath $\mathcal{U}$}$, as this will make the derivation of shape derivative identities simpler. The unknown $\bff$, which acts as the Lagrange multiplier associated with condition~\eqref{forward:PDE:wall}, is in fact the force density (i.e stress vector) $\boldsymbol{\sigma}[\bfu,p]\sip\bfn$ on $\Gamma$; likewise, $\bfh\hspace*{-0.1em}:=\hspace*{-0.1em}\boldsymbol{\sigma}[\bfu,p]\sip\bfn$ is the stress vector arising on $\gamma$ from the kinematic condition~\eqref{forward:PDE:particle}. Condition~\eqref{equilibrium} is then the weak form of condition~\eqref{equilibrium}, $\text{\boldmath $\mathcal{R}$}$ being the three-dimensional space of rigid-body velocity fields \begin{equation} \text{\boldmath $\mathcal{R}$}:=\big\{\hspace*{0.1em} \boldsymbol{\rho}=\hat{\bfrh}+\hat{r}\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx\,,\; (\hat{\bfrh},\hat{r})\hspace*{-0.1em}\in\hspace*{-0.1em}\Rbb^2\hspace*{-0.1em}\times\hspace*{-0.1em}\Rbb \hspace*{0.1em}\big\}. \label{rho:def} \end{equation} Equations~\eqref{forward:weak} govern the flow at each instant $t$, knowing the current particle position $\omega(t)$. The complete forward evolution problem in weak form consists of~\eqref{forward:weak} supplemented with the initial condition~\eqref{gamma0}, with the particle motion $\omega(t)$ again to be found by integrating $\bdot{\bfx}$ in time. \subsection{Objective functionals and optimization problem}\label{optim:pb} We seek channel wall shapes that optimize the efficiency of peristaltic pumping. This problem involves three main quantities, namely the dissipation, the net particle motion and the mass flow rate, which we first describe. \subsubsection*{Dissipation} The dissipation over a chosen duration $T$ is given~\cite{walk:shel:10} by the functional \begin{equation}\label{J:loss:def} J_{\text{\tiny W}}(\Gamma) := \int_{0}^T \Big\{\hspace*{0.1em} \big\langle\hspace*{0.1em} \bff,(\bfuD\hspace*{-0.1em}+\hspace*{-0.1em} \bfe_1) \hspace*{0.1em}\big\rangle_{\Gamma} + \big\langle\hspace*{0.1em} \bfh,(\bfu\hspace*{-0.1em}+\hspace*{-0.1em} \bfe_1) \hspace*{0.1em}\big\rangle_{\!\gamma(t)} \hspace*{0.1em}\Big\} \,\text{d}t = \int_{0}^T \big\langle\hspace*{0.1em} \bff,(\bfuD\hspace*{-0.1em}+\hspace*{-0.1em} \bfe_1) \hspace*{0.1em}\big\rangle_{\Gamma} \,\text{d}t \end{equation} (up to the scaling factor $\mu cL$) where $(\bff,\bfh,\bfu)$ are components of the forward solution at time $t$ and the last equality stems from~\eqref{equilibrium}. Its value being completely determined by the shape of the wall $\Gamma$ (in a partly implicit way through $\bff$ and the $\Gamma$-dependent particle evolution $\gamma(t)$), $J_{\text{\tiny W}}$ is a shape functional. \enlargethispage*{1ex} \subsubsection*{Net particle motion} The net motion $D(\Gamma)\hspace*{-0.1em}:=\hspace*{-0.1em} \mathrm{x}_1^{\text{\tiny G}}(T)\hspace*{-0.1em}-\hspace*{-0.1em}\mathrm{x}_1^{\text{\tiny G}}(0)$ along $\bfe_1$ of the particle centroid $\bfxr^{\text{\tiny G}}(t)$ in the wave frame is given by \begin{equation} |\omega|D(\Gamma) = \big\langle\hspace*{0.1em} x_1,1 \hspace*{0.1em}\big\rangle_{\!\omega(T)} - \big\langle\hspace*{0.1em} x_1,1 \hspace*{0.1em}\big\rangle_{\!\omega_0} \label{xG:def} \end{equation} \subsubsection*{Optimization problem} Consider a given particle initial domain $\omega_0$ and a chosen duration $T$, the goal is to find the optimal wall shape $\Gamma$ of the peristaltic pumping channel that minimizes the dissipation functional $J_{\text{\tiny W}}$ subject to the volume $|\Omega|$ of the fluid region being constant and the net particle motion $D$ (in the wave frame) being given. In the fixed frame, the net particle motion is $D\hspace*{-0.1em}+\hspace*{-0.1em} T$ and the corresponding net particle velocity is $D/T\shp1$. The constrained optimization problem is then: \begin{equation} \Gamma^{\star} = \argmin_{\Omega(\Gamma) \, \hspace*{-0.1em}\in\hspace*{-0.1em}\, \mathcal{O}} \; J_{\text{\tiny W}}(\Gamma) \quad \quad\text{subject to } \quad \left\{\begin{aligned} C_{\text{\scriptsize V}}(\Gamma) &:= |\Omega(\Gamma)| \hspace*{-0.1em}-\hspace*{-0.1em} V_0 &=0, \\ C_{\text{\scriptsize D}}(\Gamma) &:= D(\Gamma) \hspace*{-0.1em}-\hspace*{-0.1em} D_0 &=0, \end{aligned}\right. \label{eq:opt}\end{equation} where $\mathcal{O}$ is the set of admissible shapes of $\Omega$ (see Sec.~\ref{overview}) and $V_0,D_0$ are given target values. \subsubsection*{Mass flow rate} Another quantity frequently involved in the optimization of flows in channels is the average mass flow rate per wavelength $Q(\Gamma)$, defined in the wave frame by \begin{equation} Q(\Gamma) = \inv{T}\int_0^T \int_{\Omega(t)} (\bfu\hspace*{-0.1em}+\hspace*{-0.1em} \bfe_1)\sip\bfe_1 \;\text{d}V\,\text{d}t = |\Omega| + \inv{T}\int_0^T \big\langle\hspace*{0.1em} u_1,1 \hspace*{0.1em}\big\rangle_{\Omega(t)} \,\text{d}t, \label{flowrate} \end{equation} (up to the scaling factor $cL$ and with $u_1\hspace*{-0.1em}=\hspace*{-0.1em} \bfu\sip\bfe_1$). We next observe that $\bfu$ is a rigid-body velocity on $\gamma(t)$, and can thus be continuously extended inside $\omega(t)$ as the particle rigid-body velocity field $\bdot{\bfx}$, so that \begin{equation} \big\langle\hspace*{0.1em} u_1,1 \hspace*{0.1em}\big\rangle_{\Omega(t)} = \big\langle\hspace*{0.1em} u_1,1 \hspace*{0.1em}\big\rangle_{\Omega(t)\cup\omega(t)} - \big\langle\hspace*{0.1em} \bdot{x}_1,1 \hspace*{0.1em}\big\rangle_{\omega(t)} = \big\langle\hspace*{0.1em} u_1,1 \hspace*{0.1em}\big\rangle_{\Omega(t)\cup\omega(t)} - |\omega|\bdot{x}{}_1^{\text{\tiny G}}(t) \end{equation} (with $u_1$ in the integral over $\Omega(t)\cup\omega(t)$ understood as the above-introduced extension). Since $\bfu$ is divergence-free in $\Omega(t)\hspace*{-0.1em}\cup\hspace*{-0.1em}\omega(t)$, we have $u_1=\mbox{div}\,(x_1\bfu) - x_1\mbox{div}\,\bfu=\mbox{div}\,(x_1\bfu)$ and the divergence theorem provides \begin{equation} \big\langle\hspace*{0.1em} u_1,1 \hspace*{0.1em}\big\rangle_{\Omega(t)\cup\omega(t)} = \big\langle\hspace*{0.1em} x_1\bfu,\bfe_1 \hspace*{0.1em}\big\rangle_{\Gamma_L} - \big\langle\hspace*{0.1em} x_1\bfu,\bfe_1 \hspace*{0.1em}\big\rangle_{\Gamma_0} = \big\langle\hspace*{0.1em} u_1,1 \hspace*{0.1em}\big\rangle_{\Gamma_L}. \end{equation} The average mass flow rate per wavelength is finally given by \begin{equation} Q(\Gamma) = |\Omega| \hspace*{-0.1em}+\hspace*{-0.1em} C(\Gamma) \hspace*{-0.1em}-\hspace*{-0.1em} \frac{|\omega|}{T}D(\Gamma), \qquad C(\Gamma) = \inv{T}\int_0^T \big\langle\hspace*{0.1em} u_1,1 \hspace*{0.1em}\big\rangle_{\Gamma_L} \,\text{d}t \label{flowrate:expr}, \end{equation} as a combination of boundary and particle integrals, a format that is well suited to the present use of BIE solvers. We note that thanks to the above-discussed velocity field extension, the last integral in~\eqref{flowrate:expr} involves the whole end section $\Gamma_L$ irrespective of whether the particle crosses it at some particular time.\enlargethispage*{3ex} Even though the mass flow rate is not involved in the examples presented in Section~\ref{sc:results}, we will derive and provide its shape derivative as a useful additional result, see Section~\ref{dd:explicit}. \section{Shape sensitivities} \label{sc:sensitivities} This section begins with an overview of available shape derivative concepts that also serves to set notation (Sec.~\ref{overview}). We then derive the governing problem for the shape derivative of the forward solution (Sec.~\ref{dd:forward}) and use this result to formulate shape derivatives of objective functionals in terms of an adjoint solution (Sec.~\ref{dd:J}). Specific cases of functionals are finally addressed in Sec.~\ref{dd:explicit}. \subsection{Shape sensitivity analysis: an overview} \label{overview} We begin by collecting available shape derivative concepts that fit our needs, referring to e.g.~\cite[Chaps. 8,9]{del:zol} or \cite[Chap. 5]{henrot:pierre:18} for rigorous expositions of shape sensitivity theory. Let $\Omega_{\text{all}}\hspace*{-0.1em}\subset\hspace*{-0.1em}\Rbb^2$ denote a fixed domain chosen so that $\Omega\Subset\Omega_{\text{all}}$ always holds for the shape optimization problem of interest. Upon introducing \emph{transformation velocity} fields, i.e. vector fields $\boldsymbol{\theta}:\Omega_{\text{all}}\to\Rbb^2$ such that $\boldsymbol{\theta}=\mathbf{0}$ in a neighborhood of $\partial\Omega_{\text{all}}$, shape perturbations of domains $\Omega\Subset\Omega_{\text{all}}$ are mathematically described using a pseudo-time $\eta$ and a geometrical transformation of the form \begin{equation} \bfx\hspace*{-0.1em}\in\hspace*{-0.1em}\Omega_{\text{all}} \mapsto \bfx^\eta = \bfx+\eta\boldsymbol{\theta}(\bfx), \label{shape:pert} \end{equation} which defines a parametrized family of domains $\Omega_{\eta}(\boldsymbol{\theta}):=(\bfI\hspace*{-0.1em}+\hspace*{-0.1em}\eta\boldsymbol{\theta})(\Omega)$ for any given ``initial'' domain $\Omega\Subset\Omega_{\text{all}}$. The affine format~\eqref{shape:pert} is sufficient for defining the first-order derivatives at $\eta\sheq0$ used in this work. \subsubsection*{Admissible shapes and their transformations} The set $\mathcal{O}$ of admissible shapes for the fluid region $\Omega$ in a channel period (in the wave frame) is chosen as \begin{equation} \mathcal{O} = \big\{ \Omega\Subset\Omega_{\text{all}}, \text{ $\Omega$ is periodic and connected} \big\}. \label{Ocal:def} \end{equation} Accordingly, let the space $\Theta$ of admissible transformation velocities be defined as \begin{equation}\label{Theta:def} \Theta = \Big\{\hspace*{0.1em} \boldsymbol{\theta}\hspace*{-0.1em}\in\hspace*{-0.1em} C_0^{1,\infty}(\Omega_{\text{all}})\ \big|\ \text{(i) } \boldsymbol{\theta}|_{\G_0}\hspace*{-0.1em}=\hspace*{-0.1em}\boldsymbol{\theta}|_{\G_L}, \ \text{(ii) }\boldsymbol{\theta}\sip\bfe_1\sheq0 \text{ on $\G_0$},\ \text{(iii) }\boldsymbol{\theta}(\bfz^-)\hspace*{-0.1em}=\hspace*{-0.1em}\mathbf{0} \hspace*{0.1em}\Big\}, \end{equation} (where $C_0^{1,\infty}(\Omega_{\text{all}}):=W^{1,\infty}(\Omega_{\text{all}})\cap C_0^{1}(\Omega_{\text{all}})$) ensuring that the shape perturbations (i) are periodic, (ii) prevent any deformation of the end sections $\G_{p}^{\pm}$ along the axial direction, and (iii) prevent vertical rigid translations of the channel domain. The provision $\boldsymbol{\theta}\in C_0^{1,\infty}(\Omega_{\text{all}})$ ensures that (a) there exists $\eta_0\shg0$ such that $\Omega_{\eta}(\boldsymbol{\theta})\Subset\Omega_{\text{all}}$ for any $\eta\hspace*{-0.1em}\in\hspace*{-0.1em}[0,\eta_0]$, (b) the weak formulation for the shape derivative of the forward solution (see~\eqref{der:weak}) is well defined in the standard solution spaces, and (c) traces of $\boldsymbol{\theta}$ and $\boldsymbol{\nabla}\boldsymbol{\theta}$ on $\partial\Omega_{\eta}$ are well-defined. Since here shape changes are driven by $\Gamma$, the support of $\boldsymbol{\theta}$ may be limited to an arbitrary neighborhood of $\Gamma$ in $\Omega$.\enlargethispage*{3ex} \subsubsection*{Lagrangian derivatives} In what follows, all shape derivatives are implicitly taken at some given configuration $\Omega$, i.e. at initial "time" $\eta\sheq0$. The ``initial'' Lagrangian derivative $\dd{\boldsymbol{a}}$ of some (scalar or tensor-valued) field variable $\boldsymbol{a}(\bfx,\eta)$ is defined as \begin{equation} \dd{\boldsymbol{a}}(\bfx) = \lim_{\eta\to0} \inv{\eta}\big[\hspace*{0.1em} \boldsymbol{a}(\bfx^{\eta},\eta)-\boldsymbol{a}(\bfx,0) \hspace*{0.1em}\big] \qquad\bfx\hspace*{-0.1em}\in\hspace*{-0.1em}\Omega, \label{dd:def} \end{equation} and the Lagrangian derivative of gradients and divergences of tensor fields are given by \begin{equation} \text{(a) \ }(\boldsymbol{\nabla}\boldsymbol{a})^{\star} = \boldsymbol{\nabla}\dd{\boldsymbol{a}} - \boldsymbol{\nabla}\boldsymbol{a}\sip\boldsymbol{\nabla}\boldsymbol{\theta}, \qquad \text{(b) \ }(\mbox{div}\,\boldsymbol{a})^{\star} = \mbox{div}\,\dd{\boldsymbol{a}} - \boldsymbol{\nabla}\boldsymbol{a}\dip(\boldsymbol{\nabla}\boldsymbol{\theta})^{\text{\scriptsize T}} \label{dd:grad} \end{equation} Likewise, the first-order ``initial'' directional derivative $J'$ of a shape functional $J:\mathcal{O}\to\Rbb$ is defined as \begin{equation} J'(\Omega;\boldsymbol{\theta}) = \lim_{\eta\to0} \inv{\eta}\big(\hspace*{0.1em} J(\Omega_{\eta}(\boldsymbol{\theta}))-J(\Omega) \hspace*{0.1em}\big). \label{dd:J:def} \end{equation} In this work, Lagrangian derivatives with respect to the pseudo-time $\eta$ and the physical time $t$ are distinguished by being respectively called ``Lagrangian'' and ``particle'' derivatives, and denoted using a star (e.g. $\dd{\boldsymbol{a}}$) or a dot (e.g. $\bdot{\bfx}$). \subsubsection*{Lagrangian differentiation of integrals} Consider, for a given transformation velocity field $\boldsymbol{\theta}\hspace*{-0.1em}\in\hspace*{-0.1em}\Theta$, generic domain and contour integrals \begin{equation} \text{(a) \ }I_{\text{\scriptsize V}}(\eta) = \int_{\Omega_{\eta}(\boldsymbol{\theta})} F(\cdot,\eta) \;\text{d}V, \qquad \text{(b) \ }I_{\text{\scriptsize S}}(\eta) = \int_{S_{\eta}(\boldsymbol{\theta})} F(\cdot,\eta) \,\text{d}s, \label{IVS:def} \end{equation} where $\Omega_{\eta}(\boldsymbol{\theta})=(\bfI\hspace*{-0.1em}+\hspace*{-0.1em}\eta\boldsymbol{\theta})(\Omega)$ is a variable domain and $S_{\eta}(\boldsymbol{\theta})\hspace*{-0.1em}:=\hspace*{-0.1em}(\bfI\hspace*{-0.1em}+\hspace*{-0.1em}\eta\boldsymbol{\theta})(S)$ a (possibly open) variable curve. The derivatives of $I_{\text{\scriptsize V}}(\eta)$ and $I_{\text{\scriptsize S}}(\eta)$ are given by \begin{equation} \begin{aligned} &\text{(a) \ }& \der{I_{\text{\scriptsize V}}}{\eta}\Big|_{\eta=0} &= \int_{\Omega} \big[\hspace*{0.1em} \dd{F} + F(\cdot,0)\,\mbox{div}\,\boldsymbol{\theta} \hspace*{0.1em}\big] \;\text{d}V, \\ &\text{(b) \ }& \der{I_{\text{\scriptsize S}}}{\eta}\Big|_{\eta=0} &= \int_{S} \big[\hspace*{0.1em} \dd{F} + F(\cdot,0)\,\DivS\boldsymbol{\theta} \hspace*{0.1em}\big] \,\text{d}s, \end{aligned} \label{dd:IVS} \end{equation} which are well-known material differentiation formulas of continuum kinematics. In (\ref{dd:IVS}b), $\DivS$ is the tangential divergence operator, given in the present 2D context by \begin{equation} \DivS\boldsymbol{\theta} = \big(\hspace*{0.1em}\bfI\hspace*{-0.1em}-\hspace*{-0.1em}\bfn\hspace*{-1pt}\otimes\hspace*{-1pt}\bfn\hspace*{0.1em}\big)\dip\boldsymbol{\nabla}\boldsymbol{\theta} = \del{s}\theta_s-\kappa\theta_n \label{DivS:def} \end{equation} where $\boldsymbol{\theta}$ on $\Gamma$ is set, using the unit vectors defined in~\eqref{frenet}, in the form $\boldsymbol{\theta}=\theta_s\boldsymbol{\tau}+\theta_n\bfn$ and the curvature $\kappa$ also follows the conventions of~\eqref{frenet}.\enlargethispage*{3ex} Finally, the following simple result (proved in Appendix~\ref{DivS:theta:proof}) will prove useful, as we will consider particle motions, and geometrical transformations of particle-carrying fluid regions, that preserve the particle shape: \begin{lemma}\label{DivS:theta} Let $\bfw\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}$ be a rigid-body vector field on $\omega$, and let $\bfu\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{U}$}$ denote any extension of $\bfw$ in $\Omega$ satisfying $\bfu|_{\gamma}=\bfw$. Then: $\DivS\bfu = 0$ on $\gamma$. \end{lemma} \subsubsection*{Shape functionals and structure theorem} The structure theorem for shape derivatives (see e.g.~\cite[Chap. 8, Sec. 3.3]{del:zol}) then states that the derivative of any shape functional $J$ is a linear functional in the normal transformation velocity $\theta_n\hspace*{-0.1em}=\hspace*{-0.1em}\bfn\sip\boldsymbol{\theta}|_{\partial\Omega}$. For PDE-constrained shape optimization problems involving sufficiently smooth domains and data, the derivative $J'(\Omega;\boldsymbol{\theta})$ has the general form \begin{equation} J'(\Omega;\boldsymbol{\theta}) = \int_{\dO} g\, \theta_n \,\text{d}s, \label{shape:structure} \end{equation} where $g$ is the \emph{shape gradient} of $J$: intuitively speaking, the shape of $\partial\Omega_{\eta}$ determines that of $\Omega_{\eta}$ while the tangential part of $\boldsymbol{\theta}$ leaves $\Omega_{\eta}$ unchanged at leading order $O(\eta)$. \subsubsection*{Example: derivative of channel volume} The channel volume $V(\Omega)\hspace*{-0.1em}:=\hspace*{-0.1em}|\Omega|$ being given by~(\ref{IVS:def}a) with $F=1$, identity~(\ref{dd:IVS}a) and Green's theorem readily yield \begin{equation} V'(\Omega;\boldsymbol{\theta}) = \int_{\Omega} \mbox{div}\,\boldsymbol{\theta} \;\text{d}V = \int_{\dO} \theta_n \,\text{d}s = \iG \theta_n \,\text{d}s, \label{dd:volume} \end{equation} the last equality being due to provision (ii) in~\eqref{Theta:def} and the rigid particle motion.\enlargethispage*{5ex} \subsection{Shape derivative of the forward solution} \label{dd:forward} The functionals introduced in Sec.~\ref{optim:pb} depend on $\Gamma$ implicitly through the forward solution $(\bfu,p,\bff,\bfh,\bfxr)$. Finding their shape derivatives then involves the forward solution derivative $(\dd{\bfu},\dd{p},\dd{\bff},\dd{\bfh},\dd{\bfx})$. Unlike in the earlier study~\cite{bonnet2020shape}, here the flow domain evolves in time in a manner that is not \emph{a priori} known. Towards setting up the governing problem for $(\dd{\bfu},\dd{p},\dd{\bff},\dd{\bfh},\dd{\bfx})$, we thus begin by formulating the sensitivity of particle evolution to the shape of the channel wall. Perturbations of the wall shape, described through geometrical transformations of the form~\eqref{shape:pert}, induce perturbations of the particle motion through the evolution problem~(\ref{forward:PDE}-\ref{gamma0}), which can be described by making the rigid-body motion~\eqref{rigid:motion} dependent on $\eta$. Hence, for any material point of $\omega_{\eta}(t)$, we have \begin{equation} \bfxr^{\eta} = \bfxr(\bfx_0,t,\eta) := \bfc(t,\eta) + \bfR(t,\eta)\sip\bfx_0, \quad\bfx_0\hspace*{-0.1em}\in\hspace*{-0.1em}\omega_0 \label{rigid:motion:eta} \end{equation} The Lagrangian derivative at $\eta\sheq0$ of a point $\bfx^{\eta}$ of $\omega_{\eta}(t)$ following the shape transformation, being defined by $\bfx^{\eta} = \bfx \hspace*{-0.1em}+\hspace*{-0.1em} \eta\dd{\bfx} + o(\eta)$ whenever such expansion exists, is thus given by \begin{equation} \dd{\bfx} = \dd{\bfxr}(\bfx_0,t) = \del{\eta}\bfc(t,0) + \del{\eta}\bfR(t,0)\bfx_0 \quad\text{at \ } \bfx=\bfxr(\bfx_0,t)\in\omega(T) \end{equation} provided $\bfx,\bfc$ depend smoothly enough on $\eta$, and is moreover readily found to be a rigid-body velocity (since $\bfx_0\hspace*{-0.1em}=\hspace*{-0.1em}\big[\hspace*{0.1em}\bfR^{\text{\scriptsize T}}\sip(\bfx\hspace*{-0.1em}-\hspace*{-0.1em}\bfc)\hspace*{0.1em}\big](t,0)$ and $\big[\hspace*{0.1em}\del{\eta}\bfR\sip\bfR^{\text{\scriptsize T}}\hspace*{-0.1em}+\hspace*{-0.1em}\bfR\sip\del{\eta}\bfR^{\text{\scriptsize T}}\hspace*{0.1em}\big](t,0)\hspace*{-0.1em}=\hspace*{-0.1em}\mathbf{0}$). In addition, the particle motion being assumed for each $\eta$ to start from the same initial particle $\omega_0$, we have $\bfc(0,\eta)\hspace*{-0.1em}=\hspace*{-0.1em}\mathbf{0},\;\bfR(0,\eta)\hspace*{-0.1em}=\hspace*{-0.1em}\bfI$ and hence \begin{equation} \dd{\bfxr}(\cdot,0) = \mathbf{0}. \label{beta:init} \end{equation} Finally, as the no-slip condition~\eqref{forward:PDE:particle} remains true for any small enough $\eta$ (i.e. $\bfu^{\eta}=\bdot{\bfx}{}^{\eta}$), we find that \begin{equation} \dd{\bfu}(\bfx,t) = (\dd{\bfx}^{\scalebox{0.5}{$\;\bullet$}}\!\!\!)(\bfx,t), \qquad \bfx\hspace*{-0.1em}\in\hspace*{-0.1em}\gamma(t) \label{dd:u:beta} \end{equation} Since (again) we have $\bfx^{\eta} = \bfx \hspace*{-0.1em}+\hspace*{-0.1em} \eta\dd{\bfx} + o(\eta)$ in $\omega(t)$, $\dd{\bfx}$ is the transformation velocity for perturbations $\omega^{\eta}(t)$ of the particle $\omega(t)$. Sensitivies of integrals over $\Omega$ or $\gamma$ with respect to the shape of $\gamma$ are therefore given by~\eqref{dd:IVS} with $\boldsymbol{\theta},S$ replaced by $\dd{\bfx},\gamma$. The support of any (arbitrary) extension of $\dd{\bfx}$ to $\Omega$ required in~(\ref{dd:IVS}a) may be limited to a neighborhood of $\gamma$ in $\Omega$. In fact, if the particle motion avoids any contact with the channel wall, we may assume that $\text{supp}(\boldsymbol{\theta})\hspace*{-0.1em}\cap\hspace*{-0.1em}\omega\hspace*{-0.1em}=\hspace*{-0.1em}\emptyset$ and $\text{supp}(\dd{\bfx}\hspace*{-0.1em}\cap\hspace*{-0.1em}\Gamma)\hspace*{-0.1em}=\hspace*{-0.1em}\emptyset$. We are now ready to formulate the shape derivative of the forward solution:\enlargethispage*{3ex} \begin{proposition}\label{lm1} The shape derivative $(\dd{\bfu},\dd{p},\dd{\bff},\dd{\bfh},\dd{\bfx})$ of the forward solution $(\bfu,p,\bff,\bfh,\bfxr)$ satisfies \begin{equation}\begin{multlined} \text{For each $t\hspace*{-0.1em}\in\hspace*{-0.1em}[0,T]$, find }(\dd{\bfu},\dd{p},\dd{\bff},\dd{\bfh},\dd{\bfx}) \in \text{\boldmath $\mathcal{U}$}\hspace*{-0.1em}\times\hspace*{-0.1em}\mathcal{P}\hspace*{-0.1em}\times\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{F}$}}\hspace*{-0.1em}\times\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{H}$}}\hspace*{-0.1em}\times\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}, \\ \left\{ \begin{aligned} \text{(a) \ }& a(\dd{\bfu},\bfv) -b(\dd{\bfu},q) - b(\bfv,\dd{p}) - \big\langle\hspace*{0.1em}\dd{\bff},\bfv\hspace*{0.1em}\big\rangle_{\Gamma} - \big\langle\hspace*{0.1em}\dd{\bfh},\bfv\hspace*{0.1em}\big\rangle_{\!\gamma(t)} + \big\langle\hspace*{0.1em}\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfv,q)\hspace*{0.1em}\big),\boldsymbol{\nabla}^{\text{\scriptsize T}}\dd{\bfx} \hspace*{0.1em}\big\rangle_{\Omega(t)} \suite\qquad\qquad = -\big\langle\hspace*{0.1em}\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfv,q)\hspace*{0.1em}\big),\boldsymbol{\nabla}^{\text{\scriptsize T}}\boldsymbol{\theta} \hspace*{0.1em}\big\rangle_{\Omega(t)} + \big\langle\hspace*{0.1em}\bff,\bfv\DivS\boldsymbol{\theta}\hspace*{0.1em}\big\rangle_{\Gamma} & \forall(\bfv,q)&\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{U}$}\hspace*{-0.1em}\times\hspace*{-0.1em}\mathcal{P},\hspace*{-1em} \\ \text{(b) \ }& \big\langle\hspace*{0.1em}\dd{\bfu}{}^{\text{\tiny D}},\bfg\hspace*{0.1em}\big\rangle_{\Gamma} - \big\langle\hspace*{0.1em}\dd{\bfu},\bfg\hspace*{0.1em}\big\rangle_{\Gamma} = 0 & \forall\bfg &\hspace*{-0.1em}\in\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{F}$}}, \\ \text{(c) \ }& \big\langle\hspace*{0.1em} (\dd{\bfx}^{\scalebox{0.5}{$\;\bullet$}}\!\!\!),\bfk\hspace*{0.1em}\big\rangle_{\!\gamma(t)} - \big\langle\hspace*{0.1em}\dd{\bfu},\bfk\hspace*{0.1em}\big\rangle_{\!\gamma(t)} = 0 & \forall\bfk &\hspace*{-0.1em}\in\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{H}$}}, \\[-0.5ex] \text{(d) \ }& \big\langle\hspace*{0.1em} \dd{\bfh}, \boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\!\gamma(t)} = 0 & \forall\boldsymbol{\rho}&\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}, \end{aligned}\right.\label{der:weak}\hspace*{-1.5em} \end{multlined} \end{equation} where the particle motion $\gamma(t)=\bfxr(\gamma_0,t)$ is known (from solving the forward problem). Moreover, $\dd{\bfx}$ satisfies the initial condition~\eqref{beta:init}. The (symmetric in $\big(\hspace*{0.1em}(\bfu,p),(\bfv,q)\hspace*{0.1em}\big)$) tensor-valued function $\bfE$ is defined by \begin{equation}\begin{multlined} \bfE\big(\hspace*{0.1em}(\bfu,p),(\bfv,q)\hspace*{0.1em}\big) = 2(\bfD[\bfu]\dip\bfD[\bfv])\bfI - 2\bfD[\bfu]\sip\boldsymbol{\nabla}\bfv - 2\bfD[\bfv]\sip\boldsymbol{\nabla}\bfu \\ + p \big[\hspace*{0.1em} \boldsymbol{\nabla}\bfv - (\mbox{div}\,\bfv) \bfI \hspace*{0.1em}\big] + q \big[\hspace*{0.1em} \boldsymbol{\nabla}\bfu - (\mbox{div}\,\bfu) \bfI \hspace*{0.1em}\big], \label{E:expr} \end{multlined} \end{equation} and the Lagrangian derivative $\dd{\bfu}{}^{\text{\tiny D}}$ of the Dirichlet data $\bfuD$ involved in~(\ref{der:weak}b) is given by \begin{equation} \dd{\bfu}{}^{\text{\tiny D}} = \dd{\ell}\boldsymbol{\tau} + \ell(\del{s}\theta_n + \kappa\theta_s)\bfn, \qquad \text{with \ \ } \dd{\ell} = -\int_{0}^{\ell} \kappa\theta_n \,\text{d}s. \label{lm4} \end{equation} \end{proposition} \begin{proof} The proposition is obtained by applying the material differentiation identities~\eqref{dd:IVS} to the weak formulation~\eqref{forward:weak}, assuming that the test functions satisfy $(\dd{\bfv},\dd{q},\dd{\bfg},\dd{\bfk},\dd{\boldsymbol{\rho}})=(\mathbf{0},0,\mathbf{0},\mathbf{0},\mathbf{0})$, i.e. are convected under the shape perturbation. The latter provision is made possible by the absence of boundary constraints in the definition of $\text{\boldmath $\mathcal{U}$},\mathcal{P},\ensuremath{\mbox{\boldmath $\mathcal{F}$}},\ensuremath{\mbox{\boldmath $\mathcal{H}$}},\text{\boldmath $\mathcal{R}$}$ (Sec.~\ref{sec:forward:weak}). Moreover, equations (a), (c), (d) use that $\DivS\dd{\bfx}\sheq0$ (Lemma~\ref{DivS:theta}), while (c) also exploits~\eqref{dd:u:beta}. The tensor-valued function $\bfE$ arises from rearranging all domain integrals that explicitly involve either $\boldsymbol{\theta}$ or $\dd{\bfx}$. Finally, the proof of the given expression for $\dd{\bfu}{}^{\text{\tiny D}}$ is deferred to Appendix~\ref{app}.\enlargethispage*{5ex} \end{proof} \begin{remark} The provision $\boldsymbol{\theta}\hspace*{-0.1em}\in\hspace*{-0.1em} C_0^{1,\infty}(\Omega_{\text{all}})$ in~\eqref{Theta:def} ensures that domain integrals $\big\langle\hspace*{0.1em} \bfE,\boldsymbol{\nabla}^{\text{\scriptsize T}}\!\boldsymbol{\theta}\hspace*{0.1em}\big\rangle_{\Omega}$ appearing in Proposition~\ref{lm1} are well-defined for any $(\bfu,p)\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{U}$}\hspace*{-0.1em}\times\hspace*{-0.1em}\mathcal{P}$. \end{remark} \begin{remark} The mean of $\dd{p}$ is in practice irrelevant; setting it through $\big\langle\hspace*{0.1em} \dd{p},1\hspace*{0.1em}\big\rangle_{\Omega}+\big\langle\hspace*{0.1em} p\mbox{div}\,\boldsymbol{\theta},1\hspace*{0.1em}\big\rangle_{\Omega}=0$ would preserve the zero-mean constraint on $p$ under shape perturbations. \end{remark} \begin{remark} The tensor-valued function $\bfE$ given by~\eqref{E:expr} is the analog for Stokes flows of the elastic energy-momentum tensor~\cite{eshelby:75}, which plays a central role in the analysis of energy changes induced by crack growth in solids. \end{remark} \subsection{Shape derivative of a generic functional} \label{dd:J} Consider generic objective functionals \begin{equation} J(\Gamma) = \int_{\omega(T)} G(\bfx) \;\text{d}V + \int_{0}^T \Big\{\hspace*{0.1em} \iG F(\bff,\Gamma) \,\text{d}s + \iGL H(u_1) \,\text{d}s \hspace*{0.1em}\Big\} \,\text{d}t \label{J:gen:def} \end{equation} where $\bff$, $\bfu$ and $\omega(T)$ (through $\bfxr(\cdot,T)$) are components of the forward solution and $F,G,H$ are sufficiently regular densities. The dissipation, particle centroid and mass flow rate functionals introduced in Sec.~\ref{optim:pb} all have the format~\eqref{J:gen:def}, see Sec.~\ref{dd:explicit}, thanks in particular to the assumed explicit dependence of $F$ on the wall shape. The chosen notation $J(\Gamma)$ serves to emphasize the fact that the shape dependency is driven by $\Gamma$; in particular, the particle motion induces a $\Gamma$-dependent evolution of the fluid domain $\Omega(T)$. The derivative of the cost functional~\eqref{J:gen:def} is then given, using~(\ref{dd:IVS}a,b), by \begin{equation} \begin{multlined}\label{dJ:gen} J'(\Gamma;\boldsymbol{\theta}) = \int_{\omega(T)} \boldsymbol{\nabla} G\sip\dd{\bfx} \;\text{d}V + \int_{0}^T \Big\{\hspace*{0.1em} \iG \big[\hspace*{0.1em} \del{\bff}F(\bff,\Gamma)\sip\dd{\bff} + F^1(\bff,\Gamma,\boldsymbol{\theta}) + F(\bff,\Gamma)\DivS\boldsymbol{\theta} \hspace*{0.1em}\big] \,\text{d}s \\ + \iGL \big[\hspace*{0.1em} \del{u_1}H(u_1)\dd{u}_1 + H(u_1)\del{2}\theta_2 \hspace*{0.1em}\big] \,\text{d}s \hspace*{0.1em}\Big\} \,\text{d}t, \end{multlined} \end{equation} where $F^1:=\dd{F}|_{\scriptsize \dd{\bff}=\mathbf{0}}$ and having used that $\DivS\boldsymbol{\theta}=\del{2}\theta_2$ on $\Gamma_L$ and $\mbox{div}\,\dd{\bfx}\sheq0$ in $\omega(t)$. \subsubsection*{Adjoint problem} The shape derivative $J'(\Gamma)$ involves the forward solution derivatives $\dd{\bfu},\dd{\bff},\dd{\bfx}$ solving problem~\eqref{der:weak}. Finding the latter therefore seems at first glance necessary for evaluating $J'(\Gamma;\boldsymbol{\theta})$ in a given shape perturbation $\boldsymbol{\theta}$, but in fact can be avoided with the help of an adjoint problem defined at any time $t$ by the weak formulation: \begin{align} \lefteqn{ \text{For $t\hspace*{-0.1em}\in\hspace*{-0.1em}[0,T]$, find }(\bfuh,\hat{p},\bffh,\bfhh,\bfxh) \in \text{\boldmath $\mathcal{U}$}\hspace*{-0.1em}\times\hspace*{-0.1em}\mathcal{P}\hspace*{-0.1em}\times\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{F}$}}\hspace*{-0.1em}\times\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{H}$}}\hspace*{-0.1em}\times\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}, } & \suite \left\{ \begin{aligned} \text{(a) \ \ }& a(\bfv,\bfuh) -b(\bfuh,q) - b(\bfv,\hat{p}) - \big\langle\hspace*{0.1em}\bfv,\bffh\hspace*{0.1em}\big\rangle_{\Gamma} - \big\langle\hspace*{0.1em}\bfv,\bfhh\hspace*{0.1em}\big\rangle_{\!\gamma(t)} = -\big\langle\hspace*{0.1em} \del{u_1}H,v_1 \hspace*{0.1em}\big\rangle_{\Gamma_L} & \forall(\bfv,q) &\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{U}$}\hspace*{-0.1em}\times\hspace*{-0.1em}\mathcal{P}, \\ \text{(b) \ \ }& \big\langle\hspace*{0.1em}\bfg,\bfuh\hspace*{0.1em}\big\rangle_{\Gamma} = \big\langle\hspace*{0.1em} \del{\bff}F,\bfg \hspace*{0.1em}\big\rangle_{\Gamma} & \forall\bfg &\hspace*{-0.1em}\in\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{F}$}}, \\ \text{(c) \ \ }& - \big\langle\hspace*{0.1em}\bfk,\bfuh\hspace*{0.1em}\big\rangle_{\!\gamma(t)} + \big\langle\hspace*{0.1em} \bfk, \bfxh \hspace*{0.1em}\big\rangle_{\!\gamma(t)} = 0 & \forall\bfk &\hspace*{-0.1em}\in\hspace*{-0.1em}\ensuremath{\mbox{\boldmath $\mathcal{H}$}}, \\[-1ex] \text{(d) \ \ }& -\big\langle\hspace*{0.1em} \bdot{\bfhh},\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\!\gamma(t)} + \big\langle\hspace*{0.1em}\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big),\boldsymbol{\nabla}^{\text{\scriptsize T}}\!\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\Omega(t)} = 0 & \forall\boldsymbol{\rho} &\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}, \end{aligned}\right. \label{adj:weak} \intertext{and the final condition} \lefteqn{\qquad\text{(e) \ \ } \big\langle\hspace*{0.1em} \bfhh(\cdot,T),\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\!\gamma(T)} = -\big\langle\hspace*{0.1em} \boldsymbol{\nabla} G,\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\!\omega(T)} \qquad \text{at $t\hspace*{-0.1em}=\hspace*{-0.1em} T$}\hspace*{12.5em} \forall\boldsymbol{\rho}\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$},} \label{final:cond} \end{align} where the particle motion $\omega(t)$ is again known from solving the forward problem. The adjoint state $(\bfuh,\hat{p},\bffh,\bfhh,\bfxh)$ is thus created by applying a pressure difference $\Delta\hat{p}=\del{u_1}H$ between the channel end sections, while prescribing a velocity $\bfuh=\del{\bff}G$ on the channel walls; moreover, condition~(\ref{adj:weak}d) links the evolution of the net hydrodynamic force and torque on $\gamma(t)$ to the other variables of the adjoint solution. The particle derivative $\bdot{\bfhh}$ of the adjoint traction $\hat{\bfh}$ is taken following the known motion of the particle $\omega(t)$.\enlargethispage*{3ex} A backward time-stepping treatment using the sequence of discrete times introduced in Sec.~\ref{sec:forward:weak} may be defined by treating the particle derivative $\bdot{\bfhh}$ in Euler-explicit form, setting $\bfhh_n\hspace*{-0.1em}:=\hspace*{-0.1em}\bfhh(\bfx(t_n),t_{n})$ (i.e. following material points $\bfx_n$ in the known forward motion of $\gamma$) and $\bdot{\bfhh}_{n+1}\approx\big(\hspace*{0.1em} \bfhh_{n+1}\hspace*{-0.1em}-\hspace*{-0.1em}\bfhh_{n} \hspace*{0.1em}\big)/\Delta t$. Condition~(\ref{adj:weak}d) then takes the form \begin{equation}\label{adj:weak:e:FD} \big\langle\hspace*{0.1em} \bfhh_{n},\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\!\gamma_{n+1}} = \big\langle\hspace*{0.1em} \bfhh_{n+1},\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\!\gamma_{n+1}} - \Delta t \big\langle\hspace*{0.1em} \bfn\sip\bfE_{n+1},\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\!\gamma_{n+1}} \end{equation} where $\bfn\sip\bfE_{n+1}$ is given by \eqref{E:gamma} with the forward and adjoint solutions evaluated at $t\hspace*{-0.1em}=\hspace*{-0.1em} t_{n+1}$. A natural time-stepping method for the adjoint problem then is:\enlargethispage*{1ex} \begin{enumerate} \item Final time ($t\hspace*{-0.1em}=\hspace*{-0.1em} t_N$): solve equations~(\ref{adj:weak}a-c) and~\eqref{final:cond} for $\big(\hspace*{0.1em} \bfuh,\hat{p},\bffh,\bfhh,\bfxh \hspace*{0.1em}\big)(t_N)$. \item Generic time ($t\hspace*{-0.1em}=\hspace*{-0.1em} t_n,\;0\hspace*{-0.1em}\leq\hspace*{-0.1em} n\hspace*{-0.1em}<\hspace*{-0.1em} N$): solve equations~(\ref{adj:weak}a-d) for $\big(\hspace*{0.1em}\bfuh,\hat{p},\bffh,\bfhh,\bfxh\hspace*{0.1em}\big)(t_n)$, with condition~(\ref{adj:weak}d) in the time-discrete form~\eqref{adj:weak:e:FD}.\vspace*{2ex} \end{enumerate} \begin{remark} Like the forward problem~\eqref{forward:weak}, the adjoint problem~\eqref{adj:weak} is evolutive. The adjoint solution evolves backwards in time, from the final condition~(\ref{adj:weak}e). The particle motion in problem~\eqref{adj:weak} is given, whereas it was unknown in problem~\eqref{forward:weak}. \end{remark} \begin{remark} The provision $\forall\boldsymbol{\rho}\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}$ in~(\ref{adj:weak}d) is a notational abuse, as $\boldsymbol{\rho}$ therein is an extension to $C^{1,\infty}(\overline{\Omega})$ of a rigid-body transformation velocity $\boldsymbol{\rho}|_{\!\omega(t)}\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}$. Lemma~\ref{lm5} will show that, for given $\boldsymbol{\rho}|_{\!\omega(t)}\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}$, (\ref{adj:weak}d) does not depend on the choice of extension. \end{remark} \subsubsection*{Shape derivative using adjoint solution} Now, combining the derivative problem~\eqref{der:weak} and the adjoint problem~\eqref{adj:weak} with appropriate choices of test functions, we obtain an expression of $J'(\Gamma;\boldsymbol{\theta})$ that no longer involves the derivative solution: \begin{lemma}\label{lm2} The shape derivative $J'(\Gamma;\boldsymbol{\theta})$ is given by \begin{equation} \begin{multlined}\label{dd:J:gen:lm2} J'(\Gamma;\boldsymbol{\theta}) = \int_{0}^T \Big\{\hspace*{0.1em} \big\langle\hspace*{0.1em}\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big),\boldsymbol{\nabla}^{\text{\scriptsize T}}\!\boldsymbol{\theta} \hspace*{0.1em}\big\rangle_{\Omega(t)} + \big\langle\hspace*{0.1em}\dd{\bfu}{}^{\text{\tiny D}},\bffh\hspace*{0.1em}\big\rangle_{\Gamma} + \big\langle\hspace*{0.1em} H(u_1),\del{2}\theta_2 \hspace*{0.1em}\big\rangle_{\Gamma_L} \hspace*{-1ex} \\ + \iG \big\{\hspace*{0.1em} F^1(\bff,\Gamma,\boldsymbol{\theta}) + \big[\hspace*{0.1em} F(\bff,\Gamma) \hspace*{-0.1em}-\hspace*{-0.1em} \del{\bff}F(\bff,\Gamma) \sip \bff \hspace*{0.1em}\big]\,\DivS\boldsymbol{\theta} \hspace*{0.1em}\big\} \,\text{d}s \hspace*{0.1em}\Big\}\,\text{d}t \end{multlined} \end{equation} in terms of the transformation velocity $\boldsymbol{\theta}$ on $\Gamma$, of $(\bfu,p,\bff)$ solving the forward problem~\eqref{forward:weak}, and of $(\bfuh,\hat{p},\bffh)$ solving the adjoint problem~\eqref{adj:weak}. \end{lemma} \begin{proof} The test functions $(\bfv,q,\bfg,\bfk,\boldsymbol{\rho})$ are set to $(\bfuh,\hat{p},\bffh,\bfhh,\bfxh)$ in the derivative problem~\eqref{der:weak} and to $(\dd{\bfu},\dd{p},\dd{\bff},\dd{\bfh},\dd{\bfx})$ in the adjoint problem~\eqref{adj:weak}, and the combination $(\ref{der:weak}a)+(\ref{der:weak}b)+(\ref{der:weak}c)+(\ref{der:weak}d)-(\ref{adj:weak}a)+(\ref{adj:weak}b)-(\ref{adj:weak}c)-(\ref{adj:weak}d)$ then evaluated (using $\bfuh=\del{\bff}G$ on $\Gamma$, implied by~(\ref{adj:weak}b), along the way). This results in \begin{multline} \label{aux4} \big\langle\hspace*{0.1em} \del{\bff}F,\dd{\bff} \hspace*{0.1em}\big\rangle_{\Gamma} + \big\langle\hspace*{0.1em} \del{u_1}H,\dd{u_1} \hspace*{0.1em}\big\rangle_{\Gamma_L} = \big\langle\hspace*{0.1em}\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big),\boldsymbol{\nabla}^{\text{\scriptsize T}}\!\boldsymbol{\theta} \hspace*{0.1em}\big\rangle_{\Omega(t)} + \big\langle\hspace*{0.1em}\dd{\bfu}{}^{\text{\tiny D}},\bffh\hspace*{0.1em}\big\rangle_{\Gamma} \\[-1ex] - \big\langle\hspace*{0.1em} \del{\bff}F,\bff\DivS\boldsymbol{\theta} \hspace*{0.1em}\big\rangle_{\Gamma} + \big\langle\hspace*{0.1em} \dd{\bfx},\bdot{\bfhh}\hspace*{0.1em}\big\rangle_{\!\gamma(t)} + \big\langle\hspace*{0.1em} (\dd{\bfx}^{\scalebox{0.5}{$\;\bullet$}}\!\!\!),\bfhh\hspace*{0.1em}\big\rangle_{\!\gamma(t)}, \end{multline} which we then use in expression~\eqref{dJ:gen} of $J'(\Gamma;\boldsymbol{\theta})$ to obtain \begin{align} J'(\Gamma;\boldsymbol{\theta}) &= \big\langle\hspace*{0.1em} \boldsymbol{\nabla} G,\dd{\bfx} \hspace*{0.1em}\big\rangle_{\!\omega(T)} + \int_{0}^T \Big\{\hspace*{0.1em} \big\langle\hspace*{0.1em}\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big),\boldsymbol{\nabla}^{\text{\scriptsize T}}\!\boldsymbol{\theta} \hspace*{0.1em}\big\rangle_{\Omega(t)} + \big\langle\hspace*{0.1em}\dd{\bfu}{}^{\text{\tiny D}},\bffh\hspace*{0.1em}\big\rangle_{\Gamma} + \big\langle\hspace*{0.1em} H(u_1),\del{2}\theta_2 \hspace*{0.1em}\big\rangle_{\Gamma_L} \suite\quad + \iG \big\{\hspace*{0.1em} F^1(\bff,\Gamma,\boldsymbol{\theta}) + \big[\hspace*{0.1em} F(\bff,\Gamma) \hspace*{-0.1em}-\hspace*{-0.1em} \del{\bff}F \sip \bff \hspace*{0.1em}\big]\,\DivS\boldsymbol{\theta} \hspace*{0.1em}\big\} \,\text{d}s + \big\langle\hspace*{0.1em} \dd{\bfx},\bdot{\bfhh}\hspace*{0.1em}\big\rangle_{\!\gamma(t)} + \big\langle\hspace*{0.1em}(\dd{\bfx}^{\scalebox{0.5}{$\;\bullet$}}\!\!\!),\bfhh\hspace*{0.1em}\big\rangle_{\!\gamma(t)} \hspace*{0.1em}\Big\} \,\text{d}t \label{dJ:gen:2} \end{align} Then, we observe that the last two terms in the above formula combine to an exact particle time derivative (by virtue of the differentiation identity~(\ref{dd:IVS}b) wherein $\eta$ and $\boldsymbol{\theta}$ are replaced with the physical time $t$ and particle velocity $\bdot{\bfx}$, and recalling that $\DivS\bdot{\bfx}\sheq0$): \begin{equation} \begin{multlined} \label{aux5} \int_{0}^T \Big\{\hspace*{0.1em} \big\langle\hspace*{0.1em} \big\langle\hspace*{0.1em} \dd{\bfx},\bdot{\bfhh}\hspace*{0.1em}\big\rangle_{\!\gamma(t)} + (\dd{\bfx}^{\scalebox{0.5}{$\;\bullet$}}\!\!\!),\bfhh\hspace*{0.1em}\big\rangle_{\!\gamma(t)} \hspace*{0.1em}\big\} \,\text{d}t = \int_{0}^T \der{}{t}\big\langle\hspace*{0.1em} \dd{\bfx},\bfhh\hspace*{0.1em}\big\rangle_{\!\gamma(t)} \,\text{d}t = \big\langle\hspace*{0.1em} \dd{\bfx},\bfhh\hspace*{0.1em}\big\rangle_{\!\gamma} \hspace*{0.1em}\Big|^{t=T}_{t=0} = -\big\langle\hspace*{0.1em} \boldsymbol{\nabla} G,\dd{\bfx} \hspace*{0.1em}\big\rangle_{\!\omega(T)}, \end{multlined} \end{equation} with the last equality resulting from the initial condition~(\ref{der:weak}e) and the final condition~(\ref{adj:weak}e). As a result, \eqref{dJ:gen:2} yields $J'(\Gamma;\boldsymbol{\theta})$ as claimed in the Lemma. \end{proof} \begin{remark} The evolution equation~(\ref{adj:weak}d) and final condition~(\ref{adj:weak}e) are designed to achieve complete elimination from $J'(\Gamma;\boldsymbol{\theta})$ of the induced transformation velocity $\dd{\bfx}$ (featured among the unknowns of the derivative problem~\eqref{der:weak}); as a result (and as usual), the adjoint solution evolves backwards in time. We moreover observe that Lemma~\ref{lm2} crucially exploits the weak forms of the derivative and adjoint problems.\enlargethispage*{1ex} \end{remark} \subsubsection*{Boundary-only formulation of the shape derivative} Neither the adjoint problem~\eqref{adj:weak} nor the shape derivative expression provided by Lemma~\ref{lm2} can be directly used within a BIE framework, in both cases because of the domain integral terms involving $\bfE$. We now show that those terms can be reformulated as boundary integrals involving only quantities defined on $\Gamma$ and $\Gamma_L$, thanks to the following identity: \begin{lemma}\label{lm5} Let $(\bfu,p)$ and $(\bfuh,\hat{p})$ respectively satisfy $\mbox{div}\,\bfu\sheq0$, $-\Delta\bfu\hspace*{-0.1em}+\hspace*{-0.1em}\boldsymbol{\nabla} p\hspace*{-0.1em}=\hspace*{-0.1em}\mathbf{0}$ and $\mbox{div}\,\bfuh\sheq0$, $-\Delta\bfuh\hspace*{-0.1em}+\hspace*{-0.1em}\boldsymbol{\nabla}\hat{p}\hspace*{-0.1em}=\hspace*{-0.1em}\mathbf{0}$ in $\Omega$. Assume that $\bfu$, $\bfuh$ and $p$ are periodic, and set $\Delta\hat{p}(x_2) := \hat{p}(L,x_2)-\hat{p}(0,x_2)$ (i.e. periodicity is not assumed for $\hat{p}$). Then, for any vector field $\boldsymbol{\zeta}\in C^{1,\infty}_0(\Omega_{\text{all}})$, the following identity holds: \begin{equation} \big\langle\hspace*{0.1em}\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big),\boldsymbol{\nabla}^{\text{\scriptsize T}}\!\boldsymbol{\zeta} \hspace*{0.1em}\big\rangle_{\Omega(t)} = \int_{\Gamma\cup\gamma(t)} \bfn\sip\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big)\sip\boldsymbol{\zeta} \,\text{d}s + \int_{\Gamma_L} \Delta\hat{p} \, (\del{2} u_1)\zeta_2 \,\text{d}s. \end{equation} Moreover, if the traces on $\gamma$ of $\bfu,\bfuh$ are rigid-body velocities with respective angular velocities $\varrho,\hat{\varrho}$, we have \begin{equation} \bfn\sip\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big) = -\big(\hspace*{0.1em} \hat{\varrho}\bfh \hspace*{-0.1em}+\hspace*{-0.1em} \varrho\bfhh \hspace*{0.1em}\big)\sip\boldsymbol{r} - h_s\hat{h}_s\,\bfn \qquad\text{on $\gamma$}, \label{E:gamma} \end{equation} where $\bfh\hspace*{-0.1em}=\hspace*{-0.1em}\boldsymbol{\sigma}[\bfu,p]\sip\bfn$, $\bfhh\hspace*{-0.1em}=\hspace*{-0.1em}\boldsymbol{\sigma}[\bfuh,\hat{p}]\sip\bfn$ and $\boldsymbol{r}=\bfe_2\hspace*{-1pt}\otimes\hspace*{-1pt}\bfe_1-\bfe_1\hspace*{-1pt}\otimes\hspace*{-1pt}\bfe_2=\bfn\hspace*{-0.1em}\times\hspace*{-0.1em}\boldsymbol{\tau}-\boldsymbol{\tau}\hspace*{-0.1em}\times\hspace*{-0.1em}\bfn$ (see~\eqref{rigid:velocity}). \end{lemma} \begin{proof} See Appendix~\ref{lm5:proof}. \end{proof} Lemma~\ref{lm5} is first applied, with $\boldsymbol{\zeta}\hspace*{-0.1em}=\hspace*{-0.1em}\boldsymbol{\rho}$, to the term $\big\langle\hspace*{0.1em}\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big),\boldsymbol{\nabla}^{\text{\scriptsize T}}\!\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\Omega(t)}$ in the adjoint evolution equation~(\ref{adj:weak}d), in which case the velocity fields $\bfu$ and $\bfuh$ both have rigid-body traces on $\gamma(t)$ while $\boldsymbol{\rho}$ can be safely assumed to verify $\text{supp}(\boldsymbol{\rho})\cap\Gamma=\emptyset$. The evolution equation~(\ref{adj:weak}d) thus becomes \begin{equation} -\big\langle\hspace*{0.1em} \bdot{\bfhh},\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\!\gamma(t)} + \big\langle\hspace*{0.1em} \bfn\sip\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big),\boldsymbol{\rho} \hspace*{0.1em}\big\rangle_{\gamma(t)} = 0 \qquad \forall\boldsymbol{\rho}\hspace*{-0.1em}\in\hspace*{-0.1em}\text{\boldmath $\mathcal{R}$}, \label{evol:weak} \end{equation} with $\bfn\sip\bfE$ given by~\eqref{E:gamma}, allowing the adjoint problem~\eqref{adj:weak} to be recast in BIE form.\enlargethispage*{1ex} We then evaluate $\big\langle\hspace*{0.1em}\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big),\boldsymbol{\nabla}^{\text{\scriptsize T}}\!\boldsymbol{\theta} \hspace*{0.1em}\big\rangle_{\Omega(t)}$ in expression~\eqref{dd:J:gen:lm2} of $J'(\Gamma;\boldsymbol{\theta})$ by means of Lemma~\ref{lm5} applied (with $\boldsymbol{\zeta}\hspace*{-0.1em}=\hspace*{-0.1em}\boldsymbol{\rho}$) to the solutions of the forward problem~\eqref{forward:weak} and the adjoint problem~\eqref{adj:weak} (for which $\Delta \hat{p}=\del{u_1}H$). Observing along the way that \begin{equation} \int_{\Gamma_L} \del{u_1}H(u_1)\; (\del{2} u_1)\theta_2 \,\text{d}s + \int_{\Gamma_L} H(u_1) \, \del{2}\theta_2 \,\text{d}s = \iGL \del{2}\big(\hspace*{0.1em} H(u_1)\theta_2 \hspace*{0.1em}\big) \,\text{d}s, \end{equation} the shape derivative of $J$ is recast in the following form, without domain integrals: \begin{align} J'(\Gamma;\boldsymbol{\theta}) &= \int_{0}^T \Big\{\hspace*{0.1em} \iG \Big(\, \bffh\sip\dd{\bfu}{}^{\text{\tiny D}} + \bfn\sip\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big)\sip\boldsymbol{\theta} \,\Big) \,\text{d}s + \iGL \del{2}\big(\hspace*{0.1em} H(u_1)\theta_2 \hspace*{0.1em}\big) \,\text{d}s \suite\qquad + \iG \Big(\, F^1(\bff,\Gamma,\boldsymbol{\theta}) + \big[\hspace*{0.1em} F(\bff,\Gamma) \hspace*{-0.1em}-\hspace*{-0.1em} \del{\bff}F(\bff,\Gamma) \sip \bff \hspace*{0.1em}\big]\,\DivS\boldsymbol{\theta} \,\Big) \,\text{d}s \hspace*{0.1em}\Big\} \,\text{d}t \label{dd:J:gen:G} \end{align} Expression~\eqref{dd:J:gen:G} is still somewhat inconvenient for use in a BIE framework as it involves (through $\bfD[\bfu]$ and $\bfD[\bfuh]$ in $\bfE$) the complete velocity gradient on $\Gamma$. This can be alleviated by reformulating the latter in terms of tractions and tangential derivatives of velocities, eliminating normal derivatives of velocities by means of the constitutive relation~(\ref{forward:PDE}b). This step is here implemented through the following explicit auxiliary identity, established (in Appendices~\ref{grad:curv} and~\ref{proof:lemma5}) using curvilinear coordinates: \begin{align} \lefteqn{ \bffh\sip\dd{\bfu}{}^{\text{\tiny D}} + \bfn\sip\bfE\big(\hspace*{0.1em}(\bfu,p),(\bfuh,\hat{p})\hspace*{0.1em}\big)\sip\boldsymbol{\theta} + \big[\hspace*{0.1em} F(\bff,\Gamma) \hspace*{-0.1em}-\hspace*{-0.1em} \del{\bff}F(\bff,\Gamma) \sip \bff \hspace*{0.1em}\big]\,\DivS\boldsymbol{\theta} } & \label{forward:wall} \\[-0.5ex] & \mbox{}\hspace{5pt} = d_s \big(\hspace*{0.1em} \big[\hspace*{0.1em} F(\bff,\Gamma) \hspace*{-0.1em}-\hspace*{-0.1em} \del{\bff}F(\bff,\Gamma) \sip \bff \hspace*{0.1em}\big]\theta_s \hspace*{0.1em}\big) + \dd{\ell}\hat{f}_s - \ell(\del{s}\theta_n)\hat{f}_n + \kappa\ell \hat{f}_s\theta_n - \big(\hspace*{0.1em}\del{s} F\hspace*{0.1em}\big)\theta_s \suite\quad + \Big(\, \big[\hspace*{0.1em} f_s\bfn - p\boldsymbol{\tau} \hspace*{0.1em}\big]\sip\del{s}\bfuh - f_s\hat{f}_s - \kappa\big[\hspace*{0.1em} F(\bff,\Gamma) \hspace*{-0.1em}-\hspace*{-0.1em} \del{\bff}F(\bff,\Gamma) \sip \bff \hspace*{0.1em}\big] \,\Big)\theta_n, \end{align} where $\del{s} F$ indicates the partial derivative w.r.t. $s$ of $F(\bff,\Gamma)$ (with $\bff$ frozen) while $\text{d}_s$ denotes a total derivative w.r.t. $s$.\enlargethispage*{1ex} We now use the above identities into~\eqref{dd:J:gen:G}. Since $\text{d}_s \big(\hspace*{0.1em} \big[\hspace*{0.1em} F \hspace*{-0.1em}-\hspace*{-0.1em} \del{\bff}F\sip\bff \hspace*{0.1em}\big]\theta_s \hspace*{0.1em}\big) \,\text{d}s$ integrates to zero over $\Gamma$ by virtue of the spatial periodicity of the forward solution and requirement (i) of~\eqref{Theta:def}, we obtain the following final result for $J'(\Gamma;\boldsymbol{\theta})$, suitable for direct implementation using the output of a BIE solver: \begin{proposition}\label{dJ:final} The shape derivative of any cost functional $J$ of the form~\eqref{J:gen:def} in a shape perturbation whose transformation velocity field $\boldsymbol{\theta}$ satisfies assumptions~\eqref{Theta:def} is given (with $f_s\hspace*{-0.1em}:=\hspace*{-0.1em}\bff\sip\boldsymbol{\tau}$, $\hat{f}_s\hspace*{-0.1em}:=\hspace*{-0.1em}\bffh\sip\boldsymbol{\tau}$) by \begin{align} J'(\Gamma;\boldsymbol{\theta}) &= \int_{0}^T \Big\{\hspace*{0.1em} \iG \Big(\, F^1 - \big(\hspace*{0.1em}\del{s}F\hspace*{0.1em}\big)\theta_s + \dd{\ell} \hat{f}_s - \ell(\del{s}\theta_n)(\hat{p}\shp2\boldsymbol{\tau}\sip\del{s}\bfuh) \,\Big) \,\text{d}s + \iGL \del{2}\big(\hspace*{0.1em} H(u_1)\theta_2 \hspace*{0.1em}\big) \,\text{d}s \suite\qquad + \iG \Big(\, (f_s\bfn \hspace*{-0.1em}-\hspace*{-0.1em} p\boldsymbol{\tau})\sip\del{s}\bfuh + \kappa\ell\hat{f}_s - f_s\hat{f}_s - \kappa\big[\hspace*{0.1em} F \hspace*{-0.1em}-\hspace*{-0.1em} \del{\bff}F \sip \bff \hspace*{0.1em}\big] \,\Big) \theta_n \,\text{d}s. \end{align} \end{proposition} We now apply Proposition~\ref{dJ:final} to the specific functionals introduced in Section~\ref{optim:pb}. \subsection{Sensitivity results for functionals involved in pumping problem} \label{dd:explicit} The adjoint state solving the weak formulation~\eqref{adj:weak} satisfies the incompressible Stokes equations with periodicity conditions \begin{subequations} \begin{equation} -\Delta\bfuh + \boldsymbol{\nabla}\hat{p} = \mathbf{0}, \quad \mbox{div}\,\bfuh = 0 \quad \text{in $\Omega(t)$}, \qquad \bfuh|_{\Gamma_L} = \bfuh|_{\Gamma_0}, \label{adjoint:PDE} \end{equation} the fluid domain $\Omega(t)$ and particle configuration $\gamma(t)$ being those determined by the forward problem. Moreover, the adjoint fluid motion results from the velocity being prescribed by \begin{equation} \bfuh = \bfxh \qquad \text{on $\gamma(t)$} \label{adjoint:PDE:particle} \end{equation} on the particle, and by \begin{equation} \bfuh = \del{\bff}F \qquad \text{on $\Gamma$}, \label{adjoint:PDE:wall} \end{equation} on the wall, as well as the pressure drop being prescribed as \begin{equation} \hat{p}\mid_{\Gamma_L} - \hat{p}\mid_{\Gamma_0} = \del{u_1}H. \label{adjoint:PDE:drop} \end{equation} Moreover, $\bfhh$ and $\bffh$ in the weak adjoint problem~\eqref{adj:weak} are the stress vectors arising from the enforcement (as equality constraints) of the BCs~\eqref{adjoint:PDE:particle} and~\eqref{adjoint:PDE:wall}; in particular, $\bfhh\hspace*{-0.1em}=\hspace*{-0.1em}\boldsymbol{\sigma}[\bfuh,\hat{p}]\sip\bfn$ on $\gamma(t)$ and $\bffh\hspace*{-0.1em}=\hspace*{-0.1em}\boldsymbol{\sigma}[\bfuh,\hat{p}]\sip\bfn$ on $\Gamma$. Equations~(\ref{adjoint:PDE}-d) are the strong-form counterparts of equations~(\ref{adj:weak}a-c), and define a well-posed problem in case $\bfxh$ is given. However, like $\bfxr$ in the forward problem, $\bfxh$ is unknown. This is compensated by the fact that $\bfhh$ must satisfy additional requirements, namely the evolution equation~(\ref{adj:weak}d) and the final condition~(\ref{adj:weak}e). The strong form of the evolution equation is \begin{equation} \begin{aligned} \big\langle\hspace*{0.1em} \bdot{\bfhh} ,1 \hspace*{0.1em}\big\rangle_{\gamma(t)} &= -\big\langle\hspace*{0.1em} \big(\hspace*{0.1em}\varrho\bfhh\sip\boldsymbol{r} \hspace*{-0.1em}+\hspace*{-0.1em} h_s\hat{h}_s\,\bfn\hspace*{0.1em}\big)\,,1\hspace*{0.1em}\big\rangle_{\gamma(t)}, \\[-1ex] \big\langle\hspace*{0.1em} \bdot{\bfhh},\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx \hspace*{0.1em}\big\rangle_{\gamma(t)} &= \big\langle\hspace*{0.1em} \big(\hspace*{0.1em}\hat{\varrho}\bfh \hspace*{-0.1em}+\hspace*{-0.1em} \varrho\bfhh \hspace*{-0.1em}-\hspace*{-0.1em} h_s\hat{h}_s\,\boldsymbol{\tau}\hspace*{0.1em}\big)\,,\bfx \hspace*{0.1em}\big\rangle_{\gamma(t)} \end{aligned} \qquad t\hspace*{-0.1em}\in\hspace*{-0.1em}[0,T]. \label{adjoint:evolution} \end{equation} (having invoked~\eqref{E:gamma} and used that $\boldsymbol{r}\sip(\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx)=-\bfx$, $\bfn\sip(\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx)=\boldsymbol{\tau}\sip\bfx$ and, by virtue of~(\ref{forward:weak}d), $\big\langle\hspace*{0.1em} \bfh,1\hspace*{0.1em}\big\rangle_{\gamma}\sheq0$) for the evolution equation, while that of the final condition reads \begin{equation} \begin{aligned} \big\langle\hspace*{0.1em} \bfhh(\cdot,T),1 \hspace*{0.1em}\big\rangle_{\gamma(T)} &= - \big\langle\hspace*{0.1em} \boldsymbol{\nabla} G,1 \hspace*{0.1em}\big\rangle_{\omega(T)}, \\ \big\langle\hspace*{0.1em} \bfhh(\cdot,T),\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx \hspace*{0.1em}\big\rangle_{\gamma(T)} &= -\big\langle\hspace*{0.1em} \boldsymbol{\nabla} G, \bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx \hspace*{0.1em}\big\rangle_{\omega(T)}. \end{aligned} \label{adjoint:final} \end{equation} \end{subequations} Equations~(\ref{adjoint:PDE}-f) together constitute the strong form of the weak adjoint problem~\eqref{adj:weak}. Equations~\eqref{adjoint:PDE:particle}, \eqref{adjoint:PDE:drop} and~\eqref{adjoint:final} depend on the objective function being considered, whereas equations~(\ref{adjoint:PDE},b,e) do not. \subsubsection*{Shape derivative of dissipation functional} The dissipation functional $J_{\text{\tiny W}}$, defined by~\eqref{J:loss:def}, is a particular instance of~\eqref{J:gen:def} with $F(\bff,\Gamma)=(\bfuD\hspace*{-0.1em}+\hspace*{-0.1em} \bfe_1)\sip\bff$ and $G\hspace*{-0.1em}=\hspace*{-0.1em} H\sheq0$. In particular, we have \begin{equation} \del{s} F =\big(\hspace*{0.1em}\del{s}\bfuD\hspace*{0.1em}\big)\sip\bff = -\kappa\ell p, \qquad \del{\bff}F\hspace*{-0.1em}=\hspace*{-0.1em}\bfuD\hspace*{-0.1em}+\hspace*{-0.1em} \bfe_1, \end{equation} from which we find $\del{s}\bfuh = (\kappa\ell)\bfn$. We also have $F \hspace*{-0.1em}-\hspace*{-0.1em} \bff\sip\del{\bff}F=0$. Finally, $F$ depends on $\Gamma$ through $\bfuD$ given by~\eqref{noslip:2D}, so that $F^1=\dd{\bfu}{}^{\text{\tiny D}}\sip\bff$, which in turn yields \begin{equation} F^1\hspace*{-0.1em}-\hspace*{-0.1em}\del{s} F = \dd{\ell}f_s - \kappa\ell\del{s}\theta_n \end{equation} with the help of~\eqref{lm4}. The adjoint solution is governed in strong form by equations~\eqref{adjoint:PDE} to~\eqref{adjoint:final} particularized to the case of $J_{\text{\tiny W}}$, i.e. the velocity on the particle and the pressure drop are prescribed as \begin{equation} \bfuh = \bfu^{\text{\tiny D}}\hspace*{-0.1em}+\hspace*{-0.1em} \bfe_1 \quad \text{on $\Gamma$}, \qquad \hat{p}\mid_{\Gamma_L}\hspace*{-0.1em}-\hspace*{-0.1em}\hat{p}\mid_{\Gamma_0} = 0. \end{equation} while the final conditions~\eqref{adjoint:final} on $\bfhh$ are (since $G\sheq0$) homogeneous: \begin{equation} \big\langle\hspace*{0.1em} \bfhh(\cdot,T),1 \hspace*{0.1em}\big\rangle_{\gamma(T)} = 0, \qquad \big\langle\hspace*{0.1em} \bfhh(\cdot,T),\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx \hspace*{0.1em}\big\rangle_{\gamma(T)} = 0 \label{adjoint:final:hom} \end{equation} Applying Proposition~\ref{dJ:final} to this case, the shape derivative of $J_{\text{\tiny W}}$ is therefore obtained (upon evaluation of $\dd{\bfu}{}^{\text{\tiny D}}\sip\bff$ with~\eqref{lm4}) as\enlargethispage*{1ex} \begin{equation} \label{dd:Jw} J'_{\text{\tiny W}}(\Gamma;\boldsymbol{\theta}) = \int_{0}^T \!\! \iG \Big\{\hspace*{0.1em} \Big[\hspace*{0.1em} \kappa\ell(f_s\hspace*{-0.1em}+\hspace*{-0.1em}\hat{f}_s) - f_s\hat{f}_s \hspace*{0.1em}\Big]\theta_n + \dd{\ell}(f_s\hspace*{-0.1em}+\hspace*{-0.1em}\hat{f}_s) - \ell(\del{s}\theta_n)(p\hspace*{-0.1em}+\hspace*{-0.1em}\hat{p}) \hspace*{0.1em}\Big\} \,\text{d}s \,\text{d}t \end{equation} \subsubsection*{Shape derivative of net particle motion} The net particle motion $D(\Gamma)$, defined by~\eqref{xG:def}. is another shape functional of the form~\eqref{J:gen:def}, with $G(\bfx)= x_1/|\omega|$ and $F\hspace*{-0.1em}=\hspace*{-0.1em} H\sheq0$. The adjoint problem in strong form still consists of equations~\eqref{adjoint:PDE} to~\eqref{adjoint:final}, whose particularization for $D(\Gamma)$ results in vanishing entails setting to zero the velocity on the particle and the pressure: \begin{equation} \bfuh = \mathbf{0} \quad \text{on $\Gamma$}, \qquad \hat{p}\mid_{\Gamma_L}\hspace*{-0.1em}-\hspace*{-0.1em}\hat{p}\mid_{\Gamma_0} = 0, \end{equation} while the final conditions~\eqref{adjoint:final} become \begin{equation} \text{(a) \ }\big\langle\hspace*{0.1em} \bfhh(\cdot,T),1 \hspace*{0.1em}\big\rangle_{\gamma(T)} = -\bfe_1, \qquad \text{(b) \ }\big\langle\hspace*{0.1em} \bfhh(\cdot,T),\bfe_3\hspace*{-0.1em}\times\hspace*{-0.1em}\bfx \hspace*{0.1em}\big\rangle_{\gamma(T)} = x_2^{\text{\tiny G}}(T) \label{adjoint:final:centroid} \end{equation} We note that conditions~\eqref{adjoint:evolution} and~\eqref{adjoint:final:centroid}, as well as the definition of $\bfhh$ as a traction vector, assume the orientation convention of Fig.~\ref{geom:2D} on $\gamma(t)$ while $\bfx$ is the absolute vector position in~(\ref{adjoint:final:centroid}b). The derivative $D'(\Gamma;\boldsymbol{\theta})$ of $D(\Gamma)$ is found from Proposition~\ref{dJ:final} to be given by the right-hand side of~\eqref{dd:cQ:result} without the contributions of $\Gamma_L$, i.e.:\enlargethispage*{1ex} \begin{equation} D'(\Gamma;\boldsymbol{\theta}) = \int_0^{T}\!\! \iG \Big\{\hspace*{0.1em} \big(\hspace*{0.1em} \ell\kappa\hat{f}_s - f_s\hat{f}_s \hspace*{0.1em}\big) \theta_n + \dd{\ell} \hat{f}_s - \ell(\del{s}\theta_n)\hat{p} \hspace*{0.1em}\Big\} \,\text{d}s \,\text{d}t \label{dd:D} \end{equation} \subsubsection*{Shape derivative of mass flow rate functional} The shape derivative of the time-averaged mass flow functional $C(\Gamma)$ defined by~\eqref{flowrate:expr} is given by \begin{equation} Q'(\Gamma;\boldsymbol{\theta}) = - |\omega|\big\langle\hspace*{0.1em} D'(\Gamma),\boldsymbol{\theta} \hspace*{0.1em}\big\rangle + \big\langle\hspace*{0.1em} |\Omega|',\boldsymbol{\theta} \hspace*{0.1em}\big\rangle + \big\langle\hspace*{0.1em} C'(\Gamma),\boldsymbol{\theta} \hspace*{0.1em}\big\rangle, \end{equation} with the first two derivatives respectively given by~\eqref{dd:D} and~\eqref{dd:volume}, so that we only need to focus on the evaluation of $C'(\Gamma;\boldsymbol{\theta})$. $C(\Gamma)$, defined in~\eqref{flowrate:expr}, is a shape functional of the form~\eqref{J:gen:def}, with $F\hspace*{-0.1em}=\hspace*{-0.1em} G\hspace*{-0.1em}=\hspace*{-0.1em} 0$ and $H(u_1)\hspace*{-0.1em}=\hspace*{-0.1em} u_1/T$. The adjoint solution associated with $C(\Gamma)$ therefore solves problem~\eqref{adjoint:PDE}--\eqref{adjoint:final} with the above-specified $F,G,H$, so that~(\ref{adjoint:PDE:particle},d) become \begin{equation} \bfuh = \mathbf{0} \quad \text{on $\Gamma$}, \qquad \hat{p}\mid_{\Gamma_L}\hspace*{-0.1em}-\hspace*{-0.1em}\hat{p}\mid_{\Gamma_0} = 1/T \end{equation} and the homogeneous final conditions~\eqref{adjoint:final:hom} again apply. The shape derivative of $C(\Gamma)$ is finally found from Proposition~\ref{dJ:final} to be given by \begin{align} \label{dd:cQ:result} C'(\Gamma;\boldsymbol{\theta}) &= \int_{0}^T \!\! \iG \Big\{\hspace*{0.1em} \big(\hspace*{0.1em} \ell\kappa\hat{f}_s - f_s\hat{f}_s \hspace*{0.1em}\big) \theta_n + \dd{\ell} \hat{f}_s - \ell(\del{s}\theta_n)\hat{p} \hspace*{0.1em}\Big\} \,\text{d}s \,\text{d}t \suite\qquad\qquad + \inv{T}\int_{0}^T \big[\hspace*{0.1em} \big(\hspace*{0.1em} u_1\theta_2 \hspace*{0.1em}\big)(\bfz^+,\cdot) - \big(\hspace*{0.1em} u_1\theta_2 \hspace*{0.1em}\big)(\bfz^-,\cdot) \hspace*{0.1em}\big] \,\text{d}t \end{align} \section{Numerical scheme}\label{sc:numerical} In this section, we describe our numerical solvers for the shape optimization problem~\eqref{eq:opt} that employ the shape sensitivity formulas derived in the previous section. \subsection{Optimization method}\label{sec:optmethod} To avoid second-order derivatives of the cost functional, whose evaluation is somewhat challenging in our case, we solve the shape optimization problem~\eqref{eq:opt} using an augmented Lagrangian (AL) approach and Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm. An augmented Lagrangian $\mathcal{L}_{\text{\scriptsize A}}$ is defined by \begin{equation} \mathcal{L}_{\text{\scriptsize A}}(\Omega,\lambda;\sigma) = J_{\text{\tiny W}}(\Omega) - \lambda_1 C_{\text{\scriptsize V}}(\Omega) - \lambda_2 C_{\text{\scriptsize D}}(\Omega)+ \frac{\sigma}{2} [ C^2_{\text{\scriptsize V}}(\Omega)+C^2_{\text{\scriptsize D}}(\Omega)], \label{eq:augla}\end{equation} where $\sigma$ is a positive penalty coefficient and $\lambda = (\lambda_1, \lambda_2)$ are Lagrange multipliers. Setting the initial values $\sigma^0$ and $\lambda^0$ using heuristics, the AL method introduces a sequence $(m= 1, 2,\dots)$ of unconstrained minimization problems: \begin{equation} \Omega_m = \argmin_{\Omega \, \hspace*{-0.1em}\in\hspace*{-0.1em}\, \mathcal{O}} \mathcal{L}_{\text{\scriptsize A}}(\Omega,\lambda^m;\sigma^m) , \label{eq:minsubp}\end{equation} with explicit Lagrange multiplier estimates $\lambda^m$ and increasing penalties $\sigma^m$. We use the BFGS algorithm \cite{NoceWrig06}, a quasi-Newton method, for solving~\eqref{eq:minsubp}. Equations~\eqref{dd:volume}, \eqref{dd:Jw} and \eqref{dd:D} are used in this context for gradient evaluations in the line search method. The overall optimization procedure for problem~\eqref{eq:opt} is summarized in the following algorithm: \noindent\rule{\textwidth}{0.5pt} \begin{enumerate} \item[1:] Choose initial fluid region $\Omega_0$ \item[2:] Set convergence tolerance $\zeta^{\star}$, $\lambda^0$, $\sigma^0$, and $\zeta^1= (\sigma^0)^{-0.1}$ \item[3:] \textbf{for} $m=1,2, \dots$ \textbf{do} \begin{enumerate} \item[(3-a):] Solve unconstrained minimization~\eqref{eq:minsubp} for $\Omega_m$, {go to} (3-b) \item[(3-b):] \textbf{if} $\max(|C_{\text{\scriptsize V}}(\Omega_m)|,|C_{\text{\scriptsize D}}(\Omega_m)|) \hspace*{-0.1em}<\hspace*{-0.1em} \zeta^{m}$ \textbf{then} {go to} (3-c), \textbf{else} {go to} (3-e) \item[(3-c):] \textbf{if} $\max(|C_{\text{\scriptsize V}}(\Omega_m)|,|C_{\text{\scriptsize D}}(\Omega_m)|) \hspace*{-0.1em}<\hspace*{-0.1em} \zeta^{\star}$ \textbf{then} STOP and \textbf{return} $\Omega^{\star}:=\Omega_m$, \textbf{else} {go to} (3-d) \item[(3-d):] \# update multiplier\\ $\lambda^{m}_1=\lambda^{m-1}_1-\sigma^{m-1} C_{\text{\scriptsize V}}(\Omega_m)$, \; $\lambda^{m}_2=\lambda^{m-1}_2-\sigma^{m-1} C_{\text{\scriptsize D}}(\Omega_m)$ \\ $\sigma^{m}=\sigma^{m-1}$, $\zeta^{m+1}=(\sigma^m)^{-0.9}\zeta^m$ \\ {go to} (3-a) \item[(3-e):] \# increase penalty \\ $\sigma^{m}=10\sigma^{m-1}$ \\ $\lambda^{m}_1=\lambda^{m-1}_1, \lambda^{m}_2=\lambda^{m-1}_2$, $\zeta^{m+1}=(\sigma^m)^{-0.1}$ \; \\ {go to} (3-a) \end{enumerate} \end{enumerate} \noindent\rule{\textwidth}{0.5pt} \subsection{Finite-dimensional parametrization of wall shapes} We model the shape of the channel walls using B-splines. For an integer $k$, the $k$-th cardinal B-spline basis function of degree $n$, denoted by $B_{k,n}$, is given by recurrence, \begin{equation} \begin{aligned} \mathcal{B}_{k,0}(t) & = & \left\{\begin{array}{ll} 1, & k\le t < k\hspace*{-0.1em}+\hspace*{-0.1em} 1 \\ 0,& \mbox{otherwise} \end{array} \right.\\ \mathcal{B}_{k,n} (t) & = & \frac{t-k}{n}\mathcal{B}_{k,n\hspace*{-0.1em}-\hspace*{-0.1em} 1} (t) + \frac{n\hspace*{-0.1em}+\hspace*{-0.1em} k\hspace*{-0.1em}+\hspace*{-0.1em} 1\hspace*{-0.1em}-\hspace*{-0.1em} t}{n} \mathcal{B}_{k+1,n-1}(t) \end{aligned}\label{eq:Bn} \end{equation} and $\mathcal{B}_{k,n}(t)$ has support $[k, k\hspace*{-0.1em}+\hspace*{-0.1em} n\hspace*{-0.1em}+\hspace*{-0.1em} 1]$. Any $\mathcal{C}^{n-1}$ function $x(t)$ defined on $[0, M]$ with $M$ being a positive integer can be approximated by a linear combination of the form $ x(t) = \sum_{k=-n}^{M-1} \xi_{k} \mathcal{B}_{k,n}(t)$ with $\xi_{k}\in \mathbb{R}$ and $t\in [0,M]$. In this work, we use B-splines of degree $5$, i.e., $n=5$ in \eqref{eq:Bn}. To parametrize wall shapes $\boldsymbol{x}(t)$ for $t\in[0,2\pi]$, we define the basis functions $B_k(t) = \mathcal{B}_{k,5}(\frac{M}{2\pi} t)$, where $M$ is a pre-assigned positive integer of the discretization. The wall $\Gamma^{\pm}\ni\bfx^{\pm} = \bfx^{\pm}(t;\boldsymbol{\xi})$ is then written as \begin{equation}\label{eq:bspline1}\left. \begin{aligned} & x_1^{\pm}(t) = x_1^{\pm}(t;\boldsymbol{\xi}) = \frac{L}{2\pi}(2\pi\hspace*{-0.1em}-\hspace*{-0.1em} t) + \sum_{k=-5}^{M-1} \xi_{1,k}^{\pm} B_k (t), \\ & x_2^{\pm}(t) = x_2^{\pm}(t;\boldsymbol{\xi}) = \phantom{(2\pi\hspace*{-0.1em}-\hspace*{-0.1em} t) + {}}\sum_{k=-5}^{M-1} \xi_{2,k}^{\pm} B_k (t), \end{aligned}\right\} \quad t \in [0, 2\pi], \end{equation} where $\boldsymbol{\xi}$ is the vector of coefficients for $B_k$ with $(4M\hspace*{-0.1em}+\hspace*{-0.1em} 20)$ components. In the expression of $x_1^{\pm}(t)$, the extra term $\frac{L}{2\pi}(2\pi\hspace*{-0.1em}-\hspace*{-0.1em} t)$ ensures the periodicity of the linear combinations of B-splines which is enforced in the computation. The domain $[0,2\pi]$ is divided into $M$ uniform subintervals and the corresponding endpoints $(x_1^{\pm}, x_2^{\pm})$ create a discretization grid for shape parametrization. We define the free discretization grid points by \begin{equation} \bfps = \Big\{\hspace*{0.1em} x_{1}^{\pm}\!\Big(\, \frac{2\pi j}{M} \,\Big),\ x_{2}^{\pm}\!\Big(\, \frac{2\pi j}{M} \,\Big), x_{2}^{\pm}(0) \hspace*{0.1em}\Big\}, j = 1,2,\dots, M\hspace*{-0.1em}-\hspace*{-0.1em} 1. \end{equation} The vector $\boldsymbol{\xi}$ is then solved implicitly from equations~\eqref{eq:bspline1} (for given $\bfps$) together with the additional conditions \begin{equation}\label{eq:bspline2} x_{1}^{\pm}(0) = L, \ \ x_{1}^{\pm}(2\pi) = 0, \quad x_{2}^{\pm}(0) = x_{2}^{\pm}(2\pi), \quad \text{and} \qquad \frac{d^k \bfx^{\pm}}{d t^k}(0) =\frac{d^k \bfx^{\pm}}{d t^k}(2\pi), \;k=1,\dots, (n-1). \end{equation} The transformation velocities $\boldsymbol{\theta}$ are associated to perturbations of $\bfps$. Letting $\bfdel$ be a perturbation vector of the same dimension as $\bfps$ (i.e. with $(4M\hspace*{-0.1em}-\hspace*{-0.1em} 2)$ elements), the transformation velocities on both walls in the shape perturbation induced by $\bfdel$ are the limiting values of \begin{equation}\label{eq:transformation} \boldsymbol{\theta}^{\pm}(\bfx^{\pm}(t)) = \frac{1}{\eta} \left( \bfx^{\pm}\left(t;\boldsymbol{\xi}(\bfps + \eta \bfdel)\right) - \bfx^{\pm}\left(t;\boldsymbol{\xi}(\bfps)\right) \right), \end{equation} as $\eta\to 0$. Since the mapping $\bfps\mapsto\boldsymbol{\xi}(\bfps)$ is linear, it is unnecessary to actually take the limit in the above formula, and we simply use~\eqref{eq:transformation} with $\eta=1$ in the numerical implementation. In section \ref{sec:validation}, the wall shape perturbations are formulated by perturbing one element in $\bfps$ while keeping the others unchanged, so that $\bfdel$ is a vector with all $0$ except one unit entry. \subsection{Boundary integral formulation} \label{sec:forwardsolver} The shape sensitivities require obtaining the traction and pressure on $\Gamma$ for the forward and associated adjoint problems. The fluid velocity and pressure in all these problems satisfy the Stokes equations with periodic boundary conditions. We follow the periodization scheme developed recently in \cite{marple:16} that uses the free-space Green's functions and enforces the periodic boundary conditions {\em via} an extended linear system approach. Given a source point $\bfy$ and a target point $\bfx$, the free-space Stokes single-layer and double-layer kernels are given by \begin{equation} S_{ij}(\bfx,\bfy)=\frac{1}{4\pi}\left(\delta_{ij}\log\frac{1}{z}+\frac{z_iz_j}{z^2}\right), \quad D_{ij}(\bfx,\bfy)=\frac{1}{\pi}\frac{z_iz_j}{z^2}\frac{\bfz\cdot\bfn^{\bfy}}{z^2}, \end{equation} where $\bfz:=\bfx-\bfy$, $z:=|\bfz|$. The associated pressure kernels are given by \begin{equation} P^S_j(\bfx,\bfy)=\frac{1}{2\pi}\frac{z_j}{z^2},\quad P^D_j (\bfx,\bfy)=\inv{\pi}\left(-\frac{n^{\bfy}_j}{z^2}+2\frac{\bfz\cdot\bfn^{\bfy}}{z^2}\frac{z_j}{z^2}\right), \end{equation} and the associated traction kernels are given by \begin{equation} \begin{aligned} T^S_{ij}(\bfx,\bfy)& = -\frac{1}{\pi}\frac{z_iz_j}{z^2}\frac{\bfz\cdot\bfn^{\bfx}}{z^2},\\ T^D_{ij}(\bfx,\bfy)& = \inv{\pi}\left[ \left(\frac{\bfn^{\bfy}\cdot\bfn^{\bfx}}{z^2}-8d_{\bfx}d_{\bfy} \right)\frac{z_iz_j}{z^2}+ d_{\bfx}d_{\bfy}\delta_{ij}+\frac{n_i^{\bfx}n_j^{\bfy}}{z^2}+d_{\bfx}\frac{z_jn_i^{\bfy}}{z^2}+d_{\bfy}\frac{z_in_j^{\bfx}}{z^2} \right], \end{aligned} \end{equation} where for notational convenience we defined the target and source ``dipole functions'' as \begin{equation} d_{\bfx}=d_{\bfx}(\bfx,\bfy):=(\bfz\cdot \bfn^{\bfy})/z^2,\quad d_{\bfy}=d_{\bfy}(\bfx,\bfy):=(\bfz\cdot \bfn^{\bfx})/z^2. \end{equation} We employ an indirect integral equation formulation with the following ansatz: \begin{equation}\label{eq:vel_rep} \bfu = \mathcal{D}_{\Gamma}^{\text{near}}\boldsymbol{\tau}_{\Gamma} + \mathcal{S}_{\gamma}^{\text{near}}\boldsymbol{\tau}_{\gamma} + \sum_{m=1}^K \bfc_m\phi_m, \end{equation} where \begin{equation}\label{eq:ph_rep} \begin{aligned} & \left(\mathcal{D}_{\Gamma}^{\text{near}}\boldsymbol{\tau}_{\Gamma}\right)\left(\bfx\right):=\sum_{|n|\leq 1}\iG D(\bfx,\bfy+n\bfd)\boldsymbol{\tau}_{\Gamma}\left(\bfy\right)\,\text{d}s_{\bfy}, \\ & \left(\mathcal{S}_{\gamma}^{\text{near}}\boldsymbol{\tau}_{\gamma}\right)\left(\bfx\right):=\sum_{|n|\leq 1}\int_{\!\gamma} S(\bfx,\bfy+n\bfd)\boldsymbol{\tau}_{\gamma}\left(\bfy\right)\,\text{d}s_{\bfy} \end{aligned} \end{equation} are sums over free-space kernels living on the walls and particle boundary in the central unit cell and its two near neighbors, and $\bfd$ is the the lattice vector i.e. $\bfd=\bfe_1$. The third term encodes the influence of the ``far'' periodic copies, where $\phi_m(\bfx)=S(\bfx,\bfy_m)$ and the source locations $\{\bfy_m\}_{m=1}^K$ are chosen to be equispaced on a circle enclosing $\Omega$ \cite{marple:16}. The unknown coefficients $\{\bfc_m\}_{m=1}^K$ are found by enforcing the periodic inlet and outlet flow conditions at a set of collocation nodes. The resulting augmented linear system for the forward problem, for example, can be written in the following form in terms of the unknown density functions $\boldsymbol{\tau}_{\Gamma}$ and $\boldsymbol{\tau}_{\gamma}$ and the coefficients $\{\bfc_m\}$: \begin{equation}\label{eq:ABCD_sys} \begin{bmatrix} A_{\Gamma,\Gamma} & A_{\Gamma,\gamma} & B_{\Gamma,\phi}\\ A_{\gamma,\Gamma} & A_{\gamma,\gamma} & B_{\gamma,\phi}\\ C_{\Gamma} & C_{\gamma} & D \end{bmatrix}\begin{bmatrix}\boldsymbol{\tau}_{\Gamma}\\ \boldsymbol{\tau}_{\gamma} \\ \bfc \end{bmatrix} = \begin{bmatrix} \bfu^D \\ \bfu^{\gamma} \\ \boldsymbol{0} \end{bmatrix} \end{equation} The first row applies the slip condition on $\Gamma$ by taking the limiting value of $\bfu(\bfx)$, defined in \eqref{eq:vel_rep}, as $\bfx$ approaches $\Gamma$ from the interior. The second row uses the no slip condition on $\gamma$: $\lim_{\bfx\rightarrow \gamma}\bfu(\bfx)=\bfu^{\gamma}=\bdot{\bfx}{}^{\text{\tiny G}}\hspace*{-0.1em}+\hspace*{-0.1em}\rho\boldsymbol{r}\cdot \bfx$. Then the centroid velocity $\bdot{\bfx}{}^{\text{\tiny G}}$ and angular velocity $\rho$ can be solved for by applying extra force- and torque-free conditions. The third row applies the periodic boundary conditions on velocity and traction. The operators $A$, $B$, $C$, $D$ are correspondingly defined based on the representation formulas \eqref{eq:vel_rep} and \eqref{eq:ph_rep}. The pointwise pressure and hydrodynamic traction for the ansatz \eqref{eq:vel_rep} are then given by \begin{align} p = \mathcal{P}_{\Gamma}^{D,\text{near}}\boldsymbol{\tau}_{\Gamma} + \mathcal{P}_{\gamma}^{S,\text{near}}\boldsymbol{\tau}_{\gamma} + \sum_{m=1}^K \bfc_m P^S(\bfx,\bfy_m),\\ \bff = \mathcal{T}_{\Gamma}^{D,\text{near}}\boldsymbol{\tau}_{\Gamma} + \mathcal{T}_{\gamma}^{S,\text{near}}\boldsymbol{\tau}_{\gamma} + \sum_{m=1}^K \bfc_m T^S(\bfx,\bfy_m). \end{align} The operators in \eqref{eq:ABCD_sys} are discretized by splitting $\Gamma$ and $\gamma$ uniformly into $M_{\Gamma}$ and $M_{\gamma}$ disjoint panels respectively. In each panel, a $p$-th order Gauss-Legendre quadrature is employed to evaluate smooth integrals while a local panel-wise close evaluation scheme of \cite{wu2020solution} is employed to accurately handle corrections for the singularities of $S(\bfx,\bfy)$, $T^D(\bfx,\bfy)$ and $P^D(\bfx,\bfy)$. A forward Euler time-stepping scheme is used to evolve the particle position and the solution procedure outlined above is repeated at each time-step. In the case of the associated adjoint problems, the solution procedure remains the same but the right hand side of \eqref{eq:ABCD_sys} is modified according to the respective boundary conditions (e.g., (\ref{adjoint:PDE:particle}-d)). In addition, the particle velocities $\dot{\hat{\bfx}}^G$, $\hat{\rho}$ need to be computed by applying the total force and torque conditions, that is, given the traction vector $\hat{\bfh}$, the following condition is enforced: \begin{equation} \int_{\!\gamma(t)} \bff \,\text{d}s_{\bfy} = \int_{\!\gamma(t)} \hat{\bfh} \,\text{d}s_{\bfy}\quad\text{and}\quad \bfe_3\cdot \int_{\!\gamma(t)} \bfy\hspace*{-0.1em}\times\hspace*{-0.1em} \bff\,\text{d}s_{\bfy} = \bfe_3\cdot \int_{\!\gamma(t)} \bfy\hspace*{-0.1em}\times\hspace*{-0.1em} \hat{\bfh}\,\text{d}s_{\bfy}. \end{equation} \section{Numerical Results} \label{sc:results} This section presents first validation tests of our boundary integral solvers and shape sensitivity formulas, then results on the shape optimization. In all numerical experiments, the following parameter values were used: $c=1$, $L = 2\pi$, $n=5$ (degree of the B-spline basis functions), and $M=7$. For the augmented Lagrangian optimization algorithm, we set $\zeta^{\star} = 0.01$, $\lambda^0 = (0,0)$, and $\sigma^0 = 10$. \subsection{Validation of forward and adjoint PDE solvers} To show the performance of periodic flow solver, we first solve a periodic Stokes flow problem with prescribed slip velocity, and test the convergence of the velocity field as we increase the number of quadrature points on $\Gamma$. We also show temporal convergence on forward and adjoint problem using forward Euler, where we set the axial distance $D=1$, $192$ quadrature points on $\Gamma^{\pm}$, and $60$ quadrature points on $\gamma$. Relative errors are shown below, where $F_0$ is the total force in adjoint problem on the particle at $t=0$, and $s_c$ is particle centroid at $D=1$. \begin{figure}[!h] \includegraphics[height=.24\linewidth]{./figures/pipe_flow.pdf} \includegraphics[height=.24\linewidth]{./figures/pipe_err_conv.pdf} \includegraphics[height=.24\linewidth]{./figures/pipe_dt_conv.pdf} \caption[]{\em Validation of the numerical solver. (Left) Streamlines of a periodic Stokes flow induced by prescribed slip on the walls, obtained using our boundary integral solver. (Middle) Plot of self convergence as a function of the spatial resolution $N=pM_{\Gamma}$ used in the forward solver. (Right) Temporal validation. Reference values are computed using $dt=2\times 10^{-5}$.} \label{fig:bie_validation} \end{figure} \subsection{Validation of analytical shape sensitivity formulas}\label{sec:validation} We consider a sinusoidal wall shape and a circular particle shape (Fig.~\ref{fig:validate}a) and compare the shape sensitivities obtained by the finite difference approach and the analytical sensitivity formulas derived in Section \ref{sc:sensitivities}. We use the central difference scheme to approximate the shape derivative: \begin{equation}\label{eq:Jprime} J'_{\text{FD}} = J'(\bfx^{\pm};\boldsymbol{\theta}^{\pm}) = \frac{1}{2\eta} \Big[\hspace*{0.1em} J\big(\hspace*{0.1em} \bfx^{\pm}\left(t;\boldsymbol{\xi}(\bfps)\right) + \eta \boldsymbol{\theta}^{\pm} \hspace*{0.1em}\big) - J\big(\hspace*{0.1em} \bfx^{\pm}\left(t;\boldsymbol{\xi}(\bfps)\right) -\eta \boldsymbol{\theta}^{\pm} \hspace*{0.1em}\big) \hspace*{0.1em}\Big] \end{equation} with step size $\eta = 10^{-4}$. Here, $J$ is either the energy dissipation functional $J_{\text{\tiny W}}$ or the net motion $D$ in the wave frame. Substituting~\eqref{eq:transformation} in~\eqref{eq:Jprime}, we get the following simplified expression, \begin{equation}\label{eq:Jprime2} J'_{\text{FD}} = J'(\bfx^{\pm};\boldsymbol{\theta}^{\pm}) = \frac{1}{2\eta} \Big[\hspace*{0.1em} J\big(\hspace*{0.1em} \bfx^{\pm}\left(t;\boldsymbol{\xi}(\bfps\hspace*{-0.1em}+\hspace*{-0.1em}\eta \bfdel)\right) \hspace*{0.1em}\big) - J\big(\hspace*{0.1em} \bfx^{\pm}\left(t;\boldsymbol{\xi}(\bfps\hspace*{-0.1em}-\hspace*{-0.1em}\eta \bfdel)\right) \hspace*{0.1em}\big) \hspace*{0.1em}\Big] , \end{equation} where $\bfdel$ is a standard basis vector. Depending on the index of the nonzero element in $\bfdel$, there are $(4M\shm2)$ possible shape perturbations. These serve as the basis of any arbitrarily smooth perturbation of the wall shape. A comparison of the shape sensitivities evaluated by the two methods is shown in Fig.~\ref{fig:validate}b, which validates the analytical shape sensitivity formulas using finite difference approach as reference. \begin{figure}[!h] \centering \includegraphics[width = \textwidth]{./figures/fig_sens.pdf} \caption{(a) The wall shape and the motion of the particle (centroid) in wave frame. The dots on the wall display the control points. (b) Comparison of the shape sensitivities of dissipation (blue) and net motion in wave frame (red), using analytical and finite difference approaches for the example. The wall shape perturbation vector index is the index of the nonzero element in the perturbation vector $\bfdel$. The absolute difference is $|J'_{\text{analytic}} - J'_{\text{FD}}|$ and the relative difference is $|J'_{\text{analytic}} -J'_{\text{FD}}|/|J'_{\text{FD}}|$. } \label{fig:validate} \end{figure} \subsection{Optimization experiments}\label{sec:optresults} Here, we present results on the numerical optimization of peristaltic pumps carrying a rigid particle. Figure \ref{fig:motion} shows the optimal wall shapes obtained by our algorithm for different net particle motions with the same volume of fluid region. As expected, the optimal value of dissipation increases for faster net particle velocity in the fixed frame. In the extreme case where the net velocity of the particle is zero in the fixed frame, as expected, the optimal shape is a flat channel with no dissipation. On the other hand, when the particle moves at the same speed as the peristaltic wave, the centroid of the particle remains fixed in the wave frame.\enlargethispage*{1ex} \begin{figure}[b] \centering \includegraphics[width = 0.95\textwidth]{./figures/fig_motion.pdf} \caption{Optimal channel wall shapes (in wave frame) for varying net particle velocity. $V_0=12.26$ and $T = 1$ for all experiments. The particle motions are shown by the initial location (dashed blue), the final location (solid red) and the trajectory of the centroid. Fig. (e) shows a scenario that the particle moves at the same speed as the peristalsis pumping wave speed.} \label{fig:motion} \end{figure} In Fig.~\ref{fig:iterA}, we plot the wall shapes as the optimization progresses for the case of Fig.~\ref{fig:motion}(e). They evolve from an arbitrary initial channel wall shape to reach a configuration achieving the target volume $|\Omega|=V_0$ and net particle motion $D=0$ (i.e., a unit net velocity in the fixed frame). The values of the augmented Lagrangian objective $\mathcal{L}_{\text{\scriptsize A}}$, dissipation $J_{\text{\tiny W}}$, volume of fluid region $V$ and net particle motion in the wave frame $D$ are shown in Fig.~\ref{fig:iterB}. \begin{figure}[t] \centering \includegraphics[width = \textwidth]{./figures/fig_iter_a.pdf} \caption{Optimization process of Fig.~\ref{fig:motion}(e) starting from an arbitrary shape. The total number of BFGS iterations is 106 and the total number of evaluations of the problem is 124.} \label{fig:iterA} \bigskip \centering \includegraphics[width = 0.95\textwidth]{./figures/fig_iter_b.pdf} \caption{Quantities for the optimization process of Fig.~\ref{fig:motion}(e). The vertical dashed lines label the restart of augmented Lagrangian (AL) after the local minimum is achieved and the penalty parameters or the Lagrangian multipliers is therefore updated.} \label{fig:iterB} \end{figure} \begin{figure}[t] \centering \includegraphics[width = \textwidth]{./figures/fig_shape.pdf}\vspace{-1ex} \caption{Optimal wall shapes and particle motions (in wave frame) for varying particle configurations. Here we use $V_0=12.26$, $D_0=0$, $T = 6.3$ and initial particle centroid at $(\pi,0)$ for all cases. (a) For the circle particle, the particle motion in the wave frame is static because in the fixed frame it is moving at the same speed as the wave speed and no vertical translation is observed. (b) For the ellipse particle, the initial tilting angle $\theta_0$ affects the optimal wall shape. The motion of the ellipse particle is shown by initial position (dashed) to final position (solid) corresponding to the color for each $\theta_0$.} \label{fig:shape} \end{figure} \begin{figure}[t] \centering \includegraphics[width = \textwidth]{./figures/fig_iter_ellipse.pdf}\vspace{-1ex} \caption{Optimization process of the ellipse particle with $\theta_0 = \pi/4$ in Fig.~\ref{fig:shape}. The total number of BFGS iterations is 112 and the total number of evaluations of the problem is 153.} \label{fig:iter_ellipse} \end{figure} Next, to illustrate the particle effect on the optimal wall shapes, we ran experiments on different shapes and sizes of particles and show the results in Fig.~\ref{fig:shape}. Specifically, we consider circular particles of different size and elliptical particles at different orientations. The initial location of the particle centroid is set to $(\pi,0)$ in all cases. A common feature we find across all the shapes and sizes of particles is that for minimum dissipation, they are carried at the center of fluid domain in the wall frame. Fig.~\ref{fig:iter_ellipse} displays the progression of the optimization starting from an arbitrary pipe shape, where this phenomenon can be observed clearly.\enlargethispage*{1ex} The results of the numerical experiments show that the optimal pumping wall shapes form an enclosing bolus around the rigid particle near the center line of the channel. Particularly, for a fixed-sized circle particle, a larger target net velocity leads to a bolus of larger size, as seen in Fig.~\ref{fig:motion}. For a fixed net velocity, a larger particle leads to a bigger bolus, see Fig.~\ref{fig:shape}. For the case of an elliptical particle, the initial angle $\theta_0$ between its major axis and the center line affects the symmetry of the optimal channel geometry. For example, setting $\theta_0=\pi/4$, the converged wall shape forms an asymmetric bolus with a more-deformed lower wall, see Fig.~\ref{fig:iter_ellipse}. Comparing the final wall geometry reached for different initial orientations $\theta_0$ of the elliptical particle, shown in Fig.~\ref{fig:shape}(b), the bolus is symmetric about $x_1=0$ and $x_2=\pi$ for $\theta_0 = 0$ or $\pi/2$, with a slightly larger vertical amplitude in the latter case, while the boluses found for $\theta_0 = \pm \pi/4$ are slightly asymmetric. The center line of the channel is shifted upwards for $\theta_0 = \pi/4$ and downwards for $\theta_0 = -\pi/4$. Additionally, for the case $\theta_0 = \pi/4$, the lower wall is still nearly horizontally symmetric about $x_2 = \pi$ but the upper wall is not, its largest amplitude shifting to the right. The walls for $\theta_0 = -\pi/4$ show the opposite trend: the upper wall is nearly symmetric about $x_2 = \pi$ while the lower wall is not symmetric with its largest amplitude shifted to the right. The initially-tilted elliptical particle ($0\hspace*{-0.1em}<\hspace*{-0.1em}\theta_0\hspace*{-0.1em}<\hspace*{-0.1em}\pi/2$) undergoes body rotation and vertical translation. For example, the particle motions for $\theta_0 = \pm \pi/4$ experience opposite rotations (respectively clockwise and counterclockwise) and translations (respectively upwards and downwards). \section{Conclusions} \label{sc:conclusions} We presented a gradient-based optimization approach for finding the optimal shapes of peristaltic pumps for transporting rigid particles in Stokes flow. While we considered the power loss functional and associated constraints, the procedure for deriving shape sensitivities generalizes to other related objective functions and constraints. An important contribution of this work is an adjoint formulation that, in conjunction with a boundary integral formulation, significantly reduces the computational burden of evaluating shape derivatives in the case of particulate flows. Although we restricted our attention to peristaltic pumps, the computational framework developed here is applicable to a wide range of design and optimization problems in interfacial fluid mechanics. For example, we recently applied similar techniques to optimize the swimming action of axisymmetric microswimmers \cite{guo2021optimal, guo2021optimal2}. Extensions to time-dependent problems such as deformable microswimmers (e.g., cells driven by membrane deformations \cite{farutin2013amoeboid}) or active flows in complex geometries \cite{bechinger2016active} can benefit from the adjoint formulation developed here. \subsection*{Acknowledgements} RL, SV and HZ acknowledge support from NSF under grants DMS-1454010 and DMS-2012424. The work of SV was also supported by the Flatiron Institute (USA), a division of Simons Foundation, and by the Fondation Math\'{e}matique Jacques Hadamard (France). \bibliographystyle{siamplain}
\section{Introduction} \label{section:intro} Hydraulic fractures are an essential component of most concepts for developing enhanced geothermal systems (EGS). Early concepts of EGS were based upon highly deviated wells drilled in the direction of the minimum horizontal stress so as to produce transverse fractures, which is very similar to the modern approach used in unconventional petroleum reservoirs. This geometry has the potential to create an enormous surface area for heat transfer and concomitant large energy production rates and reservoir lifetimes \citep{Li2016}. Eventually this approach became overshadowed by the shear stimulation approach that favored vertical or slightly deviated wells drilled in the direction of the maximum horizontal stress \citep{Jung2013}. More recently, there as been renewed interest in the EGS concept centered around highly deviated/horizontals and transverse fractures \citep{Li2016, Kumar2019}. Generating transverse fractures, however, can lead to near-wellbore fracture geometries that create large frictional pressure losses. These frictional pressure losses may have even more profound implications for EGS than they do for petroleum reservoirs because proppant degradation is accelerated in harsh EGS conditions and EGS require longer production times (decades instead of years) to achieve return on investment EGS environments than do unconventional petroleum reservoirs \citep{Li2016}. The reason for increased near-wellbore tortuosity in transverse fractures compared to longitudinal fractures is that the near-wellbore and far-field preferred fracture orientations are no aligned. In a uniform stress field tensile hydraulic fractures will favor propagation in the plane formed by the maximum (most compressive) and intermediate principal stresses. This is one of the fundamental guiding principles of hydraulic fracture design. For the propagation of hydraulic fractures in non-uniform stress fields, especially those where the principal stress directions change spatially, things become much more complex, are less well understood, and therefore are more difficult to predict. Such is often the case when a hydraulic fracture is initiated from a borehole drilled in the direction of the minimum principal stress. As the borehole is pressurized in this scenario (in the absence of any perforation or other defect in the borehole wall), the hoop stress is reduced while the stress in the direction parallel to the borehole is only slightly changed due to the Poisson’s effect. Eventually at some borehole pressure, the hoop stress becomes the minimum principal stress adjacent to the borehole. Thus, in the region adjacent to the pressurized borehole, the preferred direction of fracture propagation is along the axis of the borehole (i.e., a longitudinal fracture), which is incompatible with the preferred direction far from the borehole. As will be discussed below, this incompatibility leads to fracture behavior in the near-borehole region that is complex and difficult to predict. Furthermore, this near-borehole complexity can create a tortuous and narrow connection to the rest of the fracture, which will re-orient to match the far-field stress directions. This misalignment of the near-wellbore and far-field fracture directions can undermine the effectiveness of the created hydraulic fracture in both petroleum and geothermal settings. In the remainder of this introductory section we will briefly discuss some past research on this topic. Then in the sections that follow, data from a set of intermediate-scale hydraulic fracture tests will be presented and discussed in the context of these overarching questions regarding about the competition between near-wellbore and far-field preferred fracture propagation directions, what factors influence the fracture geometry, and what diagnostics can be applied to understand this behavior in practice. \subsection{Hydraulic fracture initiation} \label{subsection:hydraulic_fracture_initiation} Hydraulic fracture initiation has several features that differentiate it from fracture propagation in the far-field (here used to denote regions removed from stress concentrations associate with the borehole). It is prudent to first clarify a few key terms that will be used throughout this paper, as their usage has some variability even among experts in this domain. The first pair of key terms is “fracture initiation” pressure and its difference from “breakdown” pressure. It is not unusual for these terms to be used interchangeably, but here and in other works from the literature an important distinction is made between the two \citep{Detournay1997,Zhao1996,Lecampion2015,Bunger2010,Stanchits2015}. Briefly stated, fracture initiation pressure is the pressure at which a fracture first initiates or begins to propagate. Breakdown pressure is the local maxima of the pressure vs. time curve immediately following fracture initiation. As the cited literature explains, in some situations fracture initiation has little or no expression in the pressure vs. time curve. Fast pressurization, high borehole storage (defined in the next paragraph), and high viscosity all tend to cause both an increase in breakdown pressure and a masking of any signature associated with fracture initiation in the pressure record. Borehole storage is simply the elastic storage of fluid as the borehole is pressurized. This is a combination of compression of the fluid, expansion of the borehole, hydraulic lines, and pumping system components, and is here denoted $U_{sys}$. The magnitude of this compressibility plays an important role in the fracture initiation and breakdown process \citep{Lecampion2017,Lecampion2015}. \subsection{Fracture initiation in deviated wells} \label{subsection:fracture_initiation_deviated_wells} As discussed briefly above, wells drilled in the direction of the minimum principal stress are common because of the potential they offer for large reservoir contact when multiple transverse fractures are formed. Because of the importance of this well orientation, this issue of near-borehole fracture formation has received significant attention, beginning in the 1970’s, with interest building as deviated and horizontal wells became more common. Several studies have shown that when a borehole is drilled at an oblique angle to the principal stress directions, multiple mixed-mode fractures form at the borehole and gradually coalesce into a single dominant fracture that is oriented with the far-field stresses 2-5 borehole diameters away from the well \citep{Daneshy1973,Weijer1994,Abbas1996}. Several of these laboratory studies have shown that when a well is aligned with the minimum principal stress both longitudinal and transverse fractures form at the borehole. The longitudinal fractures extend only a few borehole diameters away while the transverse fractures extend into the far-field. Although image logs are seldom used in highly deviated or horizontal wells, a few field studies have observed this combination of longitudinal and transverse fractures \citep{Waters2006,Jeffrey2015}. The \citet{Weijer1994} study found that higher pressurization rates and higher fluid viscosity tended to promote the formation of both transverse and longitudinal fractures, while lower pressurization rates and viscosity tended to favor the formation of only transverse fractures. Note that most of the laboratory studies mentioned thus far used nominally cylindrical/conical perforations that are perpedicular to the borehole axis, as are created with shape charge perforating guns. These and other laboratory and field studies have shown that breakdown pressure generally increases monotonically as the direction of a well changes from alignment with the intermediate to the minimum principal stress \citep{Abbas1996,Veeken1989,Owens1992}. A summary of these reorientation studies can be found in \citet{Abbas2013}. \section{Test site description} \label{section:test_site_description} The Enhanced Geothermal Systems (EGS) Collab project provides a new data set from a series of hydraulic fracture tests conducted in sub-horizontal boreholes drilled in the Sanford Underground Research Facility (SURF) in the Black Hills region of South Dakota. EGS Collab has developed a very well characterized test bed at a depth of approximately 1478 meters underground by drilling sub-horizontal boreholes from a mine drift. The stimulated borehole was drilled in the direction of the anticipated minimum principal stress and radial 'notches' that were approximately 6 mm deep were created at the planned stimulation locations. This test design allowed relatively large hydraulic fractures to be created in highly-stressed rock with relatively short boreholes that allowed for a high degree of characterization via logs, core, and geophysical monitoring from an array of nearby monitoring boreholes. This paper will present test data and supporting geologic/geophysical characterization data. The test data are compared to previous numerical and experimental studies to determine how well this new experimental data compares with previous modeling, laboratory, and field tests. The data and results presented here are intended to contribute to the body of literature on transverse fracture initiation. A brief overview of the test site will be given here. For further details the reader is referred to \citet{Kneafsey2019}, and the citations therein. All tests described in this paper were performed within the Poorman phyllite formation. Based on these previous tests the stimulation well for the tests described below were drilled with an azimuth of approximately $0^{\circ}$ with an inclination of $78^{\circ}$. Well surveys and plots of all well trajectories can be found at \citet{Neupane2018}. The Poorman is well foliated, generally having distinct bands that are 1-5 cm thick, which are thought to be remnants of bedding from the protolith \citep{Caddey1991}. This location is on the West limb of the southeast-plunging Lead anticline. Besides the large-scale Lead anticline, there are numerous folds ranging in scale from tens of meters to less than a meter. Initial electrical resistivity tomography results suggest that there is a fold with a length scale of ~10 m running through the test bed \citep{Johnson2019}. The nominal temperature of the testbed is $30-35^{\circ}$ C \citep{White2019}. These numerous folds, along with multiple natural fracture sets and other heterogeneities, make the structure of this test bed quite complex. Despite the presence of these features, over the tested interval ranging from 39 m (128 ft) to 50 m (164 ft), the strike and dip of the foliations were fairly constant, with a few small-scale folds causing major deviations from the broader trend. Picks from image logs show an overall trend with a strike of S$40^{\circ}$W and a dip of approximately $84^{\circ}$. A considerable amount of geomechanical and hydrological testing has been performed at the SURF facility from the 1970’s until the present. \citet{Pariseau1986} compiled stress measurements made up to 1986 and formulated a mine-scale regression for the state of stress, in MPa, as a function of vertical depth, $z$, in kilometers is: \begin{equation} \label{eq:sigz} \sigma_V = 28.3 z \end{equation} \begin{equation} \label{eq:shmax} \sigma_H = 14.3 + 12.0 z \end{equation} \begin{equation} \label{eq:shmin} \sigma_h = 0.8+12.4 z \end{equation} where $\sigma_V$, $\sigma_H$, and $\sigma_h$ are the vertical, maximum horizontal, and minimum horizontal principal stresses, respectively. Most recently, hydraulic fracture-based stress measurements were made adjacent to the EGS Collab site for the kISMET project \citep{Oldenburg2016, Wang2017}. This location is approximately 20 meters away from the EGS Collab site, with wells drilled vertically from the invert (floor). Stress measurements in these boreholes found a normal-faulting stress state with a minimum principal stress between 20.0 and 24.1 MPa at a total vertical depth (TVD) between 1520 and 1550 m \citep{Wang2017}. The fractures induced in these tests indicate a minimum compressive stress with a strike of N$2^{\circ}$E (corrected for magnetic north) with a downward plunge of $9.3^{\circ}$ \citep{Kneafsey2020, Schwering2020}. \section{Test procedures} \label{section:test_procedures} The results of three stimulation tests will be described, and will be referred to by the date on which they were conducted: May 21, May 22, and July 18. As mentioned in Section \ref{section:intro}, fluid pressure does not generate significant change in stress acting parallel to the borehole, longitudinal fractures are likely to form in the absence of any significant defects in the borehole wall. Because of this it was decided to create circumferential notches in the borehole at the target stimulation locations to help initiate a transverse hydraulic fracture. The measured depths and start dates for the three stimulation tests are given in Table \ref{tab:stimulations}. The notch at each location was created with a specialized tool developed for this project. This tool uses a cutting bit mounted to the end of the drill string. The cutter was designed to create a notch with a depth of 6 mm. For each test a straddle packer assembly was positioned with the notch located within the packed-off interval (hereafter referred to simply as “the interval”). The interval length for these tests was 1.65 m (5.4 ft). The straddle packer assembly was outfitted with two hydraulic lines connected to the interval. One of these lines was used to pump water to generate the fracture. For the May 21 stimulation pressure was only measured at the pump outlet, which will inevitably be somewhat higher than the actual interval pressure because of frictional losses. However, for the low injection rates used in the operations discussed here the frictional losses are less than 10 psi. For May 22 and July 18 stimulations the other line was used as a non-flowing pressure measurement line. This allowed more accurate measurement of the interval pressure without the effects of frictional pressure losses. Pressure on the non-flowing line was measured using a transducer with a full-scale range of 68.6 MPa (10,000 psi) and accuracy of 0.2\% of full-scale range, or $\pm 0.14$ MPa (20 psi). A Chandler Engineering Quizix Q6000-5K pump was used for all injections reported here. This is a positive-displacement dual-cylinder syringe pump. The injection rates reported here were all measured with the control system of this pump, which has a nominal accuracy of 0.001 mL/min. The temperature of the injected water during the stimulations was approximately $29^{\circ}$ C. During two of the three tests reported here a borehole displacement measurement tool called Step-Rate Injection Method for Fractures In-situ Properties (SIMFIP) was used \citep{Kakurina2020}, though the details of those measurement will be described in a separate publication. This tool requires a certain level of fluid pressure in the interval to set its clamps. Therefore, the borehole was slowly pressurized to 6.9 MPa (1000 psi), and maintained at this pressure while these clamps were engaged. After the clamps were engaged the fracture was initiated at a constant pumping rate. For each test the general procedure was to pump approximately 2 L of water into the initiated fracture and then shut in the interval to allow the fracture to gradually close. The data during the shut-in period were used to estimate the fracture closure pressure, leakoff coefficient, and fracture toughness \citep{Economides2000}. This fluid volume was chosen because it is the volume that was estimated to drive an idealized radial fracture, based on best estimates for rock properties from core measurements and previous tests at the kISMET site, to a radius of 1.5 meters. Following this first shut-in period, the fracture was then driven with a volume of fluid estimated to create a fracture radius of 5 meters, followed by another shut-in period. These portions of the test are beyond the scope of this paper. For the May 21 and May 22 stimulations fractures were eventually driven until they intersected a sub-parallel production well. However, this paper will focus only on the fracture initiation and driving to an idealized radius of 1.5 meters, which took place on the dates shown in Table 1. More comprehensive testing on or from these notches was performed over several months in 2018 and 2019, which will be discussed in other publications. For each test the slope of the linear portion of the pressure vs. time plot was calculated and used to compute the borehole storage compressibility. The point at which the pressure vs. time curve begins to depart downward from this line is taken as an indication of fracture initiation. The instantaneous cumulative volume $V_{frac}$ injected into the fracture is calculated based on the measured compressibility using: \begin{equation} \label{eq:vfrac} V_{frac}=V_{pump}-U_{sys} P_{inj} \end{equation} where $V_{pump}$ is the pumped volume and the instantaneous flow rate is obtained by taking the derivative of Eq. \ref{eq:vfrac} with respect to time (de Pater et al., 1994): \begin{equation} \label{eq:qfrac} Q_{frac}=Q_{pump}-U_{sys} (dP_{inj})/dt \end{equation} It is easy to see from this expression that when the pressure is constant, there is no change in the borehole storage volume with time and the flow rate into the fracture exactly equals the pump rate. \begin{table}[h] \centering \begin{tabular}{l c} \hline \textbf{Measured Depth m (ft)} & \textbf{Date of First Stimulation} \\ \hline 43.2 (142) & 5/21/2018 \\ 50 (164) & 5/22/2018 \\ 39 (128) & 7/18/2018 \\ \hline \end{tabular} \caption{ \label{tab:stimulations} Measured depths and start dates for the three stimulation tests} \end{table} \section{Test results} \label{sec:test_results} \subsection{43 m notch stimulation} \label{subsec:stimulation_1} Figure \ref{fig:fig1} shows a plot of the data acquired during the breakdown phase of the May 21 stimulation of the notch located at 43.2 m (142 ft). The slope of the linear portion of the injection pressure vs. time curve, together with the pump rate of 200 mL/min, was used to calculate a system compressibility of 62.7 MPa/L. The fracture initiation pressure, indicated by the horizontal dashed line shows where the pressure vs. time curve deviates downward from the linear trend, was estimated to be 25.1 MPa (3646 psi). As can be seen in Figure \ref{fig:fig1}, the injection pressure continued to rise considerably following fracture initiation, with no significant local maximum and subsequent decline as is often observed in hydraulic fracture initiation. \begin{figure}[!htb] \centering\includegraphics{Figure1} \caption{\label{fig:fig1}Plot of pressure and volume data during breakdown of the May 21, 2018 stimulation} \end{figure} Figure \ref{fig:fig2} shows a plot of the data during the entire 1.8 L injection. The injection rate was reduced approximately 1/3 of the way through the injection because a pressure limit of 31 MPa had been set in the pump’s control system. When the injection pressure approached this value the pump rate was automatically reduced so that the limit would not be exceeded. After a brief shut-in period a leak developed from a valve that caused venting of the interval pressure, making the data difficult to interpret. To generate a good long-term leakoff pressure data set, after the valve was fixed the interval was pressurized again at a constant rate until the fracture was evidently reopened, and the interval was again shut in. This provided an opportunity to observe the reopening response of the fracture. Figure \ref{fig:fig3} shows a plot of the data acquired during this reopening test. The reopening pressure, again interpreted from the deviation from linearity of the pressure vs. time curve, was 23.5 MPa (3412 psi), which is 1.6 MPa lower than the estimated fracture initiation pressure. Following the fracture reopening the pressure again climbed to the 31 MPa (4500 psi) pressure limit that caused the pump to reduce the injection rate. After the fracture was reopened the well was shut in overnight. The pressure declined to atmospheric pressure after less than one hour, which is much faster than would be expected based on the very low permeability of the rock and no apparent leaks in the hydraulic system. A later stimulation was conducted at this location on December 20 and 21, 2018. During that test leakage past the upper packer was observed. The packer was moved up and down the well until a location was found where only a small leak past the upper packer occurred. \begin{figure}[!htb] \centering\includegraphics{Figure2} \caption{\label{fig:fig2}Plot of data during entire 1.8 L total injection for the May 21, 2018 stimulation} \end{figure} Figure \ref{fig:fig4} shows acoustic televiewer (ATV) logs that were collected in the borehole both before the stimulation (ATV1), in late May 2018 (ATV2), and again in January 2020 (ATV3). Induced fractures are identified with the thin black arrows and the two notches present in the zone are also identified. A schematic of the straddle packer system along with key alignment depths are shown in this figure for reference. These induced fracture are all sub-longitudinal to the borehole and are located primarily on the top and bottom of the sub-horizontal borehole within the interval. The induced fractures do not appear to be aligned with either the foliations or any obvious natural fracture. There are also indications of a sub-longitudinal fractures extending underneath the packers, most prominently in ATV3. These fractures were likely the cause of the rapid decline in the overnight shut-in test, and subsequent observations of leakage past the upper packer. Since the pressure rapidly declined well below any of the in situ stresses it appears that the fracture retained considerable conductivity even when mechanically closed. \begin{figure}[!htb] \centering\includegraphics{Figure3} \caption{\label{fig:fig3}Plot of data during reopening test of the May 21, 2018 stimulation} \end{figure} The fracture system initiated in the May 21 stimulation of the 43.2 m notch was eventually driven until it intersected a production well and multiple monitoring wells a short distance away. These intersections appear to actually be multiple closely-spaced (1-2 m) fractures rather than a single fracture \citep{Schwering2019}. The intersection points with the monitoring and production wells and the cloud of localized microseismic events \citep{Schoenball2019} suggest that the strike of the primary hydraulic fracture plane is N$89^{\circ}$E and the dip is $65-80^{\circ}$. The intersection points at these wells suggests that that the azimuth of the far-field stress was both relatively uniform between these wells and consistent with observations from the kISMET project. However, observations in both the monitoring and production wells indicate multiple closely-spaced fractures at the intersection point with these wells. \begin{figure}[!htb] \centering\includegraphics[width=0.8\textwidth]{Figure4} \caption{\label{fig:fig4}Acoustic (ATV) image logs collected over the zone stimulated on May 21; ATV1 was collected prior to the stimulation, ATV2 was collected shortly after the stimulation, and ATV3 was collected in January 2020 after subsequent higher pressure stimulations at this zone; the left most edge of each log is magnetic North, which is within a few degrees of the top of the borehole } \end{figure} \subsection{50 m notch stimulation} \label{subsec:stimulation_2} Figure \ref{fig:fig5} is a plot of the data acquired during the fracture initiation phase of the May 22, 2018 stimulation at the notch located at 50 m (164 ft). The system compressibility during the pressure building phase of this test was estimated to be 70.5 MPa/L, and the fracture initiation pressure is estimated to be 22.5 MPa (3272 psi). Following fracture initiation the injection pressure rose to a peak of 24.2 MPa (3509 psi), and then declined to 23 MPa, then steadily rose to 25.4 MPa at the end of the injection. Evidenced in the lower plot of this figure, as the borehole pressure declined following the peak pressure, the flow rate of fluid into the borehole slightly exceeds the pumping rate momentarily due to borehole storage effects. A total of approximately 2.1 L of water was injected for the May 22 stimulation before the interval was shut in. An analysis of the pressure transient during the shut in period was made to estimate the fracture closure pressure, radius, toughness, and leakoff coefficient \citep{Nolte1988,Economides2000}. This interpretation resulted in an instantaneous shut-in pressure (ISIP) of 24.5 MPa (3560 psi) and a closure pressure of 21.8 MPa (3160 psi), for a net pressure of 2.7 MPa (392 psi). The analysis also estimated a radius of 2 m (6.6 ft), and a leakoff coefficient of $5.5\times10^{-7}$ $\frac{\textrm{m}}{\sqrt{\textrm{s}}}$. The leakoff coefficient calculation assumes plane strain modulus of 75 GPa. The implied fracture toughness is 4.4 $\mathrm{MPa}-\sqrt{\mathrm{m}}$. \begin{figure}[!htb] \centering\includegraphics[width=0.5\textwidth]{Figure5} \caption{\label{fig:fig5}Plot of pressure and volume data during breakdown of the May 22, 2018 stimulation} \end{figure} \begin{figure}[!htb] \centering\includegraphics[width=0.5\textwidth]{Figure6} \caption{\label{fig:fig6}Plot of data during entire 1.8 L total injection for the May 22, 2018 stimulation} \end{figure} \begin{figure}[!htb] \centering\includegraphics[width=0.8\textwidth]{Figure7} \caption{\label{fig:fig7}Acoustic (ATV) image logs collected over the zone stimulated on May 22; ATV1 was collected prior to the stimulation, ATV2 was collected shortly after the stimulation, and ATV3 was collected in January 2020 after subsequent higher pressure stimulations at this zone; the left most edge of each log is magnetic North, which is within a few degrees of the top of the borehole} \end{figure} Following the initial injection of 2.1 L, a step pressure/rate test was conducted. This, and subsequent similar tests was performed by first using the pump in a constant pressure mode until a constant flow rate was achieved. Once the required flow was above approximately 50 mL/min the test continued as a step-rate test with a constant injection rate. Following this step pressure/rate test a constant rate injection at 0.4 L/min was performed until an additional 23.5 L at been injected, which was anticipated to produce a fracture radius of approximately 5 m (16.4 ft). The well was then shut in overnight. The next day another step pressure/rate test was performed followed by another period of constant rate injection at 5 L/min until the fracture had intersected the production well, after which another step pressure/rate test was performed. Figure \ref{fig:fig8} shows the results of these three step pressure/rate injection tests. In this figure ``After connection`` means after the connection to the production well was made. A larger pump was used for the “after 5m” and “after connection” step-rate tests. Owing to the larger full-scale range, the uncertainty in the flow measurements in these tests is larger (approximately ± 50 mL/min). Because of this the lower rate measurements have a larger uncertainty. The results of these three step-rate tests are largely consistent with the analysis of the pressure transient analysis following the initial 2.1 L injection. Specifically, significant flow into the fracture occurs at approximately 22-23 MPa (3192-3336 psi), which is close to the picked closure pressure of 21.8 MPa (3162 psi). Also, a vertical asymptote occurs in the data at approximately 27 MPa (3916 psi), which is an indication of the fracture propagation pressure. This leads to an estimated net pressure of 4-5 MPa (580-725 psi), which is slightly more than the pressure transient analysis estimate. During the shut-in period there is very little flow into the fracture, so friction losses due to tortuosity do not play a role. Therefore, a reasonable interpretation is that the difference between the estimate of the net pressure from the step-rate test and the shut-in transient test is due to near-borehole tortuosity friction loss of 1.3-2.3 MPa. \citet{Fu2021} provides a comprehensive overview of the many observations that inform the large-scale structure of the fracture induced from the 50 m notch. A brief overview of the most salient observations will be provided here. Observations in both the intersected monitoring well and production well indicate multiple closely-spaced fractures at the intersection point with these wells. \citet{Fu2021} fit five fracture planes to the intersection and microseismic data. Of these fractures the primary macro-scale fracture most closely connected to the stimulated notch at 50 m is the one labeled by \citet{Fu2021} as W-N. This fracture plane has a strike of N$72^{\circ}$E and a dip of $81^{\circ}$. Despite the apparently mostly linear/planar nature of this most closely connected fracture, the intersection with the production well reveals a great deal of small-scale complexity. An acoustic televiewer (ATV) log was collected in late May, 2018 after the initial stimulation discussed above. Another ATV log was collected in January 2020 after a long term thermal circulation test had been conducted from this notch. Figure \ref{fig:fig7} shows a comparison of the pretest OTV and ATV logs and the two post-test ATV logs. The details of the long term thermal circulation test is beyond the scope of this article but it is mentioned since it likely had an impact on the extension of the fractures observed between the May 2018 and January 2020 ATV logs shown in Figure \ref{fig:fig7}. Unlike the May 21 stimulation, no induced fractures are evident in the image logs collected at the end of May 2018 with a possible exception of one under the lower packer. After the May 2018 ATV log was collected it was concluded that, as with the \citet{Jeffrey2015} study, the lack of an apparent induced fracture meant that the fracture initiated from the notch, which would not be expected to create any signature on the image log. Alternatively, it could not be ruled out that the fracture opened/sheared a plane of weakness in the rock and closed in a way that left no signature on the image log. The image log collected in January 2020 after the long term thermal test at this location offers additional insight. There is what appears to be precipitated minerals on this portion of the well from the long term test that obscure portions of the January 2020 image log. This is believed to be what caused the long thick streaks just above and below the notches seen in ATV3 in Figure \ref{fig:fig7}. Beyond this precipitate, one of the most apparent differences observed in the January 2020 image log is the obvious longitudinal fractures underneath both the upper and lower packers. Only a small section of the fracture below the lower packer can be seen in the May 2018 image log, so the formation of these fractures likely occurred during later higher pressure testing. En echelon fractures can be observed on the January 2020 image log at 50.3 m. These seem to be aligned with the foliations, but some ligaments of the fracture extend across foliations. Some opening of foliations also appears likely at 50.5 m. This, combined with the concentration of the precipitated minerals at this location, suggests that the primary outflow of water during the long term thermal test was through the foliation planes above and below the notches. \begin{figure}[htb] \centering\includegraphics[width=0.5\textwidth]{Figure8} \caption{\label{fig:fig8}Results of multiple step-rate tests on the May 22, 2018 stimulation} \end{figure} \subsection{39 m notch stimulation} \label{subsec:stimulation_3} Figure \ref{fig:fig9} is a plot of the pressure and flow data acquired during the fracture initiation phase of the July 18, 2018 stimulation at the notch located at 39 m (128 ft). Figure \ref{fig:fig10} shows the data during the entire ~2 L injection. Fracture initiation occurred at 22.1 MPa (3201 psi), after which the pressure continued to increase, reaching a momentary peak at 25.7 MPa (3272 psi), followed by a brief decline, and another rise to approximately 26.6 MPa (3858 psi). \begin{figure}[htb] \centering\includegraphics[width=0.5\textwidth]{Figure9} \caption{\label{fig:fig9}Plot of pressure and volume data during breakdown of the July 18, 2018 stimulation} \end{figure} \begin{figure}[htb] \centering\includegraphics[width=0.5\textwidth]{Figure10} \caption{\label{fig:fig10}Plot of data during entire 1.8 L total injection for the July 18, 2018 stimulation} \end{figure} \begin{figure}[htb] \centering\includegraphics[width=0.8\textwidth]{Figure11} \caption{\label{fig:fig11} Acoustic (ATV) image logs collected over the zone stimulated on July 18; both ATV1 and ATV2 were collected prior to the stimulation while ATV3 was in January 2020 the stimulation; the left most edge of each log is magnetic North, which is within a few degrees of the top of the borehole} \end{figure} Figure \ref{fig:fig11} shows pre- and post-test image logs from the interval tested in the July 18 test. Sub-longitudinal fractures can be observed under the upper packer at 37.4 to 37.5 m, and again from 38 to 38.6 m. These fractures are rotated approximately 10 degrees from the top and bottom of the well with some en echelon fracturing. This suggests that the principal stresses are not well aligned with the well at this location. A longitudinal fracture can be seen with in the pressurized interval, spanning 39.2 to 39.6 m, just below the notch. Longitudinal fractures can also be seen underneath the lower packer from 40.15 to 40.35 m and again at 40.55 to 41.02 m. Similar to the fractures under the upper packer, these appear to be rotated by approximately 10 degrees from the top/bottom of the well. After a significant volume of fluid was pumped into this fracture on July 20, 2018. A momentary connection with one of the monitoring wells was made. However, injection was terminated before a connection to the production well was made so as not to further damage the integrity of hte monitoring well. The only information available for the orientation of the induced fracture away from the borehole is from seismic event locations and the thermal anomaly detected in the distributed temperature sensing (DTS) in the monitoring well. As described by \citep{Schoenball2019b}, two planes were fit to this data that have a shallow angle relative to the borehole and therefore seem to deviate significantly from the far-field stress directions inferred elsewhere in the test bed. \section{Discussion} \label{sec:discussion} Fracture initiation pressure at the three stimulation sites varied from a low of 22.1 in the July 18 stimulation, to a high of 25.1 in the May 21 stimulation. The fracture propagation pressure at 200 mL/min varied from a low of 25 MPa in the May 22 stimulation to a high of greater than 31 MPa in the May 22 stimulation. None of the tests had the type of breakdown or propagation pressure curve that is expected of a radial fracture propagating in a homogeneous stress field; i.e., the propagation pressure of a toughness-dominated radial fracture is expected to decline steadily over time as the fracture radius grows. However, none of the tests showed a significant decline in pressure after fracture initiation. Only the May 22 stimulation had a pressure decline following fracture initiation, and the decline was only 1.2 MPa, and it was followed by a steady increase in pressure to greater than the initial peak pressure. Pre- and post-stimulation image log analysis for the stimulations at 43.2 m and 50 m leave an ambiguous picture of the nature of the fracture initiation. The results presented above suggest that in the stimulation of the notch at 43.2 m, several closely-spaced oblique fractures formed at the borehole. The possibility that a hydraulic fracture also initiated from the notch at this location cannot be ruled out. Results from the stimulation at the 50 m notch indicate fracture initiation either from the notch, or on natural features that left no signature on the initial image log. Logging after subsequent testing at this location suggests that opening of foliation planes occurred. For both the stimulations centered at 43.2 m and 50 m, the intersection with both monitoring well E1-OT and the production well, E1-P were along multiple closely-spaced fractures, and the intersections and microseismic events suggest that the fracture plane was within just a few degrees of being perpendicular to the stimulation well. The closely-spaced fractures induced in the stimulation well during the May 21 stimulation, and the closely-spaced fractures at the intersections seems most consistent with a borehole that is at an oblique angle to the principal stresses, as with the $60^{\circ}$ tests in \citet{Abbas1996}. However, all other data at this site suggest that the borehole is within just a few degrees of the minimum principal stress. The complex rock fabric in this test bed is a complicating factor that, given current understanding, is difficult to account for. This fabric contributes both elastic anisotropy, and many planes of weakness in the form of foliations and natural fractures. In some cases the foliation planes are only $20-30^{\circ}$ misaligned from the preferred fracture plane, making them likely to interact with a propagating or initiating hydraulic fracture. It is possible that a fracture could have initiated along foliation planes and left no signature on the image logs \citep{Schwering2020}, however a downhole camera was used to observe flow into the production well, and the inflow does not seem to be along foliation planes. Given the complexity of the folded and strongly foliated rock, it is possible that the average stress is aligned with the direction of the larger scale fracture, but that at the smaller scale the stresses are rotated sufficiently to form en echelon fractures. \citet{Jeffrey2015} deserves a more in-depth comparison because of its similarity with the present study. In their study a large number of vertical wells were drilled and hydraulically fractured using a straddle packer system similar to the one discussed here. At the test site of the Jeffrey study the minimum principal stress is vertical such that horizontal fracture propagation is preferred, which is transverse to the vertical wells used. As with the present study, radial notches were used in many of the wells to encourage initiation of transverse fractures. Image logs were collected after fracturing and many of the wells showed both longitudinal and transverse fractures. In some wells no fracture could be seen on the image logs, which was taken as an indication that the fracture had initiated from the notch. In the tests reported in this paper, there was clear evidence of initiation of longitudinal fractures in the pressurized zone of the July 18 test, and underneath the packers for all three tests. In the May 22 test, it appears that after later high pressure testing both longitudinal fractures and fractures along foliation planes oblique to the well formed. Despite the similarities, a primary difference between the present study and the Jeffrey study is that the injection rates were much lower in the present study. Several studies have found that higher viscosity fluids and higher pressurization rates increases the likelihood of initiating both longitudinal and transverse fractures \citep{Weijer1994, Abbas2013}. The observation of fractures in the January 2020 image log near the 50 m notch that were not apparent in the May 2018 image log, support this understanding because higher rate and pressure tests were conducted between the two logs. \section{Conclusion} \label{sec:conclusion} The results of three hydraulic stimulations at the EGS Collab site at the Sanford Underground Research Facility have been reported. The stimulation borehole was designed to be perpendicular to the minimum principal stress, and the experimental data suggest that this is the case. To help with initiation of a transverse fracture, a radial notch was created at each stimulation location using a cutting tool mounted to a drill string. The notch was designed to be approximately 6 mm deep. An unfortunate consequence of using a notch is that any fracture initiated from the notch is not visible on image logs, leaving ambiguity in the pre- and post-stimulation image log analysis. Fracture initiation pressure was generally in the range expected with low-rate low-viscosity fluid injection, just slightly higher than the minimum principal stress. The variability in fracture initiation pressure between the three sites seems to be similar to the degree of variability of in situ stress from previous measurements. Both microseismic data and hydraulic fracture intersections with monitoring and production wells indicate that a large mostly planar fracture was created as a result of these stimulations, and that these planar fractures were within a few degrees of being perpendicular to the stimulation and production wells. Despite the suggestion of a relatively simple, planar fracture, the pressure vs. time trend is not consistent with traditional models of radial hydraulic fracture propagation. Specifically, the propagation pressure had a trend of increasing over time rather than decreasing toward the minimum principal stress as expected by toughness-dominated fracture models. Another observation that is incompatible with a simple planar fracture model is that when the hydraulic fractures intersected a monitoring borehole and a production borehole, it was via multiple closely-spaced fractures rather than a single fracture. Because the stress direction seems to be very consistent across the test bed, a likely explanation for these results is the complex rock fabric. The relevant rock fabric at this site consists of both closely-space foliations and multiple well-developed natural fracture sets, some of which have considerable native hydraulic conductivity. \section*{Acknowledgements} The EGS Collab team is: J. Ajo-Franklin, S.J. Bauer, T. Baumgartner, K. Beckers, D. Blankenship, A. Bonneville, L. Boyd, S.T. Brown, J.A. Burghardt, T. Chen, Y. Chen, K. Condon, P.J. Cook, P.F. Dobson, T. Doe, C.A. Doughty, D. Elsworth, J. Feldman, A. Foris, L.P. Frash, Z. Frone, P. Fu, K. Gao, A. Ghassemi, H. Gudmundsdottir, Y. Guglielmi, G. Guthrie, B. Haimson, A. Hawkins, J. Heise, C.G. Herrick, M. Horn, R.N. Horne, J. Horner, M. Hu, H. Huang, L. Huang, K. Im, M. Ingraham, T.C. Johnson, B. Johnston, S. Karra, K. Kim, D.K. King, T. Kneafsey, H. Knox, J. Knox, D. Kumar, K. Kutun, M. Lee, K. Li, R. Lopez, M. Maceira, N. Makedonska, C. Marone, E. Mattson, M.W. McClure, J. McLennan, T. McLing, R.J. Mellors, E. Metcalfe, J. Miskimins, J.P. Morris, S. Nakagawa, G. Neupane, G. Newman, A. Nieto, C.M. Oldenburg, W. Pan, R. Pawar, P. Petrov, B. Pietzyk, R. Podgorney, Y. Polsky, S. Porse, S. Richard, B.Q. Roberts, M. Robertson, W. Roggenthen, J. Rutqvist, D. Rynders, H. Santos-Villalobos, M. Schoenball, P. Schwering, V. Sesetty, A. Singh, M.M. Smith, H. Sone, C.E. Strickland, J. Su, C. Ulrich, N. Uzunlar, A. Vachaparampil, C.A. Valladao, W. Vandermeer, G. Vandine, D. Vardiman, V.R. Vermeul, J.L. Wagoner, H.F. Wang, J. Weers, J. White, M.D. White, P. Winterfeld, T. Wood, H. Wu, Y.S. Wu, Y. Wu, Y. Zhang, Y.Q. Zhang, J. Zhou, Q. Zhou, M.D. Zoback This material was based upon work supported by the U.S. Department of Energy, Office of Energy Efficiency and Renewable Energy (EERE), Office of Technology Development, Geothermal Technologies Office, under Award Number DE-AC52-07NA27344 with LLNL, Award Number DE-AC05-76RL01830 with PNNL, and Award Number DE-AC02-05CH11231 with LBNL. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology \& Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA0003525. This paper describes objective technical results and analysis. Any subjective views or opinions that might be expressed in the paper do not necessarily represent the views of the U.S. Department of Energy or the United States Government. The United States Government retains, and the publisher, by accepting the article for publication, acknowledges that the United States Government retains a non-exclusive, paid-up, irrevocable, world-wide license to publish or reproduce the published form of this manuscript, or allow others to do so, for United States Government purposes. The research supporting this work took place in whole or in part at the Sanford Underground Research Facility in Lead, South Dakota. The assistance of the Sanford Underground Research Facility and its personnel in providing physical access and general logistical and technical support is acknowledged.
\section{Cooperativity} \label{app:add_sim} \label{app:coop} \begin{figure*} \centering \includegraphics[width = \textwidth]{figures/Coop_panel_game.pdf} \\ \includegraphics[width = \textwidth]{figures/Coop_panel_gcol.pdf} \caption{The critical drive panels from the main text with the corresponding cooperativities $C$. In panel \textbf{(a\,-\,d)}, $g_{\text{col}}$ and $\gamma_c$ have been held fixed while $\gamma_e$ has been varied from $0.5\,$-$5\%$ of $\gamma_c$ going left to right. In panel \textbf{(e\,-\,h)}, $\gamma_c$ and $\gamma_e$ have been held fixed while $g_{\text{col}}$ has been varied from $2\,$-$0.25\,\gamma_c$ going left to right. } \label{fig:Coop_panels} \end{figure*} The cooperativity is defined as \begin{equation} \label{aeq:coop} C \equiv \frac{4g_{\text{col}}^2}{\gamma_c \gamma_e}. \end{equation} In \figref{fig:Coop_panels}, the panels with break-point predictions from \figref{fig:OmB} in the main text are shown together with the corresponding cooperativities. As can be seen, the observed saturation effect and our analytical expression for the critical drive are both robust to a wide range of cooperativities, $25\leq C \leq 1600$. It is also evident from \figref{fig:Coop_panels}, that a large cooperativity facilitates the observation of the saturation effect as it pushes the emergence of the nonlinear effect to lower drive strengths. To find out how robust the observed effect is at low cooperativity, we performed a few simulations with one and two emitters in the cavity for different $C$. The results from these investigations are presented below and are structured as follows. First, a set of plots with a semi-lossy cavity, i.e., $\gamma_c\approx 0.03\,\wc$, is presented in \figref{fig:coop_set1}. This cavity loss rate is the same as was used to produce the plots in \figref{fig:Coop_panels}. After that, a second set of plots, where $\gamma_c\approx 0.17\,\wc$, is presented in \figref{fig:coop_set2}. This loss rate corresponds, e.g., to a localised surface plasmon mode in a metal nanoparticle. Moreover, both \figref{fig:coop_set1} and \ref{fig:coop_set2} have two columns. The first column shows the response with low-loss emitters, $\gamma_e = 0.01\,\gamma_c$, and the second column shows intermediate-loss emitters with $\gamma_e = 0.1\,\gamma_c$. According to \eqref{aeq:coop}, a more lossy emitter ensemble can be compensated to have the same cooperativity as a less lossy one ($\gamma_c$ fixed) by increasing the cavity-emitter interaction strength. Therefore, the two columns could also be regarded as corresponding to very weak coupling in the left column, and weak coupling in the right column. \begin{figure*} \centering \includegraphics[width=.48\textwidth]{figures/CoopL_0_weakcoupling.pdf} % \includegraphics[width=.48\textwidth]{figures/CoopL_0_intcoupling.pdf} \\ \includegraphics[width=.48\textwidth]{figures/CoopL_1_weakcoupling.pdf} % \includegraphics[width=.48\textwidth]{figures/CoopL_1_intcoupling.pdf} \\ \includegraphics[width=.48\textwidth]{figures/CoopL_5_weakcoupling.pdf} % \includegraphics[width=.48\textwidth]{figures/CoopL_5_intcoupling.pdf} \\ \includegraphics[width=.48\textwidth]{figures/CoopL_10_weakcoupling.pdf} % \includegraphics[width=.48\textwidth]{figures/CoopL_10_intcoupling.pdf} \\ \caption{Steady-state cavity populations as a function of drive strength for cavity loss rate $\gamma_c\approx 0.03\,\wc$ and varying emitter loss rate and collective coupling.} \label{fig:coop_set1} \end{figure*} \begin{figure*} \centering \includegraphics[width=.48\textwidth]{figures/Coop_0_weakcoupling.pdf} % \includegraphics[width=.48\textwidth]{figures/Coop_0_intcoupling.pdf} \\ \includegraphics[width=.48\textwidth]{figures/Coop_1_weakcoupling.pdf} % \includegraphics[width=.48\textwidth]{figures/Coop_1_intcoupling.pdf} \\ \includegraphics[width=.48\textwidth]{figures/Coop_5_weakcoupling.pdf} % \includegraphics[width=.48\textwidth]{figures/Coop_5_intcoupling.pdf} \\ \includegraphics[width=.48\textwidth]{figures/Coop_10_weakcoupling.pdf} % \includegraphics[width=.48\textwidth]{figures/Coop_10_intcoupling.pdf} \\ \caption{Steady-state cavity populations as a function of drive strength for cavity loss rate $\gamma_c\approx 0.17\,\wc$ and varying emitter loss rate and collective coupling.} \label{fig:coop_set2} \end{figure*} \section{Classical coupled oscillator model} \label{sec:app_COmodel} In the main text, we compare the results from our quantum model with simulations using a classical coupled-oscillator model which is extensively used in the literature for describing strong coupling. In this appendix, we show the details of how the mapping between the classical model and the quantum model is found. \subsection{Mapping for an undriven system} The classical model involves $N+1$ coupled oscillators when $N$ emitters interact with the cavity mode. If all emitters are assumed identical, we may take $\omega_i = \omega$, $m_i = m$, $k_i = k$ for all emitters with index $i=1,2,..., N$. Letting index $0$ denote the cavity oscillator, the corresponding classical Hamiltonian is written \begin{align} H_{cl} =& \,m_0 \mleft( \frac{p_0^2}{2m_0^2}+ \frac{1}{2}\omega_0^2 x_0^2\mright) \nonumber \\ &+ \sum^N_{i=1} m \mleft(\frac{p_i^2}{2m^2}+ \frac{1}{2}\omega^2x_i^2 \mright) + \frac{k}{2}\mleft( x_0-x_i \mright)^2 \\ =& \,m_0 \mleft[ \frac{p_0^2}{2m_0^2}+ \frac{1}{2}\mleft( \omega_0^2+\frac{k}{m_0}\mright) x_0^2\mright] \nonumber \\ &+ \sum^N_{i=1} m \mleft[ \frac{p_i^2}{2m^2} + \frac{1}{2}\mleft( \omega^2+\frac{k}{m}\mright)x_i^2 \mright] - k x_0 x_i. \label{aeq:Hcl} \end{align} In the classical model, no rotating-wave approximation (RWA) is applied. To compare with the quantum model, we therefore start with the quantum Rabi Hamiltonian with $N$ identical quantum emitters, \begin{align} \hat{H}_{R}&= \hbar\wc \mleft(\hat{a}^\dagger \a+\frac{1}{2} \mright) \nonumber \\ &+ \sum^N_{i=1}\mleft[ \hbar \we \mleft(\hat{\sigma}_{+i} \hat{\sigma}_{-i}-\frac{1}{2} \mright) + \hbar g \mleft(\hat{a}^\dagger+\a \mright) \mleft(\hat{\sigma}_{-i} + \hat{\sigma}_{+i} \mright) \mright] , \end{align} which simplifies to the Tavis--Cummings Hamiltonian when applying the RWA. In a weak-drive approximation, we may replace $\hat{\sigma}_{-i} \to \hat{b}_i,\, \hat{\sigma}_{+i} \to \hat{b}^\dagger_i$ with $\hat{b}_i$ and $\hat{b}^\dagger_i$ being the annihilation and creation operators, respectively, of the $i$th quantum oscillator. Then, introducing quantum position and momentum operators $\{\hat{x}_c, \hat{p}_c, \hat{x}_{e,i}, \hat{p}_{e,i}\}$, the annihilation operators can be written \begin{align} &\a = \sqrt{\frac{m_c \wc}{2\hbar}} \mleft( \hat{x}_c + i\frac{\hat{p}_c}{m_c \wc} \mright) \nonumber \\ &\hat{b}_i = \sqrt{\frac{m_e\we}{2\hbar}} \mleft( \hat{x}_{e,i} + i\frac{\hat{p}_{e,i}}{m_e \we} \mright). \nonumber \end{align} Using these relations, we can write the quantum Hamiltonian in the $\hat{x}\hat{p}$-representation: \begin{align} \hat{H}_{\hat{x}\hat{p}} =&\, m_c\mleft(\frac{\hat{p}_c^2}{2m_c^2} + \frac{1}{2}\wc^2\hat{x}_c^2\mright) +\sum^N_{i=1} m_e\mleft(\frac{\hat{p}_{e,i}^2}{2m_e^2}+ \frac{1}{2}\we^2\hat{x}_{e,i}^2\mright) \nonumber \\ &+ 2g\sqrt{m_cm_e\wc\we}\hat{x}_c\hat{x}_{e,i}. \label{aeq:Hxp} \end{align} Comparing Eqs.~(\ref{aeq:Hcl}) and (\ref{aeq:Hxp}), we can directly identify $m_0 = m_c$, $m = m_e$, and \begin{align} \label{aeq:k} & k = - 2g \sqrt{m_cm_e\wc \we} ,\\ \label{aeq:om1} & \omega_0^2 = \wc^2-\frac{k}{m_c} = \wc^2+2g\sqrt{\frac{m_e\wc\we}{m_c}} ,\\ \label{aeq:om2} & \omega_i^2 = \we^2-\frac{k}{m_e} = \we^2+2g\sqrt{\frac{m_c\wc\we}{m_e}} . \end{align} \subsection{Coherent drive terms} Finding the classical analog for the strength of an external drive is done in the same manner by comparing the interaction Hamiltonians. Considering a semiclassical model where the quantized cavity mode is driven via dipole interaction with a classical coherent drive $\bar{\mathcal{E}}(t)\cos(\wD t)$, the quantum and classical interaction Hamiltonians are \begin{align} \hat{H}_{d,q} &= -\qc \bar{\mathcal{E}}(t)\cos{(\wD t)}\hat{x}_c \nonumber\\ \label{aqe:drive_int} & = -\Bar{\mu}_c \bar{\mathcal{E}}(t)\cos{(\wD t)} \mleft( \hat{a}^\dagger+\a \mright) ,\\ H_{d,cl} &= -\qc \bar{\mathcal{E}}(t)\cos{(\wD t)}x_c. \end{align} In Eq.~(\ref{aqe:drive_int}), the dipole interaction is rewritten in terms of the transition dipole moment for the cavity oscillator, which in the single-excitation manifold is $\Bar{\mu}_c=\qc \sqrt{\frac{\hbar}{2m_c\wc}}\hat{e}_k$, where $\hat{e}_k$ is a unit vector along the polarization direction. Then, defining the drive amplitude $\Omega_d \equiv \frac{\Bar{\mu}_c \bar{\mathcal{E}}(t)}{\hbar}$, we can write \begin{align} \hat{H}_{d,q} & = -\hbar\Omega_d(t)\cos{(\wD t)} \mleft( \hat{a}^\dagger+\a \mright) ,\\ H_{d,cl} &= -\sqrt{2\hbar m_c\wc}\Omega_d(t)\cos{(\wD t)}x_c. \end{align} \iffalse \subsubsection{Equations of motion} The quantum mechanical equations of motion for $\hat{x}_c$ and $\hat{x}_e$ can be derived in the Heisenberg picture by applying Heisenberg's equation of motion $\frac{d}{dt} \hat{O}(t) = \frac{i}{h} [H,\hat{O}(t)]+\Big(\frac{\partial \hat{O}(t)}{\partial t} \Big)_H$ to $\hat{x}_{pl/qe}$ and $\hat{p}_{pl/qe}$ with $\hat{H}_{\hat{x}\hat{p}}$ in Eq.~(\ref{aeq:Hxp}): \begin{equation} \begin{cases} \frac{d}{dt}\hat{x}_c=\frac{1}{m_c}\hat{p}_c \\ \frac{d}{dt}\hat{p}_c =-m_c\omega^2_{pl}\hat{x}_c-\frac{2g\sqrt{m_cm_e\wc\we}}{\hbar}\hat{x}_e+q\bar{\mathcal{E}}(t)\cos{(\omega_d t)} \end{cases} \end{equation} \begin{equation} \begin{cases} \frac{d}{dt}\hat{x}_e=\frac{1}{m_e}\hat{p}_e\\ \frac{d}{dt}\hat{p}_e =-m_c\omega^2_{qe}\hat{x}_e-\frac{2g\sqrt{m_cm_e\wc\we}}{\hbar}\hat{x}_c \end{cases} \end{equation} Differentiating the equations for $\hat{x}_{pl/qe}$ with respect to $t$ one more time and inserting the expressions for $\hat{p}_{pl/qe}$ gives, after some rearrangement, the equations of motion: \begin{align} & \frac{d^2}{dt^2}\hat{x}_c + \omega^2_{pl}\hat{x}_c + \frac{2g\sqrt{m_cm_e\wc\we}}{\hbar m_c}\hat{x}_e=q\bar{\mathcal{E}}(t)\cos{(\omega_d t)}\\ & \frac{d^2}{dt^2}\hat{x}_e + \omega^2_{qe}\hat{x}_e + \frac{2g\sqrt{m_cm_e\wc\we}}{\hbar m_e}\hat{x}_c=0 \end{align} The corresponding classical equations of motion can be derived \fi \section{Quantum theory for the propagating laser beam} \label{app:Laser} Inside the laser cavity, the light field is well defined and can readily be quantized. In typical experiments, on the other hand, a beam of light has to travel through free space over distances that are much longer than the characteristic length scales of the studied system. The quantum theory for such a propagating light beam traveling in a straight line in free space can be found in, e.g., Chapter 6 of Ref.~\cite{Loudon_2000} and will be presented briefly below. Consider a single propagating laser beam under circumstances where transversal effects are irrelevant to the experiment. Then, the quantization geometry can be taken as a finite cross-sectional area $A$ (defined by the experiment) perpendicular to the propagation axis and a quantization axis of infinite length parallel to the propagation axis. This geometry to a one-dimensional continuous-mode variable that can be taken as the frequency $\omega_k$ with a mode spacing $\Delta \omega = 2 \pi c/L$ that goes to zero as the quantization length $L$ tends to infinity, $L\to \infty$. In this limit, the conversion from sum to integral is \begin{equation} \label{eq:sum_to_int} \sum_k \quad \to \quad \frac{1}{\Delta \omega} \int \dd \omega \end{equation} and the discrete Kronecker delta is related to a continuous Dirac delta-distribution as \begin{equation} \label{eq:delta} \delta_{k,k'} \quad \to \quad \Delta \omega \delta(\omega- \omega'). \end{equation} It follows that the continuous-mode annihilation and creation operators are related to the discrete operators as \begin{align} & \a_k \quad \to \quad \sqrt{\Delta \omega}\a(\omega), \\ & \hat{a}^\dagger_k \quad \to \quad \sqrt{\Delta \omega}\hat{a}^\dagger(\omega), \end{align} which fulfil the continuous-mode commutation relation, \begin{equation} \comm{\a(\omega)}{\hat{a}^\dagger(\omega')} = \delta(\omega-\omega'). \end{equation} Under the assumption of a narrow bandwidth laser, i.e., the excitation bandwidth is much smaller than its central frequency, the lower integration bound can be extended from $0$ to $-\infty$ to cover the entire frequency axis in the integrals above. Thus, the corresponding time-domain operators are obtained as the Fourier transform of $\hat{a}^\dagger(\omega)$ and $\a(\omega)$: \begin{align} \label{eq:at} & \a(t) = \frac{1}{\sqrt{2\pi}}\int^{\infty}_{-\infty} \dd \omega \a(\omega)e^{-i\omega t}, \\ \label{eq:adt} & \hat{a}^\dagger(t) = \frac{1}{\sqrt{2\pi}}\int^{\infty}_{-\infty} \dd \omega \hat{a}^\dagger(\omega)e^{-i\omega t}, \end{align} which have the commutation relation, \begin{equation} \comm{\a(t)}{\hat{a}^\dagger(t')} = \delta(t-t'). \end{equation} The quantized continuous-mode electromagnetic field operator can then be written as \begin{equation} \hat{E}(z,t) = i \int_0^\infty \dd \omega \sqrt{\frac{\hbar \omega}{4\pi \epsilon_0 c A}}\a(\omega)e^{-i\omega (t-\frac{z}{c})} + {\rm h.c.} \end{equation} where h.c.~denotes Hermitian conjugate. The state of the laser field inside the laser cavity can be taken as a coherent state~\cite{Walls_2008}. The output field from the laser will then be a one-dimensional continuous-mode coherent state due to the lack of confinement along the propagation axis. Such a state can be represented using the Fock-space basis kets $\{ \ket{n}\}$ and is created from the vacuum state $\ket{0}$ with the continuous-mode annihilation and creation operators according to \begin{equation} |\{\alpha(t)\}\rangle = e^{\int \dd \omega \alpha(\omega)\hat{a}^\dagger(\omega)-\alpha^*(\omega)\a(\omega)}|0\rangle. \end{equation} Here $\alpha(\omega)$ is the continuous-mode spectral amplitude. The corresponding time-domain state with wavepacket amplitude $\alpha(t)$ is found via Fourier transform as \begin{equation} |\{ \alpha(t)\} \rangle = e^{\int \dd t [\alpha(t)\hat{a}^\dagger(t)-\alpha^*(t)\a(t)]}|\text{vac}\rangle. \end{equation} The coherent-state mode functions satisfy the normalization condition \begin{equation} \int \dd \omega|\alpha(\omega)|^2 = \int \dd t |\alpha(t)|^2 = \expval{\hat{n}}, \end{equation} where $\hat{n}$ is the number operator \begin{equation} \label{eq:nhat} \hat{n} = \int \dd \omega \hat{a}^\dagger(\omega)\a(\omega) = \int \dd \omega \hat{a}^\dagger(t)\a(t'). \end{equation} \subsection{Idealized continuous-wave laser} In the following, a continuous-wave single-mode laser in a coherent state as described above will be considered. In typical optical experiments, the linewidth of the laser mode is much narrower than the other components of the observed quantum system. Therefore the spectral amplitude can be taken as: \begin{equation} \alpha(\omega) = \sqrt{2\pi}\alpha e^{i\varphi}\delta(\omega-\omega_d). \end{equation} Here $\alpha$ is the coherent state amplitude, $\varphi$ the phase, and $\omega_d$ the center frequency. The corresponding wavepacket amplitude $\alpha(t)$ is obtained via the Fourier transform of $\alpha(\omega)$ and is thus a propagating plane wave, \begin{equation} \alpha(t) = \alpha e^{-i\omega_d t + i \varphi}. \end{equation} For an ideal stationary beam in a coherent state, the mean photon flux, $f(t) = \expval{\hat{a}^\dagger(t)\a(t)}$, will be time-independent: \begin{equation} f(t)=|\alpha(t)|^2 \equiv \alpha^2. \end{equation} As is expected for a stationary beam, with a constant photon flux for all times, the mean photon number $\expval{\hat{n}}$ defined in Eq.~(\ref{eq:nhat}) is infinite, and the spectral amplitude cannot be normalized. These facts make calculations using the quantum representation of the stationary beam problematic. \subsection{Partitioning infinite temporal modes} The infinite mean photon number is problematic for calculations as it makes the photons in the external drive field ill-defined. A solution to this problem is to define a complete set of discrete, orthonormal basis functions $\{\Phi_i(t)\}$, which partition the continuous-mode coherent laser beam into an infinite tensor product state of discrete-mode coherent states~\cite{Blow_1990}. If the basis functions $\{\Phi_i(t)\}$ satisfy the orthogonality and completeness relations \begin{equation} \label{aeq:orthogonality} \int \dd t\, \Phi_i(t) \Phi_j^*(t) = \delta_{ij} \end{equation} and \begin{equation} \label{aeq:completeness} \sum_i \Phi_i(t)\Phi_i^*(t') = \delta(t-t'), \end{equation} they form a non-continuous basis set with which a discrete set of annihilation operators may be created according to \begin{equation} \hat{c}_i = \int \dd t \Phi_i^*(t)\a(t). \end{equation} Equation~(\ref{aeq:completeness}) gives the inverse relation \begin{equation} \a(t) = \sum_i \Phi_i(t)\hat{c}_i. \end{equation} Naturally, an eigenstate of $\a(t)$ with eigenvalue $\alpha(t)$ is also an eigenstate of $\hat{c}_i$ with eigenvalue \begin{equation} \label{aeq:alpha_i} \alpha_i = \int \dd t \,\Phi_i^*(t)\alpha(t). \end{equation} It follows that a continuous-mode coherent state can be equivalently expressed as an infinite tensor product of discrete-mode coherent states: \begin{equation} \label{aeq:productstate_prop} |\{\alpha(t)\} \rangle = \underset{i}{\Pi}\; e^{\alpha_i \hat{c}_i^\dagger-\alpha^*_i\hat{c}_i}|0\rangle \equiv | \{\alpha_i\}\rangle. \end{equation} The result in Eq.~(\ref{aeq:productstate_prop}) is an important property for mode matching the continuous-mode coherent state to a discrete-mode. The freedom in choosing the set of basis functions $\{\Phi_i\}$ is large. This facilitates mode matching of the discrete-mode coherent states $\ket{\{\alpha_i\}}$ with a large variety of mode functions. One of the simplest examples is the partitioning into rectangular time-bins with duration $T$, which are described by the set of functions $\{\Psi_m(t) \}$ defined as~\cite{van_Enk_2001} \begin{equation} \label{aeq:Psi} \Psi_m(t) = \begin{cases} \frac{1}{\sqrt{T}} &\text{for} \big|t-\frac{z_0}{c}-mT \big|< \frac{T}{2}\\ 0 & \text{otherwise} \end{cases}. \end{equation} Above, the label $z_0$ denotes an arbitrarily chosen reference point along the propagation axis. The set of functions in Eq.~(\ref{aeq:Psi}) can be extended to form a complete set that satisfies Eqs.~(\ref{aeq:orthogonality}) and (\ref{aeq:completeness}). The corresponding eigenvalue for each of these discrete-mode coherent states can be obtained from Eq.~(\ref{aeq:alpha_i}) as \begin{equation} \label{aeq:alpha0} \alpha_m = \int \dd t \, \Psi_m(t) \alpha(t) \equiv \alpha_0. \end{equation} The duration $T$ can be chosen arbitrarily as long as it is much larger than $1/\omega_d$. Thus, the continuous wave laser described by the travelling plane wave $\alpha(t)$ can be expressed as a sequence of $M\to \infty$ copies of the discrete-mode coherent states $|\alpha_0\rangle$ defined by the functions in Eq.~(\ref{aeq:Psi}). The benefit of going through all the trouble of reaching this representation is that we now have a well-defined wavepacket amplitude $\alpha_0$ for each partitioned piece of the laser beam. \section{Theoretical framework} \label{sec:theory} \input{sections/methods/TCmodel} \input{sections/methods/MasterEquation} \input{sections/methods/Scattering} \input{sections/methods/COmodel} \section{Unconventional saturation effect at resonant driving} \label{sec:QuantumNonLinearResp} \label{sec:results} \input{sections/results/ScatteringSpectrum} \input{sections/results/MeanCavityResponse} \input{sections/results/Multiphoton} \input{sections/results/CriticalDrive} \input{sections/results/FOM} \input{sections/results/SuppressionCavity} \input{sections/results/QuantumInterference} \input{sections/conclusions} \input{sections/acknowledgments} \subsection{Analogue classical coupled oscillator model in weak drive regime} \label{sec:COmodel} For adequately weak drive, much of the phenomenology associated with coupled cavity-emitter systems can be described by a classical coupled-oscillator (CO) model~\cite{Novotny_2010,Torma_2015,Alzar_1995}. Here a CO model will be used for comparison when analyzing the quantum effects that arise beyond the weak drive regime. The CO model considered involves $N+1$ mechanically coupled masses on springs. The corresponding classical coupling constant and drive strength are $-2g\sqrt{m_c m_e \wc \we}$ and $\Omega_d\sqrt{2m_c\hbar\wc}$, respectively. For simplicity, the cavity and emitter masses, $m_c$ and $m_e$, are set to 1. The mapping of the quantum parameters to the classical model can be found Appendix~\ref{sec:app_COmodel}. Letting index $0$ denote the oscillator representing the cavity mode and index $1, ..., N$ the emitters, the equations of motions for the classical analog of $N$ identical emitters coupled to a coherently driven cavity mode are \begin{align} \label{eq:x0} &\ddot{x}_0 + \gamma_c \dot{x}_0 + \wc^2 x_0 + \sum_{i = 1}^N 2g\sqrt{\wc\we} x_i = \Omega_d\sqrt{2\hbar \wc}\cos{(\wD t)} , \\ \label{eq:xi} &\ddot{x}_i + \gamma_e \dot{x}_i + \we^2 x_i + 2g\sqrt{\wc\we} x_0 = 0, \quad i = 1,\, 2,\, ...,\, N . \end{align} The set of coupled equations~(\ref{eq:x0})-(\ref{eq:xi}) is easily solved by making the ansatz $z_i=C_ie^{i\wD t}$ for all $i=0,.., N$ and noting that $x_i = \Re{z_i}$ and $\cos{(\wD t)} = \Re{e^{i\wD t}}$. The solutions for the amplitudes are \begin{align} \label{eq:C0} &C_0 =\frac{\Omega_d\sqrt{2\hbar\wc}(\we^2-\wD^2+i\wD\gamma_e)}{(\wc^2-\wD^2+i\wD\gamma_c)(\we^2-\wD^2+i\wD\gamma_e)-4Ng^2\wc\we} ,\\ \label{eq:Ci} &C_i =\frac{-2g\sqrt{\wc\omega_e}\Omega_d\sqrt{2\hbar\wc}}{(\wc^2-\wD^2+i\wD\gamma_c)(\we^2-\wD^2+i\wD\gamma_e)- 4Ng^2\wc\we}. \end{align} Equations~(\ref{eq:C0}) and (\ref{eq:Ci}) can be used to calculate the classical oscillator energies $E_{c/e} = \frac{1}{2} \omega^2_{c/e}|C_{0/i}|^2$, which can be compared with the average energies $E^{qm}_{c} = \hbar \wc \langle \hat{a}^\dagger \a \rangle$ and $E^{qm}_{e,i} = \hbar \we \langle \hat{\sigma}_{+i} \hat{\sigma}_{-i} \rangle$ in the cavity mode and emitter ensemble, respectively, calculated using the Tavis--Cummings model. Since the average energies in both models must be the same, the classical analogue to the populations is given by \begin{align} \label{eq:npl} & \langle n_{c} \rangle = \frac{\wc^2|C_0|^2}{2 \hbar \wc}, \\ \label{eq:nqe} & \langle n_{\rm ens} \rangle = \sum_i^N \frac{\we^2|C_i|^2}{2\hbar \we} = \frac{N\we^2|C_i|^2}{2\hbar \we}. \end{align} Equations~(\ref{eq:npl}) and (\ref{eq:nqe}) will be useful for comparing the classical and quantum results in this article. Note that Eq.~(\ref{eq:nqe}) represents the total ensemble average population. \subsection{Master equation} \label{sec:ME} In this work, the scattering from the system under weak to intermediate driving is investigated. To solve for the cavity-emitter state including dissipation, an open-quantum-system approach is employed, using the master equation \begin{equation} \dot{\hat{\rho}} = -\frac{i}{\hbar} \mleft[\H_{TC},\hat{\rho}\mright] + \gamma_c \mathcal{D}_{\a}\mleft[\hat{\rho}\mright] + \sum_{i=1}^N \gamma_e \mathcal{D}_{\hat{\sigma}_{-i}}\mleft[\hat{\rho}\mright]. \label{eq:ME} \end{equation} Here the operator $\mathcal{D}_{\hat{o}}[\cdot] = \hat{o}\cdot \hat{o}^\dagger -\frac{1}{2}\acomm{\hat{o}^\dagger \hat{o}}{\cdot}$ acting on the density matrix $\hat{\rho}$ is the standard Lindblad superoperator for dissipation associated with the operator $\hat{o}$~\cite{Lindblad1976}. With this master-equation approach, it is also possible to treat the case of strong driving, for which the traditional saturation effect would be found. The first term in Eq.~(\ref{eq:ME}) describes coherent evolution with the Tavis--Cummings Hamiltonian. The second term describes radiative and non-radiative dissipation of the cavity mode, making the total dissipation rate $\gamma_c=\gamma^{r}_{c}+\gamma^{nr}_{c}$. In the third term, the individual dissipation rates $\gamma_e$ for the emitters are assumed to be equal. The form of Eq.~(\ref{eq:ME}) neglects the contribution of thermal photons to the system dynamics and is therefore valid for low temperatures or high-frequency quantum systems with $\hbar\omega_c, \hbar\omega_e \gg k_B T$, such that thermal fluctuations do not particularly affect the dynamics. In experimental realisations, this condition is naturally met, e.g, for optical frequencies at room temperature. A more compact way of writing Eq.~(\ref{eq:ME}) is in terms of the Liouvillian superoperator: \begin{equation} \mathcal{L}[\cdot]=-\frac{i}{\hbar} \left[\H_{TC},\cdot\right] + \gamma_c \mathcal{D}_{\a}\left[\cdot\right] + \sum_{i=1}^N \gamma_e \mathcal{D}_{\hat{\sigma}_{-i}}\left[\cdot\right]. \end{equation} Then, the task of finding the steady state is reduced to the eigenvalue problem \begin{equation} \mathcal{L}\left[\hat{\rho}_{ss}\right] = 0 \label{eq:ME_ss} \end{equation} with a Hermitian density operator $\hat{\rho}_{ss}$ satisfying the normalisation condition \begin{equation} \Tr{\hat{\rho}_{ss}} = 1. \end{equation} \subsection{Coherently driven Tavis-Cummings model} \label{sec:TCmodel} \begin{figure} \includegraphics[width=\linewidth]{figures/TCHamiltonian_external.pdf} \caption{Schematic illustration of the open Tavis-Cummings system under investigation.} \label{fig:TCHamiltonian} \end{figure} Figure~\ref{fig:TCHamiltonian} shows a schematic illustration of the driven dissipative Tavis--Cummings system considered in this work. The Tavis--Cummings model describes the dynamics of an ensemble of $N$ identical quantum emitters interacting with a common single-mode cavity field~\cite{tavis_cummings_1968}. No interaction between the individual emitters is included, which is motivated in circumstances where the cavity-emitter interaction is the dominant interaction governing the dynamics. Including a coherent drive $\bar{\mathcal{E}}\cos(\wD t)$, with spatial amplitude $\bar{\mathcal{E}}$ and frequency $\wD$, the driven Tavis--Cummings Hamiltonian can be written within the rotating-wave approximation as \begin{eqnarray} \H_{TC} = && \hbar \wc \hat{a}^\dagger \a + \frac{\hbar \Omega_d}{2}\left(\hat{a}^\dagger e^{-i\wD t} + \a e^{i\wD t}\right)\nonumber \\ && + \sum_{i=1}^N \left[ \hbar\we\hat{\sigma}_{+i}\hat{\sigma}_{-i} + \hbar g(\hat{a}^\dagger \hat{\sigma}_{+i} + \a \hat{\sigma}_{-i})\right]. \label{eq:Htc} \end{eqnarray} Here, $\a$ and $\hat{a}^\dagger$ are annihilation and creation operators, respectively, for the cavity mode, $\wc$ is the cavity frequency, $ \hat{\sigma}_{-i}$ and $\hat{\sigma}_{+i}$ are the Pauli lowering and raising operators, respectively, for the $i$th quantum emitter, $\we$ is the transition frequency of the emitters, $\Omega_d$ is the strength of the cavity drive, and $g$ is the strength of the coupling between the cavity mode and a single quantum emitter. The cavity drive strength is given by $\Omega_d= (\bar{a}\cdot \bar{\mathcal{E})}/\hbar$, where the spatially dependent parameter $\bar{a}$ is cavity-specific. Thus, the exact form of $\Om_d$ is determined by the explicit drive and cavity configuration. No external driving of the emitters is considered. This assumption is natural for most experimental setups where the emitters are located inside the cavity, but works as well for open cavities such as plasmonic nano-cavities that typically have much larger transition dipole moments than most quantum emitters. Furthermore, spatial variations of the cavity-emitter dipole interaction is neglected. Thus, we take $g=\bar{\mu}_e\cdot \bar{\mathcal{E}_c}/\hbar$ for all emitters, with the transition dipole moment $\bar{\mu}_e$ interacting with the cavity field with amplitude $\bar{\mathcal{E}}_c$. This approximation is sufficient for many situations involving only a few localized quantum emitters, and in situations where the emitters are small compared to the cavity. With equal interaction rates $g$, the structure of the interaction term in the Tavis--Cummings Hamiltonian [Eq.~(\ref{eq:Htc})] leads to the collective interaction strength $g_{col} = \sqrt{N}g$ between the cavity and the collective bright mode of the emitter ensemble. \subsection{Probing the cavity} \label{sec:Scattering} For applications in quantum photonics, the scattering from the system is of great interest. In cavity-emitter systems where the cavity interacts much more strongly with the environment, the collection of emitted photons from the emitters may be neglected. This complies with the condition $\gamma_c^r \gg \gamma_e$, which is what is considered in this work. Moreover, in most experimental setups, the collection of emitted photons from the driven system can be located such that the incident laser field is filtered out. The collected scattering $S$ from the system will therefore be proportional to the radiative cavity decay rate and the average cavity population: \begin{equation} S \propto \gamma_c^r \expval{\hat{a}^\dagger \a}. \label{eq:Scattering} \end{equation} \subsection{Critical drive strength} \label{sec:CriticalDrive} We can also write down a condition for entering into the nonlinear regime using this effective-drive picture. Under the assumption that the emitter ensemble behaves as a driven harmonic oscillator up to order $N$, we would expect the cavity response to enter the nonlinear regime when the missing $(N+1)$th term in the coherent-state approximation $\ket{\alpha_{\text{ens}}}$ becomes comparable to the cavity population. From the coupled-oscillator perspective, this condition is easy to understand. That is, up to N excitations, the system behaves classically, and the ensemble can interfere destructively to cancel out excitation of the cavity. On the other hand, when the ensemble fails to interfere destructively due to its few-level spectrum, the cavity population becomes comparable to the missing $(N+1)$th term in $\ket{\alpha_{\text{ens}}}$. Formally, this condition for the critical drive can be written down as \begin{equation} \label{eq:conditon} \expval{ \hat{a}^\dagger \a } = (N+1) \text{P}_{\alpha_{\text{ens}}}(N+1). \end{equation} Here $\text{P}_{\alpha}(n)\approx \frac{|\alpha|^{2n}}{n!}$ is the Poisson probability distribution for finding $n$ excitations in the coherent state when $|\alpha|^2\ll1$ and the factor $(N+1)$ comes from having $(N+1)$ excitations with probability $\text{P}_{\alpha}(n)$. In \figpanel{fig:ss(Om)}{a}, we have already seen that the steady-state cavity population, $\expval{\hat{n}_c}=\expval{\hat{a}^\dagger \a}_{ss}$, is well described by the classical result $\expval{n_c}$ for a sufficiently weak drive. Therefore, Eqs.~(\ref{eq:C0}) and (\ref{eq:npl}) give an expression for the cavity population in the weak-drive regime, which on resonance is \begin{equation} \label{eq:nc} \expval{\hat{n}_c}\Big|_{\rm weak} = \frac{\Omega_d^2\gamma_e^2}{16g_{\text{col}}^4}\frac{1}{\mleft(1+\frac{\gamma_c\gamma_e}{4g_{\text{col}}^2}\mright)^2}. \end{equation} We can also find an expression for the effective ensemble drive amplitude $\alpha_{\text{ens}} = \Omega_{\text{ens}} T$ using $\Omega_{\text{eff}}$ in Eq.~(\ref{eq:Om_eff}): \begin{equation} \label{eq:alpha_ens_amp} \alpha_{\text{ens}} = \Omega_{\text{ens}} T = \frac{\Omega_d}{1+\frac{\gamma_c \gamma_e}{4g_{\text{col}}^2}}T. \end{equation} The condition in Eq.~(\ref{eq:conditon}) thus becomes \begin{equation} \expval{n_c} = (N+1)\frac{\abs{\alpha_{\text{ens}}}^{2(N+1)}}{(N+1)!}, \end{equation} which gives the expression \begin{equation} \label{eq:OmB} \Omega_{\rm cr}(N) = \left(\frac{N!\,\gamma_e^2g_{\text{col}}^{2(N-1)}}{16\,(1+\frac{\gamma_c \gamma_e}{4g_{\text{col}}^2})^2}\right)^{\frac{1}{2N}} \end{equation} for the critical drive strength $\Omega_{\rm cr}$ that indicates the onset of the unconventional saturation regime. \begin{figure*} \includegraphics[width=\linewidth]{figures/OmB_panel_2a.pdf} \\ \includegraphics[width=\linewidth]{figures/OmB_panel_2b.pdf} \caption{Calculations of the steady-state cavity population for different [(a),(b),(c),(d)] emitter decay rates $\gamma_e$ and [(e),(f),(g),(h)] collective interaction strengths $g_{\text{col}}$. The remaining parameters were held fixed, using the same values as in Fig.~\ref{fig:ss(Om)}. The red stars mark the derived analytical expression for the critical drive $\Omega_{\rm cr}$. As can be seen, the analytical results predict exceedingly well the onset of the nonlinear regime.} \label{fig:OmB} \end{figure*} As can be seen in Fig.~\ref{fig:OmB}, the calculation of the critical drive with Eq.~(\ref{eq:OmB}) predicts very well the onset of the nonlinear regime. Figures~\ref{fig:OmB}\figlink{(a)-(d)} show the steady-state cavity response and the calculated $\Omega_{\rm cr}$ for a wide range of emitter decay rates $\gamma_e$, whereas Figs.~\ref{fig:OmB}\figlink{(e)-(h)} show the same for several different coupling strengths $g_{\text{col}}$. In all panels, the analytically calculated $\Omega_{\rm cr}(N)$, marked with red stars, lie very close to the beginning of the nonlinear regime. Thus, we have not only found a new intriguing regime for performing quantum nonlinearity measurements, but we can also, with high accuracy, predict its onset for a wide range of parameters. \subsection{Mean cavity response for increasing drive rate} \label{sec:MeanCavityResponse} Encouraged by the visible quantum effects on resonance in the spectrum, we here further explore the optical response of the Tavis--Cummings model for resonant driving. The spectra in Fig.~\ref{fig:spectrum} are calculated with a drive strength that is often considered to be in the weak-drive regime. Nonetheless, it is perhaps more instructive to discuss in terms of an intermediate drive regime, $\Omega_d< g_{\text{col}}$, prompted by the large losses that retain the system response in the weak-excitation regime. \begin{figure} \centering \includegraphics[width=\linewidth]{figures/ss_Om.pdf}\\ \includegraphics[width=\linewidth]{figures/spm_Om.pdf} \caption{Log-log plots of the average steady-state populations as a function of the normalized drive strength $\Omega_d/g_{\text{col}}$, calculated with the master equation for $N = 1-4$. (a) The cavity population shows an $N$-dependent transition through a nonlinear response regime for intermediate drive strengths between two linear asymptotes $\expval{n_c}$ (dashed black line) and $\expval{n_c^o}$ (dotted black line). The dashed vertical line marks $\Om_d/g_{col}=0.25$, which was used for calculating the spectra in Fig.~\ref{fig:spectrum}. (b) The total ensemble population for the same range of drive strengths as in panel (a). This population saturates at $N/2$ when the drive is strong. } \label{fig:ss(Om)} \end{figure} In Fig.~\ref{fig:ss(Om)}, we show the evolution of the steady-state cavity population $\langle \hat{a}^\dagger \a\rangle_{ss}$ and the steady-state total ensemble population $\langle \sp \hat{\sigma}_- \rangle^{\rm ens}_{ss}=\sum_1^N\langle\hat{\sigma}_{+i} \hat{\sigma}_{-i}\rangle_{ss}$ as a function of drive strengths from truly weak-drive conditions to strong drive ($\Omega_d>g_{\text{col}}$). The populations are calculated for $N=1-4$ and are compared to the corresponding classical populations $\expval{ n_{c}}$ and $\expval{n_{\rm ens}}$ given by Eqs.~(\ref{eq:npl}) and (\ref{eq:nqe}). Intriguingly, as the drive strength increases, the results in Fig.~\ref{fig:ss(Om)}\figlink{(a)} show the cavity response entering into a nonlinear regime for each system size in turn. This effect is visible as an $N$-dependent break from the linear, classical response. Contrary to what naively could be expected in the weak-excitation regime, this implies that the few-level nature of a quantum-emitter ensemble plays an important role for the system dynamics, similar to the traditional saturation effect, already well before the system enters the strong drive regime. More specifically, \figpanel{fig:ss(Om)}{a} shows how the cavity response transition between two linear regimes at weak and strong driving, respectively. In the weak-drive regime, the cavity population follows the classical population $\expval{n_c}$ calculated with the CO model. Then, depending on the number of emitters $N$, a nonlinear regime is passed before the cavity again has a linear response described by an uncoupled driven damped harmonic oscillator with population $\expval{n_c^o}=\Omega_d^2/\gamma_c^2$. Comparing the cavity population in \figpanel{fig:ss(Om)}{a} with the ensemble population in \figpanel{fig:ss(Om)}{b} shows that the nonlinear regime appears well before the emitter ensemble has saturated, i.e., when $\expval{\sp \hat{\sigma}_-}^{\rm ens}_{ss} \ll N/2$. It is not until strong drive conditions have been reached, $\Omega_d/g_{\text{col}} > 1$, that the ensemble saturates and the cavity population approaches the response of an uncoupled driven harmonic oscillator. A study of the slopes for the cavity population in the intermediate drive regime [\figpanel{fig:ss(Om)}{a}] shows the first evidence of the emitter-ensemble origin of the strongly nonlinear behavior. In linear response, the cavity population is expected to have a linear dependence on the driving intensity $I \propto \Omega_d^2$. This dependence is precisely what \figpanel{fig:ss(Om)}{a} shows for a sufficiently weak drive, where all systems have a slope of two in the log-log plot. If a multiphoton process of order $n$ is dominant, on the other hand, the cavity population would instead be proportional to the $n$th power of the driving intensity: $\expval{\hat{a}^\dagger \a}_{ss}\propto I^n \propto \Omega_d^{2n}$. Simple log-fits of the new slopes in \figpanel{fig:ss(Om)}{a} give the inclines $\sim 4,\, 6,\, 8$, and $10$ which would correspond to $2$-, $3$-, $4$-, and $5$-photon processes for the cases of $N=1,\,2,\,3$ and $4$ respectively. This indicates the dominance of $(N+1)$-photon processes facilitated by the ensemble of $N$ emitters. \subsection{Multiphoton processes due to unconventional saturation effects} \label{sec:EffectiveDrive} To gain a better understanding of the observed dynamics, we study the system for weak external driving. By applying appropriate weak-drive approximations, the master equation in Eq.~(\ref{eq:ME}) simplifies to the same type of coupled equations of motion for the density-matrix elements~\cite{Carmichael_2008} as in the coupled-oscillator model described in Sec.~\ref{sec:COmodel}. Therefore, more insight into the Tavis--Cummings dynamics in the weak-drive regime can be gained by observing the simple analytical solutions to the classical equations of motion presented in Eqs.~(\ref{eq:x0}) and (\ref{eq:xi}). In the coupled-oscillator model, an effective drive {\em on the cavity} can be defined by combining the external drive term with the coupling to the emitters, i.e. rearranging the terms in Eq.~(\ref{eq:x0}): \begin{equation} \label{eq:Deff_cl_x} D_{\text{eff}}^{\text{cl}} = \Om_d \sqrt{2\hbar\omega_{0}}\cos(\omega_0 t) - \sum_i^N2g\omega_0 x_i. \end{equation} The solution for $x_{i}$ is the real part of the ansatz $z_i=C_ie^{i\omega_d t}$ with the coefficient $C_i$ given by Eq.~(\ref{eq:Ci}). Inserting the solution for $x_i$ on resonance ($\omega_d = \omega_c = \omega_e \equiv \omega_0$) gives the effective drive \begin{equation} \label{eq:Deff_cl} D_{\text{eff}}^{\text{cl}}\Big|_{\text{res}} = \mleft(1-\frac{1}{1+\frac{\gamma_c \gamma_e}{4g^2_{col}}} \mright) \Om_d \sqrt{2\hbar\omega_{0}}\cos(\omega_0 t). \end{equation} Equation~(\ref{eq:Deff_cl}) shows that the external drive and the ensemble oscillator will interfere destructively. For $\gamma_c\gamma_e \ll g^2_{col}$, the effective amplitude \begin{equation} \label{eq:Om_eff} \Omega_{\text{eff}} = \mleft(1-\frac{1}{1+\frac{\gamma_c \gamma_e}{4g^2_{col}}} \mright) \Om_d \approx \frac{\gamma_c \gamma_e}{4g^2_{col}} \Om_d, \end{equation} is much smaller than $\Omega_d$. This result explains the deep dip observed at resonance in the spectrum presented in \figpanel{fig:spectrum}{b}. Moreover, it elucidates the suppression of the coupled cavity population $\expval{n_c}$ compared to the uncoupled cavity population $\expval{n_c^o}$ shown in \figpanel{fig:ss(Om)}{a}. A similar effective drive can be found in the Heisenberg picture for coupled quantum oscillators described by the position and momentum operators $\{\hat{x}_{c}, \hat{x}_{e,i}, \hat{p}_{c}, \hat{p}_{e,i}\}$. The effective quantum drive has the same form as \eqref{eq:Deff_cl_x}, but with the classical position variable $x_i$ replaced by the quantum operator $\hat{x}_{e,i}$. Since the eigenenergy spectrum of the emitter ensemble resembles a harmonic oscillator up to the same order of excitations as the number of emitters $N$, the validity of this coupled-oscillator picture is motivated. As such, the emitter ensemble behaves like a harmonic oscillator for weak excitation where higher-order terms are negligible. A coherently driven damped harmonic oscillator will also be in a coherent state. Hence, we can make a coherent-state approximation of the emitter ensemble to order $N$ in the weak excitation regime. In terms of Fock states, this coherent state can be written as \begin{equation} \label{eq:alpha_ens} |\alpha_{\text{ens}} \rangle = e^{-\frac{|\alpha_{\text{ens}}|^2}{2}}\sum_{n=0}^N \frac{\alpha_{\text{ens}}^n}{\sqrt{n!}}|n\rangle. \end{equation} The complex amplitude $\alpha_{\text{ens}}$ with $\abs{\alpha_{\text{ens}}}^2 \propto \expval{\sp \hat{\sigma}_-}^{\rm ens}_{ss}$ is defined by the emitter ensemble. Moreover, an idealized laser beam propagating through free space can be represented as a continuous-mode coherent state. This continuous-mode coherent state can be partitioned into an infinite set of discrete-mode coherent states \begin{equation} \label{eq:alpha_d} \ket{\alpha_d} = \exp^{\frac{|\alpha_d|^2}{2}}\sum_{n=0}^\infty \frac{\alpha_d^n}{\sqrt{n!}}\ket{n} \end{equation} with amplitude $\alpha_d$, which may be assumed mode matched with the emitter-ensemble state. In \appref{app:Laser}, we discuss the freedom in partitioning continuous-mode coherent states and also give a simple example. With the coherent-state approximation for the emitter ensemble and the mode-matched partitioning of the laser beam, Eq.~(\ref{eq:Deff_cl_x}) suggests that the cavity can be seen as driven by an effective, coherent state in the linear regime. In terms of Fock states, this effective drive state can be written down as \begin{equation} \label{eq:alpha_eff} \ket{\alpha_{\text{eff}}} \approx \sum_{n=0}^N \frac{(\alpha_d-\alpha_{\text{ens}})^n}{\sqrt{n!}} \ket{n} \end{equation} for small $\abs{\alpha_d}^2$ and $\abs{\alpha_{\text{ens}}}^2$. For sufficiently weak drive, only lower-order Fock states ($n\leq N$) contribute notably to the scattering dynamics. In this regime, Eq.~(\ref{eq:Om_eff}) gives a classically derived analytical expression for the effective drive $\Omega_{\text{eff}}$, which agrees well with the numerical calculations using the master equation. By combining these two pictures, it can be seen that Eq.~(\ref{eq:alpha_eff}) describes an effective, coherent drive on the cavity with amplitude \begin{equation} \label{eq:alpha_eff_amp} \alpha_{\text{eff}} = \Omega_{\text{eff}} T \equiv (\Omega_d -\Omega_{\text{ens}})T, \end{equation} where $T$ is a characteristic timescale set by the system. Nevertheless, there are distinct differences between the classical and quantum models that become clear in this effective drive picture. Since the ensemble can only destructively interfere with the drive up to order $N$, the $(N+1)$th state in the Fock-state expansion of the drive in \eqref{eq:alpha_d} will become significant for the dynamics at stronger drive strengths. In \figpanel{fig:ss(Om)}{a}, the cavity response reveals this effect as $(N+1)$-photon processes for intermediate drive strengths. For even stronger drive, the emitter ensemble will saturate, and the uncoupled cavity response $\expval{n_c^o}$ will be approached. The $(N+1)$-photon processes in the intermediate drive regime can be seen as a result of an \textit{unconventional saturation effect} where the emitter ensemble saturates on the cavity-emitter interaction timescale \begin{equation} \label{eq:T} T = \frac{1}{g_{\text{col}}}. \end{equation} This unconventional saturation is not visible in the spectrum since the emitter ensemble is still weakly populated and has \textit{not} saturated in the traditional sense, i.e., can not absorb more energy. Instead, the unconventional saturation effect can be described as the destructive interference between different excitation pathways which occurs on the characteristic timescale $T$ given in \eqref{eq:T}. Since the cavity-emitter interaction rate determines the drive rate with which the ensemble can drive the cavity, the timescale $T$ appears naturally. \subsection{Relation to exciton-induced transparency} \label{sec:QuantumInterference} \begin{figure*} \centering \includegraphics[width=\textwidth]{figures/EIT_2.pdf}\\ \caption{Spectra of the average cavity population $\langle \hat{a}^\dagger \a \rangle$ for $N= 1, \, 2$, and 3 emitters plotted against the classical analogue $\langle n_c\rangle$ on a [(a),(b),(c)] linear and [(d),(e),(f)] logarithmic scale. As is clearly seen throughout the log-log plots, the quantum interference effect is present for a wide range of interaction strengths below and at the strong-coupling limit $g_{\text{col}} \geq \gamma_c/2$.} \label{fig:EIT} \end{figure*} The underlying destructive interference effect, giving rise to the observed suppression of the cavity population on resonance, can in the weak drive regime be understood as a classical analogue to electromagnetically induce transparency (EIT)~\cite{Alzar_1995}. Indeed, the coupled set of equations presented in Eqs.~(\ref{eq:x0}) and (\ref{eq:xi}) is the same as those used for modeling classical EIT. EIT is more commonly discussed in systems with more moderate light-matter coupling than illustrated in Fig.~\ref{fig:spectrum}. In Fig.~\ref{fig:EIT}, the cavity population spectrum is plotted for $N= 1, \,2$, and 3 emitters together with the classical analogue for increasing interaction strength $g_{\text{col}}$. At the top, in \figpanel{fig:EIT}{a} and \figlink{(b)}, the typical EIT regime with a rather moderate interaction strength $g_{\text{col}}< \gamma_c/2$ is shown. As is clearly visible throughout the log-log plots in the right panel, the $N$-dependent quantum interference effect at resonance persists for a wide range of interaction strengths. For a system with one emitter, a semiclassical analog to classical EIT, treating the emitter quantum mechanically and the cavity classically, has already been referred to as \textit{'exciton-induced transparency'} (ExIT). ExIT has been discussed within the context of plasmon-exciton coupling~\cite{Artuso_2010,Ridolfo_2010,Pelton_2019} and demonstrated with a plasmonic nano-cavity and quantum-dot system~\cite{Wu_2010}. The saturation of the ExIT effect has been discussed in Ref.~\cite{Shah_2013}, although the exact power dependence was not analyzed. The regime with dominant two-photon processes for this single emitter system was thus not identified. However, the systems exhibiting ExIT should indeed be suitable for demonstrating unconventional saturation. \subsection{Scattering spectrum} \label{sec:Spectrum} \begin{figure} \includegraphics[width=\linewidth]{figures/Spectrum_N1-4.pdf}\\ \includegraphics[width=\linewidth]{figures/Spectrum_N1-4_log.pdf}% \caption{Master-equation calculations of the cavity populations in the steady state for coupled cavity-$N$-emitter systems with the same collective interaction strength $g_{\text{col}}$. The spectra are compared with the analogue, classical calculation. (a) The spectra for $N = 1-4$ quantum emitters show only minor differences between different $N$ and the classical CO model when plotted on a linear scale. (b) The spectra viewed on a logarithmic scale, on the contrary, show considerable differences of several orders of magnitude for resonant driving.} \label{fig:spectrum} \end{figure} Large loss rates generally limit experimental investigations to weak excitation, $\langle \hat{a}^\dagger \a \rangle \ll 1$. In this regime, strong coupling with the emitter ensemble will lead to vacuum Rabi splitting in the spectrum. This effect can be seen in Fig.~\ref{fig:spectrum}\figlink{(a)} for the steady-state cavity population $\langle \hat{a}^\dagger \a \rangle_{ss} = \Tr{\hat{a}^\dagger \a \hat{\rho}_{ss}}$ under continuous driving within the weak-excitation regime, with emitters on resonance with the cavity ($\wc=\we$). The steady state $\hat{\rho}_{ss}$ is found from the master equation by solving Eq.~(\ref{eq:ME_ss}) for $N=1,2,3$, and $4$ quantum emitters, and is compared with the classical solution $\langle n_{c}\rangle$ given by Eq.~(\ref{eq:npl}). As can be seen, there are only small differences in the spectra between different $N$ and the classical solution. On the other hand, examining the same spectra on a logarithmic scale in Fig.~\ref{fig:spectrum}\figlink{(b)}, large deviations (several orders of magnitude) from the classical model can be seen when the drive is resonant with the cavity and the emitters. Despite having the same collective interaction strength $g_{\text{col}}$, large differences can also be seen between the spectra for different numbers of emitters in the ensemble. The spectrum for $N=1$ shows the largest deviation from the classical case; adding more emitters yields spectra approaching the classical response. Thus, we have found a sweet spot for quantitative quantum effects that differentiate between different emitter-ensemble sizes $N$ in the weak-excitation regime. In fact, it turns out that a strongly $N$-dependent nonlinear response can be accessed for resonant driving in the steady state, as will be shown in the next section. For this simulation and throughout the main text, the emitters are taken to be on resonance with the cavity mode, i.e., $\omega_{e}=\omega_{c}$. The other parameters used in Fig.~\ref{fig:spectrum} were $\gamma_c/\omega_c=0.03$, $\gamma_e/\omega_c=0.0003$, $g_{\text{col}}/\omega_c=0.03$, and $\Omega_d/g_{\text{col}}=0.25$. \subsection{Figure of merit} \label{sec:FOM} So far, we have discussed unconventional saturation as an effect of the destructive interference (or the competition of) two distinct excitation pathways: cavity-drive and cavity-emitter. That interesting quantum effects can arise in dissipative Tavis--Cummings type systems due to quantum interference has already been shown with the so-called unconventional photon blockade effect~\cite{Radulaski_2017,Bamba_2011,You_2020,Snijders_2018,Flayac_2017,Saez-Blazquez_2017,Saez-Blazquez_2018}. The unconventional photon blockade, however, is observed for weak excitation and strong-coupling conditions. The unconventional saturation effect observed here, on the other hand, is instead present for intermediate drive strengths and appears for resonant driving in a parameter regime where unconventional photon blockade is absent. It turns out that a good figure of merit for unconventional saturation is the cooperativity \begin{equation} \label{eq:Coop} C \equiv \frac{4g_{\text{col}}^2}{\gamma_c\gamma_e}. \end{equation} Why \eqref{eq:Coop} is a good figure of merit can be seen by studying the induced transparency (reduced cavity population) on resonance due to the effective drive in the classical case. By taking the ratio between the classically derived coupled- and uncoupled-cavity populations, it can be seen that the cavity response will be suppressed with a factor depending on $C$: \begin{equation} \label{eq:FOM} \frac{\expval{n_c}}{\expval{n_c^o}} = \frac{1}{\text{C}+1}. \end{equation} To arrive at this relation, we have used the expression in \eqref{eq:nc} for $\expval{n_c}$, found by solving the classical coupled-oscillator equations of motion. A similar calculation for an uncoupled cavity, driven by the same external drive on resonance gives \begin{equation} \label{eq:nc_o} \expval{n_c^o} = \frac{\Omega_d^2}{\gamma_c^2}, \end{equation} as already mentioned above. In \figpanel{fig:ss(Om)}{a}, it can be seen that \eqref{eq:FOM} governs the region in which the unconventional saturation effect can be observed. For small cooperativities, i.e., $C\sim 1$ or smaller, the suppression of the cavity response due to the interaction with the emitter ensemble is too small for observing unconventional saturation. However, for $C \gtrsim 10$ the unconventional saturation effect starts to become clearly visible, and (as would be expected) it grows more distinct for increasing $C$. In \appref{app:coop}, additional simulations that show how the cavity response changes with the cooperativity can be found. \subsection{Suppression of the cavity response} Equation~(\ref{eq:FOM}) in \secref{sec:FOM} shows a classically derived expression for the suppression of the coupled-cavity response in the linear regime. This result, together with the effective drive $\ket{\alpha_{\text{eff}}}$ found in Eq.~(\ref{eq:alpha_eff}), underlines the expectation of a transition in the cavity response from a coupled coherent state to an uncoupled coherent state as the drive is increased. And indeed, this is what we see in \figpanel{fig:ss(Om)}{a}. The suppression in the linear regime is governed by the cavity-emitter interaction timescale $T$ given by \eqref{eq:T}, which can be seen by rewriting the expression for $\expval{n_c}$ in terms of the effective drive amplitude $\Omega_{\text{eff}}$ in \eqref{eq:Om_eff} using the relations for $\alpha_{\text{ens}}$ in Eq.~(\ref{eq:alpha_eff_amp}): \begin{align} \label{eq:nc_timescales} \expval{n_c} & = \frac{\Omega_{\text{eff}}^2}{\gamma_c^2} = \left(\frac{T_c}{T}\right)^2\abs{\alpha_{\text{eff}}}^2. \end{align} Here we have defined the characteristic timescale $T_c = 1/\gamma_c$ for the uncoupled driven cavity. The relations in Eq.~(\ref{eq:nc_timescales}) show that the cavity population in the weak drive regime will be suppressed by a factor that is the ratio between the characteristic timescale of an uncoupled cavity (i.e., the inverse decay rate) and the interaction time with the ensemble. The arguments above explain the two asymptotical behaviors observed and demonstrate the competition of timescales causing the unconventional saturation effect. In the following section, we will show how the transition through the nonlinear regime appears as a suppression of the populations in the density matrix. \subsubsection{Suppression of populations} As already noted, the nonlinear cavity response will appear in the transition between the response of a coupled cavity and that of an uncoupled cavity. In the two linear regimes, at weak and strong drive, respectively, the cavity will be described by the two coherent states with amplitudes $\alpha_c$ and $\alpha_c^o$. To find the amplitudes, we can use the well-known property $\abs{\alpha}^2=\expval{\hat{n}}$ for coherent states and use the classical results derived above. Thus we find \begin{equation} \abs{\alpha_c}^2 =\frac{\Omega_{\text{eff}}^2}{\gamma_c^2} \end{equation} for the coupled coherent state and \begin{equation} \abs{\alpha^o_c}^2 = \frac{\Omega_d^2}{\gamma_c^2} \end{equation} for the uncoupled coherent state. The transition becomes clear when examining the evolution of the populations in the density matrix. For increasing drive strength, these will progressively approach the uncoupled Poisson distribution for the coherent state with amplitude $\alpha_c^o$. The populations are given by the diagonal matrix elements $\rho_{n,G} \equiv \langle n,G|\hat{\rho}_{ss}|n,G\rangle$ of the steady-state density matrix $\hat{\rho}_{ss}$. The element $\rho_{n,G}$ corresponds to the population of the state with $n$ excitations in the cavity and all emitters in the ground state, $G = |g\rangle^{\otimes N}$. \begin{figure*} \includegraphics[width=0.5\textwidth]{figures/DM_singles_0.pdf}% \includegraphics[width=0.5\textwidth]{figures/DM_singles4_1.pdf}\\ \includegraphics[width=0.5\textwidth]{figures/DM_singles4_2.pdf}% \includegraphics[width=0.5\textwidth]{figures/DM_singles4_3.pdf}% \caption{Visualization of the evolution of [(b),(c),(d)] the multiphoton populations $\rho_{n,G}$ as the drive strength $\Om_d$ is increased; the total population is shown in panel (a). The dashed and solid lines mark the Poisson distributions $P(n)$ calculated with the coherent-state amplitudes corresponding to a coupled, $|\alpha_c|^2=\Omega_{\text{eff}}^2/\gamma_c^2$, and uncoupled, $|\alpha_c^o|^2=\Om_d^2/\gamma_c^2$, cavity, respectively. As can be seen for all system sizes $N = 1$--$4$, the emitter ensemble behaves as a true coherent state in the coupled system only up to first order. Then, for increasing drive strength, each system \textit{saturates} in turn, visible as the higher-order photon states approach the uncoupled-cavity distribution. This can be interpreted as an \textit{unconventional saturation effect} that is different from the standard saturation effect visible in the spectrum.} \label{fig:dm_elements} \end{figure*} In \figpanels{fig:dm_elements}{b}{d}, the matrix elements $\rho_{n,G}$ for $N = 1,\, 2,\, 3$, and $4$ (symbols) are plotted against the Poisson distributions for the coherent states with amplitudes $\alpha_c$ (dashed line) and $\alpha_c^o$ (solid line) for three different drive strengths as indicated (dashed vertical lines) in Fig.~\ref{fig:dm_elements}\figlink{(a)}. In Fig.~\ref{fig:dm_elements}\figlink{(b)}, we see for $N=1$ that the single-photon population $\rho_{1,G}$ has been suppressed and has become comparable to the two-photon population $\rho_{2,G}$. In accordance with the critical drive condition discussed in \secref{sec:CriticalDrive}, this implies that the system has saturated and it agrees well with the observation of two-photon processes (slope $\approx 4$) in \figpanel{fig:dm_elements}{a}. Figure~\ref{fig:dm_elements}\figlink{(b)} additionally shows that the ensembles with $N=2,\,3$, and $4$ only behaves as true harmonic oscillators up to the first order. The higher-order populations are approaching the uncoupled Poisson distribution. Figures~\ref{fig:dm_elements}\figlink{(b)}-\figlink{(d)} clearly show how the predicted transition from the coupled to the uncoupled probability distribution arises gradually as the drive strength $\Omega_d$ is increased. They also confirm that the $(N+1)$th-order matrix element $\rho_{N+1,G}$ has become comparable to the $N$th-order element $\rho_{N,G}$ when the system has saturated, in good agreement with the effective drive description. \subsection{Supression of multiphoton populations} \label{sec:DynSaturation} To gain more insight into the observed nonlinear dynamics and multiphoton processes, we lastly turn to a study of the evolution of the multiphoton populations for increasing drive strength. In Fig.~\ref{fig:dm_elements}, we plot the diagonal matrix elements $\rho_{n,G}~\equiv~\langle G,n|\hat{\rho}_{ss}|n,G\rangle$ of the steady-state density matrix $\hat{\rho}_{ss}$ (diamonds). The element $\rho_{n,G}$ corresponds to the population of the state with $n$ photons in the cavity and all emitters in the ground state, $G = |g\rangle^{\otimes N}$ for $N = 1,\, 2,\, ...$ etc. Figure~\ref{fig:dm_elements}~(a) shows that the emitter ensemble behaves as a true harmonic oscillator only up to the first order for all studied system sizes $N= 1-3$. This can be seen from the one-photon population $\rho_{1,G}$ that follows the Poisson distribution for a driven cavity in a coherent state with amplitude $|\alpha|^2=\frac{\gamma_e^2 \Om_d^2}{16 g_{col}^2}$ (dashed line) in accordance with Eq.~(\ref{eq:npl_res}) for a coupled cavity-emitter system described by the coupled oscillator model.The higher order populations $\rho_{n>1,G}$, on the other hand, deviates from the coupled oscillator distribution and instead approach the Poisson statistics for an uncoupled driven cavity in a coherent state with amplitude $|\alpha|^2=\frac{\Om_d^2}{\gamma_c^2}$ (solid line). The observed nonlinear dynamics can therefore be interpreted as a \textit{dynamical saturation effect} originating from a competition of rates $\Om_d, g_{col}, \gamma_c$ and $\gamma_e$. Figures~\ref{fig:dm_elements}~(a)-(c) show that this \textit{dynamical saturation effect} arises gradually as the drive strength is increased. When the system is \textit{saturated}, the higher-order populations follow the uncoupled cavity distribution and it can be seen that the $(N+1)$th-order matrix element $\rho_{N+1,G}$ has become comparable to the $N$th-order element $\rho_{N,G}$, in good agreement with the effective drive description of Sec.~\ref{sec:Multiphoton} and the critical drive prediction given in Sec. ~\ref{sec:CriticalDrive}. \begin{figure*} \includegraphics[width=0.45\textwidth]{figures/DM_singles_0.pdf}% \includegraphics[width=0.45\textwidth]{figures/DM_singles_1.pdf}\\ \includegraphics[width=0.45\textwidth]{figures/DM_singles_2.pdf}% \includegraphics[width=0.45\textwidth]{figures/DM_singles_3.pdf}% \caption{Visualization of the evolution of the multiphoton populations $\rho_{n,G}$ as the drive strength $\Om_d$ is increased from \textbf{b}\,-\,\textbf{d}. The dashed and solid lines mark the Poisson distributions $P(n)$ calculated with the coherent-state amplitudes corresponding to a coupled, $|\alpha_c|^2=\frac{\gamma_e^2\Om_d^2}{16 g_{col}^4}$, and uncoupled, $|\alpha_u|^2=\frac{\Om_d^2}{ \gamma_c^2}$, cavity respectively. As can be seen for all system sizes $N = 1-3$, the emitter ensemble behaves as a true coherent state in the coupled system only up to the first order. Then, for increasing drive strength, each system \textit{saturates} in turn, visible as the higher-order photon states approaches the uncoupled-cavity distribution. This can be interpreted as a \textit{dynamical saturation effect } that is different from the standard saturation effect visible in the spectrum.} \label{fig:dm_elements} \end{figure*} \section{Introduction} At the heart of quantum optics lies the interaction of light with matter at the level of individual quanta. As a result of the light-matter interaction between a single or an ensemble of two-level emitters and a resonant single-mode cavity, the emitters introduce nonlinearity to the otherwise linear cavity spectrum. This nonlinearity results in a splitting of eigenenergies known as the Jaynes-- and Tavis--Cummings ladders~\cite{Jaynes_Cummings_1963, tavis_cummings_1968}. Under weak cavity and emitter excitation, one effect of these ladders is vacuum Rabi splitting in the spectrum of the system. Three other well-known quantum-optical effects also arise from this nonlinearity: saturation~\cite{Sanchez_1983}, photon blockade~\cite{Imamoglu_1997}, and unconventional photon blockade~\cite{Leonski_2004, Liew_2010,Flayac_2017}. These effects are all of great interest for quantum control of light fields with important applications such as single-photon switches~\cite{Volz2012, chen_all-optical_2013, shomroni_all-optical_2014, sun_single-photon_2018, munoz-matutano_all_2020} and transistors~\cite{Chang_2007,hwang_single-molecule_2009,chen_all-optical_2013,sun_single-photon_2018} and the generation of specific quantum states~\cite{law_arbitrary_1996,plenio_cavity-loss-induced_1999,Kim_1999,Pelton_2002, ritter_elementary_2012, Strauch2012, Muller_2015,You_2020}. In this paper, we demonstrate yet another effect, reminiscent of the saturation effect, which shows potential for applications in, e.g., quantum state engineering or the characterization of the number of quantum emitters in the cavity. The saturation effect occurs when an emitter or nonlinear medium in a cavity cannot absorb more photons and thus has become saturated. In the spectrum, this is revealed as a merging of the vacuum Rabi doublet into a single Lorentzian peak at the cavity resonance when increasing the intracavity field~\cite{Sanchez_1983}. Ideally, a single photon incident on the system is needed to saturate a single emitter in the cavity. In this case, single-photon saturation could implement, e.g., a single-photon transistor~\cite{Chang_2007} or a single-photon sensor~\cite{varnava_how_2008,hadfield_single-photon_2009}. Reference~\cite{Pscherer_2021} demonstrates experimental progress approaching the single-photon limit. However, the saturation effect is typically associated with a very strong drive. The need for a strong drive is due to the generally low probability for photon-emitter interaction~\cite{Chang_2014} and, in the many-emitters case, to the fact that the entire medium must be saturated~\cite{Gripp_2010}. This is problematic for applications, especially if the systems exhibit large dissipation rates. In photon blockade~\cite{Imamoglu_1997}, on the other hand, the anharmonicity in the spectrum blocks the absorption of a subsequent photon. The effect occurs for a resonant drive on one of the polariton transitions. A characteristic of photon blockade is nonclassical photon-counting statistics, which can be probed via the normalized second-order correlation function $g^{(2)}$ in the weak drive regime~\cite{Hanbury_1956, Loudon_2000, Miranowicz_2010}. Two signatures of nonclassical light are photon antibunching [$g^{(2)}(\tau)>g^{(2)}(0)$] and sub-Poissonian photon statistics [$g^{(2)}(0)<1$]~\cite{Zou_1990,Vogel_Welsch_2006}. Thus, photon blockade could be exploited for the generation of nonclassical photon states, e.g., a single-photon source. The single-photon blockade has been extensively explored theoretically~\cite{Tian_1992,Imamoglu_1997,Brecha_1999,Werner_1999,Rabl_2011,Carmichael_2015} as well as demonstrated experimentally~\cite{Kim_1999,Birnbaum_2005, Faron_2008}. Stimulated by the potential for quantum state engineering including more than one photon~\cite{Chang_2014}, there have recently also been several works on the multi-photon blockade~\cite{Shamailov_2010,Miranowicz_2013,Radulaski_2017,Hamsen_2017, Zou_2020}. One basic condition for both single- and multi-photon blockade is that the decay rates of the system should be much smaller than the cavity-emitter interaction strength. These conditions require high-quality cavities as well as small emitter dephasing. For that reason, demonstration of photon blockade in dissipative systems remains difficult. An alternative approach to the generation of nonclassical states of light, exploiting the anharmonic Jaynes-- or Tavis--Cummings spectrum, is through the so-called unconventional photon blockade~\cite{Leonski_2004, Liew_2010,Flayac_2017}. In contrast to traditional photon blockade, the unconventional photon blockade effect relies on the interference between two transition pathways (see, e.g., Refs.~\cite{Bamba_2011,Majumbar_2012,You_2020}) when the drive is tuned in between the two polariton transitions. Thus, being an interference effect, the overlap due to broader transition linewidths can be exploited. Similar to photon blockade, unconventional photon blockade displays nonclassical photon statistics in $g^{(2)}$ measurements in the weak drive regime. Originally, unconventional photon blockade was found for coupled Kerr resonators~\cite{Leonski_2004, Miranowicz_2006}. Since then, it has been predicted~\cite{Bamba_2011, You_2020, Ridolfo_2010} and demonstrated experimentally~\cite{Radulaski_2017,Snijders_2018} with dissipative cavity-emitter systems described by the driven Jaynes-- and Tavis--Cummings Hamiltonians. It has also been predicted for large ensembles of emitters provided large enough individual cavity-emitter interaction strength~\cite{Saez-Blazquez_2017,Saez-Blazquez_2018}. Nevertheless, demonstrating unconventional photon blockade remains difficult, due to fast oscillations of $g^{(2)}$ that exceed the resolution of state-of-the-art detectors and the requirement of fine-tuning of intrinsic system parameters~\cite{Flayac_2017}. In this work, we demonstrate a different approach to harness the nonlinearity introduced by one or a few two-level emitters interacting with a dissipative cavity. Our scheme is simple, employing a continuous-wave (CW) coherent drive, requiring only detection of the steady-state cavity population. We base our analysis on numerical solutions of the corresponding Lindblad master equation. We use the rotating wave approximation for the drive and coupling terms, but otherwise no further approximations that would limit us to the weak drive regime~\cite{Bamba_2011,Saez-Blazquez_2017,Saez-Blazquez_2018}. Therefore, we can explore the intermediate drive regime, where we find a saturation-like effect on the cavity population, due to destructive interference between two excitation pathways. The cavity can be excited either directly by the drive or by the excited emitters. The interference between these two transition pathways has similarities with the interference that gives rise to unconventional photon blockade. Therefore, we name the effect observed here \textit{unconventional saturation}. The unconventional saturation effect is revealed in the cavity response to resonant driving of intermediate strength and arises due to the intermittent saturation of the destructive interference, leading to direct cavity excitation. Already visible in the weak-excitation regime, well before traditional saturation, the effect leads to a strong nonlinear dependence of the intracavity field on the drive strength. Moreover, it is \textit{not} limited to strong cavity-emitter coupling. Instead, we find that the basic requirements for observing unconventional saturation are: few quantum emitters, large cooperativity $C\equiv 4 g_{\text{col}}^2 /\gamma_c \gamma_e$, and intermediate drive strengths. The second condition, large $C$, is naturally found in many lossy cavities where the cavity decay rate $\gamma_c$ is large compared to the emitter decay rate $\gamma_e$, such that they fulfill $\gamma_c \gamma_e \ll 4 g_{\text{col}}^2$. Here, $g_{\text{col}}$ is the collective cavity-emitter interaction strength. In comparison to unconventional photon blockade, which often involves systems with small $C \approx 0.5 {\rm -} 2$ and weak driving, the unconventional saturation effect becomes notable for $C \gtrsim 10$ with intermediate drive strengths and grows more prominent for higher $C$. The signature of unconventional saturation is the dominance of $(N+1)$-photon processes in scattering from an $N$-emitter-cavity system. Somewhat hand-wavingly, the emitter ensemble can be seen as a saturable mirror, which only can reflect states with up to $N$ photons. We identify the origin of this effect as the same type of quantum interference that explains unconventional photon blockade. Nevertheless, the fact that unconventional saturation can be detected in steady-state scattering could facilitate a more straightforward experimental demonstration than the more elaborate photon-correlation measurement $g^{(2)}$ needed for verifying unconventional photon blockade. Moreover, as opposed to vacuum Rabi splitting and photon-blockade techniques, our approach unambiguously differentiates between different numbers of emitters with the same collective interaction strength. This property makes it a promising scheme for characterization of cavity-emitter systems where the number of emitters is unknown, e.g., counting of NV-centers in diamond~\cite{Doherty_2013,Chang_2016}, localized emitters in hBN~\cite{Vogl_2019,Fournier_2021}, or molecules in a Fabry-P\'erot cavity~\cite{Mony2021}, as well as for the verification of fundamental differences between single- and few-quantum-emitter systems. Other possible applications are within technologies such as quantum imaging~\cite{Moreau_2019}, quantum metrology~\cite{Giovannetti_2011} and more, which rely on the generation of nonclassical light fields. Besides being a --~to our knowledge~-- novel quantum-optical effect, we also see the potential for the use of unconventional saturation for progressive quantum state engineering that could find a natural place in hybrid quantum systems, similar to the setup proposed in Ref.~\cite{Chang_2007}. The generation of specific quantum states of light with dissipative systems has already been proposed for other setups, including single-~\cite{Lindkvist_2014, Dhar_2018} and multi-photon~\cite{Eleuch_2012, Muller_2015, You_2020} generation. We believe that our work offers a foundation for further explorations of hitherto unknown effects that could complement and improve existing schemes. Our results already suggest a form of photon filtering that can be achieved using a setup (CW drive and scattering) that is simple compared to many other schemes. A potential platform for demonstrating unconventional saturation is hybrid light-matter systems using, e.g., broad-linewidth surface plasmons and narrow-linewidth localized two-level emitters. Light-matter hybridization is a growing research field that utilizes hybridized states of light and matter such as surface plasmons as the carrier of the photonic component. Part of the attraction of such setups is the sub-wavelength confinement of the light mode that can greatly enhance the interaction with optical emitters~\cite{Chang_2006, Baranov_2018, Bisht_2019, Stuhrenberg_2018}. Even ultrastrong coupling~\cite{Kockum2019} has been demonstrated~\cite{Baranov_2020} in these systems. % The potential of hybrid systems for quantum technology has already been demonstrated in Ref.~\cite{Chang_2007}, proposing a single-photon optical transistor. Lastly, the fact that strong coupling between cavities and emitter ensembles can be observed at room-temperature in these dissipative hybrid systems, motivates the search for observation and possible application of quantum-optical phenomena beyond cryogenic temperatures~\cite{Palstra_2019,zasedatelev_single-photon_2021,zasedatelev_room-temperature_2019, heintz_few-molecule_2021}. This article is organized as follows. Our theoretical framework is presented in Sec.~\ref{sec:theory}, including the driven Tavis--Cummings model (Sec.~\ref{sec:TCmodel}), the master equation used for numerical calculations (Sec.~\ref{sec:ME}), scattering from the cavity (Sec.~\ref{sec:Scattering}), and an analog classical coupled-oscillator model used for analytical calculations in the weak-drive regime (Sec.~\ref{sec:COmodel}). In Section~\ref{sec:results}, we present the results from our explorations of the driven Tavis--Cummings model, which show a saturation-like response of the cavity population in the intermediate drive regime. First, we study the spectrum in Sec.~\ref{sec:Spectrum} and note that there is a sweet spot for quantum effects on resonance, which differentiates between different system sizes. Thereafter, the system response is examined for resonant driving in the weak- to intermediate- drive regimes in Sec.~\ref{sec:MeanCavityResponse}. The observed nonlinear response is analyzed in Sec.~\ref{sec:EffectiveDrive} in terms of an effective drive acting on the cavity. In Sec.~\ref{sec:CriticalDrive}, we build on this description to derive an analytical expression for the critical drive strength required for entering the nonlinear regime. We also find a figure of merit for the observed effect in \secref{sec:FOM} and show that it can be explained by quantum interference effects in Sec.~\ref{sec:QuantumInterference}. Finally, the conclusions from our investigations are presented in Sec.~\ref{sec:Conclusions}. We give additional details for some calculations in appendices: Appendix~\ref{sec:app_COmodel} shows the mapping between the classical and quantum models used in Sec.~\ref{sec:COmodel}, Appendix~\ref{app:Laser} reviews the quantum theory for a propagating laser, and Appendix~\ref{app:add_sim} contains plots further demonstrating the effect of coupling strengths and cooperativity on the unconventional saturation. \section{Conclusions} \label{sec:Conclusions} In this work, the stationary response from a coherently driven cavity coupled to an ensemble of $N$ quantum emitters, described by the Tavis--Cummings model, has been studied. The steady-state density matrix was calculated numerically using a master-equation approach without making the frequently applied weak-drive approximation. Additionally, a classical coupled-oscillator model was applied to give analytical insight into the dynamics in the linear regimes. For resonant drive frequency and intermediate drive strength, our results show strongly $N$-dependent nonlinear scattering. Specifically, we see the dominance of $(N+1)$-photon processes in the nonlinear regime of the cavity response when it couples to an ensemble of size $N$. In contrast to observing Rabi splitting in the spectrum, this effect clearly differentiates between different ensemble sizes $N$ with the same collective interaction strength $g_{\text{col}}$. Exploiting analytical results from a classical coupled-oscillator model, and properties of coherent states, we found that the origin of this effect could be explained by the destructive interference between the ensemble and the coherent drive up to the order $N$. Thus, the ensemble behaves as a saturable mirror that can only reflect photon states up to order $N$. This unconventional saturation effect occurs due to a competition of interaction rates and arises for weak ensemble population, well before traditional saturation. We also derived an analytical expression for the critical drive $\Omega_{\rm cr}$ that to good accuracy predicts the onset of the nonlinear regime. Moreover, we find that a basic condition for the observed unconventional saturation effect is large cooperativity $C$. This condition can be met without the requirement of strong coupling, if the decay rates of the emitters are not too large. The observed effect implies a simple continuous-wave method that could characterize dissipative cavity-emitter systems where the number of quantum emitters is unknown. The $N$-dependent interference effect and the resulting $(N+1)$-photon processes in the cavity response could also be exploited for photon filtering. Thus, our results show great promise for the use of dissipative cavity-few-emitter systems for quantum state engineering. For this, further theoretical work that investigates the specific output state for different input states would be of interest.
\section{Introduction} Ramsey theory is a beautiful subject which interrelates with a multitude of mathematical fields. In particular, since its inception, developments in Ramsey theory have often been motivated by problems in logic; in turn, Ramsey theory has instigated some seminal developments in logic. The intent of this article is to provide the general mathematician with an introduction to the intriguing subject of Ramsey theory on homogeneous structures while being detailed enough to describe the state of the art and the main ideas at play. We present historical highlights and discuss why solutions to problems on homogeneous structures require more than just straightforward applications of finite structural Ramsey theory. In the following sections, we map out collections of recent results and methods which were developed to overcome obstacles associated with forbidden substructures. These new methods involve applications from logic (especially forcing but also ideas from model theory), topological Ramsey spaces, and category theory. The subject of Ramsey theory on infinite structures begins with this lovely theorem. \begin{theorem}[Ramsey, \cite{Ramsey30}]\label{thm.RamseyInfinite} Given positive integers $k$ and $r$ and a coloring of the $k$-element subsets of the natural numbers $\mathbb{N}$ into $r$ colors, there is an infinite set of natural numbers $N\sse\mathbb{N}$ such that all $k$-element subsets of $N$ have the same color. \end{theorem} There are two natural interpretations of Ramsey's Theorem in terms of infinite structures. First, letting $<$ denote the standard linear order on $\mathbb{N}$, Ramsey's Theorem shows that given any finite coloring of all linearly ordered substructures of $(\mathbb{N},<)$ of size $k$, there is an isomorphic substructure $(N,<)$ of $(\mathbb{N},<)$ such that all linearly ordered substructures of $(N,<)$ of size $k$ have the same color. Second, one may think of the $k$-element subsets of $\mathbb{N}$ as $k$-hyperedges. Then Ramsey's Theorem yields that, given any finite coloring of the $k$-hyperedges of the complete $k$-regular hypergraph on infinitely many vertices, there is an isomorphic subgraph in which all $k$-hyperedges have the same color. Given this, one might naturally wonder about other structures. \begin{question}\label{q.beginners} Which infinite structures carry an analogue of Ramsey's Theorem? \end{question} The rational numbers $(\mathbb{Q},<)$ as a dense linearly ordered structure (without endpoints) was the earliest test case. It is a fun exercise to show that given any coloring of the rational numbers into finitely many colors, there is one color-class which contains a dense linear order, that is, an isomorphic subcopy of the rationals in one color. Thus, the rationals satisfy a structural pigeonhole principle known as {\em indivisibility}. The direct analogy with Ramsey's theorem ends, however, when we consider pairs of rationals. It follows from work of Sierpi\'{n}ski in \cite{Sierpinski} that there is a coloring of the pairs of rationals into two colors so that both colors persist in every isomorphic subcopy of the rationals. Sierpi\'{n}ski's coloring provides a clear understanding of one of the fundamental issues arising in partition theory of infinite structures not occurring in finite structural Ramsey theory. Let $\{q_i:i\in \mathbb{N}\}$ be a listing of the rational numbers, without repetition, and for $i<j$ define $c(\{q_i,q_j\}) = \mathrm{blue}$ if $ q_i<q_j$, and $ c(\{q_i,q_j\}) = \mathrm{red}$ if $q_j<q_i$. Then in each subset $Q\subseteq \mathbb{Q}$ forming a dense linear order, both color classes persist; that is, there are pairs of rationals in $Q$ colored red and also pairs of rationals in $Q$ colored blue. Since it is impossible to find an isomorphic subcopy of the rationals in which all pairsets have the same color, a direct analogue of Ramsey's theorem does not hold for the rationals. The failure of the straightforward analogue of Ramsey's theorem is not the end, but rather just the beginning of the story. Galvin (unpublished) showed a few decades later that there is a bound on the number of unavoidable colors: Given any coloring of the pairs of rationals into finitely many colors, there is a subcopy of the rationals in which all pairs belong to the union of two color classes. Now one sees that Question \ref{q.beginners} ought to be refined. \begin{question}\label{q.refined} For which infinite structures $\bfS$ is there a Ramsey-analogue in the following sense: Let $\bfA$ be a finite substructure of $\bfS$. Is there a positive integer $T$ such that for any coloring of the copies of $\bfA$ into finitely many colors, there is a subcopy $\bfS'$ of $\bfS$ in which there are no more than $T$ many colors for the copies of $\bfA$? \end{question} The least such integer $T$, when it exists, is denoted $T(\bfA)$ and called the {\em big Ramsey degree} of $\bfA$ in $\bfS$, a term coined in Kechris--Pestov--Todorcevic (2005). The ``big'' refers to the fact that we require an isomorphic subcopy of an {\em infinite} structure in which the number of colors is as small as possible (in contrast to the concept of {\em small Ramsey degree} in finite structural Ramsey theory). Notice how Sierpi\'{n}ski played the enumeration $\{q_i:i\in\mathbb{N}\}$ of the rationals against the dense linear order to construct a coloring of pairsets of rationals into two colors, each of which persists in every subcopy of the rationals. This simple but deep idea sheds light on a fundamental difference between finite and infinite structural Ramsey theory. The interplay between the enumeration and the relations on an infinite structure has bearing on the number of colors that must persist in any subcopy of that structure. We will see examples of this at work throughout this article and explain the general principles which have been found for certain classes of structures with relations of arity at most two, even as the subject aims towards a future overarching theory of big Ramsey degrees. \section{The Questions}\label{sec.theproblems} Given a finite relational language $\mathcal{L}=\{R_i: i< k\}$ with each relation symbol $R_i$ of some finite arity, say $n_i$, an {\em $\mathcal{L}$-structure} is a tuple $\bfA=\lgl A, R_0^{\bfA},\dots, R_{k-1}^{\bfA}\rgl$, where $A \ne\emptyset$ is the {\em universe} of $\bfA$ and for each $i<k$, $R_i^{\bfA}\sse A^{n_i}$. For $\mathcal{L}$-structures $\bfA$ and $\bfB$, an {\em embedding} from $\bfA$ into $\bfB$ is an injection $e:A\ra B$ such that for all $i<k $, $R_i^{\bfA}(a_1,\dots,a_{n_i})\leftrightarrow R_i^{\bfB}(e(a_1),\dots,e(a_{n_i}))$. The $e$-image of $\bfA$ is a {\em copy} of $\bfA$ in $\bfB$. If $e$ is the identity map, then $\bfA$ is a {\em substructure} of $\bfB$. An {\em isomorphism} is an embedding which is onto its image. We write $\bfA\le\bfB$ exactly when there is an embedding of $\bfA$ into $\bfB$, and $\bfA\cong\bfB$ exactly when $\bfA$ and $\bfB$ are isomorphic. A class $\mathcal{K}$ of finite structures for a relational language $\mathcal{L}$ is called a {\em \Fraisse\ class} if it is hereditary, satisfies the joint embedding and amalgamation properties, contains (up to isomorphism) only countably many structures, and contains structures of arbitrarily large finite cardinality. $\mathcal{K}$ is {\em hereditary} if whenever $\bfB\in\mathcal{K}$ and $\bfA\le\bfB$, then also $\bfA\in\mathcal{K}$. $\mathcal{K}$ satisfies the {\em joint embedding property} if for any $\bfA,\bfB\in\mathcal{K}$, there is a $\bfC\in\mathcal{K}$ such that $\bfA\le\bfC$ and $\bfB\le\bfC$. $\mathcal{K}$ satisfies the {\em amalgamation property} if for any embeddings $f:\bfA\ra\bfB$ and $g:\bfA\ra\bfC$, with $\bfA,\bfB,\bfC\in\mathcal{K}$, there is a $\bfD\in\mathcal{K}$ and there are embeddings $r:\bfB\ra\bfD$ and $s:\bfC\ra\bfD$ such that $r\circ f = s\circ g$. A \Fraisse\ class $\mathcal{K}$ satisfies the {\em strong amalgamation property} (SAP) if given $\bfA,\bfB,\bfC\in\mathcal{K}$ and embeddings $e:\bfA\ra \bfB$ and $f:\bfA\ra \bfC$, there is some $\bfD\in\mathcal{K}$ and embeddings $e':\bfB\ra\bfD$ and $f':\bfC\ra\bfD$ such that $e'\circ e=f'\circ f$, and $e'[B]\cap f'[C]=e'\circ e[A]=f'\circ f[A]$. We say that $\mathcal{K}$ satisfies the {\em free amalgamation property} (FAP) if it satisfies the SAP and moreover, $\bfD$ can be chosen so that $\bfD$ has no additional relations other than those inherited from $\bfB$ and $\bfC$. Let $\bfA,\bfB,\bfC$ be $\mathcal{L}$-structures such that $\bfA\le\bfB\le \bfC$. We use ${\bfB\choose\bfA}$ to denote the set of all copies of $\bfA$ in $\bfB$. The \Erdos--Rado arrow notation $\bfC\ra(\bfB)_k^{\bfA}$ means that for each coloring of ${\bfC\choose \bfA}$ into $k$ colors, there is a $\bfB' \in {\bfC\choose\bfB}$ such that ${\bfB'\choose\bfA}$ is {\em monochromatic}, meaning every member of ${\bfB'\choose\bfA}$ has the same color. \begin{definition}\label{defn.RP} A \Fraisse\ class $\mathcal{K}$ has the {\em Ramsey property} if for any two structures $\bfA\le\bfB$ in $\mathcal{K}$ and any $k\ge 2$, there is a $\bfC\in\mathcal{K}$ with $\bfB\le\bfC$ such that $\bfC\ra (\bfB)^{\bfA}_k$. \end{definition} Many \Fraisse\ classes, such as the class of finite graphs, do not have the Ramsey property. However, by allowing a finite expansion of the language, often by just a linear order, the Ramsey property becomes more feasible. Letting $<$ be a binary relation symbol not in the language $\mathcal{L}$ of $\mathcal{K}$, an $\mathcal{L}\cup\{<\}$-structure is in $\mathcal{K}^{<}$ if and only if its universe is linearly ordered by $<$ and its $\mathcal{L}$-reduct is a member of $\mathcal{K}$. A highlight is the work of \Nesetril\ and \Rodl\ in \cite{Nesetril/Rodl77} and \cite{Nesetril/Rodl83}, proving that for any \Fraisse\ class $\mathcal{K}$ with FAP, its ordered version $\mathcal{K}^{<}$ has the Ramsey property. The recent paper \cite{HN19} by \Hubicka\ and \Nesetril\ presents the state of the art in finite structural Ramsey theory. Examples of \Fraisse\ classes with the Ramsey property include the class of finite linear orders, and the classes of finite ordered versions of graphs, digraphs, tournaments, triangle-free graphs, posets, metric spaces, hypergraphs, hypergraphs omitting some irreducible substructures, and many more. A structure $\bK$ is called {\em universal} for a class of structures $\mathcal{K}$ if each member of $\mathcal{K}$ embeds into $\bK$. A structure $\bK$ is {\em homogeneous} if each isomorphism between finite substructures of $\bK$ extends to an automorphism of $\bK$. Unless otherwise specified, we will write {\em homogeneous} to mean {\em countably infinite homogeneous}, such structures being the focus of this paper. The {\em age} of an infinite structure $\bK$, denoted Age$(\bK)$, is the collection of all finite structures which embed into $\bK$. A fundamental theorem of \Fraisse\ from \cite{Fraisse54} shows that each \Fraisse\ class gives rise to a homogeneous structure via a construction called the {\em \Fraisse\ limit}. Conversely, given any countable homogeneous structure $\bK$, Age$(\bK)$ is a \Fraisse\ class and, moreover, the \Fraisse\ limit of Age$(\bK)$ is isomorphic to $\bK$. The Kechris--Pestov--Todorcevic correspondence between the Ramsey property of a \Fraisse\ class and extreme amenability of the automorphism group of its \Fraisse\ limit in \cite{KPT05} propelled a burst of discoveries of more \Fraisse\ classes with the Ramsey property. First an esoteric but driving question in the area. \begin{question}\label{q.essence} What {\em is} a big Ramsey degree? \end{question} What is the essential nature of a big Ramsey degree? Why is it that given a \Fraisse\ class $\mathcal{K}$ satisfying the Ramsey property, its \Fraisse\ limit usually fails to carry the full analogue of Ramsey's Theorem \ref{thm.RamseyInfinite} (i.e.\ all big Ramsey degrees being one)? A theorem of Hjorth in \cite{Hjorth} showed that for any homogeneous structure $\bK$ with $|\mathrm{Aut}(\bK)|>1$, there is a structure in Age$(\bK)$ with big Ramsey degree at least two. While much remains open, we now have an answer to Question \ref{q.essence} for FAP and some SAP homogeneous structures with finitely many relations of arity at most two, and these results will be discussed in the following sections. We say that $\bfS$ has {\em finite big Ramsey degrees} if $T(\bfA)$ exists for each finite substructure $\bfA$ of $\bfS$. We say that {\em exact big Ramsey degrees} are known if there is either a computation of the degrees or a characterization from which they can be computed. {\em Indivisibility} holds if $T(\bfA)=1$ for each one-element substructure $\bfA$ of $\bfS$. The following questions progress in order of strength: A positive answer to (3) implies a positive answer to (2), which in turn implies a positive answer to (1). \begin{question}\label{q.3} Given a homogeneous structure $\bK$, \begin{enumerate} \item Does $\bK$ have finite big Ramsey degrees? That is, can one find upper bounds ensuring that big Ramsey degrees exist? \item If $\bK$ has finite big Ramsey degrees, is there a characterization of the exact big Ramsey degrees via canonical partitions? If yes, calculate or find an algorithm to calculate them. \item Does $\bK$ carry a big Ramsey structure? \end{enumerate} \end{question} Part (2) of this question involves finding {\em canonical partitions}. \begin{definition}[Canonical Partition, \cite{LSV06}]\label{defn.cp} Given a \Fraisse\ class $\mathcal{K}$ with \Fraisse\ limit $\bK$, and given $\bfA\in\mathcal{K}$, a partition $\{P_i:i<n\}$ of ${\bK\choose \bfA}$ is {\em canonical} if the following hold: For each finite coloring of ${\bK\choose \bfA}$, there is a subcopy $\bK'$ of $\bK$ such that for each $i<n$, all members of $P_i\cap {\bK'\choose\bfA}$ have the same color; and {\em persistence}: For every subcopy $\bK'$ of $\bK$ and each $i < n$, $P_i\cap {\bK'\choose\bfA}$ is non-empty. \end{definition} Canonical partitions recover an exact analogue of Ramsey's theorem for each piece of the partition. In practice such partitions are characterized by adding extra structure to $\bK$, including the enumeration of the universe of $\bK$ and a tree-like structure capturing the relations of $\bK$ against the enumeration. Part (3) of Question \ref{q.3} has to do with a connection between big Ramsey degrees and topological dynamics, in the spirit of the Kechris--Pestov--Todorcevic correspondence, proved by Zucker in \cite{Zucker19}. A {\em big Ramsey structure} is essentially a finite expansion $\bK^*$ of $\bK$ so that each finite substructure of $\bK^*$ has big Ramsey degree one, and moreover the unavoidable colorings cohere in that for $\bfA,\bfB\in\mathrm{Age}(\bK)$ with $\bfA$ embedding into $\bfB$, the canonical partition for copies of $\bfB$ when restricted to copies of $\bfA$ recovers the canonical partition for copies of $\bfA$. Big Ramsey structures imply canonical partitions. The reverse is not known in general, but certain types of canonical partitions are known to imply big Ramsey structures (Theorem 6.10 in \cite{CDP21}), and it seems reasonable to the author to expect that (1)--(3) are equivalent. Canonical partitions and big Ramsey structures are really getting at the question of whether we can find an optimal finite expansion $\bK^*$ of a given homogeneous structure $\bK$ so that $\bK^*$ carries an exact analogue of Ramsey's Theorem. In this sense, big Ramsey degrees are not quite so mysterious, but are rather saying that an exact analogue of Ramsey's theorem holds for an appropriately expanded structure. The question then becomes, what is the appropriate expansion? \section{Case Study: The rationals}\label{sec.CaseStudies} The big Ramsey degrees for the rationals were determined by 1979. Laver in 1969 (unpublished, see \cite{DevlinThesis}) utilized a Ramsey theorem for trees due to Milliken \cite{Milliken79} (Theorem \ref{thm.Milliken}) to find upper bounds. Devlin completed the picture in his Ph.D.\ thesis \cite{DevlinThesis}, calculating the big Ramsey degrees of the rationals. These surprisingly turn out to be related to the odd coefficients in the Taylor series of the tangent function: The big Ramsey degree for $n$-element subsets of the rationals is $T(n)=(2n-1)!c_{2n-1}$, where $c_k$ is the $k$-th coefficient in the Taylor series for the tangent function, $\tan(x)=\sum_{k=0}^{\infty}c_k x^k$. As Todorcevic states, the big Ramsey degrees for the rationals ``characterize the Ramsey theoretic properties of the countable dense linear ordering $(\mathbb{Q},<)$ in a very precise sense. The numbers $T(n)$ are some sort of Ramsey degrees that measure the complexity of an arbitrary finite coloring of the $n$-element subsets of $\mathbb{Q}$ modulo, of course, restricting to the $n$-element subsets of $X$ for some appropriately chosen dense linear subordering $X$ of $\mathbb{Q}$.'' (page 143, \cite{TodorcevicBK10}, notation modified) We present Devlin's characterization of the big Ramsey degrees of the rationals and the four main steps in his proof. (A detailed proof appears in Section 6.3 of \cite{TodorcevicBK10}.) Then we will present a method from \cite{CDP21} using coding trees of $1$-types which bypasses non-essential constructs, providing what we see as a satisfactory answer to Question \ref{q.essence} for the rationals. We use some standard mathematical logic notation, providing definitions as needed for the general mathematician. The set of all natural numbers $\{0,1,2,\dots\}$ is denoted by $\om$. Each natural number $k\in\om$ is equated with the set $\{0,\dots, k-1\}$ and its natural linear ordering. $k\in\om$ and $k<\om$ are synonymous. For $k\in \om$, $k^{<\om}$ denotes the tree of all finite sequences with entries in $\{0,\dots, k-1\}$, and $\om^{<\om}$ denotes the tree of all finite sequences of natural numbers. Finite sequences with any sort of entries are thought of as functions with domain some natural number. Thus, for a finite sequence $t$ the {\em length} of $t$, denoted $|t|$, is the domain of the function $t$, and for $i\in\dom(t)$, $t(i)$ denotes the $i$-th entry of the sequence $t$. For $\ell\in\om$, we write $t\re \ell$ to denote the initial segment of $t$ of length $\ell$ if $\ell\le|t|$, and $t$ otherwise. For two finite sequences $s$ and $t$, we write $s\sqsubseteq t$ when $s$ is an initial segment of $t$, and we write $s\sqsubset t$ when $s$ is a proper initial segment of $t$, meaning that $s\sqsubseteq t$ and $s\ne t$. We write $s\wedge t$ to denote the {\em meet} of $s$ and $t$; that is, the longest sequence which is an initial segment of both $s$ and $t$. Given a subset $S$ of a tree of finite sequences, the {\em meet closure} of $S$, denoted $\mc(S)$, is the set of all nodes in $S$ along with the set of all meets $s\wedge t$, for $s,t\in S$. A Ramsey theorem for trees, due to Milliken, played a central role in Devlin's work and has informed subsequent approaches to finding upper bounds for big Ramsey degrees. In this area, a subset $T\sse\om^{<\om}$ is called a {\em tree} if there is a subset $L_T\sse\om$ such that $T=\{t\re \ell:t\in T,\ \ell\in L_T\}$. Thus, a tree is closed under initial segments of lengths in $L_T$, but not necessarily closed under all initial segments in $\om^{<\om}$. The {\em height} of a node $t$ in $T$, denoted $\height_T(t)$, is the order-type of the set $\{s\in T:s\sqsubset t\}$, linearly ordered by $\sqsubset$. We write $T(n)$ to denote $\{t\in T:\height_T(t)=n\}$. For $t\in T$, let $\Succ_T(t)=\{s\re(|t|+1):s\in T$ and $t\sqsubset s\}$, noting that $\Succ_T(t)\sse T$ only if $|t|+1\in L_T$. A subtree $S\sse T$ is a {\em strong subtree} of $T$ if $L_S\sse L_T$ and each node $s$ in $S$ branches as widely as $T$ will allow, meaning that for $s\in S$, for each $t \in \Succ_T(s)$ there is an extension $s'\in S$ such that $t\sqsubseteq s'$. For the next theorem, define $ \prod_{i<d} T_i(n)$ to be the set of sequences $(t_0,\dots,t_{d-1})$ where $t_i\in T_i(n)$, the product of the $n$-th levels of the trees $T_i$. Then let \begin{equation} \bigotimes_{i<d}T_i:=\bigcup_{n<\om} \prod_{i<d} T_i(n). \end{equation} The following is the strong tree version of the Halpern--\Lauchli\ Theorem. \begin{theorem}[Halpern--\Lauchli, \cite{HL66}]\label{thm.HL} Let $d$ be a positive integer, $T_i\sse \om^{<\om}$ ($i<d$) be finitely branching trees with no terminal nodes, and $r\ge 2$. Given a coloring $c:\bigotimes_{i<d} T_i \ra r$, there is an increasing sequence $\lgl m_n:n<\om\rgl$ and strong subtrees $S_i\le T_i$ such that for all $i<d$ and $n<\om$, $S_i(n)\sse T_i(m_n)$, and $c$ is constant on $\bigotimes_{i<d}S_i$. \end{theorem} The Halpern--\Lauchli\ Theorem has a particularly strong connection with logic. It was isolated by Halpern and L\'{e}vy as a key juncture in their work to prove that the Boolean Prime Ideal Theorem is strictly weaker than the Axiom of Choice over the Zermelo--Fraenkel Axioms of set theory. Once proved by Halpern and \Lauchli, Halpern and L\'{e}vy completed their proof in \cite{Halpern/Levy71}. Harrington (unpublished) devised an innovative proof of the Halpern--\Lauchli\ Theorem which used Cohen forcing. The forcing helps find good nodes in the trees $T_i$ from which to start building the subtrees $S_i$. From then on, the forcing is used $\om$ many times, each time running an unbounded search for finite sets $S_i(n)$ which satisfy that level of the Halpern--\Lauchli\ Theorem. Being finite, each $S_i(n)$ is in the ground model. The proof entails neither passing to a generic extension nor any use of Shoenfield's Absoluteness Theorem. A {\em $k$-strong subtree} is a strong subtree with $k$ many levels. The following theorem is proved inductively using Theorem \ref{thm.HL}. \begin{theorem}[Milliken, \cite{Milliken79}]\label{thm.Milliken} Let $T\sse \om^{<\om}$ be a finitely branching tree with no terminal nodes, $k\ge 1$, and $r\ge 2$. Given a coloring of all $k$-strong subtrees of $T$ into $r$ colors, there is an infinite strong subtree $S\sse T$ such that all $k$-strong subtrees of $S$ have the same color. \end{theorem} For more on the Halpern--\Lauchli\ and Milliken Theorems, see \cite{DKBK}, \cite{Larson12}, and \cite{TodorcevicBK10}. Now we look at Devlin's proof of the exact big Ramsey degrees of the rationals, as it has bearing on many current approaches to big Ramsey degrees. The rationals can be represented by the tree $2^{<\om}$ of binary sequences with the lexicographic order $\trl$ defined as follows: Given $s,t\in 2^{<\om}$ with $s\ne t$, and letting $u$ denote $s\wedge t$, define $s\trl t$ to hold if and only if ($|u|<|s|$ and $s(|u|)=0$) or $(|u|<|t|$ and $t(|u|)=1$). Then $(2^{<\om},\trl)$ is a dense linear order. The following is Definition 6.11 in \cite{TodorcevicBK10}, using the terminology of \cite{Sauer06}. For $|s|<|t|$, the number $t(|s|)$ is called the {\em passing number} of $t$ at $s$. \begin{definition}\label{defn.strongsimtype} For $A,B\sse \om^{<\om}$, we say that $A$ and $B$ are {\em similar} if there is a bijection $f:\mc(A)\ra \mc(B)$ such that for all $s,t\in \mc(A)$, \begin{enumerate} \item[(a)] (preserves end-extension) $s\sqsubseteq t \Leftrightarrow f(s)\sqsubseteq f(t)$, \item[(b)] (preserves relative lengths) $|s|<|t| \Leftrightarrow |f(s)|<|f(t)|$, \item[(c)] $s\in A \Leftrightarrow f(s)\in B$, \item[(d)] (preserves passing numbers) $t(|s|)=f(t)(|f(s)|)$ whenever $|s|<|t|$. \end{enumerate} \end{definition} Similarity is an equivalence relation; a similarity equivalence class is called a {\em similarity type}. We now outline the four main steps to Devlin's characterization of big Ramsey degrees in the rationals. Fix $n\ge 1$. I. (Envelopes) Given a subset $A\sse 2^{<\om}$ of size $n$, let $k$ be the number of levels in $\mc(A)$. An {\em envelope} of $A$ is a $k$-strong subtree $E(A)$ of $2^{<\om}$ such that $A\sse E(A)$. Given any $k$-strong subtree $S$ of $2^{<\om}$, there is exactly one subset $B\sse S$ which is similar to $A$. This makes it possible to transfer a coloring of the similarity copies of $A$ in $2^{<\om}$ to the $k$-strong subtrees of $2^{<\om}$ in a well-defined manner. II. (Finite Big Ramsey Degrees) Apply Milliken's theorem to obtain an infinite strong subtree $T\sse 2^{<\om}$ such that every similarity copy of $A$ in $T$ has the same color. As there are only finitely many similarity types of sets of size $n$, finitely many applications of Milliken's theorem results in an infinite strong subtree $S\sse 2^{<\om}$ such that the coloring is monochromatic on each similarity type of size $n$. This achieves finite big Ramsey degrees. III. (Diagonal Antichain for Better Upper Bounds) To obtain the exact big Ramsey degrees, Devlin constructed a particular antichain of nodes $D\sse 2^{<\om}$ such that $(D,\trl)$ is a dense linear order and no two nodes in the meet closure of $D$ have the same length, a property called {\em diagonal}. He also required $(*)$: All passing numbers at the level of a terminal node or a meet node in $\mc(D)$ are $0$, except of course the rightmost extension of the meet node. Diagonal antichains turn out to be essential to characterizing big Ramsey degrees, whereas the additional requirement ($*$) is now seen to be non-essential when viewed through the lens of coding trees of $1$-types. IV. (Exact Big Ramsey Degrees) To characterize the big Ramsey degrees, Devlin proved that the similarity type of each subset of $D$ of size $n$ persists in every subset $D'\sse D$ such that $(D',\trl)$ is a dense linear order. The similarity types of antichains in $D$ thus form a canonical partition for linear orders of size $n$. By calculating the number of different similarity types of subsets of $D$ of size $n$, Devlin found the big Ramsey degrees for the rationals. Now we present the characterization of the big Ramsey degrees for the rationals using coding trees of $1$-types. Coding trees on $2^{<\om}$ were first developed in \cite{DobrinenJML20} to solve the problem of whether or not the triangle-free homogeneous graph has finite big Ramsey degrees. The presentation given here is from \cite{CDP21}, where the notion of coding trees was honed using model-theoretic ideas. We hope that presenting this view here will set the stage for a concrete understanding of big Ramsey degree characterizations discussed in Section \ref{sec.RecentResults}. Fix an enumeration $\{q_0,q_1,\dots\}$ of $\mathbb{Q}$. For $n< \om$, we let $\mathbb{Q}\re n$ denote the substructure $(\{q_i:i\in n\},<)$ of $(\bQ,<)$, which we refer to as an {\em initial substructure}. One can think of $\mathbb{Q}\re n$ as a finite approximation in a construction of the rationals. The definition of a coding tree of $1$-types in \cite{CDP21} uses complete realizable quantifier-free $1$-types over initial substructures. Here, we shall retain the terminology of \cite{CDP21} but (with apologies to model-theorists) will use sets of literals instead, since this will convey the important aspects of the constructions while being more accessible to a general readership. For now, we call a set of formulas $s\sse\{(q_i< x):i\in n\}\cup\{(x< q_i):i\in n\}$ a {\em $1$-type} over $\bQ\re n$ if (a) for each $i<n$ exactly one of the formulas $(q_i< x)$ or $(x<q_i)$ is in $s$, and (b) there is some (and hence infinitely many) $j\ge n$ such that $q_j$ {\em satisfies} $s$, meaning that replacing the variable $x$ by the rational number $q_j$ in each formula in $s$ results in a true statement. In other words, $s$ is a $1$-type if $s$ prescribes a legitimate way to extend $\bQ\re n$ to a linear order of size $n+1$. \begin{definition}[Coding Tree of $1$-Types for $\mathbb{Q}$, \cite{CDP21}]\label{defn.treecodeK} For a fixed enumeration $\{q_0,q_1,\dots\}$ of the rationals, the {\em coding tree of $1$-types} $\bS(\mathbb{Q})$ is the set of all $1$-types over initial substructures along with a function $c:\om\ra \bS(\mathbb{Q})$ such that $c(n)$ is the $1$-type of $q_n$ over $\mathbb{Q}\re n$. The tree-ordering is simply inclusion. \end{definition} \begin{figure}[t] \begin{tikzpicture}[grow'=up,scale=.6] \tikzstyle{level 1}=[sibling distance=4in] \tikzstyle{level 2}=[sibling distance=2in] \tikzstyle{level 3}=[sibling distance=1in] \tikzstyle{level 4}=[sibling distance=0.5in] \tikzstyle{level 5}=[sibling distance=0.2in] \tikzstyle{level 6}=[sibling distance=0.1in] \tikzstyle{level 7}=[sibling distance=0.07in] \node [label=$c_0$] {} coordinate (t9) child{ coordinate (t0) edge from parent[color=black,thick] child{ coordinate (t00) edge from parent[color=black,thick] child{ coordinate (t000) edge from parent[color=black,thick] child{coordinate (t0000) edge from parent[color=black,thick] child{coordinate (t00000) edge from parent[color=black,thick] child{coordinate (t000000) edge from parent[color=black,thick]} child{ coordinate (t001) edge from parent[color=black,thick] child{ coordinate (t0010) edge from parent[color=black,thick] child{coordinate (t00100) edge from parent[color=black,thick] child{coordinate (t001000) edge from parent[color=black,thick]} child{coordinate (t001001) edge from parent[color=black,thick]} child{ coordinate (t1) edge from parent[color=black,thick] child{ coordinate (t10) edge from parent[color=black,thick] child{ coordinate (t100) child{coordinate (t1000) child{coordinate (t10000) child{coordinate (t100000)} child{coordinate (t1001) child{coordinate (t10010) child{coordinate (t100100)} child{ coordinate (t11) [label={\small 1/16}] child{coordinate (t110) child{coordinate (t1100) child{coordinate (t11000) child{coordinate (t110000)} child{coordinate (t11001) child{coordinate (t110010)} ; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt] at (t9) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt,label=0:$c_2$,label=250:$\scriptstyle{x<q_1}$] at (t00) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt,label=0:$c_5$,label=280:${\scriptstyle x<q_4}$] at (t00100) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt, label=$c_1$,label=250:$\scriptstyle{q_0<x}$] at (t1) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt, label = 0:$c_3$,label=240:$\scriptstyle{q_2<x}$] at (t100) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt,label = 0:$c_4$,label=300:$\scriptstyle{q_3<x}$] at (t1100) {}; \node[label=280:$\scriptstyle{x< q_0}$] at (t0) {}; \node[label=270:$\scriptstyle{q_1< x}$] at (t11) {}; \node[label=270:$\scriptstyle{x< q_1}$] at (t10) {}; \node[label=300:$\scriptstyle{q_2 < x}$] at (t110) {}; \node[label=240:${\scriptstyle x< q_3}$] at (t1000) {}; \node[label=280:${\scriptstyle q_3< x}$] at (t1001) {}; \node[label=240:${\scriptstyle x< q_4}$] at (t10000) {}; \node[label=300:${\scriptstyle x< q_4}$] at (t10010) {}; \node[label=240:${\scriptstyle q_5<x}$] at (t100000) {}; \node[label=300:${\scriptstyle q_5< x}$] at (t100100) {}; \node[label=260:${\scriptstyle x<q_4}$] at (t11000) {}; \node[label=280:${\scriptstyle q_4< x}$] at (t11001) {}; \node[label=260:${\scriptstyle q_5< x}$] at (t110000) {}; \node[label=280:${\scriptstyle q_5< x}$] at (t110010) {}; \node[label=260:${\scriptstyle x< q_2}$] at (t000) {}; \node[label=280:${\scriptstyle q_2< x}$] at (t001) {}; \node[label=260:${\scriptstyle x<q_3}$] at (t0000) {}; \node[label=280:${\scriptstyle x< q_3}$] at (t0010) {}; \node[label=260:${\scriptstyle x<q_4}$] at (t00000) {}; \node[label=260:${\scriptstyle x< q_5}$] at (t000000) {}; \node[label=260:${\scriptstyle x<q_5}$] at (t001000) {}; \node[label=280:${\scriptstyle q_5< x}$] at (t001001) {}; \node[label=280:${\scriptstyle q_5< x}$] at (t001001) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t0) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t0000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t00000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t000000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t001) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t0010) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t001000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t001001) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t10) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t1000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t10000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t100000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t1001) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t10010) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t100100) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t11) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t110) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t11000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t110000) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t11001) {}; \node[circle, fill=white,draw,inner sep=0pt, minimum size=4pt] at (t110010) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt, label=$q_2$,below=2.5cm of t00] (v2) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt,label=$q_5$,below =3.4cm of t001] (v5) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt,label=$q_0$,below =.7cm of t9] (v0) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt,label=$q_3$,below =3.4cm of t100] (v3) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt,label=$q_1$,below =1.6cm of t1] (v1) {}; \node[circle, fill=blue,inner sep=0pt, minimum size=5pt,label=$q_4$,below =2.5cm of t11] (v4) {}; \end{tikzpicture} \caption{Coding tree $\bS(\bQ)$ of $1$-types for $(\bQ,< )$ and the linear order represented by its coding nodes.}\label{fig.Qtree} \end{figure} Given $s\in \bS(\mathbb{Q})$ let $|s|=j+1$ where $j$ is maximal such that one of $(x< q_j)$ or $(q_j< x)$ is in $s$. For each $i<|s|$, we let $s(i)$ denote the formula from among $(x< q_i)$ or $(q_i< x)$ which is in $s$. The {\em coding nodes} $c(n)$, in practice usually denoted by $c_n$, are special distinguished nodes representing the rational numbers; $c_n$ represents the rational $q_n$, because $c_n$ is the $1$-type with parameters from among $\{q_i:i\in n\}$ that $q_n$ satisfies. Notice that this tree $\bS(\mathbb{Q})$ has at most one splitting node per level. The effect is that any antichain of coding nodes in $\bS(\mathbb{Q})$ will automatically be diagonal. (See Figure 1, reproduced from \cite{CDP21}.) Fix an ordering $<_{\mathrm{lex}}$ on the literals: For $i<j$, define $(x< q_i)<_{\mathrm{lex}} (q_i< x)<_{\mathrm{lex}} (x< q_j)$. Extend $<_{\mathrm{lex}}$ to $\bS(\mathbb{Q})$ by declaring for $s,t\in \bS(\mathbb{Q})$, $s<_{\mathrm{lex}} t$ if and only if $s$ and $t$ are incomparable and for $i=|s\wedge t|$, $s(i)<_{\mathrm{lex}} t(i)$. \begin{definition}\label{def.simtypeQtypetree} For $A,B$ sets of coding nodes in $\bS(\mathbb{Q})$, we say that $A$ and $B$ are {\em similar} if there is a bijection $f:\mc(A)\ra\mc(B)$ such that for all $s,t\in\mc(A)$, $f$ satisfies (a)--(c) of Definition \ref{defn.strongsimtype} and (d${}'$) $s <_{\mathrm{lex}}t \Leftrightarrow f(s) <_{\mathrm{lex}}f(t)$, \end{definition} When $B$ is similar to $A$, we call $B$ a {\em similarity copy} of $A$. Condition (d) in Definition \ref{defn.strongsimtype} implies that the lexicographic order on $2^{<\om}$ is preserved, and moreover, that passing numbers at meet nodes and at terminal nodes are preserved. In (d${}'$) we only need to preserve lexicographic order. Extending Harrington's method, forcing is utilized to obtain a pigeonhole principle for coding trees of $1$-types in the vein of the Halpern--\Lauchli\ Theorem \ref{thm.HL}, but for colorings of finite sets of coding nodes, rather than antichains. Via an inductive argument using this pigeonhole principle, we obtain the following Ramsey theorem on coding trees. \begin{theorem}[\cite{CDP21}]\label{thm.SDAPQ} Let $\bS(\bQ)$ be a coding tree of $1$-types for the rationals. Given a finite set $A$ of coding nodes in $\bS(\bQ)$ and a finite coloring of all similarity copies of $A$ in $\bS(\bQ)$, there is a coding subtree $S$ of $\bS(\bQ)$ similar to $\bS(\bQ)$ such that all similarity copies of $A$ in $S$ have the same color. \end{theorem} Fix $n\ge 1$. By applying Theorem \ref{thm.SDAPQ} once for each similarity type of coding nodes of size $n$, we prove finite big Ramsey degrees, accomplishing step II while bypassing step I in Devlin's proof. Upon taking {\em any} antichain $D$ of coding nodes in $\bS(\mathbb{Q})$ representing a dense linear order, we obtain better upper bounds which are then proved to be exact, accomplishing steps III and IV. \vskip.1in \noindent \textbf{Big Ramsey degrees of the rationals}. In \cite{CDP21}, we show that given $n\ge 1$, the big Ramsey degree $T(n)$ for linear orders of size $n$ in the rationals is the number of similarity types of antichains of coding nodes in $\bS(\bQ)$. What then {\em is} the big Ramsey degree $T(n)$ in the rationals? It is the number of different ways to order the indexes of an increasing sequence of rationals $\{q_{i_0}< q_{i_1}<\dots< q_{i_{n-1}}\}$ with incomparable $1$-types along with the number of ways to order the first differences of their $1$-types over initial substructures of $\mathbb{Q}$. The first difference between the $1$-types of the rationals $q_i$ and $q_j$ occurs at the least $k$ such that $q_i < q_k $ and $q_k< q_j$, or vice versa. This means that $q_i$ and $q_j$ are in the same interval of $\bQ\re k$ but in different intervals of $\bQ\re (k+1)$. Concretely, $T(n)$ is the number of $<$-isomorphism classes of $(2n-1)$-tuples of integers $(i_0,\dots,i_{n-1},k_0,\dots,k_{n-2})$ with the following properties: $\{q_{i_0}< q_{i_1}< \dots< q_{i_{n-1}}\}$ is a set of rationals in increasing order, and for each $j<n-1$, $q_{i_j}< q_{k_j}< q_{i_{j+1}}$ where $k_j<\min(i_j,i_{j+1})$ and is the least integer satisfying this relation. \section{Historical highlights, recent results, and methods}\label{sec.HH} We now highlight some historical achievements, and present recent results and the main ideas of their methods. For an overview of results up to the year 2000, see the appendix by Sauer in \Fraisse's book \cite{FraisseBK}; for an overview up to the year 2013, see Nguyen Van Th\'{e}'s habilitation thesis \cite{NVTHabil}. Those interested in open problems intended for undergraduate research may enjoy \cite{DG20}. The Rado graph is the second example of a homogeneous structure with non-trivial big Ramsey degrees which has been fully understood in terms of its partition theory. The Rado graph $\bR$ is up to isomorphism the homogeneous graph on countably many vertices which is universal for all countable graphs. It was known to \Erdos\ and other Hungarian mathematicians in the 1960's, though possibly earlier, that the the Rado graph is indivisible. In their 1975 paper \cite{EHP73}, \Erdos, Hajnal, and P\'{o}sa constructed a coloring of the edges in $\bR$ into two colors such that both colors persist in each subcopy of $\bR$. Pouzet and Sauer later showed in \cite{Pouzet/Sauer96} that the big Ramsey degree for edge colorings in the Rado graph is exactly two. The complete characterization of the big Ramsey degrees of the Rado graph was achieved in a pair of papers by Sauer \cite{Sauer06} and by Laflamme, Sauer, and Vuksanovic \cite{LSV06}, both appearing in 2006, and the degrees were calculated by Larson in \cite{Larson08}. The two papers \cite{Sauer06} and \cite{LSV06} in fact characterized exact big Ramsey degrees for all unrestricted homogeneous structures with finitely many binary relations, including the homogeneous digraph, homogeneous tournament, and random graph with finitely many edges of different colors. Milliken's Theorem was used to prove existence of upper bounds, alluding to a deep connection between big Ramsey degrees and Ramsey theorems for trees. These results are discussed in Subsection \ref{subsec.SDAP}. In \cite{LNVTS10}, for each $n\ge 2$, Laflamme, Nguyen Van Th\'{e}, and Sauer calculated the big Ramsey degrees of $\mathbb{Q}_n$, the rationals with an equivalence relation with $n$ many equivalence classes each of which is dense in $\mathbb{Q}$. This hinged on proving a ``colored version" of Milliken's theorem, where the levels of the trees are colored, to achieve upper bounds. Applying their result for $\mathbb{Q}_2$, they calculated the big Ramsey degrees of the dense local order, denoted $\bfS(2)$. In his PhD thesis \cite{HoweThesis}, Howe proved finite big Ramsey degrees for the generic bipartite graph and the \Fraisse\ limit of the class of finite linear orders with a convex equivalence relation. A robust and streamlined approach applicable to a large class of homogeneous structures, and recovering the previously mentioned examples (except for $\mathbf{S}(2)$), was developed by Coulson, Patel, and the author in \cite{CDP21}, building on ideas in \cite{DobrinenJML20} and \cite{DobrinenH_k19}. In \cite{CDP21}, it was shown that homogeneous structures with relations of arity at most two satisfying a strengthening of SAP, called SDAP$^+$, have big Ramsey structures which are characterized in a simple manner, and therefore their big Ramsey degrees are easy to compute. The proof proceeds via a Ramsey theorem for colorings of finite antichains of coding nodes on {\em diagonal coding trees of $1$-types}. This approach bypasses any need for envelopes, the theorem producing of its own accord exact upper bounds. Moreover, the Halpern--\Lauchli-style theorem, which is proved via forcing arguments to achieve a ZFC result and used as the pigeonhole principle in the Ramsey theorem, immediately yields indivisibility for all homogeneous structures satisfying SDAP$^+$, with relations of any arity. These results and their methods are discussed in Subsection \ref{subsec.SDAP}. The $k$-clique-free homogeneous graphs, denoted $\mathbf{G}_k$, $k\ge 3$, were constructed by Henson in his 1971 paper \cite{Henson71}, where he proved these graphs to be weakly indivisible. In their 1986 paper \cite{Komjath/Rodl86}, Komj\'{a}th and \Rodl\ proved that $\mathbf{G}_3$ is indivisible, answering a question of Hajnal. A few years later, El-Zahar and Sauer gave a systematic approach in \cite{El-Zahar/Sauer89}, proving that for each $k\ge 3$, the $k$-clique-free homogeneous graph $\mathbf{G}_k$ is indivisible. In 1998, Sauer proved in \cite{Sauer98} that the big Ramsey degree for edges in $\mathbf{G}_3$ is two. Further progress on big Ramsey degrees of $\mathbf{G}_3$, however, needed a new approach. This was achieved by the author in \cite{DobrinenJML20}, where the method of coding trees was first developed. In \cite{DobrinenH_k19}, the author extended this work, proving that $\mathbf{G}_k$ has finite big Ramsey degrees, for each $k\ge 3$. In \cite{DobrinenJML20} and \cite{DobrinenH_k19}, the author proved a Ramsey theorem for colorings of finite antichains of coding nodes in diagonal coding trees. These diagonal coding trees were designed to achieve very good upper bounds and directly recover the indivisibility results in \cite{Komjath/Rodl86} and \cite{El-Zahar/Sauer89}, discovering much of the essential structure involved in characterizing their exact big Ramsey degrees. (Milliken-style theorems on non-diagonal coding trees which fully branch at each level do not directly prove indivisibility results, and produce looser upper bounds.) In particular, after a minor modification, the trees in \cite{DobrinenJML20} produced exact big Ramsey degrees for $\mathbf{G}_3$, as shown in \cite{DobrinenH_3Exact20}. Around the same time, exact big Ramsey degrees for $\mathbf{G}_3$ were independently proved by Balko, Chodounsk{\'{y}}, Hubi{\v{c}}ka, Kone{\v{c}}n{\'{y}}, Vena, and Zucker, instigating the collaboration of this group with the author. Given a finite relational language $\mathcal{L}$, an $\mathcal{L}$-structure $\bfA$ is called {\em irreducible} if each pair of its vertices are in some relation of $\bfA$. Given a set $\mathcal{F}$ of finite irreducible $\mathcal{L}$-structures, Forb$(\mathcal{F})$ denotes the class of all finite $\mathcal{L}$-structures into which no member of $\mathcal{F}$ embeds. \Fraisse\ classes of the form Forb$(\mathcal{F})$ are exactly those with free amalgamation. Zucker in \cite{Zucker20} proved that for any \Fraisse\ class of the form Forb$(\mathcal{F})$, where $\mathcal{F}$ is a finite set of irreducible substructures and all relations have arity at most two, its \Fraisse\ limit has finite big Ramsey degrees. His proof used coding trees which branch at each level and a forcing argument to obtain a Halpern--\Lauchli-style theorem which formed the pigeonhole principle for a Milliken-esque theorem for these coding trees. An important advance in this paper is Zucker's abstract, top-down approach, providing simplified and relatively short proof of finite big Ramsey degrees for this large class of homogeneous structures. On the other hand, his Milliken-style theorem does not directly recover indivisibility (more work is needed afterwards to show this), and the upper bounds in \cite{Zucker20} did not recover those in \cite{DobrinenJML20} or \cite{DobrinenH_k19} for the homogeneous $k$-clique-free graphs. However, by further work done in \cite{Balko7_binaryFAP}, by Balko, Chodounsk{\'{y}}, Hubi{\v{c}}ka, Kone{\v{c}}n{\'{y}}, Vena, Zucker, and the author, indivisibility results are proved and exact big Ramsey degrees are characterized. Thus, the picture for FAP classes with finitely many relations of arity at most two is now clear. These results will be discussed in Subsection \ref{subsec.FAP}. Next, we look at homogeneous structures with relations of arity at most two which do not satisfy SDAP$^+$ and whose ages have strong (but not free) amalgamation. Nguyen Van Th\'{e} made a significant contribution in his 2008 paper \cite{NVT08}, in which he proved that the ultrametric Urysohn space $\mathbf{Q}_S$ has finite big Ramsey degrees if and only if $S$ is a finite distance set. In the case that $S$ is finite, he calculated the big Ramsey degrees. Moreover, he showed that for an infinite countable distance set $S$, $\mathbf{Q}_S$ is indivisible if and only if $S$ with the reverse order as a subset of the reals is well-ordered. His proof used infinitely wide trees of finite height and his pigeonhole principle was actually Ramsey's theorem. All countable Urysohn metric spaces with finite distance set were proved to be indivisible by Sauer in \cite{Sauer12}, completing the work that was initiated in \cite{NVTS09} in relation to the celebrated distortion problem from Banach space theory and its solution by Odell and Schlumprecht in \cite{OS94}. \Masulovic\ instigated the use of category theory to prove transport principles showing that finite big Ramsey degrees can be inferred from one category to another. After proving a general transport principle in \cite{Masulovic18}, he applied it to prove finite big Ramsey degrees for many universal structures and also for homogenous metric spaces with finite distance sets with a certain property which he calls {\em compact with one nontrivial block}. \Masulovic\ proved in \cite{Masulovic_RBS20} that in categories satisfying certain mild conditions, small Ramsey degrees are minima of big Ramsey degrees. In the paper \cite{MS} with \v{S}obot (not using category theory), finite big Ramsey degrees for finite chains in countable ordinals were shown to exist if and only if the ordinal is smaller than $\om^{\om}$. Dasilva Barbosa in \cite{Barbosa20} proved that categorical precompact expansions grant upper bounds for big and small Ramsey degrees. As an application, he calculated the big Ramsey degrees of the circular directed graphs $\mathbf{S}(n)$ for all $n\ge 2$, extending the work in \cite{LNVTS10} for $\mathbf{S}(2)$. \Hubicka\ recently developed a new method to handle forbidden substructures utilizing topological Ramsey spaces of parameter words due to Carlson and Simpson \cite{Carlson/Simpson84}. In \cite{Hubicka_CS20}, he applied his method to prove that the homogeneous partial order and Urysohn $S$-metric spaces (where $S$ is a set of non-negative reals with $0\in S$ satisfying the 4-values condition) have finite big Ramsey degrees. He also showed that this method is quite broad and can be applied to yield a short proof of finite big Ramsey degrees in $\mathbf{G}_3$. Beginning with the upper bounds in \cite{Hubicka_CS20}, the exact big Ramsey degrees of the generic partial order have been characterized in \cite{Balko7_PO} by Balko, Chodounsk{\'{y}}, Hubi{\v{c}}ka, Kone{\v{c}}n{\'{y}}, Vena, Zucker, and the author. Also utilizing techniques from \cite{Hubicka_CS20}, Balko, Chodounsk{\'{y}}, Hubi{\v{c}}ka, Kone{\v{c}}n{\'{y}}, Ne\v{s}et\v{r}il, and Vena in \cite{Balko6_ForbCycle} have found a condition which guarantees finite big Ramsey degrees for binary relational homogeneous structures with strong amalgamation. Examples of structures satisfying this condition include the $S$-Urysohn space for finite distance sets $S$, $\Lambda$-ultrametric spaces for a finite distributive lattice, and metric spaces associated to metrically homogeneous graphs of a finite diameter from Cherlin's list with no Henson constraints. For homogeneous structures with free amalgamation with finitely many relations of any arity, the picture for indivisibility is now clear due to the recent breakthrough of Sauer. In \cite{Sauer20}, Sauer showed that a homogeneous free amalgamation structure with relations of finite arity is indivisible if and only if its age poset is linearly ordered, a property he called {\em rank linear}, culminating a line of work in \cite{El-Zahar/Sauer91}, \cite{El-Zahar/Sauer93}, \cite{El-Zahar/Sauer94}, \cite{Sauer03}, and \cite{El-Zahar/Sauer05}. On the other hand, big Ramsey degrees of structures with relations of arity greater than two has only recently seen progress, beginning with \cite{Balko5_3unifGraphs19}, where Balko, Chodounsk{\'{y}}, Hubi{\v{c}}ka, Kone{\v{c}}n{\'{y}}, and Vena found upper bounds for the big Ramsey degrees of the generic $3$-hypergraph. Work in this area is ongoing and promising. \section{Exact big Ramsey degrees}\label{sec.RecentResults} This section presents characterizations of exact big Ramsey degrees known at the time of writing. These hold for homogeneous structures with finitely many relations of arity at most two. Two general classes have been completely understood: Structures satisfying a certain strengthening of strong amalgamation called SDAP$^+$ (Subsection \ref{subsec.SDAP}) and structures whose ages have free amalgamation (Subsection \ref{subsec.FAP}). Lying outside of these two classes, the generic partial order has been completely understood in terms of exact big Ramsey degrees and will be briefly discussed at the end of Subsection \ref{subsec.FAP}. These characterizations all involve the notion of a diagonal antichain, in various trees or spaces of parameter words, representing a copy of an enumerated homogeneous structure. Here, we present these notions in terms of structures, as they are independent of the representation. Let $\bK$ be an enumerated homogeneous structure with universe $\{v_n:n<\om\}$. Let $\bfA\le\bK$ be a finite substructure of $\bK$, and suppose that the universe of $\bfA$ is $\{v_i:i\in I\}$ for some finite set $I\sse \om$. We say that $\bfA$ is an {\em antichain} if for each pair $i<j$ in $I$ there is a $k(i,j)<i$ such that the set $\{k(i,j):i,j\in I\mathrm{\ and\ }i<j\}$ is disjoint from $I$, and \begin{align} \bK\re (\{v_{\ell}:\ell<k(i,j)\}\cup\{v_{i}\}) & \cong \bK\re (\{v_{\ell}:\ell<k(i,j)\}\cup\{v_{j}\})\cr \bK\re (\{v_{\ell}:\ell\le k(i,j)\}\cup\{v_{i}\}) & \not\cong \bK\re (\{v_{\ell}:\ell\le k(i,j)\}\cup\{v_{j}\}). \end{align} An antichain $\bfA$ is called {\em diagonal} if $\{k(i,j):i<j\le m\}$ has cardinality $m$. We call $k(i,j)$ the {\em meet level} of the pair $v_{i},v_{j}$. The notion of diagonal antichain is central to all characterizations of big Ramsey degrees obtained so far. It seems likely that antichains will be essential to all characterizations of big Ramsey degrees. However, preliminary work shows that some homogeneous binary relational structures, such as two or more independent linear orders, will have characterizations in their trees of $1$-types involving antichains which are not diagonal, but could still be characterized via products of finitely many diagonal antichains. The indexing of the relation symbols $\{R_{\ell}:\ell<L\}$ in the language $\mathcal{L}$ of $\bK$ induces a lexicographic ordering on trees representing relational structures. Here, we present this idea directly on the structures. For $m\ne n$, we declare $v_m<_{\mathrm{lex}}v_n$ if and only if $\{v_m,v_n\}$ is an antichain and, letting $k$ be the meet level of the pair $v_m,v_n$, and letting $\ell$ denote the least index in $L$ such that $v_m$ and $v_n$ disagree on their $R_{\ell}$-relationship with $v_{k}$, either $R_{\ell}(v_k,v_n)$ holds while $R_{\ell}(v_k,v_m)$ does not, or else $R_{\ell}(v_n,v_k)$ holds while $R_{\ell}(v_m,v_k)$ does not. Two diagonal antichains $\bfA$ and $\bfB$ in an enumerated homogeneous structure $\bK$ are {\em similar} if they have the same number of vertices, and the increasing bijection from the universe $A=\{v_{m_i}:i\le p\}$ of $\bfA$ to the universe $B=\{v_{n_i}:i\le p\}$ of $\bfB$ induces an isomorphism from $\bfA$ to $\bfB$ which preserves $<_{\mathrm{lex}}$ and induces a map on the meet levels which, for each $i<j\le p$, sends $k(m_i,m_j)$ to $k(n_i,n_j)$. This implies that the map sending the coding node $c_{m_i}$ to $c_{n_i}$ ($i\le p$) in the coding tree of $1$-types $\bS(\bK)$ (see Definition \ref{defn.treecodeK}) induces a map on the meet-closures of $\{c_{m_i}: i\le p\}$ and $\{c_{n_i}:i\le p\}$ satisfying Definition \ref{def.simtypeQtypetree}. Similarity is an equivalence relation, and an equivalence class is called a {\em similarity type}. We say that $\bK$ has {\em simply characterized big Ramsey degrees} if for $\bfA\in\Age(\bK)$, the big Ramsey degree of $\bfA$ is exactly the number of similarity types of diagonal antichains representing $\bfA$. In the next Subsection, we will see many homogeneous structures with simply characterized big Ramsey degrees. \subsection{Exact big Ramsey degrees with a simple characterization}\label{subsec.SDAP} The decades-long investigation of the big Ramsey degrees of the Rado graph culminated in the two papers \cite{Sauer06} and \cite{LSV06}. These two papers moreover characterized the big Ramsey degrees for all {\em unrestricted} binary relational homogeneous structures. Unrestricted binary relational structures are determined by a finite language $\mathcal{L}=\{R_0,\dots, R_{l-1}\}$ of binary relation symbols and a non-empty constraint set $\mathcal{C}$ of $\mathcal{L}$-structures with universe $\{0,1\}$ with the following property: If $\bfA$ and $\bfB$ are two isomorphic $\mathcal{L}$-structures with universe $\{0,1\}$, then either both are in $\mathcal{C}$ or neither is in $\mathcal{C}$. We let $\mathbf{H}_{\mathcal{C}}$ denote the homogeneous structure such that each of its substructures with universe of size two is isomorphic to one of the structures in $\mathcal{C}$. Examples of unrestricted binary relational homogeneous structures include the Rado graph, the generic directed graph, the generic tournament, and random graphs with more than one edge relation. Given a universal constraint set $\mathcal{C}$, letting $k=|\mathcal{C}|$, Sauer showed in \cite{Sauer06} how to form a structure, call it $\mathbf{U}_{\mathcal{C}}$, with nodes in the tree $k^{<\om}$ as vertices, such that $\mathbf{H}_{\mathcal{C}}$ embeds into $\mathbf{U}_{\mathcal{C}}$. Fix a bijection $\lambda:\mathcal{C} \ra k$. Given two nodes $s,t\in k^{<\om}$ with $|s|<|t|$, declare that $t(|s|)=j$ if and only if the induced substructure of $\mathbf{U}_{\mathcal{C}}$ on universe $\{s,t\}$ is isomorphic to the structure $\lambda(j)$ in $\mathcal{C}$, where the isomorphism sends $s$ to $0$ and $t$ to $1$. For two nodes $s,t\in k^{<\om}$ of the same length, declare that for $s$ lexicographically less than $t$, the induced substructure of $\mathbf{U}_{\mathcal{C}}$ on universe $\{s,t\}$ is isomorphic to the structure $\lambda(0)$ in $\mathcal{C}$, where the isomorphism sends $s$ to $0$ and $t$ to $1$. As a special case, a universal graph is constructed as follows: Let each node in $2^{<\om}$ be a vertex. Define an edge relation $E$ between vertices by declaring that, for $s\ne t$ in $2^{<\om}$, $s\, E\, t$ if and only if $|s|\ne |t|$ and ($|s|<|t| \Rightarrow t(|s|)=1$). Then $(2^{<\om},E)$ is universal for all countable graphs. In particular, the Rado graph embeds into the graph $(2^{<\om},E)$ and vice versa. In trees of the form $k^{<\om}$, the notion of similarity is exactly that of Definition \ref{defn.strongsimtype}, and steps I--IV discussed in Section \ref{sec.CaseStudies} outline the proof of exact big Ramsey degrees contained in the pair of papers \cite{Sauer06} and \cite{LSV06}. Milliken's Theorem was used to prove existence of upper bounds via strong tree envelopes. For step III, Sauer constructed in \cite{Sauer06} a diagonal antichain $D\sse k^{<\om}$ such that the substructure of $\mathbf{U}_{\mathcal{C}}$ restricted to universe $D$ is isomorphic to $\mathbf{H}_{\mathcal{C}}$, achieving upper bounds shown to be exact in \cite{LSV06}, finishing step IV. The big Ramsey degree of a finite substructure $\bfA$ of $\mathbf{H}_{\mathcal{C}}$ is exactly the number of distinct similarity types of subsets of $D$ whose induced substructure in $\mathbf{U}_{\mathcal{C}}$ is isomorphic to $\bfA$. The work in \cite{Sauer06} and \cite{LSV06} greatly influenced the author's development of {\em coding trees} and their Ramsey theorems in \cite{DobrinenJML20} and \cite{DobrinenH_k19} (discussed in Subsection \ref{subsec.FAP}). Those papers along with a suggestion of Sauer to the author during the Banff 2018 Workshop on {\em Unifying Themes in Ramsey Theory}, to try moving the forcing arguments in those papers from coding trees to structures, informed the approach taken in the paper \cite{CDP21}, which is now discussed. Let $\bK$ be an enumerated \Fraisse\ structure with vertices $\{v_n:n<\om\}$. For $n<\om$, we let $\bK_n$ denote $\bK\re \{v_i:i<n\}$, the induced substructure of $\bK$ on its first $n$ vertices, and call $\bK_n$ an {\em initial substructure} of $\bK$. We write {\em $1$-type} to mean complete realizable quantifier-free $1$-type over $\bK_n$ for some $n$. \begin{definition}[Coding Tree of $1$-Types, \cite{CDP21}]\label{defn.CT1Type} The {\em coding tree of $1$-types} $\bS(\bK)$ for an enumerated \Fraisse\ structure $\bK$ is the set of all $1$-types over initial substructures of $\bK$ along with a function $c:\om\ra \bS(\bK)$ such that $c(n)$ is the $1$-type of $v_n$ over $\bK_n$. The tree-ordering is simply inclusion. \end{definition} A substructure $\bfA$ of $\bK$ with universe $A=\{v_{n_0},\dots, v_{n_m}\}$ is represented by the set of coding nodes $\{c(n_0),\dots, c(n_m)\}$ as follows: For each $i\le m$, since $c(n_i)$ is the quantifier-free $1$-type of $v_{n_i}$ over $\bK_{n_i}$, substituting $v_{n_i}$ for the variable $x$ into each formula in $c(n_i)$ which has only parameters from $\{v_{n_j}:j<i\}$ uniquely determines the relations in $\bfA$ on the vertices $\{v_{n_j}:j\le i\}$. In \cite{CDP21}, we formulated the following strengthening of SAP in order to extract a general property ensuring that big Ramsey degrees have simple characterizations. \begin{definition}[SDAP]\label{defn.EEAP_new} A \Fraisse\ class $\mathcal{K}$ has the {\em Substructure Disjoint Amalgamation Property (SDAP)} if $\mathcal{K}$ has strong amalgamation, and the following holds: Given $\bfA, \bfC\in\mathcal{K}$, suppose that $\bfA$ is a substructure of $\bfC$, where $\bfC$ extends $\bfA$ by two vertices, say $v$ and $w$. Then there exist $\bfA',\bfC'\in\mathcal{K}$, where $\bfA$ is a substructure of $\bfA'$ and $\bfC'$ is a disjoint amalgamation of $\bfA'$ and $\bfC$ over $\bfA$, such that letting $v',w'$ denote the two vertices in $C'\setminus A'$ and assuming (1) and (2), the conclusion holds: \begin{enumerate} \item[(1)] Suppose $\bfB\in\mathcal{K}$ is any structure containing $\bfA'$ as a substructure, and let $\sigma$ and $\tau$ be $1$-types over $\bfB$ satisfying $\sigma\re\bfA'=\type(v'/\bfA')$ and $\tau\re\bfA'=\type(w'/\bfA')$, \item[(2)] Suppose $\bfD\in \mathcal{K}$ extends $\bfB$ by one vertex, say $v''$, such that $\type(v''/\bfB)=\sigma$. \end{enumerate} Then there is an $\bfE\in\mathcal{K}$ extending $\bfD$ by one vertex, say $w''$, such that $\type(w''/\bfB)=\tau$ and $\bfE\re ( \mathrm{A}\cup\{v'',w''\})\cong \bfC$. \end{definition} This amalgamation property can of course be presented in terms of embeddings, but the form here is indicative of how it is utilized. A free amalgamation version called {\em SFAP} is obtained from SDAP by restricting to FAP classes and requiring $\bfA'=\bfA$ and $\bfC'=\bfC$. Both of these amalgamation properties are preserved under free superposition. A {\em diagonal subtree} of $\bS(\bK)$ is a subtree such that at any level, at most one node branches, the branching degree is two, and branching and coding nodes never occur on the same level. Diagonal coding trees are subtrees of $\bS(\bK)$ which are diagonal and represent a subcopy of $\bK$. The property SDAP$^+$ holds for a homogeneous structure $\bK$ if (a) its age satisfies SDAP, (b) there is a diagonal coding subtree of $\bS(\bK)$, and (c) a technicality called the Extension Property which in most cases is trivially satisfied. Classes of the form Forb$(\mathcal{F})$ where $\mathcal{F}$ is a finite set of $3$-irreducible structures, meaning each triple of vertices is in some relation, satisfy SFAP; their ordered versions satisfy SDAP$^+$. A version of the Halpern--\Lauchli\ Theorem for diagonal coding trees was proved in \cite{CDP21} using the method of forcing to obtain a ZFC result, with the following theorem as an immediate consequence. \begin{theorem}[\cite{CDP21}]\label{thm.indivisibility} Let $\bK$ be a homogeneous structure satisfying SDAP$^+$, with finitely many relations of any arity. Then $\bK$ is indivisible. \end{theorem} For relations of arity at most two, an induction proof then yields a Ramsey theorem for finite colorings of finite antichains of coding nodes in diagonal coding trees. This accomplishes steps I--III simultaneously and directly, without any need for envelopes, providing upper bounds which are then proved to be exact, finishing step IV. \begin{theorem}[\cite{CDP21}]\label{thm.CDPmain} Let $\bK$ be a homogeneous structure satisfying SADP$^+$, with finitely many relations of arity at most two. Then $\bK$ admits a big Ramsey structure and moreover, has simply characterized big Ramsey degrees. \end{theorem} Theorem \ref{thm.CDPmain} provides new classes of examples of big Ramsey structures while recovering results in \cite{DevlinThesis}, \cite{HoweThesis}, \cite{LNVTS10}, and \cite{LSV06} and special cases of the results in \cite{Zucker20}. Theorem \ref{thm.indivisibility} provides new classes of examples of indivisible \Fraisse\ structures, in particular for ordered structures such as the ordered Rado graph, while recovering results in \cite{El-Zahar/Sauer89}, \cite{Komjath/Rodl86}, and \cite{El-Zahar/Sauer94} and some of the results in \cite{Sauer20}. Sauer's work in \cite{Sauer20} provides the full picture on indivisibility for free amalgamation classes. Theorem \ref{thm.indivisibility} recovers certain cases of Sauer's results for FAP classes, while providing new SAP examples with indivisibility. \subsection{Big Ramsey degrees for free amalgamation classes}\label{subsec.FAP} An obstacle to progress in partition theory of homogeneous structures had been the fact that Milliken's theorem is not able to handle forbidden substructures, for instance, triangle-free graphs. Most results up to 2010 had either utilized Milliken's theorem or a variation (as in \cite{Sauer06}, \cite{LNVTS10}) or else used difficult direct methods (as in \cite{Sauer98}) which did not lend naturally to generalizations. The idea of coding trees came to the author during the her stay at the Isaac Newton Institute in 2015 for the programme, {\em Mathematical, Foundational and Computational Aspects of the Higher Infinite}, culminating in the work \cite{DobrinenJML20}. The ideas behind coding trees included the following: Knowing that at the end of the process one will want a diagonal antichain representing a copy of $\mathbf{G}_3$, starting with a tree where vertices in $\mathbf{G}_3$ are represented by special nodes on different levels should not hurt the results. Further, by using special nodes to code the vertices of $\mathbf{G}_3$ into the trees, one might have a chance to prove Milliken-style theorems on a collection of trees, each of which codes a subcopy of $\mathbf{G}_3$. The author had made a previous attempt at this problem starting early in 2012. Upon stating her interest this problem, Todorcevic (2012, at the Fields Institute Thematic Program on Forcing and Its Applications) and Sauer (2013, at the \Erdos\ Centenary Meeting) each told the author that a new kind of Milliken theorem would need to be developed in order to handle triangle-free graphs, which intrigued her even more. Though unknown to her at the time, a key piece to this puzzle would be Harrington's forcing proof of the Halpern--\Lauchli\ theorem, which Laver was kind enough to outline to her in 2011. (At that time, the author was unaware of the proof in \cite{Farah/TodorcevicBK}.) While at the INI in 2015, Barto\v{s}ov\'{a} reminded the author of her interest in big Ramsey degrees of $\mathbf{G}_3$. Having had time by then to fill out and digest Laver's outline, it occurred to the author to try approaching the problem first with the strongest tool available, namely forcing. Forcing is a set-theoretic method which is normally used to extend a given universe satisfying a given set of axioms (often ZFC) to a larger universe in which those same set of axioms hold while some other statement or property is different than in the original universe. The beautiful thing about Harrington's proof is that, while it does involve the method of forcing, the forcing is only used as a search engine for an object which already exists in the universe in which one lives. In the context of the \Fraisse\ limit $\bK$ of a class $\mathrm{Forb}(\mathcal{F})$, where $\mathcal{F}$ is a finite set of finite irreducible structures, by carefully designing forcings on coding trees with partial orders ensuring that new levels obtained by the search engine are capable of extending a given fixed finite coding tree to a sub-coding tree representing a copy of $\bK$, one is able to prove Halpern--\Lauchli-style theorems for coding trees. These form the pigeonhole principles of various Milliken-style theorems for coding trees. As the results and main ideas of the methods in \cite{DobrinenJML20}, \cite{DobrinenH_k19}, and \cite{Zucker20} have been discussed in the previous section, we now present the characterization of big Ramsey degrees in \cite{Balko7_binaryFAP}. \begin{theorem}[\cite{Balko7_binaryFAP}]\label{thm.Balko7} Let $\bK$ be a homogeneous structure with finitely many relations of arity at most two such that $\Age(\bK)=\mathrm{Forb}(\mathcal{F})$ for some finite set $\mathcal{F}$ of finite irreducible structures. Then $\bK$ admits a big Ramsey structure. \end{theorem} Given a \Fraisse\ class $\mathcal{K}=\mathrm{Forb}(\mathcal{F})$ with relations of arity at most two, where $\mathcal{F}$ is a finite set of finite irreducible structures, let $\bK$ denote an enumerated \Fraisse\ limit of $\mathcal{K}$. Coding trees for $\bK$ appearing in various papers are all essentially coding trees of $1$-types. The proof of Theorem \ref{thm.Balko7} uses the upper bounds of Zucker in \cite{Zucker20} as the starting point. It then proceeds by constructing a diagonal antichain of coding nodes which represent the structure $\bK$, with additional requirements if there are any forbidden irreducible substructures of size three or more. While the exact characterization in its full generality is not short to state, the simpler version for the structures $\mathbf{G}_k$ include the following: All coding nodes $c_n\in \bfA$ code an edge with $v_m$ for some $m<n$ and have the following property: If $\bfB$ is any finite graph which has the same relations over $\mathbf{G}_k\re |c_n|$ as $c_n$ does, then $\bfB$ has no edges. Furthermore, changes in the sets of structures which are allowed to extend a given truncation of $\bfA$ (as a level set in the coding tree) happen as gradually as possible. From the characterization in \cite{Balko7_binaryFAP}, one can make an algorithm to compute the big Ramsey degrees. As a concrete example, we present the exact characterization for triangle-free graphs. In Figure 2., on the left is the beginning of $\mathbf{G}_3$ with some fixed enumeration of the vertices as $\{v_n:n<\om\}$. The $n$-th {\em coding node} in the tree $\mathbb{S}=\mathbb{S}(\mathbf{G}_3)\sse 2^{<\om}$ represents the $n$-th vertex $v_n$ in $\mathbf{G}_3$, where passing number $0$ represents a non-edge and passing number $1$ represents an edge. Equivalently, $\mathbb{S}$ is the coding tree of $1$-types for $\mathbf{G}_3$, as the left branch at the level of $c_n$ represents the literal $( x \not \hskip-.05in E v_n)$ and the right branch represents $(x E v_n)$. \begin{figure}[t]\label{fig.bS} \begin{tikzpicture}[grow'=up,scale=.46] \tikzstyle{level 1}=[sibling distance=5in] \tikzstyle{level 2}=[sibling distance=3in] \tikzstyle{level 3}=[sibling distance=1.8in] \tikzstyle{level 4}=[sibling distance=1.1in] \tikzstyle{level 5}=[sibling distance=.7in] \tikzstyle{level 6}=[sibling distance=0.4in] \tikzstyle{level 7}=[sibling distance=0.2in] \node {} coordinate(t) child{coordinate (t0) child{coordinate (t00) child{coordinate (t000) child {coordinate(t0000) child{coordinate(t00000) child{coordinate(t000000) child{coordinate(t0000000)} child{coordinate(t0000001)} } child{coordinate(t000001) child{coordinate(t0000010)} child{ edge from parent[draw=none] coordinate(t0000011)} } } child{coordinate(t00001) child{coordinate(t000010) child{coordinate(t0000100)} child{coordinate(t0000101)} } child{ edge from parent[draw=none] coordinate(t000011) } }} child {coordinate(t0001) child {coordinate(t00010) child {coordinate(t000100) child {coordinate(t0001000)} child { edge from parent[draw=none] coordinate(t0001001)} } child {coordinate(t000101) child {coordinate(t0001010)} child { edge from parent[draw=none] coordinate(t0001011)} } } child{coordinate(t00011) edge from parent[draw=none] }}} child{ coordinate(t001) child{ coordinate(t0010) child{ coordinate(t00100) child{ coordinate(t001000) child{ coordinate(t0010000)} child{ coordinate(t0010001)} } child{ coordinate(t001001) child{ coordinate(t0010010)} child{ edge from parent[draw=none] coordinate(t0010011)} } } child{ coordinate(t00101) child{ coordinate(t001010) child{ coordinate(t0010100)} child{ coordinate(t0010101)} } child{ edge from parent[draw=none]coordinate(t001011) } }} child{ edge from parent[draw=none] coordinate(t0011)}}} child{ coordinate(t01) child{ coordinate(t010) child{ coordinate(t0100) child{ coordinate(t01000) child{ coordinate(t010000) child{ coordinate(t0100000)} child{ edge from parent[draw=none] coordinate(t0100001)} } child{ coordinate(t010001) child{ coordinate(t0100010)} child{edge from parent[draw=none] coordinate(t0100011)} } } child{ coordinate(t01001) child{ coordinate(t010010) child{ coordinate(t0100100)} child{ edge from parent[draw=none] coordinate(t0100101)} } child{edge from parent[draw=none] coordinate(t010011)} }} child{ coordinate(t0101) child{ coordinate(t01010) child{ coordinate(t010100) child{ coordinate(t0101000)} child{edge from parent[draw=none] coordinate(t0101001)} } child{ coordinate(t010101) child{ coordinate(t0101010)} child{edge from parent[draw=none] coordinate(t0101011)} } } child{ edge from parent[draw=none] coordinate(t01011) }}} child{ edge from parent[draw=none] coordinate(t011)}}} child{ coordinate(t1) child{ coordinate(t10) child{ coordinate(t100) child{ coordinate(t1000) child{ coordinate(t10000) child{ coordinate(t100000) child{ coordinate(t1000000)} child{ coordinate(t1000001)} } child{ coordinate(t100001) child{ coordinate(t1000010)} child{ edge from parent[draw=none] coordinate(t1000011)} } } child{ edge from parent[draw=none] coordinate(t10001) }} child{ coordinate(t1001) child{ coordinate(t10010) child{ coordinate(t100100) child{ coordinate(t1001000)} child{edge from parent[draw=none] coordinate(t1001001)} } child{ coordinate(t100101) child{ coordinate(t1001010)} child{edge from parent[draw=none] coordinate(t1001011)} } } child{ edge from parent[draw=none] coordinate(t10011) }}} child{ coordinate(t101) child{ coordinate(t1010) child{ coordinate(t10100) child{ coordinate(t101000) child{ coordinate(t1010000)} child{ coordinate(t1010001)} } child{ coordinate(t101001) child{ coordinate(t1010010)} child{ edge from parent[draw=none] coordinate(t1010011)} } } child{ edge from parent[draw=none] coordinate(t10101) }} child{ edge from parent[draw=none] coordinate(t1011)}}} child{ edge from parent[draw=none] coordinate(t11)} }; \node[below] at (t) {$c_0$}; \node[right] at (t1) {$c_1$}; \node[left] at (t01) {$c_2$}; \node[left] at (t001) {$c_3$}; \node[right] at (t1001) {$c_4$}; \node[left] at (t00001) {$c_5$}; \node[right] at (t010101) {$c_6$}; \node[circle, fill=black,inner sep=0pt, minimum size=5pt] at (t) {}; \node[circle, fill=black,inner sep=0pt, minimum size=5pt] at (t1) {}; \node[circle, fill=black,inner sep=0pt, minimum size=5pt] at (t01) {}; \node[circle, fill=black,inner sep=0pt, minimum size=5pt] at (t001) {}; \node[circle, fill=black,inner sep=0pt, minimum size=5pt] at (t1001) {}; \node[circle, fill=black,inner sep=0pt, minimum size=5pt] at (t00001) {}; \node[circle, fill=black,inner sep=0pt, minimum size=5pt] at (t010101) {}; \draw[thick, dotted] let \p1=(t) in (-18,\y1) node (v00) {$\bullet$} -- (7,\y1); \draw[thick, dotted] let \p1=(t1) in (-18,\y1) node (v0) {$\bullet$} -- (7,\y1); \draw[thick, dotted] let \p1=(t01) in (-18,\y1) node (v1) {$\bullet$} -- (7,\y1); \draw[thick, dotted] let \p1=(t001) in (-18,\y1) node (v2) {$\bullet$} -- (7,\y1); \draw[thick, dotted] let \p1=(t1001) in (-18,\y1) node (v3) {$\bullet$} -- (7,\y1); \draw[thick, dotted] let \p1=(t00001) in (-18,\y1) node (v4) {$\bullet$} -- (7,\y1); \draw[thick, dotted] let \p1=(t010101) in (-18,\y1) node (v5) {$\bullet$} -- (7,\y1); \node[left] at (v00) {$v_0$}; \node[left] at (v0) {$v_1$}; \node[left] at (v1) {$v_2$}; \node[left] at (v2) {$v_3$}; \node[left] at (v3) {$v_4$}; \node[left] at (v4) {$v_5$}; \node[left] at (v5) {$v_6$}; \draw[thick] (v0.center) to (v1.center) to (v2.center) to (v3.center); \draw[thick] (v3.center) to (v4.center) to (v5.center); \draw[thick] (v0.center) to [bend right] (v5.center); \draw[thick] (v5.center) to [bend left] (v2.center); \draw[thick] (v00.center) to [bend left] (v3.center); \draw[thick] (v00.center) to (v0.center); \end{tikzpicture} \caption{Coding tree $\bS(\mathbf{G}_3)$ and the triangle-free graph represented by its coding nodes.} \end{figure} Given an antichain $\bfA\sse \bK$, we say that $\bfA$ is a {\em diagonal substructure} if, letting $I$ be the set of indices of vertices in $\bfA$, the following hold: (a) For each $i\in I$, $v_i$ has an edge with $v_m$ for some $m<i$; let $m_i$ denote the least such $m$. (b) If $i<j$ are in $I$ with $v_i\not \hskip-.05in E v_j$ and $m_j<i$, then there is some $n\in i$ such that $v_i E v_n$ and $v_j E v_n$, and the least such $n$, denoted $n(i,j)$ is not in $I$. (c) For each $i, j, k, \ell \in I$ (not necessarily distinct) with $i< j$, $k< \ell$, $(i, j)\neq (k, \ell)$, $n_j < i$, and $n_\ell< k$, we have $n(i, j)\neq n(k, \ell)$. Given a finite triangle-free graph $\bfA$, the big Ramsey degree $T(\bfA)$ in $\mathbf{G}_3$ is the number of different diagonal substructures representing a copy of $\bfA$. We conclude this section by mentioning the exact big Ramsey degrees in the generic partial order in \cite{Balko7_PO}. This result begins with the upper bounds proved by \Hubicka\ in \cite{Hubicka_CS20} and then proceeds by taking a diagonal antichain $D$ representing the generic partial order with additional structure of interesting levels built into $D$. A level $\ell$ of $D$ is {\em interesting} if there are exactly two nodes, say $s,t$, in that level so that $(*)$ for exactly one relation $\rho\in \{<,>,\bot\}$, given any $s',t'\in D$ extending $s,t$, respectively, $s'\rho\, t'$, while there is no such relation for the pair $s\re(\ell-1),t\re (\ell-1)$. Since an interesting level for a pair of nodes $s,t$ predetermines the relations between any pair $s',t'$ extending $s,t$, respectively, passing numbers are unnecessary to the characterization. The big Ramsey degree of a given finite partial order $\mathbf{P}$ is then the number of different diagonal antichains $A\sse D$ representing $\mathbf{P}$ along with the order in which the interesting levels are interspersed between the splitting levels and the nodes in $A$. \section{Open problems and related directions} Section \ref{sec.theproblems} laid out the guiding questions for big Ramsey degrees. Here we discuss some of the major open problems in big Ramsey degrees and ongoing research in cognate areas. \begin{problem}\label{prob.6.1} For which SAP \Fraisse\ classes does the \Fraisse\ limit have finite big Ramsey degrees? \end{problem} Subquestions are the following: Given an SAP \Fraisse\ class with finitely many relations and a finite set of forbidden substructures, does its \Fraisse\ limit have finite big Ramsey degrees? Results in \cite{HN19} give evidence for a positive answer to this question. For such classes with relations of arity at most two, do big Ramsey degrees always exist? We would like a general condition on SAP classes characterizing those with finite big Ramsey degrees. We point out that Problem \ref{prob.6.1} in its full generality is still open for small Ramsey degrees \begin{problem} For results whose proofs use the method of forcing, find new proofs which are purely combinatorial. \end{problem} This has been done for the triangle-free graph by \Hubicka\ in \cite{Hubicka_CS20}, but new methods will be needed for $k$-clique-free homogeneous graphs for $k\ge 4$ and other such FAP classes. The next problem has to do with topological dynamics of automorphism groups of homogeneous structures. The work of Zucker in \cite{Zucker19} has established a connection but not a complete correspondence yet. \begin{problem}\label{prob.6.3} Does every homogeneous structure with finite big Ramsey degrees also carry a big Ramsey structure? Is there an exact correspondence, in the vein of the KPT-correspondence, between big Ramsey structures and topological dynamics? \end{problem} The hope in Problem \ref{prob.6.3} is to obtain as complete a dynamical understanding of big Ramsey degrees as we have for small Ramsey degrees, where a result of \cite{Zucker16} shows that given a \Fraisse\ class $\mathcal{K}$ with \Fraisse\ limit $\mathbf{K}$, then $\mathcal{K}$ has finite small Ramsey degrees if and only if the universal minimal flow of Aut$(\mathbf{K})$ is metrizable. Finally, we mention several areas of ongoing study related to the main focus of this paper. Computability-theoretic and reverse mathematical aspects have been investigated by Angl\`{e}s d'Auriac, Cholak, Dzhafarov, Monin, and Patey. In their treatise \cite{Cholak_etal}, they show that the Halpern--\Lauchli\ Theorem is computably true and find reverse-mathematical strengths for various instances of the product Milliken Theorem and the big Ramsey structures of the rationals and the Rado graph. As these structures both have simply characterized big Ramsey degrees, it will be interesting to see if different reverse mathematical strengths emerge for structures such as the triangle-free homogeneous graph or the generic partial order. Extending Harrington's forcing proof to the uncountable realm, Shelah in \cite{Shelah91} showed that it is consistent, assuming certain large cardinals, that the Halpern--\Lauchli\ Theorem holds for trees $2^{<\kappa}$, where $\kappa$ is a measurable cardinal. D\v{z}amonja, Larson, and Mitchell applied a slight modification of his theorem to characterize the big Ramsey degrees for the $\kappa$-rationals and the $\kappa$-Rado graph. Their characterizations have as their basis the characterizations of Devlin and Laflamme--Sauer--Vuksanovic for the rationals and Rado graph, respectively, but also involve well-orderings of each level of the tree $2^{<\kappa}$, necessitated by $\kappa$ being uncountable. The field of big Ramsey degrees for uncountable homogeneous structures is still quite open, but the fleshing out of the Ramsey theorems on trees of uncountable height has seen some recent work in \cite{DH16}, \cite{DH18}, and \cite{Zhang17}. The next problem comes from a general question in \cite{KPT05}. \begin{problem} Develop infinite dimensional Ramsey theory on spaces of copies of a homogeneous structure. \end{problem} For a set $N\sse\om$, let $[N]^{\om}$ denote the set of all infinite subsets of $N$, and note that $[\om]^{\om}$ represents the Baire space. The infinite dimensional Ramsey theorem of Galvin and Prikry (\cite{Galvin/Prikry73}) says that given any Borel subset $\mathcal{X}$ of the Baire space, there is an infinite set $N$ such that $[N]^{\om}$ is either contained in $\mathcal{X}$ or is disjoint from $\mathcal{X}$. Ellentuck's theorem in \cite{Ellentuck74} found optimality in terms of sets with the property of Baire with respect to a finer topology. The question in \cite{KPT05} asks for extensions of these theorems to subspaces of $[\om]^{\om}$, where each infinite set represents a copy of some fixed homogeneous structure. A Galvin--Prikry style theorem for spaces of copies of the Rado graph has been proved by the author in \cite{DobrinenRado19}. By a comment of Todorcevic in Luminy in 2019, the infinite dimensional Ramsey theorem should ideally also recover exact big Ramsey degrees. Such a theorem is being written down by the author for structures satisfying SDAP$^+$ with relations of arity at most two. This is one instance where coding trees are necessitated to be diagonal in order for the infinite dimensional Ramsey theorem to directly recover exact big Ramsey degrees. We close by mentioning that structural Ramsey theory has been central in investigations of ultrafilters which are relaxings of Ramsey ultrafilters in the same way that big Ramsey degrees are relaxings of Ramsey's theorem. An exposition of recent work appearing in \cite{DobrinenSEALS} will give the reader yet another view of the power of Ramsey theory. \vskip.1in \noindent\bf Acknowledgements. \rm The author is grateful to her PhD advisor Karel Prikry, and to Richard Laver, Norbert Sauer, and Stevo Todorcevic who have mentored her in areas related to this paper. She thanks Jan \Hubicka, Dragan Ma\v{s}ulovi\'{c}, Mat\v{e}j Kone\v{c}n\'{y}, Lionel Nguyen Van Th\'{e}, and Andy Zucker for valuable feedback on drafts of this paper.
\section{Introduction} Intermediate-mass black holes (IMBHs) with masses of $10^2-10^5\, M_{\odot}$ are one of the missing links in the formation and growth of the supermassive black holes found at the centres of massive galaxies, as early formed IMBHs can serve as seeds capable of growing up to the masses of supermassive black holes supporting the quasars observed at high-redshift \citep[e.g., ][]{haiman_2013}. The possible formation scenarios of IMBHs \citep[e.g., ][]{portegies_zwart_2004,giersz_2015,gonzalez_2021,rizzuto_2021} point to dense stellar systems as their place of origin and therefore many studies have searched for IMBHs in the centres of globular clusters. Globular clusters (GCs) are dense stellar systems with up to a few million stars and half-light radii of 2-5 pc \citep[][2010 edition]{harris_1996}. In the last two decades, many studies have looked at the centres of Galactic GCs to search for kinematic evidence for the presence of an IMBH \citep[][to name a few]{noyola_2008,van_der_marel_2010,mcnamara_2012,lutzgendorf_2013,lanzoni_2013,kamann_2014}. However, limitations on the observed kinematics \citep{de_vita_2017} and dynamical modelling \citep{aros_2020} may hinder the robust detection of an IMBH. No clear evidence for an IMBH has been found so far within Galactic GCs. The possible presence of a black hole system (BHS, see Section \ref{sec:imbh_bin}) in the cluster centre adds to this complex scenario, as it can produce similar velocity dispersions in the cluster core as a central IMBH \citep{zocchi_2019,baumgardt_2019,mann_2019,vitral_2021}. Binary stars play a crucial role in the evolution of GCs. The dynamical evolution of GCs is driven by two-body relaxation that triggers mass segregation \citep{spitzer_1987}. Binaries, being more massive than single stars on average (two stars instead of one), segregate earlier to the cluster centre. Simulations of GCs with primordial binaries \citep{heggie_2006,hurley_2007,chatterjee_2010,wang_2016} show how binaries segregate towards the cluster centre while becoming harder or getting disrupted by encounters with other stars in the dense core. These two processes provide energy to the cluster and play a significant role during the core-collapse period of the GCs’ evolution. Observations of binaries in Galactic GCs show that binaries follow the behaviour described in simulations. Measurements of the binary fraction at different radii show a decreasing gradient with radius \citep[see][]{sollima_2007,milone_2012,ji_2015} and serve as proof for the mass segregation of binaries in GCs. The connection between binaries and the dynamical evolution of the GC has also been explored with specific types of binaries and products of binary evolution. \cite{ferraro_2012, ferraro_2018} used the distribution of blue-straggler stars (BSS) to study the dynamical age of GCs. As formation channels of BSS include binary interactions \citep{mapelli_2006,chatterjee_2013}, the tracing of BSS stars is linked to the overall process of mass segregation. In a similar way, the distribution of X-ray binaries in GCs also describes the same process \citep{Cheng_2019a,cheng_2019b}. The mass segregation driven by two body relaxation not only brings binary systems closer to the cluster centre, but it also efficiently accumulates more massive stars and massive stellar remnants such as stellar mass black holes. A massive object in the cluster centre such as an IMBH will alter the dynamical evolution of the GC. The IMBH hampers mass segregation by working as a source of energy for the cluster \citep{baumgardt_2004,trenti_2007,gill_2018} and in the process altering the distribution of binaries within the cluster core. Moreover, simulations of GCs with a central IMBH and primordial binaries show that binaries in the core are disrupted more efficiently than in the case without an IMBH \citep{trenti_2007}. Whereas this is more likely to happen due to the high density of stars near the IMBH, some binaries could strongly interact with the IMBH. The strong interaction with the IMBH breaks the binary producing high-velocity stars \cite[e.g., ][]{hills_1988,fragione_2019,subr_2019}. In this work, we study the effects that the presence of an IMBH has on the binary population of its host GC. Motivated by the recent observations of binaries in NGC 3201 with VLT/MUSE by \cite{giesers_2019}, we use a sample of simulated GCs from the \textsc{MOCCA}-Survey database I \citep{askar_2017a} with two goals: (1) explore the contamination of binaries in the line-of-sight velocity dispersion and (2) use the detected binary sample to study the binary fraction in GCs with and without an IMBH. The first point is effectively extending the discussion of Figure 4 in \cite{aros_2020} where we show that binaries can systematically increase the observed line-of-sight velocity dispersion. In Section \ref{sec:methods} we describe the sample of simulated GCs and the detection method for binary stars. In Section \ref{sec:kin_bin} we explore the contamination of binaries in the observed line-of-sight velocity dispersion and its implication for current observations. In Section \ref{sec:imbh_bin} we analyze the relation of binaries with the central IMBH and discuss how we could use their co-evolution as an indication for the presence of an IMBH. Finally, in Section \ref{sec:summary} we summarize our findings and motivate future work. \section{Simulations and binary identification} \label{sec:methods} The dynamical evolution of GCs is determined by two-body interactions leading towards partial energy equipartition \citep[see e.g. ][]{spitzer_1969,trenti_2013,bianchini_2016b}. A consequence of the drive towards energy equipartition is mass segregation, where more massive stars sink towards the centre of the GC. Binaries being on average more massive than single stars segregate faster to the centre, ultimately increasing the binary fraction towards the cluster core. To study the general behaviour of binaries under the presence of an IMBH, we identify binaries in mock data from simulated GCs as described in the following sections. \subsection{Simulations and mock data} \label{sec:simulations} We have selected a sample of 284 simulated clusters from the \textsc{MOCCA}-Survey Database I \citep{askar_2017a} to study the effects of binaries in the observed kinematics and the interaction of binaries with a central IMBH. These simulations were evolved to $12\,\text{Gyr}$ using the \textsc{MOCCA} code \citep{hypki_2013,giersz_2013}, which follows a state-of-the-art implementation of the Monte Carlo method first proposed by \cite{henon_1971b,henon_1971a}. All 284 simulations have different initial conditions (see Appendix \ref{secA:initial_condition}), but share the same initial binary fraction $f_{\text{bin}}=10\%$, consistent with observations \citep{sollima_2007,milone_2012}. As described in detail by \cite{giersz_2015}, IMBHs in \textsc{MOCCA} simulations form via dynamical interactions in two kinds of scenarios. The “FAST” scenario starts from the beginning of the simulation and requires an extremely high initial central density \cite[$\gtrsim10^6\,M_{\odot}/\text{pc}^3$, see also][]{hong_2020}, where a BH system can form early in the star cluster evolution and drive the formation of an IMBH by the dynamical interactions of single and binary BHs \citep[similar to the runaway collapse proposed by][]{portegies_zwart_2004}. The “SLOW” scenario, on the other hand, happens at later stages in the cluster evolution and in less dense systems (with central densities of $10^5\,M_{\odot}/\text{pc}^3$). The mass of a single BH can grow through dynamical interactions and mass accretion from a binary companion. The binary-star evolution code \citep[\textsc{BSE},][]{hurley_2002} models the binary stellar evolution in MOCCA, while the \textsc{FEWBODY} code \citep{fregeau_2004} drives the dynamical interactions of binaries with single or binary stars. The interplay of both codes allows \textsc{MOCCA} to follow the evolution of binary stars in a realistic way, while also keeping short simulation times. \cite{hypki_2013} describes the interplay of both codes within \textsc{MOCCA} extensively. \textsc{MOCCA} simulations are spherically symmetric and only have three coordinates for each single star and binary system: the radial position $r$, and the radial $\text{v}_r$ and tangential $\text{v}_t$ velocities. Therefore, we project each simulated GC into cartesian coordinates by randomly sampling the missing coordinates. We then project the simulated GC into the sky to receive the position of each single and binary star, along with their radial velocity (RV) along the line-of-sight and the proper motions. We follow the same projection as in \cite{aros_2020} (see their Figure 1). For binaries, we consider the centre of mass and we follow the same procedure. For every binary system in the cluster, we obtain each component’s relative velocity with respect to their centre of mass, drawing the orbit from the known eccentricity, semi-major axis and masses of each star in the binary. From these orbital parameters, we can obtain the individual positions and velocities of both components of the binary, the period and angular momentum. We randomly select the current position of the binary by sampling a random time between zero and one orbital period. In the same way, we randomly orientate the binary’s orbital plane. Whereas this approach is similar to the projection described by \cite{askar_2018}, we use the direct solution of the Kepler orbit rather than the parameterization of the orbit using the eccentric anomaly. We generate mock data for each cluster by adding errors to the velocities that are consistent with current observations. For line-of-sight radial velocities, we use the error distribution by magnitude from MUSE data \citep{giesers_2019}, with a median value of $3\,\text{km/s}$ at $m_{\text{V}}\sim 18\,\text{mag}$ at a heliocentric distance of $\sim5\,\text{kpc}$ (see Figure \ref{fig:vz_error}). For proper motions, we use the projected velocities as given on the simulation (for binary systems we use the centre of mass velocity), and assume the median error from \cite{libralato_2018}, which is $0.1\,\text{mas/yr}$, and that corresponds to $2\,\text{km/s}$ at $5\,\text{kpc}$ (see also Appendix \ref{secA:errors}). In both cases, we add noise to the simulation’s velocities by sampling the noise from a Gaussian distribution centred in zero with a dispersion given by the assigned error. Whereas we have assumed that all the clusters are at a heliocentric distance of $5\,\text{kpc}$ to have a comparable sample of stellar masses and observed stars, the simulated clusters have different Galactocentric distances ranging within $1-15\,\text{kpc}$. We have limited the “observed” stars within each cluster to those with line-of-sight RV errors smaller than $3\,\text{km/s}$. This set a lower limit in magnitude around $1\,\text{mag}$ below the main-sequence-turn-off (or $\sim 18\,\text{mag}$), similar as used by \cite{aros_2020} and motivated by current observations \citep{libralato_2018, giesers_2019}. From the sample of 284 simulated GCs in the \textsc{MOCCA}-Survey database I with an initial binary fraction of $10\%$, we selected a subsample of clusters that have: (a) more than $1000$ stellar systems (binary and single) within the selected sample of sufficiently bright stars, and (b) an intrinsic velocity dispersion higher than $4\,\text{km/s}$, which is twice the median velocity error in line-of-sight velocities and proper motions at the assumed distance of $5\,\text{kpc}$. These two criteria help to reduce the stochasticity due to low numbers (binary fraction), and to measure velocity dispersion values that are not dominated by observational errors. Our sample then decreases to 95 GCs. In the following sections of this work, we refer to the projected core ($R_{\text{c}}$) and half-light radii ($R_{\text{h}}$) of each cluster. Both radii are extracted from \cite{arca_sedda_2019}, who fitted a King profile \citep{king_1962} to the cumulative surface brightness profile, following the method described by \cite{morscher_2015}. Figure \ref{fig:sample_comparison} shows the core and half-light radii for the subsample of 95 simulated GCs and for Galactic GCs from \cite{harris_1996} (2010 edition). The sizes of our selected sample are comparable to observed GCs. \begin{figure} \centering \includegraphics[width=0.9\linewidth]{FIGURES/sample_sim_rh_rc.pdf} \caption{Core $R_{\text{c}}$ and half-light $R_{\text{h}}$ radii for simulated GCs. We have selected a sample of 95 simulated GCs with and without a central IMBH, with initial binary fraction of $10\%$ (light-blue squares) and additional requirements on the quality of the data as described in Section \protect\ref{sec:simulations}. As a reference we show Galactic GCs from \protect\cite{harris_1996} (2010 edition, as empty circles). Our selected sample has comparable sizes as real GCs.} \label{fig:sample_comparison} \end{figure} \subsection{Identification of binaries} \label{sec:bin_det} We identify binaries in the mock data by measuring the observed RV for each star at different observational epochs, i.e. different observations with time scales of hours, weeks or months\footnote{ We use 19 epochs given by $t_{\text{epoch}}=[$0, 6, 15, 24, 33, 360, 375, 384, 384.03, 384.06, 384.09, 384.12, 384.15, 384.93, 384.96, 384.99, 385.02, 385.05, 393$]$ days.}. We do not evolve the simulations between epochs; therefore, the positions and velocities of single stars, and the centre of mass position and velocity of binary systems remain fixed\footnote{Single stars and the centre of mass of binary systems would not significantly move in this time range since it is much smaller than the dynamical time.}. Any variation on the RV of single stars is only due to observational errors. For binary stars, while the center of mass remains fixed, we update the position and velocities of both components at each epoch. We use the orbital parameters and subsequent orbit to follow the binary components relative positions and velocities around the binary centre of mass. The “observed” RV for the binary star is given by the luminosity weighted velocity along the line of sight: \begin{equation} \text{v}_{\text{los}} = \text{v}_{\text{cm}} + \frac{\text{v}_{1} L_{1} + \text{v}_{2}L_{2}}{L_1+L_2}\,,\label{eq:obs_los} \end{equation} where $\text{v}_{\text{cm}}$ is the centre of mass velocity of the binary, and $\text{v}_i$ and $L_i$ are the velocity and luminosity of each component. Once we calculate the RVs for all epochs for single and binary stars in the simulated cluster, we proceed to assign a probability of variability. To do so, we follow the approach of \cite{giesers_2019}, described in the following. The probability of variability is defined by analysing the RV curve and the scatter around the mean velocity for all epochs. For each star with $n$ different epochs, the scatter in RV can be described by \begin{equation} \chi^2_{\text{obs}} = \sum_{i=0}^n\frac{(\text{v}_i-\overline{\text{v}})^2}{\delta \text{v}_i^2}\,.\label{eq:chi2} \end{equation} In a GC with only single stars, the scatter is dominated by errors only, and the distribution of observed $\chi^2$ resembles a theoretical $\chi^2$ distribution with $\nu=n-1$ degrees of freedom. Variability due to the motion of binaries would show as an extended tail in the observed $\chi^2$ distribution or as a change in the slope of the cumulative distribution, because the scatter will be dominated by the orbital motions rather than observational errors. Using this idea, \cite{giesers_2019} define the probability of a star to have a variable RV as \begin{equation} P(\chi^2_i,\nu_i) = \frac{F(\chi^2_i,\nu_i)_{\text{theo}}-F(\chi^2_i,\nu_i)_{\text{obs}}}{1 - F(\chi^2_i,\nu_i)_{\text{obs}}}\,,\label{eq:prob} \end{equation} where $F(\chi_i^2,\nu_i)$ is the cumulative $\chi^2$ distribution given $\nu_i$ degrees of freedom, evaluated at the measured $\chi^2$ value of the $i$-th star. In our case, we use the same number of epochs for each star and cluster, a version which considers a different number of epochs is described in \cite{giesers_2019}. In the case of the simulated clusters, we can link the probability of variable RV to the probability of being a binary star, as no other effect could produce the same signature; therefore, we will use $P_{\text{bin}} = P(\chi^2_i,\nu_i)$. \begin{figure*} \centering \includegraphics[width=0.8\linewidth]{FIGURES/cmd_binary_prob_mass.pdf} \caption{Color-magnitude diagram for single (left panel) and binary (right panel) stars in a simulated GC at $12\,\text{Gyr}$. The points are colour coded by the probability of being a binary with lighter colours corresponding to single stars. We can see in the left panel that most single stars have a low probability for being a binary. On the other hand, in the right panel not all binaries are identified, this is due to either having long periods or very face-on orbital planes. The size of the symbols on the right panel indicates the mass ratio between the binary components. We do not observe any particular trend with magnitude for the binary detectability. Binaries in the blue-straggler branch are likely to be detected (close binaries).} \label{fig:cmd_bin} \end{figure*} Figure \ref{fig:cmd_bin} shows the colour-magnitude diagram for a simulated GC with a binary fraction of $f_{\text{bin}}=7.8\%$ at $12\,\text{Gyr}$\. This cluster does not have a central IMBH, and neither a significant amount of retained stellar-mass black holes, and represents an average cluster. In a previous work, we built dynamical models for it to study the limitations of dynamical models to measure the mass profile of GCs and detect a central IMBH \citep[see the model named "no IMBH/BHS" in ][]{aros_2020}. Each star is colour coded by its probability of being variable in RV given by $P_{\text{bin}}$. The left panel shows all single stars in our luminosity selection, the large majority of single stars have a low probability of being variable in RV and are unlikely to be binaries. On the right panel of Figure \ref{fig:cmd_bin}, we show all binaries in the simulated cluster also colour coded by their probability of being variable in RV, the sizes of the symbols represent the mass ratio between components. While many binaries have indeed a high probability of being variable in RV, a significant fraction does not and therefore are not identified as binaries. If the velocity amplitude of the binary in the RV curve is not large enough, it will not show as having a high scatter in $\chi^2$ and will be assigned a low probability of variability in RV. \begin{figure} \centering \includegraphics[width=0.9\linewidth]{FIGURES/all_properties_NO-IMBH-BHS.pdf} \caption{Period, semi-major axis and orbital plane inclination for all binaries in the same simulated GC shown in Figure \protect\ref{fig:cmd_bin}. The grey line shows all binaries in the sample, the dark-orange line shows binaries with $P_{\text{bin}}\geq0.5$ and the filled light-orange region shows binaries with $P_{\text{bin}}<0.5$. Binaries that have short periods (top panel) and that have a small semi-major axis (middle panel), i.e. hard binaries, are robustly detected with variations in RVs, as the frequency and amplitude of such variations are higher. The inclination (bottom panel), on the other hand, adds a complexity as it limits the detection for any type of binary, as binaries close to a face-on configuration ($|\cos(i)|\sim1$) are challenging to detect. In our sample, the number of binaries with $P_{\text{bin}}\geq0.5$ becomes comparable with the ones with $P_{\text{bin}}<0.5$ for inclinations close to face-on, whereas the former dominates the sample for other inclinations.} \label{fig:properties_detection} \end{figure} Three main effects play against the detection of binaries using this approach. The first one is the luminosity ratio between the components. If both stars have similar luminosities, then the observed line-of-sight velocity given by Equation \ref{eq:obs_los} will be dominated by the centre of mass velocity rather than by their orbital motion. On the other hand, in the right panel of Figure \ref{fig:cmd_bin}, we can see that the mass ratio does not have a significant impact on the binaries detectability. The second effect comes from the orbital parameters of the binary, which also have a role in their detection. In Figure \ref{fig:properties_detection} we illustrate a selection of orbital parameters that have an impact on the probability of being variable in RV, and therefore on identifying binaries. We see that most of the binaries with a high probability $P_{\text{bin}}\geq0.5$ of being variable in RV have short periods and are close binaries, as shown in the top two panels of Figure \ref{fig:properties_detection}. Short period binaries orbit faster around their centre of mass, increasing the amplitude of the variability in RV. All of the binaries detected in this simulated GC have periods below $1\,\text{yr}$. The length of the semi-major axis $a$ goes in hand with the period, as binaries which survive sinking to the centre of the cluster become tighter and have shorter periods. The third effect that affects the detectability of binaries comes from the inclination of the orbital plane. The orientation of the orbital plane is randomly chosen, therefore it is not directly related to other orbital parameters of the binaries. In the bottom panel of Figure \ref{fig:properties_detection}, all binaries in the sample have an inclination angle $i$ which follows a uniform distribution (over a sphere and, therefore, is uniform in $\cos(i)$). For most inclination angles, binaries with $P_{\text{bin}}\geq0.5$ dominate the sample. For inclination angles closer to be face-on ($|\cos{i}|\sim 1.0$) the detection becomes challenging, and binaries with $P_{\text{bin}}<0.5$ are comparable in number to the ones with $P_{\text{bin}}\geq0.5$. This is expected as when the orbital plane becomes face-on, the line-of-sight velocity is perpendicular to the orbital motion of the binary, and no binary would be detected. Using this approach, we can identify binaries in each mock data set, corresponding to each simulated globular cluster. In the following, we will discuss the effects of the binaries on the kinematics of a cluster (Section \ref{sec:kin_bin}) and their interaction with an IMBH (Section \ref{sec:imbh_bin}). \section{Kinematic effects of binaries} \label{sec:kin_bin} As we previously discussed in \cite{aros_2020}, binaries have two main effects on the observed velocity dispersion of GCs. First, as binaries are more massive than single stars, they have, as a population, a different level of energy equipartition and hence spatial distribution. As this affects the centre of mass velocities of the binaries, both the line-of-sight velocity and the proper motions will show a lower velocity dispersion than what is expected for a cluster populated by single stars only. This effect has been studied for proper motions by \cite{bianchini_2016}. They find in GC simulations a colour bias in the velocity dispersion due to the presence of binaries, i.e. the redder edge of the main sequence (binary stars) has a lower velocity dispersion than the blue edge (single stars). However, they did not detect this in HST observations for NGC 7078, which is consistent with the low binary fraction of the cluster. In general, it is challenging to disentangle this effect, as it depends on the binary fraction and level of energy equipartition in the cluster. The second effect is an increase in the observed velocity dispersion due to the measured line-of-sight velocity of the binaries. For binaries that have a large velocity amplitude, the orbital motion around their centre of mass will dominate the observed line-of-sight velocity, introducing a bias to larger velocity dispersion measurements. To show this effect, we construct velocity dispersion profiles from the mock data with all the stars (single+binaries) and compare it with a sample that only includes stars with a low probability of being a binary ($P_{\text{bin}}<0.3$). We exclude stars that have line-of-sight velocities outside of the central $99\%$ of the velocity distribution, centered on the cluster's mean velocity. This criterion allows us to measure the effects of binary stars without being dominated by stars with observed velocities many times the velocity dispersion of the cluster, which might not be identified as cluster members. All measured velocity dispersion values in this work follow this criterion. A stricter limit on the velocity distribution or an iterative $3\sigma$ clipping approach can reduce the binary contamination. However, our focus is the kinematic imprint of the binaries on the observed velocity dispersion and, therefore, we choose to retain most binaries for our analysis. Figure \ref{fig:kin_profile} shows the observed velocity dispersion for the same cluster used as in Figure \ref{fig:cmd_bin} and \ref{fig:properties_detection}. The dark orange circles show the line-of-sight velocity dispersion for all stars in the sample (single+binaries), while the light orange diamonds show the velocity dispersion when only stars with $P_{\text{bin}}<0.3$ are selected. The difference between the whole sample and the selection with $P_{\text{bin}}<0.3$ is a consequence of the bias introduced by the orbital motion of binaries. The bias is stronger towards the cluster centre and it is a consequence of the larger binary fraction within this region. In Section \ref{sec:bin_frac_kin} we discuss further the correlation between the binary fraction and the bias in the velocity dispersion. For comparison, the radial (grey triangles) and tangential (grey squares) proper motions are also included. Both proper motions behave similarly to the sample with $P_{\text{bin}}<0.3$. \begin{figure} \centering \includegraphics[width=0.9\linewidth]{FIGURES/vdisp_binary_detection_noIMBH-BHS.pdf} \caption{Line-of-sight velocity dispersion for a simulated GC with binaries (same cluster as in Figures \protect\ref{fig:cmd_bin} and \protect\ref{fig:properties_detection}). The dark-orange circles show the velocity dispersion when all stars are considered for the kinematics, this includes all binaries in the sample. Once we use the probability of being a binary assigned to each star, we can select stars that have a low probability $P_{\text{bin}}<0.3$. The light-orange diamonds show the velocity dispersion profile when most binaries are excluded. We can see that once the sample is "cleaned" from binaries, the line-of-sight velocity dispersion is consistent with the proper motion velocity dispersion (gray triangles and squares).} \label{fig:kin_profile} \end{figure} While the previous example comes from mock data of a simulated globular cluster, it is also possible to observe this effect in current observations of GCs. Using multi-epoch observations of VLT/MUSE data, \cite{giesers_2019} identified binaries in NGC 3201 using the variations in radial velocity (RV). We use the available RV data from their work to analyse the kinematic effect of the binaries in their sample. Figure \ref{fig:ngc3201} shows the line-of-sight velocity dispersion for the sample in \cite{giesers_2019}, with the same approach as in Figure \ref{fig:kin_profile} we show the velocity dispersion for all stars (red circles) and for a sample of the stars with a probability of being variable in RV of $P_{\text{bin}}<0.3$ (blue diamonds). Each data point is calculated from approximately $150$ stars for the two epochs that have the largest samples of observations ($\sim 3000$ stars, upper and lower panel). Note that we only select stars with velocity errors smaller than $3\,\text{km/s}$. From Figure \ref{fig:ngc3201}, we can see that for both epochs the sample with $P_{\text{bin}}<0.3$ indeed has a lower velocity dispersion and the difference increases towards the centre. For reference, we have also included previous measurements of the line-of-sight velocity dispersion from \cite{kamann_2018} who use VLT/MUSE data, and from \cite{baumgardt_2018} who extract velocities from archival data from ESO/VLT instruments and complement them with measurements from literature \citep{kunder_2017}. It is important to highlight that the data from \cite{giesers_2019} are an extension of the data of \cite{kamann_2018}, which increases the number of average epochs from 7 to 12. \cite{kamann_2018} already discussed the differences between their velocity dispersion profile and the one from \cite{baumgardt_2018}, pointing to two probable sources, binaries or partial energy equipartition. For binaries, they excluded stars which were likely to be binaries based on RV variations between epochs, however, the additional epochs in \cite{giesers_2019} might have helped in detecting binaries which remained undetected by \cite{kamann_2018}, in particular short-period binaries. \begin{figure} \centering \includegraphics[width=0.9\linewidth]{FIGURES/vel_dispersion_clipping_p30_new_colors.pdf} \caption{Line-of-sight velocity dispersion of NGC 3201. We include the data from \protect\cite{kamann_2018} (green hexagons) and \protect\cite{baumgardt_2018} (black squares), as well as the observations from \protect\cite{giesers_2019} (red circles) in two different epochs (top and bottom panel). Once we exclude stars that have a high probability of being a binary we observe a drop in the velocity dispersion similar as in Figure \protect\ref{fig:kin_profile} (blue diamonds). This is consistent for both epochs and shows the importance of multi-epoch observations to detect binaries in GCs. The grey dashed and dotted lines show the core and half-light radii of NGC 3201 from \protect\cite{harris_1996} (2010 edition).} \label{fig:ngc3201} \end{figure} The different effects of binaries on the line-of-sight velocities and proper motions can help constraining the level of contamination caused by binaries and to estimate the binary fraction in the cluster. If, as in Figure \ref{fig:kin_profile}, a significant difference in the velocity dispersion between single epoch line-of-sight observations and proper motions is observed, then follow up line-of-sight velocity observations will be necessary to identify binaries and to clean up the kinematics. In other words, cleaning up the kinematics would be crucial for a 3D kinematic analysis of the cluster. \section{Binary fraction and IMBHs} \label{sec:imbh_bin} As discussed in the previous section, binaries leave a clear signature on the observed velocity dispersion. Dynamical analysis that considers line-of-sight velocities needs to take into account their presence. While it is possible to clean the kinematic sample by means of multi-epoch observations, the identified binaries can also be utilized to help understand the dynamical state of a GC. \subsection{Radial distribution of binaries} \label{sec:bin_frac_rad} The binary distribution changes during the dynamical evolution of a GC, mainly due to their segregation towards the cluster’s centre and to the formation and destruction of binaries by their interaction with surrounding stars. Consequently, the cluster’s binary fraction increases towards the centre while decreasing at larger radii (see Figure \ref{fig:imbh_bin_prf}). Early \textit{N}-body simulations of GCs with binaries by \cite{heggie_2006} already showed how the half-mass radius of the binary population is indeed smaller than that of single stars. The presence of a central IMBH affects particularly the surviving fraction of binaries in the cluster centre, as the rate of disrupted binaries increases significantly under the presence of a central IMBH. While the increased density of stars around the IMBH mainly drives the disruption of binaries that segregate towards the cluster centre by interactions with other stars \citep[][]{trenti_2007}, close encounters of a binary with the IMBH can also break the binary producing high-velocity stars \citep[see][for example]{hills_1988,fragione_2019,subr_2019}. This implies that clusters with a central IMBH can have a reduced binary fraction towards the centre of the cluster. \begin{figure} \centering \includegraphics[width=1.0\linewidth]{FIGURES/binary_profiles_full_power_law.pdf} \caption{Radial distribution of binaries. The top panel shows the binary fraction $f_{\text{bin}}$ profile for each simulated GC in our sample, colour-coded by the mass of the most massive object ($M_{\text{MMO}}$, stars in dark blue and IMBHs in red). The symbols mark the binary fraction using $P_{\text{bin}}=0.5$ as a delimitter for binaries and non-binaries (i.e. stars with $P_{\text{bin}}\geq0.5$ are binaries, while stars with $P_{\text{bin}}<0.5$ are single stars); the error bars represent the binary fraction by separating binary and non-binary stars at $P_{\text{bin}}=0.3$ (top error bar) and $P_{\text{bin}}=0.7$ (bottom error bar). The bottom panel shows the median binary fraction profile for both types of GCs, with and without an IMBH. We fitted a power-law to the median distributions (dashed lines) and show that clusters with an IMBH have a flatter profile and a lower binary fraction than GCs without one. } \label{fig:imbh_bin_prf} \end{figure} Using the detected binaries in the sample of simulated GCs, we have constructed binary fraction profiles to analyse the behaviour of GCs with and without an IMBH. The top panel of Figure \ref{fig:imbh_bin_prf} shows the binary fraction profiles of our sample of 95 simulated GCs. Each profile is colour-coded by the most massive object in the cluster (from a star of $1\,M_{\odot}$ in dark blue to an IMBH of $10^4\,M_{\odot}$ in red). In clusters without an IMBH, the most massive object is in most cases a stellar mass black hole with, on average, $\sim20\,M_{\odot}$. While all clusters started with the same fraction of $10\%$ primordial binaries, we can observe a large variety of radial distributions. However, a significant difference is the presence of an IMBH, as clusters with one clearly show a lower binary fraction at all radii as well as a flatter profile. To have more clarity in the differences of both populations of GCs (with and without IMBH), we show in the bottom panel of Figure \ref{fig:imbh_bin_prf} the median profile for each population. We find that the median distributions are well represented by a power-law ($f_{\text{bin}}\propto(R/R_{\text{h}})^{-k}$), and that clusters without an IMBH have a steeper binary fraction profile ($k=0.33\pm0.03$) compared to those with one ($k=0.23\pm0.02$). An alternative way to observe the binary fraction profile behaviour is to focus on specific regions of the GCs. From Figure \ref{fig:imbh_bin_prf}, we can see that the binary fraction at the centre and around the half-light radius matches more for clusters with an IMBH than for GCs without one. We now focus only on those two regions and measure the binary fraction within the GC’s core radius and the area within one and two half-light radii. Figure \ref{fig:imbh_bin_frac} shows the binary fractions in these regions for all clusters in our sample, plotted against each other. Once again this is colour-coded by the most massive object in the GC. We can see that GCs with a central IMBH (in red) have a lower binary fraction and populate the figure’s bottom-left region; furthermore, most of these clusters are close to the 1-to-1 relation (dashed line). Clusters without an IMBH have a higher binary fraction, particularly in the core, and move away from the 1-to-1 line, which shows the expected effects and consequences of mass segregation in the binary population. A group of GCs without an IMBH is also located close to the 1-to-1 line. These clusters have retained many stellar-mass black holes instead of an IMBH, and to identify them, we have marked with a magenta diamond all GC with more than 50 stellar remnant black holes (i.e. a black hole system, BHS) within the half-mass radius. While they are closer to the 1-to-1 line with respect to clusters without a BHS, they still have a higher binary fraction within the core than clusters with an IMBH. On the other hand, they have a lower binary fraction than GCs without so many central black holes or an IMBH. Whereas the BHS works as an energy source for the cluster to halt mass segregation, the density within the core is not high enough to trigger an efficient disruption of binaries \citep[see e.g.][]{mackey_2008,sipel_2013,breen_2013,morscher_2015,weatherford_2018}. \begin{figure} \centering \includegraphics[width=1.0\linewidth]{FIGURES/binary_fraction_Rcore_Rhalf_selection_b10_bhs_kcore.pdf} \caption{Binary fractions within one and two half-light radii $R_{\text{h}}$ and within the core radius $R_{\text{c}}$. Each GC is colour-coded by its most massive object. Clusters with an IMBH stay near the dashed line showing the 1-to-1 ratio between the binary fractions, i.e. less mass segregated than above the line. These clusters also populate the left side of the figure as they have systematically fewer binaries, a difference with respect to GCs with a BHS (magenta diamonds) that are near the 1-to-1 line, but have retained more binaries overall.} \label{fig:imbh_bin_frac} \end{figure} The central density plays an active role in the dynamical interaction and disruption of binary systems. Therefore, to better isolate the effect of an IMBH on the binary fraction, we select a subsample with comparable initial central density. In our sample, GCs with initial central densities below $\rho_{\text{c}}\sim10^5\,M_{\odot}/\text{pc}^3$ do not form an IMBH within $12\,\text{ Gyr}$, while most if not all clusters with initial central densities larger than $\rho_{\text{c}}\sim10^6\,M_{\odot}/\text{pc}^3$ form an IMBH. In the region between these two limits we have 32 GCs which can either form an IMBH or not. Figure \ref{fig:lost_binaries} shows the percentage difference between the initial binary fraction and the binary fraction at $12\,\text{Gyr}$, both calculated within the core radius and defined as: \begin{equation} \Delta f_{\text{bin,core}}(12-0\,\text{Gyr}) = \frac{f_{\text{bin,core}}(12) - f_{\text{bin,core}}(0)}{f_{\text{bin,core}}(0)}\,,\label{eq:delta_fbin} \end{equation} where $f_{\text{bin,core}}(t)$ is the binary fraction within the core radius at a given time in $\text{Gyr}$. GCs that form an IMBH have mainly negative percentage differences, and on average, they have lost $\sim50\%$ of the initial binary fraction. On the other hand, GCs that do not form a central IMBH have their core binary fraction increased by $\sim70\%$ with respect to the initial binary fraction. In this range of initial central densities, the IMBH forms via the “SLOW” scenario late in the evolution of the GC (see Section \ref{sec:simulations} and references therein), preceded by an increased central density due core-collapse. For clusters that follow the “SLOW” scenario, we observe that the binary fraction within the core radius increases steadily until the central density is high enough to trigger the formation of an IMBH. During this process, the binary fraction decreases rapidly along with an increase in binary-single and binary-binary interactions. On the other hand, for GCs in Figure \ref{fig:lost_binaries} that do not form an IMBH, the presence of stellar-mass black holes helps delaying the core-collapse and quenches the central density rise, preventing the formation of an IMBH and the depletion of binaries. \begin{figure} \centering \includegraphics[width=1.0\linewidth]{FIGURES/lost_binaries_initial_central_density_overlap.pdf} \caption{Percentage difference between the initial binary fraction and the binary fraction at $12\,\text{Gyr}$ within the core radius as given by Equation \protect\ref{eq:delta_fbin}. We selected a subsample of 32 simulated clusters with comparable initial central density. The binary fraction at $12\,\text{Gyr}$ corresponds to the observed binary fraction within the core radius as in Figure \protect\ref{fig:imbh_bin_frac}. All GCs are colour coded by their most massive object. The sizes of the symbols indicate the initial core radius of the GCs, and the magenta diamonds highlight the GCs with a BHS. The red dot-dashed and blue dashed lines represent the mean percentage difference for the population of simulated GCs with and without an IMBH, respectively. The binary fraction within the core radius of GCs with an IMBH halves with respect to their initial conditions. For those without an IMBH, we observe a percentage increase of $70\%$ with respect to the initial value.} \label{fig:lost_binaries} \end{figure} The advantage of using integrated quantities over different regions of the cluster is that this technique can be applied to explore the behaviour of observed GCs. \cite{milone_2012} surveyed the binary fraction of GCs using HST photometry along the main sequence. While there are intrinsic differences in the detected binaries from their method and the one described here, this is a first-order approach to show that it is possible to test our results with photometric data. Figure \ref{fig:bin_frac_milone} shows the binary fraction within the core radius and the region outside the half-mass radius, as given by \cite{milone_2012}. We see that almost all clusters are near or above the 1-to-1 relation (dashed line). Only NGC 288 falls clearly below the 1-to-1 line. While the error bars are big enough to include the 1-to-1 line, it is essential to keep in mind that this cluster has tidal tails \citep[see][for the latest discussion using Gaia data]{kaderali_2019,sollima_2020} and could have undergone a more complex dynamical evolution than other clusters in the sample. We compared the clusters in \cite{milone_2012} with two studies that estimate the number of remaining stellar mass black holes: \cite{askar_2018b} (red diamonds) use properties such as the core radius and the central density to estimate the number of retained BHs, whereas \cite{weatherford_2020} (green squares) use the mass segregation of the clusters as an indicator for the remaining BHs. Although both studies estimate different numbers of BHs (see Table \ref{tab:bin_frac} in the Appendix), the clusters with retained BHs are near the 1-to-1 line. Most Galactic clusters with candidate IMBHs do not have a measured binary fraction within the core and have been excluded from Figure \ref{fig:bin_frac_milone}. \begin{figure} \centering \includegraphics[width=0.9\linewidth]{FIGURES/bin_fraction_milone_2012_v2.pdf} \caption{Binary fraction within the core radius $R_{\text{c}}$ and outside the half-mass radius $R_{\text{hm}}$ for Galactic globular clusters. The binary fractions measured by \protect\cite{milone_2012} show the same behaviour as Figure \protect\ref{fig:imbh_bin_frac}, almost all GCs are above the 1-to-1 dashed line, following the expected effect of mass segregation with the exception of NGC 288, see Section 4.1 for more details. We have marked GC candidates that may be hosting a BHS as given by \protect\cite{askar_2018b} (red diamond) and \protect\cite{weatherford_2020} (green squares). Most of the candidate GCs are located near the 1-to-1 line, in a similar way as in Figure \protect\ref{fig:imbh_bin_frac}.} \label{fig:bin_frac_milone} \end{figure} \subsection{Kinematic effects due to binaries} \label{sec:bin_frac_kin} We discussed how the binary fractions can point to GCs that could host an IMBH or a BHS. However, the observed kinematics are another piece of information that could also show the binaries interaction with a central IMBH. As we discussed in Section \ref{sec:kin_bin}, binaries affect the line-of-sight and proper motion velocity dispersions differently. Figure \ref{fig:kin_profile} shows that the difference between line-of-sight and proper motion velocity dispersions increases significantly towards the centre, which goes in hand with the increase in the binary fraction in the cluster centre. To analyse this effect, we have measured the velocity dispersion within the core radius of each GC, following the same procedure as in Section \ref{sec:kin_bin}. We define a percentage difference for the velocity dispersion given by $(\sigma_{\text{los}}-\sigma_{\text{ref}})/\sigma_{\text{ref}}$, where $\sigma_{\text{ref}}$ is a reference velocity dispersion, which can be either from proper motions or a clean sample of line-of-sight velocities. The top panel of Figure \ref{fig:imbh_bin_kin} shows the case when we compare the single epoch line-of-sight velocity dispersion (i.e. including the effect of binaries) with the radial proper motion. We observe that as the binary fraction increases, the difference between the velocity dispersions becomes larger. As discussed before, clusters with an IMBH have a lower binary fraction, and now we can see that they also have a smaller difference between the line-of-sight and proper motion velocity dispersions. GCs with a BHS (magenta diamonds) populate the region between the clusters with an IMBH and those without one. Obtaining comparable observations for line-of-sight velocities and proper motions is not straightforward, as not many cover the same region of the cluster or even the same stellar mass range. Due to the GC’s evolution towards energy equipartition, it is crucial to sample the same stellar mass range for both velocities. A way to move around this issue is to only focus on the line-of-sight velocities, given multi-epoch observations to identify binaries. The difference between the line-of-sight velocity dispersion that includes all binaries and the cleaned sample will play the same role as the proper motion data. The bottom panel of Figure \ref{fig:imbh_bin_kin} shows the case when the reference velocity dispersion for $\Delta\sigma$ is the line-of-sight velocity dispersion after cleaning the binaries as described in Section \ref{sec:kin_bin}. The GCs’ behaviour is similar to the previous case, but it only depends on one observational data type, which is the RVs. In this case, we can now also include the kinematic data for NGC 3201 from \cite{giesers_2019}. We measured the binary fraction and velocity dispersion difference within the core radius from the same stellar sample as in Figure \ref{fig:ngc3201}, finding that the binary fraction is $f_{\text{bin}}(R<R_{\text{c}})=17.1\pm1.9\%$ while the velocity dispersion difference is $\Delta\sigma(R<R_{\text{c}})=32.2\pm7.8\%$. As shown in the bottom panel of Figure \ref{fig:imbh_bin_kin}, this cluster follows a relation in line with the simulated GCs. This approach could be more accessible as more GCs get observed in the same way as done by \cite{giesers_2019}. \begin{figure} \centering \includegraphics[width=1.0\linewidth]{FIGURES/fbin_dsigma_Rcore_all_selection_bhs.pdf} \caption{Difference in velocity dispersion and binary fraction within the core radius. By using the differences in velocity dispersion between the full line-of-sight contaminated sample and the proper motions (top panel) or the clean sample with $P_{\text{bin}}<0.3$ (bottom panel). All clusters are again colour-coded by their most massive object. In both panels, as the binary fraction within the core increases also does the difference in velocity dispersion, for some clusters the measured velocity dispersion with binaries overestimates up to $70\%$ the core velocity dispersion. Using proper motions as a reference adds an additional scatter due to variations in the central velocity anisotropy, but when available could provide a first constraint on the velocity difference (in particular when multi-epoch observations are not available). A more self-consistent approach, once multi-epoch observations are available, would be to compare the contaminated velocity dispersion with the clean one as in the bottom panel. This approach is not affected by velocity anisotropy and can be used right away for current and upcoming MUSE data, such as for NGC 3201 \protect\citep{giesers_2019} marked as a star. } \label{fig:imbh_bin_kin} \end{figure} The most extreme cases in Figure \ref{fig:imbh_bin_kin} show an overestimation of $\sim70\%$ of the observed line-of-sight velocity dispersion due to the effects of binaries. However, our analysis assumes a strong binary contamination, where we only exclude stars outside the central $99\%$ of the observed velocity distribution (equivalent to a single $3\sigma$ clipping). A stricter limit can exclude most binaries, and the bias shown in Figure \ref{fig:imbh_bin_kin} will be milder. We estimated the clusters’ velocity dispersion values using an iterative $3\sigma$ clipping approach, significantly reducing the binary contamination. While the trend was still similar to the one shown in the bottom panel of Figure \ref{fig:imbh_bin_kin}, the most extreme cases went down from $\sim70\%$ to a $\sim20\%$ difference in velocity dispersion. \section{Summary} \label{sec:summary} In this work, we explored the dynamical effects of a central IMBH on the binary population of GCs. We used a sample of simulated GCs from the \textsc{MOCCA}-Survey Database I \citep{askar_2017a} and applied the method proposed by \cite{giesers_2019} to identify binaries through multi-epoch radial velocity (RV) observations. We have produced mock observations for each cluster considering velocity errors in RVs and proper motions; for these mock observations, we follow the radial velocities during many epochs, considering long-term observations spanning over months as well as multiple observations during a single night. This approach allows us to identify binaries in the simulated GCs in the same manner as done for real observations. Two-body relaxation drives the dynamical evolution of GCs; a consequence of this process is mass segregation. Binaries are on average more massive than single stars and segregate quickly towards the centre of the cluster. This phenomenon changes the distribution of binaries and the radial binary fraction. Early \textit{N}-body simulations of GCs with primordial binaries show binaries migrate towards the cluster core while becoming harder \citep{heggie_2006}. Observations of main-sequence star binaries also show this trend \citep{sollima_2007,milone_2012,ji_2015}, as the binary fraction is smaller in regions outside the core radius. The higher fraction of binaries within the cluster core affects the observed line-of-sight kinematics, as the relative velocity of hard binaries dominates over their centre of mass velocity, increasing the observed velocity dispersion along the line-of-sight (see Figure \ref{fig:kin_profile} and discussion therein). While this effect does not affect proper motions, to take full advantage of proper motions and radial velocities, the identification of binaries is crucial. Whereas the effects on the dynamical modelling are beyond the scope of this work, we expect that due to the increase in the observed line-of-sight velocity dispersion, dynamical models will overestimate the cluster mass (larger mass-to-light ratio) and (or) the mass of a possible IMBH. An IMBH in the cluster centre acts as an energy source, extending the cluster dynamical life. It halts mass segregation, and therefore, fewer binaries move to the cluster centre, which reduces the binary fraction in the cluster core. Furthermore, the binaries that do segregate encounter a dense environment where interactions with other stars can disrupt them, due to the high central density in GCs that form an IMBH. If a binary manages to get close enough to the IMBH, this could also break the binary and one of the components might be ejected at high velocities \citep{hills_1988,fragione_2019,subr_2019}. Our analysis shows that GCs with a central IMBH have a significantly lower binary fraction than clusters without one (see Figure \ref{fig:imbh_bin_prf}). Furthermore, for GCs with comparable initial central density, we observe that those which form an IMBH lose $\sim50\%$ of their initial binary fraction within the cluster core, while the ones which do not form an IMBH increase their binary fraction within the cluster core by $\sim70\%$. We find that clusters that host a black hole system behave in a similar way as those with an IMBH and also show a flat binary fraction profile. However, as binary disruption is less effective than in clusters with a central IMBH and the presence of stellar-mass black holes in the cluster's core effectively halts the increase in central density, GCs with a BHS have on average higher binary fractions in their cores. This is in agreement with previous simulations of GCs with BHS \citep[see, e.g., ][]{mackey_2008,morscher_2015}. The comparison of integrated quantities, such as the binary fraction within the central and outer regions of the GCs, serves as an indication for which cluster may host an IMBH or a BHS (see Figure \ref{fig:imbh_bin_frac}). We find a handful of Galactic GCs are promising candidates, as they have a similar binary fraction within the cluster’s core and outside of the half-mass radius (see Figure \ref{fig:bin_frac_milone}). A list of the names and properties of these clusters can be found in Appendix \ref{secA:table} (see Table \ref{tab:bin_frac}). By also taking into account the kinematic data, we can have a similar picture of the dynamical effect of an IMBH on the binary population of a cluster. Due to the lower binary fractions in clusters with a central IMBH, and in particular within the cluster core, we expect that the difference between line-of-sight and proper motion velocity dispersion will be small. We show that this is the case in Figure \ref{fig:imbh_bin_kin}. However, comparing line-of-sight velocities and proper motions is not trivial. Different effects such as the intrinsic velocity anisotropy, the cluster regions covered by different observations, the magnitude range that translates to different masses for different observations, and precise distances could add a systematic bias in the observed difference between line-of-sight and proper motion velocity dispersion. A solution to these limitations will be to use only line-of-sight velocities once multi-epoch observations will be available as shown in the bottom panel of Figure \ref{fig:imbh_bin_kin}. This approach will not only help as a method to identify systems that may host an IMBH or a BHS, but by knowing the binary fraction it will be possible to estimate the increase in velocity dispersion due to the effect of binaries; this is crucial for dynamical modelling that uses line-of-sight velocity as a tracer. We have focused only on binaries brighter than one magnitude below the main-sequence turn-off ($m_{V}<18\,\text{mag}$ at $5\,\text{kpc}$). The different mass range and binary detection biases limit the comparison with photometric studies \cite[such as][]{sollima_2007,milone_2012,ji_2015} that typically focus on the main-sequence. Extending our analysis to other detection techniques for binaries will provide a better link between the estimated binary fraction and kinematics effects of binaries. To do so, we first need to consider multiple populations in the simulations \citep[][]{hong_2015} as they play a relevant role in the photometric binary detection \citep{milone_2020}. At the same time, it is necessary to check the different biases in the detection methods: radial velocity methods mainly detect binaries with short periods, whereas photometric methods depend on the mass ratio of binaries \citep{milone_2012}. We analysed simulations with initial binary fractions of $f_{\text{bin}}=10\%$. These clusters have total binary fractions of $f_{\text{bin}}\sim7\%$ at $12\,\text{Gyr}$ (or $f_{\text{bin}}\sim16\%$ within the half-light radius). Whereas our initial binary fraction is consistent with observations, clusters that have higher binary fractions exist (see Figure \ref{fig:bin_frac_milone}). To compare with these observations, we need to study simulations with different initial binary fractions. See Appendix \ref{secA:fbin_comparison} for a comparison with a sample of clusters with initial $f_{\text{bin}}=5\%$, where we observe the same overall trends. Here we presented the properties of the whole detected binary population. The next step will be to study how the relations described here connect with specific types of binaries or binary products. The distribution of blue-straggler stars traces the dynamical evolution of GCs \cite{ferraro_2012,ferraro_2018}. By analysing the distribution of blue-straggler stars and their relation with the binary fraction, it will be possible to study another tracer for the dynamical effects of a central IMBH. Similarly, the distribution of X-ray binaries could help separate clusters with a central IMBH from those with a BHS. \section*{Acknowledgements} We thank the anonymous referee for their constructive comments and suggestions, which helped us improve this manuscript. We thank the \textsc{MOCCA}-Survey collaboration for making their data available to us and answering all our questions. FIA also thanks Sebastian Kamann for constructive discussions regarding the MUSE data, Alice Zocchi for her helpful suggestions regarding the manuscript and Nadine Neumayer for helpful discussions and ideas. FIA and GvdV acknowledge funding from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme under grant agreement No 724857 (Consolidator Grant ArcheoDyn). ACS is supported by the Deutsche Forchungsgemeinschaft (DFG, German Research Fundation) -- Project-ID 138713538 -- SFB 881 ("The Milky Way System", subproject A08). AMB is supported by the Swedish Research Council (grant 2017-04217) and acknowledges funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No 895174. AA is supported by the Swedish Research Council (grant 2017-04217) and also acknowledges partial support from the Royal Physiographic Society of Lund and the Walter Gyllenberg Foundation for the research grant: "Evolution of Binaries containing Massive Stars". This research made use of the \textsc{NUMPY} package \citep{van_der_walt_2011}, while all figures were made using \textsc{MATPLOTLIB} \citep{hunter_2007}. \section*{Data Availability} The simulated GCs data underlying this article were provided by the \textsc{MOCCA} group\footnote{\url{https://moccacode.net/}} by permission. The data will be shared upon request with permission of the \textsc{MOCCA} group. The observational data is available within their original references. \bibliographystyle{mnras}
\section{Introduction} Human social perception is linked to frequency of observation. \citet{hughes2019neural} show using functional magnetic resonance imaging (fMRI) scans that humans are more aware of variation in the faces of members of their own race, and perceive members of other races as repeated instances of a social class, rather than as individuals. Most people interact more with individuals of their own race, and develop better cognitive skills for differentiating members of the race they see most frequently. Recent research indicates that state-of-the-art AI systems mirror such biased and unequal human perceptions. For example, \citet{pmlr-v81-buolamwini18a} show that under-representation in the training data of computer vision models causes poor performance on classification tasks for women and minority racial groups. First names are used in both social psychology and Natural Language Processing (NLP) as a proxy to ground truth data for studying racial and gender biases. The implicit association test (IAT) of \citet{greenwald1998measuring} finds that study participants perceive European-American names as more pleasant than African-American names, and \citet{caliskan2017semantics} demonstrate with the word embedding association test (WEAT) that human biases observed in the IAT exist in static word embeddings, learned vector representations of words widely used in NLP. We use a list of first names labeled by gender and racial group based on U.S. Social Security Administration data and the names dataset of \citet{tzioumis2018demographic} to analyze how name frequency affects minority social groups in four neural language models: BERT, GPT-2, XLNet, and T5. Neural language models have advanced the state of the art in NLP, and are found in consequential NLP contexts such as Google Search \cite{nayak_2019}. These models produce contextualized word embeddings, which incorporate information from the context in which the word occurs over a series of neural network layers. \citet{may-etal-2019-measuring} and \citet{guodetecting} show that racial, gender, and intersectional biases exist in neural language models. We examine whether under-representation in the training corpora of such models causes them to overfit non-white and female names, reducing model generalization for underrepresented minorities. We list our research questions and contributions: \noindent (1) \textbf{Are minority social group names less frequent in the training corpora of neural language models?} We process four training corpora and find that white and male names are the most frequent in all training corpora. \\ \noindent (2) \textbf{Are infrequent and minority group names split into subwords by neural language models more than frequent and majority group names?} We report the percentage of names singly tokenized for eight demographic groups. Minority and female group names are singly tokenized less than white and male names. Single tokenization correlates with frequency, with Spearman's $\rho$ up to .835. \\ \noindent (3) \textbf{Are infrequent minority group names more biased than frequent minority group names?} We take Spearman's $\rho$ of name frequency and bias using the WEAT. We find that infrequent racial minority group names are more negative in BERT, with Spearman's $\rho$ of frequency and pleasantness association of .492. Common female names exhibit greater gender bias in BERT, with Spearman's $\rho$ of frequency and career/family bias of -.553.\\ \noindent (4) \textbf{Are infrequent and minority group names less contextualized than frequent and majority group names? Is this the result of overfitting, or of underfitting?} We examine intra-layer self-similarity of embeddings across contexts to determine how contextualized a name is, and measure its similarity to initial representation in the model's embedding lookup matrix using linear centered kernel alignment (CKA) of \citet{kornblith2019similarity}. Inter-layer similarity to initial representation shows how much processing a name undergoes, indicating whether a poorly contextualized word is overfit to few observed contexts, if it's notably different from initial representation, or underfit, if it's similar to the representation in the embedding lookup matrix. We find that infrequent and minority group names exhibit higher intra-layer self-similarity, with Spearman's $\rho$ of frequency and intra-layer self-similarity as low as -.763. Infrequent and minority group names are less similar to initial representation, with Spearman's $\rho$ between name frequency and similarity to initial representation up to .702, suggesting overfitting. We use Spearman's $\rho$ rather than Pearson's $\rho$ to capture monotonic with name frequency, as we observe effects primarily on a log scale. The null hypothesis is that frequency does not affect tokenization, social bias, and contextualization, and we disprove it by obtaining a two-tailed p-value. \section{Related Work} We survey prior work related to frequency's influence on static and contextualized word embeddings. Static word embeddings are vector representations of words based on co-occurrence statistics of words in a training corpus. Contextualized word embeddings are vector representations of words from a neural language model which incorporates information from context to minimize loss on a training objective, such as next-word prediction (language modeling). Static word embeddings have one vector per word, while contextualized embeddings vary with context, allowing them to capture, for example, the sense of a polysemous word. The WEAT of \citet{caliskan2017semantics} shows that the strength of association of a set of target static word embeddings (\textit{e.g.}, two social groups) to two sets of polar attribute static word embeddings (\textit{e.g.}, pleasant/unpleasant) encodes widely shared non-social biases, stereotypes, and factual information about the world. \citet{may-etal-2019-measuring} extend the WEAT to neural language models with the Sentence Encoder Association Test (SEAT), which inserts WEAT target words into semantically bleached sentence templates such as "This is <word>" and measures the association of sentence vectors rather than word vectors. \citet{kurita-etal-2019-measuring} mask target and attribute words in template sentences, and directly query BERT’s masked language modeling objective to compute an association of target words to attributes. \citet{guodetecting} evaluate the overall magnitude of bias in language models by extending the WEAT to the Contextualized Embedding Association Test (CEAT). \citet{brunet2019understanding} perturb the sparse word co-occurrence matrix of the GloVe static word embedding algorithm of \citet{pennington-etal-2014-glove} by omitting co-occurrence information from a particular subsection of the corpus, and show that embeddings of rare words are the most biased and the most sensitive to corpus perturbations. \citet{wang2020doublehard} find that the frequency of a word in a training corpus can twist gender direction and create features in static word embeddings which vary based on frequency. Our work analyzes neural language models, which do not form representations directly based on co-occurrence statistics. \citet{NEURIPS2018_e555ebe0} examine static Word2Vec and Transformer word embeddings used in machine translation and find that embeddings of high and low-frequency words lie in separate subregions of the embedding space, and that an embedding of a rare word and a common word can be distant even if they are semantically similar. The authors train an adversarial model to produce embeddings not separable based on frequency. \citet {provilkov-etal-2020-bpe} propose byte-pair encoding dropout, a subword regularization algorithm which allows multiple byte-pair encoding segmentations of the same word and corrects the problem of rare subtokens existing in a separate subregion of embedding space. \citet{mu2018allbutthetop} show that the top two directions using Principal Component Analysis (PCA) in Skip-Gram, GloVe, and Continuous Bag of Words (CBOW) static word embeddings encode frequency-related features, and that removing frequency-related features improves performance on tasks related to word similarity. \citet{ott2018analyzing} find that beam search in neural machine translation prefers common tokens, including common subword tokens, to uncommon tokens. \citet{wendlandt-etal-2018-factors} measure the stability of static word embeddings, defined as consistency in the percent overlap of nearest neighbors, and find that frequency contributes to semantic stability in word embeddings. \citet{ethayarajh-2019-contextual} demonstrate that contextualized word embeddings in BERT, GPT-2, and ELMo occupy an increasingly anisotropic vector space as they incorporate context. The most context-specific, least self-similar tokens are the most frequent in the training corpora, and in BERT, a token embedding becomes more similar to the embeddings in the context around it as it is contextualized. \citet{zhou2021frequencybased} find that frequency distorts the geometry of contextualized embeddings from BERT, which causes the model to over or underestimate semantic similarity of words based on frequency in the training corpus. \section{Background: Neural Language Models} Our work considers BERT, GPT-2, T5, and XLNet. We choose these neural language models both because they are commonly used and studied, and because they use three different subword tokenizers, allowing us to conduct our tokenization analysis across three different algorithms. We use the 12-layer cased implementation of each transformer in Python with TensorFlow and the Hugging Face Transformers library of \citet{wolf-etal-2020-transformers}. Appendix \ref{nlm_appendix} provides details on these models. \subsection{Subword Tokenization} Most neural language models use subword tokens to represent text. Each subword is tied to a vector in the model's embedding lookup matrix, which is trained with the model. Some common words in the training corpus are represented with a single embedding, but most are broken into subcomponents and mapped to multiple subword embeddings. Subword tokenization solves the out-of-vocabulary (OOV) problem, which occurs when a language model encounters a word not in its vocabulary. Subword tokenization allows a model to maintain a smaller vocabulary than a model with a full-word vocabulary, like TransformerXL of \citet{dai-etal-2019-transformer}, which has a vocabulary size of over 267,000, and uses the OOV token for words not in its vocabulary. Subword tokenization is faster than character convolutions to form an initial embedding, as in \citet{peters-etal-2018-deep} in ELMo, or \citet{boukkouri2020characterbert} in Character-BERT. All four language models examined use subword tokenization. BERT uses WordPiece, GPT-2 uses Byte-Pair Encoding, and XLNet and T5 use SentencePiece. Appendix \ref{tokenizer_appendix} provides further details. \subsection{Representational Similarity Measures} \citet{voita-etal-2019-bottom} use projection-weighted canonical correlation analysis (PWCCA) to measure embedding change from layer to layer of language models trained for different tasks, a method developed by \citet{NEURIPS2018_a7a3d70c} which can measure the evolution of neural network representations. More recently, \citet{kornblith2019similarity} measure layer differences using linear CKA. \citet{kiela2015exploiting} use dispersion of image vectors as a measure of the generality of an associated word to distinguish hypernyms from hyponyms. \citet{ethayarajh-2019-contextual} use self-similarity to measure contextualization in neural language models. \subsection{Contextualized Embedding Extraction} \citet{bommasani-etal-2020-interpreting} note that intermediate layers of neural language models are often used in downstream applications, and \citet{ethayarajh-2019-contextual} finds that static embeddings formed from the first two layers of BERT and GPT-2 are accurate for several common NLP tasks. \citet{DBLP:journals/corr/abs-1905-05950} show that layers of BERT attend primarily to a certain NLP task (such as coreference), and occur in an expected order. \citet{voita-etal-2019-bottom} find that a model pretrained for language modeling (next-word prediction), such as GPT-2, loses information about the current token while forming a prediction about the future, meaning that the top layer is poorly suited to analysis of the input token. We use the ValNorm method of \citet{toney2020valnorm} to choose the layer of each model which reflects the semantics of the input token. ValNorm obtains a valence score for each non-social group word in a lexicon by calculating its association with two sets of pleasant and unpleasant words based on cosine similarity. It then obtains Pearson's $\rho$ to measure the similarity of the valence scores of the word embeddings with a set of human-evaluated ratings. This is referred to as the ValNorm score, which the authors find is stable across languages, historical periods, and word embedding algorithms. ValNorm was developed for static word embeddings, and we extend it to measure the semantic quality of contextualized word embeddings in each layer of a neural language model. \section{Datasets} \label{sec:dataset} We use a dataset of first names from \citet{tzioumis2018demographic} cross-referenced with U.S. Social Security Administration (SSA) data to analyze frequency in language models. To obtain contextualized representations of the names from language models, we gather contexts from the Reddit corpus of \citet{baumgartner2020pushshift}. For name frequency statistics, we process the training corpus of each model. \begin{table*}[htbp] \centering \begin{tabular} {|l||r|r|r|r|r|r|r|r|} \hline \multicolumn{9}{|c|}{Median Frequency of Names by Demographic Group} \\ \hline Training Corpus & \multicolumn{1}{c|}{AF} & \multicolumn{1}{|c|}{BF} & \multicolumn{1}{|c|}{HF} & \multicolumn{1}{|c|}{WF} & \multicolumn{1}{|c|}{AM} & \multicolumn{1}{|c|}{BM} & \multicolumn{1}{|c|}{HM} & \multicolumn{1}{|c|}{WM}\\ \hline OpenWebText & 1,458 & 1,034 & 679 & 2,142 & 4,172 & 12,138 & 2,215 & 13,593\\ BookCorpus & 378 & 578 & 219 & 1,191 & 483 & 2,644 & 274 & 3,074\\ Wikipedia & 5,660 & 1,566 & 3,372 & 5,968 & 10,102 & 21,857 & 8,384 & 28,455\\ C4 & 32,257 & 16,843 & 13,149 & 41,710 & 66,661 & 125,743 & 30,760 & 163,014\\ \hline \end{tabular} \caption{White names and male names are the most common in reconstructions of training corpora.} \label{Training_Corpora_Table} \end{table*} \subsection{First Names} \label{subsection_first_names} We obtain a dataset of first names segmented by demographic group by cross-referencing a list developed by \citet{tzioumis2018demographic} of first names labeled by racial self-identification with 1990 SSA data, which includes information about the gender and the frequency of a first name based on births in 1990. Tzioumis’ list combines data from three mortgage datasets, and Tzioumis estimates that it covers 85.6\% of the U.S. population, based on U.S. census data. We assign each name a label corresponding to the race as which the highest number of individuals possessing that name self-identify. Each name is assigned a gender based on the gender with the greater number of births with the name in the 1990 SSA data. The resulting dataset of 3,757 names includes two genders (Female, Male) and four racial groups (Asian, Black, Hispanic, White). Appendix \ref{first_names_appendix} includes more information. \subsection{Contexts} To measure contextualization, we extract contextualized embeddings from a variety of contexts. Following \citet{guodetecting}, we harvest contexts from the Reddit corpus of \citet{baumgartner2020pushshift} at \url{pushshift.io} . We remove contexts in which a name exists in a first-last name combination which refers to a public figure (\textit{e.g.,}, "Taylor Swift"), which could skew our analysis. To control for the influence of context, we harvest $1,000$ contexts for the relatively unisex name "Taylor" (7,258 female births vs. 6,577 male births in 1990 SSA data), and create a set of identical contexts for every name in our dataset with each name replacing "Taylor." For example, we change “I saw Taylor last week” to “I saw Latisha last week” to represent a black woman. \subsection{Training Corpora} We obtain ground truth data for name frequency in the training corpora of each language model. Most of the training corpora are not available to the public, but can be replicated or approximated. BERT was trained on the BookCorpus and English Wikipedia. The BookCorpus is no longer available, and we use the open source reproduction of \citet{soskkobayashi2018bookcorpus}. We use the September 20, 2017 English Wikipedia dump made available by Wikimedia\footnote{\url{archive.org/details/enwiki-20170920}}, from the time period BERT was being trained. We combine name counts from the BookCorpus and Wikipedia to obtain name frequencies for BERT and XLNet. XLNet is trained on three additional corpora which are available for a fee or which would be difficult to reconstruct. The .792 Spearman coefficient we obtain from combined BookCorpus and Wikipedia frequencies and single tokenization of names by XLNet indicates that these frequencies are representative of the entire XLNet training corpus. The WebText corpus on which GPT-2 was trained was not made available to the public. We use the open source replication OpenWebText by \citet{Gokaslan2019OpenWeb}, produced based on the web crawling heuristic of \citet{radford2019language}. T5 was trained on the Colossal Cleaned Crawled Corpus (C4). We obtain ground truth name frequencies for C4 from the 800GB cleaned version reconstructed by AllenAI\footnote{\url{github.com/allenai/allennlp/}}. Table \ref{Training_Corpora_Table} shows that white male names have the highest median frequency in every training corpus, and the median frequency of any male group is higher than that of any female group in OpenWebText, Wikipedia, and C4. Black, Hispanic, and Asian females have the lowest median frequency in every training corpus. \section{Approach and Experiments} We measure the effects of frequency on tokenization, social bias, and contextualization to understand disparities between majority social groups and the minority racial and gender social groups identifiable in our names dataset. \subsection{Tokenization} We tokenize names in our dataset using the default Transformers library tokenizers of \citet{wolf-etal-2020-transformers} for BERT, GPT-2, T5, and XLNet. We obtain the proportion of names singly tokenized for the racial and gender groups in our data. Tokenization by social group informs our other experiments, as contextualization varies based on tokenization. \subsection{Bias} We quantify the bias association of each name for five WEATs described by \citet{caliskan2017semantics}. These include pleasant/ unpleasant (25 words, 8 words), career/family, math/art, and science/art. Following WEAT, each set contains at least 8 words to satisfy concept representation significance. Accordingly, the limitations of not adhering to this methodological robustness rule of WEAT, which are outlined by \citet{ethayarajh2019understanding}, are mitigated. Pleasant/unpleasant tests measure racial bias, and career/family, math/art, and science/art tests measure gender bias. The formula for the single-value WEAT follows. $w$ refers to a target word, and $A$ and $B$ to sets of polar attribute words. \[\frac{\textrm{mean}_{a\in A}\textrm{cos}(\vec{w},\vec{a}) - \textrm{mean}_{b\in B}\textrm{cos}(\vec{w},\vec{b})}{\textrm{std\_dev}_{x \in A \cup B}\textrm{cos}(\vec{w},\vec{x})}\] We extract contextualized word embeddings using semantically bleached sentences as described by \citet{may-etal-2019-measuring}. For names, we use the semantically bleached sentence template “This person’s name is <name>.” For WEAT attribute words, we use the context “This is <word>.” Unlike \citet{may-etal-2019-measuring}, we extract a contextualized word embedding of the stimuli rather than a sentence vector. The WEAT measures association using cosine similarity, which requires that vectors are of equal length, so we must choose a pooling method to represent multiply subtokenized words. Following \citet{bommasani-etal-2020-interpreting}, who show that mean pooling produces accurate representations for word similarity tasks, we use the mean of subword vectors to represent multiply tokenized words. We use the ValNorm method of \citet{toney2020valnorm} to select an intermediate layer from which to extract contextualized word embeddings. ValNorm evaluates semantic quality based on the single-value WEAT. To adapt ValNorm for language models, we pool single-value WEAT comparisons to obtain a combined effect size as described by \citet{guodetecting}, and select the layer which produces embeddings best corresponding to human evaluations of word valence. Because our work uses the WEAT to measure bias, ValNorm is an especially useful method for evaluating which layers encode semantic information related to the current token. With ValNorm, we obtain Pearson’s $\rho$ of .881 in BERT layer 9, .859 in GPT-2 layer 7, .892 in T5 encoder layer 12, and .854 in XLNet layer 5. We refer to the layer with the highest ValNorm score as the semantic layer. We obtain bias scores in the semantic layer for each name using the SV-WEAT on each bias test, and take Spearman's $\rho$ between bias and frequency for each minority group name in five tests. \subsection{Contextualization} Contextualization measures how much information from context a word incorporates. Words that incorporate information from context generalize well in contextualizing language models, whereas words which do not incorporate contextual information generalize poorly. To quantify contextualization, we measure intra-layer self-similarity across contexts. If a word is less contextualized, we seek to understand whether this is due to overfitting, or underfitting. How much processing a word undergoes in a model can help to indicate whether it is overfit or underfit. If the model changes the word significantly from initial representation, but fails to contextualize it, this suggests that the word is overfit, and processed to be similar to its embedding in few other contexts. If the model does not change the word much from its initial representation, and fails to contextualize it, this suggests that the model relies on a general representation, similar to what it sees in its embedding lookup matrix, indicating that the representation may be underfit. We measure inter-layer self-similarity to initial representation to determine whether poorly contextualized words are overfit or underfit. For contextualization, we use concatenations of subword vectors for multiply tokenized words, rather than mean pooling, to compare representations closest to the way the model sees them. \subsubsection{Intra-Layer Self-Similarity} We measure intra-layer self-similarity for each name in 1,000 identical contexts. Intra-layer self-similarity is the mean cosine similarity of contextualized embeddings for a word generated in a single layer of a language model, and ranges between 0 (dissimilar) and 1 (similar). The formula below was described by \citet{ethayarajh-2019-contextual}, but removes a function to map a word to a layer and sentence index. \[s(w) = \frac{1}{n^2 - n} \sum_{i} \sum_{j \neq i} cos(\vec{w_i}, \vec{w_j}) \] We take Spearman's $\rho$ of frequency and intra-layer self-similarity, and compare mean self-similarity for singly and multiply tokenized names. \subsubsection{Inter-Layer Similarity} We use linear CKA, a similarity index ranging between 0 (dissimilar) and 1 (similar), to measure similarity across layers. Proposed by \citet{kornblith2019similarity} for measuring similarity in neural network representations, linear CKA is not invariant to invertible linear transformation, but is invariant to orthogonal transformation and isotropic scaling, and identifies correspondences between layers more accurately than PWCCA. Invariance to isotropic scaling is useful, as \citet{ethayarajh-2019-contextual} found that upper layers of BERT and GPT-2 exhibit high anisotropy. Linear CKA operates on matrices of observations. We form matrices of 1,000 contextualized word embeddings for each name, inserted into the same 1,000 contexts as every other name. Below is the formula for linear CKA. \begin{equation*} \frac{||Y^TX||\genfrac{}{}{0pt}{2}{2}{\textrm{F}}}{||X^TX||{\genfrac{}{}{0pt}{2}{}{\textrm{F}}}||Y^TY||\genfrac{}{}{0pt}{2}{}{\textrm{F}}} \end{equation*} $X$ and $Y$ are matrices of examples, and $||\cdot|| {\genfrac{}{}{0pt}{2}{}{\textrm{F}}}$ refers to the Froebenius norm. We report Spearman's $\rho$ of name frequency and CKA similarity, and compare mean CKA similarity for singly and multiply tokenized names. \section{Results} We find that common names are singly tokenized more than less common names; that name frequency correlates with social bias in BERT, and to a lesser extent in GPT-2 and T5; and that infrequent and multiply tokenized names exhibit higher intra-layer self-similarity and lower inter-layer similarity to initial representation, suggesting overfitting. \begin{figure}[htbp] \centering \includegraphics[height=2.2in]{Images/tokenization_male_female_final.png} \caption{Male vs. female name tokenization} \label{tokenization_figure} \end{figure} \subsection{Tokenization} Common names are singly tokenized more than uncommon names. Spearman's $\rho$ between frequency and single tokenization is .835 for BERT, .772 for GPT-2, .630 for T5, and .792 for XLNet. Commensurate with these correlations, Table \ref{Tokenization_Intersectional_Table} shows that white male names are the most singly tokenized in each language model. In BERT and XLNet, male names are singly tokenized more than female names, and white names are singly tokenized more than Asian, black, and Hispanic names. \begin{table*}[htbp] \centering \begin{tabular} {|l||r|r|r|r|r|r|r|r|} \hline \multicolumn{9}{|c|}{Proportion of Singly Tokenized Words by Demographic Group} \\ \hline Model & \multicolumn{1}{|c|}{AF} & \multicolumn{1}{|c|}{BF} & \multicolumn{1}{|c|}{HF} & \multicolumn{1}{|c|}{WF} & \multicolumn{1}{|c|}{AM} & \multicolumn{1}{|c|}{BM} & \multicolumn{1}{|c|}{HM} & \multicolumn{1}{|c|}{WM}\\ \hline BERT & .218 & .081 & .122 & .308 & .331 & .563 & .329 & .619\\ GPT-2 & .250 & .541 & .085 & .211 & .376 & .438 & .243 & .535\\ T5 & .199 & .027 & .074 & .122 & .198 & .219 & .119 & .328\\ XLNet & .308 & .162 & .079 & .262 & .392 & .531 & .337 & .590\\ \hline \end{tabular} \caption{White male names are most singly tokenized.} \label{Tokenization_Intersectional_Table} \end{table*} \subsection{Bias} Table \ref{Bias_Correlation_Table} shows Spearman's $\rho$ of bias score and training corpus frequency for minority group names. Pleasant/unpleasant (PU) coefficients measure correlation between frequency and association with pleasantness for non-white names. Career/family (CF), math/art (MA), and science/art (SA) measure correlation between frequency and association with gender stereotypes for female names. \begin{table}[htbp] \resizebox{\columnwidth}{!}{ \centering \begin{tabular} {|l||r|r|r|r|} \hline \multicolumn{5}{|c|}{Correlation of Bias and Frequency} \\ \hline Bias Test & \multicolumn{1}{c}{BERT} & \multicolumn{1}{|c|}{GPT-2} & \multicolumn{1}{|c|}{T5} & \multicolumn{1}{|c|}{XLNet}\\ \hline Race PU25 & .492 & -.011 & .020 & -.139 \\ Race PU8 & -.021 & -.022 & .229 & .020 \\ Gender CF & -.553 & .065 & .063 & -.333 \\ Gender MA & -.311 & .139 & .094 & -.199 \\ Gender SA & -.304 & .244 & -.080 & .164 \\ \hline \end{tabular} } \caption{Infrequent non-white names are more negative in BERT and T5.} \label{Bias_Correlation_Table} \end{table} BERT and T5 exhibit positive correlation between pleasantness and minority group name frequency, with Spearman's $\rho$ of $.492$ and p-value of $10^{-167}$ for BERT. For these two models, more frequent minority group names are more associated with pleasantness. BERT also exhibits negative correlations between gender bias and frequency, indicating that more frequent observation of a female name reinforces its association with female stereotypes. The correlation between frequency in the training corpus and association with career as opposed to family in BERT is $-.553$ for female names, with a p-value of $10^{-161}$. XLNet exhibits similar correlations for the career/family and math/arts WEATs. P-values for correlations greater than $0.1$ or less than $-0.1$ are less than $10^{-10}$. \subsection{Contextualization} Infrequent names exhibit higher intra-layer self-similarity in each examined layer of each language model, and exhibit lower inter-layer similarity to initial representation, indicating that infrequent names generalize poorly to context and are overfit to the contexts in which they have been observed. \subsubsection{Intra-Layer Similarity} Table \ref{Frequency_Selfsim_Table} shows negative Spearman's $\rho$ in BERT, GPT-2, T5, and XLNet, ranging between $-.523$ and $-.763$, with p-values $<10^{-263}$. Most of the least negative correlations occur in the top layer, possibly due to high anisotropy in upper layers of language models observed by \citet{ethayarajh-2019-contextual}. Correlation of frequency and intra-layer self-similarity is highest in the first layer of GPT-2 and XLNet. \begin{table}[htbp] \centering \begin{tabular} {|l||r|r|r|r|} \hline \multicolumn{5}{|c|}{Correlation of Frequency and Self-Similarity} \\ \hline Layer & BERT & GPT-2 & T5 & XLNet\\ \hline First & -.688 & -.703 & -.523 & -.763 \\ Second & -.683 & -.681 & -.574 & -.732 \\ Semantic & -.693 & -.633 & -.573 & -.698 \\ Output & -.598 & -.640 & -.573 & -.649 \\ \hline \end{tabular} \caption{Infrequent names exhibit higher intra-layer self-similarity, and are less contextualized.} \label{Frequency_Selfsim_Table} \end{table} \begin{figure}[htbp] \centering \includegraphics[height=2.2in]{Images/bert_semantic_selfsim.png} \caption{Multiply tokenized and infrequent names exhibit high intra-layer self-similarity in BERT.} \label{Frequency_Selfsim_Figure} \end{figure} Table \ref{Tokenization_Selfsim_Table} shows that multiply tokenized names exhibit higher intra-layer self-similarity than singly tokenized names. More common names, and names of majority group members, are more contextualized in language models than are infrequent names and names of minority group members. \begin{table*}[htbp] \centering \begin{tabular} {|l||r|r|r|r|r|r|r|r|} \hline \multicolumn{9}{|c|}{Mean Intra-Layer Self-Similarity by Tokenization} \\ \hline \multirow{2}{*}{Layer} & \multicolumn{2}{c}{BERT} & \multicolumn{2}{|c|}{GPT-2} & \multicolumn{2}{|c|}{T5} & \multicolumn{2}{|c|}{XLNet}\\ \cline{2-9} &\multicolumn{1}{|c|}{Single} & \multicolumn{1}{|c|}{Multi} & \multicolumn{1}{|c|}{Single} & \multicolumn{1}{|c|}{Multi} & \multicolumn{1}{|c|}{Single} & \multicolumn{1}{|c|}{Multi} & \multicolumn{1}{|c|}{Single} & \multicolumn{1}{|c|}{Multi}\\ \hline First & .901 & .923 & .761 & .855 & .933 & .974 & .848 & .915\\ Second & .863 & .926 & .762 & .815 & .916 & .965 & .759 & .846\\ Semantic & .772 & .840 & .736 & .826 & .702 & .769 & .613 & .653\\ Output & .771 & .808 & .810 & .974 & .702 & .769 & .863 & .926\\ \hline \end{tabular} \caption{Multiply tokenized names exhibit higher intra-layer self-similarity.} \label{Tokenization_Selfsim_Table} \end{table*} \subsubsection{Inter-Layer Similarity} Table \ref{Frequency_CKA_Table} reports statistically significant positive correlations between frequency and inter-layer CKA similarity to initial representation, except in the first layer of GPT-2. Spearman's $\rho$ ranges between .174 and .702, with p-values smaller than $10^{-27}$. \begin{table}[htbp] \centering \begin{tabular} {|l||r|r|r|r|} \hline \multicolumn{5}{|c|}{Correlation of Frequency and CKA Similarity} \\ \hline Layer & BERT & GPT-2 & T5 & XLNet \\ \hline First & .461 & -.299 & .174 & .623 \\ Second & .592 & .487 & .382 & .636 \\ Semantic & .702 & .465 & .513 & .677 \\ Output & .480 & .242 & .513 & .338 \\ \hline \end{tabular} \caption{Infrequent names exhibit lower inter-layer CKA Similarity to initial representation.} \label{Frequency_CKA_Table} \end{table} Embeddings of infrequent names are less similar to initial representation, indicating that poorly contextualized infrequent names are overfit to previously observed contexts, and that representations in the embedding lookup matrix carry more information for common and singly tokenized names. \begin{table*}[htbp] \centering \begin{tabular} {|l||r|r|r|r|r|r|r|r|} \hline \multicolumn{9}{|c|}{Mean CKA Similarity by Tokenization} \\ \hline \multirow{2}{*}{Layer} & \multicolumn{2}{c}{BERT} & \multicolumn{2}{|c|}{GPT-2} & \multicolumn{2}{|c|}{T5} & \multicolumn{2}{|c|}{XLNet}\\ \cline{2-9} &\multicolumn{1}{c|}{Single} & \multicolumn{1}{|c|}{Multi} & \multicolumn{1}{|c|}{Single} & \multicolumn{1}{|c|}{Multi} & \multicolumn{1}{|c|}{Single} & \multicolumn{1}{|c|}{Multi} & \multicolumn{1}{|c|}{Single} & \multicolumn{1}{|c|}{Multi}\\ \hline First & .860 & .831 & .020 & .026 & .705 & .660 & .835 & .763\\ Second & .736 & .633 & .013 & .006 & .564 & .475 & .674 & .515\\ Semantic & .149 & .088 & .004 & .001 & .398 & .201 & .370 & .238\\ Output & .064 & .051 & .016 & .015 & .398 & .201 & .002 & .001\\ \hline \end{tabular} \caption{Multiply tokenized names are less similar to initial representation than singly tokenized names.} \label{Tokenization_CKA_Table} \end{table*} Results for tokenization and mean inter-layer self-similarity are reported in Table \ref{Tokenization_CKA_Table}. We observe that contextualized representations of multiply tokenized names are less similar to their initial representations than singly tokenized names. \begin{figure}[htbp] \centering \includegraphics[height=2.2in]{Images/xlnet_cka_semantic.png} \caption{Infrequent names are less similar to initial representation in the semantic layer of XLNet.} \label{Frequency_CKA_Figure} \end{figure} \section{Discussion} White male names occur more than any other social group in all training corpora we process. Black and Hispanic female names are least frequent, showing that frequency-based disparities in language models have notable consequences for non-white females. Each language model represents white male names with a single token more than any other group. Black and Hispanic female names are the least represented with a single subtoken, with less than 10\% singly tokenized in most models, reflecting disparities based on gender and race. In BERT, we observe Spearman's $\rho$ of name frequency and racial bias of .492, indicating that less frequent minority names are more associated with unpleasantness. Gender bias in BERT exhibits negative correlation with frequency, indicating that it is reinforced by frequently observing a female name. While increased representation may address disparities in contextualization, fair and diverse context occurrence is also important to ensure that language models do not learn biased embeddings. Infrequent and multiply tokenized names exhibit higher intra-layer self-similarity across language models, but lower inter-layer similarity to initial representation. Such names incorporate less information from context, and change more from initial representation, suggesting that disparities in contextualization are the result of overfitting. Our work focuses on first names, but under-representation of minority names suggests that words and ideas specific to minority groups are also likely under-represented in the training corpora of neural language models, and will have the same issues with regard to tokenization, bias, and contextualization. Increased representation of minority groups in training corpora would mitigate many frequency-related problems, and correct biases in the corpora themselves. However, some words will always be more common than others. To reduce frequency-based disparities, language models trained on multiple objectives, such as T5, might incorporate an adversarial training objective such as the method described by \citet{NEURIPS2018_e555ebe0}. Limitations of our work relate to using a list of names, which cannot capture many characteristics which may be biased in language models, such as sexual orientation. Please see our Ethical Considerations section for a detailed discussion of ethical concerns and limitations related to our work. \section{Conclusion} We show that names predominantly belonging to members of minority social groups occur less frequently than majority group names in training corpora of neural language models, and that low frequency results in lower rates of single tokenization, less contextualization, and overfit representations in neural language models. \section{Ethical Considerations} Our work with large-scale demographic datasets has involved simplifications which, while useful for studying the impact of language models on marginalized demographic groups, has also introduced a number of limitations to our work. These are primarily related to the use of categorical labels for gender and race, but also concern the properties of the demographic datasets employed and the role of frequency in interpreting our results. A central limitation of our work is that categorical labels are assigned to each name based on gender and race. We understand race and gender not as essential characteristics, but as defined within a particular culture, time period, and social structure. Our research question is whether underrepresentation (\textit{i.e.,} low frequency) of social groups in a language model training corpus results in overfitting and exacerbated bias in the trained language model. To answer this, we analyze frequency of representation and its effects along two axes of demographic bias: gender bias, wherein males are more represented than females; and racial bias, wherein people considered to be white are represented more than people considered to be black, Hispanic, or Asian. The range of social groups studied reflects not an ideal division of humanity into immutable categories, but a comprehensible way of interpreting the disadvantages caused by underrepresentation in our current cultural context. Our work can be thought of an exposure study which examines the effects of one aspect of gender and race: underrepresentation. In the context of studies of race, \citet{sen2016race} usefully define an exposure study as one which uses "a cue or signal that generates some reaction," and note that "names often act as a proxy for for traits associated with racial or ethnic groups." Well-established NLP methods such as the WEAT of \citet{caliskan2017semantics} have demonstrated the efficacy of using first names for observing biases in AI. As described in Section \ref{subsection_first_names}, we use U.S. Social Security Administration (SSA) data to give each first name a gender label, and a dataset which uses the same racial categories as the U.S. census does for surnames to give each first name a racial label. We do not intend to essentialize the name, or individuals bearing the name, but to identify the gender or racial association most likely to be perceived by a language model within the cultural context in which it was trained. We regret that many individuals are not represented by this set of categories. This is true for transgender and nonbinary individuals, as the SSA data reflects a gender binary, and also for people whose racial identity is not captured by one of a few categories. Census data includes information about racial identification for surnames, but not for first names, prompting us to seek another source for this data. We choose the dataset of \citet{tzioumis2018demographic} because it has wide coverage (85.6\% of the U.S. population as estimated by Tzioumis); is ethically anonymized; is based on at least 30 observations for 91.2\% of included names; and contains first name data based on self-identification, considered a “gold standard” for demographic classification, as noted by \citet{larson2017gender} in the context of labeling data by gender. Tzioumis’ dataset uses the same racial categories as U.S. census data for surnames, indicating that these categories correspond to our cultural context. That many names occur in more than one racial group or gender group is also a limitation, and may introduce noise into our analyses. However, more than 80\% of names examined in our work have a self-identification rate of at least 70\% with a single racial group in the Tzioumis dataset. Based on SSA data, 31.3\% of the names in our study have only male occurrences, 38.6\% of the names in our study have only female occurrences, and 30.1\% of names occur for both male and female individuals. 88.0\% of names with male and female occurrences have at least 70\% of occurrences associated with one gender. Thus, assigning a label based on the group with the most occurrences is likely to capture both which groups are most affected by our findings, as well as the linguistic signals related to race and gender which make first names a useful proxy to this information. We also note that the time periods from which demographic and language modeling data are derived may inject some noise into our analysis. We cross-reference SSA data on births in 1990 with the Tzioumis dataset, which is based on 2007 and 2010 mortgage applications. The populations studied in these two datasets are unlikely to overlap exactly, though they both sample the adult U.S. population during the time period germane to our research. Moreover, language models are themselves products of a specific place and time, as they are trained on text corpora assembled largely within a specific time period, and are unlikely to reflect the full diversity of language within that time period; OpenAI's WebText corpus, for example, is collected using outbound web links from Reddit running through December 2017 \cite{radford2019language}. Finally, we note that our results are the effect primarily of low frequency of observation, and it is possible that similar differences in tokenization and contextualization based on frequency might be observed in other sets of words which are unrelated to demographics. However, frequency relates directly to the social dimension to which our work directs attention: that names of marginalized social groups are underrepresented - less frequent - in language modeling corpora, and more likely to be overfit by a language model. Frequency of representation is one of the composite variables that inform race and gender in our cultural context, and must be considered when training a language model which forms differing representations based on frequency. While large-scale demographic datasets are reductive, they can help to observe the social impact of the systems we study. Within the limited confines of the groups defined, our work shows that neural language models are ill-adapted to represent marginalized social groups. \section{First Names Dataset} \label{first_names_appendix} The names dataset of \citet{tzioumis2018demographic} provides the percentage of individuals with a first name who self-identify as each of six races and ethnicities: White, Black, Hispanic, Asian-Pacific-Islander, Native American, and Mixed Race. We provide information regarding the number of names in each group after cross-referencing for gender with the 1990 U.S. Social Security Administration data in Table \ref{Dataset_Intersectional_Names_Table}. Note that we were left with only one predominantly Native American name and one predominantly Mixed Race name, which is not enough names for use in our experiments. \begin{table}[h] \centering \begin{tabular} {|l||c|} \hline \multicolumn{2}{|c|}{Names by Intersectional Group} \\ \hline Intersectional Group & Number of Names\\ \hline Asian Female & 156\\ Black Female & 37\\ Hispanic Female & 189\\ White Female & 1,621\\ Asian Male & 263\\ Black Male & 32\\ Hispanic Male & 243\\ White Male & 1,216\\ \hline \end{tabular} \caption{Number of names in our dataset} \label{Dataset_Intersectional_Names_Table} \end{table} After cross-referencing between Tzioumis’ list and the 1990 U.S. Social Security Administration data, we are left with a list of 3,757 first names. White-majority names are more common in this list, likely due both to the United States being a plurality-white nation, and to economic and structural disparities which allow easier access to mortgages for white individuals. \section{Neural Language Models} \label{nlm_appendix} \subsection{BERT} \citet{devlin-etal-2019-bert} introduce BERT, a bidirectional transformer trained on masked language modeling (also known as the \textit{Cloze} objective) and next sentence prediction tasks. We examine the “bert-base-cased” model available from Hugging Face Transformers. BERT is trained on 2.5 billion words of English Wikipedia documents (excluding lists, headers, and tables) and 800 million words of the BookCorpus compiled by \citet{zhu2015aligning}, a collection of more than 11,000 free online books written by unpublished authors. \subsection{GPT-2} \citet{radford2019language} introduce OpenAI GPT-2, a unidirectional transformer model trained on the next-word prediction language modeling task. We examine the “gpt2” model available from Hugging Face Transformers. GPT-2 is trained on the WebText corpus, a web scrape composed of outbound links from Reddit with at least 3 karma, which the model designers (who are also the creators of the training corpus) take as a heuristic for link quality. WebText contains over 8 million documents and 40GB of text. \subsection{XLNet} \citet{NEURIPS2019_dc6a7e65} introduce XLNet, an autoregressive transformer trained on language modeling which learns bidirectional contexts by maximizing the expected likelihood over all permutations of its input’s factorization order. We use the “xlnet-base-cased” model available from Hugging Face Transformers. Like BERT, XLNet is trained on English Wikipedia and the BooksCorpus. However, it also trains on three additional corpora: Giga5 (a corpus of print news from publications such as the Associated Press and New York Times), ClueWeb 2012-B, and Common Crawl. ClueWeb 2012-B is a corpus maintained by Carnegie Mellon University. \subsection{T5} \citet{JMLR:v21:20-074} introduce T5, a text-to-text encoder-decoder transformer model trained on a number of different pretraining tasks and designed to take in text and return text for any NLP task. T5 is pretrained on the Colossal Cleaned Crawled Corpus (C4). We examine the encoder layers of the 't5-base' model available on Hugging Face Transformers. \section{Subword Tokenizers} \label{tokenizer_appendix} \subsection{Byte-Pair Encoding} GPT-2 uses a variation on Byte-Pair Encoding (BPE) to iteratively choose the most frequently occurring bigram of symbols in the training corpus, merge them into a single symbol, and add the merged symbol to its subword vocabulary until it reaches its maximum vocabulary size of 50,256. BPE is a compression algorithm originally proposed by \citet{gage1994new}. The technique was adapted for encoding rare subwords for the purpose of neural machine translation in 2015 by \citet{sennrich-etal-2016-neural}. GPT-2 modifies this algorithm to operate directly on byte sequences rather than Unicode character sequences. \subsection{WordPiece} BERT uses the WordPiece tokenization algorithm, first developed by \citet{schuster2012japanese} and subsequently refined by \cite{johnson2017google} in Google's neural machine translation system. WordPiece builds a probability distribution from the training corpus using the base vocabulary of single character symbols, and then iteratively assembles its vocabulary by merging a bigram, adding the merged unit, and replacing every instance of the bigram in the training corpus with the merged unit. WordPiece selects the bigram which most increases the likelihood of the training data when the merged bigram is added to the language model, a process which is indirectly related to frequency. \subsection{SentencePiece} XLNet and T5 use the SentencePiece tokenizer, which can implement either Byte-Pair Encoding or Unigram to form a vocabulary. SentencePiece was developed by \citet{kudo-richardson-2018-sentencepiece} and allows for lossless tokenization, such that original input can be reconstructed from tokenized input. SentencePiece inserts an underscore to preserve whitespace as a character, and can be used with byte-pair encoding or with the Unigram algorithm also introduced by \citet{kudo-2018-subword}. Unlike WordPiece and BPE, Unigram starts with a large set of words and subwords generated from a training corpus, and iteratively removes the words which have the least effect on the overall loss (with the loss function chosen as a hyperparameter) of a language model created from the vocabulary until a fixed vocabulary size is reached.